Robotics StackExchange | Archived questions

Error reading version line when I play a .bag file.

I am trying to get SVO working with stereo setup and imu information. I downloaded the fla_stereo_imu.bag file (from http://rpg.ifi.uzh.ch/datasets/fla_stereo_imu.bag), this .bag file contains synchronized stereo images and IMU measurements. Then, I ran roslaunch svo_ros fla_stereo_imu.launch on a terminal, rviz is successfully started.

Then on another terminal I ran rosbag play fla_stereo_imu.bag and received the following error:

[ INFO] [1560645271.361267612]: Opening fla_stereo_imu.bag
[FATAL] [1560645271.361464485]: Error reading version line

What is the root cause of this error? Note that this question is referenced to https://github.com/uzh-rpg/rpg_svo_example/issues/59

Asked by csg on 2019-06-16 13:23:39 UTC

Comments

Please do not cross-post your question to multiple sites. Choose one of them and close the other.

Asked by Geoff on 2019-06-16 18:13:54 UTC

Did you wait for the bag file to finish downloading before you started playing it? Many browsers download to a temporary file first while making an empty file as a place holder for the final file name, then move the temporary file to the final file name when the download is complete. If you try to play the bag file while it's still downloading, then rosbag will try to play an empty file and give exactly the error you are getting. I have no trouble playing the bag file you indicate after waiting a while for its 2.6 GB download to complete.

Asked by Geoff on 2019-06-16 18:37:39 UTC

@Geoff You are spot on. Thanks! I was in a rush and I didn't get a response to my other post for more than 24h that's why I cross posted. I will delete the other one.

Asked by csg on 2019-06-16 20:20:57 UTC

Have you guys fixed the problem?

Asked by anonymous60874 on 2022-03-31 03:18:06 UTC

As @Geoff said, you just have to wait for the rosbag to be fully downloaded.

Asked by ahmedali on 2023-08-02 04:41:25 UTC

Answers