createTrajectory

Creates and returns a time-optimal profile for the given path.