A method for allocating tasks of optical measurement points for multi-station and multi-robot applications

By improving the floating-point number encoding and evolution mechanism of the genetic algorithm, the problem of insufficient efficiency and accuracy of traditional multi-station multi-robot task allocation in automobile body inspection is solved, and more efficient task allocation and inspection efficiency are achieved.

CN115741703BActive Publication Date: 2024-09-17UNIV OF SHANGHAI FOR SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211471228.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-23
Publication Date
2024-09-17
Estimated Expiration
2042-11-23

AI Technical Summary

Technical Problem

The traditional multi-station multi-robot task allocation strategy tends to focus on a certain link in automobile body inspection, resulting in unreasonable allocation, running time exceeding the inspection cycle, inability to obtain a better solution within the specified time, and failure to meet actual production requirements.

Method used

This paper proposes an improved genetic algorithm suitable for non-contact optical measuring point task allocation in multi-station multi-robot systems. Through methods such as floating-point encoding, elite selection, double crossover, double mutation and secondary evolution, the characteristics of measuring points are comprehensively considered. workstation, robot and sequencing information to establish a comprehensive fitness function to optimize task allocation.

Benefits of technology

It greatly improves the quality of task allocation and detection efficiency, ensures that measuring points are detected at reasonable stations, meets production requirements, and achieves the optimal solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115741703B
    Figure CN115741703B
Patent Text Reader

Abstract

The present invention proposes a method for multi-station multi-robot optical measurement point task allocation. The task allocation method improves the genetic algorithm, involves key steps such as floating point encoding, elite selection strategy, and secondary evolution, and combines the robot's accessibility analysis to comprehensively consider the coordination relationship between the three important links of the measurement point's station, the robot to which it belongs, and the measurement point sorting in the multi-station multi-robot task allocation. Under the premise of meeting production requirements, the quality of optical measurement point task allocation and the efficiency of detection are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of robot task allocation schemes, and in particular to an improved genetic algorithm suitable for non-contact optical measurement point task allocation in a multi-station multi-robot system. Background Art

[0002] As the automotive industry becomes more and more intelligent, higher requirements are placed on the quality of automotive products. The quality of the car body is one of them. The manufacturing quality of the car body directly affects the quality of the final car product. Therefore, the inspection of the manufacturing quality of the car body has always been highly valued by the domestic and foreign automotive industries.

[0003] Combining the compatibility and scalability of industrial robots, and drawing on the experience of non-contact operations (such as welding) in previous industrial sites, the inspection of body manufacturing quality is in the transition period from traditional contact measurement equipment (such as three-coordinate measuring machines) to non-contact optical probes. Whether this can effectively improve the inspection efficiency and accuracy depends on the method used to allocate the measurement point tasks for the multi-station multi-robot system.

[0004] Traditional multi-station multi-robot task allocation mostly adopts a step-by-step solution strategy. First, the measurement points are grouped according to certain rules and constraints. Secondly, under specific constraints, the measurement point set is allocated to each robot at each station according to the principle of proximity allocation and combined with the robot's reachable information. Then, the measurement point set allocated to each robot at each station is sorted and the path is optimized. Finally, evaluation indicators are established and corresponding algorithms are proposed. When targeting large and complex structures such as automobile bodies, this step-by-step allocation strategy often tends to focus on one link and fail to obtain the overall optimal solution, resulting in a series of problems such as unreasonable allocation, running time exceeding the detection cycle, failure to meet actual production requirements, and even failure to obtain a better solution within the specified time. Summary of the invention

[0005] The purpose of the present invention is to propose an improved genetic algorithm suitable for non-contact optical measurement point task allocation in a multi-station multi-robot system to effectively solve the defects of the above-mentioned traditional strategies.

[0006] To achieve the above object, the present invention proposes a method for allocating optical measurement point tasks for multiple workstations and multiple robots, comprising the following steps:

[0007] Step 1: Determine the initialization information, including the position and structural parameters of the workstation robot, measurement point information, and body point cloud;

[0008] Step 2: Based on the production line axis, the measuring points are allocated to the left and right inspection task sets. The side with more measuring points is selected for planning first, and then the task planning of the measuring points on the remaining side is carried out based on the results of the first planned side.

