Update jacobian.py

This commit is contained in:
NiranthS
2020-04-23 23:14:12 +05:30
committed by GitHub
parent 73e6f5fd20
commit b3100b5bb5

View File

@@ -1,4 +1,6 @@
import pybullet as p
import pybullet_data
def getJointStates(robot):
@@ -51,6 +53,8 @@ clid = p.connect(p.SHARED_MEMORY)
if (clid < 0):
p.connect(p.DIRECT)
p.setAdditionalSearchPath(pybullet_data.getDataPath())
time_step = 0.001
gravity_constant = -9.81
p.resetSimulation()