From 9c773edd0e9b09b8e9c5257f648cdf40839e78dc Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:38:09 +0530 Subject: [PATCH] Update vrhand.py --- examples/pybullet/examples/vrhand.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/pybullet/examples/vrhand.py b/examples/pybullet/examples/vrhand.py index 298957e71..3fc0981f3 100644 --- a/examples/pybullet/examples/vrhand.py +++ b/examples/pybullet/examples/vrhand.py @@ -8,12 +8,15 @@ 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.resetSimulation() + +p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.setGravity(0, 0, -10) print(c) if (c < 0):