View Single Post
  #2  
Old 06-17-2018, 04:08 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.

Code:
import viz
import vizact
viz.go()

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

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

vizact.onupdate(0,printData)
Also, take a look at vizconnect for setting up up a configuration file that connects to the sensor.
Reply With Quote