WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 06-15-2018, 04:43 AM
harshad harshad is offline
Registered User
Join Date: Jun 2018
Posts: 2
Polhemus Fastrak Vizard

import viz
polhemus = viz.add('polhemus.dle')
sensor = polhemus.addFastrak()
data = sensor.getData()


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.
Reply With Quote
Old 06-17-2018, 04:08 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,465
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
Old 06-19-2018, 02:11 AM
harshad harshad is offline
Registered User
Join Date: Jun 2018
Posts: 2
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?
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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

All times are GMT -7. The time now is 08:48 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC