Adaptive scanning method for complex curved surface parts

By determining the reference plane and grid center point on complex curved parts and optimizing the scanning path sequence, the problem of over-scanning or missing in hand-held scanning is solved, the scanning accuracy and speed are improved, and the efficiency of adaptive scanning of the part surface is achieved.

CN114758095BActive Publication Date: 2024-08-27CHONGQING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210376150.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-11
Publication Date
2024-08-27
Estimated Expiration
2042-04-11

AI Technical Summary

Technical Problem

In the existing technology, handheld laser scanners need to attach a large number of label points when scanning complex curved surface parts, and the scanning results lack position information. Commercial software will destroy the authenticity of the defect morphology when reconstructing the surface, resulting in low scanning accuracy, and It is prone to over-scanning or missing areas.

Method used

Grid scanning is performed by determining the reference plane, calculating grid center points, projecting triangle patches, counting grid center point sets, adjusting pose matrices, optimizing the scan path sequence, and scanning grid center points one by one to ensure that the scan path is minimized. This enables adaptive scanning of the part surface.

Benefits of technology

It effectively solves the problem of over-scanning or missing areas in manual handheld scanning, improves scanning accuracy and speed, and ensures the integrity and accuracy of part models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114758095B
    Figure CN114758095B
Patent Text Reader

Abstract

The present invention discloses a method for adaptively scanning the surface of a complex curved surface part, comprising: S1. performing grid scanning on the part to obtain a plurality of grid areas; S2. counting the grid center points located in the projected triangle to obtain a grid center point set P in ; S3. Based on the grid center point set P in Determine the pose matrix set of the center point of the grid; S4. Collect the point cloud information of the part, perform point cloud registration on the point cloud information and the vertex information of the part model, and obtain the pose matrix set T after the point cloud transformation task ; S5. Based on the pose matrix set T task Determine the pose matrix set T of the scanned target task1 ; S6. Determine the optimal scanning order for scanning the m grid center points one by one; S7. Scan the part according to the optimal scanning order. The present invention can effectively solve the problem of over-scanning or partial area scanning missing in manual scanning, and can improve the scanning accuracy and speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of parts scanning, and in particular to a surface adaptive scanning method for complex curved parts. Background Art

[0002] In existing laser cladding repair cases, most handheld laser scanners are used to obtain point clouds on the surface of complex parts, and commercial software is used for surface reconstruction. This solution has two obvious defects: 1. The handheld scanner needs to be labeled with a considerable number of points, and the scanning result does not have the position information of the parts, and it needs to be calibrated in the robot coordinate system later; 2. In order to pursue the smoothness of surface reconstruction, commercial software often performs smooth fitting on the sudden defect area. This deliberate fitting destroys the authenticity of the surface defect morphology and will seriously affect the accuracy of the later repair.

[0003] At the same time, when manually scanning parts with a handheld scanner, it is impossible to determine which areas on the part have been scanned, which often results in repeated scanning of many areas on the part, causing the scan point cloud to be too dense, resulting in the generated file being too large, and increasing the burden of post-processing; in addition, it is also easy for some areas to not be scanned, resulting in the missing of some areas in the obtained part model file.

[0004] Therefore, in order to solve the above problems, an effective surface adaptive scanning method for complex curved parts is needed. Summary of the invention

[0005] In view of this, the purpose of the present invention is to overcome the defects in the prior art and provide an adaptive surface scanning method for complex curved parts, which can effectively solve the problem of over-scanning of parts or missing scanning of partial areas of parts caused by manual handheld scanning, and can improve the scanning accuracy and speed.

[0006] The method for adaptively scanning the surface of a complex curved part of the present invention comprises the following steps:

[0007] S1. Determine a reference plane, use the reference plane as a scanning surface to perform a grid scan on the part, obtain a number of grid areas, and calculate the xy coordinates of the grid center point of each grid area on the reference plane;

[0008] S2. Project the triangular facets on the part surface onto the reference plane to obtain several projected triangles, count the mesh center points within the projected triangles, and obtain the mesh center point set P. in ;

