Lost messages in a bag
I have a rosbag file where I recorded Image messages
For some reason that I don't understand when I do in one terminal
rqt_bag the_bag.bag
and I activate publish in the interface and then in other terminal I do
rostopic echo /the_image/header
I have the following two problems:
- I never get what is supposed to be the first message that I published
- I never get the same message. Sometimes it echos from the fourth message, sometimes from the fifth, sometimes the sixth
So, why is this happening and how can I inspect the rosbag to make sure that all messages are there?
What is the order of execution? Are you activating the publisher in one terminal first, and then start the
rostopic echo
in the next terminal afterwards?rostopic echo is run first