xacro

Article by:
Date Published:
Last Modified:

Overview

xacro (XML macro) is a language for writing XML macros. It is designed to facilitate reuse of XML code. It is useful for reducing the size and complexity of urdf files.

The xacro compiler is distributed as a ROS package which can be found at http://wiki.ros.org/xacro. The compiler takes in .xacro files and spits out .urdf files.

rospack Commands

The xacro format allows you to use certain rospack commands inside .xacro files. The commands are used in the following format:

1
$(command args...)

Two commonly used commands are find and arg, e.g.:

1
2
<foo value="$(find xacro)" />
<foo value="$(arg myvar)" />

Authors

Geoffrey Hunter

Dude making stuff.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License .

Tags

    comments powered by Disqus