Callback upon parameter change in other node

asked 2021-11-18 09:07:36 -0500

morten gravatar image

I have a package which uses some information from another node's parameters, I am doing it this way to avoid having the write the same information more than one place in the yaml config files.

I have managed to get this to work using rclcpp::AsyncParametersClient and calling parameters_client_->get_parameters, but this doesn't trigger on a parameter_changed event. I've seen this demo, which is able to make a callback upon parameter event, but it only informs which parameters were changed.

How can I make the AsyncParametersClient call get_parameters re-actively to a change in the parameters of a certain node.

edit retag flag offensive close merge delete