A robot trajectory adaptive correction method for large and complex components

By combining rigid and non-rigid registration, the deformation area is identified and the trajectory and attitude are adaptively corrected, which solves the problem of point cloud registration in the production of large components, achieves efficient trajectory and attitude correction, and ensures processing accuracy and real-time performance. It replaces Manual correction is performed to improve data registration speed.

CN115056213BActive Publication Date: 2024-09-20SHANGHAI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210148528.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-18
Publication Date
2024-09-20
Estimated Expiration
2042-02-18

AI Technical Summary

Technical Problem

In the production of large-scale complex components, due to component deformation caused by the previous process, there is a large difference between the actual point cloud of the component and the theoretical digital model. It is difficult to achieve accurate registration with the existing rigid registration method, and the calculation amount of non-rigid registration is large. The matching time is too long to meet the real-time processing requirements, the reliance on engineers' experience leads to a decrease in process accuracy, and the correction solutions of different engineers are difficult to maintain.

Method used

An adaptive trajectory and attitude correction method based on component information and process rules is used to collect three-dimensional point cloud data through multi-view laser sensors, combine rigid and non-rigid registration, identify deformation areas, use transformation matrices to correct trajectory and attitude, and optimize trajectory points Cloud to ensure robot accessibility and process rationality.

Benefits of technology

It improves the part perception accuracy, reduces the calculation time, standardizes the trajectory correction scheme, ensures that all trajectory points are reachable, solves the problem of offline processing of large components and on-site component matching, replaces manual trajectory modification, and improves the data registration speed and Accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115056213B
    Figure CN115056213B
Patent Text Reader

Abstract

The present invention discloses a robot trajectory adaptive correction method for large and complex components, including deformation area identification and registration processing, trajectory adaptive correction and posture adaptive correction. The present invention performs adaptive correction of trajectory and posture by combining offline programming and on-site scanning point cloud methods. It solves the problem that offline processing programs of large components are difficult to match with on-site components, replaces manual trajectory correction, and combines rigid registration and non-rigid registration to improve the calculation speed of on-site data and offline data registration. The present invention identifies and registers parts with large local deformations through a method of combining rigid registration with non-rigid registration, and quickly corrects the model; quickly matches the corresponding correction scheme through the process rules of the trajectory knowledge base to realize the trajectory adaptive function; and realizes the posture adaptive function by checking the reachability of the corrected trajectory points. Finally, the output of a complete set of trajectories and postures is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an off-line trajectory adaptive correction method, and in particular to a trajectory attitude adaptive correction method for large and complex components. Background Art

[0002] With the development of intelligent manufacturing technology, more and more factories that require spraying processes have begun to use automated production lines. Offline trajectory planning has played a huge role, and its technology is also maturing. It includes offline programming, trajectory correction, offline simulation, etc. Trajectory optimization and correction are key technologies in the offline programming system of spraying robots.

[0003] In the field of complex large-scale component production, due to the deformation of components caused by the previous process, there will be a large difference between the actual point cloud of the component and the theoretical digital model. It may be difficult to complete the registration between the standard digital model point cloud and the measured point cloud by rotating and translating the overall point cloud alone, that is, the rigid registration method may fail. Therefore, the non-rigid registration method is introduced, even if each point has a scaling factor on the three coordinates, local scaling is achieved, so as to achieve the effect of accurate registration. However, the calculation amount of the non-rigid registration method mentioned above is quite large, which will lead to too long matching time and cannot achieve the real-time characteristics of the processing process. Secondly, in most cases now, engineers use existing experience, knowledge reserves and on-site working conditions to modify offline trajectories and postures. Relying solely on engineers to correct postures and trajectories based on their own experience and knowledge and on-site observations will cause a decrease in process accuracy. Secondly, different engineers will have different correction schemes, which are difficult to maintain later. Summary of the invention

