提示:ModuleNotFoundError: No module named 'PyKDL'
由于之前跑过深度学习,装了一些conda的虚拟环境,conda的某些东西弄乱了我的ROS
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'
sudo apt install python3-pykdl
/usr/lib/python3/dist-packages/PyKDL.cpython-38-x86_64-linux-gnu.so
PYTHONPATH
中home
中ctrl+h
打开.bashrc
文件.bashrc
文件中export PYTHONPATH="${PYTHONPATH}:/usr/lib/python3/dist-packages/"
[INFO] [1650074667.077788]: 转换后的坐标:(2.20,3.00,5.50),参考坐标系: base_link
[INFO] [1650074667.177796]: 转换后的坐标:(2.20,3.00,5.50),参考坐标系: base_link
[INFO] [1650074667.277761]: 转换后的坐标:(2.20,3.00,5.50),参考坐标系: base_link