From 74977abdceef89abc865ddf17c7269aa8bd5c782 Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:38:36 +0530 Subject: [PATCH] Update vrhand_vive_tracker.py --- examples/pybullet/examples/vrhand_vive_tracker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/pybullet/examples/vrhand_vive_tracker.py b/examples/pybullet/examples/vrhand_vive_tracker.py index 9fc3c3988..de382d7f9 100644 --- a/examples/pybullet/examples/vrhand_vive_tracker.py +++ b/examples/pybullet/examples/vrhand_vive_tracker.py @@ -8,12 +8,14 @@ import serial import time import pybullet as p +import pybullet_data #first try to connect to shared memory (VR), if it fails use local GUI c = p.connect(p.SHARED_MEMORY) if (c < 0): c = p.connect(p.GUI) +p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.setInternalSimFlags(0) #don't load default robot assets etc p.resetSimulation()