How to know an estimated position is reliable
Reading error, alignment and tracking loss, together with the conditions that make a comparison fair
A nice-looking plot is not enough
Before comparing trajectories, check the units, frame, time and the meaning of the ground truth. Shifting plots so they overlap can reduce the reported error, so you must state which alignment was used and whether scale was adjusted
| Metric | What it helps answer |
|---|---|
| APE | The difference between poses and the reference data under the specified association/alignment |
| RPE | The difference in relative motion over a specified interval |
| Tracking loss | Periods when the system has no usable estimate |
| Runtime / latency | Load and latency on that particular machine and run method |
Compare one factor at a time
Use the same sequence, time span and evaluation method. Record results for both normal operation and failure periods. If a tool outputs results only for periods where tracking succeeded, a low average may hide missing data; do not remove those periods without reporting it
evo supports many forms of trajectory evaluation and has Windows/Linux documentation. Read the options so they match your data format before running. The numbers from the simple position exercise are not the same as full-pose APE/RPE from evo
evo trial on a real sample trajectory

We used evo 1.37.1 to evaluate the V102 sample file pair published by the evo project. 798 positions were matched within a time tolerance of 0.01 s, then aligned with SE(3) without scale correction . The positional APE has an RMSE of about 0.09173 m , while the RPE over 10 matched frames has an RMSE of about 0.05752 m from 79 pairs. The actual time span is about 0.9–1.0 s, so it is not strictly called a one-second RPE
This result evaluates existing trajectory files; it is not a new run of a VIO estimator and not the accuracy of the learner's drone. Read the guide and reproduction commands together with the evidence, options and source hashes before comparing your own results
Basalt evaluation results: from a trajectory that runs to measuring error
On 30 September B.E. 2569 (2026) we took the trajectory obtained from an actual replay and compared it with the ground truth of TUMVI room4 without re-running the estimator. This result uses a calculator separate from Basalt's diagnostics and has been reviewed for formulas, coordinate frames and data hashes. It is not the evo result from the example above
| What is measured | RMSE | Median | Maximum |
|---|---|---|---|
| Position APE · 600 poses | 2.20 cm | 1.85 cm | 3.70 cm |
| Rotation APE · 600 poses | 0.504° | 0.459° | 1.433° |
| Position RPE · 580 pairs | 1.00 cm | 0.71 cm | 2.56 cm |
| Rotation RPE · 580 pairs | 0.439° | 0.349° | 1.466° |
How to read the numbers: APE tells how much the two trajectories differ after being rotated and translated to match, while RPE tells how much the motion between two times differs. This round uses pairs 20 frames apart, with actual time spans of 0.998821–1.001040 s, so the interval is approximately one second , and these pairs overlap; they are not 580 independent trials
Before computing, time and coordinate frames must match
The ground truth of the calibrated set is in the IMU frame and already time-corrected, so the raw data's extrinsics or clock offset are not applied again. We bracket each pose's time with two ground-truth points, interpolating position linearly and orientation with SLERP, which chooses the shortest rotation path. There is no extrapolation and no search for a time offset to improve the result
All 600 poses are covered; the largest ground-truth gap is 8.334 ms, below the 20 ms threshold set before the run. Then one SE(3) alignment is fitted using all the data, with scale fixed = 1 ; Sim(3), which could hide scale error, is not used
APE and RPE equations
Let Tᵢ be the reference pose and T̂ᵢ the estimated pose, each transforming from IMU to the world of its own system, and let S be the rigid transform that aligns the two worlds with each other
- APE: Eᵢ = Tᵢ⁻¹ S T̂ᵢ, then measure the length of the translation vector of Eᵢ in metres
- RPE: Eᵢⱼ = (Tᵢ⁻¹ Tⱼ)⁻¹ (T̂ᵢ⁻¹ T̂ⱼ), where j = i + 20, then measure translation and rotation angle separately
- RMSE: √(Σ eᵢ² / N); metre and degree values are not combined into a single value
Example errors of 1, 2 and 3 cm give RMSE ≈ 2.16 cm. This example is only for teaching the formula; the experimental values in the table are computed from real data. Details of the rotation matrix and the angle formula are in F31 below
Limits of what these numbers cannot yet answer
This is handheld-device data indoors covering only the first 29.95 s , not drone flight results. Fitting the alignment and measuring the error on the same set is therefore a best-fit comparison, not a certification of 2.20 cm world-position accuracy. It does not yet include ground truth/interpolation uncertainty, nor testing with vibration and outdoor conditions. There is no flight pass criterion, so it does not conclude “ready to fly”
Read the guide with formulas and diagrams · Download the full numerical results · Python/NumPy calculator · Check SHA256
References for method and data frames: Official TUMVI, Basalt 0.1.7: T_w_i and quaternion export, evo: meaning of metrics and alignment, checked 30 September B.E. 2569 (2026); TUMVI by Schubert et al. under CC BY 4.0
Before sending to the flight controller
Connecting external vision requires checking frame, timestamp delay and sensor offset according to the flight stack version. Start by checking the data and SITL before hardware. Passing a single replay set does not certify flight readiness
Experiment with error on synthetic data →
References and scope
Sources checked 7 September B.E. 2569 (2026); compiled to accompany knowledge kindly provided by DTI
F31: Measure position RMSE while disclosing alignment
| Variable | Meaning and units in → out | Range/source of values |
|---|---|---|
| p_est,i, p_ref,i | Time-matched estimated/reference position (in) m | finite, 3 axes, declared datum/frame |
| n | Number of pairs passing the rules (in) pairs | ≥1; fitting rotation requires sufficient geometry |
| R, t | One rigid alignment (in/fit) dimensionless, m | RᵀR=I, detR=+1; scale=1 |
| RMSE_pos | RMS of residual distances (out) m | ≥0; report raw and aligned separately |
| R_ref, R_est | body→world rotation of the same time pair (in) dimensionless | SO(3), same frame; alignment=I in the angle example |
| θ, θ_deg | principal relative rotation angle (out) rad,deg | 0–π rad or 0–180°; separate from the error in m |
Advanced level · learning model · Question: do the trajectories differ because of the origin or because the trajectory shape is wrong, and what can alignment hide?
RMSE_pos = √(Σᵢ ||R p_est,i + t − p_ref,i||² / n)
Raw uses R=I,t=0; aligned chooses a single rigid R,t to minimise the sum of squares. Do not apply scale correction without declaring it, because it would hide scale error. This is position-only RMSE, not full pose APE/RPE, and position RMSE does not measure orientation. Angular error requires an additional pose convention and metric; do not combine degrees and metres into a single RMS
Before computing, declare the clock offset, matching tolerance, interpolation and number of excluded pairs. This example has times 0, 1, 2 s that match exactly, so 1:1 pairs are used without interpolation. For other data, sort by time, check for duplicate times, choose unique pairs no further apart than a tolerance set before looking at the results, and discard pairs that fail; with no pairs there is no value, not 0. If evo is used, record the version/arguments and the resulting number of pairs; do not claim this chapter ran evo
Rotation angle is separate from position error
For the same time pair, let R_ref and R_est transform body to the same world, with alignment=I in this example. Both must first be in SO(3): RᵀR=I and detR=+1. Define R_err=R_refᵀR_est and θ=acos(clip((trace(R_err)−1)/2,−1,1)), with range 0 to π rad; θ_deg=θ×180/π as the principal rotation angle. Clipping fixes small roundoff; it is not used to repair a matrix that is not a rotation. If an alignment R_align other than I is used, apply R_align R_est before comparing
Example: R_ref=I, R_est=[[√3/2,−1/2,0],[1/2,√3/2,0],[0,0,1]], so trace=1+√3, giving θ=π/6=0.523598776 rad or 30°. Accept ±0.000001 in the reported unit. This is the angle for one pair, separate from position RMSE; it is not full pose APE/RPE or trajectory rotational RMSE
Matching rule for a real-data example designed for practice: after compensating a known offset, use a tolerance of 0.01 s with nearest 1:1 matching and no interpolation, then report the number of pairs/discarded pairs. This 0.01 s value is a training assumption, not a universally suitable value or an evo default; timestamps 0.02 s apart must be discarded under this rule
Worked example
reference=(0,0,0),(1,0,0),(0,1,0) m and estimated=(1,0,0),(2,0,0),(1,1,0) m at the same times. All three raw residuals=(1,0,0) m, so √((1+1+1)/3)=1 m. After R=I,t=(−1,0,0) m the result is 0 m. Fitting on the set being evaluated gives the residual after alignment, not an independent test result, and 0 does not certify absolute position
Practice with changed values
Change estimated to twice the reference: (0,0,0),(2,0,0),(0,2,0) m. Using rigid alignment with scale=1, what are the raw/aligned RMSE?
Show F31 answer
Raw=√(2/3)=0.816496581 m; the best rigid fit is R=I,t=(−1/3,−1/3,0) m, giving a sum of squared residuals of 4/3 m², so aligned=√(4/9)=2/3 m. Accept ±0.000001 m. Do not multiply by scale 0.5 and report 0 without disclosing it
Reference: evo v1.30.0 PosePath3D.align (P4A04), timestamp association (P4A08); evo v1.30.0 relative_so3/so3_log_angle (P4A10), Modern Robotics v1.1.1 MatrixLog3 (P4A11); checked 26 September B.E. 2569 (2026). All numbers are synthetic problems
Linking knowledge to missions and data
There is now a real 600-pose trajectory from Basalt/TUMVI room4 available for download together with independent APE/RPE evaluation results and conditions . Do not use the program's alignment diagnostic values in place of an evaluation procedure that clearly declares the matching method and coordinate frames
Report the trajectory alignment method, coordinate frame, units and the time span compared, along with the status of the reference data. When results do not match, separate timing, coordinates and sensor limitations before concluding that the algorithm is wrong Read the reference: OpenVINS, Documentation
Check your understanding: compare two results while keeping the same conditions, then write which data the conclusion covers; do not claim it as field flight results
Read more: chapters that apply this knowledge in simulation work · sources reviewed 26 September B.E. 2569 (2026)
Download the advanced navigation and mission practice set (CSV/JSON with answers) · synthetic model with assumptions and limitations