View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011331IGSTKIGSTKpublic2010-10-19 05:022010-10-19 05:02
Reporterzhang xiaodong 
Assigned ToPatrick Cheng 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusassignedResolutionopen 
PlatformOSOS Version
Summary0011331: a bug when navigating with NDI polaris spectra tracker
DescriptionRecently, we are using NDI Polaris Hybrid tracker to navigate in our system with the igstk "navigator" example. The version of isgtk is 4.2 and the operation system is windows XP sp3, 32 bit. After configuration and initialization, the NDI ploris spectra does not work. According to a solution on the net as below:

//INIT before PHRQ
commandInterpreter->INIT(); //Add the code here
 
// request port handle using PHRQ
commandInterpreter->PHRQ("********", // device number
"*", // TIU or SCU
"1", // wireless
"**", // port
"**"); // channel
if (this->CheckError(commandInterpreter) =3D=3D FAILURE)
{
return FAILURE;
}

ph = commandInterpreter->GetPHRQHandle();

the code "commandInterpreter->INIT();" is added before the PHRQ command in the function "VerifyTrackerToolInformation" of igstkPolarisTracker.cxx. It worked well. However, the transform of tracking tools are wrong. So we debug the function step by step and find that ph = 1 every time. It indicates that INIT() resets the ph parameter to 1 and GetPHRQHandle() always gets 1 as ph of current tool when the current tool is attached to the tracker. No matter how many wireless tools are used, it only treats as one tool. So "commandInterpreter->INIT()" can not be added here. So we add it to the igstkNDITrakcer.cxx in the function InternalOpen():

NDITracker::ResultType NDITracker::InternalOpen( void )
{
  ...............


  commandInterpreter->INIT(); // add it here
  return result;

}

Then the phs for the different tools are right and the system works well.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
There are no notes attached to this issue.

 Issue History
Date Modified Username Field Change
2010-10-19 05:02 zhang xiaodong New Issue
2010-10-19 05:02 zhang xiaodong Status new => assigned
2010-10-19 05:02 zhang xiaodong Assigned To => Patrick Cheng


Copyright © 2000 - 2018 MantisBT Team