Gazebo | Ignition | Community
Ask Your Question

ROS2 Spawn entity fails in Gazebo launch with UnsupportedTypeSupport

asked 2022-10-11 09:04:07 -0500

SimoneM gravatar image

My launch file worked for months and then suddenly stop working with the following error:

[INFO] [launch]: All log files can be found below /root/.ros/log/2022-10-11-13-50-06-875954-92ef4b39436c-288795
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [gzserver-1]: process started with pid [288805]
[INFO] []: process started with pid [288808]
[INFO] [robot_state_publisher-3]: process started with pid [288810]
[robot_state_publisher-3] Parsing robot urdf xml string.
[robot_state_publisher-3] Link BASE had 1 children
[robot_state_publisher-3] Link LINK_1 had 1 children
[robot_state_publisher-3] Link LINK_2 had 1 children
[robot_state_publisher-3] Link LINK_3 had 1 children
[robot_state_publisher-3] Link LINK_4 had 1 children
[robot_state_publisher-3] [INFO] [1665496207.239646453] [robot_state_publisher]: got segment BASE
[robot_state_publisher-3] [INFO] [1665496207.239798989] [robot_state_publisher]: got segment LINK_1
[robot_state_publisher-3] [INFO] [1665496207.239817132] [robot_state_publisher]: got segment LINK_2
[robot_state_publisher-3] [INFO] [1665496207.239827544] [robot_state_publisher]: got segment LINK_3
[robot_state_publisher-3] [INFO] [1665496207.239843665] [robot_state_publisher]: got segment LINK_4
[robot_state_publisher-3] [INFO] [1665496207.239880454] [robot_state_publisher]: got segment world
[] [INFO] [1665496207.562289803] [spawn_entity]: Spawn Entity started
[] [INFO] [1665496207.562763886] [spawn_entity]: Loading entity published on topic robot_description
[] [INFO] [1665496207.564276168] [spawn_entity]: Waiting for entity xml on robot_description
[] [INFO] [1665496207.579126990] [spawn_entity]: Waiting for service /spawn_entity, timeout = 30
[] [INFO] [1665496207.579766050] [spawn_entity]: Waiting for service /spawn_entity
[] Traceback (most recent call last):
[]   File "/opt/ros/foxy/lib/python3.8/site-packages/rosidl_generator_py/", line 46, in import_type_support
[]     return importlib.import_module(module_name, package=pkg_name)
[]   File "/usr/lib/python3.8/importlib/", line 127, in import_module
[]     return _bootstrap._gcd_import(name[level:], package, level)
[]   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
[]   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
[]   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
[]   File "<frozen importlib._bootstrap>", line 657, in _load_unlocked
[]   File "<frozen importlib._bootstrap>", line 556, in module_from_spec
[]   File "<frozen importlib._bootstrap_external>", line 1166, in create_module
[]   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
[] ImportError: /opt/ros/foxy/lib/ undefined symbol: geometry_msgs__msg__Vector3__Sequence__are_equal
[] During handling of the above exception, another exception occurred:
[] Traceback (most recent call last):
[]   File "/opt/ros/foxy/lib/gazebo_ros/", line 367, in <module>
[]     main()
[]   File "/opt/ros/foxy/lib/gazebo_ros/", line 362, in main
[]     exit_code =
[]   File "/opt/ros/foxy/lib/gazebo_ros/", line 225, in run
[]     success = self._spawn_entity(entity_xml, initial_pose, self.args.spawn_service_timeout)
[]   File "/opt/ros/foxy/lib/gazebo_ros/", line 272, in _spawn_entity
[]     client = self.create_client(SpawnEntity, '%s/spawn_entity' % self.args.gazebo_namespace)
[]   File "/opt/ros/foxy/lib/python3.8/site-packages/rclpy/", line 1249, in create_client
[]     check_for_type_support(srv_type)
[]   File "/opt/ros/foxy/lib/python3.8/site-packages/rclpy/", line 29, in check_for_type_support
[]     msg_type.__class__.__import_type_support__()
[]   File "/opt/ros/foxy/lib/python3.8/site-packages/gazebo_msgs/srv/", line ...
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-10-12 05:50:43 -0500

SimoneM gravatar image

The problem was due to the inconsistency of some packages. For some reason after rosdep install I had multiple versions of some packages:

Version: 1.0.2-1focal.20220829.172957
Version: 1.0.1-1focal.20210901.023155
Version: 0.9.2-1focal.20220923.001718
Version: 0.9.2-1focal.20220209.154805
Version: 0.9.2-1focal.20220923.210401
Version: 0.9.2-1focal.20220209.163955

The solution was to uninstall ros-foxy-ros-workspace1.0.1-1 and reinstall ros-foxy-ros-base. I don't know why this discrepancy come out. But now everything work correctly again.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2022-10-11 09:03:13 -0500

Seen: 709 times

Last updated: Oct 12 '22