Robot flight welding path planning method based on genetic algorithm

Through the robot flight welding path planning method based on genetic algorithm, the welding path is optimized, and the problem of slow speed and difficult to guarantee the quality of the traditional welding method is solved, and the welding efficiency and quality improvement is achieved.

CN118897560APending Publication Date: 2024-11-05NINGBO INST OF MATERIALS TECH & ENG CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410919769.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

Traditional welding methods rely on workers' skills and experience, and are slow and difficult to guarantee quality. How to optimize the welding trajectory of welding robots to improve welding efficiency has become a difficult problem.

Method used

The robot flight welding path planning method based on genetic algorithm is adopted. By constructing welding models, setting genetic algorithm parameters, performing cross-and-mutation operations, the welding path is optimized to obtain the processing path with the shortest total time.

Benefits of technology

The optimization efficiency of welding paths is improved, the global optimal solution is obtained, and the welding efficiency and quality are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897560A_ABST
    Figure CN118897560A_ABST
Patent Text Reader

Abstract

The invention discloses a robot flight welding path planning method based on a genetic algorithm, and the method comprises the following steps: constructing a corresponding welding model according to the distribution condition of a welding region where each preset welding position point is located; setting genetic algorithm parameters; generating an initial population according to the chromosome scale, introducing the initial population into the welding model, and performing crossover operation and mutation operation by taking the shortest total time in the welding process as an optimization target; wherein after the crossover operation, all the filial generations and the parent generations are mixed and sorted, and the half of the filial generations and the parent generations with the front fitness is selected to be reserved; selecting the filial generation if the fitness of the filial generation is greater than that of the parent after mutation operation, otherwise, reserving the parent; and the initial population generation, the crossover operation and the mutation operation are repeated until the maximum number of iterations is met, and the machining path with the shortest total time is obtained to serve as the optimal flight welding path. The method provided by the invention is used for optimizing the machining path of flying welding of the robot so as to improve the welding efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of automated welding, and in particular relates to a robot flying welding path planning method based on genetic algorithm. Background Art

[0002] In recent years, the technology of robots has become increasingly mature, and robots are used in many fields, such as national defense, medical treatment, industrial production, life services, etc. Robots play an important role in the field of production and manufacturing, and the research on industrial robot technology is an important direction for the development of robots.

[0003] Welding tasks are an important part of modern manufacturing. According to relevant statistics, welding work accounts for 30% to 45% of the manufacturing industry, and its proportion in some application sites is even higher. As a typical welding technology, flying welding based on scanning galvanometers has a wide range of applications in actual production, such as welding of aircraft parts, body welding in automobile manufacturing, and production line welding of small electronic products. The research on robot welding technology plays an important role in realizing intelligent manufacturing and improving the level of industrial automation.

[0004] Robotic welding technology has important practical significance in actual industrial production and manufacturing. For welding tasks, traditional welding methods often rely on the skills and experience of workers, which is not only slow but also difficult to ensure quality. By using welding robots for welding operations, the welding path and speed can be accurately controlled, thereby greatly improving production efficiency while ensuring quality. How to optimize the welding trajectory of the welding robot and improve welding efficiency has become a difficult problem in robot welding operations.

[0005] Patent document CN109542103A proposes a robot welding path planning method based on fireworks particle swarm algorithm, which belongs to the field of robot welding control technology. The method adopts all the path solutions and parameters of the initial population of the greedy algorithm, updates the speed and position of all population individuals according to the particle swarm operator, regards the individuals of the particle swarm as fireworks of the fireworks algorithm, generates sparks by modifying the explosion operator and the Gaussian mutation operator, selects the fireworks population by the elite roulette strategy, reorganizes the population by using the dual population strategy, and finally updates the individual historical optimal solution and the global optimal solution to obtain the optimal welding path.

[0006] Patent document CN118237825A proposes an artificial intelligence-based welding method and welding robot, which includes: obtaining multi-dimensional information of the welding object through multiple types of equipment, and preprocessing the multi-dimensional information; analyzing the current task characteristics through a preset deep learning model and based on preprocessed data and historical data, and planning the welding path and setting the initial welding parameters based on the analysis results; during the welding process, continuously monitoring the weld state, obtaining real-time parameter data of the welding state, and transmitting it to the edge computing unit, analyzing it through a deep reinforcement learning model, and dynamically adjusting the welding parameters. Summary of the invention

