You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888
running app
cd ./host_ws
source /opt/ros/galactic/setup.bash
source ./install/local_setup.bash
export RMW_IMPLEMENTATION=rmw_microxrcedds
ros2 run micro_ros_demos_rclc int32_publisher
Expected behavior
connecting with agent and publish msg.
Actual behavior
run failer.
zs@zs-3630:~/zs_ws/ros2_mcu/host_ws$ ros2 run micro_ros_demos_rclc int32_publisher
[ERROR] [1647244684.547171495] [rclc]: [rclc_publisher_init_best_effort] Error in rcl_publisher_init: Could not load library libstd_msgs__rosidl_typesupport_microxrcedds_c.so: dlopen error: libstd_msgs__rosidl_typesupport_microxrcedds_c.so: cannot open shared object file: No such file or directory, at /tmp/binarydeb/ros-galactic-rcutils-4.0.2/src/shared_library.c:99, at /tmp/binarydeb/ros-galactic-rosidl-typesupport-c-1.2.1/src/type_support_dispatch.hpp:78, at /tmp/binarydeb/ros-galactic-rcl-3.1.2/src/rcl/publisher.c:114
Failed status on line 40: 1. Aborting.
Additional information
in host_ws/install/std_msgs/lib, there are only static libs with rosidl_typesupport_microxrcedds_cpp and rosidl_typesupport_microxrcedds_c
Activity
pablogs9 commentedon Mar 14, 2022
Normally the build script is called from here: https://github.com/micro-ROS/micro_ros_setup/blob/galactic/scripts/build_firmware.sh
And this parent script prepares the environment variables and path in order to handle correctly the type support.
Please make sure that your custom build process follows the same logic.
ZhenshengLee commentedon Mar 15, 2022
@pablogs9
I am sure that the build script and colcon.meta is following https://github.com/micro-ROS/micro_ros_setup/blob/galactic/scripts/build_firmware.sh and https://github.com/micro-ROS/micro_ros_setup/tree/galactic/config/host/generic
But due to network issues, I cannot test building scripts from this micro_ros_setup repo, could you give this a test?
I made a PR #473 to generate dynamic libs and made things work, which needs your review.
pablogs9 commentedon Mar 15, 2022
#473 merged, closing