紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
ros2服务调不同,不知道缺什么,节点都可以运行,也source了
-
ros2 service call /save_map cartographer_ros_msgs/srv/SaveMap "{path: /home/, include_unfinished_submaps: true}" Traceback (most recent call last): File "/opt/ros2/foxy/lib/python3.6/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.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked ModuleNotFoundError: No module named 'cartographer_ros_msgs.cartographer_ros_msgs_s__rosidl_typesupport_c' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/ros2/foxy/bin/ros2", line 11, in <module> load_entry_point('ros2cli==0.9.11', 'console_scripts', 'ros2')() File "/opt/ros2/foxy/lib/python3.6/site-packages/ros2cli/cli.py", line 67, in main rc = extension.main(parser=parser, args=args) File "/opt/ros2/foxy/lib/python3.6/site-packages/ros2service/command/service.py", line 41, in main return extension.main(args=args) File "/opt/ros2/foxy/lib/python3.6/site-packages/ros2service/verb/call.py", line 59, in main args.service_type, args.service_name, args.values, period) File "/opt/ros2/foxy/lib/python3.6/site-packages/ros2service/verb/call.py", line 83, in requester cli = node.create_client(srv_module, service_name) File "/opt/ros2/foxy/lib/python3.6/site-packages/rclpy/node.py", line 1249, in create_client check_for_type_support(srv_type) File "/opt/ros2/foxy/lib/python3.6/site-packages/rclpy/type_support.py", line 29, in check_for_type_support msg_type.__class__.__import_type_support__() File "/opt/eame/cartographer_ros_msgs/lib/python3.6/site-packages/cartographer_ros_msgs/srv/_save_map.py", line 279, in __import_type_support__ module = import_type_support('cartographer_ros_msgs') File "/opt/ros2/foxy/lib/python3.6/site-packages/rosidl_generator_py/import_type_support_impl.py", line 48, in import_type_support raise UnsupportedTypeSupport(pkg_name) rosidl_generator_py.import_type_support_impl.UnsupportedTypeSupport: Could not import 'rosidl_typesupport_c' for package 'cartographer_ros_msgs'