WorldViz User Forum  

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

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 07-23-2009, 01:57 PM
mjabon mjabon is offline
Member
 
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:

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

I tried replacing it with this:

Code:
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?
Maria
Reply With Quote
  #2  
Old 07-23-2009, 05:06 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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?
Code:
def showData():
	data = tracker.getData()  # Access the raw data 
	print data                # Print the array of data 

vizact.ontimer(0, showData)
Reply With Quote
  #3  
Old 08-25-2009, 11:12 PM
mjabon mjabon is offline
Member
 
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
Reply


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 08:53 AM.


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