[IGSTK-Users] reg Polaris Spectra tracker
somi
seesomi at gmail.com
Tue Nov 9 10:58:38 EST 2010
Hi,
I have a Polaris tracker with 4 tracking tools attached to it.
During the tracking update look I use "
tracker_tool->RequestGetTransformToParent() "
to get the transform. See the pseudo-code below for details.
How do I make sure that the transform received for all the Tracker tool
objects is from the same
frame. Polaris frames have a unique frame number for each tracking data,
which I could probably use. Is there any way to access it ?
UpdateLoop()
{
// Update Tool 1
tracker_tool1->RequestGetTransformToParent();
if (coordObserver1->GotTransform())
{
TransformType transform;
transform = coordObserver1->GetTransform();
if ((is_visible = transform.IsValidNow()))
{
copy transform data
}
}
// Update Tool 2
tracker_tool2->RequestGetTransformToParent();
if (coordObserver2->GotTransform())
{
TransformType transform;
transform = coordObserver2->GetTransform();
if ((is_visible = transform.IsValidNow()))
{
copy transform data
}
}
.... update other tools
}
here, coordObserver is an igstk::TransformObserver
Thanks,
Somi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20101109/43fbfb72/attachment.html>
More information about the IGSTK-Users
mailing list