The invention provides a method for automatically generating a groove
cutting track. The method for automatically generating the groove
cutting track comprises the following steps that a 2D drawing of a workpiece template is analyzed to obtain a plurality of template reference lines S (i = 1, 2,..., N); based on the preset distance D and the preset direction, the template reference lines are shifted to generate a first template groove line S<gi> (i = 1, 2,..., N); the first template groove line S<gi> (i = 1, 2,..., N) is
cut to generate a second template groove line S<Gi> (i = 1, 2,..., N); an actual workpiece contour
point cloud C and a workpiece template contour
point cloud C<t> are acquired, and an optimal compensation distance D of an offset between the two contour point clouds and an optimal
transformation matrix T of
pose matching are acquired; based on the D and a preset direction, the second template groove line S<Gi> (i = 1, 2,..., N) is shifted to generate a first serious groove line S<oi> (i = 1, 2,..., N); the first serious groove line S<oi> (i = 1, 2,..., N) is
cut, and a second serious groove line S<oi> (i = 1, 2,..., N) of the workpiece template is generated; and the second serious groove line S<oi> (i = 1, 2,..., N) is rotated and translated based on the T, a
cutting track of an actual workpiece is generated, and the cutting track of the actual workpiece can be automatically obtained only through one-time photographing. The workpiece
machining errors and feeding placement errors can be adopted, and the manual operation difficulty and the feeding and feeding requirements are lowered.