0
$\begingroup$

Rosanswers logo

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(...)?


Originally posted by ahtsan on ROS Answers with karma: 112 on 2019-07-15

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by ahtsan with karma: 112 on 2019-07-15

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by ahtsan on 2019-07-15:
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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.