How 3367816945-cell/k3-riscv-perception-lab works
This repository is a RISC-V perception research and validation workbench for Livox Mid-360 data on SpacemiT K1/K3—not a production SLAM stack. Its principal workflow captures timestamped LiDAR and IMU streams, prepares point clouds, runs VGICP replay, and produces pose/map and performance evidence; ROS 2 probes exercise point-cloud transport. Separate validation branches cover platform/HMP/RVV capabilities and a PCL pipeline. The README documents the algorithm stages and product boundaries; sampled source confirms selected record, deskew, VGICP, and ROS probe behavior, but not every stage’s implementation wiring.
Main entry points: vgicp_probe.cpp VGICP replay · livox_record_format.h Record format · livox_record.cpp Livox recorder · livox_offline_deskew.cpp Offline deskew
Components 21
Sensor data
- Livox recorder
src/livox_record.cpp - Record format
src/livox_record_format.h - Capture utility
src/mid360_capture.cpp - Record inspection
src/livox_inspect.cpp
Perception pipeline
- Offline deskew
src/livox_offline_deskew.cpp - VGICP replay
src/vgicp_probe.cpp - PCL pipeline
src/pointcloud_pipeline.cpp - Point-cloud core
src/pointcloud_core.cpp - Obstacle segmentation
src/obstacle_segmenter.cpp
Output interfaces
- Perception contract
config/perception_contract.json - Cloud publisher
ros2_ws/src/k3_sensor_probe/src/cloud_publisher.cpp - Cloud subscriber
ros2_ws/src/k3_sensor_probe/src/cloud_subscriber.cpp
Platform validation
- Platform probe
src/platform_probe.cpp - K3 HMP probe
tools/k3_hmp_probe.cpp - RVV throughput
tools/k3_vector_throughput.cpp - OpenCL probe
tools/opencl_probe.cpp - Clock probe
tools/clock_probe.cpp
Other components
- Operator
- Livox Mid-360
- IMU
- ROS 2 middleware
Connections 23
- Operator → Livox recorder: starts capture
README.md - Livox Mid-360 → Livox recorder: sends packets
README.md - IMU → Livox recorder: supplies samples
README.md - Livox recorder → Record format: writes records
src/livox_record.cpp - Record format → Offline deskew: decodes stream
src/livox_offline_deskew.cpp - Record format → VGICP replay: decodes stream
src/vgicp_probe.cpp - Record format → Record inspection: validates stream
src/livox_inspect.cpp - Operator → Offline deskew: runs replay
README.md - Operator → VGICP replay: runs replay
README.md - Offline deskew → VGICP replay: prepares clouds
- VGICP replay → Cloud publisher: exports perception
- Cloud publisher → ROS 2 middleware: publishes topic
ros2_ws/src/k3_sensor_probe/src/cloud_publisher.cpp - ROS 2 middleware → Cloud subscriber: delivers topic
ros2_ws/src/k3_sensor_probe/src/cloud_subscriber.cpp - Operator → Capture utility: runs capture
README.md - Operator → PCL pipeline: runs benchmark
README.md - Operator → Point-cloud core: runs validation
- Operator → Obstacle segmentation: runs segmentation
- Operator → Platform probe: checks platform
README.md - Operator → K3 HMP probe: checks scheduling
README.md - Operator → RVV throughput: measures vectors
README.md - Operator → OpenCL probe: checks compute
- Operator → Clock probe: checks timing
- Perception contract → VGICP replay: defines outputs