Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calling simROS2.advertiseService causes crashing with "undefined symbol:_ZN22rosidl_typesupport_cpp31get_service_type_support_handleIN8std_srvs3srv5EmptyEEEPK29rosidl_service_type_support_tv" #2

Closed
mightestDuck opened this issue Mar 3, 2020 · 2 comments

Comments

@mightestDuck
Copy link

mightestDuck commented Mar 3, 2020

When creating a ROS2 service in a non-threaded script:

service = simROS2.advertiseService('coppelia_node/service', 'std_srvs/Empty', 'service_callback')

the simulator crashes with the following error message:

libsimExtROS2Interface.so: undefined symbol:_ZN22rosidl_typesupport_cpp31get_service_type_support_handleIN8std_srvs3srv5EmptyEEEPK29rosidl_service_type_support_tv

I am using CoppeliaSim Pro V4.0.0. (rev. 4) with ROS2 Eloquent Elusor on Ubuntu 18.04. The ROS2 plugin for the simulator loads properly since I've been able to communicate in publisher-subscriber manner with no issues - only services lead to crashing. The same problem occurs when calling simROS2.createService.

Related topic on CoppeliaSim forum

@fferri
Copy link
Collaborator

fferri commented May 20, 2020

Thanks for reporting this.

That should have generated a build error, not a runtime error. In fact I got a similar issue with ROS Foxy:

  "rosidl_service_type_support_t const* rosidl_typesupport_cpp::get_service_type_support_handle<std_srvs::srv::Empty>()", referenced from:
      rclcpp::Client<std_srvs::srv::Empty>::Client(rclcpp::node_interfaces::NodeBaseInterface*, std::__1::shared_ptr<rclcpp::node_interfaces::NodeGraphInterface>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, rcl_client_options_t&) in sim_ros2_interface.cpp.o
      rclcpp::Service<std_srvs::srv::Empty>::Service(std::__1::shared_ptr<rcl_node_t>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, rclcpp::AnyServiceCallback<std_srvs::srv::Empty>, rcl_service_options_t&) in sim_ros2_interface.cpp.o

which now I have fixed.

At the moment we can target only LTS releases of ROS2, so please try again with Dashing or Foxy.

@fferri fferri changed the title calling simROS2.advertiseService causes crashing calling simROS2.advertiseService causes crashing with "undefined symbol:_ZN22rosidl_typesupport_cpp31get_service_type_support_handleIN8std_srvs3srv5EmptyEEEPK29rosidl_service_type_support_tv" May 20, 2020
@fferri
Copy link
Collaborator

fferri commented Jul 2, 2020

No activity since long time, so I am closing this.
Reopen if this is still an issue (now only ROS2 foxy is supported).

@fferri fferri closed this as completed Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants