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

[ROS2] Will all nodes implemented on_parameter_event be notified if set_parameters is called? [closed]

asked 2019-07-15 13:41:53 -0600

ahtsan gravatar image

If we do ros2 set param <node> <param> <value>, they will all be notified. How about if we create a parameter client and call set_parameters(...)?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by ahtsan
close date 2019-07-31 14:03:47.988712

1 Answer

Sort by ยป oldest newest most voted

answered 2019-07-15 14:02:54 -0600

ahtsan gravatar image

I am not sure if I get the answer myself.

I was using AsyncParametersClient and all other nodes implement on_parameter_event are not notified. I was also calling set_parameters in another thread so that's an issue.

But if I use SyncParametersClient, they are notified.

edit flag offensive delete link more


Another thing is, only the node that is passed to the parameter client is notified. All other nodes are not. If we run ros2 param set ..., all other nodes are also notified.

ahtsan gravatar image ahtsan  ( 2019-07-15 14:08:17 -0600 )edit

Question Tools



Asked: 2019-07-15 13:41:53 -0600

Seen: 124 times

Last updated: Jul 15 '19