Skip to content

Inconsistent syntax for arg tag in XML launch #720

@mjforan

Description

@mjforan

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

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions