ros2与传感器-思岚激光雷达rplidar A2
ros2与传感器-思岚激光雷达rplidar A2
说明:
- 介绍如何在ros2下使用思岚激光雷达rplidar A2
- 具体产品,点击淘宝地址
- 适合产品rplidar A1/A2 A3/S1
- 请访问思岚激光雷达新驱动版本
步骤:
- APT安装
sudo apt install ros-${ROS-DISTRO}-rplidar-ros
- 源码安装(与系统APT版本相同的源码)
cd ~/sensor_ws/src
git clone -b ros2 https://github.com/allenh1/rplidar_ros
- 编译代码
cd ~/sensor_ws/
colcon build --packages-select rplidar_ros
- 启动雷达,测试为A1
ros2 launch rplidar_ros view_rplidar.launch.py
- 自动运行rviz显示雷达数据
获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号