Multi-frame point cloud registration method for large curved surface
Through the ICP algorithm based on distance distribution and the loop constraint optimization graph, the problems of low registration accuracy and cumulative error in large-scale surface measurement are solved, and high-precision point cloud splicing is achieved.
Patent Information
- Application Number
- CN202410666830.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-10
AI Technical Summary
Large curved surfaces lack features during measurement, resulting in low registration accuracy and cumulative errors caused by multi-frame point cloud splicing.
The ICP algorithm based on distance distribution is used, combined with loop closure constraints and pose graph optimization, to solve the relative pose and information matrix by constructing a loss function and a global loss function, optimizing the point cloud registration process and reducing cumulative errors.
It improves the accuracy of large-scale surface point cloud splicing, reduces cumulative errors, and achieves higher-precision three-dimensional data acquisition.
Smart Images

Figure CN118628535A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of point cloud registration, and in particular to a multi-frame point cloud registration method for a large curved surface. Background Art
[0002] With the rapid development of modern industry in recent years, higher requirements have been placed on the accuracy of three-dimensional measurement. Optical three-dimensional shape measurement technology has been widely used in industrial measurement, medical industry, cultural relics protection and other fields due to its advantages such as non-contact, high precision and high speed.
[0003] Among them, in the field of measurement, large surfaces are a major focus of industrial measurement. Large surface measurement is generally achieved through robot multi-view scanning and point cloud stitching to obtain complete three-dimensional data of the measured surface.
[0004] When measuring large surfaces, the main focus is on solving the problems that arise when stitching point clouds to obtain complete 3D data of the measured surface: (1) large surfaces lack features and the registration accuracy is low; (2) the problem of cumulative errors caused by stitching multiple frames of point clouds.
[0005] The present invention proposes an improved ICP algorithm. The ICP algorithm is based on data registration method and utilizes the nearest point search method to solve an algorithm based on free-form surfaces. The ICP algorithm is a point-to-point registration and an algorithm based on distance distribution. It solves the above-mentioned problems by using loop constraints and graph optimization. Summary of the invention
[0006] The purpose of the present invention is to provide a multi-frame point cloud registration method for large surfaces, which solves the problems that occur when measuring existing large surfaces, mainly focusing on solving the problem of point cloud splicing to obtain complete three-dimensional data of the measured surface: (1) large surfaces lack features and the registration accuracy is not high; (2) technical problems of cumulative errors caused by multi-frame point cloud splicing.
[0007] To achieve the above object, the present invention provides a multi-frame point cloud registration method for a large surface, comprising the following steps:
[0008] Step 1: Establish loop constraint relationship;
[0009] Step 2: Solve the relative pose and information matrix according to the loop constraint relationship;
[0010] Step 3: Construct a loss function between two point clouds with a constraint relationship;
[0011] Step 4: Construct a global loss function;
[0012] Step 5: Use the pose graph to optimize the optimal solution of the global loss function in step 4.
[0013] Among them, the loop constraint relationship in the step one is obtained by directly scanning the motion trajectory of the robot, that is, when the robot scans the object to obtain the point cloud, a serial number is calibrated for each point cloud, and the scanning starting position and the key position are controlled to partially overlap.
[0014] Among them, in the step 2, an ICP algorithm based on distance distribution is used to solve the relative posture and the information matrix.
[0015] Among them, the algorithm idea of the ICP algorithm in the step 2 is: for the point cloud that has been roughly aligned, in each iteration process, the distance between the corresponding points aligned together should be small, and the distance between the corresponding points in the non-overlapping area should be large. If the distances of the corresponding points are sorted from small to large, the correct corresponding points should be in the front of the sequence, and the wrong corresponding points should be in the back of the sequence. For the point cloud of a large surface, since the hierarchical local point cloud structure is relatively simple, in a general plane or surface, the distances of the correct corresponding points are similar, that is, the correct corresponding points are concentrated in certain intervals. If these intervals are found, most of the correct corresponding points are found. After finding the correct corresponding points, the set of corresponding points found is used to construct a function, and the Levenberg-Marquardt method is used for optimization to obtain the relative pose and the information matrix.
[0016] Among them, when the loss function in the step 3 is constructed, in order to facilitate the subsequent optimization of the loss function, it is necessary to optimize the Jacobian matrix J of the loss function, that is, e kl Derivative, due to e kl It is a function of the transformation matrix T, and since T is not closed to addition operations, it cannot be differentiated through the derivative definition, so it needs to be differentiated through Lie algebra or perturbation model.
[0017] The calculation formula of the global loss function in step 4 is:
[0018] J(x)=∑k,l∈ε e k (x) TΩkl-1 e k (x)
[0019] Among them, posture x=(T1,T2,…,T n ) is the optimization variable, Ω kl is the information matrix, e kl (x) is the loss function noted in step 3, and e is the error between every two point clouds with loop closure constraints.
[0020] Among them, the pose graph optimization method in step five uses an undirected graph to represent the nonlinear optimization problem, each node in the graph corresponds to a global measurement pose, and the connecting edge between two nodes corresponds to the relative pose constraint between them, and the optimization goal is to find a node configuration that is most consistent with the relative pose constraint established by the edge, that is, to determine the optimal estimate of each global pose given all relative pose constraints.
[0021] The present invention discloses a multi-frame point cloud registration method for a large surface. In view of the technical problems that, in the process of measuring and solving the problem of point cloud splicing to obtain complete three-dimensional data of the measured surface, the large surface lacks features, the registration accuracy is not high, and the cumulative error caused by multi-frame point cloud splicing exists, the present invention proposes an ICP algorithm based on point cloud distance distribution, which is suitable for point cloud splicing with fewer features, thereby solving the above-mentioned problems of lack of features of large surfaces and low registration accuracy. The loop constraints and optimization graphs of surface consistency constraints are adopted to solve the above-mentioned problem of cumulative error caused by multi-frame point cloud splicing. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0023] Figure 1 It is a flowchart of a multi-frame point cloud registration method for a large surface according to the first embodiment of the present invention.
[0024] Figure 2 is T of the multi-frame point cloud registration method for large curved surfaces according to the first embodiment of the present invention. n , T i Position relationship diagram.
[0025] Figure 3 It is a loop relationship diagram of n point clouds of the multi-frame point cloud registration method for a large surface according to the first embodiment of the present invention.
[0026] Figure 4 It is a schematic diagram of the distances of the correct corresponding points of the multi-frame point cloud registration method for a large curved surface according to the first embodiment of the present invention.
[0027] Figure 5 This is an interval distribution diagram of correct corresponding points of the multi-frame point cloud registration method for a large curved surface according to the first embodiment of the present invention.
[0028] Figure 6 The dotted line connecting the upper circle and the lower circle in the multi-frame point cloud registration method for a large curved surface according to the first embodiment of the present invention represents the correct corresponding points that are not included.
[0029] Figure 7The dotted line connecting the upper circle and the lower circle in the multi-frame point cloud registration method for a large curved surface according to the first embodiment of the present invention represents an erroneous corresponding point.
[0030] Figure 8 This is an algorithm time efficiency diagram of the multi-frame point cloud registration method for large surfaces according to the first embodiment of the present invention.
[0031] Fig. 9 It is a pose graph corresponding to the global pose optimization problem of the multi-frame point cloud registration method for large surfaces of the first embodiment of the present invention.
[0032] Fig.10 It is an algorithm flow chart of the multi-frame point cloud registration method for a large curved surface according to the first embodiment of the present invention. DETAILED DESCRIPTION
[0033] Embodiments of the present invention are described in detail below. Examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, but should not be construed as limiting the present invention.
[0034] First embodiment:
[0035] See also Figures 1 to 10 , Figure 1 is a flowchart of a multi-frame point cloud registration method for a large curved surface according to a first embodiment of the present invention. Figure 2 is T of the multi-frame point cloud registration method for large curved surfaces according to the first embodiment of the present invention. n , T i Position relationship diagram, Figure 3 is a loop relationship diagram of n point clouds of a multi-frame point cloud registration method for a large surface according to the first embodiment of the present invention, Figure 4 is a schematic diagram of the distances of the correct corresponding points of the multi-frame point cloud registration method for a large curved surface according to the first embodiment of the present invention, Figure 5 is an interval distribution diagram of correct corresponding points of the multi-frame point cloud registration method for a large curved surface according to the first embodiment of the present invention, Figure 6 The dotted line connecting the upper circle and the lower circle represents the correct corresponding points that are not included in the multi-frame point cloud registration method for a large curved surface according to the first embodiment of the present invention. Figure 7 The dotted line connecting the upper circle and the lower circle represents the wrong corresponding point in the multi-frame point cloud registration method for a large curved surface according to the first embodiment of the present invention. Figure 8 is an algorithm time efficiency diagram of the multi-frame point cloud registration method for large curved surfaces according to the first embodiment of the present invention, Fig. 9 is a pose graph corresponding to the global pose optimization problem of the multi-frame point cloud registration method for a large surface in the first embodiment of the present invention, Fig.10: is an algorithm flow chart of a multi-frame point cloud registration method for a large curved surface according to a first embodiment of the present invention. The present invention provides a multi-frame point cloud registration method for a large curved surface, comprising the following steps:
[0036] S101, step 1: establishing a loop constraint relationship;
[0037] S102, step 2: solving the relative posture and information matrix according to the loop constraint relationship;
[0038] S103, step 3: constructing a loss function between two point clouds with a constraint relationship;
[0039] S104, step 4: constructing a global loss function;
[0040] S105, step five: using the pose graph to optimize the optimal solution of the global loss function in step four.
[0041] In this embodiment, the present invention aims to solve the technical problems of the lack of features of large surfaces, low registration accuracy and cumulative errors caused by multi-frame point cloud stitching in the process of measuring and solving the point cloud stitching to obtain complete three-dimensional data of the measured surface. An ICP algorithm based on point cloud distance distribution is proposed, which is suitable for point cloud stitching with fewer features, thereby solving the above-mentioned problems of lack of features of large surfaces and low registration accuracy. The loop constraints and optimization graphs of surface consistency constraints are adopted to solve the above-mentioned problem of cumulative errors caused by multi-frame point cloud stitching.
[0042] The ICP algorithm based on distance distribution, loop constraints and optimization graphs are used to solve the technical problems of lack of features on large surfaces, low registration accuracy and cumulative errors caused by splicing multi-frame point clouds.
[0043] Among them, the loop constraint relationship in the step one is obtained by directly scanning the motion trajectory of the robot, that is, when the robot scans the object to obtain the point cloud, each piece of point cloud is calibrated with a serial number, and the scanning starting position and the key position are controlled to partially overlap. The motion trajectory of the robot is: when the robot scans the object to obtain the point cloud, each piece of point cloud is calibrated with a serial number, and the scanning starting position and the key position are controlled to partially overlap.
[0044] Secondly, in the step 2, an ICP algorithm based on distance distribution is used to solve the relative pose and the information matrix. The algorithm idea of the ICP algorithm in the step 2 is: for the point cloud that has been roughly aligned, in each iteration, the distance between the corresponding points aligned together should be small, and the distance between the corresponding points in the non-overlapping area should be large. If the distances of the corresponding points are sorted from small to large, the correct corresponding points should be in the front of the sequence, and the wrong corresponding points should be in the back of the sequence. For the point cloud of a large surface, since the hierarchical local point cloud structure is relatively simple, in a general plane or surface, the distances of the correct corresponding points are similar, that is, the correct corresponding points are concentrated in certain intervals. If these intervals are found, most of the correct corresponding points are found. After finding the correct corresponding points, the set of corresponding points found is used to construct a function, and the Levenberg-Marquardt method is used for optimization to obtain the relative pose and the information matrix.
[0045] Again, the steps for finding the correct corresponding points are as follows:
[0046] Step 1: Find the closest point set. Let the source point cloud be P and the target point cloud be Q. For any point p in P i , we can find its nearest point in Q, denoted as q j , let the distance between them be d i , a i =(p i ,q j ,d i ), we can get the closest point set A = {a i};
[0047] Step 2: Divide the interval to obtain the distance distribution, and set A = {a i The maximum distance and the minimum distance in} are denoted as d max and d min , traverse each element of set A and calculate according to the following formula:
[0048]
[0049] where n∈N + ,n>1, generally set to 100, according to the above formula, the current point pair can be divided into the idx+1th interval. After traversing all elements in set A, the point cloud distance distribution can be obtained;
[0050] Step 3: Find the interval of significant change, record the current interval as i, and the number of points in this interval as N i , when the relationship between the number of points in this interval and the number of points in the previous interval satisfies N i-1 ≥N i×2, it is considered that the number of points in interval i and interval i-1 has changed significantly. If i-1 and the previous intervals are regarded as corresponding points at this time, some correct corresponding points will not be used to construct the loss function. Since the ICP algorithm involves how to ensure optimization from the previous registration transformation to the next better registration transformation, too many correct corresponding points are not used to construct the loss function, which may lead to incorrect convergence. If i and the previous intervals are regarded as corresponding points, it will lead to the introduction of wrong corresponding points.
[0051] Step 4: Use the corresponding points to remove the wrong corresponding points: For the point pair to be judged (p i ,q j ), for q belonging to point cloud Q j , we can find the point cloud P that matches q j The nearest point cloud P k , if the point cloud p i With P k The distance between k is small enough, then p i With q j is a pair of corresponding points, otherwise it is removed.
[0052] At the same time, when the loss function in step 3 is constructed, in order to facilitate the subsequent optimization of the loss function, it is necessary to optimize the Jacobian matrix J of the loss function, that is, e kl Derivative, due to e kl It is a function of the transformation matrix T, and since T is not closed to addition operations, it cannot be differentiated through the derivative definition, so it needs to be differentiated through Lie algebra or perturbation model.
[0053] In addition, the calculation formula of the global loss function in step 4 is:
[0054] J(x)=∑ k,l∈ε e kl (x) T Ω kl -1 e kl (x)
[0055] Among them, posture x=(T1,T2,...,T n ) is the optimization variable, Ω kl is the information matrix, e kl (x) is the loss function indicated in step 3, e is the error between every two point clouds with loop constraints, and the optimization method used when constructing the global loss function in step 4 is the Levenberg-Marquardt method.
[0056] Finally, the pose graph optimization method in step five uses an undirected graph to represent the nonlinear optimization problem. Each node in the graph corresponds to a global measurement pose, and the connecting edge between two nodes corresponds to the relative pose constraint between them. The optimization goal is to find a node configuration that is most consistent with the relative pose constraint established by the edge, that is, to determine the optimal estimate of each global pose given all relative pose constraints.
[0057] When using the multi-frame point cloud registration method for a large surface of this embodiment, first, a loop constraint relationship is established, and T i Represents the global pose of each piece of stitched point cloud, To represent the local relative pose between two adjacent point clouds in space, assume that T n , T i Position relationship Figure 2 As shown, in an ideal situation, the non-adjacent or non-overlapping positions are T n , T i Point clouds have the following relationships:
[0058]
[0059] Among them, in the ideal case, the posture T i The point cloud can be accurately transformed into a pose T through a series of transformations. n In the coordinate system of the point cloud, due to measurement error: T i There is a certain error with the true value, splicing error: There is a certain error with the true value, which makes the above formula (1) not strictly valid. From the above formula (1), it can be seen that the error will continue to accumulate. The more intermediate conversion ΔT there are, the greater the accumulated error and the worse the stitching accuracy. For closed surfaces, the accumulated error will cause the point cloud to be unable to close at the beginning and end, and the measurement model will be obviously distorted.
[0060] To solve this problem, we can do it from two aspects: (1) improve the accuracy of relative position and posture solution, that is, accuracy; (2) using global optimization for the pose of the entire point cloud.
[0061] When n point clouds follow Figure 3 When forming a loop, under ideal conditions, the following formula (2) holds true:
[0062]
[0063] Consider non-ideal situations, that is, consider Is not strictly equal to I, so construct a loss function about ΔT and and optimize it, so that The error between and I is minimized, which can reduce the cumulative error. Therefore, the first step of this scheme is to construct a Figure 3 The loop constraint relationship is essentially a matrix, which explains which two frames of point clouds have an adjacent relationship. The loop constraint relationship of this scheme is derived from the robot's motion trajectory: that is, when the robot scans the object to obtain the point cloud, it calibrates the serial number for each point cloud and controls the partial overlap of the scanning start position and the key position. The paper constructs the adjacency matrix through point cloud adjacency judgment based on point cloud collision detection, and then constructs the loop. The algorithm in the paper is not adopted here mainly based on time considerations, and instead a scanning trajectory that can construct a loop is designed.
[0064] Secondly, according to the loop constraint relationship, the relative posture and information matrix are solved: finding the relative posture constraint of the two postures is to find the solution to the optimization problem.
[0065] min∑||q j -Tp i || 2 =∑||q j -(Rp i +t)|| 2 (3)
[0066] Where p i ,q i Corresponding points are the mappings of the same point on an object on different point clouds. For point clouds that have undergone rough registration, corresponding points are generally points in the overlapping area. From the above formula (3), we can know that the loss function to be optimized is composed of the sum of the distances between the corresponding points. The correctness of the corresponding points directly affects the registration effect.
[0067] The algorithm used in the paper to calculate the relative pose is FOA-IICP. Considering that the FOA-IICP algorithm is time-consuming and the number of point clouds obtained by scanning is large, the proposed ICP algorithm based on distance distribution is used instead.
[0068] Algorithm idea: For the point cloud that has been roughly registered: in each iteration, the distance between the corresponding points that are registered together should be small, and the distance between the corresponding points in the non-overlapping area should be large. If the distances of the corresponding points are sorted from small to large, the correct corresponding points should be at the front of the sequence, and the wrong corresponding points should be at the back of the sequence. For the point cloud of a large surface, since the hierarchical local point cloud structure is relatively simple: for a general plane or surface, the distances of the correct corresponding points are close (such as Figure 4 As shown), that is, the correct corresponding points are concentrated in certain intervals (such as Figure 5 If these intervals are found, most of the correct corresponding points are found.
[0069] exist Figure 4In the figure, the solid lines connecting the upper and lower circles are the correct corresponding points, the dotted lines are the wrong corresponding points, and there is a relationship d1≈d2≈d3<d4<d5
[0070] Among them, follow the following steps to find the correct corresponding points:
[0071] Step 1: Find the closest point set. Let the source point cloud be P and the target point cloud be Q. For any point p in P i , we can find its nearest point in Q, denoted as q j , let the distance between them be d i , a i =(p i ,q j ,d i ), we can get the closest point set A = {a i};
[0072] Step 2: Divide the interval to obtain the distance distribution, and set A = {a i The maximum distance and the minimum distance in} are denoted as d max and d min , traverse each element of set A and calculate according to the following formula:
[0073]
[0074] where n∈N + ,n>1, generally set to 100, according to the above formula, the current point pair can be divided into the idx+1th interval. After traversing all elements in set A, the point cloud distance distribution can be obtained;
[0075] Step 3: Find the interval of significant change, record the current interval as i, and the number of points in this interval as N i , when the relationship between the number of points in this interval and the number of points in the previous interval satisfies N i-1 ≥N i When , it is considered that the number of points in interval i and interval i-1 changes significantly. If the i-1 and the previous intervals are regarded as corresponding points at this time, some correct corresponding points will not be used to construct the loss function (such as Figure 6 As shown in the figure, since the ICP algorithm involves how to ensure that the previous registration transformation is optimized to the next better registration transformation, too many correct corresponding points are not used to construct the loss function, which may lead to incorrect convergence. If the number i and the previous interval are regarded as corresponding points, it will lead to the introduction of incorrect corresponding points (such as Figure 7 As shown), there are many methods to remove the wrong corresponding points. This technical solution adopts: the mutual corresponding point method (such as Figure 8 shown);
[0076] Step 4: Use the corresponding points to remove the wrong corresponding points: For the point pair to be judged (p i ,q j ), for q belonging to point cloud Q j , we can find the point cloud P that matches q j The nearest point cloud P k , if the point cloud p i With P k The distance between k is small enough, then p i With q j is a pair of corresponding points, otherwise it is removed.
[0077] Step 5: Use the corresponding point set found to construct and optimize the loss function according to formula (3), and use the Levenberg-Marquardt method to optimize to obtain the relative pose. The Jacobian form used by the Levenberg-Marquardt method is formula (5).
[0078] Step 6: Determine whether the loop stop condition is met. If it is met, end it; otherwise, return to step 1.
[0079] After finding the corresponding points through the above process, the loss function is constructed according to formula (3) using the corresponding point set found, and the relative pose is obtained by using the Levenberg-Marquardt method for optimization. The loss function is denoted as e(R, t), and the Jacobian form used by the Levenberg-Marquardt method is as follows:
[0080]
[0081] Information MatrixΩ kl It represents the uncertainty of relative pose. In the paper "Research on Point Cloud Stitching Method for Mobile Measurement of Large Surface Robot", the following formula is used to add surface constraints
[0082]
[0083] in For point q i The normal of , then the information matrix Ω kl It can be defined by the following formula
[0084]
[0085] Here I is regarded as a 6*6 identity matrix.
[0086] Since this technical solution does not involve normals, and considering the time efficiency of the algorithm, the following formula is used.
[0087]
[0088] Again, construct the loss function between two point clouds with a constraint relationship:
[0089] Remember T k , T i is a point cloud with constraint relations, T kl is the relative position of the two point clouds. Ideally, the following formula holds:
[0090] T kl =T k -1 T l (9)
[0091] However, due to the measurement error, T kl and T k -1 T will not be strictly equal, so the error between them is recorded as e kl , expressed as the following formula:
[0092]
[0093] In order to facilitate the subsequent optimization of the loss function, the Jacobian matrix J of the loss function is required, that is, kl Derivative, due to e kl It is a function of the transformation matrix T, and since T is not closed to addition operations, it cannot be differentiated by the derivative definition, so it is necessary to differentiate through Lie algebra or perturbation model. In this technical solution, the left perturbation model is used to differentiate, that is, to give the optimization variable T k , T i Add a disturbance term ΔT respectively k ,ΔT l , as follows:
[0094] Convert the perturbation term into Lie algebra representation, that is
[0095] ΔT k =exp(Δξ k ^),ΔT l =exp(Δξ l ^) (11)
[0096] The left perturbation model makes the pose T k ,T l Multiply the corresponding disturbance terms on the left to obtain the following formula (12):
[0097]
[0098] The Baker-Campbell-Hausdorff formula is used for this equation,
[0099]
[0100] To transform multiplication on Lie groups into addition on Lie algebras, we need to use the adjoint property on SE(3), namely:
[0101] exp(ξ^)·T=T·exp((Ad(T -1 )ξ)^) (14)
[0102] So we have:
[0103]
[0104] in, Performing first-order Taylor approximation on the exponential term in the formula, we get the following formula:
[0105]
[0106] Using the BCH approximation, we can get
[0107]
[0108] Derivatively taking this expression yields the Jacobian matrix:
[0109]
[0110] Since the Jacobian matrix represented by the above formula is relatively complex, this technical solution adopts its approximate form:
[0111]
[0112] Then, construct the global loss function: Since there is an error e between every two point clouds with loop constraints, the total error is the sum of all local errors. The least squares method is used here to obtain the global error function:
[0113] J(x)=∑ k,l∈ε e kl (x) T Ω kl -1 e kl (x) (20)
[0114] Among them, the optimization variable is the pose x=(T1,T2,…,T n ),Ω kl is the information matrix, e kl (x) is the loss function indicated in step 3. In the project, the optimization method selected is the Levenberg-Marquardt method.
[0115] Finally, pose graph optimization is used to find the optimal solution to the global loss function in step 4: the pose graph optimization method uses an undirected graph to represent the nonlinear optimization problem. Each node in the graph corresponds to a global measured pose, and the connecting edge between two nodes corresponds to the relative pose constraint between them. The goal of the optimization is to find a node configuration that is most consistent with the relative pose constraints established by the edges, that is, to determine the optimal estimate of each global pose given all relative pose constraints.
[0116] The pose graph corresponding to the global pose optimization problem of this project is Fig. 9 The points in the figure are the variables to be optimized, which are the global poses corresponding to each point cloud, and the line between two points is the local error term.
[0117] In the present invention, the ICP algorithm with truncation ratio:
[0118] In the following scheme effect, the ICP algorithm using truncation ratio optimization is used as a comparison. The algorithm idea is: in each iteration, the distance between the corresponding points that are aligned together should be small, and the distance between the corresponding points in the non-overlapping area should be large. If the distances of the corresponding points are sorted from small to large, the correct corresponding points should be at the beginning of the sequence, and the wrong corresponding points should be at the end of the sequence.
[0119] Therefore, we can set a fixed cutoff ratio τ to remove the wrong corresponding points. The details are as follows: Let the number of points in the source point cloud P be N, for any point p in P k can find its nearest point q in Q k , let the distance between them be d k , sort the distances obtained in this way, assuming that the Euclidean distances between corresponding points after sorting are d from small to large i (i=1,…,N), then the cutoff distance can be calculated as d threshold =d τN According to the d obtained in each cycle threshold . At this time, the distance between the points is greater than d threshold As incorrect corresponding points, the point pairs with distance greater than d threshold It can be regarded as the correct corresponding point.
[0120] After the above steps, the corresponding points are obtained to construct the loss function form (3).
[0121] In terms of optimization method, the ICP algorithm with truncated ratio used for comparison adopts the Levenberg-Marquardt method, and the required Jacobian matrix form is the same as that of the proposed algorithm, which is formula (5).
[0122] The multi-frame point cloud registration method for a large surface adopted in the present invention can be simply understood as: based on the ICP algorithm and pose graph optimization of the point cloud distance distribution, the splicing of large surface point clouds can be completed without the need for additional coded or non-coded landmark points. At the same time, compared with the traditional ICP method + graph optimization splicing method, the point cloud spliced by the present invention is smoother and has higher precision; compared with the ICP method and pose graph optimization of truncation ratio optimization, the ICP algorithm and pose graph optimization after splicing of the present invention are closer to the true value than the ICP method and pose graph optimization method of truncation ratio optimization, which means that the present invention is not easy to cause shrinkage of the spliced surface.
[0123] To summarize, the present invention aims to solve the technical problems of lack of features of large surfaces, low registration accuracy and cumulative errors caused by multi-frame point cloud splicing in the process of measuring and solving the problem of obtaining complete three-dimensional data of the measured surface through point cloud splicing. An ICP algorithm based on point cloud distance distribution is proposed, which is suitable for point cloud splicing with fewer features, thereby solving the above-mentioned problems of lack of features of large surfaces and low registration accuracy. The loop constraints and optimization graphs of surface consistency constraints are adopted to solve the above-mentioned problem of cumulative errors caused by multi-frame point cloud splicing.
[0124] What is disclosed above is only one or more preferred embodiments of the present application, and cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A multi-frame point cloud registration method for a large surface, characterized in that: The following steps are involved: Step 1: Establish loop constraint relationship; Step 2: Solve the relative pose and information matrix according to the loop constraint relationship; Step 3: Construct a loss function between two point clouds with a constraint relationship; Step 4: Construct a global loss function; Step 5: Use the pose graph to optimize the optimal solution of the global loss function in step 4.
2. The multi-frame point cloud registration method for a large curved surface as claimed in claim 1, characterized in that: The loop constraint relationship in step 1 is obtained by directly scanning the motion trajectory of the robot, that is, when the robot scans the object to obtain the point cloud, each point cloud is calibrated with a serial number, and the scanning starting position and the key position are controlled to partially overlap.
3. The multi-frame point cloud registration method for a large curved surface as claimed in claim 1, characterized in that: In the step 2, an ICP algorithm based on distance distribution is used to solve the relative posture and the information matrix.
4. The multi-frame point cloud registration method for a large curved surface as claimed in claim 3, characterized in that: The algorithm idea of the ICP algorithm in the step 2 is: for the point cloud that has been roughly aligned, in each iteration process, the distance between the corresponding points aligned together should be small, and the distance between the corresponding points in the non-overlapping area should be large. If the distances of the corresponding points are sorted from small to large, the correct corresponding points should be in the front of the sequence, and the wrong corresponding points should be in the back of the sequence. For the point cloud of a large surface, since the hierarchical local point cloud structure is relatively simple, in a general plane or surface, the distances of the correct corresponding points are similar, that is, the correct corresponding points are concentrated in certain intervals. If these intervals are found, most of the correct corresponding points are found. After finding the correct corresponding points, the set of corresponding points found is used to construct a function, and the Levenberg-Marquardt method is used for optimization to obtain the relative pose and the information matrix.
5. The multi-frame point cloud registration method for a large curved surface as claimed in claim 1, characterized in that: When constructing the loss function in step 3, in order to facilitate the subsequent optimization of the loss function, it is necessary to optimize the Jacobian matrix J of the loss function, that is, e kl Derivative, due to e kl It is a function of the transformation matrix T, and since T is not closed to addition operations, it cannot be differentiated through the derivative definition, so it needs to be differentiated through Lie algebra or perturbation model.
6. The multi-frame point cloud registration method for a large curved surface as claimed in claim 1, characterized in that: The calculation formula of the global loss function in step 4 is: J(x)=∑k,l∈ε e kl (x) TΩkl-1 e kl (x) Among them, posture x=(T1,T2,…,T n ) is the optimization variable, Ω kl is the information matrix, e kl (x) is the loss function noted in step 3, and e is the error between every two point clouds with loop closure constraints.
7. The multi-frame point cloud registration method for a large curved surface as claimed in claim 1, characterized in that: The pose graph optimization method in step five uses an undirected graph to represent the nonlinear optimization problem. Each node in the graph corresponds to a global measurement pose, and the connecting edge between two nodes corresponds to the relative pose constraint between them. The optimization goal is to find a node configuration that is most consistent with the relative pose constraint established by the edge, that is, to determine the optimal estimate of each global pose given all relative pose constraints.
Citation Information
Patent Citations
Precise splicing method of large complex curved surface multi-view scanning point cloud
CN112132752A
Multi-view point cloud registration method based on K-means clustering center local curved surface projection
CN113610903A
Cited By
Graph optimization three-dimensional measurement method and system based on adaptive multi-attribute weighting
CN122780344A
