Log in or register to post comments

Marker wrapper object

May 2, 2013 - 7:38am #5

Hey guys,

I'm building an app based on the frame markers. What i would like to do, is to create an object in my logic, which wraps or associated with a certain marker (by marker index). The problem is i would like the object to hold the current(updated) pose matrix of that marker or have the ability to say "this marker is not being tracked right now".

My question is, is there a better way of doing it, than asking the QCAR::State each frame for all trackable results, and manualy updating the pose matrix of each into my wrapper object? can i hold a pointer to some other entity that will hold an "updated" pose matrix?
I've checked and found that QCAR::TrackableResult is not the same pointer each frame for the same Marker (i guess there's some sort of pool) so that's probably not it.

Any help would be appreciated!

Thanks,
Vlad

Marker wrapper object

May 2, 2013 - 8:11am #4

Hi, the State changes at every frame and all the TrackableResults pointers are changing as well (as you already discovered);

it's generally not advisable to hold any pointer across different frames, better to just "manually" copy all the matrix values into your own pose matrices.

 

Marker wrapper object

May 2, 2013 - 8:15am #3

A bit dissapointing i must say, but i understand.

So, the best practice would be to have a sort of UpdateMarkersState function at the beginning of each frame, that would update my own logic, with relevant pose matrices?

Vlad

Marker wrapper object

May 2, 2013 - 8:19am #2

Yes, well, you can implement the logic in many ways I guess, as long as you don't hold the pointers to the TrackableResult etc...

 

Marker wrapper object

May 2, 2013 - 8:22am #1

OK. 

Thanks for your help, and prompt replies.

Vlad

Log in or register to post comments