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

publisher-subcriber communication is stable?

asked 2016-09-15 14:24:06 -0500

demi H gravatar image

updated 2016-09-15 14:39:55 -0500

I made 2 ROS node. One is for publishing and the other is for subscribing. However, sometimes receiving callback function is not called , even though a message is published.

Is the communication in publisher-subscriber is guaranteed?

Also, which kind of communication model is recommended when there are only 1 publisher and only 1 subscriber?(one-to-one)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-09-15 15:04:55 -0500

ahendrix gravatar image

The connection between a publisher and its subscribers should work. It may drop messages if the queues become full, but otherwise you should see reliable message transport. If you're seeing something other than the occasional dropped message, there's probably some kind of issue with your configuration.

Random failures are almost never random; the first step to troubleshooting this is to figure out which conditions reliably cause the issue you're seeing.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-09-15 14:24:06 -0500

Seen: 87 times

Last updated: Sep 15 '16