环境:
Ubuntu 18.04
ROS Melodic
一、目的
用过 cartographer 的朋友都知道,cartographer 官方使用的编译方式是 catkin_make_isolated ,这个编译方式很好很优秀,可以独立的编译各个功能包,也解决了catkin_make 存在的一些历史遗留问题,虽然但是,我还是不得不使用 catkin_make (允悲),原因是我已经使用QT作为我的程序开发IDE五年了,真心不想换别的了哈哈。但是QT这玩意儿不支持 catkin_make_isolated 构建,没法儿,又不能换了它,那只能想办法把 cartographer 的包编译方式改一改了。
二、干货
1、首先参照我的上一篇博客,把 glog 和 ceres-solver 1.13.0 编译安装好,链接如下:
Ubuntu18.04 + ROS Melodic 部署 Cartographer_ros_stan-coder的博客-CSDN博客
2、去我的 仓库 里把这个 cartographer 压缩包download下来,链接如下:
“等待上传审核通过中”(等不及的可以直接私信我)
3、解压 carto_build.zip ,并选择一个位置新建一个文件夹 cartographer ,然后进行如下操作:
cd carto_build/scripts
chmod +x install_abseil.sh
./install_abseil.sh
cd ../
mkdir build

本文档介绍了如何在Ubuntu18.04和ROSMelodic环境下,针对不支持catkin_make_isolated的QT IDE,修改Cartographer的编译方式,使其能用catkin_make顺利编译。主要步骤包括:安装glog和ceres-solver,下载并修改Cartographer源码,调整cartographer_ros的CMakeList,最后成功编译cartographer_ros包。
最低0.47元/天 解锁文章
4850

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



