WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Unusual tracker sensor setup with Vizard (https://forum.worldviz.com/showthread.php?t=4263)

Zhi 06-11-2012 02:20 PM

Unusual tracker sensor setup with Vizard
 
Hi All,

Our lab uses hiball 3000 tracking system. The hiball tracker sensor is usually attached to the top of the HMD. However, a new project requires us to attach the tracker sensor to the left side of the HMD. That is, the tracker sensor is now tilted 90 deg to the left (roll rotation only) with respect to its original orientation. My question is how to recalibrate the tracker coordinate system to the vizard coordinate system. We used the following code to calibrate the hiball tracker coordinate with the upright sensor orienation.

Code:

HeadSensor.swapPos([1,3,2])
HeadSensor.swapQuat([-1,-3,-2,4])

Is there an easy way to recalibrate the system when the sensor is rotated 90 deg to the side (i.e. now hiball pitch is vizard yaw, and hiball yaw is vizard pitch, the hiball roll is vizard roll). That is, to find out the corresponding parameters of the swapPos and swapQuat methods.

Thanks in advance.
Zhi

farshizzo 06-11-2012 05:07 PM

When linking the sensor to the viewpoint (or any other target), you can apply a .preEuler operator to undo the mount offset of the sensor:
Code:

HeadLink = viz.link(HeadSensor,viz.MainView)
HeadLink.preEuler([0,0,-90])


Zhi 06-12-2012 09:52 AM

That's really helpful! Thank you farshizzo.


All times are GMT -7. The time now is 01:42 AM.

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