To ensure a given chord error, through the division of the cusp, the NURBS (Non-Uniform Rational B-Splins) curve is divided into several sections and the speed of the various sections is planned accordingly. The acceleration and deceleration time period is recalculated, which results in a smooth speed transition curve.