[0009] The P in ={p1,p2,p3,…,p m}, p mis the mth grid center point, and the mth grid center point corresponds to the mth triangle patch;

[0010] S3. Based on the grid center point set P in Determine the pose matrix set T of the grid center point in;projected ;

[0011] S4. Place the part on the workbench, collect the point cloud information of the part, and perform point cloud registration on the point cloud information and the vertex information of the part model to achieve the alignment of the pose matrix set T in;projected The point cloud transformation is obtained to obtain the pose matrix set T after the point cloud transformation task ;

[0012] S5. Based on the pose matrix set T task Determine the pose matrix set T of the scanned target task1 ;

[0013] S6. Based on the pose matrix set T task1 Adjust the scanning path sequence for scanning the m grid center points one by one so that the sum of the scanning paths for scanning the m grid center points one by one is minimized, and take the scanning sequence set when the sum is minimized as the optimal scanning sequence;

[0014] S7. Scan the m grid center points one by one according to the optimal scanning order.

[0015] Further, the reference plane is determined according to the following steps:

[0016] S11. Obtaining the original design model of the part;

[0017] S12. Extracting geometric information from the original design model of the part to obtain vertex information, triangle patch information, and triangle patch unit normal vector information of the part;

[0018] S13. Obtain the xy coordinate points of all vertices, and use the plane including the xy coordinate points of all vertices as a reference plane.

[0019] Furthermore, based on the grid center point set P in Determine the pose matrix set T of the grid center point in;projected , including:

[0020] S31. Set the grid center point set P in Substitute the xy coordinates of the center point of the mesh into the plane equation of the corresponding triangular patch to obtain the z-axis coordinate of the center point of each mesh, and then obtain the xyz coordinate of the center point of each mesh;

[0021] S32. Count the xyz coordinates of each grid center point and the unit normal vectors of the triangle patches corresponding to each grid center point, and obtain the pose matrix set T of the grid center point in;projected ;

[0022] The T in;projected ={T1,T2,T3,…,T m}, T m is the pose matrix of the mth grid center point.

[0023] Further, we get the pose matrix set T after point cloud transformation task , specifically including:

[0024] Performing point cloud registration on the point cloud information and vertex information of the part model to obtain a point cloud transformation matrix T0;

[0025] Combine the matrix T0 with the pose matrix set T in;projected Multiply them together to get the pose matrix set T task ; The T task ={T′1,T′2,T′3,…,T′ m}, T′ m is the pose matrix T m The pose matrix after point cloud transformation.

[0026] Furthermore, based on the pose matrix set T task Determine the pose matrix set T of the scanned target task1 , specifically including:

[0027] Determine the scanning distance L from the scanning device on the workbench to the part, and obtain the scanning transformation matrix T1;

[0028] Combine matrix T1 with the pose matrix set T task Multiply them together to get the pose matrix set T task1 ;

[0029] The T task1 ={T″1,T″2,T″3,…,T″ m}, T″ m is the pose matrix of scanning the center point of the mth grid.

[0030] Furthermore, the plane equation of the triangular patch is determined according to the following formula:

[0031] Ax+By+Cz+D=0;

[0032] Where A=(v m2y -v m1y )*(v m3z -v m1z )-(v m3y -vm1y )*(v m2z -v m1z ), B=(v m2z -v m1z )*(v m3x -v m1x )-(v m3z -v m1z )*(v m2x -v m1x ), C=(v m2x -v m1x )*(v m3y -v m1y )-(v m3x -v m1x )*(v m2y -v m1y ),

[0033] D=A*v m1x -B*v m1y -C*v m1z ;

[0034] v m1x is the x coordinate of the first point of the mth triangle patch, v m1y is the y coordinate of the first point of the mth triangle patch, v m1z is the z coordinate of the first point of the mth triangle patch; v m2x is the x coordinate of the second point of the mth triangle patch, v m2y is the y coordinate of the second point of the mth triangle patch, v m2z is the z coordinate of the second point of the mth triangle patch; v m3x is the x coordinate of the third point of the mth triangle patch, v m3y is the y coordinate of the third point of the mth triangle patch, v m3z The z coordinate of the third point of the m-th triangle patch.

