ros2 / ros2/rclcpp

parameter_overrides() returns an empty vector

Open
#1,907 10 comments 0 reactions 1 assignee View on GitHub

@ivanpauno is already working on this.

Since Apr 22, 2022.

question
Dominant language
C++
Stars
805
Forks
564
Avg merge
1d 17h
Merged PRs (30d)
27

Description

Bug report

The parameter_overrides method of NodeOptions returns an empty vector.

Required Info:

  • Operating System: Ubuntu 20.04
  • Installation type: binary
  • Version or commit hash: galactic
  • Client library (if applicable): rclcpp
Steps to reproduce issue
  1. modify the set_and_get_parameters example to print the size of the parameter_overrides in the SetAndGetParameters constructor:
std::cout << "overrides: " << options.parameter_overrides().size() << std::endl;
  1. run the node with an override parameter: ros2 run demo_nodes_cpp set_and_get_parameters --ros-args -p foo:=42
Expected behavior

The parameter remapping (override) foo:=42 should appear in the vector returned by the parameter_overrides().

Actual behavior

parameter_overrides() returns an empty vector.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.