0
$\begingroup$

I'm using ROS noetic and Python, my node publishes a message if some conditions are met, the queue_size is set to 1. When I subscribe to the published topic I can see that the subscriber is receiving more messages (even incomplete) than the messages my node is publishing!

How can this be possible?

$\endgroup$

1 Answer 1

0
$\begingroup$

Something might be wrong with your publisher logic or there is another source publishing to the same topic. The subscriber just reads the data that's published to the topic.

You can check how many publishers and subscribers are on a topic with rostopic echo <topic>. More commands here.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.