Page MenuHomePhabricator

[QmitkIGTTutorial] Tracking tool bug
Closed, ResolvedPublic

Description

There are two minor bugs in the QmitkIGTTutorialView.

Apparently, the way to add tools has been changed. The current version (below):


mitk::NDITrackingDevice::Pointer tracker = mitk::NDITrackingDevice::New();

mitk::NDIPassiveTool::Pointer tool = mitk::NDIPassiveTool::New();
tool->SetToolName("MyInstrument"); //Every tool should have a name.
tool->LoadSROMFile("D:/Polaris-Toolfiles/NDI_Probe_Y_Small.rom");
tracker->Add6DTool(tool); //Add the tool to the TrackingDevice object.

... must be replaced by:


tracker->AddTool("MediumTrackingTool", "D:/Polaris-Toolfiles/NDI_Probe_X_Medium.rom");

This compile error usually does not appear because it is commented out.
A better solution would be to provide two buttons:
1.) Virtual Tracking Device
2.) NDIPolaris
and to split up the code from OnStartIGT() into two methods.

Furthermore, the Global Reinit is missing on the VirtualTrackingDevice version after pushing the "Start Tracking" button. The cone is only visible after applying a Global Reinit on the tracking tool in the DataManager GUI.

Event Timeline

New remote branch pushed: bug-15854-QmitkIGTTutorial_Tracking_Tool

[3bcfc7]: Merge branch 'bug-15854-QmitkIGTTutorial_Tracking_Tool'

Merged commits:

2013-08-14 15:55:05 Sandy Engelhardt [f9c981]
changing call of "Add Tool" in Tutorial

A radiobutton has been provided to choose between Virtual Tracking Device and NDI Tracking Device.