Smoothing algorithm for continuous short line segment corner machining paths
When dealing with continuous corner paths on CNC machine tools,the transit relationship of a large number of short segments leads to global path discontinuity and non-smoothness problems,for which a path corner optimization method with maximum curvature and shortest path length constraints is proposed.To address this,the mapping relationship between curve curvature and angle is applied,using the gear profile trajectory as a model to determine the shortest path length under average turning angles and the maximum curvature of a fifth-order spline-fitted curve.Subsequently,interpolation of discrete data points is performed while constraining the maximum curvature and shortest path length.Finally,the De Boor's recursive triangular method is employed for a second cubic spline curve fitting,resulting in a smooth corner path under the specified constraints.Experimental results demonstrate that the accuracy error of the proposed method is within 5 mm,the curvature maximum is reduced by more than 20%,and the B-Spline curve satisfies C2 continuity at the same time,which can effectively improve the machining efficiency of the lathe.