<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div><span>Hi Özgür,<br></span></div><div style='color: rgb(0, 0, 0); font-size: 13px; font-family: "DejaVu Serif"; background-color: transparent; font-style: normal'><span><br></span></div><div style='color: rgb(0, 0, 0); font-size: 13px; background-color: transparent; font-style: normal; font-family: "DejaVu Serif"'><span>Here is my logger, output (after execution, strace.txt) and modifed NDICertusTrackerTest file . Actually I used the calls for transformation always between 500 and 1000.<br></span></div><div style='color: rgb(0, 0, 0); font-size: 13px; background-color: transparent; font-style: normal; font-family: "DejaVu Serif"'><span><br></span></div><div style='color: rgb(0, 0, 0); font-size: 13px; background-color: transparent; font-style: normal; font-family: "DejaVu Serif"'><span>Thank you
 again.<br></span></div><div> </div><div>Mit freundlichen Grüßen<br>Yusuf ÖZBEK<br></div>  <div style='font-size: 10pt; font-family: "tahoma", "new york", "times", serif'> <div style='font-size: 12pt; font-family: "times new roman", "new york", "times", serif'> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Von:</span></b> Özgür Güler <ozgur.guler.phd@gmail.com><br> <b><span style="font-weight: bold;">An:</span></b> Yusuf OEZBEK <nasil122002@yahoo.de> <br><b><span style="font-weight: bold;">CC:</span></b> igstk-users@public.kitware.com <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 12:21 Mittwoch, 6.Februar 2013<br> <b><span style="font-weight: bold;">Betreff:</span></b> Re: [IGSTK-Users] optotrak igstkNDICertusTrackerTest GetTransform problem<br> </font> </div> <br><div id="yiv1999233406"><div>Hi Yusuf, <br>
you are right, according to the logger info everything went smoothly, but there is something strange though. <br>
After starting the tracker, there are only "internalThreadedUpdate" calls but no "internalUpdateCalls". <br>
Can you test with frequency 5 and increase the transformation  calls. Currently you just ask for 10 transforamations or so. <br>
After that send me the logger output again. </div>
<div>Best, <br>
Ozgur</div>
<div class="yiv1999233406gmail_quote">On Feb 6, 2013 6:03 AM, "Yusuf OEZBEK" <<a rel="nofollow" ymailto="mailto:nasil122002@yahoo.de" target="_blank" href="mailto:nasil122002@yahoo.de">nasil122002@yahoo.de</a>> wrote:<br><blockquote class="yiv1999233406gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style='font-size: 10pt; font-family: "tahoma", "new york", "times", serif'><div><span>Hi Özgür,<br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;">
<span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span>I used this function RequestSetFrequency() in "igstkNDICertusTracker", "igstkTracker" and also in "igstNDICertusTrackerTest". But the result has unfortunately not changed. I get still no valid transformation and positions. <br>
</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span>I send you my current logger. If I am right there, there is no state with faulire in statemachine.<br>
</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;">
<span>Thank you for your help.<br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span><br></span></div><div> </div><div>Mit freundlichen Grüßen<br>
Yusuf ÖZBEK<br></div>  <div style="font-size:10pt;"> <div style="font-size:12pt;">
 <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Von:</span></b> Özgür Güler <<a rel="nofollow" ymailto="mailto:ozgur.guler.phd@gmail.com" target="_blank" href="mailto:ozgur.guler.phd@gmail.com">ozgur.guler.phd@gmail.com</a>><br> <b><span style="font-weight:bold;">An:</span></b> Yusuf OEZBEK <<a rel="nofollow" ymailto="mailto:nasil122002@yahoo.de" target="_blank" href="mailto:nasil122002@yahoo.de">nasil122002@yahoo.de</a>>
 <br><b><span style="font-weight:bold;">CC:</span></b> "<a rel="nofollow" ymailto="mailto:igstk-users@public.kitware.com" target="_blank" href="mailto:igstk-users@public.kitware.com">igstk-users@public.kitware.com</a>" <<a rel="nofollow" ymailto="mailto:igstk-users@public.kitware.com" target="_blank" href="mailto:igstk-users@public.kitware.com">igstk-users@public.kitware.com</a>> <br>
 <b><span style="font-weight:bold;">Gesendet:</span></b> 19:50 Samstag, 2.Februar 2013<br> <b><span style="font-weight:bold;">Betreff:</span></b> Re: [IGSTK-Users] optotrak igstkNDICertusTrackerTest GetTransform problem<br>
 </font> </div> <br><div><div dir="ltr">Hi Yusuf,<div>just use following function in your tracker class and set it e.g. to 10:</div><div>RequestSetFrequency( double frequencyInHz );<br></div><div><br></div><div>Let me know if this helps,</div>

