Jump to content
 
Sign in to follow this  
chengnay

How to get pose from VIVE tracker?

Recommended Posts

Hi, 

We are a group of students currently working on a project. one of the things we need for our project is to get the rotational and positional location of the tracker not the controller.
We have tried multiple tutorials and steamvr etc to no avail.

We also went over the trackers guide for developers, but also there the positional data we were getting was of the headset, not the tracker.

 

Please could you help us and tell us the easiest way that we can get the position of the tracker in given times.

That by sending a command through unity or a c# script how can we get the above data at a certain time?.

 

 

Thanks in advance.

From,

ar.project.adl@gmail.com

Share this post


Link to post
Share on other sites

I assume your project imported latest SteamVR Plugin and VIU v1.10.4, am I right?

Did you follow the instructions to correctly create htc_viu action set?

If not, please check out this wiki page.

 

You can get position and rotation by below c# script.

VivePose.GetPoseEx(TrackerRole.Tracker1).pos -> position

VivePose.GetPoseEx(TrackerRole.Tracker1).rot -> rotation

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...