launch icon indicating copy to clipboard operation
launch copied to clipboard

Inconsistent syntax for arg tag in XML launch

Open mjforan opened this issue 2 years ago • 0 comments

Bug report

Required Info:

  • Operating System:
    • Ubuntu 22.04
  • Installation type:
    • Humble
    • Binaries
    • ros-humble-desktop/jammy,now 0.10.0-1jammy.20230624.051647 amd64

Steps to reproduce issue

Example section of XML launch file for starting Gazebo simulator

<arg name="world_name"      default="warehouse"/>  <!-- world name -->
<!-- Launch Ignition Gazebo --> 
<include file="/launch/ign_gazebo.launch.py">
    <arg name="ign_args" value="/config/worlds/$(var world_name).sdf $(var use_levels)"/>
</include>

Expected behavior

According to the launch migration guide, <arg> should be used with default and <let> should be used with value. However, When arg is nested under an include tag it is necessary to use the value instead. You can see in the example how arg has two different syntaxes, depending on the context.

Actual behavior

Attempting to use the suggested syntax triggers the following error:

Caught exception when trying to load file of format [xml]: Attribute value of type <class 'str'> not found in Entity arg

mjforan avatar Jul 13 '23 17:07 mjforan