NaviTrack Tutorial:Integrating:Passing coordinates data

From NAMIC Wiki
Jump to: navigation, search
Home < NaviTrack Tutorial:Integrating:Passing coordinates data

What you need to do

  1. Modify your application to push and pull NaviTrack events cyclically with certain interval.
  2. Create NaviTrack module to provide a node that can be accessed by you application.
  3. 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.

Configure NaviTrack XML files

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.