diff --git a/examples/pybullet/examples/testrender.py b/examples/pybullet/examples/testrender.py index 0332f2a6c..cbcda6e5b 100644 --- a/examples/pybullet/examples/testrender.py +++ b/examples/pybullet/examples/testrender.py @@ -11,9 +11,12 @@ img = [[1, 2, 3] * 50] * 100 #np.random.rand(200, 320) #img = [tandard_normal((50,100)) image = plt.imshow(img, interpolation='none', animated=True, label="blah") ax = plt.gca() +import pybullet_data pybullet.connect(pybullet.DIRECT) +p.setAdditionalSearchPath(pybullet_data.getDataPath()) + #pybullet.loadPlugin("eglRendererPlugin") pybullet.loadURDF("plane.urdf", [0, 0, -1]) pybullet.loadURDF("r2d2.urdf")