<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Fabian,</div><div><br></div><div>I don't know if there is a direct function to query that transformation, but it is very easy to calculate since it is only one coordinate system transformation, e.g. a simple matrix multiplication.</div><div><br></div><div>To obtain ultrasoundTool in the coordinate system of referenceTool, simply multiply the inverse of referenceTool with ultrasoundTool, given that both transformations are represented by their 4x4 matrices.</div><div><br><div style="font-family: UICTFontTextStyleBody; -webkit-text-size-adjust: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Cheers,</div><div style="font-family: UICTFontTextStyleBody; -webkit-text-size-adjust: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span style="background-color: rgba(255, 255, 255, 0);">Philipp</span></div><div style="font-family: UICTFontTextStyleBody; -webkit-text-size-adjust: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div style="font-family: UICTFontTextStyleBody; -webkit-text-size-adjust: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span style="background-color: rgba(255, 255, 255, 0);">---<br>Dipl.-Phys. Univ. Philipp Matthies<br>Research Assistant<br>Computer Aided Medical Procedures (CAMP)<br>Technische Universität München, Germany<br>Tel.: <a href="tel:+49%20(89)%20289-19401" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="6/0" style="color: purple;">+49 (89) 289-19401</a><br><a href="http://campar.in.tum.de/Main/PhilippMatthies" style="color: purple;">http://campar.in.tum.de/Main/PhilippMatthies</a></span></div></div><div><br>Am 02.12.2013 um 19:03 schrieb Fabian Torres <<a href="mailto:fabian.trobles@gmail.com">fabian.trobles@gmail.com</a>>:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi. I would like to know If i can get the transform of a tracked tool with respect to another tool.<div><br></div><div>I have two tracked tools in my program attached to the same tracker</div><div><br></div>
<div>referenceTool and ultrasoundTool</div><div><br></div><div>I am using my reference tool as my scene origin</div><div><br></div><div>View1->RequestSetTransformAndParent(identityTransform, referenceTool);<br></div><div>
<br></div><div>But I want this reference tool to also be the origin for the coordinates of my other tool (ultrasoundTool)</div><div>When I ask GetTransform() for the ultrasound probe tool I obtain its transform with respect to the tracker coordinate system, but I want to obtain the transform with respect to the reference tool coordinate system.</div>
<div><br></div><div>Is there a way ti do this. I have try using</div><div><br></div><div>ultrasoundProbe->RequestSetTransformAndParent(identityTransform,referenceTool);</div><div><br></div><div>but this does not work.</div>
<div><br></div><div>Thanks for your help</div><div><br></div><div><br clear="all"><div><br></div>-- <br>Fabián Torres Robles<br>Maestria en Ciencias en Ingeniería Electrónica<br>Ingeniería en Sistemas Electrónicos<br>tel. 58081280, 0445534661338<br>
e-mail <a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>, <a href="mailto:dae.wong@gmail.com" target="_blank">dae.wong@gmail.com</a>  <div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Powered by <a href="http://www.kitware.com">www.kitware.com</a></span><br><span></span><br><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users</a></span></div></blockquote></body></html>