View Single Post
Old 06-17-2018, 04:08 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,462
See the notes on the Polhemus page regarding the fastrak connection. In order for Vizard to connect to the sensors, PiMgr should not be running. The following code will print out the data each frame once a connection is made.

import viz
import vizact

polhemus = viz.add('polhemus.dle') 
sensor = polhemus.addFastrak()

def printData():
	pos = sensor.getPosition()
	ori = sensor.getEuler()
	print 'pos',pos
	print 'ori',ori

Also, take a look at vizconnect for setting up up a configuration file that connects to the sensor.
Reply With Quote