暫無描述

Duan e44e815feb update .gitignore 1 年之前
.gitignore e44e815feb update .gitignore 1 年之前
Makefile e44e815feb update .gitignore 1 年之前
README.md e44e815feb update .gitignore 1 年之前
data_logger.py 0bb57d5277 Modified callback type. 1 年之前
rb_lidar.c e44e815feb update .gitignore 1 年之前
rb_lidar.h e44e815feb update .gitignore 1 年之前
rblidar.py e44e815feb update .gitignore 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)