diff options
Diffstat (limited to 'examples/pybullet/gym/pybullet_utils/examples/combined.py')
-rw-r--r-- | examples/pybullet/gym/pybullet_utils/examples/combined.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/pybullet/gym/pybullet_utils/examples/combined.py b/examples/pybullet/gym/pybullet_utils/examples/combined.py new file mode 100644 index 000000000..349cc887b --- /dev/null +++ b/examples/pybullet/gym/pybullet_utils/examples/combined.py @@ -0,0 +1,9 @@ +import pybullet as p +p.connect(p.GUI) +p.loadURDF("combined.urdf", useFixedBase=True) +for j in range (p.getNumJoints(0)): + p.setJointMotorControl2(0,j,p.VELOCITY_CONTROL,targetVelocity=0.1) +p.setRealTimeSimulation(1) +while (1): + import time + time.sleep(1./240.) |