Lost messages in a bag

asked 2021-08-21 09:56:36 -0500

Kansai gravatar image

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?

edit retag flag offensive close merge delete

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?

janindu gravatar image janindu  ( 2021-08-30 09:12:57 -0500 )edit

rostopic echo is run first

Kansai gravatar image Kansai  ( 2021-09-07 07:20:57 -0500 )edit