Skip to content
Robotics.world

Research

TinyCVIO: A Constellation-Aided Visual-Inertial Odometry System for Nanodrones

Nanodrones have tight size, weight, and power budgets, which forces a tradeoff: minimal optical-flow and inertial sensing fits the budget but has no absolute horizontal position reference, so…

The paper’s first page · arXiv:2609.30358
arXiv
2609.30358 · Preprint · not peer-reviewed
Published
2026-09-24
Authors
Derin Ozturk, Kaan Akan, Irwin Wang, Christopher Batten

In plain words

Nanodrones have tight size, weight, and power budgets, which forces a tradeoff: minimal optical-flow and inertial sensing fits the budget but has no absolute horizontal position reference, so position drift accumulates.

AI summary

Overview

Research area: Robotics — embedded state estimation, visual-inertial odometry (VIO), and resource-constrained aerial robotics.

Technical level: Advanced. The paper assumes familiarity with Multi-State Constraint Kalman Filters, nullspace/QR-based nuisance elimination, and bare-metal microcontroller programming.

Scope: The paper describes and evaluates TinyCVIO, a complete visual-inertial odometry system that runs onboard a nanodrone-class Crazyflie using a commodity dual-core microcontroller with 520 kB SRAM, using low-cost LED constellations as landmarks.

What This Paper Is About

Nanodrones have tight size, weight, and power budgets, which forces a tradeoff: minimal optical-flow and inertial sensing fits the budget but has no absolute horizontal position reference, so position drift accumulates. The alternatives — bigger onboard processors, custom silicon, ground-station offloading, or external infrastructure like motion capture, Lighthouse, or UWB — each add cost, calibration effort, or deployment complexity. TinyCVIO's goal is to improve estimation accuracy while keeping onboard resource demands, system complexity, and deployment effort low, by co-designing miniature sensing, visual processing, and the estimator around cheap battery-powered LED constellations and a commodity RP2354 microcontroller.

Key Contributions

  1. A real-time onboard nanodrone VIO system built on commodity compute (RP2354 dual-core Cortex-M33 at 300 MHz, 520 kB SRAM) and miniature sensing (NanEyeC 320×320 camera, ICM-45686 IMU), demonstrated flying on a Crazyflie.

  2. A visual frontend that combines CPU-independent bit-serial preprocessing in programmable I/O with geometry-based constellation detection and tracking, including a label-continuity check that suppresses persistent LED identity swaps.

  3. A rigid-board MSCKF measurement model that keeps the known inter-LED geometry of each five-LED constellation and eliminates the shared board pose (three planar DOF) via two-level nullspace projection, plus a streaming QR strategy that bounds estimation workspace to a fixed filter-state size regardless of track count.

  4. A multi-stage evaluation spanning Webots simulation, live hardware-in-the-loop captures with Vicon ground truth, paired replays on identical recorded inputs, frontend accuracy measurement, and nine onboard flights at three speeds.

