At this September checkpoint, the localisation filter had 21 tests. They checked useful mathematical properties: the exponential/logarithm round-trip, covariance symmetry, positive-definiteness and the sign of individual updates. None drove it along a complete trajectory and compared the estimate with an independently available position.
Two estimators agreeing would not solve that problem. They could share the same frame error, biased observation or mistaken initial condition. The missing tool was a case where the answer existed separately from either estimate.
Build the truth, then build the sensors
A Fossen-model plant supplies the simulated position, attitude and velocity at each tick. This is known model state, not an exact description of a physical vehicle in water. It lets the harness generate observations and score the filter against something other than its own previous output.
The pinned revision schedules IMU and velocity observations at 50 Hz, with depth and heading at 10 Hz. The rates were chosen from that stage of the project; the noise amplitudes were configured, not calibrated by this experiment. Keeping those two facts separate prevents a plausible synthetic sensor from becoming an undocumented hardware claim.
Generating an accelerometer reading needs more than differentiating the body’s velocity components. In a rotating body frame, the source includes the transport term ω × v, then subtracts gravity expressed in the body frame. Omitting that term would feed the filter an acceleration error during turns and could make an apparent estimator defect originate in the harness.

The frame seam that cost −1,988 degrees
The estimator uses a north-east-down world frame and a forward-right-down body frame. The plant’s body convention agrees with forward/starboard/down, so the interface does not need an arbitrary axis permutation or sign flip. That does not make world and body coordinates interchangeable.
The harness explicitly uses a body-to-world rotation. At 90° of yaw, one metre per second forward in the body is one metre per second east in the world, not north. It rotates the estimated world velocity back into the body frame before scoring it against the plant’s body velocity.
This distinction was worth pinning because an earlier allocator-to-plant integration had produced a reported −1,988° accumulated yaw runaway. That trace is a different quantity from the wrapped yaw-error metric below. Sharing axis names is not enough; vector frames, rotation direction, angle units and positive torque all have to agree.
The first numbers that mean what they say
The first reported baseline used sixty seconds of a yawing trajectory with full aiding and an ideal start: the estimator began at the true position.
- 0.013 m
- horizontal position RMS error
- 0.31°
- yaw RMS error
- 0.002 m
- depth RMS error
Archived nominal simulation baseline with ideal initial position. Not a physical accuracy measurement or a test of uncertain initialisation.
The baseline made the complete path inspectable: simulated motion, synthetic observations, state updates and errors in a defined frame. The small values were not enough to establish robustness. They described one comparatively easy starting condition.
Two estimators agreeing proves they agree.
Define the score before admiring it
The position score uses the horizontal components only. Depth is scored separately. RMS accumulates squared errors over the trajectory before taking a square root; final error inspects only its endpoint. A filter can finish near the right place after a large earlier excursion, so those metrics answer different questions.
Yaw error is wrapped to the shortest angular difference before squaring. Otherwise an estimate at −179° and a truth at +179° would look 358° apart rather than 2°. Velocity is compared only after bringing both vectors into the same body frame. A numerical score with the wrong component, frame or angle convention can look precise while measuring something else.
The initial condition changed the interpretation
The next commit supplied a nonzero horizontal launch error instead of handing the estimator the true origin. With healthy flow, depth and heading but no absolute position fix, a 0.5 m initial offset remained about 0.495 m after 30 seconds; a 1 m offset remained about 0.993 m.
That is not inconsistent with the small ideal-start baseline. Velocity can describe motion without observing an absolute horizontal offset. Starting at truth had hidden the question of whether the filter could remove a position error it was never given an observation of.
The harsher tests also exposed an operating regime where world-frame depth and heading updates amplified horizontal error when velocity aiding was absent. In the archived right-invariant update, an attitude-coupling term grew with estimated distance from the origin. That made dropout tests, initial offsets and measurement-noise sweeps more revealing than another nominal trajectory.
The useful contribution was the harness and the counterexamples it enabled. It turned “these estimators agree” into questions with defined answers: does the update help under this condition, what happens when a sensor stops, and can the estimator recover after it returns?
A model is a controlled question, not the water
The drag coefficients were estimated; currents, vibration and thermal drift were absent. The synthetic noise was configurable, and one deterministic run is not a distribution of independent trials. Those omissions do not invalidate a controlled software counterexample, but they do limit what its error magnitude can predict.
I also would not call a favourable simulation result a mathematical lower bound on field error. The real system can differ in either direction on a particular trajectory. What this setup provides is a reproducible model and comparative evidence under its stated assumptions.
For a stronger assessment, I would vary the initial state, sensor biases, motion, dropouts and independent seeds; preserve the observation stream when comparing filter variants; and check uncertainty as well as point error. Hardware accuracy needs an external physical reference, synchronised timestamps and an evaluation protocol that does not use the estimator itself as truth.
The next experiment overturned the advice from its preceding commit: one fix anywhere, or many fixes everywhere. The later half-hour stationary IMU record addresses a different missing input: measuring sensor noise rather than assigning a plausible number.