Ask Your Question
0

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

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

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
0

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

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

Comments

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 imageahtsan ( 2019-07-15 14:08:17 -0500 )edit

Question Tools

2 followers

Stats

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

Seen: 10 times

Last updated: Jul 15