# ros2 bag play：无法打开包'my_bag' - 未找到存储插件'mcap'

- **ID:** `ros2/rosbag2-play-missing-storage-plugin`
- **领域:** ros2
- **类别:** resource_error
- **验证级别:** ai_generated
- **修复率:** 95%

## 根因

用于包格式（例如mcap、sqlite3）的rosbag2存储插件未安装，因此无法读取包文件。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Humble | active | — | — |
| Iron | active | — | — |
| Jazzy | active | — | — |
| Rolling | active | — | — |

## 解决方案

1. ```
   Install the missing storage plugin using apt.
   ```
2. ```
   Check which storage plugins are available and use a supported format.
   ```
3. ```
   Re-record the bag with a known working storage plugin.
   ```

## 无效尝试

- **Reinstalling rosbag2 package without the storage plugin** — rosbag2 core doesn't include all storage plugins; they must be installed separately. (70% 失败率)
- **Converting the bag file manually with a hex editor** — Bag files are structured binary formats; manual editing corrupts them. (90% 失败率)
- **Setting ROS_DOMAIN_ID to a different value** — Domain ID affects discovery, not storage plugin loading. (20% 失败率)
