calling simROS2.advertiseService causes crashing

Report crashes, strange behaviour, or apparent bugs
Post Reply
Blaise
Posts: 3
Joined: 09 Jan 2020, 09:57

calling simROS2.advertiseService causes crashing

Post by Blaise »

Hi everybody

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

Code: Select all

service = simROS2.advertiseService(proxy_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.

Any ideas how to fix it?

All the best,
Blaise

Blaise
Posts: 3
Joined: 09 Jan 2020, 09:57

Re: calling simROS2.advertiseService causes crashing

Post by Blaise »

The situation has been reproduced on other machines, hence the suspicion that it could be a bug rather than a setup issue.

fferri
Posts: 1193
Joined: 09 Sep 2013, 19:28

Re: calling simROS2.advertiseService causes crashing

Post by fferri »

Looks like a linker issue to me.

Can you reproduce with ROS2 Dashing Diademata?

Post Reply