RTAB_map安装教程(官网链接:https://github.com/introlab/rtabmap_ros#installation)
1、安装:
sudo apt-get install ros-kinetic-rtabmap-ros/
2、设置环境变量:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ros/kinetic/lib/x86_64-linux-gnu
3、设置路径:
source /opt/ros/kinetic/setup.bash
source ~/catkin_ws/devel/setup.bash
4、设置依赖项:sudo apt-get install ros-kinetic-rtabmap ros-kinetic-rtabmap-ros
5、安装rtab_map:
git clone https://github.com/introlab/rtabmap.git rtabmap
cd rtabmap/build
Cmake -DCMAKE_INSTALL_PREFIX=~/catkin_ws/devel ..
make(此过程中遇到了错误,解决方法如下问题一)
sudo make install
6、工作区安装RTAB:
cd ~/catkin_ws
git clone https://github.com/introlab/rtabmap_ros.git src/rtabmap_ros
catkin_make -j1(此过