A method for optimizing continuous cutting paths using snake-like sequencing

Through serpentine sorting and collision detection technology, the cutting path in the continuous cutting system is optimized, solving the problems of low cutting efficiency and disorganized paths, achieving an efficient and orderly cutting process, and meeting the continuous processing constraints of the cutting system.

CN114660990BActive Publication Date: 2024-09-13NANTONG UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210253450.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-15
Publication Date
2024-09-13
Estimated Expiration
2042-03-15

AI Technical Summary

Technical Problem

The existing technology makes it difficult to optimize the cutting path in a continuous cutting system, resulting in low cutting efficiency, large repetitive path lengths, messy cutting paths, and difficulty in meeting the continuous processing constraints of the cutting system.

Method used

The serpentine sorting method is used to optimize the entry and exit points of the sample, generate reasonable processing transition lines, and ensure path continuity through collision detection to avoid cutting across the sample.

Benefits of technology

It effectively optimizes the cutting path, improves cutting efficiency, ensures the continuity and orderliness of the path, reduces the length of repeated paths, and avoids cluttered cutting paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114660990B
    Figure CN114660990B
Patent Text Reader

Abstract

The present invention discloses a method for optimizing a continuous cutting path of serpentine sorting. Through the serpentine sorting method, a reciprocating cutting sequence is generated to avoid a disorderly cutting path. In the serpentine sorting process, after searching for the target sample, a reasonable processing transition line is generated by optimizing the entry point and the exit point of the sample, so that the sum of the length of the repeated path and the length of the transition processing path between the samples is minimized. A collision detection method is used to determine whether the current processing transition line intersects with the contours of other samples, and the sample cutting sequence is optimized according to the judgment result, and cross-sample cutting is avoided as much as possible to ensure that the processing path meets the continuous processing constraints. The optimization method of the present invention can meet the path constraint requirements of continuous cutting, reasonably optimize the sample entry point, shorten the tool idle stroke, and improve cutting efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of cutting path optimization, and specifically relates to a serpentine sorting continuous cutting path optimization method based on collision detection under specific process constraints. Background Art

[0002] The processing process of the raw material by the continuous cutting CNC system can be described as follows: the tool starts from the origin of the machine tool and cuts into the raw material. It feeds to the starting processing point of the part to start cutting the sample, and cuts the sample counterclockwise according to the sample contour. After the tool returns to the entry point, the cutting of the current sample is completed. The tool does not leave the raw material, feeds to the sample cut-out point according to the sample contour, and feeds from the sample cut-out point to the next sample cut-in point for cutting, and so on until all samples are cut and the cutting process ends.

[0003] The path optimization objectives during the cutting process are: (1) Optimize the cutting order of the samples. An orderly cutting order can improve the cutting efficiency while ensuring the cutting quality of the samples; (2) Determine a reasonable entry point. A reasonable entry point of the sample can shorten the idle stroke and improve the cutting efficiency; (3) Determine a reasonable cut-out point of the sample. In order to meet the continuous cutting constraint of the cutting system, after completing the sample cutting process, the tool needs to repeat cutting part of the processed path according to the sample contour, and cut out the sample after feeding to the cut-out point; a reasonable sample cut-out point can make the repeated path length as small as possible and improve the cutting efficiency. Summary of the invention

[0004] Purpose of the invention: Aiming at the problem of optimizing the continuous cutting path in the cutting system, the present invention proposes a serpentine sorting continuous cutting path optimization method, which generates a reasonable processing transition line by optimizing the entry point and the exit point of the sample, so that the sum of the lengths of the transition processing paths between the repeated paths and the samples is minimized. The proposed serpentine sorting method can ensure that the samples are cut in sequence and avoid a disorderly cutting path. The collision detection method performed after the serpentine sorting searches for the target sample can ensure that the path meets the continuous processing constraints of the cutting system, while trying to avoid cutting across samples.

[0005] Technical solution: A method for optimizing a serpentine sorting continuous cutting path, comprising the following steps:

