View Full Version : passing coordinates
piyush
04-10-2013, 12:05 AM
how to pass the coordinates of position of sensor from 
PPT to vizard file.?
First get a handle to the PPT tracker in Vizard via VRPN:
vrpn = viz.add('vrpn7.dle')
tracker = vrpn.addTracker('PPT0@hostname',0)
Then you can print the position data every frame or write it to a text file:
def printPPTData():
	print tracker.getPosition()
	
vizact.onupdate(0,printPPTData)
vBulletin® v3.8.7, Copyright ©2000-2025, vBulletin Solutions, Inc.