Not all susbcribers get messages from a publisher

asked 2021-05-03 03:44:07 -0600

ros2 gravatar image

Hello All,

I'm am newbie to ros2. I have a ros2 node publishing on a topic "A". I have two ros2 nodes subscribing to the topic "A". I am running the entire software on an arm device. Sometimes not all my subscribers get the message from "A". Could any one help me in this regard. I am using ros2 "dashing".

Thanks in advance.

edit retag flag offensive close merge delete


Could you include in your post the lines where you create the publisher and the subscribers in the different nodes, along with the subscriber callbacks? Also, when you ros2 topic echo /A, do you see all the messages that were published on topic /A?

abhishek47 gravatar image abhishek47  ( 2021-05-05 23:52:32 -0600 )edit

Hi, Thanks for your feedback. I was able to solve the issue by increasing the udp packet size as I was publishing and subscribing images onf topic /A.

ros2 gravatar image ros2  ( 2021-05-11 03:59:57 -0600 )edit