TrackingConfiguration
From IGSTK
Contents |
Introduction
This application shows how to load tracker settings from an xml file and initialize the tracker using the TrackerController class. The program receives a tracker's xml configuration file, and attempts to read it. If it is one of the supported trackers and the xml file contains valid settings a TrackerController is initialized (tracker is implicitly initialized too). This approach to loading a tracker's settings and using the TrackerController class for initialization enables program development that is independent of the tracker type that is actually used.
This method for configuring the tracking system is used by the TrackingVolumeViewer and Navigator example applications.
How to build the application
No special configuration is required to build this application.
How to run the application
TrackerConfiguration myTracker.xml
Example data
Sample xml files can be found in ${IGSTK_BINARY_DIR}/Data/TrackerConfiguration, where ${IGSTK_BINARY_DIR} is the directory in which you have built IGSTK.