[0009] Step 3: Cluster the left and right inspection task sets in step 2, group the measurement points with the same characteristics into one group, and store the grouped measurement points with the same characteristics into a cell array to ensure that the measurement points with the same characteristics can be inspected at the same workstation, thereby meeting the factory's inspection tasks;

[0010] Step 4: Determine the accessibility of different robots to each measuring point based on robot kinematics theory, construct the accessibility matrix and the best feasible detection angle set;

[0011] Step 5: Further improve the information of the measuring points in step 2: supplement the number index, feature number index, reachability information and joint angle information of the reachable robot, and then eliminate the information of the unreachable measuring points based on the reachability matrix obtained in step 4;

[0012] Step 6: Based on the same feature measurement point set and the accessibility matrix, perform floating point encoding operation on the measurement point set to be allocated: the integer digit represents the workstation information of the measurement point, the tenth digit represents the robot information of the measurement point, and the percentile digit represents the order number of the measurement point in the current set;

[0013] Step 7: Establish a fitness function as an evaluation index, calculate the path length of the test points in different task subsets, the detection time, and the distance between the cluster centers of different task subsets, select a certain weight ratio, and use the sum as the evaluation index of the fitness of the population after each evolution, and comprehensively evaluate and sort the chromosomes in the population;

[0014] Step 8: Use the improved genetic algorithm: elite selection strategy, double crossover, double mutation and secondary evolution to effectively achieve the task of allocating vehicle body measurement points;

[0015] Step 9: After each operation in step 8, a coding validity check must be performed to ensure that the integer parts of the gene fragments of the measuring points with the same characteristics are the same; the tenth digit of the gene fragment of the measuring point is constrained according to the accessibility matrix to ensure that the tenth digit is consistent with the number of the robot that can be reached at the measuring point;

[0016] Step 10: Execute steps 6 to 9 sequentially within the specified number of iterations to complete the task of allocating measuring points, decode the optimal detection task set allocated to each vehicle and each robot, and obtain the optimal set of measuring points allocated to each workstation and each robot.

[0017] Furthermore, in step 2, with the idea of ​​"the minority obeys the majority", the measurement point set on the side with more measurement points is first planned to ensure that measurement points with the same characteristics can be tested at the same workstation, thereby meeting the factory's testing tasks.

[0018] Furthermore, step 4 calculates the reachability matrix of the measuring points and the corresponding optimal feasible detection angle set according to the position information of the robot in the workstation and the DH parameter table and other conditions, which serve as the basis for subsequent task allocation.

[0019] Furthermore, in step 5, the information of the measuring points that are unreachable to all robots is eliminated, and the information of a single measuring point is supplemented as follows: measuring point position information x, y, z; the first and second vector information i1, j1, k1, i2, j2, k2 of the measuring point; the reachability of the measuring point, represented by a 0 / 1 variable, 0 indicates that the measuring point is unreachable to the corresponding robot, and 1 indicates that the measuring point is reachable to the corresponding robot; the index number of the measuring point; and the feature number of the measuring point.

[0020] Furthermore, the fitness function in step 7 is:

[0021]

[0022] Among them, m represents the number of workstations in the inspection line, i represents the workstation index, n represents the number of robots at a workstation in the inspection line, j represents the robot index, and M i represents the task set of the i-th station, M ij represents the task set of the jth robot at the i-th station, M ijs represents the task set of the jth robot at the i-th station arranged in a certain sequence s, d(M i ) represents the adjacent task set M on the i-th station ij The sum of the Euclidean distances of the center point coordinates, t(M ij ) represents the detection time of the task set of the jth robot at the i-th station, d(M ijs ) represents the path length of the jth robot at the i-th station according to the task set arranged in a certain sequence s, ω1, ω2, ω3 are weight coefficients, ω1 is negative, ω2, ω3 are positive. The following is d(M i )、t(M ij )、d(M ijs )’s specific expression:

[0023]

[0024] Among them, δ jj′ represents a 0 / 1 variable, 0 means the jth robot and j′ robot are not adjacent, 1 means the jth robot and j′ robot are adjacent, j, j′∈{1,2,…,n}, c ij (M ij) represents the center coordinates of all measuring points in the task set of the jth robot at the i-th station;

