准备
Ubuntu18.04
雷达A2M7
一、前期准备
安装
建立工作空间并编译
mkdir -p ~/turtlebot_ws/src
cd ~/turtlebot_ws/src
git clone https://github.com/ncnynl/rplidar_ros.git
git clone https://github.com/tu-darmstadt-ros-pkg/hector_slam.git

表示成功
返回上级包编译
cd ..
catkin_make

出现错误可以多执行两次
3.添加环境变量
echo “source ~/turtlebot_ws/devel/setup.bash” >> ~/.bashrc
source ~/.bashrc
4.驱动安装
源码安装 rplidar-ros 雷达驱动
sudo apt-get install ros-melodic-rplidar-ros
<