fix Mac version of deformable_anchor.py
This commit is contained in:
@@ -4,8 +4,8 @@ from time import sleep
|
|||||||
physicsClient = p.connect(p.GUI)
|
physicsClient = p.connect(p.GUI)
|
||||||
|
|
||||||
p.resetSimulation(p.RESET_USE_DEFORMABLE_WORLD)
|
p.resetSimulation(p.RESET_USE_DEFORMABLE_WORLD)
|
||||||
|
gravZ=-10
|
||||||
p.setGravity(0, 0, -10)
|
p.setGravity(0, 0, gravZ)
|
||||||
|
|
||||||
planeOrn = [0,0,0,1]#p.getQuaternionFromEuler([0.3,0,0])
|
planeOrn = [0,0,0,1]#p.getQuaternionFromEuler([0.3,0,0])
|
||||||
planeId = p.loadURDF("plane.urdf", [0,0,-2],planeOrn)
|
planeId = p.loadURDF("plane.urdf", [0,0,-2],planeOrn)
|
||||||
@@ -24,6 +24,6 @@ p.setRealTimeSimulation(1)
|
|||||||
|
|
||||||
|
|
||||||
while p.isConnected():
|
while p.isConnected():
|
||||||
p.getNumBodies()
|
p.setGravity(0,0,gravZ)
|
||||||
sleep(1./240.)
|
sleep(1./240.)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user