Now we filter jerkiness by downsampling and using splines to reconnect the points of the trajectories