[0007] The object of the present invention is to provide a robot flying welding path planning method based on genetic algorithm, which is used to optimize the processing path of robot flying welding to improve welding efficiency.

[0008] In order to achieve the purpose of the present invention, the following technical solution is provided: a robot flying welding path planning method based on genetic algorithm, comprising the following steps:

[0009] According to the distribution of the welding area where each preset welding position point is located, a corresponding welding model is constructed;

[0010] Set genetic algorithm parameters, including chromosome size and maximum number of iterations;

[0011] Generate an initial population according to the chromosome scale, introduce the initial population into the welding model and perform crossover and mutation operations with the shortest total time in the welding process as the optimization goal;

[0012] Among them, after the crossover operation, all offspring and parents are mixed and sorted, and the top half of fitness are selected for retention;

[0013] After the mutation operation, if the offspring fitness is greater than the parent, the offspring is selected, otherwise the parent is retained;

[0014] The initial population generation, crossover operation and mutation operation are repeated until the maximum number of iterations is met to obtain the processing path with the shortest total time as the optimal flying welding path.

[0015] The present invention constructs a fuzzy controlled welding model with flying welding position points, uses genetic algorithms to construct initial values, and solves the processing path with the shortest total time on the basis of the welding model to obtain the optimal flying welding path.

[0016] Specifically, the welding model includes welding operation modeling and chromosome coding.

[0017] Specifically, the specific process of the welding operation modeling is as follows:

[0018] Numbering the welding areas where the preset welding positions are located to distinguish the rectangular ranges corresponding to different welding positions;

[0019] Divide the range of each welding position point into four small rectangles of 2*2 to construct 9 numbered points, and select one of the 9 points as the actual welding position point;

[0020] Repeat the above process to divide and number all preset flying welding position points.

[0021] Specifically, the chromosome encoding adopts three chromosomes distributed in the upper, middle and lower parts, the length of which is consistent with the number of frames, and all of which are integer encoding methods. Among them, the first row of chromosomes represents the processing order of each frame, the second row of chromosomes represents the welding position point number corresponding to each frame, and the third row of chromosomes indicates whether the air knife protection needs to be turned on in the welding process corresponding to the frame.

[0022] Specifically, the cross operation is performed based on the processing order of each welding area.

[0023] Specifically, the cross operation is performed based on the selection of welding position points in each welding area.

[0024] Specifically, the variation operation is based on the variation of the processing sequence of each welding area, and the welding position point remains unchanged.

[0025] Specifically, the variation operation is based on the variation of the welding position points, and the processing order of each welding area remains unchanged.

[0026] Specifically, the expression of the processing path is as follows:

[0027]

[0028] Where n represents the total number of all welding areas, (x i ,y i ) represents the welding position point selected in the i-th welding area, (x i+1 ,y i+1 ) represents the welding position point selected for the next welding area, and (x0, y0) represents the starting point coordinates.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] The corresponding welding model is constructed using the fuzzy control principle to constrain the scope of the subsequent simulation iteration process, thereby improving the optimization efficiency of the welding path. At the same time, a specific genetic analysis method is used for optimization to further obtain the global optimal solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1A flow chart of the robot flying welding path planning method provided in this embodiment;

[0032] Figure 2 A schematic diagram of the construction of the welding model provided in this embodiment;

[0033] Figure 3 A schematic diagram of a first crossover operation provided in this embodiment;

[0034] Figure 4 A schematic diagram of a second crossover operation provided in this embodiment;

[0035] Figure 5 A schematic diagram of the first variation operation provided in this embodiment;

[0036] Figure 6 A schematic diagram of the second variation operation provided in this embodiment. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0038] like Figure 1 As shown, a robot flying welding path planning method based on genetic algorithm provided in this embodiment includes the following steps:

[0039] According to the distribution of the welding area where each preset welding position point is located, a welding model including welding operation modeling and chromosome coding is constructed;

[0040] The process of welding operation modeling in this embodiment is as follows: number each welding position point range to distinguish the rectangular ranges corresponding to different welding position points, such as welding position point range 1 (hereinafter referred to as frame 1). Secondly, divide each welding position point range into four small rectangles of 2*2, thereby forming nine numbered points, and select one of the nine points as the actual welding position point. Finally, Figure 2 As shown, all welding position point ranges are divided and numbered in the above manner to facilitate the optimization algorithm to select the processing path.