[0006] Step 1: Processing sorting: Use the serpentine sorting method to ensure that the samples are cut in order to avoid a messy cutting path;

[0007] Step 2: Generate a reasonable processing transition line: Generate a reasonable processing transition line by optimizing the entry and exit points of the sample, so that the sum of the lengths of the transition processing paths between the repeated paths and the samples is minimized;

[0008] Step 3, collision detection: After the target sample is searched by serpentine sorting, a collision detection method is performed to ensure that the cutting path meets the continuous processing constraints of the cutting system, while trying to avoid cutting across samples.

[0009] Furthermore, the specific operation steps of the serpentine sorting method in step 1 are as follows:

[0010] Step (1): Search for the sample piece at the bottom left corner of the sample arrangement. If it exists, add it to the sorting and execute step (2). Otherwise, the search ends.

[0011] Step (2): Cutting direction upward, search for the upper left sample of the sorted samples in step (1). If it exists, add it to the sort and execute step (2) repeatedly; otherwise, search for the upper left and lower left samples in the sample set that have not been sorted, select the sample closest to the sorted sample and add it to the sort, and execute step (4);

[0012] Step (3): Cutting in the downward direction, search for the lower left sample of the sorted samples. If it exists, add the upper right sample of the lower left part to the sorting, and execute step (3) repeatedly; otherwise, search for the upper left and lower left samples in the sample set that has not been sorted, select the sample closest to the sorted sample and add it to the sorting, and execute step (4);

[0013] Step (4): If the selected sample is the top left sample, execute step (3); if it is the bottom left sample, execute step (2), and repeat this process until all parts have been searched.

[0014] Furthermore, each time the next target sample is found in the serpentine sorting, the processing transition line between the target sample and the previous sample is calculated to perform collision detection, the essence of which is to determine whether the current processing transition line intersects with the contours of other samples to determine whether the target sample meets the continuous cutting constraint.

[0015] Furthermore, the processing transition line in step 2 is substantially a line between a cut-out point of a previous processing sample and a cut-in point of a next processing sample.

[0016] Furthermore, the repeated path in step 2 refers to: the path that the tool feeds from the entry point to the exit point of the sample after completing the sample cutting, or a section cut along the contour on the sorted collision sample.

[0017] Furthermore, the specific steps for selecting the sample entry point and the cut-out point in the processing transition line are as follows:

[0018] Step 1): Taking the coordinate origin as the reference point, traverse each node in the first sample, calculate the distance from the reference point to each node, and select the node position corresponding to the shortest distance as the entry point of the first sample; and set the current first sample as P1, and the next sample as P2;

[0019] Step 2): Take any node in sample P2 as the reference point, traverse each line segment in sample P1, determine the nearest point on the line segment from the reference point, calculate the distance between them, and record the node corresponding to the minimum value of each distance;

[0020] Step 3): Starting from the reference point of the sample P2 in step 2), select other nodes in the sample P2 as reference points in the counterclockwise direction, and repeat step 2); select the nearest point on the sample P1 corresponding to the minimum value of the distance from each reference point to the nearest point on the line segment as the cut-out point of the sample P1 and the reference point of the sample P2 as the cut-in point of the sample P2; if the selected point is not a sample node, add the point as a node to the sample data list;

[0021] Step 4): Calculate the tool path length from the entry point to the exit point of the sample P1 in the clockwise direction and the counterclockwise direction respectively. If the tool path length in the clockwise direction is greater than the tool path length in the counterclockwise direction, the tool cuts counterclockwise when cutting the contour of the sample; otherwise, the tool cuts clockwise along the contour of the sample;

[0022] Step 5): Connect the cut-out point of sample piece P1 and the cut-in point of sample piece P2 as a processing transition line between the two samples.

[0023] Furthermore, the specific operation steps of the collision detection method in step 3 are as follows:

[0024] Step 1: Find the processing transition line between the target sample and its previous sample;

