Ask Your Question
0

Setting multiple parameters with ros2 param set

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

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 -0600

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

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

Seen: 139 times

Last updated: Oct 02 '19