RepositoryC++AUÚc
sfwa

sfwa/ukf

Header-only C++17 Unscented Kalman Filter library for state and parameter estimation

529sao
177fork
1issue
0lượt xem

🚀 Header-Only UKF: State Estimation Without the Heap

A C++17 library that brings Unscented Kalman Filtering to embedded systems with zero heap allocation during updates.

sfwa/ukf is a header-only C++17 library that implements the Unscented Kalman Filter for state and parameter estimation. It uses Eigen for linear algebra but keeps memory allocation static, allowing it to run on embedded devices without heap overhead. The library offers three filter cores—UKF::Core, UKF::SquareRootCore, and UKF::SquareRootParameterEstimationCore—each tailored to different estimation tasks.

✨ Highlights

  • Header-only design: No compilation required; just include the headers and link against Eigen.
  • Multiple filter cores: Choose between standard, square‑root, and parameter‑estimation variants.
  • Zero heap allocation: Fixed‑size measurement storage prevents dynamic memory use during updates.
  • Flexible measurements: Supports scalar or vector measurements with fixed or dynamic sets.
  • Dense covariance and innovation gating: Optional dense measurement noise covariance and built‑in gating for outlier rejection.
  • Precision control: Compile‑time selection of single or double precision.
  • Exception‑free API: Every filter step returns a success flag; no C++ exceptions are thrown.
  • CMake integration: Easy to add as a subdirectory or install, with options for system Eigen, tests, benchmarks, and examples.

💡 Why it matters

Most Kalman filter implementations rely on dynamic memory allocation, which is problematic for embedded systems with limited resources. By providing a header‑only, allocation‑free API, ukf makes state estimation feasible in constrained environments without sacrificing flexibility. The inclusion of square‑root and parameter‑estimation variants expands its applicability to tasks such as attitude estimation and system identification, where traditional approaches would require separate libraries.


#KalmanFilter #UnscentedKalmanFilter #C++ #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC++
manankharwar/fusioncore

ROS 2 localization for outdoor robots: IMU, wheel encoders and GPS fused in a 23-state UKF at 100 Hz. When the estimate goes wrong it reports which sensor and why, instead of drifting silently. Apache 2.0.

386
Nov 17, 2026
RepositoryC++
MIT-SPARK/Kimera-VIO

Visual Inertial Odometry with SLAM capabilities and 3D Mesh generation.

1.9k
Aug 6, 2026
RepositoryC++
ser94mor/sensor-fusion

Filters: KF, EKF, UKF || Process Models: CV, CTRV || Measurement Models: Radar, Lidar

202
Jul 4, 2019
RepositoryC++
aaronboda24/Loose-GNSS-IMU

Loosely coupled integration of GNSS and IMU

188
Feb 2, 2019
RepositoryPython
decargroup/navlie

A state estimation package for Lie groups!

196
Apr 30, 2026
RepositoryJulia
baggepinnen/LowLevelParticleFilters.jl

State estimation, smoothing and parameter estimation using Kalman and particle filters.

159
Oct 26, 2026
RepositoryC++
HKUST-Aerial-Robotics/VINS-Mono

A Robust and Versatile Monocular Visual-Inertial State Estimator

6.1k
Aug 14, 2024
RepositoryC++
artivis/manif

A small C++11 header-only library for Lie theory.

1.8k
Aug 5, 2026
RepositoryC++
behnamasadi/robotic_notes

This repo contains my snippet and tutorials for Lie Group and Lie Algebra, Topology and Configuration of Robot and Space ,IMU, ROS2 Gazebo Integration, State Estimation, VIO, LIO, and Deep Learning based SLAM

303
Nov 2, 2026