Skip to content

A real-time sensor data pipeline for robotics in Rust

Notifications You must be signed in to change notification settings

HueCodes/Sensor-Bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sensor-Bridge

A lock-free, real-time sensor data pipeline for robotics in Rust.

Features

  • Lock-free SPSC ring buffer (~50ns latency)
  • Composable processing stages (filters, transforms, fusion)
  • Zero allocations in hot paths
  • Timestamp synchronization for multi-sensor fusion

Quick Start

use sensor_pipeline::{buffer::RingBuffer, stage::MovingAverage, Stage};

let buffer: RingBuffer<f32, 1024> = RingBuffer::new();
let (producer, consumer) = buffer.split();

producer.push(1.0).unwrap();
assert_eq!(consumer.pop(), Some(1.0));

Run Examples

cargo run --features std --example simple_imu
cargo run --features std --example benchmark_latency --release

Run Tests

cargo test --features std

License

MIT OR Apache-2.0

About

A real-time sensor data pipeline for robotics in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages