Ros loses messages

Let’s take the simplest example (eg, Python’s) and update it slightly to our needs:

rospy.init_node('test')
pub = rospy.Publisher('hello', String, queue_size=10)
rate = rospy.Rate(250) # 250hz
for i in range(10):
    pub.publish("hello world"+str(i))
    rate.sleep()

And it seems to be clear what to expect in the subscriber (lets just output to the console that what came), but we can see:
Continue reading “Ros loses messages”