From 079d3189652446e27c4644b813519c05ab75c8ed Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:11:53 +0530 Subject: [PATCH] Update humanoid_knee_position_control.py --- examples/pybullet/examples/humanoid_knee_position_control.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/pybullet/examples/humanoid_knee_position_control.py b/examples/pybullet/examples/humanoid_knee_position_control.py index f43a7cb1e..17188c6d2 100644 --- a/examples/pybullet/examples/humanoid_knee_position_control.py +++ b/examples/pybullet/examples/humanoid_knee_position_control.py @@ -1,5 +1,8 @@ import pybullet as p import time +import pybullet_data + + cid = p.connect(p.SHARED_MEMORY) if (cid < 0): @@ -11,6 +14,8 @@ useRealTime = 0 p.setRealTimeSimulation(useRealTime) +p.setAdditionalSearchPath(pybullet_data.getDataPath()) + p.setGravity(0, 0, -10) p.loadSDF("stadium.sdf")