Exercise: measuring trajectory error

Compare self-generated error values and explain the limitations of the metrics

Last updated:

An engineer reviews trajectory plots on paper beside calibration equipment
Conceptual illustration generated with AI

Use the same data as the previous exercise

Reference trajectory compared with the estimated trajectory: the starting points at t=0 coincide, and they are 0.1 m apart at t=10s, the value used to measure the error

Run trajectory-lab.py and open summary.json . The program computes the position RMSE from time-matched pairs without alignment, and computes the RMSE of the displacement differences between consecutive points.

Check against values known in advance

The accumulated error (absolute drift) increases from 0 to 0.1 m over 10 seconds, while the per-interval (per-step) error stays steady at about 0.001 m

When a drift of 0.01 m/s is applied on the x axis for 10 seconds, the final error is 0.1 m and the position RMSE is about 0.057879 m, while the error of the differences between points 0.1 s apart is about 0.001 m in every interval.

  1. Change DRIFT_PER_SECOND to 0 and check that both errors are zero within numerical precision.
  2. Change it to 0.02 and check that the RMSE doubles.
  3. Restore the original value and write why a low per-interval relative metric can still have accumulated drift.

Scope of the results

These are simple position metrics, not full SE(3) APE/RPE, and they do not assess orientation, calibration or tracking loss. Use evo and real data as the next step, always stating the association and alignment.

Submit a table of the values from all three experiments with an explanation of units, calculation method and limitations. Do not conclude which estimator is best from this self-generated dataset.

Licence for the exercise files

Download the licence LICENSE.txt, the Python code uses MIT; the forms use CC BY 4.0, credit PK-Research

References and scope

Sources checked 7 September 2569 (2026); compiled to accompany knowledge kindly provided by DTI

Acknowledgements and sources

Used in courses

How to cite this page

Drone Institute, Rangsit University. (2026). Exercise: measuring trajectory error. In UAS Technology Knowledge Hub (B.Tech.). https://rsu-uat.pk-research.work/en/kb/practice/trajectory-evaluation/

Original from Drone-Hub: https://drone.pk-research.work/practice/trajectory-evaluation/ · © PK-Research