From 64fe29987ea53df5038b12cbc00b2cc509bf1d82 Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:34:12 +0530 Subject: [PATCH] Update testrender_np.py --- examples/pybullet/examples/testrender_np.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/pybullet/examples/testrender_np.py b/examples/pybullet/examples/testrender_np.py index d32edd09e..2c313a457 100644 --- a/examples/pybullet/examples/testrender_np.py +++ b/examples/pybullet/examples/testrender_np.py @@ -6,6 +6,7 @@ import numpy as np import matplotlib.pyplot as plt import pybullet import time +import pybullet_data plt.ion() @@ -16,6 +17,8 @@ ax = plt.gca() #pybullet.connect(pybullet.GUI) pybullet.connect(pybullet.DIRECT) + +pybullet.setAdditionalSearchPath(pybullet_data.getDataPath()) pybullet.loadURDF("plane.urdf", [0, 0, -1]) pybullet.loadURDF("r2d2.urdf")