Difference between revisions of "Creating your own application"

From NAMIC Wiki
Jump to: navigation, search
 
Line 1: Line 1:
The SPLOT and Slicer3 communicate through network. The SPLOT server broadcasts tracking data and Slicer3 receives them periodically. Here is the procedure to set up the communication.
+
* After NaviTrack is compiled, you will find an application '''middleware''' in your NaviTrack-build/bin directory. In most cases, you can just use '''middleware''' to pull data from a tracking device, broadcast the tracking data to network, and also receive data from the same network.
 
+
* If you need to build your own application, follow these steps:
* Change to the directory '''SPLOT/bin'''
+
** Look at NaviTrack/src/standalones/middleware.cxx
* Run SPLOT server
+
** Modify the source code
  ./opentracker_spl splotConfig.xml
+
** Re-build by running '''make''' in NaviTrack-build directory
* Start Slicer3
 
* Go to '''IGT Demo''' module
 
* Click '''Server''' tab
 
* Load the configuration file
 
* Press '''Connect''' button
 

Revision as of 15:20, 11 May 2007

Home < Creating your own application
  • After NaviTrack is compiled, you will find an application middleware in your NaviTrack-build/bin directory. In most cases, you can just use middleware to pull data from a tracking device, broadcast the tracking data to network, and also receive data from the same network.
  • If you need to build your own application, follow these steps:
    • Look at NaviTrack/src/standalones/middleware.cxx
    • Modify the source code
    • Re-build by running make in NaviTrack-build directory