Main Findings

  • Model accuracy in simulation: The rigid-board model achieves the lowest median ATE across tested detection-noise levels. Its ATE is eight times lower than free-point ATE at 0.25 px noise and three times lower at 2 px noise. Free points diverge in 3–15% of runs; neither constrained model diverges.

  • Longer clone windows help the rigid model most: Increasing the clone window from six to sixteen frames reduces ATE by 35% for rigid boards, versus 25% for planar points and 17% for free points. Fold workspace grows from 41.3 to 56.1 kB over this range.

  • Paired replay comparison: Across 19 paired hand-held capture replays, the rigid-board model reduces mean ATE by 27% relative to planar points (2.44 cm versus 3.32 cm), with lower mean orientation error (1.91° versus 2.38°) and lower RPE over 10 m segments (0.34% versus 0.46%). It gives lower ATE on 18 of 19 captures.

  • Processing time: Mean backend processing time is approximately 14% lower for the rigid-board model than for planar points, because each board is processed as a shared track rather than as independently recovered LEDs.

  • Frontend localization and recall: Detected constellations have an overall LED localization RMS error of 0.6 px, varying little across tested viewing distances and angular velocities but worsening near the image border. The frontend detects 82% of in-view boards within 1.4 m and inside 140 px of the image center; among missed boards, 91% remain bright, so brightness alone does not guarantee detection.

  • Label continuity matters: The continuity guard reduces mislabeled detections from 22.8% to 4.9% and increases the share of detections entering accepted backend updates from 43% to 52%.

  • Robustness tradeoffs: A 2 mm LED placement error increases rigid-board ATE by 66%, while changing either point model by less than 3% — the cost of imposing geometry. A 2 px principal-point error changes ATE by at most 3% for all models, whereas a 1.5% distortion error increases ATE by 17–27% without changing the ranking.

  • Gating and weighting: With uniform weighting, a χ² gate multiplier of 0.5 causes the rigid-board model to diverge in 82% of runs. With Cauchy weighting, no divergence is observed across gate multipliers of 0.5 to 20.

  • Measurement budget: Limiting updates to one board per update reduces fold workspace to one-quarter of the uncapped requirement while increasing ATE by approximately 10%; ATE stays 9–11% above the uncapped result and remains more accurate than either independent-point model at any tested budget.

  • Live HITL accuracy and timing: Over six live captures, rigid-board ATE ranges from 1.75 to 3.43 cm, orientation error from 1.13° to 1.63°, and RPE over 10 m from 0.26% to 0.38%. Backend means are 13.5–14.1 ms (maxima 24.7–25.7 ms), and mean estimate latency is 17.8–18.7 ms — lower than the planar-point captures (15.5–17.5 ms backend mean, 20.0–21.4 ms latency).

  • Onboard flight: Across nine flights at 0.34, 0.41, and 0.50 m/s, ATE is 3.65 ± 0.43 cm, 3.48 ± 0.34 cm, and 3.71 ± 0.79 cm; orientation error 1.44° ± 0.31°, 1.31° ± 0.68°, and 1.20° ± 0.26°; RPE over 10 m segments 0.57% ± 0.06%, 0.50% ± 0.10%, and 0.60% ± 0.15%. Mean estimate latency is 15.7 ± 0.1, 15.7 ± 0.1, and 16.3 ± 0.1 ms, with peak latency of 30.7, 31.9, and 31.2 ms.

Methodology in Plain English

Sensing setup. The drone carries a tiny monocular camera and an IMU on a custom deck weighing 5.1 g. Each battery-powered constellation board holds four LEDs at the corners of a 40 mm square plus a fifth LED 19 mm from one corner that breaks rotational symmetry. Crucially, the boards do not need surveyed positions or yaw angles — only that they lie on a common level plane. That assumption reduces each board's unknown pose from six degrees of freedom to three (two translations and a yaw angle), which the estimator exploits.

Splitting the work across two cores. One core handles the camera and visual tracking; the other handles inertial propagation and the visual-inertial update. Programmable I/O hardware — occupying all 32 instruction slots of one PIO block — extracts pixels and generates threshold events so the CPU never handles a full image. Lock-free buffers pass data between cores, and IMU batches are propagated as they arrive rather than piling up before a visual update.

Finding and identifying LEDs without storing an image. Threshold events arrive in raster order and are processed in a single pass: a two-row scanline buffer groups bright pixels into connected components and accumulates moments for centroid computation, so no full frame is retained. Newly seen constellations are identified by testing up to 30 candidate LED assignments consistent with the square-plus-disambiguator layout, ranking them with a closed-form similarity fit and selecting with IPPE and reprojection error. Between frames, a fitted 2D similarity transform carries LED identities forward; a continuity check rejects configurations whose square orientation changes by more than 30° or whose chirality flips.

