一、Could not find a package configuration file provided by “catkin_virtualenv”
解决办法:
sudo apt install ros-noetic-catkin-virtualenv
二、
ERROR: Could not find a version that satisfies the requirement pip-tools5.1.2 (from versions: none)
ERROR: No matching distribution found for pip-tools5.1.2
解决办法:
pip install pip-tools==5.1.2
三、ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.
解决办法:
python3:
sudo apt install python3-testresources
python2:
sudo apt install python-testresources
四、IndentationError: unindent does not match any outer indentation level, although the indentation looks correct [duplicate]
导致此错误的一个可能原因是python文件缩进时可能混有空格和制表符。
检查文件缩进存在异常的位置,统一使用一种缩进方法
python -m tabnanny yourFile.py
五、【20240605】
ROS2版本为Galactic,编译功能包报错:fatal error: tf2_geometry_msgs/tf2_geometry_msgs.hpp: No such file or directory
引用代码为:
#include "tf2_geometry_msgs/tf2_geometry_msgs.hpp"
实际上系统中安装了tf2_geometry_msgs,CMakeLists.txt文件中也有配置依赖包。解决办法为:
//修改
#include "tf2_geometry_msgs/tf2_geometry_msgs.hpp"
//改为
#include "tf2_geometry_msgs/tf2_geometry_msgs.h"
六、error: #error PCL requires C++14 or above
解决办法:修改CMakeLists.txt文件,在add compile_options(-std=c++11)这一行下面添加set(CMAKE CXX STANDARD 14)即可
add compile_options(-std=c++11)
set(CMAKE CXX STANDARD 14)