Log in or register to post comments

How can I get target position?

December 20, 2013 - 6:34am #1

Hello everybody:

I look at the "UserDefinedTargets" this example on the Eclipse.

I want to know how can I get the target's postion?

Because I can't see something about target's position code on this example.

Thank you so much!

How can I get target position?

December 21, 2013 - 7:53am #3

Dear AlessandroB:

First, thanks your help.

I found I use the  old sdk version. (2.6.7)

And then I update my sdk to 2.8.8 version.

I found the getPose() method of the TrackableResult class.

I want to know is there any example about the getPose() method?

 

Thanks!

 

How can I get target position?

December 20, 2013 - 8:11am #2

The target position can be extracted from the target Pose; if you search the code for the "getPose()" method of the TrackableResult class, you'll find where this is called;

then, from the pose you can get the position following the maths explained here:

https://developer.vuforia.com/resources/dev-guide/pose-matrix-explained

See also the API reference about TrackabelResult and getPose:

https://developer.vuforia.com/resources/api/classcom_1_1qualcomm_1_1vuforia_1_1_trackable_result

 

Log in or register to post comments