Closed Mohammed-akhrif closed 1 year ago
Please open questions like this on https://robotics.stackexchange.com/questions/tagged/ros, which is our central Question and Answer site. You'll get a better answer there, and it will be searchable for the future.
Make sure to include a lot of information on what platform you are using, which ROS distribution you are using, and the exact steps you took.
Required Info:
I got that issue when I tried to use ros2 control list_hardware_interfaces :
Traceback (most recent call last): File "/opt/ros/foxy/lib/python3.8/site-packages/rosidl_generator_py/import_type_support_impl.py", line 46, in import_type_support return importlib.import_module(module_name, package=pkg_name) File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 657, in _load_unlocked
File "", line 556, in module_from_spec
File "", line 1166, in create_module
File "", line 219, in _call_with_frames_removed
ImportError: /opt/ros/foxy/lib/libcontroller_manager_msgs__rosidl_generator_c.so: undefined symbol: builtin_interfacesmsgDuration__are_equal
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/ros/foxy/bin/ros2", line 11, in
load_entry_point('ros2cli==0.9.11', 'console_scripts', 'ros2')()
File "/opt/ros/foxy/lib/python3.8/site-packages/ros2cli/cli.py", line 67, in main
rc = extension.main(parser=parser, args=args)
File "/opt/ros/foxy/lib/python3.8/site-packages/ros2controlcli/command/control.py", line 37, in main
return extension.main(args=args)
File "/opt/ros/foxy/lib/python3.8/site-packages/ros2controlcli/verb/list_hardware_interfaces.py", line 32, in main
hardware_interfaces = list_hardware_interfaces(node, args.controller_manager)
File "/opt/ros/foxy/lib/python3.8/site-packages/controller_manager/controller_manager_services.py", line 62, in list_hardware_interfaces
return service_caller(node, f'{controller_manager_name}/list_hardware_interfaces',
File "/opt/ros/foxy/lib/python3.8/site-packages/controller_manager/controller_manager_services.py", line 23, in service_caller
cli = node.create_client(service_type, service_name)
File "/opt/ros/foxy/lib/python3.8/site-packages/rclpy/node.py", line 1249, in create_client
check_for_type_support(srv_type)
File "/opt/ros/foxy/lib/python3.8/site-packages/rclpy/type_support.py", line 29, in check_for_type_support
msg_type.class.import_type_support()
File "/opt/ros/foxy/lib/python3.8/site-packages/controller_manager_msgs/srv/_list_hardware_interfaces.py", line 280, in import_type_support
module = import_type_support('controller_manager_msgs')
File "/opt/ros/foxy/lib/python3.8/site-packages/rosidl_generator_py/import_type_support_impl.py", line 48, in import_type_support
raise UnsupportedTypeSupport(pkg_name)
rhosidl_generator_py.import_type_support_impl.UnsupportedTypeSupport: Could not import 'rosidl_typesupport_c' for package 'controller_manager_msgs'
any ideas for solvig that issue