control-speed utility sets the speed of each waypoint in the path based on its position in a curve. It
turn operation calculates the angle at each waypoints waypoint with respect to its adjacent waypoints and assigns the speed accordingly.according to given maximum lateral acceleration. By passing
control-speed can implement spot turn by outputting an extra waypoint with relative heading and no speed, for each sharp turn in the trajectory.