Full-featured python library for Slamtec RPLIDAR series
Project description
PyRPlidar
Introduction
PyRPlidar is a python library for Slamtec RPLIDAR series.
- Supports all series (A1, A2 and A3)
- Implement all features of the device
- Simple code & Easy to use
- Use generator pattern (for performance)
Installation
$ pip install pyrplidar
Example Code
from pyrplidar import PyRPlidar
lidar = PyRPlidar()
lidar.connect(port="/dev/ttyUSB0", baudrate=256000, timeout=3)
# Linux : "/dev/ttyUSB0"
# MacOS : "/dev/cu.SLAB_USBtoUART"
# Windows : "COM5"
info = lidar.get_info()
print("info :", info)
health = lidar.get_health()
print("health :", health)
samplerate = lidar.get_samplerate()
print("samplerate :", samplerate)
scan_modes = lidar.get_scan_modes()
print("scan modes :")
for scan_mode in scan_modes:
print(scan_mode)
lidar.disconnect()
Documentation
This library implement full specifications on the protocol documentation of Slamtec.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyrplidar-0.1.2.tar.gz
(12.1 kB
view details)
File details
Details for the file pyrplidar-0.1.2.tar.gz
.
File metadata
- Download URL: pyrplidar-0.1.2.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 287857233de113df7d252caf591ad01f270b4306941374b5ad289296847f0906 |
|
MD5 | 24539c1cbd91898e8c1a29e63c0e75f1 |
|
BLAKE2b-256 | 2b98920d5679a690798165d51ce5f519527fb7351d0ffc979ab171ccedfc599c |