Update vrEvent.py

This commit is contained in:
NiranthS
2020-04-23 23:35:43 +05:30
committed by GitHub
parent fcc862dc34
commit ab48affbd0

View File

@@ -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")