Kinematics Estimators

This documentation was generated with the assistance of AI. Please report any inaccuracies.

Classes: NEDKinematicsEstimator, ECEFKinematicsEstimator, ECIKinematicsEstimator (see the Class Reference table at the end of this page for Javadoc and source links).

What these classes solve

A navigator integrates measured specific force and angular rate forward in time to obtain position, velocity, and attitude. The kinematics estimators solve the inverse problem: given two consecutive (attitude, velocity, position) navigation states, they compute the specific force and angular rate that an ideal IMU would have measured between them. This is exactly what the referenced MATLAB companion scripts (Kinematics_NED.m, Kinematics_ECEF.m, Kinematics_ECI.m) do, and it is the standard way to generate noise-free, synthetic IMU measurements for testing a navigator or calibrator against a known trajectory.

flowchart LR A["Known trajectory:\nattitude, velocity, position\nat consecutive epochs"] --> B["*KinematicsEstimator\n(this page)"] B --> C["Synthetic specific force f_ib\nand angular rate omega_ib"] C --> D["Navigator\n(integrates forward)"] D -->|should reproduce| A

Common structure

All three estimators follow the same four-step pattern described in Groves §5.1-5.3 (see [book-groves]), run in reverse:

  1. Angular rate: recover the attitude-increment rotation vector from the old and new body-to-reference coordinate transformation matrices (inverting the exponential attitude-update equation), then divide by the time interval.

  2. Specific force: difference the old and new velocities, subtract gravity/gravitation, and add back the Coriolis/transport-rate terms that the frame in question rotates with.

  3. Frame transformation: transform the specific force from the reference-frame resolving axes back to body-frame axes using the (precise, averaged) coordinate transformation matrix.

  4. Store the resulting BodyKinematics (specific force + angular rate), or a zero result if the time interval is zero.

Gravity (ECEF, NED) or gravitation (ECI) is evaluated at the position at the start of the time interval, which is the position the matching navigator uses when it integrates the same interval. This is what makes each estimator the exact inverse of its navigator:

  • The ECEFKinematicsEstimator and ECIKinematicsEstimator overloads receiving both the current and the previous frame (estimateKinematics(timeInterval, frame, oldFrame, …​)) take that position from oldFrame; the position contained in frame is ignored.

  • Overloads receiving an explicit position (x, y, z or a Point3D), or only the current frame together with the previous attitude and velocity, evaluate gravity at the position they are given. When the body moves during the interval, pass the start-of-interval position, or use the (frame, oldFrame) overloads.

Frames and notation

Groves works with three resolving frames for the same physical motion. The notation reads "quantity of frame with respect to frame , resolved about the axes of frame ". The estimators use:

Frame Velocity state Extra rotation terms

ECI ( )

None: the frame is inertial.

ECEF ( )

Earth rate (Coriolis).

NED ( )

Earth rate and transport rate .

Two ingredients are common to every frame. The attitude increment over one interval of length is the rotation between the old and new body axes seen from a non-rotating reference, and the specific force is the measured acceleration, i.e. the total acceleration minus gravity (or gravitation):

Each frame contributes different rotating-frame terms, derived below. Writing for the rotation that carries the old body axes into the new ones, the angular rate is recovered from its skew-symmetric part, the inverse of the Rodrigues update used by the navigators (see Attitude Estimators: Leveling, Gyrocompassing, and Magnetic Heading for the rotation algebra):

where are entries of the old-to-new rotation matrix. The scale factor is only applied above a small angle threshold, below which it is 1. A zero interval returns zero specific force and angular rate.

flowchart TD S["Epoch states (-) and (+):\nC, v, position"] --> R["Old-to-new attitude\nC(+)^T * rotation terms * C(-)"] R --> W["Angular rate\nomega = alpha / tau"] S --> D["Velocity difference / tau"] P["Position at start of interval\n(oldFrame or explicit)"] --> G["Gravity or gravitation\n(NED/ECEF/ECI estimator)"] D --> F["f in reference axes =\ndv/tau - g + Coriolis terms"] G --> F W --> A["Average attitude\nC(-) * Rodrigues-average - frame correction"] A --> B["f in body axes =\ninv(average C) * f"] F --> B B --> O["BodyKinematics\n(specific force, angular rate)"] W --> O

ECIKinematicsEstimator