[0035] Further, the scan conversion matrix T1 is determined according to the following formula:

[0036]

[0037] in,

[0038] The beneficial effects of the present invention are as follows: the present invention discloses a method for adaptively scanning the surface of complex curved parts, which scans the parts on a workbench, divides the surface of the parts into partitions and obtains the normal vector information of the center points of the partitions before scanning, thereby scanning each area, and optimizing the scanning sequence so that the sum of the scanning task paths is minimized; the present invention can effectively solve the problem of over-scanning of parts or missing scanning of partial areas of parts caused by manual handheld scanning, and improves the scanning accuracy and speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:

[0040] Figure 1 It is a schematic diagram of the method flow of the present invention;

[0041] Figure 2 - (a) is a schematic side view of the parts partition of the present invention;

[0042] Figure 2 - (b) is a schematic top view of the parts partitioning of the present invention;

[0043] Figure 3 - (a) is a side view of the center point of the part grid of the present invention;

[0044] Figure 3 - (b) is a top view of the center point of the component grid of the present invention;

[0045] Figure 4 A schematic diagram of the position of the center point of the grid on the upper surface of the part of the present invention;

[0046] Figure 5 It is a schematic diagram of scanning the workbench of the present invention;

[0047] Figure 6 This is a schematic diagram of the scanning sequence before optimization of the present invention;

[0048] Figure 7 This is a schematic diagram of the optimized scanning sequence of the present invention;

[0049] Among them, 1- six-axis robot, 2- depth camera, 3- stripe structured light scanner, 4- parts. DETAILED DESCRIPTION

[0050] The present invention is further described below in conjunction with the accompanying drawings, as shown in the drawings:

[0051] The method for adaptively scanning the surface of a complex curved part of the present invention comprises the following steps:

[0052] S1. Determine the reference plane, use the reference plane as the scanning surface to perform grid scanning on the part, obtain several grid areas, and calculate the xy coordinates of the grid center point of each grid area on the reference plane; specifically, on the reference plane, generate several grids by scanning with a high-precision stripe structured light scanner, and the several grids divide the part into partitions, and all areas just completely cover the part, such as Figure 2 As shown. According to the generated part partition grid, calculate the center point of each grid, generate each grid center point on the reference plane, and record the data of the grid center point into the set P gridis In, P gridis Represents the set of all grid center points on the projection plane, such as Figure 3 shown.

[0053] S2. Project the triangular facets on the part surface onto the reference plane to obtain several projected triangles, count the mesh center points within the projected triangles, and obtain the mesh center point set P. in ;

[0054] The P in ={p1,p2,p3,…,p m}, p m is the mth grid center point, and the mth grid center point corresponds to the mth triangle patch;

[0055] S3. Based on the grid center point set P in Determine the pose matrix set T of the grid center point in;projected ;

[0056] S4. Place the part on the workbench, collect the point cloud information of the part, and perform point cloud registration on the point cloud information and the vertex information of the part model to achieve the alignment of the pose matrix set T in;projected The point cloud transformation is obtained to obtain the pose matrix set T after the point cloud transformation task ;

[0057] S5. Based on the pose matrix set T task Determine the pose matrix set T of the scanned target task1 ;

[0058] S6. Based on the pose matrix set T task1 Adjust the scanning path sequence for scanning the m grid center points one by one so that the sum of the scanning paths for scanning the m grid center points one by one is minimized, and take the scanning sequence set when the sum is minimized as the optimal scanning sequence;

[0059] S7. Scan the m grid center points one by one according to the optimal scanning order. When scanning parts, the robot is required to visit many targets continuously. The walking time of the robot between tasks is an important part of the entire execution time. This travel time is greatly affected by the order of task access and the robot configuration when reaching each task. Therefore, optimizing the order of scanning tasks can reduce the execution time of the entire part scanning and improve the scanning rate by following the optimal scanning order.

