How to Use RPLIDAR with Jetson

using rplidar with jetson

RPLIDAR sensors are widely used for SLAM (Simultaneous Localization and Mapping), obstacle avoidance, and robot navigation. This guide walks you through setting up an RPLIDAR (e.g., A1M8, S1, S2, or S3) with a Jetson-based device.

Requirements:

  • Jetson-based Edge AI Kit
  • RPLIDAR device (compatible with your project, e.g., A1M8, S1, S2, or S3)

Installation Steps:

1. Clone the RPLIDAR SDK Repository

Open a terminal and run:

Copy

2. Navigate to the Cloned Directory

If you didn’t rename it, the default directory will be rplidar_sdk:

Copy

3. Build the SDK

Inside the SDK directory, run the following command to compile the necessary files:

Copy

4. Verify the Build

Once compilation completes, example applications will be available. Navigate to the release directory and list its contents:

Copy

You should see compiled binaries such as ultra_simple.

5. Grant Serial Port Access

Before running the demo, you must grant read/write access to the USB serial device:

Copy

6. Run the Demo Application

Now you can launch the RPLIDAR demo. Make sure to replace the baudrate with the correct value for your model (see table below). This example is for RPLIDAR S3:

Copy

Baudrate Reference Table

Model Baudrate
A1M8 115200
S1​ 256000
S2​ 1000000
S3​ 1000000