[0004] The purpose of the present invention is to solve the technical problems existing in the prior art and to propose a robot trajectory adaptive correction method for large and complex components. The robot trajectory is adaptively corrected based on component information and process rules to solve the problem of the difficulty in matching the offline processing program of large components with the on-site components.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A trajectory attitude adaptive correction method for large and complex components is provided, and the operation steps are as follows:

[0007] 1) Generate offline trajectory:

[0008] Establish the workpiece coordinate system, robot coordinate system, and tool coordinate system, import the standard digital model of the product into the computer, and obtain the point cloud file through discrete processing; generate the trajectory and posture according to the process rules through manual teaching or automatic offline generation, which will serve as the standard registration posture for subsequent steps;

[0009] 2) Component point cloud collection and preprocessing:

[0010] The multi-view laser sensor collects 3D point cloud of the component, adopts the solution of workpiece movement and camera stillness, selects the ground rail chain plate conveyor line, and obtains the scanning point cloud data of the component through the point cloud splicing technology; at the same time, the dense point cloud is pre-processed, and the evaluation index based on the point cloud registration accuracy and registration speed is constructed to find the method that can retain the local detail features of the component without destroying the geometric structure of the point cloud data, and effectively reduce the scale and density of the point cloud;

[0011] 3) Deformation area identification and registration processing:

[0012] First, the scan is denoised and downsampled, and then the rigid registration method is used for coarse registration to identify the parts with large deformation, reduce the amount of calculation during fine registration, and save registration time. Specifically, the Euclidean distance is used as the deformation evaluation standard, and the threshold is set. The point cloud is divided into several different areas according to the structural characteristics and the working range of different robots. The relationship between the average distance and the threshold is calculated to determine whether the area needs non-rigid registration. If it is greater than the threshold, the area is non-rigidly registered as a whole; if it is less than the threshold, the rigid registration result is maintained in the area; then the non-rigid registration method is used to achieve fine registration. Each registration point in the deformation area has a scaling factor. Finally, the rigidly registered and non-rigidly registered point clouds are spliced ​​to obtain the transformation factors of all point clouds, which are used as transformation matrices in subsequent steps to perform adaptive corrections to trajectories and postures.

[0013] 4) Trajectory adaptive correction:

[0014] Considering that the deformation of large components is a superposition of shear, torsion, bending and stretching deformation, trajectory adaptation is divided into two steps: first, the stretching deformation is ignored, and only the shear, torsion and bending deformations in the deformation area are considered. The standard trajectory of the original point cloud is mapped to the actual point cloud as a whole using the transformation function, and the trajectory shape is corrected and optimized according to the requirements of the processed component; then, considering the stretching deformation, the robot's standard operation trajectory may become too sparse or dense and fail to meet the process requirements. It is necessary to first densify the standard trajectory, and then use the interpolation method to reselect appropriate trajectory points. At the same time, taking into account the change of beat, the robot beat is recalculated according to the number of new trajectories, and the running speed is adjusted;

[0015] 5) Posture adaptive correction:

[0016] First, assign the initial posture of the trajectory point. The specific assignment scheme is as follows:

[0017] The radius around the registration trajectory point is half of the trajectory point spacing, and the average normal vector of this part of the point cloud is taken as the reference datum. Then, the deflection correction is performed on this basis according to the process parameters, and this is used as the initial posture. Subsequently, since the robot trajectory corrected by the component deformation may have some postures that are unreachable by the robot due to the lack of inverse kinematics, an iterative robot inverse solution method is used to verify whether the newly generated trajectory can meet the process rationality and robot accessibility. If not, an iterative mechanism is set to continuously optimize the robot trajectory according to the process rules until the output meets the process requirements and the robot accessibility requirements to correct the robot operation trajectory.

[0018] Preferably, the specific method in step 4) is:

