Ask Your Question

ros2 bag play cannot read db3 file because it "doesn't exist"

asked 2020-09-15 10:09:42 -0500

MattJWhyte gravatar image


I'm trying to play a bagfile which I recorded on one of my computers running ROS2 Dashing. However, when I try to play the same bagfile on a Foxy installation usiing the following command pointing to the directory storing the bagfiile data:

ros2 bag play rosbag2_2020_09_15-15_42_04

I receive this error:

[ERROR] [1600181707.549258324] [rosbag2_storage]: Could not open './rosbag2_2020_09_15-15_42_04.db3' with 'sqlite3'. Error: Failed to read from bag: File './rosbag2_2020_09_15-15_42_04.db3' does not exist!
[ERROR] [1600181707.549299695] [rosbag2_storage]: Could not load/open plugin with storage id 'sqlite3'.
[ERROR] [1600181707.549321650] [rosbag2_transport]: Failed to play: No storage could be initialized. Abort

The directory contains the metadata.yaml file as well as rosbag2_2020_09_15-15_42_04.db3

It's very weird since the bagfile plays perfectly on my Dashing installation, so I'm not sure if there's something wrong specifically with the system running Foxy or if there is something from the bagfile that's incompatible between distros.

Any help is greatly appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-09-15 22:34:37 -0500

Josh Whitley gravatar image

Bag files are not compatible across distros because message signatures change as well as the rosbag API in the rosbag2 package. I'm not positive if this is the cause of the exact error that you are receiving but you should not expect to be able to play a Dashing bag file in Foxy.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-09-15 10:09:42 -0500

Seen: 25 times

Last updated: Sep 15