Page 1 of 1

ROS2 Custom message in plugin

Posted: 26 Jan 2021, 14:18
by avena_robotics
We are tring to use a custom message for ROS2 in Coppelia plugin. When we run coppelia, we have this error:
"
symbol lookup error: /home/avena/ros2_ws/install/custom_interfaces/lib/libcustom_interfaces__rosidl_typesupport_fastrtps_cpp.so: undefined symbol: _ZN8tf2_msgs3msg24typesupport_fastrtps_cpp29max_serialized_size_TFMessageERbm
"

It looks like that that there is a problem due to tf2_msgs field in our custom msg. Do you have a solution for that?

Re: ROS2 Custom message in plugin

Posted: 01 Feb 2021, 07:55
by fferri
So, if you remove the tf2_msgs dependency, the plugin loads fine?

Re: ROS2 Custom message in plugin

Posted: 01 Feb 2021, 10:19
by avena_robotics
Yes, we removed tf2_msgs/TFMessage and explicitly put transforms field from this message which is geometry_msgs/TransformStamped[] and it works fine

Re: ROS2 Custom message in plugin

Posted: 02 Feb 2021, 13:35
by fferri
Looks similar (but not same) to my question on ROS answers.

In there, my package depends on shape_msgs and geometry_msgs, and my package's *_interfaces__rosidl_typesupport_introspection_cpp.so library can't be loaded because of unresolved symbols related to geometry_msgs and shape_msgs packages.

Upstream issue?