Replies: 1 comment 2 replies
-
I have a manual unregister_subscriber working in https://github.com/lucasw/roslibrust/tree/get_rx_msg_def lucasw@5fbbd2e - but so far I haven't been able to get I'll rebase the minimal version of it onto master and make at least a draft PR. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a current method for shutting down subscribers fully? So far I'm having luck unregistering publishers, if I make sure they go out of scope in their tokio tasks before the process exits then they don't appear in rosnode info for the dead node, but subscribers linger and a rosnode cleanup is needed.
I see
unregister_subscriber()
in https://github.com/Carter12s/roslibrust/blob/master/roslibrust/src/ros1/master_client.rs#L224 - but it's not exposed through a node handle, nothing calls it?Beyond that what about interrupting
my_subscriber.next().await
- I have several of those running inside tokio tasks- if unregister_subscriber were exposed would/could it cause that next() to return an error, like how a channel errors if the other end of it (sender or receiver) goes away?Beta Was this translation helpful? Give feedback.
All reactions