tweak quadruped.py script a little bit

This commit is contained in:
Erwin Coumans 2016-11-14 17:02:29 -08:00
parent 0092a1a55d
commit b4b93573fc

View File

@ -1,4 +1,6 @@
import pybullet as p
import time
p.connect(p.GUI)
p.loadURDF("plane.urdf")
p.loadURDF("quadruped/quadruped.urdf",0,0,0.2)
@ -32,4 +34,9 @@ p.resetJointState(1,21,-1.57)
p.resetJointState(1,23,2.2)
p.createConstraint(1,20,1,23,3,[0,0,0],[0,-0.01,0.2],[0,0.015,0.2])
p.setGravity(0,0,-10)
t_end = time.time() + 120
i=0
while time.time() < t_end:
i = p.getNumJoints(0)
p.stepSimulation()