OpenIGTLink/Simulators

From NAMIC Wiki
Jump to: navigation, search
Home < OpenIGTLink < Simulators

Tracker Simulator for Testing Open IGT Link

To test the Open IGT Link module (or other Open-IGT-Link-complaint devices and software), tracking simulator software is provided. This software simply sends dummy coordinate data to the server with specified frame rate. You can either obtain the software as a binary code or build from source.

From binaries

Obtain a binary file for your environment.

From Source

To get the source code, run following commands:

$ mkdir <working directory>
$ svn co http://svn.na-mic.org/NAMICSandBox/trunk/BRPTools/ScannerIO ScannerIO

Then configure the source code

$ cd ScannerIO
$ ccmake .

Usually, you don't need to change any setting. Just press 'c' key by 'g' key to generate Makefiles. Press 'q' to quit the ccmake interface. Now you are ready to build the program.

$ make

The executable file TrackerSim can be found in ScannerIO/bin directory.


Testing Open IGT Link Module -- Show Tracking Device in the 3D Space

Set up Open IGT Link Module

  1. Select "OpenIGTLink" from "Modules:" menu
  2. Open "Connector Browser" frame, and press "Add" button below the "Connectors" list to add a new connector
  3. Configure and start the connector. Choose "Server" check box in the "Type" option, then clinck "Active" check box. Now the Slicer is ready to accept connections through Open IGT Link.

Run Tracker Simulator

To send dummy coordinate data to the Slicer running on localhost with frame rate of 10 fps, run:

$ ./TrackerSim  10  c  localhost 18944

Visualize Tracker Position

To see the coordinate from the Tracker Simulator,

  1. Open "Visualization / Slice Control" frame in the OpenIGTLink module interface.
  2. Click the "Show Locator" check button. A locator model shows up on the 3D viewer.
  3. Open "Data" module. Choose "Data" from "Modules:" menu.
  4. Edit MRML tree. Put "IGTLocator" under the "Tracker" by dragging "IGTLocator" node.
  5. You should see the locator model moves in the 3D viewer.


Testing Open IGT Link Module -- Reslice 3D image

We can reslice 3D image according to the locator position with following steps:

  1. Load 3D volume from the "Volumes" module.
  2. Start Tracking as we did in the previous section.
  3. In the "Visualization / Slice Control" frame in the OpenIGTLink module interface, click Red menu and choose "Locator".
  4. The image in the left 2D slice viewer (Red) should start to move. You can change the orientation by changing slice orientation menu in the 2D slice viewer.
  5. If you click the "Oblique" check button in the "Visualization / Slicer Control" frame, the slice orientation is set according to the locator orientation.
  6. You can use other 2D viewers (Yellow and Green) by choosing "Locator" from the Yellow and Green menu in the "Visualization / Slice Control" frame.