ros heartbeat for rosbridge

asked 2019-10-07 03:54:23 -0600

knxa gravatar image

Does ROS provide any best practice way to detect when a websocket used by a rosbridge client is lost? AFAIK I cannot rely on a socket disconnect event for all failure cases.

Does ROS, rosbridge or roslibjs have any builtin feature like a heartbeat topic, that a rosbridge client can use to detect the connection status?

edit retag flag offensive close merge delete


For regular ROS: bonds, but that would probably not work for entities on the other side of rosbridge.

gvdhoorn gravatar image gvdhoorn  ( 2019-10-07 04:12:29 -0600 )edit

Yes, this would be a useful feature... additionally it would be useful to have complete diagnostics of the ROS connection (including roscore), since it is possible to lose items and still have rosbridge running (appearance that the connection is good, but the underlying system is not).

biaspoint gravatar image biaspoint  ( 2021-05-05 10:17:10 -0600 )edit

@biaspoint: comments on 2-year-old questions have almost 0 visibility.

If you really want something to change or be enhanced, reach out to the developers and start working on it.

Otherwise it's likely things will not improve.

gvdhoorn gravatar image gvdhoorn  ( 2021-05-05 12:19:29 -0600 )edit

There seems to be no progress in this regard. Therefore, I added a feature request. Please see the following link for updates (if any):

ravijoshi gravatar image ravijoshi  ( 2022-09-07 22:35:07 -0600 )edit