[0019] For robot trajectory correction of shear, torsion, and bending deformation, after obtaining the registration transformation matrix in step 3), the standard trajectory points generated in step 2) are transformed to calculate the position and posture of the registered trajectory points; at this time, the new trajectory is divided into feature areas and corrected according to the process knowledge base, wherein the shape of the trajectory points is adjusted. During the registration process, the spacing of the original trajectory will change and become inconsistent with the spraying standard. At this time, the new trajectory will re-match the corresponding rules from the process knowledge base, re-adjust the number of operation paths, and complete the correction. When the component is stretched and deformed, the density of the point cloud obtained by scanning the actual component is significantly higher than that of the offline point cloud of the model. The new trajectory points generated by the transformation function of the original trajectory points will become sparse, thereby reducing the accuracy. This project adopts a point cloud slicing technology, which slices the actual scanned point cloud according to the mapped trajectory to obtain a continuous trajectory point on the scanned point cloud surface, and then interpolates to obtain dense points, and then corrects the trajectory according to the robot trajectory correction method for shear, torsion, and bending deformation.

[0020] Preferably, the specific posture optimization calculation method in step 5) is:

[0021] For the unreachable point, the posture of the previous trajectory point and the next trajectory is evaluated to determine whether it is the starting point of the spray transition point. If so, copy the posture of the previous point; if not, take the intermediate vector (Z i-1 +Z i+1 ), and use this intermediate vector as the spray direction of this point, and keep moving clockwise and counterclockwise around it with the same step length to find the posture with an inverse solution. If both exist, calculate the sum of the joint angles of the robot in the two cases (θ1+θ2+…+θ n ), and take the smaller value as the optimal solution.

[0022] Compared with the prior art, the present invention has the following obvious outstanding substantial features and significant advantages:

[0023] 1. The method of the present invention uses rigid registration to roughly locate the deformation area, and non-rigid registration to accurately match the scanned point cloud and the standard point cloud, which improves the perception accuracy of the parts, can not only ensure that the deformation features are accurately located, but also reduce the amount of calculation and shorten the calculation time; the trajectory adaptation technology converts the experience of engineers into quantitatively describable information and standardizes the trajectory adaptation scheme; the posture adaptation technology verifies whether the final trajectory point has an inverse solution, ensuring that all trajectory points can be reached, thereby generating a complete correction trajectory;

[0024] 2. The present invention combines offline programming with on-site scanning of point clouds to perform adaptive correction of trajectory and posture; it solves the problem that offline processing programs of large components are difficult to match with on-site components, replaces manual trajectory correction, and combines rigid registration with non-rigid registration to improve the calculation speed of registration of on-site data and offline data;

[0025] 3. The present invention replaces the engineer's evaluation through on-site part scanning perception, and extracts features more accurately; through the method of combining rigid registration with non-rigid registration, on the basis of retaining most of the original trajectory, the part with large local deformation is identified and registered, and the model is corrected quickly; through the process rules of the trajectory knowledge base, the corresponding correction scheme is quickly matched to realize the trajectory self-adaptation function; through the accessibility check of the corrected trajectory points, the optimal solution is searched among all the reachable solutions for the inaccessible points to realize the posture self-adaptation function. Finally, the output of a complete set of trajectories and postures is realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 Flow chart of the method of the present invention.

[0027] Figure 2 Flow chart of deformation region identification and registration processing according to a preferred embodiment of the present invention.

[0028] Figure 3 Flow chart of the posture adaptive correction of the preferred embodiment of the present invention. DETAILED DESCRIPTION

[0029] The present invention is described in detail as follows with reference to the accompanying drawings in relation to a preferred embodiment:

[0030] Embodiment 1:

[0031] See also Figure 1 , a robot trajectory adaptive correction method for large and complex components, the operation steps are as follows:

[0032] 1) Generate offline trajectory:

[0033] Establish the workpiece coordinate system, robot coordinate system, and tool coordinate system, import the standard digital model of the product into the computer, and obtain the point cloud file through discrete processing; generate the trajectory and posture according to the process rules through manual teaching or automatic offline generation, which will serve as the standard registration posture for subsequent steps;

[0034] 2) Component point cloud collection and preprocessing:

