ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Guaranteed message delivery

asked 2014-11-09 17:33:53 -0500

ears_and_tails gravatar image

Hello,

It seems ROS makes no guarantee of message delivery. I know some can be lost at the beginning (nodes haven't fully started up) but of course they can also be dropped later. It is the dropping messages later that I am concerned about.

I have seen rosbags suggested at the way to get guaranteed message delivery (maybe minus the node start up situation, which I'm not worried about). It seems they are used for capturing/replaying messages and are not thread-safe.

Has anyone used them for receiving messages in real-time? Is there another way to go?

I know queue sizes/publishing rates are adjustable and this can minimize loss, but there are certain messages I can't afford to drop, even occassionally. And I am losing some.

Thanks.

edit retag flag offensive close merge delete

Comments

1

What is your application? There might be ROS ways to do that other than messages via TCP/IP.

dornhege gravatar image dornhege  ( 2014-11-10 04:39:47 -0500 )edit

Right now I am using the messages to pass sensor data collected from certain nodes to other nodes. It is very important that I don't miss data. All the nodes are running on a single physical machine.

ears_and_tails gravatar image ears_and_tails  ( 2014-11-14 15:14:19 -0500 )edit

Is this high-frequency high-bandwidth data? If not wrapping this into a service might work although it is inconvenitent. I believe originally the sequence id was ment to serve that purpose, but is not used. You could still emulate that manually.

dornhege gravatar image dornhege  ( 2014-11-17 05:00:58 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-11-10 01:40:17 -0500

Wolf gravatar image

I don't think there is a safe way to overcome this, but not sure. However, if you wish to guarantee the message delivery, maybe it'd be a solution to put the message into a service!?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-11-09 17:33:53 -0500

Seen: 1,009 times

Last updated: Nov 10 '14