[0025] Step 2: Determine whether the processing transition line intersects with the outline of the sorted sample. If no collision occurs, execute step 3; if it intersects with the outline of the sorted sample, find the sample closest to the current sample in the unsorted samples as the target sample, and obtain the processing transition line between the target sample and the previous sample; if the processing transition line still intersects with the outline of the sorted sample at this time, cut a repeated path along the outline on the sorted sample that collides with it, transition to the target sample, and execute step 2; otherwise, execute step 3;

[0026] Step 3: Determine whether the processing transition line intersects with the outline of the unsorted sample. If no collision occurs, end the collision detection algorithm and return to the serpentine sorting; if it intersects with the outline of the unsorted sample, insert the collision sample between the two graphics connected by the processing transition line, and obtain the processing transition line between the collision graphic and the two samples, and execute step 2.

[0027] Beneficial effects: The optimization method of the present invention can effectively optimize the cutting path optimization problem of the cutting system tool. The proposed serpentine sorting method can ensure that the samples are cut in order to avoid a disorderly cutting path. The collision detection method performed after the serpentine sorting searches for the target sample can ensure that the path meets the continuous processing constraints of the cutting system, while trying to avoid cutting across samples. This method improves the cutting efficiency and also provides a certain reference value for path optimization problems with similar cutting constraints. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0029] Figure 1 A schematic diagram of a continuous cutting path of a serpentine sorting continuous cutting path optimization method according to an embodiment of the present invention;

[0030] Figure 2 A schematic diagram of a processing transition line generated by a serpentine sorting continuous cutting path optimization method in an embodiment of the present invention;

[0031] Figure 3 The figure is a schematic diagram of a serpentine sorting process based on collision detection in a serpentine sorting continuous cutting path optimization method in an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present invention will be described clearly and completely below so that those skilled in the art can better understand the advantages and features of the present invention, thereby making a clearer definition of the protection scope of the present invention. The embodiments described in the present invention are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention.

[0033] Example

[0034] A method for optimizing a serpentine sorting continuous cutting path comprises the following steps:

[0035] Step 1: Processing sorting: Use the serpentine sorting method to ensure that the samples are cut in order to avoid a messy cutting path;

[0036] Step 2: Generate a reasonable processing transition line: Generate a reasonable processing transition line by optimizing the entry and exit points of the sample, so that the length of the transition processing path between the repeated path and the sample is minimized;

[0037] Step 3, collision detection: After the serpentine sorting searches for the target sample, a collision detection method is performed to ensure that the path meets the continuous processing constraints of the cutting system, while trying to avoid cutting across samples.

[0038] During the cutting process, the tool continuously cuts in the raw material. The cutting tool never leaves the raw material and is still cutting in the raw material during the idle stroke feeding. Therefore, there must be a reasonable sample cut-out point in the cutting sample. After the tool completes the cutting of a sample, it feeds to the sample cut-out point according to the current sample contour to prevent the tool from damaging the processing graphics when feeding in the raw material. After the tool completes the sample cutting, the path fed from the sample cut-in point to the cut-out point is called a repeated path. The path fed by the tool from the sample cut-out point to the starting processing point of the next sample is called the transition processing path between samples.

[0039] The cutting object is the sample that has been arranged. The cutting process is as follows Figure 1 The specific processing path can be expressed as:

[0040] v 11 →v 12 →v 13 →v 14 →v 11 →v 12 →v 13 →v 25 →v 21 →v 22 →v 23 →v 24 →v 25 →v 21 →v 22 ;

[0041] Specifically, the specific operation steps of the serpentine sorting method are as follows:

[0042] Step (1): Search for the sample piece at the bottom left corner of the sample arrangement. If it exists, add it to the sorting and execute step (2). Otherwise, the search ends.

[0043] Step (2): Cutting direction upward, search for the upper left sample of the sorted samples in step (1). If it exists, add it to the sort and execute step (2) repeatedly; otherwise, search for the upper left and lower left samples in the sample set that have not been sorted, select the sample closest to the sorted sample and add it to the sort, and execute step (4);

