jade xacro macro param line breaks 'string index out of range'
I have been running a xacro fine in indigo and hydro but now in jade I get a string index out of range
error (I also had to add the --inorder
flag) from having line breaks before or after macro params:
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="robot">
<xacro:macro name="all_cameras" params="
test
">
</xacro:macro>
<xacro:all_cameras test="0.5" />
</robot>
Corrected to the following then it works in jade:
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="robot">
<xacro:macro name="all_cameras" params="test">
</xacro:macro>
<xacro:all_cameras test="0.5" />
</robot>
can you upload /home/lucasw/catkin_ws/src/robot_description/urdf/no_cable.xacro somewhere (or, some other minimalist example which shows similar behavior) so that we can try to replicate the failure? Thanks!
I've narrowed it down to a jade-specific inability to handle macro param line breaks, see the updated question.
https://github.com/ros/xacro/issues/120