WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   swapPos and swapQuat with VRPN (https://forum.worldviz.com/showthread.php?t=1581)

michaelrepucci 07-29-2008 08:11 AM

swapPos and swapQuat with VRPN
 
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.


All times are GMT -7. The time now is 08:03 AM.

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