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

  1. To set up the QIR SDK and ROS2 environment on the device and run rplidar-ros2, start a terminal and run the following commands:
Example terminal logs showing successful node startup
  1. To check the topic output, run the following command:
Result:
  1. RViz visualization screenshots showing

Figure : visualization on RViz