From fa6713328daa1dd4dc2c15a3ef0b25c99cfbe884 Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 15:57:31 +0530 Subject: [PATCH 1/2] Update addPlanarReflection.py --- examples/pybullet/examples/addPlanarReflection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/pybullet/examples/addPlanarReflection.py b/examples/pybullet/examples/addPlanarReflection.py index 6f26502a0..6cf0b4b81 100644 --- a/examples/pybullet/examples/addPlanarReflection.py +++ b/examples/pybullet/examples/addPlanarReflection.py @@ -1,6 +1,8 @@ import pybullet as p import time import math +import pybullet_data + def getRayFromTo(mouseX, mouseY): @@ -36,6 +38,7 @@ def getRayFromTo(mouseX, mouseY): cid = p.connect(p.GUI) if (cid < 0): p.connect(p.GUI) +p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.setPhysicsEngineParameter(numSolverIterations=10) p.setTimeStep(1. / 120.) logId = p.startStateLogging(p.STATE_LOGGING_PROFILE_TIMINGS, "visualShapeBench.json") From 584a052f9a9fb84b8b95a6898ebb25c245486341 Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 15:58:11 +0530 Subject: [PATCH 2/2] Update batchRayCast.py --- examples/pybullet/examples/batchRayCast.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/pybullet/examples/batchRayCast.py b/examples/pybullet/examples/batchRayCast.py index ab2e3bc3c..b2de78f37 100644 --- a/examples/pybullet/examples/batchRayCast.py +++ b/examples/pybullet/examples/batchRayCast.py @@ -1,6 +1,7 @@ import pybullet as p import time import math +import pybullet_data useGui = True @@ -8,6 +9,7 @@ if (useGui): p.connect(p.GUI) else: p.connect(p.DIRECT) +p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.configureDebugVisualizer(p.COV_ENABLE_GUI, 0) #p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0)