# RMW_IMPLEMENTATION=rmw_fastrtps_cpp：找不到RMW实现：包列表中未找到'rmw_fastrtps_cpp'

- **ID:** `ros2/rmw-implementation-not-found`
- **领域:** ros2
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 95%

## 根因

指定的RMW实现包未安装在ROS2环境中，通常由安装不完整或工作空间源设置错误导致。

## 版本兼容性

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

## 解决方案

1. ```
   Install the missing RMW implementation package using apt.
   ```
2. ```
   List available RMW implementations and choose an installed one.
   ```
3. ```
   Ensure the ROS2 setup script is sourced before checking RMW availability.
   ```

## 无效尝试

- **Setting RMW_IMPLEMENTATION to a random string like 'rmw_cyclonedds_cpp' without installing it** — Only installed RMW implementations are available; setting an uninstalled one causes the same error. (90% 失败率)
- **Rebuilding all packages with colcon build** — The RMW implementation is a system package, not a workspace package; rebuilding doesn't install it. (50% 失败率)
- **Setting RMW_IMPLEMENTATION in .bashrc without sourcing the ROS2 setup file** — The environment variable is set but the ROS2 installation isn't sourced, so packages aren't found. (60% 失败率)
