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

Revision history [back]

It just now occurred to me that the solution is to make a xacro macro wrap all the math on the arguments and the call to the macro reference the arg:

 <xacro:macro name="foo" params="chassis_length" >
     ... do something with ${chassis_length/2}
 <xacro::macro>

 <xacro:foo chassis_length="$(arg chassis_length)">