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

Hi @vk I recommend you to check some of the URDF and Xacro tutorials in the wiki.

If you want to add parameters to an URDF description you will need to use Xacro instead of URDF, since URDF does not implement a functionality for that pourpose. Once you have translated your URDF model to Xacro, you will be able to add properly the parameters you want with something like:

<xacro:arg name="x_arg" default="10"/>
<xacro:property name="x_property" value="$(arg x_arg)" />

That will store in x_property the argument X you passed to the Xacro file. Note that in order to use the argument in Xacro you will need to define it as a property and access it with $() keys.

Hope that helps yout.

Regards.