Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent syntax for arg tag in XML launch #720

Open
mjforan opened this issue Jul 13, 2023 · 0 comments
Open

Inconsistent syntax for arg tag in XML launch #720

mjforan opened this issue Jul 13, 2023 · 0 comments
Assignees

Comments

@mjforan
Copy link

mjforan commented Jul 13, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants