From 7135f565c96b75c9cd32c47ffbef5b4d7b24913e Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:14:31 +0530 Subject: [PATCH] Update kuka_grasp_block_playback.py --- examples/pybullet/examples/kuka_grasp_block_playback.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/pybullet/examples/kuka_grasp_block_playback.py b/examples/pybullet/examples/kuka_grasp_block_playback.py index 1d0fbeb8c..1aa3f755d 100644 --- a/examples/pybullet/examples/kuka_grasp_block_playback.py +++ b/examples/pybullet/examples/kuka_grasp_block_playback.py @@ -43,7 +43,10 @@ def readLogFile(filename, verbose=True): #clid = p.connect(p.SHARED_MEMORY) +import pybullet_data + p.connect(p.GUI) +p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.loadSDF("kuka_iiwa/kuka_with_gripper.sdf") p.loadURDF("tray/tray.urdf", [0, 0, 0]) p.loadURDF("block.urdf", [0, 0, 2])