From f81211f3b02282b319fc2b89b7daf01ddfd90ee9 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sun, 5 Mar 2017 22:40:05 -0800 Subject: [PATCH] fix quadruped.py, don't use 'realtime' and set timeout (in case connection to server is lost) to few seconds --- examples/pybullet/quadruped.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/pybullet/quadruped.py b/examples/pybullet/quadruped.py index 10a10cb45..6ead3e3d2 100644 --- a/examples/pybullet/quadruped.py +++ b/examples/pybullet/quadruped.py @@ -17,6 +17,7 @@ physId = p.connect(p.SHARED_MEMORY) if (physId<0): p.connect(p.GUI) #p.resetSimulation() +p.setTimeOut(4) p.loadURDF("plane.urdf",0,0,0.1) #p.loadSDF("kitchens/1.sdf") p.setGravity(0,0,0) @@ -121,7 +122,7 @@ p.setGravity(0,0,-10) #stand still -p.setRealTimeSimulation(1) +p.setRealTimeSimulation(useRealTime) #jump t = 0.0