NaviTrack Tutorial:Integrating:Passing coordinates data
From NAMIC Wiki
Home < NaviTrack Tutorial:Integrating:Passing coordinates data
Contents
What you need to do
- Modify your application to push and pull NaviTrack events cyclically with certain interval.
- Create NaviTrack module to provide a node that can be accessed by you application.
- Create NaviTrack configuration XML file to build tree structure of data flow.
Sending side
Modify MyTutorialModule
pushpos.cxx
Receiving side
Modify MyTutorialSink
pullpos.cxx
Testing
Let's try to send position data from pushpos to pullpos program through network.
tutorial_source.xml (for pushpos)
tutorial_sink.xml (for pullpos)
Run the programs
Open two terminals and go to the directory where the programs exists.
Terminal 1 (pushpos: sending side)
$ ./pushpos tutorial_source.xml
Terminal 2 (pullpos: receiving side)
$ ./pullpos tutorial_sink.xml
Back to Integrating into your application.