Australiasfwa/ukf
Header-only C++17 Unscented Kalman Filter library for state and parameter estimation
🚀 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
Similar Projects
Discover other similar projects and AI models.
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.
Visual Inertial Odometry with SLAM capabilities and 3D Mesh generation.
Filters: KF, EKF, UKF || Process Models: CV, CTRV || Measurement Models: Radar, Lidar
State estimation, smoothing and parameter estimation using Kalman and particle filters.
A Robust and Versatile Monocular Visual-Inertial State Estimator
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