Continuous-time Trajectory Estimation: A Comparative Study Between Gaussian Process and Spline-based Approaches