MARIE 0.5 mariexml
From MARIEWiki
Contents |
[edit]
Introduction
MarieXML protocol uses an homemade xml format. This protocol intend to benefit from the XML properties to ease debugging and data analysis (lots of existing tools, standards, increased readability, etc.). The price to pay is to have bigger data footprints and increased serialization/deserialization delay than with a more "lightweight" approach.
[edit]
Format
| XML HEADER | MARIE START HEADER | Datatype start header | fields | Datatype stop header | TIMESTAMP START HEADER | TIMESTAMP SEC START HEADER | sec | TIMESTAMP SEC STOP HEADER | TIMESTAMP USEC START HEADER | usec | TIMESTAMP USEC STOP HEADER | TIMESTAMP STOP HEADER | MARIE STOP HEADER |
- XML HEADER = "<?xml version="1.0"?>"
- MARIE START HEADER = "<MARIE>"
- MARIE STOP HEADER = "</MARIE>"
- TIMESTAMP START HEADER = "<TIMESTAMP>"
- TIMESTAMP STOP HEADER = "</TIMESTAMP>"
- TIMESTAMP SEC START HEADER = "<SEC>"
- TIMESTAMP SEC STOP HEADER = "</SEC>"
- TIMESTAMP USEC START HEADER = "<USEC>"
- TIMESTAMP USEC STOP HEADER = "</USEC>"
- Datatype start and stop header must be the data ID in the following format : "<DATA_ID>" and "</DATA_ID>"
- All elements and fields must comply to valid xml syntax and structure
[edit]
Example
MarieXML for MotorCommand
<?xml version="1.0"?>
<MARIE>
<MOTORCOMMAND>
<ROTATION>0</ROTATION>
<VELOCITY>0</VELOCITY>
</MOTORCOMMAND>
<TIMESTAMP>
<SEC>timestamp sec</SEC>
<USEC>timestamp usec</USEC>
</TIMESTAMP>
</MARIE>
[edit]

