Rplidar
Python module for RPLidar A1 and A2 rangefinder scanners
Install / Use
/learn @SkoltechRobotics/RplidarREADME
RPLidar

Simple and lightweight Python module for working with RPLidar rangefinder scanners.
This module aims to implement communication protocol with RPLidar rangefinder scaners. It's Python 2 and 3 compatible, but was mainly tested using Python 3.
For protocol specifications please refer to the slamtec document.
Installing
You can install rplidar using pip:
$ pip install rplidar
Or for Python 3:
$ sudo pip3 install rplidar
Documentation
View the latest rplidar documentation at http://rplidar.rtfd.org/.
Usage example
Simple example:
from rplidar import RPLidar
lidar = RPLidar('/dev/ttyUSB0')
info = lidar.get_info()
print(info)
health = lidar.get_health()
print(health)
for i, scan in enumerate(lidar.iter_scans()):
print('%d: Got %d measurments' % (i, len(scan)))
if i > 10:
break
lidar.stop()
lidar.stop_motor()
lidar.disconnect()
In addition to it you can view example applications inside examples directory.
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