[0060] In this embodiment, in step S1, the reference plane is determined according to the following steps:

[0061] S11. Obtaining an original design model of a part; wherein the original design model of the part is obtained by CAD modeling; the format of the part model adopts an STL file in a binary data storage format. STL is a native file format of stereolithography CAD software created by 3D Systems, which is widely used in rapid prototyping, 3D printing and computer-aided manufacturing. STL files only describe the upper surface geometry of a 3D object, without any representation of color, texture or other common CAD model attributes.

[0062] S12. Extract geometric information from the original design model of the part to obtain vertex information, triangle patch information, and triangle patch unit normal vector information of the part; specifically, according to the data structure characteristics of the binary STL file, use the program to read out the information of each triangle patch set in the surface in turn. The information of vertices, triangle patches, and triangle patch unit normal vectors extracted from the part STL file are stored in sets V, F, and N respectively:

[0063] V={v1,v2,v3,…,v m},v m = {v mx ,v my ,v mz}, V represents the set of all vertices in the STL file, v m Represents a collection of x, y and z coordinate information of the point;

[0064] F={f1,f2,f3,…,f m}, f m = {v m1 ,v m2 ,v m3}, F represents the set of all triangle patches in the STL file, f m Represents the vertex set contained in the mth triangle patch;

[0065] N={n1,n2,n3,…,n m}, N represents the set of unit normal vectors of all triangle patches in the STL file.

[0066] S13. Get the xy coordinates of all vertices, and use the plane including the xy coordinates of all vertices as the reference plane. Specifically, read the x and y coordinate information of all vertices in the STL file, that is, read the x and y coordinate information of all vertices in the set V, and then generate a projection in the XOY coordinate system according to the range of x and y values, and then generate a reference plane according to the range of the projection. The x and y ranges in the reference plane are:

[0067] min(x)-d≤x≤max(x)+d

[0068] min(y)-d≤y≤max(y)+d

[0069] Here, d is a positive variable used to make the size of the reference plane larger than the size of the projected part.

[0070] In this embodiment, in step S2, in order to identify the upper surface of the part, only the normals with a positive coefficient k are stored in the set N bottom :N bottom ={n1,n2,n3,…,n m},N bottom Represents the collection of all top surface normals in the part STL model file.

[0071] Set N bottom The vertices of the surface triangles corresponding to all normals in the projected reference plane are projected onto the reference plane, so the entire upper surface can be projected onto the reference plane. The part STL model is composed of triangular facets, so the upper surface projected onto the reference plane is also a triangle. The mesh center point in each triangle is stored in the set P in It should be noted that by turning over the part so that the other surfaces of the part face upward to form a new upper surface, and then processing the new upper surface in the above manner, the full surface scanning of the part is achieved.

[0072] In this embodiment, in step S3, based on the grid center point set P in Determine the pose matrix set T of the grid center point in;projected , specifically including:

[0073] S31. Set the grid center point set P in Substitute the xy coordinates of the center point of the grid into the plane equation of the corresponding triangular patch to obtain the z-axis coordinate of each grid center point, and then obtain the xyz coordinate of each grid center point; determine the plane equation of the triangular patch according to the following formula:

[0074] Ax+By+Cz+D=0;

[0075] Where A=(v m2y-v m1y )*(v m3z -v m1z )-(v m3y -v m1y )*(v m2z -v m1z ), B=(v m2z -v m1z )*(v m3x -v m1x )-(v m3z -v m1z )*(v m2x -v m1x ), C=(v m2x -v m1x )*(v m3y -v m1y )-(v m3x -v m1x )*(v m2y -v m1y ),

[0076] D=A*v m1x -B*v m1y -C*v m1z ;