Keeping memory bounded. Rather than assembling a large measurement matrix, the backend folds each track's constraints into a running triangular factor using Givens rotations, so storage is bounded by a factor the size of the filter state squared plus one track's incoming rows — independent of how many tracks there are. The rigid-board model adds a second level: per frame, the board-pose Jacobian is triangularized and compressed; across frames, a three-row accumulator combines the board-coupled rows and restores the triangular block, after which discarding the accumulator eliminates the board pose entirely. For five-LED boards, the rows passed to the shared fold are limited to 9F − 3, independent of board size.

Evaluation strategy. The authors use simulation to isolate modeling assumptions (seven figure-eight trajectories with known ground truth), live hardware-in-the-loop captures on a hand-held rig carrying Vicon markers to test the real frontend under motion-capture ground truth, paired replays of identical recorded inputs to compare measurement models fairly, and finally nine onboard Crazyflie flights. Onboard flights use a "pad initialization" — a 3D-printed launch pad above a constellation — to recover the initial pose from LEDs, gravity, and known camera height.

Why This Matters

Impact on research. The paper shows that a full MSCKF-style visual-inertial pipeline with geometric constraints can fit within 520 kB of SRAM on a commodity microcontroller, and it contributes a streaming QR formulation that bounds workspace independently of track count. That technique is presented as applicable to other memory-constrained MSCKF implementations, and the rigid-board model extends to other rigid fiducials under the same level-plane assumption. The authors plan to open-source hardware and software. The work also offers a careful accounting of what geometric constraints cost: accuracy gains vanish or reverse under LED placement error and ground-plane height variation.

Real-world applications:

  • Indoor drone swarms and light shows where many small robots need absolute position without motion-capture infrastructure.
  • Inspection of indoor structures (warehouses, tunnels, sub-floor spaces) where GPS is unavailable and installing base stations is impractical.
  • Rapid-deployment robotics in disaster response, where dropping battery-powered LED boards is cheaper and faster than surveying a site.
  • Low-cost research and education platforms, since the landmarks are simple LED boards and the compute is a commodity MCU.

Industry relevance. The system targets the gap between optical-flow-only estimators (cheap but drifting) and infrastructure-based localization (accurate but expensive to install and calibrate). For warehouse and inspection robotics, "deploy beacons without surveying them" removes a major commissioning cost. The memory-bounding technique is also relevant to any embedded product that must run VIO on a microcontroller rather than a companion processor.

Future Directions

  • Optimizing the constellation layout. The authors explicitly hold the board layout and LED pattern fixed and leave optimizing these spatial arrangements to future work.
  • Reducing sensitivity to placement error. A 2 mm LED placement error costs 66% ATE increase for the rigid-board model, and ground-plane height variation hurts both plane-constrained models more than free points — better calibration, online estimation of placement error, or adaptive models are natural responses.
  • Scaling beyond the tested regimes. Results cover speeds up to 0.99 m/s in simulation and 0.50 m/s in flight; whether the approach holds at higher speeds and more aggressive tilt (simulation tested up to 19°) is not established.
  • Extending to other rigid fiducials and other MCU platforms. The paper states the model generalizes to other rigid fiducials on a common known plane and that the streaming strategy applies to other memory-constrained MSCKF systems, but neither extension is evaluated here.

Target Audience

Embedded systems and robotics researchers working on state estimation under severe compute and memory constraints; engineers building small drones, swarm platforms, or indoor inspection robots who need absolute positioning without motion capture; and practitioners interested in MSCKF implementation techniques, particularly nullspace elimination and memory-bounded filtering. Readers without a background in Kalman filtering and embedded C will find the results accessible but the methodology sections demanding.

Authors’ abstract

Nanodrones require accurate, real-time state estimation under severe sensing and computational constraints. We present TinyCVIO, a visual-inertial odometry system that co-designs miniature sensing, visual processing, and estimation for a commodity dual-core microcontroller with 520 kB SRAM. Lightweight LED constellations provide known geometry without surveyed positions or yaw angles, assuming placement on a common level plane. A streaming visual frontend tracks LED…

The full abstract on arXiv
Read the original paper

Related papers