How to Use 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:
2. Navigate to the Cloned Directory
If you didn’t rename it, the default directory will be rplidar_sdk:
3. Build the SDK
Inside the SDK directory, run the following command to compile the necessary files:
4. Verify the Build
Once compilation completes, example applications will be available. Navigate to the release directory and list its contents:
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:
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:
Baudrate Reference Table
Model | Baudrate |
---|---|
A1M8 | 115200 |
S1 | 256000 |
S2 | 1000000 |
S3 | 1000000 |