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.
import pybullet as p
p.loadURDF('data/quadruped/quadruped.urdf') # displays only a tiny black cube at (0,0,0)
Furthermore, checking all links world positions with getLinkPosition(...), they all are centered 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)
Loading the plane.urdf works without issues though!
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!