WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
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()
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.
Reply With Quote
  #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
  #3  
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
Reply

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 04:40 AM.


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