|
|
1 рік тому | |
|---|---|---|
| .vscode | 1 рік тому | |
| .gitignore | 1 рік тому | |
| Makefile | 1 рік тому | |
| README.md | 1 рік тому | |
| data_logger.py | 1 рік тому | |
| rb_lidar.c | 1 рік тому | |
| rb_lidar.h | 1 рік тому | |
| rblidar.py | 1 рік тому |
LakiBeam SDK is a Linux-based cross-language (C/Python) radar data receiving and processing library designed for real-time radar data acquisition and processing.
Low-level implementation of C language in pure Linux environment
Python dynamic library call mechanism
UDP receives network data in real time
Multi-threaded data processing
Dual buffer design to improve data throughput
You can install ctypes、numpy and matplotlib using pip:
$ pip install ctypes numpy matplotlib
Or for Python 3:
$ sudo pip3 install ctypes numpy matplotlib
The project provides makefiles to simplify the compilation and build process:
make # 编译C库 make clean # 清理编译产生的文件 python3 rblidar.py # 编译Python接口测试
· Ensure all dependencies are installed · Check library path and permissions · Verify network configuration for UDP communication
from rblidar import RBLidar
def data_callback(data, length):
print(f"Received data, length: {length}")
lidar = RBLidar("192.168.8.1", 2368, frame_callback=data_callback)