colcon buildでエラー(Could not find ROS middleware implementation 'rmw_cyclonedds_cpp'.)
--- stderr: autoware_utils
CMake Error at /opt/ros/humble/share/rmw_implementation_cmake/cmake/get_default_rmw_implementation.cmake:60 (message):
Could not find ROS middleware implementation 'rmw_cyclonedds_cpp'. Choose
one of the following: rmw_fastrtps_cpp
Call Stack (most recent call first):
/opt/ros/humble/share/rmw_implementation/cmake/rmw_implementation-extras.cmake:19 (get_default_rmw_implementation)
/opt/ros/humble/share/rmw_implementation/cmake/rmw_implementationConfig.cmake:41 (include)
/opt/ros/humble/share/rcl/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
/opt/ros/humble/share/rcl/cmake/rclConfig.cmake:41 (include)
/opt/ros/humble/share/libstatistics_collector/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
/opt/ros/humble/share/libstatistics_collector/cmake/libstatistics_collectorConfig.cmake:41 (include)
/opt/ros/humble/share/rclcpp/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
/opt/ros/humble/share/rclcpp/cmake/rclcppConfig.cmake:41 (include)
/opt/ros/humble/share/ament_cmake_auto/cmake/ament_auto_find_build_dependencies.cmake:67 (find_package)
以下で解決した様子
sudo apt install ros-humble-rmw-cyclonedds-cpp -y
参考
https://github.com/ros2/rmw_cyclonedds
https://docs.ros.org/en/eloquent/Installation/DDS-Implementations/Working-with-Eclipse-CycloneDDS.html
https://answers.ros.org/question/412448/micro-ros-could-not-find-ros-middleware-implementation-rmw_cyclonedds_cpp/