<div>Ozgur</div><div><br></div></div><div><br><br><div>2013/2/1 Yusuf OEZBEK <span dir="ltr"><<a rel="nofollow" ymailto="mailto:nasil122002@yahoo.de" target="_blank" href="mailto:nasil122002@yahoo.de">nasil122002@yahoo.de</a>></span><br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:10pt;"><div><div><div style="font-size:10pt;">

<div><div><div style="font-size:10pt;"><div><span>Hi, Özgür</span></div><div><span><br></span></div><div><span>Sorry for late response.<br></span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;"><span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;">
<span>I have the OPTOTRAK System values in file "</span><span>optotrak.ini</span><span>" changed but unfortunately it has no effect for the error and I have no idea what it is and what will happen next.<br></span></div>

<div><span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span>I run the test </span><span>following:</span><span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;">

<span>./igstkTests igstkNDICertusTrackerTest /home/yusuf/workspace/NDICertusTrackerTests/loggerOutput.txt /usr/NDIoapi/ndigital/rigid/smart_01.rig /usr/NDIoapi/ndigital/settings/optotrak.ini <br><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;">

<span>Actually my optotrak,.ini file look like this:<br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;">

<span>[TLD Info]<br>realtime =drealtim.tld<br>admin    =dadmin.tld<br>sensor   =dsensor.tld<br>oscope   =oscope2.tld<br><br>[OPTOTRAK System]<br>NumberOfMarkers         =4<br>FrameFrequency          =30.000000<br>MarkerFrequency         =3500.000000<br>

DutyCycle               =0.500000<br>StroberVoltage          =8.000000<br>CollectionTime          =30.000000<br>ExternalTrigger        
 =FALSE<br>ExternalClock           =FALSE<br>StreamData              =1<br>Buffer3dFlag            =FALSE<br>ExternalSyncFlag        =FALSE<br>ExternalTriggerFlag     =FALSE<br>MarkerType              =1<br>WavelengthType          =0<br>

ModelType               =0<br>ResetTimeout                =1500<br>PropagationTimeout       =5000<br>#LinkDriver              = /usr/NDIoapi/ndigital/etherlink.so<br>LinkDriver                = /usr/NDIoapi/ndigital/usblink.so<br><br># Update the LinkDriver path according to your install.<br>

# If using usb interface use usblink.so<br># If using scsi interface use scsilink.so<br># if using pci interface use pcilink.so<br><br>[SCSI]<br>ScsiPath                 = /dev/sg0<br># If using scsilink update the ScsiPath according to your install.<br>

<br>[Ethernet Options]<br>Server Address=sscu-03040<br><br># Server address is the IP address for the Optotrak<br># System Control Unit. Edit the server address<br># according to your network.<br><br>Control Port    = 9999<br>

Data Port       =
 10000<br>Data Timeout    = 10000<br>Reset Delay    = 10000<br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;">

<span>As I said with the same settings/configurations, the sample programs already works.<br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span><br>
</span></div><div>Thank
 you!</div><div><div><br></div><div><br></div><div>Mit freundlichen Grüßen<br>Yusuf ÖZBEK<br></div>  </div><div style="font-size:10pt;">
<div> </div><div style="font-size:12pt;"><div> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Von:</span></b> Özgür Güler
 <<a rel="nofollow" ymailto="mailto:ozgur.guler.phd@gmail.com" target="_blank" href="mailto:ozgur.guler.phd@gmail.com">ozgur.guler.phd@gmail.com</a>><br> <b><span style="font-weight:bold;">An:</span></b> Yusuf OEZBEK <<a rel="nofollow" ymailto="mailto:nasil122002@yahoo.de" target="_blank" href="mailto:nasil122002@yahoo.de">nasil122002@yahoo.de</a>> <br>