[0035] The multi-view laser sensor is used to collect the three-dimensional point cloud of the component. The workpiece moves and the camera is stationary. The ground rail chain plate conveyor line is selected. The point cloud data of the component scanning is obtained through the point cloud splicing method. At the same time, the dense point cloud is pre-processed. By constructing evaluation indicators based on point cloud registration accuracy and registration speed, it is found that the geometric structure of the point cloud data can be preserved without destroying the local detail features of the component, and the point cloud scale and density can be effectively reduced.

[0036] 3) Deformed area identification and registration processing:

[0037] The computer inputs the digital model, offline trajectory and on-site scanning point cloud, pre-processes the on-site scanning point cloud to reduce its sample size and remove noise, and then uses the rigid registration method for coarse registration to identify the part with large deformation, reduce the amount of calculation during fine registration, and save registration time; specifically, the Euclidean distance is used as the deformation evaluation standard, and the threshold is set. The point cloud is divided into several different areas according to the structural characteristics and the working range of different robots, and the relationship between the average distance and the threshold is calculated to determine whether the area needs non-rigid registration. If it is greater than the threshold, the area is subjected to overall non-rigid registration; if it is less than the threshold, the area maintains the rigid registration result;

[0038] Then, fine registration is implemented according to the non-rigid registration method. Each registration point in the deformation area has a scaling factor. Finally, the point clouds of rigid and non-rigid registration are spliced ​​to obtain the transformation factors of all point clouds, which are used as transformation matrices in subsequent steps to perform adaptive correction of trajectory and posture.

[0039] 4) Trajectory adaptive correction:

[0040] Considering that the deformation of large components is a superposition of shear, torsion, bending and expansion deformation, trajectory adaptation is divided into two steps:

[0041] First, the stretching deformation is ignored, and only the shearing, torsion and bending deformations in the deformation area are considered. The standard trajectory of the original point cloud is mapped to the actual point cloud as a whole using the transformation function, and the trajectory shape is corrected and optimized according to the requirements of the processed component.

[0042] Then, considering the stretching deformation, the robot's standard operation trajectory may become too sparse or dense and fail to meet the process requirements. It is necessary to first densify the standard trajectory, and then use the interpolation method to reselect the appropriate trajectory points. At the same time, taking into account the change of the beat, the robot beat is recalculated according to the number of new trajectories, and the running speed is adjusted;

[0043] 5) Posture adaptive correction:

[0044] First, assign the initial posture of the trajectory point. The specific assignment scheme is as follows:

[0045] The radius around the registration trajectory point is half of the trajectory point spacing, and the average normal vector of this part of the point cloud is taken as the reference benchmark. Then, the deflection correction is performed on this basis according to the process parameters, and this is used as the initial posture;

[0046] Subsequently, considering that the robot trajectory corrected for component deformation may have some postures that are unreachable by the robot due to the unsolvable inverse kinematics, an iterative robot inverse solution method is adopted to verify whether the newly generated trajectory can meet the process rationality and robot reachability at the same time; if not, an iterative mechanism is set up to continuously optimize the robot trajectory according to the process rules until the output meets the process requirements and the robot reachability requirements to correct the robot operation trajectory.

[0047] The method of this embodiment uses rigid registration to roughly locate the deformation area, and non-rigid registration to accurately match the scanned point cloud and the standard point cloud, which improves the part perception accuracy, can not only ensure that the deformation features are accurately located, but also reduce the amount of calculation and shorten the calculation time; the trajectory adaptation method is used to convert the engineer's experience into quantitatively describable information, and standardize the trajectory adaptation plan; the posture adaptation method verifies whether the final trajectory point has an inverse solution, ensuring that all trajectory points can be reached, thereby generating a complete corrected trajectory.

[0048] Embodiment 2:

[0049] This embodiment is basically the same as the first embodiment, with the following special features:

[0050] In the present embodiment, in the step 4), for the shear, torsion and bending deformations in the comprehensive deformation component, after the registration transformation matrix is ​​obtained in step 3), the standard trajectory points are transformed, and the position and posture of the registered trajectory points are calculated; at this time, the new trajectory is divided into feature areas and corrected according to the process knowledge base, wherein the shape of each trajectory is adjusted. After non-rigid registration, the original straight line trajectory may produce a jittering trajectory after transformation. Therefore, the shape of the trajectory needs to be adjusted for the above situation to meet the working requirements; large components are inevitably deformed during processing, thereby generating manufacturing errors, and the point cloud density obtained by scanning the actual component is significantly more than or sparse In the case of offline point cloud of the model, the new trajectory points generated by the transformation function of the original trajectory points will become sparse or dense, which will reduce the accuracy or lengthen the processing cycle; a point cloud slicing technology is adopted to select appropriate reference points for slicing on the actual scanned point cloud according to the mapped trajectory to obtain a continuous trajectory on the scanned point cloud surface. Then, the distance between the trajectory point and the section is used as the evaluation criterion, and the section angle is continuously adjusted in the direction of gradient reduction to make its accuracy reach the required range. The section at this time is selected to process the model to obtain the optimal trajectory, and interpolation is continued on this trajectory to obtain dense points of posture and position. The density of trajectory points is determined and selected according to requirements.

[0051] In this embodiment, the specific posture optimization calculation method in step 5) is:

[0052] For the unreachable point, the posture of the previous trajectory point and the next trajectory is evaluated to determine whether it is the starting point of the spray transition point. If so, copy the forward axis Y axis of the tool coordinate system of the previous point posture, fix the Z axis direction, update the X axis, recalculate the Y axis, and determine the posture of this point; if not, take the intermediate vector (Z i-1 +Z i+1 ), and use this intermediate vector as the spray direction of this point, and keep moving clockwise and counterclockwise around it with the same step length to find the posture with an inverse solution. If both exist, calculate the sum of the joint angles of the robot in the two cases (θ1+θ2+…+θ n ), take the smaller value as the optimal solution, (θ1+θ2+…+θ n ) represents each joint angle.

[0053] This embodiment performs adaptive correction of trajectory and posture by combining offline programming and on-site scanning point cloud method; solves the problem that offline processing program of large components is difficult to match with on-site components, replaces manual trajectory correction, and combines rigid registration and non-rigid registration to improve the calculation speed of on-site data and offline data registration; The present invention performs adaptive correction of trajectory and posture by combining offline programming and on-site scanning point cloud method; solves the problem that offline processing program of large components is difficult to match with on-site components, replaces manual trajectory correction, and combines rigid registration and non-rigid registration to improve the calculation speed of on-site data and offline data registration; This embodiment uses rigid registration combined with non-rigid registration method to identify and register the part with large local deformation on the basis of retaining most of the original trajectory, and quickly corrects the model; quickly matches the corresponding correction scheme through the process rules of the trajectory knowledge base to realize the trajectory adaptive function; through the accessibility check of the corrected trajectory points, the optimal solution is searched among all reachable solutions for the inaccessible points to realize the posture adaptive function. Finally, the output of the whole set of trajectories and postures is realized.

[0054] Embodiment three:

[0055] See also Figure 1 , a robot trajectory adaptive correction method for large and complex components, the steps are as follows:

[0056] 1) Generate offline trajectory: Establish DH model according to the robot, and establish workpiece coordinate system, robot coordinate system, tool coordinate system, name the product digital model and import it into the computer, and obtain point cloud file through discrete processing. Generate trajectory and posture according to process rules through manual teaching or automatic offline generation.

[0057] 2) Component point cloud acquisition and preprocessing: Multi-view laser sensors are used to collect 3D point clouds of components. The solution of workpiece motion and camera stillness is adopted. The ground rail chain plate conveyor line is selected. Through the point cloud splicing technology, the component scanning point cloud data is obtained. At the same time, the dense point cloud is preprocessed. By constructing evaluation indicators based on point cloud registration accuracy and registration speed, we can find ways to retain the local detail features of the component without destroying the geometric structure of the point cloud data, and effectively reduce the scale and density of the point cloud.

[0058] 3) Deformed area identification and registration processing: First, based on the neighbor search method of the KD tree of the topological structure of the point cloud data, the radius filter is used to efficiently remove outliers, and then the rigid registration method is used for coarse registration to identify the part with large deformation, reduce the amount of calculation during fine registration, and save registration time. Specifically, the Euclidean distance is used as the deformation evaluation standard, and the threshold is set to divide the point cloud into regions according to the structural features. The relationship between the average distance and the threshold is used to determine whether the region needs non-rigid registration. Then, fine registration is achieved according to the non-rigid registration method. Each registration point in the deformed area has a scaling factor, which is used as a transformation matrix in the subsequent steps to perform adaptive corrections to the trajectory and posture.

[0059] 4) Adaptive trajectory correction: For shear, torsion and bending deformations in the deformation area, the change in point cloud density can be ignored. The original point cloud and trajectory are mapped to the actual point cloud as a whole using the transformation function, and the trajectory and posture are corrected and optimized according to the process rules. However, when the component undergoes tensile deformation, the robot's standard operation trajectory may become too sparse and fail to meet the process requirements. In this case, the standard trajectory needs to be densified first, and then the robot's posture is optimized using the interpolation method.

[0060] 5) Posture adaptive correction: The robot trajectory corrected according to the deformation of the component may have some postures that are unreachable by the robot due to the lack of inverse kinematics solution. To this end, an iterative robot inverse solution method is used to verify whether the newly generated trajectory can meet the process rationality and robot reachability. If not, an iterative mechanism is set up to continuously optimize the robot trajectory according to the process rules until the output meets the process requirements and robot reachability requirements to correct the robot operation trajectory.

[0061] The specific method in step 4) is as follows: the robot used in the example is IRB5400, the spraying tool uses a non-spherical wrist, and its DH parameters are as shown in Table 1:

[0062] Table 1. DH parameter table

[0063] i <![CDATA[θ i ]]> <![CDATA[d i ]]> <![CDATA[a i-1 ]]> <![CDATA[α i-1 ]]> 1 <![CDATA[θ1]]> <![CDATA[d1]]> 0 0 2 <![CDATA[θ2]]> 0 <![CDATA[a1]]> -90° 3 <![CDATA[θ3]]> 0 <![CDATA[a2]]> 0 4 <![CDATA[θ4]]> <![CDATA[d4]]> <![CDATA[a3]]> -90° 5 <![CDATA[θ5]]> <![CDATA[d5]]> 0 β 6 <![CDATA[-θ5]]> <![CDATA[d6]]> 0 -2β 7 <![CDATA[θ6]]> <![CDATA[d7]]> 0 β

[0064] For the shear, torsion, and bending deformations in the comprehensive deformation component, after obtaining the registration transformation matrix in step 3), the standard trajectory points generated in step 2) are transformed to calculate the position and posture of the registered trajectory points. At this time, the new trajectory is divided into feature areas and corrected according to the process knowledge base, wherein the shape of each trajectory is adjusted. After non-rigid registration, the original straight line trajectory may produce a jittering trajectory after transformation. Therefore, the shape of the trajectory needs to be adjusted for the above situation to meet the working requirements. Large components are inevitably deformed during processing, resulting in manufacturing errors. The point cloud density obtained by scanning the actual component is significantly more or sparser than the offline point cloud of the model. The new trajectory points generated by the transformation function of the original trajectory points will become sparse or dense, resulting in a decrease in accuracy or a longer processing cycle. The present invention adopts a point cloud slicing technology, selects appropriate reference points for slicing on the actual scanned point cloud according to the mapped trajectory, and obtains a continuous trajectory on the scanned point cloud surface. Then, the distance between the trajectory point and the section is used as an evaluation criterion, and the section angle is continuously adjusted in the direction of gradient reduction to make its accuracy reach the required range. The section at this time is selected to process the model to obtain the optimal trajectory, and interpolation is continued on this trajectory to obtain dense points of posture and position. The density of trajectory points is determined and selected according to requirements.

[0065] The specific posture optimization calculation method in step 5) is: first output the modified trajectory, take a row of trajectory points as an example for analysis, and the specific position and posture are shown in Table 2 below:

