micro ros2 build error in micro_ros_demos_rclc
Hi guys, I am current building micro-ros2 in ros2 dashing, following the instructions in https://github.com/micro-ROS/micro-ros-build/blob/dashing/micro_ros_setup/README.md.
I am using Ubuntu 18.04 kernel 4.15.0. When
ros2 run micro_ros_setup build_firmware.sh
then the error comes out
/home/zivy/ros2_dashing/uros_ws/src/uros/micro-ROS-demos/rclc/int32_publisher/main.c:28:3: error: unknown type name ‘rclc_ret_t’; did you mean ‘rcl_ret_t’? rclc_ret_t ret; ^~~~~~~~~~ rcl_ret_t /home/zivy/ros2_dashing/uros_ws/src/uros/micro-ROS-demos/rclc/int32_publisher/main.c:30:9: warning: implicit declaration of function ‘rclc_init’; did you mean ‘rmw_init’? [-Wimplicit-function-declaration] ret = rclc_init(0, NULL); ^~~~~~~~~ rmw_init
It seems the ros2 doesn't include rclc file. But I don't know how to fix it. I use the command as follows:
source /opt/ros/$ROS_DISTRO/setup.bash
mkdir uros_ws && cd uros_ws
git clone -b $ROS_DISTRO https://github.com/micro-ROS/micro-ro... src/micro-ros-build
rosdep update && rosdep install --from-path src --ignore-src -y
ros2 run micro_ros_setup create_firmware_ws.sh
ros2 run micro_ros_setup build_firmware.sh
colcon build
source install/local_setup.bash
Thanks for you kindly help! I really appreciate!
BTW, I just want to try cbg-executor_ping-pong_cpp package of the ros2_examples fork. And its documention is in https://github.com/micro-ROS/micro-ROS.github.io/blob/master/_docs/concepts/client_library/real-time_executor/index.md