[0025]

[0026] Among them, t 01 It indicates the movement time of the robot arm from the initial position to the first measuring point. represents the movement time of the robot arm from the last measuring point back to the initial position, s and t represent two different measuring points in the task set of the jth robot at the i-th station, and x st represents a 0 / 1 variable, 0 means the two measurement points are not adjacent, 1 means the two measurement points are adjacent, t st represents the moving time from measuring point s to measuring point t, num represents the number of measuring points in the task concentration of the jth robot at the i-th station, and t M Indicates the detection time of a single measuring point;

[0027]

[0028] Wherein, k and k′ represent the index of the measuring point in the task set of the jth robot at the i-th station.

[0029] Furthermore, in step 8, elite selection refers to selecting the top 10% chromosomes of the current population evaluation value as the elite layer, and retaining them to the top 10% of the new generation; the remaining 90% are used as the non-elite layer, from which the top 20% to 70% of the next generation are randomly selected; and the remaining 30% of the next generation are replaced by random coding; double crossover refers to selecting two chromosomes of a specific layer, and then randomly selecting the crossover position on the chromosome, and finally performing crossover operations on the units, tenths, and percentiles respectively; double mutation is similar to the double crossover operation, and mutation operations are performed on integer and decimal places respectively; secondary evolution focuses on reordering the measurement points of the elite layer.

[0030] Compared with the prior art, the advantages of the present invention are:

[0031] 1) A floating point encoding method is proposed. The integer digit represents the workstation information of the measuring point, the tenth digit represents the robot information of the measuring point, and the percentile represents the order number of the measuring point in the current set. In this way, a measuring point is abstracted as a floating point number, which is regarded as a gene fragment in a chromosome, and the entire set of measuring points constitutes a chromosome in the population, laying the foundation for subsequent operations. This encoding method comprehensively considers the workstation, robot and measuring point sequence information, and theoretically has an optimal solution.

[0032] 2) By establishing a comprehensive evaluation function, the final result is evolved in the optimal direction. The evaluation function consists of three parts: the detection time of the measurement point set of the jth robot at the i-th station, the path length of the measurement point set of the jth robot at the i-th station, and the sum of the center distances of the measurement point sets of adjacent robots in the i-th station. Then, they are multiplied by their respective weight coefficients to obtain the final evaluation function. The smaller the value of the evaluation function, the better. It acts on the chromosomes in the evolutionary process of successive generations, and sorts the evaluation results to facilitate elite selection.

[0033] 3) In the intermediate process, a series of operations such as elite selection strategy, double crossover, and double mutation are used to improve the evolution mechanism of the population in the genetic algorithm. Elite selection refers to selecting the chromosomes with the top 10% of the current population evaluation value as the elite layer, and retaining them to the top 10% of the new generation; the remaining 90% are selected as the non-elite layer, from which the top 20% to 70% of the next generation are randomly selected; and the remaining 30% of the next generation are replaced by random coding. Double crossover refers to selecting two chromosomes of a specific layer, and then randomly selecting the crossover position on the chromosome, and finally performing crossover operations on the units, tenths, and percentiles respectively. Double mutation is similar to the double crossover operation, and mutation operations are performed on integers and decimals respectively. After these three operations, a new generation of populations is evolved. Due to the limitation of the evaluation indicators, the fitness of the new generation of populations is better.

[0034] 4) The coding correctness check operation mainly checks whether the coding situation is consistent with the actual situation after each step of evolution is completed. It mainly checks the integer and tenth digits. The rules are as follows: for integer digits, measurement points with the same characteristics must be tested at the same workstation; for tenth digits, the robot reachability information of the measurement point must be met.

[0035] 5) Secondary evolution: When the first evolution falls into a local optimal solution, a second crossover, mutation, and re-arrangement of the order of the measurement points are performed based on the chromosomes ranked in the top 10% after the first evolution, i.e. the elite layer. Based on experience, a suitable threshold is selected to make the result of the first evolution jump out of the local optimal solution, making the final result more convergent. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A flow chart of a method for allocating tasks of multi-robot optical measurement point detection is provided in an embodiment of the present invention.

