Handling sensor timeouts/disconnects in ROS2

asked 2023-04-13 07:50:46 -0500

bluehash gravatar image

We have a couple of sensors, some come under sensor_msgs, some are custom. Each of these sensors has a node, that publishes the sensor value. These nodes publish sensors values at a certain frequency(say 10Hz)

Internally within each node there is a mechanism to reconnect to the sensor if it drops connection or it power cycles unexpectedly. Sometimes the sensor needs to go through an initialization routine.

Are there any ROS2 guidelines on how to handle disconnects or interruptions in the node stream? Is the usual method for the subscriber nodes to check the delta between timestamps and handle the issue at the subscriber node level?

Thank you.

edit retag flag offensive close merge delete