Update test.py
This commit is contained in:
@@ -2,10 +2,10 @@ import pybullet
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
#choose connection method: GUI, DIRECT, SHARED_MEMORY
|
#choose connection method: GUI, DIRECT, SHARED_MEMORY
|
||||||
pybullet.connect(pybullet.GUI)
|
pybullet.connect(pybullet.SHARED_MEMORY)
|
||||||
|
|
||||||
#load URDF, given a relative or absolute file+path
|
#load URDF, given a relative or absolute file+path
|
||||||
obj = pybullet.loadURDF("r2d2.urdf",posX,posY,posZ)
|
obj = pybullet.loadURDF("r2d2.urdf")
|
||||||
|
|
||||||
posX=0
|
posX=0
|
||||||
posY=3
|
posY=3
|
||||||
@@ -32,4 +32,3 @@ pybullet.resetSimulation()
|
|||||||
#disconnect from the physics server
|
#disconnect from the physics server
|
||||||
pybullet.disconnect()
|
pybullet.disconnect()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user