安装rtabmap
在创客智造找的安装教程(http://www.ncnynl.com/archives/201709/1991.html)当然其他地方的应该也可以。
错误的解决方法我是在这篇大神的博客中找到的。
(http://blog.csdn.net/David_Han008/article/details/53122075?locationNum=11&fps=1)
首先要安装各种依赖库如g2o等
下载安装RTAB-Map
- 源码安装rtabmap
$ cd ~
$ git clone https://github.com/introlab/rtabmap.git rtabmap
$ cd rtabmap/build
$ cmake -DCMAKE_INSTALL_PREFIX=~/catkin_ws/devel ..
$ make -j4
$ make install
- 源码安装rtabmap_ros
$ cd ~/catkin_ws
$ git clone https://github.com/introlab/rtabmap_ros.git src/rtabmap_ros
$ catkin_make -j1
这两段命令我只执行了第一段,