# Rplidar-ros2
The rplidar-ros2 sample provides basic device handling for the 2D laser scanner RPLIDAR A1/A2/A3/S1/S2/S3.
The figure shows the pipeline of the rplidar-ros2 sample. The sample gets the driver data from `rplidar` SDK, and then publishes the `/scan` topic.

**Figure : rplidar-ros2 pipeline**
For information on the ROS nodes and topics used in the pipeline flow, see [Pipeline flow for rplidar-ros2](https://docs.qualcomm.com/doc/80-70017-265/topic/rplidar-ros2_5_2_3.html#id-rplidar-ros2-pipeline-in-topic).
## Use case: Run out-of-the-box rplidar-ros2
**Prerequisites:**
- Install QIRP SDK and dependencies, see [Build the software](https://docs.qualcomm.com/doc/80-70017-265/topic/build-the-software_4_1.html#build-the-software-4-1) and [Flash and install](https://docs.qualcomm.com/doc/80-70017-265/topic/flash-and-install_4_3.html#flash-and-install-4-3).
- Enable `SSH` in ‘Permissive’ mode with the steps mentioned in [Log in using SSH](https://docs.qualcomm.com/bundle/publicresource/topics/80-70017-254/how_to.html#use-ssh).
- The RPLIDAR A3M1 is set up.
**Steps:**
1. Start a terminal and run the following commands to set up QIRP SDK and ROS2 environment on the device and run rplidar-ros2.
ssh root@[ip-addr]
(ssh) mount -o remount,rw /usr
(ssh) export HOME=/home
(ssh) source /usr/share/qirp-setup.sh
(ssh) source /usr/bin/ros_setup.bash
(ssh) ros2 launch rplidar_ros rplidar_a3_launch.py
Copy to clipboard
## Pipeline flow for rplidar-ros2
Table : ROS topic used in rplidar-ros2 pipeline
| ROS topic | Type | Published by |
| --- | --- | --- |
| /scan
Copy to clipboard |
Copy to clipboard | `rplidar-ros2` node |
Last Published: Dec 30, 2024
[Previous Topic
Librealsense2](https://docs.qualcomm.com/bundle/publicresource/80-70017-265/topics/librealsense2_5_2_2.md) [Next Topic
QRB-ROS-IMU](https://docs.qualcomm.com/bundle/publicresource/80-70017-265/topics/qrb-ros-imu_5_2_4.md)