[IGSTK-Users] optotrak igstkNDICertusTrackerTest GetTransform problem

Yusuf OEZBEK nasil122002 at yahoo.de
Fri Mar 8 12:47:57 EST 2013


Hi Özgür,


The problem would be the value of conditions in for loop in the class "igstkNDICertusTrackerTest.cxx". If I remember correctly it was 500 as default. There must be at least 10,000 or more, so the iterator in method "InternalUpdateStatus" in class "igstkNDICertusTracker.cxx" is filled and we get a valid transformation.


Thanks for your help. 

 
Mit freundlichen Grüßen
Yusuf ÖZBEK


________________________________
 Von: Özgür Güler <ozgur.guler.phd at gmail.com>
An: Yusuf OEZBEK <nasil122002 at yahoo.de> 
CC: "igstk-users at public.kitware.com" <igstk-users at public.kitware.com> 
Gesendet: 18:09 Freitag, 8.Februar 2013
Betreff: Re: [IGSTK-Users] optotrak igstkNDICertusTrackerTest GetTransform problem
 

Hi Yusuf, 
the strange thing in your logfile is that "InternalUpdateStatus" is not called once, therefore you don't get any transform which is valid. Could you please try to debug it.

Best,
Ozgur



2013/2/6 Yusuf OEZBEK <nasil122002 at yahoo.de>

Hi Özgür,
>
>
>
>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.
>
>
>
>Thank you again.
>
> 
>Mit freundlichen Grüßen
>Yusuf ÖZBEK
>
>
>________________________________
> Von: Özgür Güler <ozgur.guler.phd at gmail.com>
>An: Yusuf OEZBEK <nasil122002 at yahoo.de> 
>CC: igstk-users at public.kitware.com 
>Gesendet: 12:21 Mittwoch, 6.Februar 2013
>
>Betreff: Re: [IGSTK-Users] optotrak igstkNDICertusTrackerTest GetTransform problem
> 
>
>
>Hi Yusuf, 
>you are right, according to the logger info everything went smoothly, but there is something strange though. 
>After starting the tracker, there are only "internalThreadedUpdate" calls but no "internalUpdateCalls". 
>Can you test with frequency 5 and increase the transformation  calls. Currently you just ask for 10 transforamations or so. 
>After that send me the logger output again. 
>Best, 
>Ozgur
>On Feb 6, 2013 6:03 AM, "Yusuf OEZBEK" <nasil122002 at yahoo.de> wrote:
>
>Hi Özgür,
>>
>>
>>
>>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. 
>>
>>I send you my current logger. If I am right there, there is no state with faulire in statemachine.
>>
>>
>>
>>Thank you for your help.
>>
>>
>>
>> 
>>Mit freundlichen Grüßen
>>Yusuf ÖZBEK
>>
>>
>>________________________________
>> Von: Özgür Güler <ozgur.guler.phd at gmail.com>
>>An: Yusuf OEZBEK <nasil122002 at yahoo.de> 
>>CC: "igstk-users at public.kitware.com" <igstk-users at public.kitware.com> 
>>Gesendet: 19:50 Samstag, 2.Februar 2013
>>Betreff: Re: [IGSTK-Users] optotrak igstkNDICertusTrackerTest GetTransform problem
>> 
>>
>>Hi Yusuf,
>>just use following function in your tracker class and set it e.g. to 10:
>>RequestSetFrequency( double frequencyInHz );
>>
>>
>>
>>Let me know if this helps,
>>Ozgur
>>
>>
>>
>>
>>
>>2013/2/1 Yusuf OEZBEK <nasil122002 at yahoo.de>
>>
>>Hi, Özgür
>>>
>>>
>>>Sorry for late response.
>>>
>>>
>>>
>>>I have the OPTOTRAK System values in file "optotrak.ini" changed but unfortunately it has no effect for the error and I have no idea what it is and what will happen next.
>>>
>>>
>>>
>>>I run the test following:
>>>
>>>./igstkTests igstkNDICertusTrackerTest /home/yusuf/workspace/NDICertusTrackerTests/loggerOutput.txt /usr/NDIoapi/ndigital/rigid/smart_01.rig /usr/NDIoapi/ndigital/settings/optotrak.ini 
>>>
>>>
>>>Actually my optotrak,.ini file look like this:
>>>
>>>
>>>
>>>[TLD Info]
>>>realtime =drealtim.tld
>>>admin    =dadmin.tld
>>>sensor   =dsensor.tld
>>>oscope   =oscope2.tld
>>>
>>>[OPTOTRAK System]
>>>NumberOfMarkers         =4
>>>FrameFrequency          =30.000000
>>>MarkerFrequency         =3500.000000
>>>DutyCycle               =0.500000
>>>StroberVoltage          =8.000000
>>>CollectionTime          =30.000000
>>>ExternalTrigger        
 =FALSE
