Now tested on real silicon

Robotics for
microcontrollers.

Sense, plan, estimate and control in no_std Rust in one integrated package. Tested on real hardware: run the same code from your laptop to a Cortex-M4.

3d_drone_flight: a Skydio X2 on an error-state filter, LQR and geometric attitude control
Skydio X2 quadrotor
3d_arm_torque: a Franka Panda on computed torque and a momentum observer holds its path under random pushes
Franka Panda under torque control
2d_localization_obstacle_avoidance: a differential-drive robot localizes with a particle filter and laps an obstacle course
Differential-drive mobile robot
1kHz
full arm loop on a 100 MHz Cortex-M4F
1e-10
agreement with Pinocchio, on silicon
0B
heap in each robot app on silicon
2.5s
clean build, one dependency
Live demos

Every number on screen is measured live.

Rerun showcases. Each tick is one fixed 1 ms step. Open a recording in the browser, or run the source on your machine.

Skydio X2 quadcopter flies a minimum-snap loop
3d_drone_flight
ESKF · LQR · geometric attitude · min-snap
≈ 2 µs
per tick
Franka Panda holds its path on computed torque under random pushes
3d_arm_torque
computed torque · momentum observer · jerk-limited profile
2.2 mm
off the path under pushes
Differential-drive robot localizes with a particle filter and laps an obstacle course
2d_localization_obstacle_avoidance
particle filter · EKF · follow-the-gap
0.72 µs
0 collisions / 600k ticks
Franka Panda arm tracks a moving 3D pose
3d_arm_ik
SE(3) IK · dynamics · gravity-comp PD
2–6 mm
lag at 1 kHz
Speed

Same math. Real chips. Timed in cycles.

Microseconds on three microcontrollers, Arm and RISC-V. Nanoseconds on a desktop.

Warm time per check

Log scale. Best of seven runs. Each run checks each answer against a golden or an identity. f32 runs on the FPU of the Arm boards and in software on the XIAO. f64 runs in software on each board.

Nucleo-F411RE · Cortex-M4F · 100 MHz Pico 2 · Cortex-M33 · 150 MHz XIAO ESP32-C3 · RV32IMC · 160 MHz · no FPU
Where it runs

Host. Emulator. Silicon.

183 checks against NumPy/LAPACK, SciPy/MINPACK, Pinocchio, mpmath, MuJoCo, mink and FilterPy. Golden floats stored bit-exact. CI fails on any drift.

PlatformCoreRuns onGate.text, KBPeak stack, B
x86_64-unknown-linux-gnux86_64CI hostfull test suite––
aarch64-unknown-linux-gnuArm64CI hostfull test suite––
thumbv7em-none-eabihfCortex-M4FQEMUgoldens · cross-ABI200.83,631
thumbv7em-none-eabiCortex-M4, soft-floatQEMUgoldens · cross-ABI166.53,311
riscv32imc-unknown-none-elfRV32IMCQEMUgoldens196.43,291
thumbv6m-none-eabiCortex-M0QEMUcanary set43.5908
Nucleo-F411REArm Cortex-M4Fsilicongoldens · µs budget––
Pico 2Arm Cortex-M33silicongoldens · µs budget––
XIAO ESP32-C3RISC-V RV32IMCsilicongoldens · µs budget––

Host and QEMU run in CI. Silicon runs on real boards. .text and peak stack are for the release smoke binary at f64; a PR fails at +10%.

The robot apps on silicon need more. On the Nucleo-F411RE: arm 31 KB of stack and 159 KB of flash, drone 8 KB and 97 KB, mobile_and_policy 2.7 KB and 150 KB. The Dual and f64 Franka frames set the arm stack. No app uses a heap.

Modules

One integrated stack.

Each module has a tutorial, a demo and a fixture table.

The math underneath

Built on its own no_std math core.

Autodiff, linear algebra and solvers. You can also use the core alone.

Newton fractal: every pixel is a Newton solve
newton_fractal
Newton system · autodiff Jacobian
4M / s
solves, one core
2,000 marbles follow exact autodiff gradients
gradient_marbles
2,000 exact gradients per tick
0.0
error vs analytic
Fourier epicycles draw Ferris
fourier_ferris
Gauss-Legendre quadrature
≈ 1e-15
coefficient error

Write it once. Differentiate it exactly.

The same formula runs at f64 and at a dual number. No step size, no truncation error.

let f = scalar_fn!(|x| x * x * x - constant(2.0) * x);    // x³ − 2x

let slope = derivative(&f, 2.0);                          // 10, exact
let root  = Newton::new().solve(&f, 2.0)?.root;           // √2
let area  = integral(&|x: f64| f.eval(x), [0.0, 2.0])?;   // 0

let mut filter = KalmanFilter::new(state, covariance, model);
filter.predict();
filter.update(measurement)?;                              // 36 ns, no heap

Community

Downloads on crates.io Stars on GitHub Contributors Open good first issues