From ab48affbd007b53b23b3bdb3d8fa8f0540cfe274 Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:35:43 +0530 Subject: [PATCH] Update vrEvent.py --- examples/pybullet/examples/vrEvent.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/pybullet/examples/vrEvent.py b/examples/pybullet/examples/vrEvent.py index 562b37cc0..068b02552 100644 --- a/examples/pybullet/examples/vrEvent.py +++ b/examples/pybullet/examples/vrEvent.py @@ -4,6 +4,7 @@ # Line width can be changed import pybullet as p +import pybullet_data CONTROLLER_ID = 0 POSITION = 1 @@ -13,11 +14,14 @@ BUTTONS = 6 ANALOG_AXIS = 8 #assume that the VR physics server is already started before + c = p.connect(p.SHARED_MEMORY) print(c) if (c < 0): p.connect(p.GUI) +p.setAdditionalSearchPath(pybullet_data.getDataPath()) + p.setInternalSimFlags(0) #don't load default robot assets etc p.resetSimulation() p.loadURDF("plane.urdf")