PDA

View Full Version : TROM XML Examples


Matt
04-24-2008, 01:51 PM
Here are the XML config files we use for the C# version of the TROM. I thought posting them would help our discussions out.

Here's one laid out, there are three in the zip file.
(I'm sure these were far from perfect when we stopped coded so no nit picking, these are just to give you the idea.)



<robot name="arm">
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<socket name="deckSocket">
<positionOrientation>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</positionOrientation>
<deck name="armDeck">
<RenderingShape type="TrossenRoboticsSystem.TROM.Shapes.ExtrudedRectangl e">
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<foreColor>Red</foreColor>
<opacity>100</opacity>
<extrudedLength>0.5</extrudedLength>
<height>4</height>
<width>4</width>
</RenderingShape>
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<socket name="socket1">
<positionOrientation>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>180</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</positionOrientation>
<rotationJoint name="rotationJoint1">
<minAngle>0</minAngle>
<maxAngle>360</maxAngle>
<currentValue>0</currentValue>
<Motors />
<RenderingShape type="TrossenRoboticsSystem.TROM.Shapes.ExtrudedCircle">
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<foreColor>Blue</foreColor>
<opacity>100</opacity>
<extrudedLength>0.5</extrudedLength>
<radius>0.3</radius>
</RenderingShape>
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<socket name="socket1">
<positionOrientation>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</positionOrientation>
<rotationJoint name="rotationJoint2">
<minAngle>0</minAngle>
<maxAngle>360</maxAngle>
<currentValue>0</currentValue>
<Motors />
<RenderingShape type="TrossenRoboticsSystem.TROM.Shapes.ExtrudedCircle">
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<foreColor>Blue</foreColor>
<opacity>100</opacity>
<extrudedLength>0.5</extrudedLength>
<radius>0.3</radius>
</RenderingShape>
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>-90</ZRotation>
</pin>
<socket name="socket1">
<positionOrientation>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>90</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</positionOrientation>
<rod name="rod1">
<length>4</length>
<RenderingShape type="TrossenRoboticsSystem.TROM.Shapes.ExtrudedCircle">
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<foreColor>Blue</foreColor>
<opacity>100</opacity>
<extrudedLength>4</extrudedLength>
<radius>0.2</radius>
</RenderingShape>
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<socket name="socket1">
<positionOrientation>
<XAxis>0</XAxis>
<YAxis>4</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</positionOrientation>
<rotationJoint name="rotationJoint3">
<minAngle>0</minAngle>
<maxAngle>360</maxAngle>
<currentValue>0</currentValue>
<Motors />
<RenderingShape type="TrossenRoboticsSystem.TROM.Shapes.ExtrudedCircle">
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<foreColor>Blue</foreColor>
<opacity>100</opacity>
<extrudedLength>0.5</extrudedLength>
<radius>0.3</radius>
</RenderingShape>
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>-90</XRotation>
<YRotation>0</YRotation>
<ZRotation>-180</ZRotation>
</pin>
<socket name="socket1">
<positionOrientation>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>90</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</positionOrientation>
<rod name="rod2">
<length>4</length>
<RenderingShape type="TrossenRoboticsSystem.TROM.Shapes.ExtrudedCircle">
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<foreColor>Blue</foreColor>
<opacity>100</opacity>
<extrudedLength>4</extrudedLength>
<radius>0.2</radius>
</RenderingShape>
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<socket name="socket1">
<positionOrientation>
<XAxis>0</XAxis>
<YAxis>4</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</positionOrientation>
<rotationJoint name="rotationJoint4">
<minAngle>0</minAngle>
<maxAngle>360</maxAngle>
<currentValue>0</currentValue>
<Motors />
<RenderingShape type="TrossenRoboticsSystem.TROM.Shapes.ExtrudedCircle">
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<foreColor>Blue</foreColor>
<opacity>100</opacity>
<extrudedLength>0.5</extrudedLength>
<radius>0.3</radius>
</RenderingShape>
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>-90</XRotation>
<YRotation>0</YRotation>
<ZRotation>180</ZRotation>
</pin>
<socket name="socket1">
<positionOrientation>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>90</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</positionOrientation>
<rod name="rod3">
<length>2</length>
<RenderingShape type="TrossenRoboticsSystem.TROM.Shapes.ExtrudedCircle">
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
<foreColor>Blue</foreColor>
<opacity>100</opacity>
<extrudedLength>2</extrudedLength>
<radius>0.2</radius>
</RenderingShape>
<pin>
<XAxis>0</XAxis>
<YAxis>0</YAxis>
<ZAxis>0</ZAxis>
<XRotation>0</XRotation>
<YRotation>0</YRotation>
<ZRotation>0</ZRotation>
</pin>
</rod>
</socket>
</rotationJoint>
</socket>
</rod>
</socket>
</rotationJoint>
</socket>
</rod>
</socket>
</rotationJoint>
</socket>
</rotationJoint>
</socket>
</deck>
</socket>
</robot>

LinuxGuy
04-24-2008, 01:59 PM
Here are the XML config files we use for the C# version of the TROM. I thought posting them would help our discussions out.
Excellent idea! Are there any good XML tutorials on the web? I will definitely look at these. :veryhappy::veryhappy:

8-Dale