ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is documented on the roslaunch/XML/param page:

textfile="$(find pkg-name)/path/file.txt"

The contents of the file will be read and stored as a string. The file must be locally accessible, though it is strongly recommended that you use the package-relative $(find)/file.txt syntax to specify the location.

So for robot_description, that would be:

<param name="robot_description" textfile="$(find pkg-name)/path/file.urdf"/>