ROS2: Override param value when running the node
Hi Guys,
ROS Version used : Dashing
I have a ROS2 package with below parameters set in params.yaml
file.
node_name:
ros__parameters:
node_topic : /some/topic
scenario_id : scenario_1
I run my node ros2 run package_name executable_name __params:=params.yaml
so that it takes the parameters value set in params.yaml
file.
Now I would like to change value only for scenario_id
while running the ros node in command line. Something like this ros2 run package_name executable_name _scenario_id:=check_scenario
.
I have looked into the ros2 tutorials. As per the tutorials given, looks like setting the parameters value in command line is not supported in Dashing.
Could anybody please suggest me if there is a way to do it?
Thank you,
KK