项目场景:ubuntu18.04编译ALOAM时eigen报错
---error: no match for ‘operator<’ (operand types are ‘Eigen::QuaternionBase<Eigen::Quaternion<ceres::Jet<double, 7>, 0> >::Scalar {aka ceres::Jet<double, 7>}’ and ‘int’) if(d< 0) scale1 = -scale1;
问题描述
在catkin_ws工作空间中编译ALOAM需要提前配置依赖,安装好pcl之后在工作空间使用catkin build编译,出现报错:
@/usr/include/eigen3/Eigen/src/Geometry/Quaternion.h
error: no match for ‘operator<’ (operand types are ‘Eigen::QuaternionBase<Eigen::Quaternion<ceres::Jet

在Ubuntu18.04上编译ALOAM项目时遇到eigen相关报错,问题源于数据类型转换。通过对报错位置的代码修正,将原本的代码改为新的形式,成功解决了编译错误,后续编译过程顺利无误。
最低0.47元/天 解锁文章
1820

被折叠的 条评论
为什么被折叠?