[0044] Step (3): Cutting in the downward direction, search for the lower left sample of the sorted samples. If it exists, add the upper right sample of the lower left part to the sorting, and execute step (3) repeatedly; otherwise, search for the upper left and lower left samples in the sample set that has not been sorted, select the sample closest to the sorted sample and add it to the sorting, and execute step (4);

[0045] Step (4): If the selected sample is the top left sample, execute step (3); if it is the bottom left sample, execute step (2). Repeat this cycle until all parts are searched.

[0046] In this embodiment, according to the cutting path optimization process, the relative position relationship between the samples has the following situations:

[0047] (1) Upper left part rule: Sample A is at the upper left of sample B if any of the following conditions are met:

[0048] a. The y-coordinate value of the centroid of the envelope rectangle of sample A is greater than the y-coordinate value of the centroid of the envelope rectangle of sample B, and the minimum x-coordinate value of the envelope rectangle of sample A is less than the x-coordinate value of the centroid of the envelope rectangle of sample B;

[0049] b. The y coordinate value of the centroid of the envelope rectangle of sample A is greater than the y coordinate value of the centroid of the envelope rectangle of sample B, and the x coordinate value of the centroid of the envelope rectangle of sample A is less than the maximum x coordinate value of the envelope rectangle of sample B;

[0050] (2) Lower left part rule: Sample A is at the lower left of sample B if any of the following conditions are met:

[0051] a. The y-coordinate value of the centroid of the envelope rectangle of sample A is less than the y-coordinate value of the centroid of the envelope rectangle of sample B, and the minimum x-coordinate value of the envelope rectangle of sample A is less than the x-coordinate value of the centroid of the envelope rectangle of sample B;

[0052] b. The y coordinate value of the centroid of the envelope rectangle of sample A is less than the y coordinate value of the centroid of the envelope rectangle of sample B, and the x coordinate value of the centroid of the envelope rectangle of sample A is less than the maximum x coordinate value of the envelope rectangle of sample B;

[0053] (3) Top right part rule: Piece A is located in the top right of all unsorted pieces, and the following conditions must be met:

[0054] The x-coordinate value of the centroid of the enveloping rectangle of piece A is the largest and there is no piece above piece A;

[0055] (4) Upper left corner part rule: Piece A is located in the upper left corner of all unsorted pieces, and the following conditions must be met:

[0056] The x-coordinate value of the centroid of the enveloping rectangle of piece A is the smallest and there is no piece above piece A;

[0057] (5) The rule for the bottom left corner part: Piece A is located in the bottom left corner of all unsorted pieces, and the following conditions must be met:

[0058] The x-coordinate value of the centroid of the enveloping rectangle of piece A is the smallest and there is no piece below piece A;

[0059] (6) The closest part rule: The distance between sample A and sample B is the smallest, and the following conditions must be met:

[0060] The coordinate value of the centroid of the envelope rectangle of sample A is closest to the coordinate value of the centroid of the envelope rectangle of sample B.

[0061] In this embodiment, each time the next target sample is found in the serpentine sorting, the processing transition line between the target sample and the previous sample is calculated to perform collision detection, the essence of which is to determine whether the current processing transition line intersects with the contours of other samples to determine whether the target sample meets the continuous cutting constraint.

[0062] In this embodiment, the processing transition line is actually the line between the cut-out point of the last processed sample and the cut-in point of the next processed sample. The repeated path refers to the path from the sample cut-in point to the cut-out point after the tool completes the sample cutting, or a section cut along the contour on the sorted collision sample. For a graphic processing sequence after sorting optimization, the steps for selecting the cut-in point and cut-out point of the continuously processed sample are as follows:

[0063] Step 1): Taking the coordinate origin as the reference point, traverse each node in the first sample, calculate the distance from the reference point to each node, and select the node position corresponding to the shortest distance as the entry point of the first sample; and set the current first sample as P1, and the next sample as P2;

