Ubuntu20.04调试功能包的一些报错解决办法【更新中2024.06.05】

一、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-tools
5.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)
  • 9
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Errorbot

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值