<b><span style="font-weight:bold;">CC:</span></b> "<a rel="nofollow" ymailto="mailto:igstk-users@public.kitware.com" target="_blank" href="mailto:igstk-users@public.kitware.com">igstk-users@public.kitware.com</a>" <<a rel="nofollow" ymailto="mailto:igstk-users@public.kitware.com" target="_blank" href="mailto:igstk-users@public.kitware.com">igstk-users@public.kitware.com</a>> <br>

 <b><span style="font-weight:bold;">Gesendet:</span></b> 2:37 Dienstag, 15.Januar 2013<br> <b><span style="font-weight:bold;">Betreff:</span></b> Re: [IGSTK-Users] optotrak igstkNDICertusTrackerTest GetTransform problem<br>

 </font> </div></div><div><div> <br><div><div dir="ltr"><div>Hi Yusuf, <br>
please use a lower frequency for tracking and let me know if this helped.</div><div>It seems your transformation, retrieved from the tracker, expires before it gets rendered.</div><div><br></div><div>Best,</div><div>
Ozgur</div><div><br></div><div><br></div>
<div>On Jan 11, 2013 10:37 AM, "Yusuf OEZBEK" <<a rel="nofollow" ymailto="mailto:nasil122002@yahoo.de" target="_blank" href="mailto:nasil122002@yahoo.de">nasil122002@yahoo.de</a>> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div><div style="font-size:10pt;"><div><span>Hi,<br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span><br>


</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span>I wanted to run the class NDICertusTrackerTest.cxx to test optotrak tracker. But I don't get any transformations or rather positions from my tracker tool.  <br>



</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span>I am sure that all my configurations are correct. Because the sample programs of optotrak already work properly or rather I get even exact positions of tracker tool, if I run these tests .</span></div>



<div style="font-style:normal;font-size:13px;background-color:transparent;"><span>If I know correctly, the problem is in </span><span>the class igstkNDICertusTrackerTest.cxx in "SECOND IF" statement.  The program don't enters into second if statement, and thus jumps to else.  </span><span><br>



</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;">

<span>What can be the reason for this?<br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span>  <br>for(unsigned int i=0; i<5000; i++)<br>
    {<br>
    igstk::PulseGenerator::CheckTimeouts();<br><br>    TransformType   
          transform;<br>    VectorType                position;<br><br>    coordSystemAObserver->Clear();<br>    trackerTool->RequestGetTransformToParent();</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;">



<span><br>  cout<<"BEFORE FIRST IF"<<endl;<br>    if (coordSystemAObserver->GotTransform())<br>      {<br>       cout<<"IN FIRST IF"<<endl;<br>      transform = coordSystemAObserver->GetTransform();</span></div>



<div style="font-style:normal;font-size:13px;background-color:transparent;"><span><br>      if ( transform.IsValidNow() ) <br>        {<br>     cout<<"IN SECOND IF"<<endl;<br>

        position = transform.GetTranslation();<br>        std::cout << "Trackertool :" <br>                << trackerTool->GetTrackerToolIdentifier() <br>               
 << "\t\t  Position = (" << position[0]<br>                << "," << position[1] << "," << position[2]<br>                << ")" << std::endl;<br>



<br>        }<br>else{<br>     cout<<"IN ELSE"<<endl;<br> cout<<"Transform: "<< transform <<"\n"<<endl;<br>}<br>      }<br>}</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;">



<span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;"><span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;">

<span>Additional Informations:<br></span></div><div>I use OS-Linux (Fedora 16)</div><div>IGSTK version 5.0</div><div>The files "loggerOutput.txt" and
 execution-output of program "strace.txt" are in attachment</div><div><br></div><div>Thanks for any help.</div><div><br></div><div><br></div><div>Mit freundlichen Grüßen<br>Yusuf ÖZBEK</div></div></div><br>_______________________________________________<br>




Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" target="_blank" href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users</a><br></blockquote></div>
</div>
</div><br><br> </div></div></div> </div>  </div></div></div></div></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>*********************************************************************<br>

Dr. Dipl.-Ing. Özgür Güler, Bakk. techn. PhD<br><br>Research Post Doctoral Fellow<br>Children's National Medical Center<br>6th Floor Main Hospital, Room M7737L<br>111 Michigan Avenue, NW<br>Washington, DC 20010<br>Phone: <a rel="nofollow" href="">202-476-1278</a><br>

Email:  oguler [@] cnmc . org<br><br><a rel="nofollow" target="_blank" href="http://www.childrensnational.org/">www.ChildrensNational.org</a><br><a rel="nofollow" target="_blank" href="http://www.gueler.at/">www.gueler.at</a><br>
*********************************************************************<br>

</div>
</div><br><br> </div> </div>  </div></div></blockquote></div>
</div><br><br> </div> </div>  </div></body></html>