Razer Hydra as Head Tracking - Orientation+Position

146 views
Skip to first unread message

Danilo Souza

unread,
Apr 18, 2013, 10:25:01 AM4/18/13
to vrjuggler...@googlegroups.com
Hello,

I'm trying to setup a razer hydra as a head tracking device but i'm having a really hard time to compute the correct transformations to apply on the input manager/device. I tried reading the config guide (pages 27 to 33) and been playing with some pencil, paper and the pre/pos-rotation values, but i'm still confused about what i should do to make it work properly.
What I want to do is to place the controller on the left side of the head, with the buttons facing back and the cord going down(trigger pointing up). I'm able to get proper input for the orientation, but can't set the position right moving the controler to the left, translate my scene to the right, up goes down and going forth goes back..

So far, the setup that works for the orientation is:

<vrpn name="HydraDevice" version="2">
         <tracker_server>Hydra0@VRPNSERVER</tracker_server>
              (...)
<position_filters>
            <position_transform_filter name="Position Transform 0" version="1">
               <pre_translate>0.0</pre_translate>
               <pre_translate>0.0</pre_translate>
               <pre_translate>0.0</pre_translate>
               <pre_rotation>0.0</pre_rotation>
               <pre_rotation>180.0</pre_rotation>
               <pre_rotation>0.0</pre_rotation>


If someone could enlighten me on the pre/pos (on the device and on the input manager) difference and perhaps help me solve my problem, i would be very thankful.

Using: VR Juggler 3 + OSG Application --


Message has been deleted

Danilo Souza

unread,
Apr 19, 2013, 5:48:07 PM4/19/13
to vrjuggler...@googlegroups.com
Ok, it's working now... it was just a problem during calibration.
But i've found a strange behavior on the handling of analogic input...it seems the Max and Min attributes are not working properly, On the VRPN the analogic data is showing proper, between -1 to 1, but on a test application (just reading the gadget input) it keeps on an weird interval between 0.4xxxx and 0.5xxxx (mind the x as a number since i don't have the exact value now) but my configuration is expliciting the <min>-1.0</min> and <max>1</max>.
I've tested with the hydra analogics and a wiimote nunchuk and both report the same weird interval...

Danilo
Reply all
Reply to author
Forward
0 new messages