Difference between revisions of "The XML configuration file"
From NAMIC Wiki
Line 5: | Line 5: | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE OpenTracker SYSTEM "/home/hliu/projects/navitrack-brp/NaviTrack/share/navitrack.dtd"> | <!DOCTYPE OpenTracker SYSTEM "/home/hliu/projects/navitrack-brp/NaviTrack/share/navitrack.dtd"> | ||
− | |||
<OpenTracker> | <OpenTracker> | ||
<configuration> | <configuration> | ||
Line 11: | Line 10: | ||
</ConsoleConfig> | </ConsoleConfig> | ||
</configuration> | </configuration> | ||
− | |||
<ConsoleSink> | <ConsoleSink> | ||
<NetworkSink mode="unicast" name="dummy" number="1" port="54321"> | <NetworkSink mode="unicast" name="dummy" number="1" port="54321"> |
Revision as of 15:42, 11 May 2007
Home < The XML configuration fileNaviTrack uses an XML file to configure its operations and data flow. In this tutorial, we need two xml files: one for sending data out and one for receiving:
Configuration file for sending data
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE OpenTracker SYSTEM "/home/hliu/projects/navitrack-brp/NaviTrack/share/navitrack.dtd"> <OpenTracker> <configuration> <ConsoleConfig interval="10" headerline="NaviTrack Sending" display="on"> </ConsoleConfig> </configuration> <ConsoleSink> <NetworkSink mode="unicast" name="dummy" number="1" port="54321"> <ConsoleSource number="1"/> </NetworkSink> </ConsoleSink> </OpenTracker>
Configuration file for receiving data
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE OpenTracker SYSTEM "your-path/opentracker.dtd"> <OpenTracker> <configuration> </configuration> <Callback name="cb1"> <NetworkSource mode="unicast" number="1" address="localhost" port="54321"/> </Callback> </OpenTracker>