Statistics for Smooth and Time-Optimal Trajectory Planning for Multi-Axis Machine Tools