#1
|
|||
|
|||
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) I tried replacing it with this: Code:
vrpn = viz.add('vrpn7.dle') ppt = vrpn.addTracker('PPT0@HOSTNAME', 0) Any ideas? Maria |
#2
|
|||
|
|||
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) |
#3
|
|||
|
|||
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?
|
|
|
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 |