[0064] Step 2): Take any node in sample P2 as the reference point, traverse each line segment in sample P1, and calculate the distance from the reference point to the nearest point on each line segment. Record the node corresponding to the minimum value of each distance. Figure 2 As shown, the sample P1 node V 14 , record sample P2 node V 25 ;

[0065] Step 3): Starting from the reference point of sample P2 in step 2), select other nodes in sample P2 as reference points in a counterclockwise direction, and repeat step 2). Select the nearest point on sample P1 corresponding to the minimum value of the distance from each reference point to the nearest point on the line segment as the cut-out point of sample P1 and the reference point of sample P2 as the cut-in point of sample P2; if the selected point is not a sample node, add the point as a node to the sample data list, such as Figure 2 As shown, the cut-out point of sample P1 is node V14 , the entry point of sample P2 is node V 25 At this time, the cut-out node V of the sample P1 14 It is not the original node of the sample, so the point is added to the sample data list, and the sample P1 data is updated to [V 11 ,V 12 ,V 13 ,V 14 ,V 15 ];

[0066] Step 4): Calculate the tool path length from the entry point to the exit point of the sample P1 in the clockwise direction and the counterclockwise direction respectively. If the tool path length in the clockwise direction is greater than the tool path length in the counterclockwise direction, the tool cuts counterclockwise when cutting the contour of the sample; otherwise, the tool cuts clockwise along the contour of the sample;

[0067] Step 5): Connect the cut-out point of sample piece P1 and the cut-in point of sample piece P2 as a processing transition line between the two samples.

[0068] In this embodiment, the collision detection method is as follows: Figure 3 The specific steps are as follows:

[0069] Step 1: Find the processing transition line between the target sample and its previous sample;

[0070] Step 2: Determine whether the processing transition line intersects with the outline of the sorted sample. If no collision occurs, execute step 3; if it intersects with the outline of the sorted sample, find the sample closest to the current sample in the unsorted samples as the target sample, and obtain the processing transition line between the target sample and the previous sample. If the processing transition line still intersects with the outline of the sorted sample at this time, cut a repeated path along the outline on the sorted sample that collides with it, transition to the target sample, and execute step 2; otherwise, execute step 3;

[0071] Step 3: Determine whether the processing transition line intersects with the outline of the unsorted sample. If no collision occurs, end the collision detection algorithm and return to the serpentine sorting; if it intersects with the outline of the unsorted sample, insert the collision sample between the two graphics connected by the processing transition line, and obtain the processing transition line between the collision graphic and the two samples, and execute step 2.

[0072] The optimization method of the present invention can effectively optimize the cutting path optimization problem of the cutting system tool. The proposed serpentine sorting method can ensure that the samples are cut in order and avoid a disorderly cutting path. The collision detection method performed after the serpentine sorting searches for the target sample can ensure that the path meets the continuous processing constraints of the cutting system, while trying to avoid cutting across samples. This method improves the cutting efficiency and also provides a certain reference value for path optimization problems with similar cutting constraints.

Claims

1. A method for optimizing a serpentine sorting continuous cutting path, characterized in that: The steps include: Step 1: Processing sorting: Use the serpentine sorting method to ensure that the samples are cut in order to avoid a messy cutting path; Step 2: Generate a reasonable processing transition line: Generate a reasonable processing transition line by optimizing the entry and exit points of the sample, so that the sum of the lengths of the transition processing paths between the repeated paths and the samples is minimized; Step 3, collision detection: After the target sample is searched by serpentine sorting, a collision detection method is performed to ensure that the cutting path meets the continuous processing constraints of the cutting system and to avoid cross-sample cutting as much as possible; The specific operation steps of the serpentine sorting method in step 1 are as follows: Step (1): Search for the sample piece at the bottom left corner of the sample arrangement. If it exists, add it to the sorting and execute step (2). Otherwise, the search ends. Step (2): Cutting direction upward, search for the upper left sample of the sorted samples in step (1). If it exists, add it to the sort and execute step (2) repeatedly; otherwise, search for the upper left and lower left samples in the sample set that have not been sorted, select the sample closest to the sorted sample and add it to the sort, and execute step (4); Step (3): Cutting in the downward direction, search for the lower left sample of the sorted samples. If it exists, add the upper right sample of the lower left part to the sorting, and execute step (3) repeatedly; otherwise, search for the upper left and lower left samples in the sample set that has not been sorted, select the sample closest to the sorted sample and add it to the sorting, and execute step (4); Step (4): If the selected sample is the top left sample, execute step (3); if it is the bottom left sample, execute step (2), and repeat this process until all parts have been searched. The processing transition line in step 2 is essentially a line between the cut-out point of the previous processing sample and the cut-in point of the next processing sample.

