ros2 / ros2/launch

YAML frontend: support direct use of key:value dict for args, params, etc instead of lists of name:+value: dicts

Open
#954 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
155
Forks
182
Avg merge
2d 14h
Merged PRs (30d)
6

Description

Description

The YAML launch syntax is overly verbose for providing:

  • include: arguments
  • node: parameters
  • set_remap: entries
  • set_parameter: entries

All look like:

include:
  arg:
    - name: argname
      value: argvalue

I propose we allow an additional usage pattern that directly uses mappings (dicts)

include:
  arg:
    argname: argval
    argname2: argval2

For all these mapping types. This would not break existing usage since the check would be

  1. sequence? check for name: and value:
  2. mapping? iterate over key+value pairs
Motivation

Increase intuitive/idiomatic use of YAML as a frontend, decrease verboseness

Design / Implementation Considerations

No response

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the YAML frontend entry points for include, node, set_remap, and set_parameter, then inspect any parsing tests for their current list-based syntax. Done means direct key-value mappings work for all four cases while the existing name/value list form remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, yaml
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.