micro-ROS: Could not find ROS middleware implementation 'rmw_cyclonedds_cpp'
microROS installation received the following error message alert box
'colcon build' failed(rmw_implementation + 3)
/home/ubuntu/microros_ws/firmware/mcu_ws
I am following this 'Connect ESP32 to ROS2' below , I actually have galactic ROS2 in my Ubuntu 20.04.5 LTS host.
https://medium.com/@SameerT009/connec...
After Step 5. Build firmware
Nothing to add. Just Copy and Paste. It takes a white to complete.
$ ros2 run micro_ros_setup build_firmware.sh
I get the error alert message **'colcon build' failed(rmw_implementation + 3)
/home/ubuntu/microros_ws/firmware/mcu_ws**
and the below details in the terminal:: Please Help. Thank you. I have done source
source /opt/ros/galactic/setup.bash
$ `cmake --version`
cmake version 3.16.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
snippet of error in terminal after above Step 5
error
CMake Error at /home/ubuntu/microros_ws/firmware/mcu_ws/install/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_microxrcedds
Call Stack (most recent call first):
CMakeLists.txt:22 (get_default_rmw_implementation)
---to fix above error
cd /home/ubuntu/microros_ws/firmware/mcu_ws/install/share/rmw_implementation_cmake
sudo nano package.xml
add
<build_depend>rmw</build_depend>
<depend>rmw_cyclonedds_cpp</depend>
Finished <<< rmw_microxrcedds [1.69s]
Starting >>> rmw_implementation
--- stderr: action_msgs
CMake Warning at /home/ubuntu/microros_ws/firmware/mcu_ws/install/share/rcutils/cmake/ament_cmake_export_libraries-extras.cmake:116 (message):
Package 'rcutils' exports library 'dl' which couldn't be found
Call Stack (most recent call first):
/home/ubuntu/microros_ws/firmware/mcu_ws/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
/home/ubuntu/microros_ws/firmware/mcu_ws/install/share/rosidl_runtime_c/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
/home/ubuntu/microros_ws/firmware/mcu_ws/install/share/rosidl_runtime_c/cmake/rosidl_runtime_cConfig.cmake:41 (include)
/home/ubuntu/microros_ws/firmware/mcu_ws/install/share/builtin_interfaces/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
/home/ubuntu/microros_ws/firmware/mcu_ws/install/share/builtin_interfaces/cmake/builtin_interfacesConfig.cmake:41 (include)
CMakeLists.txt:14 (find_package)
---
Finished <<< action_msgs [2.24s]
Starting >>> test_msgs
--- stderr: rmw_implementation
CMake Error at /home/ubuntu/microros_ws/firmware/mcu_ws/install/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_microxrcedds
Call Stack (most recent call first):
CMakeLists.txt:22 (get_default_rmw_implementation)