当前位置:首页 » 《随便一记》 » 正文

Ubuntu16.04编译高博的ORBSLAM2_with_pointcloud_map详细过程_m0_58173801的博客

13 人参与  2022年01月12日 09:44  分类 : 《随便一记》  评论

点击全文阅读


我在编译过程中主要参考了以下几篇博客:

Ubuntu16.04编译高博的ORBSLAM2_with_pointcloud_map_Andyoyo007的博客-CSDN博客编译高博ORBSLAM2_with_pointcloud_map,用TUM数据集测试。_Seven的博客-CSDN博客

编译安装高翔的ORBSLAM2_with_pointcloud_map,获取点云地图_站在巨人的肩膀上coding-CSDN博客_高翔orbslam2

1、下载源代码

git clone https://github.com/gaoxiang12/ORBSLAM2_with_pointcloud_map.git

2、将其中的压缩包解压,将压缩包中的ORB_SLAM2_modified用原来的根目录下的ORB_SLAM2_modified来代替。

3、编译安装g20_with_orbslam2并对一些常见的错误进行处理

1) 修改 g2o_with_orbslam2/CMakeLists.txt ,注释如下代码:

2)修改 2)g2o_with_orbslam2/g2o/CMakeLists.txt ,注释如下代码:

 

 3)报错1

解决:修改 g2o_with_orbslam2/g2o/types/slam2d/edge_se2_pointxy_bearing.cpp

  1. t.setRotation(t.rotation().angle()+_measurement);

  2. 改为

  3. t.setRotation((Eigen::Rotation2Dd)(t.rotation().angle()+_measurement));

4)报错

解决:修改g2o_with_orbslam2/g2o/solvers/eigen/linear_solver_eigen.h(注意:eigen3.2.8不用修改此处,以上版本需修改,如3.3.7)     我的eigen版本  3.3.7 。 


typedef Eigen::PermutationMatrix<Eigen::Dynamic, Eigen::Dynamic, SparseMatrix::Index> PermutationMatrix;
改为
typedef Eigen::PermutationMatrix<Eigen::Dynamic, Eigen::Dynamic, SparseMatrix::StorageIndex> PermutationMatrix;

5)安装成功

4、编译ORB_SLAM2_modified

暂时还没有编译出来hh


点击全文阅读


本文链接:http://zhangshiyu.com/post/33075.html

编译  修改  博客  
<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1