[IGSTK-Users] optotrak igstkNDICertusTrackerTest GetTransform problem
Yusuf OEZBEK
nasil122002 at yahoo.de
Fri Feb 1 07:39:33 EST 2013
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20130201/18111a71/attachment-0001.html>
More information about the IGSTK-Users
mailing list