>>>ExternalClock           =FALSE
>>>StreamData              =1
>>>Buffer3dFlag            =FALSE
>>>ExternalSyncFlag        =FALSE
>>>ExternalTriggerFlag     =FALSE
>>>MarkerType              =1
>>>WavelengthType          =0
>>>ModelType               =0
>>>ResetTimeout		=1500
>>>PropagationTimeout	=5000
>>>#LinkDriver		= /usr/NDIoapi/ndigital/etherlink.so
>>>LinkDriver		= /usr/NDIoapi/ndigital/usblink.so
>>>
>>># Update the LinkDriver path according to your install.
>>># If using usb interface use usblink.so
>>># If using scsi interface use scsilink.so
>>># if using pci interface use pcilink.so
>>>
>>>[SCSI]
>>>ScsiPath 		= /dev/sg0
>>># If using scsilink update the ScsiPath according to your install.
>>>
>>>[Ethernet Options]
>>>Server Address=sscu-03040
>>>
>>># Server address is the IP address for the Optotrak
>>># System Control Unit. Edit the server address
>>># according to your network.
>>>
>>>Control Port	= 9999
>>>Data Port	=
 10000
>>>Data Timeout	= 10000
>>>Reset Delay	= 10000
>>>
>>>
>>>
>>>As I said with the same settings/configurations, the sample programs already works.
>>>
>>>
>>>
>>>Thank you!
>>>
>>>
>>>
>>>
>>>Mit freundlichen Grüßen
>>>Yusuf ÖZBEK
>>>
>>>
>>>________________________________
>>> Von: Özgür Güler <ozgur.guler.phd at gmail.com>
>>>An: Yusuf OEZBEK <nasil122002 at yahoo.de> 
>>>CC: "igstk-users at public.kitware.com" <igstk-users at public.kitware.com> 
>>>Gesendet: 2:37 Dienstag, 15.Januar 2013
>>>Betreff: Re: [IGSTK-Users] optotrak igstkNDICertusTrackerTest GetTransform problem
>>> 
>>>
>>>
>>>Hi Yusuf, 
>>>please use a lower frequency for tracking and let me know if this helped.
>>>It seems your transformation, retrieved from the tracker, expires before it gets rendered.
>>>
>>>
>>>Best,
>>>Ozgur
>>>
>>>
>>>
>>>
>>>On Jan 11, 2013 10:37 AM, "Yusuf OEZBEK" <nasil122002 at yahoo.de> wrote:
>>>
>>>Hi,
>>>>
>>>>
>>>>
>>>>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.  
>>>>
>>>>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 .
>>>>If I know correctly, the problem is in the class igstkNDICertusTrackerTest.cxx in "SECOND IF" statement.  The program don't enters into second if statement, and thus jumps to else.  
>>>>
>>>>
>>>>
>>>>What can be the reason for this?
>>>>
>>>>
>>>>for(unsigned int i=0; i<5000; i++)
>>>>{
>>>>igstk::PulseGenerator::CheckTimeouts();
>>>>
>>>>TransformType   
          transform;
>>>>VectorType                position;
>>>>
>>>>coordSystemAObserver->Clear();
>>>>trackerTool->RequestGetTransformToParent();
>>>>
>>>>cout<<"BEFORE FIRST IF"<<endl;
>>>>if (coordSystemAObserver->GotTransform())
>>>>{
>>>>cout<<"IN FIRST IF"<<endl;
>>>>transform = coordSystemAObserver->GetTransform();
>>>>
>>>>if ( transform.IsValidNow() ) 
>>>>{
>>>>cout<<"IN SECOND IF"<<endl;
>>>>position = transform.GetTranslation();
>>>>std::cout << "Trackertool :" 
>>>><< trackerTool->GetTrackerToolIdentifier() 
>>>><< "\t\t  Position = (" << position[0]
>>>><< "," << position[1] << "," << position[2]
>>>><< ")" << std::endl;
>>>>
>>>>}
>>>>else{
>>>>cout<<"IN ELSE"<<endl;
>>>>cout<<"Transform: "<< transform <<"\n"<<endl;
>>>>}
>>>>}
>>>>}
>>>>
>>>>
>>>>
>>>>
>>>>Additional Informations:
>>>>
>>>>I use OS-Linux (Fedora 16)
>>>>IGSTK version 5.0
>>>>The files "loggerOutput.txt" and execution-output of program "strace.txt" are in attachment
>>>>
>>>>
>>>>Thanks for any help.
>>>>
>>>>
>>>>
>>>>
>>>>Mit freundlichen Grüßen
>>>>Yusuf ÖZBEK
>>>>_______________________________________________
>>>>Powered by www.kitware.com
>>>>
>>>>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>>
>>>>Follow this link to subscribe/unsubscribe:
>>>>http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>>>>
>>>
>>>
>>
>>
>>
>>-- 
>>*********************************************************************
>>Dr. Dipl.-Ing. Özgür Güler, Bakk. techn. PhD
>>
>>Research Post Doctoral Fellow
>>Children's National Medical Center
>>6th Floor Main Hospital, Room M7737L
>>111 Michigan Avenue, NW
>>Washington, DC 20010
>>Phone: 202-476-1278
>>Email:  oguler [@] cnmc . org
>>
>>www.ChildrensNational.org
>>www.gueler.at
>>*********************************************************************
>>
>>
>>
>
>


-- 
*********************************************************************
Dr. Dipl.-Ing. Özgür Güler, Bakk. techn. PhD

Research Post Doctoral Fellow
Children's National Medical Center
6th Floor Main Hospital, Room M7737L
111 Michigan Avenue, NW
Washington, DC 20010
Phone: 202-476-1278
Email:  oguler [@] cnmc . org

www.ChildrensNational.org
www.gueler.at
*********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20130308/21c160b1/attachment.html>


More information about the IGSTK-Users mailing list