how to delete a subcriber/publisher in rclpy
How do I delete publishers and subscriptions with ros2 rclpy?
I tried doing node.destroy_subscription(subscription)
and this appears to work,
and this seems to work most of the time, but every once in a while I get the error
The following exception was never retrieved: Tried to use a handle that has been destroyed.
And then my node is broken (pub/subs no longer work and the node's clock gets stuck).