问题描述

Ubuntu20.04 ROS1使用tf2包遇到报错:

Traceback (most recent call last):
  File "/root/catkin_ws/src/octo/main_inference.py", line 9, in <module>
    from tf2_geometry_msgs import do_transform_pose
  File "/opt/ros/noetic/lib/python3/dist-packages/tf2_geometry_msgs/__init__.py", line 1, in <module>
    from .tf2_geometry_msgs import *
  File "/opt/ros/noetic/lib/python3/dist-packages/tf2_geometry_msgs/tf2_geometry_msgs.py", line 31, in <module>
    import PyKDL
ModuleNotFoundError: No module named 'PyKDL'

解决方法

conda install -c conda-forge python-orocos-kdl     
Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