Update URDF xml schema to include documentation.#223
Open
solonovamax wants to merge 1 commit intoros:rollingfrom
Open
Update URDF xml schema to include documentation.#223solonovamax wants to merge 1 commit intoros:rollingfrom
solonovamax wants to merge 1 commit intoros:rollingfrom
Conversation
Also makes it play more nicely when using xacro. Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
Author
|
I do also have the following xml schema for xacro. Although, I'm not sure if it would be best to place it in this repo as it already has an xml schema definition, or the xacro repo where it's more relevant. <?xml version="1.0" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="https://ros.org/wiki/xacro" elementFormDefault="qualified">
<xs:element name="property">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="if">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
</xs:sequence>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="unless">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
</xs:sequence>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="arg">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="default" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="macro">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="params" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="include">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
</xs:sequence>
<xs:attribute name="filename" type="xs:string" use="required"/>
<xs:attribute name="ns" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="element">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
</xs:sequence>
<xs:attribute name="name" form="qualified" type="xs:string" use="required"/>
<xs:anyAttribute processContents="lax" namespace="https://www.ros.org"/>
</xs:complexType>
</xs:element>
<xs:element name="attribute">
<xs:complexType>
<xs:attribute name="name" form="qualified" type="xs:string" use="required"/>
<xs:attribute name="value" form="qualified" type="xs:string" use="required"/>
<xs:anyAttribute processContents="lax" />
</xs:complexType>
</xs:element>
</xs:schema> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the URDF xml schema to include documentation about all the elements.
Also makes it play more nicely when using xacro (by spamming a bunch of
<xs:any>).All documentation was taken from the ROS URDF wiki.