PDA

View Full Version : swapPos and swapQuat with VRPN


michaelrepucci
07-29-2008, 08:11 AM
If I understand correctly, when you load a VRPN tracker it has all the same methods as any position sensor (e.g., getPosition, getData, getEuler), and additionally provides the methods swapPos and swapQuat. How are these latter two methods different than the same-named methods of a link object?

Specifically, if I add my VRPN tracker

vrpn = viz.add('vrpn7.dle')
tracker = vrpn.addTracker('Tracker0@hiball')

and link it to the main view

trackerLink = viz.link(tracker,viz.MainView)

is tracker.swapPos the same as trackerLink.swapPos (and also swapQuat)?

Thanks for your help!

farshizzo
07-29-2008, 11:27 AM
These methods do exactly the same thing. They were added to the VRPN objects for convenience since VRPN does not enforce a single reference frame.