Robotics StackExchange | Archived questions

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:

  1. I never get what is supposed to be the first message that I published
  2. 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?

Asked by Kansai on 2021-08-21 09:56:36 UTC

Comments

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?

Asked by janindu on 2021-08-30 09:12:57 UTC

rostopic echo is run first

Asked by Kansai on 2021-09-07 07:20:57 UTC

Answers