ros2 / ros2/ros2cli

No way to load a ros param file for all nodes

Open
#778 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Python
Stars
262
Forks
228
Avg merge
23h 15m
Merged PRs (30d)
12

Description


Feature request

Feature description

ROS2 has no functionality for loading a parameter file that contains parameters for multiple nodes. This was easily doable in ROS1 and there is no reason it should not be possible in ROS2. For example, parameter file named "params.yaml" contains the following:

/my_node1:
  ros__parameters:
    param1: 1.0
    param2: "test"
/my_node2:
  ros__parameters:
    param3: 73

and then running ros2 param load params.yaml would apply the relevant parameters to the nodes named /my_node1 and /my_node2

Implementation considerations

It makes no sense why this would not be allowed under the ROS2 framework, considering the parameter file already requires nodes to be explicitly named.

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 tracing the existing ros2 param load command and its parameter-file handling. Compare the current behavior with the multi-node params.yaml example in the issue; done means one invocation applies each node's relevant parameters to /my_node1 and /my_node2.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.