From 93f4accd3bb485ffe1146da400b8aab6dec21792 Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:33:17 +0530 Subject: [PATCH] Update testrender.py --- examples/pybullet/examples/testrender.py | 3 +++ 1 file changed, 3 insertions(+) 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")