mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 13:20:07 +00:00
add xarm, modify loadpanda to work with pybullet_robots module
This commit is contained in:
parent
fb15aea414
commit
84e2ea918c
@ -3,7 +3,7 @@ import pybullet_data as pd
|
||||
import math
|
||||
import time
|
||||
import numpy as np
|
||||
import panda_sim
|
||||
import pybullet_robots.panda.panda_sim as panda_sim
|
||||
|
||||
p.connect(p.GUI)
|
||||
p.configureDebugVisualizer(p.COV_ENABLE_Y_AXIS_UP,1)
|
||||
@ -18,4 +18,4 @@ while (1):
|
||||
panda.step()
|
||||
p.stepSimulation()
|
||||
time.sleep(timeStep)
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@ import pybullet_data as pd
|
||||
import math
|
||||
import time
|
||||
import numpy as np
|
||||
import panda_sim_grasp as panda_sim
|
||||
import pybullet_robots.panda.panda_sim_grasp as panda_sim
|
||||
|
||||
#video requires ffmpeg available in path
|
||||
createVideo=False
|
||||
|
20
examples/pybullet/gym/pybullet_robots/xarm/loadxarm_sim.py
Normal file
20
examples/pybullet/gym/pybullet_robots/xarm/loadxarm_sim.py
Normal file
@ -0,0 +1,20 @@
|
||||
import pybullet as p
|
||||
import pybullet_data as pd
|
||||
import math
|
||||
import time
|
||||
import numpy as np
|
||||
import pybullet_robots.xarm.xarm_sim as xarm_sim
|
||||
|
||||
p.connect(p.GUI)
|
||||
p.setAdditionalSearchPath(pd.getDataPath())
|
||||
|
||||
timeStep=1./60.
|
||||
p.setTimeStep(timeStep)
|
||||
p.setGravity(0,0,-9.8)
|
||||
|
||||
xarm = xarm_sim.XArm6Sim(p,[0,0,0])
|
||||
while (1):
|
||||
xarm.step()
|
||||
p.stepSimulation()
|
||||
time.sleep(timeStep)
|
||||
|
Loading…
Reference in New Issue
Block a user