![]() |
|
#2
|
|||
|
|||
|
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)
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Polhemus FasTrak Error Message | JB_HP_Viz | Vizard | 4 | 08-15-2014 10:32 AM |
| Polhemus Fastrak | williamchappell | Vizard | 11 | 09-28-2013 09:49 AM |
| Vizard 4 Beta Testing | farshizzo | Announcements | 0 | 02-01-2011 11:46 AM |
| Vizard 4 Beta Testing | farshizzo | Vizard | 0 | 02-01-2011 11:46 AM |
| Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 12:13 PM |