I have been able to stop the publisher to the topic (
/parameter_events) by setting
false. Is there a way to stop the subscriber?
A node should not have a default subscriber for
/parameter_events: the programmer of the node chooses to either add that subscription, or not.
However, currently a subscriber is created here.
So as of yet, to disable the subscription, I don't see another option than to change it in the code and compile
rclcpp from source. Removing above mentioned lines effectively ensures that the subscription is no longer made (I tested it). However, based on a quick look at the callback function, I assume that this breaks the
use_sim_time parameter functionality.