Skip to content

ROS 2 YAML launch: "choices" is not supported in arg #939

@rafal-gorecki

Description

@rafal-gorecki

Description:

Using the "choices" key in an arg inside a ROS 2 YAML launch file causes a runtime error, but this limitation is not clearly documented.

Steps to reproduce:

  1. Create YAML launch file:
launch:
  - arg:
      name: rviz
      default: "true"
      description: "Launch RViz2"
      choices: ["true", "false"]
  1. Run:
ros2 launch <package> <file>.yaml

Observed behavior:

Launch fails with:

ValueError: Unexpected key(s) found in `arg`: {'choices'}

Expected behavior:

  • Support "choices" in YAML launch files

Environment:

  • ROS 2: Jazzy

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions