Feature-guided scanning trajectory optimization method for three-dimensional measurement robot
11938636 ยท 2024-03-26
Assignee
Inventors
- Jun WANG (Nanjing, CN)
- Hangbin ZENG (Nanjing, CN)
- Yuanpeng LIU (Nanjing, CN)
- Zhengshui KANG (Nanjing, CN)
- Jianping YANG (Nanjing, CN)
Cpc classification
B25J9/1664
PERFORMING OPERATIONS; TRANSPORTING
G01B21/20
PHYSICS
Y02T90/00
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
Abstract
A feature-guided scanning trajectory optimization method for a 3D measurement robot, including: building a 3D digital model of an aircraft surface; obtaining a size of the 3D digital model; extracting features to be measured; classifying the features to be measured; calculating a geometric parameter of each type of features to be measured; generating an initial scanning trajectory of each type of features to be measured; building a constraint model of the 3D measurement robot; optimizing the initial scanning trajectory into a local optimal scanning trajectory; and planning a global optimal scanning trajectory of each type of features to be measured on the aircraft surface by using a modified ant colony optimization algorithm.
Claims
1. A feature-guided scanning trajectory optimization method for a three-dimensional (3D) measurement robot, comprising: (S1) building a 3D digital model of an aircraft surface; obtaining a size of the 3D digital model; extracting features to be measured from the 3D digital model; and classifying the features to be measured; (S2) calculating a geometric parameter of each type of features to be measured; and generating an initial scanning trajectory of each type of features to be measured; (S3) building a constraint model of the 3D measurement robot; and optimizing the initial scanning trajectory of each type of features to be measured into a local optimal scanning trajectory; and (S4) based on the local optimal scanning trajectory, planning a global optimal scanning trajectory of the features to be measured of the aircraft surface by using a modified ant colony optimization algorithm; wherein the step (S3) comprises: (S31) based on a flange coordinate system of the 3D measurement robot, converting a posture change of the 3D measurement robot during a scanning process into changes of scanning depth d, yaw angle ?, pitch angle ? and rotation angle ?; and building the constraint model of the 3D measurement robot; (S32) based on the constraint model of the 3D measurement robot, traversing initial scanning trajectories of all types of features to be measured; and constructing a trajectory optimization evaluating function E, expressed as:
E=5?10.sup.?5??{square root over ((1.2d.sub.max?d).sup.2)}??{square root over ((??0.6?.sub.min).sup.2)}+?+??{square root over ((??0.3?.sub.min).sup.2)}; wherein ? is an out-of-plane angle; ? is an in-plane angle; ? is a penalty factor of the trajectory optimization evaluating function; ? is a penalty factor of the in-plane angle; d.sub.max is a maximum scanning depth; and ?.sub.min is a minimum out-of-plane angle; and (S33) repeating the step (S32) successively with the scanning depth, in-plane angle and out-of-plane angle as a single variable to minimize the trajectory optimization evaluating function E, so as to obtain the local optimal scanning trajectory of each type of features to be measured, expressed as:
2. The feature-guided scanning trajectory optimization method of claim 1, wherein the step (S2) comprises: setting a scanning width and a scanning depth of the 3D measurement scanner; for each type of features to be measured, selecting a surface to be scanned; generating trajectories on the surface to be scanned through direction-parallel scanning, wherein an interval between the trajectories is the scanning width; generating a plane parallel to the surface to be scanned, wherein a distance between the plane and the surface to be scanned is the scanning depth; and intersecting the plane with a normal of each of the trajectories on the surface to be scanned to obtain the initial scanning trajectory.
3. The feature-guided scanning trajectory optimization method of claim 1, wherein the constraint model of the 3D measurement robot satisfies the following conditions: (a) a motion trajectory of the 3D measurement robot satisfies a design requirement; (b) an effective scanning width of the 3D measurement scanner is greater than a distance between adjacent initial scanning trajectories; (c) an out-of-plane angle of the 3D measurement scanner is not greater than a preset value; and (d) an in-plane angle of the 3D measurement scanner is not greater than a preset value.
4. The feature-guided scanning trajectory optimization method of claim 1, wherein the scanning depth d ranges from d.sub.min to d.sub.max; the yaw angle ? ranges from
5. The feature-guided scanning trajectory optimization method of claim 1, wherein the step (S4) comprises: (S41) determining a starting feature to be measured S and a target feature to be measured D, and initializing a pheromone, a search path and a tabu list of individual feature nodes to be measured to build a 3D working environment of the aircraft surface; (S42) placing M ants at the starting feature to be measured S; placing the starting feature to be measured S into the tabu list; calculating a state transfer probability of each of the M ants for individual feature nodes to be measured in a next plane; and randomly selecting a next feature node to be measured by using a roulette wheel selection method; (S43) determining whether the target feature to be measured D has been reached; completing a search after all ants reach the target feature to be measured D; arranging lengths of crawling paths of all ants in an ascending order; and updating the number of ants and a pheromone value of individual feature nodes to be measured on a corresponding path; (S44) setting the number of updates v; if the global optimal scanning trajectory does not change after consecutive v iterations, adjusting a pheromone volatilization factor, and then returning to the step (S42), expressed as:
6. The feature-guided scanning trajectory optimization method of claim 5, wherein the pheromone of individual feature nodes to be measured is initialized as follows:
7. The feature-guided scanning trajectory optimization method of claim 5, wherein the state transfer probability P.sub.a,a+1.sup.k is calculated as follows:
8. The feature-guided scanning trajectory optimization method of claim 5, wherein the number of ants is updated as follows:
?=(1??)?+???; wherein dist(k) is a crawling distance of a k.sup.th ant; rank(k) is a rank of the k.sup.th ant; ?N is the number of ants after updating; and ? is the pheromone volatilization factor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
DETAILED DESCRIPTION OF EMBODIMENTS
(4) The present disclosure will be described below in detail with reference to the accompanying drawings and embodiments. It should be noted that described above are merely illustrative of the present disclosure, and not intended to limit the present disclosure.
(5) Referring to
(6) (S1) A 3D digital model of an aircraft surface is built. A size of the 3D digital model is obtained. Features to be measured are extracted. The features to be measured are classified.
(7) (S2) A geometric parameter of each type of features to be measured is calculated. An initial scanning trajectory of each type of features to be measured is generated. The step (S2) includes the following steps.
(8) A scanning width and a scanning depth of a 3D measurement scanner are set. For each type of features to be measured, a surface to be scanned is selected. Trajectories on the surface to be scanned are generated through direction-parallel scanning. An interval between the trajectories is the scanning width. A plane parallel to the surface to be scanned is generated. A distance between the plane and the surface to be scanned is the scanning depth. The plane with a normal of each of the trajectories is intersected on the surface to be scanned to obtain the initial scanning trajectory. The initial scanning trajectory is well-spaced and surface-fitted, facilitating a subsequent trajectory optimization.
(9) (S3) A constraint model of the 3D measurement robot is built. The initial scanning trajectory of each type of features to be measured is optimized into a local optimal scanning trajectory. The step (S3) includes the following steps.
(10) (S31) Based on a flange coordinate system of the 3D measurement robot, a posture change of the 3D measurement robot during a scanning process is converted into changes of scanning depth d, yaw angle ?, pitch angle ? and rotation angle ?. The constraint model of the 3D measurement robot is built. Since the 3D measurement scanner calculates the initial scanning trajectory by itself and the surface to be scanned, it is sufficient to make the 3D measurement scanner perpendicular to the surface to be scanned during the scanning process. However, there are motion constraints of the 3D measurement robot which supports the 3D measurement scanner. Assuming that there are no such motion constraints, during scanning of smooth surfaces, the 3D measurement scanner can scan in any posture within a feasible region of a scanning parameter thereof, and can generate an optimal posture during an initial scanning trajectory generation to reduce scanning error. However, due to the motion constraints of the 3D measurement robot, which limit the feasible region of the scanning parameter, a scan parameter with the smallest error in a definition field of the scan parameter may not necessarily satisfy a constraint. Accordingly, the constraint model of the 3D measurement robot satisfies the following conditions. (a) A motion trajectory of the 3D measurement robot satisfies a design requirement; (b) An effective scanning width of a 3D measurement scanner is greater than a distance between adjacent initial scanning trajectories; (c) An out-of-plane angle of the 3D measurement scanner is not greater than a preset value; and (d) An in-plane angle of the 3D measurement scanner is not greater than a preset value.
(11) The scanning depth d ranges from d.sub.min to d.sub.max. The yaw angle ? ranges from
(12)
The pitch angle ? ranges from
(13)
The rotation angle ? ranges from ?? to ?.
(14) (S32) Based on the constraint model of the 3D measurement robot, initial scanning trajectories of all types of features to be measured are traversed. A trajectory optimization evaluating function E is constructed. According to results of multiple experiments, when the scanning depth is constant, the scanning error increases with an increase of the out-of-plane angle. When the scanning depth is larger, the influence of the out-of-plane angle on systematic error is smaller and the scanning error varies linearly with the out-of-plane angle in which a slope of linear trend decreases as the scanning depth increases. The scanning error almost has a bilinear relationship with the scanning depth and the out-of-plane angle.
(15) The trajectory optimization evaluating function E is expressed as follows:
E=5?10.sup.?5??{square root over ((1.2d.sub.max?d).sup.2)}??{square root over ((??0.6?.sub.min).sup.2)}+?+??{square root over ((??0.3?.sub.min).sup.2)}; where ? is an out-of-plane angle; ? is an in-plane angle; ? is a penalty factor of the trajectory optimization evaluating function; ? is a penalty factor of the in-plane angle; d.sub.max is a maximum scanning depth; and ?.sub.min min is a minimum out-of-plane angle.
(16) (S33) The step (S32) is successively repeated with the scanning depth, in-plane angle and out-of-plane angle as a single variable to minimize the trajectory optimization evaluating function E, so as to obtain the local optimal scanning trajectory of the feature to be measured, expressed as follows:
(17)
(18) (S4) The features to be measured can be simplified to individual feature nodes to be measured since the features to be measured are spaced apart from each other. Based on the local optimal scanning trajectory of the feature to be measured, a global optimal scanning trajectory of each type of features to be measured of the aircraft surface is planned by using a modified ant colony optimization. As shown in
(19) (S41) A starting feature to be measured S and a target feature to be measured D are determined. A pheromone, a search path and a tabu list of individual feature nodes to be measured are initialized to build a 3D working environment of the aircraft surface. Since the global optimal scanning trajectory generally at a line segment L connecting the starting feature to be measured S and the target feature to be measured D, an initialization of the pheromone of individual feature nodes to be measured distributes the pheromone according to a distance of individual feature nodes to be measured from the line segment L. This distribution has reduced iterations and improved an optimization efficiency than random distribution, which is expressed as follows:
(20)
(21) (S42) M ants are placed at the starting feature to be measured S. The starting feature to be measured S is placed into the tabu list. A state transfer probability of each of the M ants for individual feature nodes to be measured in a next plane is calculated. A next feature node to be measured is randomly selected by using roulette wheel selection method.
(22) As the number of iterations increases, an importance of a pheromone factor for path selection gradually decreases. At an initial stage, the pheromone factor has a greater influence on the path selection due to a different pheromone concentration of feature nodes, therefore, ?(N) should be larger and ?(N) should be smaller. Later, the pheromone concentration on optimal scanning trajectory is gradually much higher than the other trajectories. The importance of pheromone concentration in path selection is gradually reduced in order to prevent the algorithm from falling into local optimum, that is, ?(N) should be decreased and ?(N) should be increased, so as to facilitate obtaining the global optimal scanning trajectory. Hence, the state transfer probability changes the pheromone factor and a heuristic function factor to dynamic parameters, and assigns the pheromone factor and the heuristic function factor respectively using cosine function and sine function to change the pheromone factor and the heuristic function factor with iterations. The state transfer probability P.sub.a,a+1.sup.k is calculated as follows:
(23)
(24) (S43) Whether the target feature to be measured D has been reached is determined. Search is performed after all ants reach the target feature to be measured D. Lengths of crawling paths of all ants are arranged in an ascending order. The number of ants and a pheromone of individual feature nodes to be measured on a corresponding path are updated simultaneously to achieve a higher pheromone on the path in a next iteration, so as to achieve a higher probability that the ant chooses the path, thus the global optimal scanning trajectory is found. The number of ants is updated as follows:
(25)
and the pheromone P of individual feature nodes to be measured is updated as follows:
?=(1??)?+??? where dist(k) is a crawling distance of a k.sup.th ant; rank(k) is a rank of the k.sup.th ant; ?N is the number of ants after updating; and ? is the pheromone volatilization factor.
(26) (S44) In order to prevent a path from falling into a local optimum situation, the number of updates v is set. If the global optimal scanning trajectory does not change after consecutive v iterations, the pheromone volatilization factor is adjusted followed by returning to the step (S42), expressed as follows:
(27)
(28) (S45) Whether the maximum number of iterations has been reached is determined. If yes, executing a step (S46) that a length of the global optimal scanning trajectory is output. Otherwise, the tabu list is cleared followed by returning to the step (S42).
(29) An initial scanning trajectory of each type of features is generated. A base of a scanning trajectory of the 3D measurement robot is determined and a constraint model of the 3D measurement robot is built. The initial scanning trajectory is optimized to enable the initial scanning trajectory to conform to a motion of the 3D measuring robot. There are multiple features at aircraft, a global optimal scanning trajectory of the multiple features is planned by using a modified ant colony optimization based on the local optimal scanning trajectory.
(30) Described above are only some embodiments of the present disclosure, which are not intended to limit the disclosure. It should be understood that any variations and modifications made by those of ordinary skilled in the art without departing from the spirit of the disclosure should fall within the scope of the disclosure defined by the appended claims.