ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Setting multiple parameters with ros2 param set

asked 2019-07-18 03:28:56 -0500

nickcage gravatar image

Is there a way to change multiple ROS2 node parameters from CLI at once? As I have seen, ros2 param set syntax supports setting only one parameter at a time. This triggers the parameter set callback for each parameter, however, I need to have them all in a single callback.

Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-10-02 14:35:00 -0500

ignacio gravatar image

You could try to send via service call. This is a command line example to set 2 parameters: ros2 service call /your_node/set_parameters rcl_interfaces/srv/SetParameters "{parameters: [{name: "parameter_name", value: {type: 2, integer_value: 2}}, {name: "an_int_value", value: {type: 2, integer_value: 2}}]}"

edit flag offensive delete link more

Comments

This solution isn't working, this service call example calls the callback twice instead of once. I'm still looking a solution for this.

Boufont gravatar image Boufont  ( 2021-10-06 11:09:30 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2019-07-18 03:28:56 -0500

Seen: 1,101 times

Last updated: Oct 02 '19