[0037] Figure 2 The implementation steps of the task allocation method in the embodiment of the present invention are as follows: DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be further described below.

[0039] like Figure 1 and Figure 2 As shown, the present invention proposes a method for allocating optical measurement point tasks for multiple stations and multiple robots, comprising the following steps:

[0040] Step 1: Determine the initialization information, including the position and structural parameters of the workstation robot, measurement point information, and body point cloud;

[0041] Step 2: Based on the production line axis, the measuring points are allocated to the left and right inspection task sets. The side with more measuring points is selected for planning first, and then the task planning of the measuring points on the remaining side is carried out based on the results of the first planned side.

[0042] With the idea of ​​"the minority obeys the majority", we first plan the measurement point set on the side with more measurement points to ensure that measurement points with the same characteristics can be tested at the same workstation, thus meeting the factory's inspection tasks.

[0043] Step 3: Cluster the left and right inspection task sets in step 2, group the measurement points with the same characteristics into one group, and store the grouped measurement points with the same characteristics into a cell array to ensure that the measurement points with the same characteristics can be inspected at the same workstation, thereby meeting the factory's inspection tasks;

[0044] Step 4: Determine the accessibility of different robots to each measuring point based on robot kinematics theory, construct the accessibility matrix and the best feasible detection angle set;

[0045] According to the position information of the robot in the workstation and the DH parameter table and other conditions, the accessibility matrix of the measuring points and the corresponding optimal feasible detection angle set are calculated as the basis for future task allocation.

[0046] Step 5: Further improve the information of the measuring points in step 2: supplement the number index, feature number index, reachability information and joint angle information of the reachable robot, and then eliminate the information of the unreachable measuring points based on the reachability matrix obtained in step 4;

[0047] The information of measuring points that are unreachable by all robots is eliminated, and the information of a single measuring point is supplemented as follows: measuring point position information x, y, z; the first and second vector information i1, j1, k1, i2, j2, k2 of the measuring point; the reachability of the measuring point, represented by a 0 / 1 variable, 0 means that the measuring point is unreachable for the corresponding robot, and 1 means that the measuring point is reachable for the corresponding robot; the index number of the measuring point; the feature number of the measuring point.

[0048] Step 6: Based on the same feature measurement point set and the accessibility matrix, perform floating point encoding operation on the measurement point set to be allocated: the integer digit represents the workstation information of the measurement point, the tenth digit represents the robot information of the measurement point, and the percentile digit represents the order number of the measurement point in the current set;

[0049] Step 7: Establish a fitness function as an evaluation index, calculate the path length of the test points in different task subsets, the detection time, and the distance between the cluster centers of different task subsets, select a certain weight ratio, and use the sum as the evaluation index of the fitness of the population after each evolution, and comprehensively evaluate and sort the chromosomes in the population;

[0050] The fitness function is:

[0051]

[0052] Among them, m represents the number of workstations in the inspection line, i represents the workstation index, n represents the number of robots at a workstation in the inspection line, j represents the robot index, and M i represents the task set of the i-th station, M ij represents the task set of the jth robot at the i-th station, M ijs represents the task set of the jth robot at the i-th station arranged in a certain sequence s, d(M i ) represents the adjacent task set M on the i-th station ij The sum of the Euclidean distances of the center point coordinates, t(M ij ) represents the detection time of the task set of the jth robot at the i-th station, d(M ijs ) represents the path length of the jth robot at the i-th station according to the task set arranged in a certain sequence s, ω1, ω2, ω3 are weight coefficients, ω1 is negative, ω2, ω3 are positive. The following is d(M i )、t(M ij )、d(M ijs )’s specific expression:

[0053]

[0054] Among them, δ jj′ represents a 0 / 1 variable, 0 means the jth robot and j′ robot are not adjacent, 1 means the jth robot and j′ robot are adjacent, j, j′∈{1,2,…,n}, c ij (M ij ) represents the center coordinates of all measuring points in the task set of the jth robot at the i-th station;

[0055]

