From ade9056de278e3f41f8a0e978efd8dee07f0eb4d Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 22:44:56 +0530 Subject: [PATCH] Update configureDebugVisualizer.py --- examples/pybullet/examples/configureDebugVisualizer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/pybullet/examples/configureDebugVisualizer.py b/examples/pybullet/examples/configureDebugVisualizer.py index e1d755708..988454715 100644 --- a/examples/pybullet/examples/configureDebugVisualizer.py +++ b/examples/pybullet/examples/configureDebugVisualizer.py @@ -2,8 +2,10 @@ import pybullet as p import math import time dt = 1./240. +import pybullet_data -p.connect(p.GUI)#SHARED_MEMORY_GUI) +p.connect(p.GUI) +p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.loadURDF("r2d2.urdf",[0,0,1]) p.loadURDF("plane.urdf") p.setGravity(0,0,-10) @@ -18,4 +20,4 @@ while (1): p.configureDebugVisualizer(lightPosition=[radius*math.sin(t),radius*math.cos(t),3]) p.stepSimulation() - time.sleep(dt) \ No newline at end of file + time.sleep(dt)