WorldViz User Forum  

Go Back   WorldViz User Forum > Precision Position Tracker (PPT)

Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Old 07-23-2009, 01:57 PM
mjabon mjabon is offline
Join Date: Jul 2007
Posts: 63
simple VRPN question

Hello. We have a problem doing the most simple thing with VRPN, which is tracking just one light on the head to move you through the world. In our old code we simply wrote:

viz.go(viz.PROMPT | (viz.HMD + viz.STEREO + viz.TRACKER))
if viz.get(viz.TRACKER):
	ppt = viz.add('vizppt.dls')
	#Average over 5 samples
	isense = viz.add('intersense.dls')
	#Set eyeheight to zero since we are getting it from the tracker
That is all we had to do.

I tried replacing it with this:

vrpn = viz.add('vrpn7.dle')
ppt = vrpn.addTracker('PPT0@HOSTNAME', 0)
Where hostname is the ip of our PPT machine. However, nothing tracks - ie the person does not move through the world. We don't get errors, the person just does not move.

Any ideas?
Reply With Quote
Old 07-23-2009, 05:06 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,461
Could you show the code you use to link the VRPN tracker to the viewpoint?

What happens when you just try to print out the data in a timer function?
def showData():
	data = tracker.getData()  # Access the raw data 
	print data                # Print the array of data 

vizact.ontimer(0, showData)
Reply With Quote
Old 08-25-2009, 11:12 PM
mjabon mjabon is offline
Join Date: Jul 2007
Posts: 63
We get data, it just does not move the person in the world. Does anyone have a simple script they could share that uses VRPN with 1 light on an HMD?
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
VRPN info sdiverdi Precision Position Tracker (PPT) 5 01-16-2011 01:00 PM
simple question? Boombay Vizard 1 07-06-2009 11:51 AM
swapPos and swapQuat with VRPN michaelrepucci Vizard 1 07-29-2008 12:27 PM
VRPN won't update Wytze Precision Position Tracker (PPT) 7 05-28-2008 08:15 AM
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 11:15 AM

All times are GMT -7. The time now is 01:22 PM.

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