ros-visualization / rqt_bag

http://wiki.ros.org/rqt_bag
31 stars 55 forks source link

rqt_bag doesn't publish all messages in the bag file #38

Open meghakadole opened 5 years ago

meghakadole commented 5 years ago

I have to replay a bag file, which contains 15000 messages over a duration of 66seconds. I wrote a subscriber node to this topic. On the subscriber side, I count the number of messages received. I notice that not all messages are received. And the number of messages received is not fixed every time. I need to replay this bag file in real-time and without data loss. How can I achieve this?

I tried replaying the same bag with rosbag play (command line) the performance of command line is much better when compared to rqt_bag, but there is still some data loss. How can I ensure that all messages are received on subscriber end? Your help is much appreciated. Thanks in advance.

Dyson-Ido commented 4 years ago

I've same issue , anyone can give some hints, thanks~

kekeliu-whu commented 3 years ago

I have 2 similar problems when opening a bag file (link) with 500hz imu data:

  1. Only 100hz is shown in rqt_bag;
  2. When i play topic /imu_correct in the rqt_bag, rosbag hz /imu_correct show that the frequency is only 25hz.
nguyenlam185 commented 2 years ago

I am facing the same issue here. I have a bag file which contains over 80,000 messages, duration is about 40s. The rqt_bag can only publish the topics at ~50Hz whereas the rosbag play command can do that at ~2000Hz. Are there any parameters that need to be set before starting the rqt_bag in order to speed it up?