The ECI frame is inertial, so there is no Earth-rotation or transport-rate term. Specific force is simply the velocity change minus gravitation (code comment: equations 5.18 and 5.20):

using ECIGravitationEstimator for at the start-of-interval position. The old-to-new attitude is simply , and the average attitude has no frame correction (equation 5.84):

The body-axes specific force follows from equation 5.81, .

ECEFKinematicsEstimator

The ECEF frame rotates with the Earth at rate . Differentiating introduces a Coriolis term, which is why the specific force is recovered from consecutive ECEF velocities and the start-of-interval position using (code comment: equation 5.36)

where comes from ECEFGravityEstimator and is the skew-symmetric Earth-rotation matrix:

The Earth rotation over the interval is the angle (equation 2.145), turned into the rotation matrix . The attitude increment is recovered from

(inverting the attitude update of equations 5.19/5.20), and the specific force is transformed back to body axes with the precise average matrix (equations 5.84/5.85, then 5.81). The Earth-rotation term of 5.85 is built from the attitude at the start of the interval:

Here is the Rodrigues average bracket shown for ECI. The correction (the code builds it as the skew matrix of times one half times ) must use the original old attitude matrix, before the Rodrigues factor is multiplied in. This ordering was corrected in issue #36 so that the estimator is the exact inverse of ECEFInertialNavigator.

NEDKinematicsEstimator

The local-navigation (NED) frame adds a further transport-rate term on top of the Earth-rate term, because the NED axes themselves rotate as the body moves across the Earth’s surface (equation 5.44, using the meridian/transverse radii of curvature from RadiiOfCurvatureEstimator). The Earth rate resolved in NED (equation 2.123) uses the start-of-interval latitude :

The attitude increment uses the Earth rate plus the average of the old and new transport rates (equation 5.77):

Specific force resolved about NED axes (equation 5.54), with the old-state transport rate, old velocity and the gravity vector at the old latitude and height:

using NEDGravityEstimator for . Finally the average attitude of equations 5.84/5.86 uses the old Earth and transport rates, evaluated exactly as the matching NEDInertialNavigator does:

and the body-axes specific force again follows from equation 5.81.

double timeInterval = 1.0; // seconds between the two epochs

// body-to-NED attitude at the start and end of the interval
CoordinateTransformation oldC = new CoordinateTransformation(
        0.0, 0.0, 0.0, FrameType.LOCAL_NAVIGATION_FRAME, FrameType.BODY_FRAME);
CoordinateTransformation c = new CoordinateTransformation(
        0.01, 0.0, 0.02, FrameType.LOCAL_NAVIGATION_FRAME, FrameType.BODY_FRAME);

double latitude = Math.toRadians(41.3851);
double oldLatitude = latitude;
double height = 0.0;
double oldHeight = 0.0;

// NED velocity at the start and end of the interval (m/s)
double oldVn = 0.0, oldVe = 0.0, oldVd = 0.0;
double vn = 1.0, ve = 0.0, vd = 0.0;

BodyKinematics kinematics = new BodyKinematics();
NEDKinematicsEstimator.estimateKinematics(timeInterval, c, oldC, vn, ve, vd, oldVn, oldVe, oldVd,
        latitude, height, oldLatitude, oldHeight, kinematics);

double fx = kinematics.getFx(); // synthetic specific force (m/s^2)
double angularRateZ = kinematics.getAngularRateZ(); // synthetic angular rate (rad/s)

ECEFKinematicsEstimator.estimateKinematics(…​) and ECIKinematicsEstimator.estimateKinematics(…​) follow the same pattern, replacing latitude/height with Cartesian position and NED velocity with ECEF/ECI velocity, respectively.

When the two navigation states are already available as frames, the frame-based overloads are the simplest choice, since they pick the start-of-interval position from the previous frame:

// oldFrame and frame are the ECEFFrame instances at the start and at the end of the interval
BodyKinematics kinematics = new BodyKinematics();
ECEFKinematicsEstimator.estimateKinematics(timeInterval, frame, oldFrame, kinematics);

Class Reference

Javadoc and source links for the classes used in the examples above:

Class Javadoc Source

NEDKinematicsEstimator

Javadoc

Source

ECEFKinematicsEstimator

Javadoc

Source

ECIKinematicsEstimator

Javadoc

Source

BodyKinematics

Javadoc

Source

Where to go next