fix quadruped.py, don't use 'realtime' and set timeout (in case connection to server is lost) to few seconds
This commit is contained in:
@@ -17,6 +17,7 @@ physId = p.connect(p.SHARED_MEMORY)
|
|||||||
if (physId<0):
|
if (physId<0):
|
||||||
p.connect(p.GUI)
|
p.connect(p.GUI)
|
||||||
#p.resetSimulation()
|
#p.resetSimulation()
|
||||||
|
p.setTimeOut(4)
|
||||||
p.loadURDF("plane.urdf",0,0,0.1)
|
p.loadURDF("plane.urdf",0,0,0.1)
|
||||||
#p.loadSDF("kitchens/1.sdf")
|
#p.loadSDF("kitchens/1.sdf")
|
||||||
p.setGravity(0,0,0)
|
p.setGravity(0,0,0)
|
||||||
@@ -121,7 +122,7 @@ p.setGravity(0,0,-10)
|
|||||||
|
|
||||||
|
|
||||||
#stand still
|
#stand still
|
||||||
p.setRealTimeSimulation(1)
|
p.setRealTimeSimulation(useRealTime)
|
||||||
|
|
||||||
#jump
|
#jump
|
||||||
t = 0.0
|
t = 0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user