[0056] Among them, t 01 It indicates the movement time of the robot arm from the initial position to the first measuring point. represents the movement time of the robot arm from the last measuring point back to the initial position, s and t represent two different measuring points in the task set of the jth robot at the i-th station, and x strepresents a 0 / 1 variable, 0 means the two measurement points are not adjacent, 1 means the two measurement points are adjacent, t st represents the moving time from measuring point s to measuring point t, num represents the number of measuring points in the task concentration of the jth robot at the i-th station, and t M Indicates the detection time of a single measuring point;

[0057]

[0058] Wherein, k and k′ represent the index of the measuring point in the task set of the jth robot at the i-th station.

[0059] Step 8: Use the improved genetic algorithm: elite selection strategy, double crossover, double mutation and secondary evolution to effectively achieve the task of allocating vehicle body measurement points;

[0060] Elite selection refers to selecting the top 10% of chromosomes in the current population evaluation value as the elite layer, and retaining them to the top 10% of the new generation; the remaining 90% are regarded as the non-elite layer, from which the top 20% to 70% of the next generation are randomly selected; and the remaining 30% of the next generation are replaced by random coding; double crossover refers to selecting two chromosomes of a specific layer, and then randomly selecting the crossover position on the chromosome, and finally performing crossover operations on the units, tenths, and percentiles respectively; double mutation is similar to the double crossover operation, performing mutation operations on integer and decimal places respectively; secondary evolution focuses on reordering the measurement points of the elite layer.

[0061] Step 9: After each operation in step 8, a coding validity check must be performed to ensure that the integer parts of the gene fragments of the measuring points with the same characteristics are the same; the tenth digit of the gene fragment of the measuring point is constrained according to the accessibility matrix to ensure that the tenth digit is consistent with the number of the robot that can be reached at the measuring point;

[0062] Step 10: Execute steps 6 to 9 in sequence within the specified number of iterations to complete the task of allocating measuring points, decode the optimal detection task set allocated to each vehicle and each robot, and obtain the optimal set of measuring points allocated to each station and each robot. And store it in the following format:

[0063] The first robot The second robot The third robot ...... Station 1 Station 2 Station 3 ......

[0064] Aiming at the problem of non-contact optical measurement point task allocation of automobile body-in-white, the present invention proposes an improved genetic algorithm suitable for non-contact optical measurement point task allocation of multi-station multi-robot system, which comprehensively considers the three important links of the measurement point's station, the robot to which it belongs, and the sorting in the multi-station multi-robot task allocation in the form of floating point coding. Under the premise of meeting production requirements, the quality of task allocation and the efficiency of detection are greatly improved.

[0065] The above is only a preferred embodiment of the present invention and does not limit the present invention in any way. Any technician in the relevant technical field, without departing from the scope of the technical solution of the present invention, makes any form of equivalent replacement or modification to the technical solution and technical content disclosed in the present invention, which does not depart from the content of the technical solution of the present invention and still falls within the protection scope of the present invention.

Claims

