#1
|
|||
|
|||
Polhemus Fastrak Vizard
import viz
polhemus = viz.add('polhemus.dle') sensor = polhemus.addFastrak() data = sensor.getData() print(data) -------------------------------------- getData() function returns empty list. I wish to interact with a virtual environment made in Vizard. I am using polhemus fastrak. Please provide step by step guide to interface sensor with vizard. |
#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) |
#3
|
|||
|
|||
thank you!
I am facing one more issue. Vizard movements are not the same as my movement along x,y,z in physical world. Is there some calibration required. How do I do it? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Polhemus FasTrak Error Message | JB_HP_Viz | Vizard | 4 | 08-15-2014 09:32 AM |
Polhemus Fastrak | williamchappell | Vizard | 11 | 09-28-2013 08:49 AM |
Vizard 4 Beta Testing | farshizzo | Announcements | 0 | 02-01-2011 10:46 AM |
Vizard 4 Beta Testing | farshizzo | Vizard | 0 | 02-01-2011 10:46 AM |
Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 11:13 AM |