[0041] In this embodiment, three chromosomes are distributed in the upper, middle and lower parts, and their lengths are consistent with the number of frames. They are all integer encoding methods. Specifically, the first row of chromosomes indicates the processing order of each frame, the second row of chromosomes indicates the welding position point number corresponding to each frame, and the third row of chromosomes indicates whether the air knife protection needs to be turned on in the welding process corresponding to the frame. If it is needed, we set it to 1, otherwise it is set to 0.

[0042] For example, Figure 2 The multi-chromosome encoding method of the processing path shown is:

[0043]

[0044] The first row of coding indicates that the processing order of the frames is frame 1, frame 3, frame 5, frame 4, and frame 2; the second row of coding indicates that the welding position point of frame 1 is feature point 8, the welding position point of frame 3 is feature point 3, the welding position point of frame 5 is feature point 7, the welding position point of frame 4 is feature point 1, and the welding position point of frame 2 is feature point 3; the third row of coding indicates that the air knife needs to be turned on when welding frames 1, 5, and 4. Since turning on the air knife is related to the processing technology of the frame, the codes in the third row are bound one by one to the codes in the first row.

[0045] Set genetic algorithm parameters, including chromosome size and maximum number of iterations;

[0046] Generate an initial population according to the chromosome scale, introduce the initial population into the welding model and perform crossover and mutation operations with the shortest total time in the welding process as the optimization goal;

[0047] Among them, after the crossover operation, all offspring and parents are mixed and sorted, and the top half of fitness are selected for retention;

[0048] After the mutation operation, if the offspring fitness is greater than the parent, the offspring is selected, otherwise the parent is retained;

[0049] In this embodiment, two crossover operations and two mutation operations are used, and one of them is randomly selected to be executed when the genetic algorithm is running. This variety of crossover operations is conducive to increasing the diversity of chromosomes, thereby finding a more global optimal solution.

[0050] like Figure 3 As shown in the figure, the first crossover operation is only performed on the processing order of the frame. The specific operation is: the flip generation of parent generation 1 and parent generation 2 is alternately placed in the transition generation according to the frame processing order of the first row, while the corresponding second row remains unchanged, that is, the welding position point remains unchanged. Then, the first row of genes of the transition generation is taken in turn. If the offspring 1 does not contain this gene, it is placed in the offspring 1, otherwise it is placed in the offspring 2.

[0051] like Figure 4 As shown in the figure, the second crossover operation is only performed on the welding position point selection of each frame. The specific operation is: randomly select two gene segments in parent 1 and parent 2, arrange the second rows corresponding to the two gene segments from small to large and fill them in the second rows of parent 1 and parent 2 in sequence, while the corresponding first row and third row remain unchanged, that is, the frame processing order remains unchanged, thereby generating offspring 1 and offspring 2.

[0052] like Figure 5 As shown in the figure, the first mutation operation is the mutation of the processing order of the frame, and the welding position point remains unchanged. The specific operation is: randomly select two gene values ​​in the processing order of the parent frame, for example, Figure 5 The gene segment between the gene values ​​of 5 and 2 in the is taken out and flipped, and a gene value is randomly selected from the remaining genes ( Figure 5 Select 1) and insert the taken gene segment into the selected gene value ( Figure 5 Select 1) to get the mutated offspring.

[0053] like Figure 6 As shown in the figure, the second mutation operation is the welding position mutation. The processing order of the frame remains unchanged. The specific operation is: randomly select multiple gene values ​​in the welding position selection of the parent chromosome, for example, Figure 6 The welding position points corresponding to 4 and 1 in the figure are randomly mutated to obtain the mutated offspring.

[0054] After the crossover operation, all offspring and parents are mixed and sorted, and the top half of the fitness are selected for retention; after the mutation operation, if the offspring fitness is greater than the parent, the offspring is selected, otherwise the parent is retained.

[0055] The initial population generation, crossover operation and mutation operation are repeated until the maximum number of iterations is met to obtain the processing path with the shortest total time as the optimal flying welding path.