[0066] Table 2. Specific position and posture information table

[0067]

[0068] Calculate the unreachable point, evaluate the trajectory point 104 in combination with the posture of the previous trajectory point and the next trajectory, and determine whether it is the starting point of the spraying transition point. This point is not a transition point: take the middle vector (Z) of the spraying direction between the previous point and the next point i-1 +Z i+1 ), which is (1.73205-6.00926e-171) and use this intermediate vector as the spraying direction of this point. Rotate it clockwise and counterclockwise with a step size of 1° to find a posture with an inverse solution. When rotating 7° counterclockwise, the inverse solution is found, and there is no inverse solution for 7° clockwise. Take the posture at this time as the optimal posture and update the trajectory.

[0069] The above embodiment of the present invention is a robot trajectory adaptive correction method for large and complex components. First, the deformation area is identified and registered, then the trajectory is adaptively corrected, and then the posture is adaptively corrected. The above embodiment of the present invention performs adaptive correction of trajectory and posture by combining offline programming and on-site scanning point cloud methods. The above embodiment solves the problem that the offline processing program of large components is difficult to match with the on-site components, replaces manual trajectory correction, and combines rigid registration and non-rigid registration to improve the calculation speed of on-site data and offline data registration. The above embodiment of the present invention replaces engineer evaluation through on-site part scanning perception to extract features more accurately; through the method of rigid registration combined with non-rigid registration, on the basis of retaining most of the original trajectory, the part with large local deformation is identified and registered, and the model is corrected quickly; the above embodiment quickly matches the corresponding correction scheme through the process rules of the trajectory knowledge base to realize the trajectory adaptive function; through the accessibility check of the corrected trajectory points, the optimal solution is searched for all reachable solutions for the inaccessible points to realize the posture adaptive function. Finally, the output of a complete set of trajectories and postures is realized.

[0070] The above describes the embodiments of the present invention in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made according to the purpose of the invention. Any changes, modifications, substitutions, combinations or simplifications made according to the spirit and principle of the technical solution of the present invention should be equivalent replacement methods. As long as they meet the purpose of the invention and do not deviate from the technical principles and inventive concepts of the present invention, they belong to the protection scope of the present invention.

Claims

1. A robot trajectory adaptive correction method for large and complex components. It is characterized in that The steps are as follows: 1) Generate offline trajectory: Establish the workpiece coordinate system, robot coordinate system, and tool coordinate system, import the standard digital model of the product into the computer, and obtain the point cloud file through discrete processing; generate the trajectory and posture according to the process rules through manual teaching or automatic offline generation, which will serve as the standard registration posture for subsequent steps; 2) Component point cloud collection and preprocessing: The multi-view laser sensor is used to collect the three-dimensional point cloud of the component. The workpiece moves and the camera is stationary. The ground rail chain plate conveyor line is selected. The point cloud data of the component scanning is obtained through the point cloud splicing method. At the same time, the dense point cloud is pre-processed. By constructing evaluation indicators based on point cloud registration accuracy and registration speed, it is found that the geometric structure of the point cloud data can be preserved without destroying the local detail features of the component, and the point cloud scale and density can be effectively reduced. 3) Deformation area identification and registration processing: The computer inputs the digital model, offline trajectory and on-site scanning point cloud, pre-processes the on-site scanning point cloud to reduce its sample size and remove noise, and then uses the rigid registration method for coarse registration to identify the part with large deformation, reduce the amount of calculation during fine registration, and save registration time; specifically, the Euclidean distance is used as the deformation evaluation standard, and the threshold is set. The point cloud is divided into several different areas according to the structural characteristics and the working range of different robots, and the relationship between the average distance and the threshold is calculated to determine whether the area needs non-rigid registration. If it is greater than the threshold, the area is subjected to overall non-rigid registration; if it is less than the threshold, the area maintains the rigid registration result; Then, fine registration is implemented according to the non-rigid registration method. Each registration point in the deformation area has a scaling factor. Finally, the point clouds of rigid and non-rigid registration are spliced ​​to obtain the transformation factors of all point clouds, which are used as transformation matrices in subsequent steps to perform adaptive correction of trajectory and posture. 4) Trajectory adaptive correction: Considering that the deformation of large components is a superposition of shear, torsion, bending and expansion deformation, trajectory adaptation is divided into two steps: First, the stretching deformation is ignored, and only the shearing, torsion and bending deformations in the deformation area are considered. The standard trajectory of the original point cloud is mapped to the actual point cloud as a whole using the transformation function, and the trajectory shape is corrected and optimized according to the requirements of the processed component. Then, considering the stretching deformation, the robot's standard operation trajectory may become too sparse or dense and fail to meet the process requirements. It is necessary to first densify the standard trajectory, and then use the interpolation method to reselect the appropriate trajectory points. At the same time, taking into account the change of the beat, the robot beat is recalculated according to the number of new trajectories, and the running speed is adjusted; 5) Posture adaptive correction: First, assign the initial posture of the trajectory point. The specific assignment scheme is as follows: The radius around the registration trajectory point is half of the trajectory point spacing, and the average normal vector of this part of the point cloud is taken as the reference benchmark. Then, the deflection correction is performed on this basis according to the process parameters, and this is used as the initial posture; Then, considering that the robot trajectory corrected by the deformation of the component may have some postures that are inaccessible to the robot due to the lack of inverse kinematics solution, an iterative robot inverse solution method is used to verify whether the newly generated trajectory can meet the robot's accessibility while meeting the process rationality; If it is not satisfied, an iterative mechanism is set up to continuously optimize the robot trajectory according to the process rules until the output meets the process requirements and the robot reachability requirements to correct the robot's operating trajectory.

