#Once the user is facing PPT north pressing the 'r' key will align
#Intersense's coordinate system with PPT's coordinate system
vizact.onkeydown ('r', oriTracker.reset)
data=headlink.getData()
print data

Jeff

01-23-2013, 11:35 AM

How many markers are being streamed from PPT? What is the marker number for the wand?

piyush

01-23-2013, 10:25 PM

two markers... numbered 0 and 1

Jeff

01-24-2013, 05:27 PM

It looks like your code is just getting a handle to VRPN sensor 0, which corresponds to marker 1 in PPT Studio.

If you add the following code to your script do you see the axis model move with the wand:
import vizshape
axis =vizshape.addAxes(length=0.1)
wandTracker = vrpn.addTracker('PPT0@WORLDVIZ-PC',1)
viz.link(wandTracker,axis)

piyush

01-24-2013, 09:19 PM

No..it still doesnt work.
Why dont we first try for only one tracker.
Assist the required changes for only one tracker as a start, rest can b added in similar way