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

Revision history [back]

Yes, this is currently expected. When you set/remove/update a parameter, a message is published to the parameter_events topic, that is shared among all nodes. For this reason, the on_parameter_event callback will be triggered every time.

If you are interested only in specific parameters, you should check in the callback the parameter name and node before eventually doing something.

The ROS2 Parameters design states that it should be possible to subscribe only to changes to specific parameters, but this feature has not been implemented yet.

https://design.ros2.org/articles/ros_parameters.html