2. The method for optimizing the serpentine-sequencing continuous cutting path according to claim 1, characterized in that: Each time the next target piece is found in the serpentine sorting, the processing transition line between the target piece and the previous piece is calculated to perform collision detection, which is essentially to determine whether the current processing transition line intersects with the contours of other pieces to determine whether the target piece meets the continuous cutting constraint.

3. The method for optimizing the serpentine continuous cutting path according to claim 1, characterized in that: The repeated path in step 2 refers to the path that the tool feeds from the entry point to the exit point of the sample after completing the sample cutting, or a section cut along the contour on the sorted collision sample.

4. The method for optimizing the serpentine sequential cutting path according to claim 1, characterized in that: The specific steps for selecting the sample entry point and the cut-out point in the processing transition line are as follows: Step 1): Taking the coordinate origin as the reference point, traverse each node in the first sample, calculate the distance from the reference point to each node, and select the node position corresponding to the shortest distance as the entry point of the first sample; and set the current first sample as P1, and the next sample as P2; Step 2): Take any node in sample P2 as the reference point, traverse each line segment in sample P1, determine the nearest point on the line segment from the reference point, calculate the distance between them, and record the node corresponding to the minimum value of each distance; Step 3): Starting from the reference point of sample P2 in step 2), select other nodes in sample P2 as reference points in a counterclockwise direction, and repeat step 2); Select the nearest point on the sample P1 corresponding to the minimum value of the distance from each reference point to the nearest point on the line segment as the cut-out point of the sample P1 and the reference point of the sample P2 as the cut-in point of the sample P2; if the selected point is not a sample node, add the point as a node to the sample data list; Step 4): Calculate the tool path length from the entry point to the exit point of the sample P1 in the clockwise direction and the counterclockwise direction respectively. If the tool path length in the clockwise direction is greater than the tool path length in the counterclockwise direction, the tool cuts counterclockwise when cutting the contour of the sample; otherwise, the tool cuts clockwise along the contour of the sample; Step 5): Connect the cut-out point of sample piece P1 and the cut-in point of sample piece P2 as a processing transition line between the two samples.

5. The method for optimizing the serpentine-sequencing continuous cutting path according to claim 1, characterized in that: The specific operation steps of the collision detection method in step 3 are as follows: Step 1: Find the processing transition line between the target sample and its previous sample; Step 2: Determine whether the processing transition line intersects with the outline of the sorted sample. If no collision occurs, execute step 3; if it intersects with the outline of the sorted sample, find the sample closest to the current sample in the unsorted samples as the target sample, and obtain the processing transition line between the target sample and the previous sample; if the processing transition line still intersects with the outline of the sorted sample at this time, cut a repeated path along the outline on the sorted sample that collides with it, transition to the target sample, and execute step 2; otherwise, execute step 3; Step 3: Determine whether the processing transition line intersects with the outline of the unsorted sample. If no collision occurs, end the collision detection algorithm and return to the serpentine sorting; if it intersects with the outline of the unsorted sample, insert the collision sample between the two graphics connected by the processing transition line, and obtain the processing transition line between the collision graphic and the two samples, and execute step 2.

Citation Information

Patent Citations

  • Methods and systems for robotic surface coverage

    CA3120728A1

  • A galvanometer motor motion planning method for shortening the positioning time of idle running

    CN106227149A

  • Cutting path optimization method and device and computer readable storage medium

    CN112935575A