[0077] v m1x is the x coordinate of the first point of the mth triangle patch, v m1y is the y coordinate of the first point of the mth triangle patch, v m1z is the z coordinate of the first point of the mth triangle patch; v m2x is the x coordinate of the second point of the mth triangle patch, v m2y is the y coordinate of the second point of the mth triangle patch, v m2z is the z coordinate of the second point of the mth triangle patch; v m3x is the x coordinate of the third point of the mth triangle patch, v m3y is the y coordinate of the third point of the mth triangle patch, v m3z The z coordinate of the third point of the m-th triangle patch.

[0078] S32. Count the xyz coordinates of each grid center point and the unit normal vector of the triangle face corresponding to each grid center point, and store the three-dimensional coordinates of the grid center point on the STL model and the unit normal information of the STL model triangle face corresponding to the grid center point in the collection P in;projected middle.

[0079] The P in;projected ={p1,p2,p3,…,p m ; n1,n2,n3,…,n m}; Set P in;projected Each point and the corresponding normal information in the grid are used together to generate the pose matrix, and the pose matrix set T of the grid center point can be obtained. in;projected ; Wherein, the three-dimensional coordinates represent the position, and the normal represents the direction; the T in;projected ={T1,T2,T3,…,T m}, T m is the pose matrix of the mth grid center point.

[0080] In this embodiment, in step S4, the pose matrix set T after point cloud transformation is obtained. task , including:

[0081] The point cloud information is aligned with the vertex information of the part model to obtain the point cloud transformation matrix T0; the iterative closest point (ICP) algorithm is one of the most widely used point set alignment methods. The traditional template matching-based pose estimation methods for input 3D point clouds are mainly a variety of global alignment methods, such as Super4PCS and GO-ICP, which can obtain relatively accurate 6D poses. The Go-ICP algorithm speeds up the new method while ensuring global optimization and solves the problem of outlier robustness. Therefore, the present invention adopts the Go-ICP algorithm for point cloud alignment.

[0082] The entire registration process is as follows: Figure 5 As shown in the figure, the camera is first installed at the end of the robot arm, and the 3D point cloud of the part is obtained through the depth camera. After that, the existing point cloud is pre-processed by filtering and segmentation, and the GO-ICP algorithm is used to align the point cloud with the point cloud of the STL model to obtain the optimal transformation matrix T0 between the two point clouds; the transformation matrix T0 can be expressed as:

[0083] represents the rotation matrix; Represents the translation matrix.

[0084] Combine the matrix T0 with the pose matrix set T in;projected Multiply them together to get the pose matrix set T task ; The T task ={T′1,T′2,T′3,…,T′ m}, T′ m is the pose matrix T m The pose matrix after point cloud transformation. T task =T0T in;projected .

[0085] In this embodiment, in step S5, based on the pose matrix set T task Determine the pose matrix set T of the scanned target task1 , including:

[0086] Determine the scanning distance L from the scanning device on the workbench to the part, and obtain the scanning transformation matrix T1; wherein the scanning distance is the working distance scanned by the scanner, and the scanning target point of the robot can be obtained by translating the distance L in the normal direction, and the value of the distance L is 0.4m;

[0087] The scan conversion matrix T1 is determined according to the following formula:

[0088]

[0089] in,

[0090] Combine matrix T1 with the pose matrix set T task Multiply them together to get the pose matrix set T task1 ;

[0091] The T task1 =T1T task ; The T task1 ={T″1,T″2,T″3,…,T″ m}, T″ m is the pose matrix of scanning the center point of the mth grid.

[0092] In this embodiment, in step S6, the classic TSP algorithm is used to find the optimal access sequence of the targets in the task space metric. task1 ={T″1,T″2,T″3,…,T″ m}Use TSP algorithm to solve their optimal scanning (access) order in space. Figure 6 , 7 As shown, this is the scanning order effect diagram before and after optimization.

