Exporting data (position and orientation) via VRPN

Post Reply
gchaney33
Posts: 6
Joined: Mon Oct 08, 2012 8:58 am

Exporting data (position and orientation) via VRPN

Post by gchaney33 » Thu Oct 11, 2012 8:55 am

Hello I am using the optitrack system with flex13 cameras. I am able to track rigid bodies and stream data from them via VRPN to my virtual reality software (Vizard), however the position and orientation between optitrack and vizard are completely different. How do I sync these up to where when I turn my head to the right for example, the view in vizard turns to the right as well? It seems like the orientation between optitrack and vizard are 180 degrees different.

Thanks!

NaturalPoint - Mike
Posts: 1896
Joined: Tue Feb 01, 2011 8:41 am
Location: Corvallis, OR

Re: Exporting data (position and orientation) via VRPN

Post by NaturalPoint - Mike » Thu Oct 11, 2012 1:44 pm

Hello -

Are you using Arena or Tracking Tools? Does it look like you're simply using the wrong handed coordinate plane?

gchaney33
Posts: 6
Joined: Mon Oct 08, 2012 8:58 am

Re: Exporting data (position and orientation) via VRPN

Post by gchaney33 » Wed Oct 24, 2012 8:05 am

I am using tracking tools, but I believe that I solved this problem, however I have two more quick questions for you. I would like to orient my system so that when looking in a particular direction I want the euler angles (roll, yaw, pitch) to all output zero. I want this to be the established "starting" position for my VR training, is there a way to do this? My second question is, when walking around my virtual world, is there a way to "reset" marker positions when I run out of space to walk around in the real world? This is a hard question to ask on a forum so I understand if you need further explanation

Seth Steiling
Posts: 1366
Joined: Fri Jun 27, 2008 11:29 am
Location: Corvallis, Oregon

Re: Exporting data (position and orientation) via VRPN

Post by Seth Steiling » Wed Oct 24, 2012 11:04 am

Yaw, Pitch, and Roll are set at 0 when the rigid body is created. If at any point you want to reset to zero and create a new local orientation, you can click "reset orientation" in the trackables tab.

Your second question is a little unclear. Could you elaborate? There is no way to translate the markers upon location (or any other) trigger. They're always true to the real-world global location. You could apply a transformation matrix to the RB data, after the data leaves Tracking Tools, based on some sort of location trigger.
Marketing Manager
TrackIR | OptiTrack

gchaney33
Posts: 6
Joined: Mon Oct 08, 2012 8:58 am

Re: Exporting data (position and orientation) via VRPN

Post by gchaney33 » Wed Oct 24, 2012 11:20 am

Yes that question is tricky. I guess I could always manipulate tha data from trackin tools in vizard in order to be able to span my entire virtual world within the real world

Seth Steiling
Posts: 1366
Joined: Fri Jun 27, 2008 11:29 am
Location: Corvallis, Oregon

Re: Exporting data (position and orientation) via VRPN

Post by Seth Steiling » Wed Oct 24, 2012 12:25 pm

[quote=gchaney33]Yes that question is tricky. I guess I could always manipulate tha data from trackin tools in vizard in order to be able to span my entire virtual world within the real world[/quote]
Yeah, Tracking Tools is primarily about giving you the data--be it local or global. Any contextually-triggered transformations should happen downstream.
Marketing Manager
TrackIR | OptiTrack

Post Reply