Hi,<div><br></div><div>I have a Polaris tracker with 4 tracking tools attached to it.</div><div>During the tracking update look I use " tracker_tool->RequestGetTransformToParent() "</div><div>to get the transform. See the pseudo-code below for details.</div>
<div><br></div><div><div>How do I make sure that the transform received for all the Tracker tool objects is from the same</div><div>frame. Polaris frames have a unique frame number for each tracking data, which I could probably use. Is there any way to access it ?</div>
<div><br></div></div><div><br></div><div>UpdateLoop()</div><div>{</div><div><br></div><div> // Update Tool 1</div><div><div> tracker_tool1->RequestGetTransformToParent();</div><div> if (coordObserver1->GotTransform()) <br>
{ </div><div> TransformType transform;</div><div> transform = coordObserver1->GetTransform();</div><div> if ((is_visible = transform.IsValidNow())) <br> {</div>
<div> copy transform data</div><div> }</div><div> }</div><div><br></div><div><br></div><div><br></div><div><br></div><div> // Update Tool 2</div><div><div> tracker_tool2->RequestGetTransformToParent();</div>
<div> if (coordObserver2->GotTransform()) <br> { </div><div> TransformType transform;</div><div> transform = coordObserver2->GetTransform();</div><div> if ((is_visible = transform.IsValidNow())) <br>
{</div><div> copy transform data</div><div> }</div><div> }</div><div><br></div></div><div><br></div><div><br></div><div> .... update other tools </div>
<div> }</div></div><div><br></div><div><br></div><div>here, coordObserver is an igstk::TransformObserver</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div><br></div><div><br></div>
<div>Thanks,</div><div>Somi</div>