Closed scch1092 closed 2 years ago
RMW_IMPLEMENTATION=rmw_fastrtps_cpp
Do you have fast rtps installed? What is your output for apt list --installed | grep fastrtps
?
Anyway, you can manually set export RMW_IMPLEMENTATION=rmw_microxrcedds
to build micro-ROS.
apt list --installed | grep fastrtps
ros-galactic-fastrtps-cmake-module/focal,now 1.2.1-2focal.20220430.052920 amd64 [installed,automatic]
ros-galactic-fastrtps/focal,now 2.3.4-1focal.20220430.111237 amd64 [installed,automatic]
ros-galactic-rmw-fastrtps-cpp/focal,now 5.0.2-1focal.20220729.231320 amd64 [installed,automatic]
ros-galactic-rmw-fastrtps-shared-cpp/focal,now 5.0.2-1focal.20220729.230057 amd64 [installed,automatic]
ros-galactic-rosidl-typesupport-fastrtps-c/focal,now 1.2.1-2focal.20220726.200223 amd64 [installed,automatic]
ros-galactic-rosidl-typesupport-fastrtps-cpp/focal,now 1.2.1-2focal.20220726.195810 amd64 [installed,automatic]
Anyway, you can manually set export RMW_IMPLEMENTATION=rmw_microxrcedds to build micro-ROS.
I will try it, thanks!
Anyway, you can manually set export RMW_IMPLEMENTATION=rmw_microxrcedds to build micro-ROS.
No luck, still the same problem
Could you try to build a micro-ROS environment without sourcing the ROS 2 installation?
Hi @scch1092,
This PR should fix your issue: https://github.com/micro-ROS/micro_ros_platformio/pull/62 Please check it out and provide feedback
Hello, thank you for the feedback. It seems that it is probably my computer. On another computer I was able to create the libraries and flash them to the MCU.
The problem was related to setting RMW_IMPLEMENTATION=rmw_fastrtps_cpp
by default.
The PR should fix the build process in that case, you should be able to compile in your computer.
Closing!
Issue template
Steps to reproduce the issue
Step 1: Copy the contents of the micro_ros_publisher example. Step 2: platform.ini
Step3: pio lib install Step4: pio run
Expected behavior
Build the packages
Actual behavior
Build fails with the following output:
Additional information