Replies: 2 comments
-
Saw this conversation #87 (reply in thread) right after posting this. For services the caller would notice peer shutdown if call periodically, but subscriber doesn't expose the error to the caller. Does it mean we have to use fixed ports for publishers? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh well how dumb I am. Can simply restart the node if not received from the subscriber for X seconds. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It may be okay for many applications to just restart everything, but if goroslib is used to interact with ROS based system, it's possible that other nodes, or even master, get restarted at any time. Here's an example in my case - the publisher it used to connect no longer exists so it keeps retrying.
For subscriber, one way I'm thinking is to close the subscriber if it encounters non-temporary errors (Edit:
Temporary()
is depreciated), then adds aClosed()
method to many things so the caller can detect it and re-create the node, for example, but my knowledge on ROS is very limited so this may not work out. Any idea will be much appreciated.Beta Was this translation helpful? Give feedback.
All reactions