[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.

Claims

1. A method for adaptive scanning of complex curved surface parts, characterized in that: The steps include: S1. Determine a reference plane, use the reference plane as a scanning surface to perform a grid scan on the part, obtain a number of grid areas, and calculate the xy coordinates of the grid center point of each grid area on the reference plane; Determine the reference plane as follows: S11. Obtaining the original design model of the part; S12. Extracting geometric information from the original design model of the part to obtain vertex information, triangle patch information, and triangle patch unit normal vector information of the part; S13. Obtain the xy coordinates of all vertices, and use the plane including the xy coordinates of all vertices as a reference plane; S2. Project the triangular facets on the part surface onto the reference plane to obtain several projected triangles, count the mesh center points within the projected triangles, and obtain the mesh center point set P. in ; The P in ={p1,p2,p3,…,p m }, p m is the mth grid center point, and the mth grid center point corresponds to the mth triangle patch; S3. Based on the grid center point set P in Determine the pose matrix set T of the grid center point in;projected , specifically including: S31. Set the grid center point set P in Substitute the xy coordinates of the center point of the mesh into the plane equation of the corresponding triangular patch to obtain the z-axis coordinate of the center point of each mesh, and then obtain the xyz coordinate of the center point of each mesh; S32. Count the xyz coordinates of each grid center point and the unit normal vectors of the triangle patches corresponding to each grid center point, and obtain the pose matrix set T of the grid center point in;projected ; The T in;projected ={T1,T2,T3,…,T m }, T m is the pose matrix of the mth grid center point; S4. Place the part on the workbench, collect the point cloud information of the part, and perform point cloud registration on the point cloud information and the vertex information of the part model to achieve the alignment of the pose matrix set T in;projected The point cloud transformation is obtained to obtain the pose matrix set T after the point cloud transformation task , specifically including: Performing point cloud registration on the point cloud information and vertex information of the part model to obtain a point cloud transformation matrix T0; Combine the matrix T0 with the pose matrix set T in;projected Multiply them together to get the pose matrix set T task ; The T task ={T1 ′ ,T2 ′ ,T3 ′ ,…,T m ′ m}, T ′ m is the pose matrix T m The pose matrix after point cloud transformation; S5. Based on the pose matrix set T task Determine the pose matrix set T of the scanned target task1 , specifically including: Determine the scanning distance L from the scanning device on the workbench to the part, and obtain the scanning transformation matrix T1; The scan conversion matrix T1 is determined according to the following formula: in, Combine matrix T1 with the pose matrix set T task Multiply them together to get the pose matrix set T task1 ; The T task1 ={T1″,T2″,T3″,…,T ′ m ′ }, T ′ m ′ is the pose matrix of scanning the center point of the mth grid; S6. Based on the pose matrix set T task1 Adjust the scanning path sequence for scanning the m grid center points one by one so that the sum of the scanning paths for scanning the m grid center points one by one is minimized, and take the scanning sequence set when the sum is minimized as the optimal scanning sequence; S7. Scan the m grid center points one by one according to the optimal scanning order.

2. The method for adaptively scanning the surface of a complex curved part according to claim 1, characterized in that: Determine the plane equation of the triangular patch according to the following formula: Ax+By+Cz+D=0; where A = (v m2y - v m1y ) * (v m3z - v m1z ) - (v m3y - v m1y ) * (v m2z - v m1z ), B = (v m2z - v m1z ) * (v m3x - v m1x ) - (v m3z - v m1z ) * (v m2x - v m1x ), C = (v m2x - v m1x ) * (v m3y - v m1y ) - (v m3x - v m1x ) * (v m2y - v m1y ), D=A*v m1x -B*v m1y -C*v m1z ; v m1x is the x coordinate of the first point of the mth triangle patch, v m1y is the y coordinate of the first point of the mth triangle patch, v m1z is the z coordinate of the first point of the mth triangle patch; v m2x is the x coordinate of the second point of the mth triangle patch, v m2y is the y coordinate of the second point of the mth triangle patch, v m2z is the z coordinate of the second point of the mth triangle patch; v m3x is the x coordinate of the third point of the mth triangle patch, v m3y is the y coordinate of the third point of the mth triangle patch, v m3z The z coordinate of the third point of the m-th triangle patch.