安装:
ubuntu18.04
错误一:
/home/moro/work_ws/src/elevation_mapping/elevation_mapping/include/elevation_mapping/PointXYZRGBConfidenceRatio.hpp:31:3:error: ‘PCL_MAKE_ALIGNED_OPERATOR_NEW’ does not name a type; did you mean ‘EIGEN_MAKE_ALIGNED_OPERATOR_NEW’?
PCL_MAKE_ALIGNED_OPERATOR_NEW
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

把对应文件中内容改成下边的

错误二:
fatal error: filters/filter_chain.hpp: 没有那个文件或目录
#include <filters/filter_chain.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~
改为 filters/filter_chain.h

错误三:
RLException: [XXX] is neither a launch file in package [XXX] nor is [XXX] a launch file name报错信息解决方法

source catkin_ws/devel/setup.bash

安装 anaconda 后,开启终端默认会激活 anaconda 的 base 环境 (base)user@computer:,这样默认的 python 版本就会是 anaconda 相应的 python 版本;有时候在编译 ROS 的时候,很多 package 是基于 python2.7 的,如果直接在终端里进行编译,调用的是 anaconda 高版本的 python,编译会出错;因此,需要我们需要先退出 anaconda base 环境,有两种方法
方法1:直接用 conda deactivate退出,下次想使用 anaconda 的时候,再执行 conda activate base 进入;方法2:通过 conda config --set auto_activate_base false 进行配置 ,这样每次打开终端的时候,就不会自动进入 anaconda base 环境;若想恢复,则执行 conda config --set auto_activate_base true即可

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