2. The robot trajectory adaptive correction method for large and complex components according to claim 1, Features: In the step 4), for the shear, torsion and bending deformations in the comprehensive deformation component, after the registration transformation matrix is ​​obtained in step 3), the standard trajectory points are transformed to calculate the position and posture of the registered trajectory points; at this time, the new trajectory is divided into feature areas and corrected according to the process knowledge base, wherein the shape of each trajectory is adjusted. After non-rigid registration, the original straight line trajectory may produce a jittering trajectory after transformation. Therefore, the shape of the trajectory needs to be adjusted for the above situation to meet the working requirements; large components are inevitably deformed during processing, resulting in manufacturing errors. The point cloud density obtained by scanning the actual component is significantly more or sparser than the model. In the case of offline point cloud, the new trajectory points generated by the transformation function of the original trajectory points will become sparse or dense, which will reduce the accuracy or lengthen the processing cycle; a point cloud slicing method is adopted to select appropriate reference points for slicing on the actual scanned point cloud according to the mapped trajectory to obtain a continuous trajectory on the scanned point cloud surface, and then use the distance between the trajectory point and the section as the evaluation criterion, continuously adjust the section angle in the direction of gradient reduction to make its accuracy reach the required range, select the section at this time to process the model, and obtain the optimal trajectory, continue to interpolate on this trajectory to obtain dense points of posture and position, and determine the trajectory point density and select it according to the requirements.

3. The robot trajectory adaptive correction method for large and complex components according to claim 1, Features: In step 5), the specific posture optimization calculation method is: For the unreachable point, the posture of the previous trajectory point and the next trajectory is evaluated to determine whether it is the starting point of the spray transition point; if so, the forward axis Y axis of the tool coordinate system of the previous point posture is copied, the Z axis direction is fixed, the X axis is updated, the Y axis is recalculated, and the posture of this point is determined; if not, the intermediate vector (Z i-1 +Z i+1 ), and use this intermediate vector as the spray direction of this point, and keep moving clockwise and counterclockwise around it with the same step length to find the posture with an inverse solution. If it exists at the same time, calculate the sum of the joint angles of the robot in the two cases (θ 1 +θ 2 +…+θ n ), take the smaller value as the optimal solution, (θ 1 +θ 2 +…+θ n ) represents each joint angle.