ROS2 component failed to load at runtime

asked 2021-05-06 18:05:03 -0600

rover_challenger gravatar image


I was dabbling around with some ros2 I was able to make a few components and run them at runtime with ros2 component standalone <package name=""> <name of="" class=""> . It works for all my other components I have and everything compiles. However, this one component I have made - an action server - fails to get loaded at runtime. The Cmakelists is virtually the same for every component I have.

Here is the error (ros2 - foxy - ubuntu 20.04)

ros2 component standalone software_training composition::moving_turtle_action_server Failed to load component: Failed to load library: could not load library loadlibrary error: /home/niiquaye/ros2_training/install/software_training/lib/ undefined symbol: _zn11composition27moving_turtle_action_server15linear_velocitye, at /tmp/binarydeb/ros-foxy-rcutils-1.1.3/src/shared_library.c:84, interrupting container node

edit retag flag offensive close merge delete


Can you share the CMakeLists.txt? Without it it is very difficult for us to guess what is the issue.

sgvandijk gravatar image sgvandijk  ( 2021-05-07 01:40:49 -0600 )edit