1. A method for allocating tasks of optical measurement points for multiple stations and multiple robots, characterized in that: The following steps are involved: Step 1: Determine the initialization information, including the position and structural parameters of the workstation robot, measurement point information, and body point cloud; Step 2: Based on the production line axis, the measuring points are allocated to the left and right inspection task sets. The side with more measuring points is selected for planning first, and then the task planning of the measuring points on the remaining side is carried out based on the results of the first planned side. Step 3: Cluster the left and right inspection task sets in step 2, group the measurement points with the same characteristics into one group, and store the grouped measurement points with the same characteristics into a cell array to ensure that the measurement points with the same characteristics are inspected at the same workstation, thereby meeting the factory's inspection tasks; Step 4: Determine the accessibility of different robots to each measuring point based on robot kinematics theory, construct the accessibility matrix and the best feasible detection angle set; Step 5: Further improve the information of the measuring points in step 2: supplement the number index, feature number index, reachability information and joint angle information of the reachable robot, and then eliminate the information of the unreachable measuring points based on the reachability matrix obtained in step 4; Step 6: Based on the same feature measurement point set and the accessibility matrix, perform floating point encoding operation on the measurement point set to be allocated: the integer digit represents the workstation information of the measurement point, the tenth digit represents the robot information of the measurement point, and the percentile digit represents the order number of the measurement point in the current set; Step 7: Establish a fitness function as an evaluation index, calculate the path length of the test points in different task subsets, the detection time, and the distance between the cluster centers of different task subsets, select a certain weight ratio, and use the sum as the evaluation index of the fitness of the population after each evolution, and comprehensively evaluate and sort the chromosomes in the population; Step 8: Use the improved genetic algorithm: elite selection strategy, double crossover, double mutation and secondary evolution to effectively achieve the task of allocating vehicle body measurement points; Step 9: After each operation in step 8, a coding validity check must be performed to ensure that the integer parts of the gene fragments of the measuring points with the same characteristics are the same; the tenth digit of the gene fragment of the measuring point is constrained according to the accessibility matrix to ensure that the tenth digit is consistent with the number of the robot that can be reached at the measuring point; Step 10: Execute steps 6 to 9 in sequence within the specified number of iterations to complete the task of allocating measuring points, decode the optimal detection task set allocated to each vehicle and each robot, and obtain the optimal set of measuring points allocated to each station and each robot; The fitness function described in step 7 is: ; in, Indicates the number of workstations on the inspection line. Indicates the workstation index. Indicates the number of robots at a station in the inspection line, Represents the robot index, Indicates The task set of the workstation, Indicates Workstation No. The robot's task set, Indicates Workstation No. The robot follows a certain sequence The set of tasks arranged, Indicates Each adjacent task set on the workstation The sum of the Euclidean distances of the center point coordinates, Indicates Workstation No. The detection time of the robot's task set, Indicates Workstation No. The robot follows a certain sequence Rank the path lengths of the task sets, The weight coefficients are: is negative, is positive; the following is The specific expression: ; in, Represents a 0 / 1 variable, 0 represents the Robots and The robots are not adjacent, 1 means Robots and Robots are adjacent. , Indicates Workstation No. The center coordinates of all measurement points in the robot's mission set; ; in, It indicates the movement time of the robot arm from the initial position to the first measuring point. It indicates the movement time of the robot arm from the last measuring point back to the initial position. Respectively represent Workstation No. Two different measurement points in the robot's mission set, Represents a 0 / 1 variable, 0 means the two measurement points are not adjacent, 1 means the two measurement points are adjacent, From the measuring point To the measuring point The moving time, Indicates Workstation No. The number of measurement points of the robot's mission concentration, Indicates the detection time of a single measuring point; ; in, Indicates that the measuring point is Workstation No. The index in the robot's task set; In step 8, elite selection refers to selecting the top 10% chromosomes of the current population evaluation value as the elite layer, and retaining them to the top 10% of the new generation; the remaining 90% are used as the non-elite layer, from which the top 20% to 70% of the next generation are randomly selected; and the remaining 30% of the next generation are replaced by random coding; double crossover refers to selecting two chromosomes of a specific layer, and then randomly selecting the crossover position on the chromosome, and finally performing crossover operations on the units, tenths, and percentiles respectively; double mutation is similar to the double crossover operation, and mutation operations are performed on integers and decimals respectively; secondary evolution focuses on reordering the measurement points of the elite layer.

2. The method for allocating tasks of optical measurement points of multiple robots at multiple stations according to claim 1 is characterized in that: In step 2, the idea of ​​"the minority obeys the majority" is adopted to first plan the measurement point set on the side with more measurement points, ensuring that the measurement points with the same characteristics are tested at the same workstation, thereby meeting the factory's testing tasks.

3. The method for allocating optical measurement point tasks for multiple robots at multiple workstations according to claim 1, characterized in that: Step 4 is based on the position information of the robot in the workstation and The accessibility matrix of the measuring points and the corresponding optimal feasible detection angle set are calculated based on the parameter table and other conditions, which serve as the basis for future task allocation.

4. The method for allocating optical measurement point tasks for multiple robots at multiple workstations according to claim 1, characterized in that: In step 5, the information of the measuring points that are not reachable by all robots is removed, and the information of a single measuring point is supplemented as follows: the measuring point position information ; The first and second vector information of the measuring point ; The accessibility of the measuring point is represented by a 0 / 1 variable, where 0 means that the measuring point is unreachable for the corresponding robot, and 1 means that the measuring point is reachable for the corresponding robot; the index number of the measuring point; the feature number of the measuring point.