报错结果
在运行 ros2 bag play 时会遇到以下问题:
[ERROR] [rosbag2_storage]: Could not load/open plugin with storage id 'sqlite3'.
[ERROR] [rosbag2_transport]: Failed to play: No storage could be initialized. Abort
修改方式
You are trying to only select a single package for building from the workspace without having built its dependencies. Since these dependencies are present in the workspace colcon assumes that you intended to use them. Hence the error message:
Check that the following packages have been built:
- rosbag2_test_common
- sqlite3_vendor
- rosbag2_storage
- rosbag2_storage_default_plugins
If you want to use the installed dependencies and not want to consider the dependencies which exist in the workspace you have the following options:
remove the undesired dependencies from the workspace
–packages-ignore(-regex)