Skip to main content
The rplidar-ros2 sample application provides basic device handling for the 2D laser scanner RPLIDAR A1/A2/A3/S1/S2/S3.

Pipeline flow for rplidar-ros2

The figure shows the pipeline of the rplidar-ros2 sample. The sample application gets the driver data from the rplidar SDK, and then publishes the /scan topic.

Figure : rplidar-ros2 pipeline

ROS topics used in the rplidar-ros2 pipeline

ROS topicMessage typePublished/Subscribed byDescription
/scansensor_msgs::msg::LaserScanPublished by rplidar-ros2The /scan topic publishes the laser scan data from the RPLIDAR.

Prerequisites

Run out-of-the-box rplidar-ros2

To set up the QIR SDK and ROS2 environment on the device and run rplidar-ros2, start a terminal and run the following commands:
ssh root@[ip-addr]
(ssh) source /usr/share/qirp-setup.sh
(ssh) ros2 launch rplidar_ros rplidar_a3_launch.py