parameter_overrides() returns an empty vector
Open
@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
- modify the
set_and_get_parametersexample to print the size of theparameter_overridesin theSetAndGetParametersconstructor:
std::cout << "overrides: " << options.parameter_overrides().size() << std::endl;
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.