[0056] In this embodiment, the optimization goal is to minimize the total time of the robot in the welding process. Considering that the ones with the largest fitness will be retained in the process of the genetic algorithm, the inverse of the total time of the robot in the welding process is selected as the fitness function, that is, The total time t consists of two parts: the time consumed by the robot during movement (d is the path of the robot, v is the speed of the robot), assuming that there are n frames to be processed, the welding position point selected for the i-th frame is Pi (xi, yi), the welding position point selected for the next frame is Pi+1 (xi+1, yi+1), and the starting point coordinates are P0 (x0, y0), then the total stroke of the processing path is:

[0057]

[0058] And the time t2 required to turn on the wind knife. Since it takes 1 second for the wind knife to stabilize, in this model Figure 2 When the processing frame in the previous step does not need to turn on the air knife, but the next processing frame needs to turn on the air knife, we record it as 1 second, and the air knife is turned off at the beginning of the welding process. Figure 1 For example, since the wind knife needs to be turned on when processing frame 1, frame 5, and frame 4, but it is not required when processing frame 3 and frame 2, the time required to turn on the wind knife is t2=1+0+1+0+0=2 seconds.

[0059] In addition, the terms "upper", "lower", "inner", "outer", "front", "rear" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. Unless otherwise specifically stated, the relative steps, numerical expressions and values ​​of the components and steps described in these embodiments do not limit the scope of the present invention.

[0060] Of course, the above description is only a specific embodiment of the present invention and is not intended to limit the scope of implementation of the present invention. All equivalent changes or modifications made according to the structure, characteristics and principles described in the patent application scope of the present invention should be included in the patent application scope of the present invention.

[0061] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A robot flying welding path planning method based on genetic algorithm, characterized in that: The following steps are involved: According to the distribution of the welding area where each preset welding position point is located, a corresponding welding model is constructed; Set genetic algorithm parameters, including chromosome size and maximum number of iterations; Generate an initial population according to the chromosome scale, introduce the initial population into the welding model and perform crossover and mutation operations with the shortest total time in the welding process as the optimization goal; Among them, after the crossover operation, all offspring and parents are mixed and sorted, and the top half of fitness are selected for retention; After the mutation operation, if the offspring fitness is greater than the parent, the offspring is selected, otherwise the parent is retained; The initial population generation, crossover operation and mutation operation are repeated until the maximum number of iterations is met to obtain the processing path with the shortest total time as the optimal flying welding path.

2. The method for robot flying welding path planning based on genetic algorithm according to claim 1, characterized in that: The welding model includes welding operation modeling and chromosome encoding.

3. The method for robot flying welding path planning based on genetic algorithm according to claim 2, characterized in that: The specific process of welding operation modeling is as follows: The welding areas where the preset welding positions are located are numbered to distinguish the rectangular ranges corresponding to different welding positions; Divide the range of each welding position point into four small rectangles of 2*2 to construct 9 numbered points, and select one of the 9 points as the actual welding position point; Repeat the above process to divide and number all preset flying welding position points.

4. The method for robot flying welding path planning based on genetic algorithm according to claim 2, characterized in that: The chromosome coding adopts three chromosomes distributed in the top, middle and bottom, the length of which is consistent with the number of frames, and all are integer coding methods. Among them, the first row of chromosomes represents the processing order of each frame, the second row of chromosomes represents the welding position point number corresponding to each frame, and the third row of chromosomes indicates whether the air knife protection needs to be turned on in the welding process corresponding to the frame.

5. The method for robot flying welding path planning based on genetic algorithm according to claim 1, characterized in that: The cross operation is performed based on the processing order of each welding area.

6. The method for robot flying welding path planning based on genetic algorithm according to claim 1, characterized in that: The cross operation is performed based on the selection of welding position points in each welding area.

7. The method for robot flying welding path planning based on genetic algorithm according to claim 1 is characterized in that: The variation operation is based on the variation of the processing sequence of each welding area, and the welding position point remains unchanged.

8. The method for robot flying welding path planning based on genetic algorithm according to claim 1 is characterized in that: The variation operation is based on the variation of the welding position points, and the processing order of each welding area remains unchanged.

9. The method for robot flying welding path planning based on genetic algorithm according to claim 1, characterized in that: The expression of the processing path is as follows: Where n represents the total number of all welding areas, (x i ,y i ) represents the welding position point selected in the i-th welding area, (x i+1 ,y i+1 ) represents the welding position point selected for the next welding area, and (x0, y0) represents the starting point coordinates.