Тайлбар байхгүй

Duan 0bb57d5277 Modified callback type. 1 жил өмнө
.vscode 0bb57d5277 Modified callback type. 1 жил өмнө
.gitignore 0bb57d5277 Modified callback type. 1 жил өмнө
Makefile 0b1700ff63 上传文件至 '' 1 жил өмнө
README.md a1f8abe8d5 上传文件至 '' 1 жил өмнө
data_logger.py 0bb57d5277 Modified callback type. 1 жил өмнө
rb_lidar.c 9fca6154e3 上传文件至 '' 1 жил өмнө
rb_lidar.h 9fca6154e3 上传文件至 '' 1 жил өмнө
rblidar.py 0bb57d5277 Modified callback type. 1 жил өмнө

README.md

LakiBeam SDK - Linux C/Python Hybrid programming radar data interface

Project profile

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.

Characteristics

  • 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

Environmental dependence

  • Linux
  • GCC compiler
  • Python 3.x

Dependency library

  • ctypes
  • numpy
  • matplotlib

Installing

You can install ctypes、numpy and matplotlib using pip:

$ pip install ctypes numpy matplotlib

Or for Python 3:

$ sudo pip3 install ctypes numpy matplotlib

Compile and build

Makefile

The project provides makefiles to simplify the compilation and build process:

Common command

make # 编译C库 make clean # 清理编译产生的文件 python3 rblidar.py # 编译Python接口测试

Troubleshooting

· Ensure all dependencies are installed · Check library path and permissions · Verify network configuration for UDP communication

Usage example

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)