I have issues loading models in pybullets DIRECT and GUI mode but have no issues in running them in SHARED_MEMORY after starting the example browser.
Seemingly arbitrary objects just cannot be displayed in the interface. Most of the urdf-models that come in the data-directory can not be displayed as well.
Code: Select all
import pybullet as p p.connect(p.GUI) p.loadURDF('data/quadruped/quadruped.urdf') # displays only a tiny black cube at (0,0,0)
The same example works perfectly fine when I initially connect to the example browser via SHARED_MEMORY.
Similar issues occur when loading other objects:
- data/sphere_small.urdf: Nothing is displayed
- data/mjcf/humanoid.xml: Nothing is displayed
- data/r2d2.urdf: Only the claw is rendered at (0,0,0)
- data/kuka_lwr/kuka.urdf: Seems to load each link at (0,0,0)
I have tested and confirmed this issue on 2 different computers with Ubuntu 14.04 and 15.10.
What is happening?
I want to use pybullet in DIRECT or GUI mode to use it in conjunction with reinforcement learning, thus do not want to leave the example browser running.
Thanks in advance!