Quaternion kinematics for the error-state Kalman filter
Joan Solà
TL;DR
The work provides a comprehensive, convention-aware treatment of quaternions and 3D rotations, detailing their algebra, exponential/logarithmic maps, and the relationship to the rotation group SO(3). It then builds a rigorous error-state Kalman filter (ESKF) framework for IMU-driven systems, deriving continuous- and discrete-time kinematics, Jacobians, perturbations, and integration schemes, with both local and global angular-error formulations. A major focus is on precise, practitioner-friendly formulations for fusing IMU data with complementary sensors (GPS/vision), including SLERP, isoclinic rotations, and careful handling of perturbations, noise, and reset operations to minimize drift. The result is a practical toolkit for robust attitude and navigation estimation in real-world inertial sensing applications. The guidance aims to support reliable integration of high-rate IMU data with lower-rate absolute measurements, ensuring consistency, stability, and accuracy in pose estimation.
Abstract
This article is an exhaustive revision of concepts and formulas related to quaternions and rotations in 3D space, and their proper use in estimation engines such as the error-state Kalman filter. The paper includes an in-depth study of the rotation group and its Lie structure, with formulations using both quaternions and rotation matrices. It makes special attention in the definition of rotation perturbations, derivatives and integrals. It provides numerous intuitions and geometrical interpretations to help the reader grasp the inner mechanisms of 3D rotation. The whole material is used to devise precise formulations for error-state Kalman filters suited for real applications using integration of signals from an inertial measurement unit (IMU).
