Mapping method for improving loopback detection and correction based on LIO-SAM

By using the combined method of LinK3D and BoW3D in LIO-SAM to generate feature descriptors and perform loop closure detection, it solves the problem of cumulative error and lack of features in LIO-SAM mapping and positioning in long distances and large scenes, and improves loop closure detection. Performance and mapping effects.

CN118570331AInactive Publication Date: 2024-08-30SHANGHAI UNIV OF ENG SCI
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410693563.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

LIO-SAM's mapping and positioning in long distances and large scenes has problems with cumulative errors and few features, resulting in poor performance in loop detection and correction.

Method used

LinK3D is used to extract features from lidar data, generate feature descriptors containing distance and direction information, and combine it with the BoW3D algorithm for loop closure detection. By calculating word frequency and reverse index, the connection between the current frame and the loop closure frame is established, the loop closure factor is generated, and the integration Global optimization in factor graphs.

Benefits of technology

It improves the performance of feature extraction and loop closure detection, enhances the mapping effect, reduces cumulative errors, and improves the accuracy and robustness of the SLAM system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570331A
    Figure CN118570331A
Patent Text Reader

Abstract

The invention relates to a mapping method for improving loopback detection and correction based on LIO-SAM, and the method comprises the steps: carrying out the feature extraction of original laser radar data through LinK3D, and generating a feature descriptor comprising distance and direction information, and a laser radar ranging factor through employing the extracted key points; performing pre-integration on the original IMU data based on the extracted key points by using LIO-SAM to generate a pre-integration factor; a BoW3D algorithm is adopted, a feature descriptor is used for constructing words, the relation between a current frame and a loopback frame is established by calculating word frequency and reverse indexes, the pose is corrected in real time according to a loopback detection result, and a loopback factor is generated; a laser radar ranging factor, a loopback factor, an IMU pre-integration factor and a GPS factor are fused into a factor graph to increase constraints on a pose and a map, and mapping and positioning are completed through optimization. Compared with the prior art, the method has the advantages that the feature extraction and loopback detection performance is effectively improved, and a better mapping effect is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to laser SLAM technology, and in particular to a mapping method based on LIO-SAM improved loop detection and correction. Background Art

[0002] Feature extraction and matching as well as loop detection are crucial in simultaneous localization and mapping (SLAM) systems. In large scene environments, due to problems such as cumulative errors and few road features, some advanced SLAM algorithms cannot solve the mapping problem better, and SLAM algorithms that do not include loop detection will not be considered.

[0003] The LinK3D method aggregates edge key points and projects them onto a two-dimensional plane to construct feature descriptors containing distance and direction information. The similarity between descriptors is used to accelerate point-to-point matching. The features of LinK3D are highly distinctive, which improves the matching efficiency, speeds up the calculation of the LIO-SAM laser radar ranging factor, and provides a basis for BoW3D loop detection.

[0004] BoW3D uses feature descriptors to construct words, calculates word frequencies and reverse indices to establish the connection between the current frame and the loop frame, and performs real-time correction of the pose based on the loop detection results. The resulting loop pose is added to the factor graph of LIO-SAM as a loop factor to perform global optimization of the entire system.

[0005] LIO-SAM is an algorithm for simultaneous localization and mapping (SLAM) using lidar sensor data. It combines odometer estimation and map construction in an optimization framework to achieve accurate and efficient mapping of the environment. It uses techniques such as scan and map matching and loop detection to improve the accuracy and robustness of the SLAM system. The algorithm is widely used in fields such as robotics and autonomous driving for real-time map construction and positioning, and has the advantages of good real-time performance, high-precision positioning and mapping effects, and low computational complexity. Although LIO-SAM has advantages in many aspects, there are still many problems in mapping and positioning over long distances and large scenes. Summary of the invention

[0006] The purpose of the present invention is to overcome the many problems that still exist in the mapping and positioning of the above-mentioned LIO-SAM in long-distance and large-scale scenes, and to provide a mapping method based on LIO-SAM with improved loop detection and correction parts.

[0007] The purpose of the present invention can be achieved by the following technical solutions:

[0008] A mapping method based on LIO-SAM to improve loop detection and correction, the method steps comprising:

[0009] LinK3D is used to extract features from the original lidar data, and the extracted key points are used to generate feature descriptors including distance and direction information and lidar range factors;

[0010] LIO-SAM is used to pre-integrate the original IMU data based on the extracted key points to generate pre-integration factors;

[0011] The BoW3D algorithm is used to construct words using feature descriptors. The connection between the current frame and the loop frame is established by calculating the word frequency and reverse index. The posture is corrected in real time according to the loop detection results to generate the loop factor.

[0012] The lidar odometry factor, loop closure factor, IMU pre-integration factor and GPS factor are integrated into the factor graph to add constraints and optimize the pose and map to complete mapping and positioning.

[0013] As a preferred technical solution, the feature extraction of the original laser radar data using LinK3D is as follows:

[0014] For the original LiDAR data, the point cloud is divided into edge points and plane points according to the local surface smoothness;

[0015] Remove the gradient from the extracted edge points Edge points greater than the threshold;

[0016] Taking the origin of the coordinate system as the center, the plane is evenly divided into multiple sector-shaped areas, the points in each sector-shaped area are clustered, and the centroid of the cluster points in each area is calculated as the aggregation key point.

[0017] As a preferred technical solution, the feature descriptor generation steps are as follows:

[0018] Rotate and map all aggregated key points onto a two-dimensional plane;

[0019] With key point k 0 As the center, the two-dimensional plane is evenly divided at a set angle interval. Each sector area corresponds to the corresponding dimension of a descriptor. In each sector, the distance k is searched. 0 The nearest keypoint k 1 ;

[0020] The direction of the descriptor is expressed as the direction from the central key point k 0 To the nearest key point k 1 The direction vector of

[0021] The dimension value of the descriptor is represented by the center key point k 0 To the nearest key point k in each sector 1If there is no key point in the sector, the dimension value is 0.

[0022] As a preferred technical solution, the angle calculation process of each dimension value of the descriptor is:

[0023] According to the central key point k 0 To the nearest key point k in the sector i Direction of (i≠1) and main direction The angle between them determines k i Which sector it belongs to? The angle calculation formula is:

[0024]

[0025] As a preferred technical solution, when generating the descriptor, multiple nearest key points are selected in each sector, and multiple corresponding descriptors are calculated;

[0026] Set the priorities of multiple descriptors, calculate the distance from each key point to the central key point, set the priority of each descriptor, and obtain the value of each dimension of the final descriptor, that is, the dimension value of the descriptor with the closest corresponding distance.

[0027] As a preferred technical solution, the laser radar range factor is generated by using the extracted key points, as follows:

[0028] Aggregate all edge key points extracted at time i and plane aggregation key points Composing a radar frame

[0029] When the robot posture changes from the previous state node x i When the comparison exceeds the threshold, radar frame F is selected i+1 As a key frame, key frame F i+1 With the new state node x i+1 Phase mapping;

[0030] The current voxel sub-keyframe and the historical sub-keyframe are scanned and matched. According to the matching results, the state nodes of the corresponding matching frames are relatively transformed to generate the lidar range factor.

[0031] As a preferred technical solution, when the factor graph introduces the state node x i+1 , the corresponding key frame is F i+1 , the steps to generate the lidar range factor are as follows:

[0032] Based on the historical LiDAR scan data, a point cloud map is constructed, and the n nearest sub-keyframes are extracted. i-n ,…,F i}Transform to the W coordinate system to obtain a voxel map M i , the voxel map M i Contains edge feature voxel map and plane feature voxel map

[0033] Keyframe Convert the coordinate system to get the current voxel sub-keyframe

[0034] Scan and match the current voxel sub-keyframe and the historical sub-keyframe to find and For each feature in , the corresponding historical edge feature voxel sub-keyframe and plane feature voxel sub-keyframe are obtained;

[0035] According to the matching results, the Gauss-Newton method is used to solve the optimal transformation by minimization to obtain the matched historical sub-keyframe state node x i and the current voxel sub-keyframe state node x i+1 The relative transformation ΔT i,i+1 , and added to the factor graph as a lidar odometry factor.

[0036] As a preferred technical solution, the use of LIO-SAM to pre-integrate the original IMU data to generate the pre-integration factor is as follows:

[0037] Use the geometric relationship between feature points and the original IMU data to estimate the motion increment and calculate the IMU measurement value;

[0038] Pre-integrate the IMU measurement values ​​to obtain relative motion measurement values;

[0039] The relative motion measurements between the two intervals of the robot are added to the factor graph as IMU pre-integration factors.

[0040] As a preferred technical solution, the BoW3D algorithm is used to process the feature descriptor generated by LinK3D, and finally a loop closure factor is generated, which is as follows:

[0041] The similarity between the loop frame and the current frame is calculated based on the dimension value and angle value of the corresponding dimension of the feature descriptor. When the similarity threshold is exceeded, it is considered that a loop is detected.

[0042] In the BoW3D module, words and dictionaries are constructed based on feature descriptors, and the dictionary records all positions of words;

[0043] A word consists of two parts: the non-zero dimension value of the corresponding dimension of the descriptor and the corresponding dimension of the descriptor where the word is located; the composition of the word position includes: the point cloud frame ID and the descriptor ID in the frame;

[0044] Retrieve the word and calculate the frequency of the word in each position. If the highest value is greater than the frequency threshold Th f , then the position is considered as a candidate position, and the inverse text frequency is used to prevent the retrieval of extremely high frequency words;

[0045] The word candidate positions form a set, and the set between the two frame point clouds is compared to establish the connection between the current frame c and the loop frame l, and obtain the estimation of the loop frame l and the current frame c;

[0046] Transform the loop frame l and the estimate of the current frame c in the world reference coordinate system;

[0047] Scan-match the converted loop frame l with the estimate of the current frame c to obtain the relative transformation ΔT l,c Introduced into the factor graph as a loop factor.

[0048] As a preferred technical solution, the constraints are added through graph optimization to finally complete the mapping and positioning, as follows:

[0049] The constraints and relationships between nodes are represented by the generated lidar odometry factor, pre-integration factor, generated loop factor, and GPS factor. GTSAM is used to iteratively optimize the node states of the factor graph so that the constraints of the entire factor graph are met. The historical frame point cloud is aligned through the ICP algorithm and integrated into the global map.

[0050] Compared with the prior art, the present invention has the following beneficial effects:

[0051] Compared with the prior art, the present invention provides a method for integrating LIO-SAM with LinK3D and BoW3D, so as to optimize the effect of LIO-SAM in feature extraction and loop detection. The LinK3D method aggregates edge key points and projects them to a two-dimensional plane, constructs feature descriptors containing distance and direction information, and accelerates point-to-point matching through the similarity between descriptors. The features of LinK3D have high distinctiveness, improve matching efficiency, speed up the calculation of LIO-SAM laser radar ranging factors, and provide a basis for BoW3D loop detection. BoW3D uses feature descriptors to construct words, establishes the connection between the current frame and the loop frame by calculating word frequency and reverse index, and corrects the posture in real time according to the loop detection result. The obtained loop posture is added to the factor graph of LIO-SAM as a loop factor to globally optimize the entire system. Without reducing the accuracy of the SLAM system, the feature extraction and loop detection performance are effectively improved, and a better mapping effect is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a basic flow chart of the method of the present invention.

[0053] Figure 2 The overall framework diagram of the present invention

[0054] Figure 3 It is a sub-dimension value determination diagram describing the present invention;

[0055] Figure 4 This is a comparison chart of the effects of the mapping algorithm of the present invention. DETAILED DESCRIPTION

[0056] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0057] Example 1

[0058] As one of the embodiments of the present invention, this example provides an improved loop detection and correction method based on LIO-SAM. The basic process is as follows: Figure 1 The present invention is based on LinK3D feature extraction and BoW3D bag-of-words loop closure, and uses a method of integrating LIO-SAM with LinK3D and BoW3D to optimize the effect of LIO-SAM in feature extraction and loop closure detection, and improves the feature extraction and loop closure detection performance without reducing the accuracy of the SLAM system, so as to achieve better mapping effect.

[0059] Figure 2 The overall framework diagram of the solution example is as follows: based on LinK3D feature extraction, feature descriptors and lidar odometry factors are generated; LIO-SAM is used to pre-integrate the original IMU data, and finally the pre-integration factors are generated; BoW3D loop detection processes the feature descriptors generated by LinK3D to generate loop factors. The lidar odometry factor, loop factor, IMU pre-integration factor, and GPS factor are integrated into the factor graph to add constraints and optimize the pose and map, thereby obtaining a more accurate global pose and map estimate. The specific steps of the process are as follows:

[0060] Step 1: Use LinK3D to extract features from the original lidar data, and use the extracted key points to generate feature descriptors and lidar range factors;

[0061] Step 1.1: Edge point extraction: According to the local surface smoothness, the point cloud is divided into edge points and plane points. Given a laser scanning frame P c , let i be P c A point in s is a set of continuous points on the same laser radar beam as point i, and is evenly distributed on both sides of i;

[0062] Step 1.2: Aggregate edge key points: There are many gradients of points in the extracted edge points Greater than threshold Because it is unstable, it is removed. Through the key point aggregation algorithm, the angle information is used to accelerate the aggregation process. With the origin of the coordinate system as the center, the plane is evenly divided into multiple sector areas, and then the points in each sector area are clustered, and the centroid of the cluster points in each area is calculated, which is the aggregation key point;

[0063] Step 1.3: Rotate and map all the aggregated key points onto a two-dimensional plane to reduce the impact of uneven distribution of the aggregated key points along the vertical direction. 0 As the center, the plane is evenly divided at intervals of 2°, and each sector area corresponds to the corresponding dimension of a descriptor. The direction of the descriptor is represented by the direction from the central key point k 0 To the nearest key point k 1 The direction vector of . In each sector, search for distance k 0 The nearest key point. The dimension value of the descriptor is expressed as the distance between the central key point and the nearest key point in each sector. If there is no key point in the sector, the dimension value is 0.

[0064] The angle calculation process of each dimension value of the descriptor is as follows: from the central key point k 0 To the nearest key point k in the sector i The direction (i≠1) is expressed as according to and main direction The angle between them determines k i Which sector it belongs to? The angle calculation formula is:

[0065]

[0066] The feature descriptor obtained in this way is used in the subsequent loop detection module of BoW3D.

[0067] When the descriptor is generated, it is very sensitive to the nearest key point. When there is interference from outliers, the generated descriptor will affect the subsequent matching process. In order to solve the above problems, such as Figure 3 As shown in , select the three nearest key points and calculate the corresponding three descriptors. Figure 3 , Des1 represents the nearest key point, and Des3 represents the third nearest key point. Set the priority of the three descriptors, and the judgment basis is the distance from the three key points to the central key point. According to the above judgment basis, each dimension value in the final descriptor is the dimension value of the corresponding nearest descriptor. Figure 3 As shown in the dashed box, Des1 has dimension values Since Des1 has a high priority, the dimension value of Des1 in the final descriptor is also set to The values ​​of Des2 and Des3 are as follows Figure 3 Shown in the dashed box.

[0068] Step 1.4: The edge and plane aggregation key points extracted at time i are called time i features, which are expressed as and All features extracted at time i constitute a radar frame When the robot posture changes from the previous state node x i When the comparison exceeds the threshold, radar frame F is selected i+1 As a key frame. The new key frame F i+1 With the new state node x i+1 Phase mapping, the frames between two frames are discarded.

[0069] Step 1.5: Scan and match the current voxel sub-keyframe and the historical sub-keyframe. According to the matching results, relatively transform the state nodes of the corresponding matching frames to generate the lidar range factor.

[0070] When the factor graph introduces the state node x i+1 , the corresponding frame is F i+1 The steps to generate the LiDAR odometry factor are as follows:

[0071] First, the recent historical LiDAR scan data is constructed into a point cloud map using a sliding window method. The n most recent sub-keyframes are extracted and {T i-n ,…,T i}Set the child keyframe set {F i-n ,…,F i}Transform to the W coordinate system to obtain a voxel map M i . M i Contains two sub-voxel maps: edge feature voxel map and plane feature voxel map

[0072] Secondly, scan and match the current voxel sub-keyframe and the historical sub-keyframe; transform the coordinate system of the current keyframe (B→W), Get the current voxel sub-keyframe turn up and Each feature in the , and get the corresponding historical edge feature voxel sub-keyframe and plane feature voxel sub-keyframes

[0073] Finally, according to the matching results, the state node of the corresponding matching frame is relatively transformed, and the Gauss-Newton method is used to solve the optimal transformation by minimization to obtain the matched historical sub-key frame state node x i and the current voxel sub-keyframe state node x i+1 The relative transformation ΔT i,i+1 , and added to the factor graph as a lidar odometry factor.

[0074] Step 2: Use LIO-SAM to pre-integrate the raw IMU data and finally generate the pre-integration factor.

[0075] Step 2.1: The LinK3D part has completed the matching of edge feature points between frames, estimated the motion increment using the geometric relationship between feature points and the original IMU data, and calculated the IMU measurement value;

[0076] Step 2.2: Pre-integrate the IMU measurement value to obtain the relative motion measurement value. Specifically, pre-integrate the IMU measurement value to obtain the relative object motion between the two intervals. The relative motion measurement value is the pre-integrated measurement value. Pre-integrated measurement value ΔV between time i and j ij , ΔP ij and ΔR ij It can be calculated as follows:

[0077]

[0078] Step 2.3: Add the relative motion measurements between the two intervals of the robot to the factor graph as IMU pre-integration factors.

[0079] Step 3: Use the BoW3D algorithm to process the feature descriptor generated by LinK3D and finally generate the loop closure factor.

[0080] Step 3.1: The feature descriptor obtained by LinK3D feature extraction is input into the BoW3D module for processing. Loop correction is performed in the BoW3D module. The similarity between the loop frame and the current frame is calculated based on the dimension value and angle value of the corresponding dimension of the feature descriptor. If the similarity exceeds the threshold, it is considered that a loop is detected.

[0081] Step 3.2: In the BoW3D module, construct words and dictionaries based on feature descriptors. The dictionary records all word positions. Words are composed of two parts: one is the non-zero dimension value of the corresponding dimension of the descriptor; the other is the corresponding dimension of the descriptor where the word is located. The composition of the word position: one is the point cloud frame ID; the other is the descriptor ID in the frame;

[0082] Step 3.3: Retrieve the word and calculate the frequency of the word in each position. If the highest value is greater than the frequency threshold Thf , then the position is considered as a candidate position. For fast retrieval, the inverse document frequency (IDF) is used to prevent the retrieval of extremely high frequency words (low distinctiveness);

[0083] Step 3.4: The word candidate positions are formed into a set, and the set between the two frame point clouds is compared to establish the connection between the current frame c and the loop frame l, and the estimation of the loop frame l and the current frame c is obtained;

[0084] Step 3.5: Transform the estimated loop frame l and the current frame c in the world reference coordinate system;

[0085] Step 3.6: Scan-match the converted loop frame l with the estimate of the current frame c to obtain the relative transformation ΔT l,c , which is the loop factor, and is introduced into the factor graph.

[0086] Step 4: Add the GPS factor to the generated factors, add constraints through graph optimization, and finally complete the map construction and positioning. The factors in the factor graph represent the constraints and relationships between nodes. Use GTSAM to iteratively optimize the node status of the factor graph so that the constraints of the entire factor graph are satisfied, thereby obtaining more accurate robot pose and map estimation results. And through the ICP algorithm, the historical frame point cloud is registered and integrated into the global map.

[0087] Figure 4 The figure shows the effect comparison of the method examples. A is the mapping result of the method example of the present invention, B is the LIO-SAM mapping result of the same position, and C is the global mapping result of the method example. According to the comparative analysis of the mapping effect, the method is superior to LIO-SAM in eliminating cumulative errors and loop detection and correction, and has better loop performance.

[0088] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A mapping method based on LIO-SAM to improve loop detection and correction, characterized in that: The method steps include: LinK3D is used to extract features from the original lidar data, and the extracted key points are used to generate feature descriptors including distance and direction information and lidar range factors; LIO-SAM is used to pre-integrate the raw IMU data based on the extracted key points to generate pre-integration factors; The BoW3D algorithm is used to construct words using feature descriptors. The connection between the current frame and the loop frame is established by calculating the word frequency and reverse index. The posture is corrected in real time according to the loop detection results to generate the loop factor. The lidar odometry factor, loop closure factor, IMU pre-integration factor and GPS factor are integrated into the factor graph to add constraints and optimize the pose and map to complete mapping and positioning.

2. According to claim 1, a mapping method based on LIO-SAM improved loop detection and correction is characterized in that: The use of LinK3D to extract features from the original laser radar data is as follows: For the original LiDAR data, the point cloud is divided into edge points and plane points according to the local surface smoothness; Remove the gradient from the extracted edge points Edge points greater than the threshold; With the origin of the coordinate system as the center, the plane is evenly divided into multiple sector-shaped areas, the points in each sector-shaped area are clustered, and the centroid of the cluster points in each area is calculated as the aggregation key point.

3. According to claim 2, a mapping method based on LIO-SAM improved loop detection and correction is characterized in that: The steps of generating the feature descriptor are as follows: Rotate and map all aggregated key points onto a two-dimensional plane; Taking the key point k0 as the center, the two-dimensional plane is evenly divided at a set angle interval. Each sector area corresponds to the corresponding dimension of a descriptor. In each sector, the key point k1 closest to k0 is searched. The direction of the descriptor is represented as the direction vector from the central key point k0 to the nearest key point k1; The dimension value of the descriptor is expressed as the distance between the central key point k0 and the nearest key point k1 in each sector. If there is no key point in the sector, the dimension value is 0.

4. According to claim 3, a mapping method based on LIO-SAM improved loop detection and correction is characterized in that: The angle calculation process of each dimension value of the descriptor is: According to the distance from the central key point k0 to the nearest key point k in the sector i Direction of (i≠1) and main direction The angle between them determines k i Which sector it belongs to? The angle calculation formula is:

5. The mapping method based on LIO-SAM improved loop detection and correction according to claim 4, characterized in that: When generating the descriptor, a plurality of nearest key points are selected in each sector, and a plurality of corresponding descriptors are calculated; Set the priorities of multiple descriptors, calculate the distance from each key point to the central key point, set the priority of each descriptor, and obtain the value of each dimension of the final descriptor, that is, the dimension value of the descriptor with the closest corresponding distance.

6. The mapping method based on LIO-SAM improved loop detection and correction according to claim 2, characterized in that: The laser radar range factor is generated by using the extracted key points as follows: Aggregate all edge key points extracted at time i and plane aggregation key points Composing a radar frame When the robot posture changes from the previous state node x i When the comparison exceeds the threshold, select the radar frame Fi i+1 As a key frame, the key frame Fi i+1 With the new state node x i+1 Phase mapping; The current voxel sub-keyframe and the historical sub-keyframe are scanned and matched. According to the matching results, the state nodes of the corresponding matching frames are relatively transformed to generate the lidar range factor.

7. The mapping method based on LIO-SAM improved loop detection and correction according to claim 6, characterized in that: When the factor graph introduces the state node x i+1 , the corresponding key frame is F i+1 , the steps to generate the lidar range factor are as follows: Based on the historical LiDAR scan data, a point cloud map is constructed, and the n nearest sub-keyframes are extracted. i-n ,…,F i }Transform to the W coordinate system to obtain a voxel map M i , the voxel map M i Contains edge feature voxel map and plane feature voxel map Keyframe Convert the coordinate system to get the current voxel sub-keyframe Scan and match the current voxel sub-keyframe and the historical sub-keyframe to find and For each feature in , the corresponding historical edge feature voxel sub-keyframe and plane feature voxel sub-keyframe are obtained; According to the matching results, the Gauss-Newton method is used to solve the optimal transformation by minimization to obtain the matched historical sub-keyframe state node x i and the current voxel sub-keyframe state node x i+1 The relative transformation ΔT i,i+1 , and added to the factor graph as a lidar odometry factor.

8. The mapping method based on LIO-SAM improved loop detection and correction according to claim 1, characterized in that: The use of LIO-SAM to pre-integrate the original IMU data and generate the pre-integration factor is as follows: Use the geometric relationship between feature points and the original IMU data to estimate the motion increment and calculate the IMU measurement value; Pre-integrate the IMU measurement values ​​to obtain relative motion measurement values; The relative motion measurements between the two intervals of the robot are added to the factor graph as IMU pre-integration factors.

9. The mapping method based on LIO-SAM improved loop detection and correction according to claim 1, characterized in that: The BoW3D algorithm is used to process the feature descriptor generated by LinK3D, and finally a loop closure factor is generated, which is as follows: The similarity between the loop frame and the current frame is calculated based on the dimension value and angle value of the corresponding dimension of the feature descriptor. When the similarity threshold is exceeded, it is considered that a loop is detected. In the BoW3D module, words and dictionaries are constructed based on feature descriptors, and the dictionary records all positions of words; A word consists of two parts: the non-zero dimension value of the corresponding dimension of the descriptor and the corresponding dimension of the descriptor where the word is located; the composition of the word position includes: the point cloud frame ID and the descriptor ID in the frame; Retrieve the word and calculate the frequency of the word in each position. If the highest value is greater than the frequency threshold Th f , then the position is considered as a candidate position, and the inverse text frequency is used to prevent the retrieval of extremely high frequency words; The word candidate positions form a set, and the set between the two frame point clouds is compared to establish the connection between the current frame c and the loop frame l, and obtain the estimation of the loop frame l and the current frame c; Transform the loop frame l and the estimate of the current frame c in the world reference coordinate system; Scan-match the converted loop frame l with the estimate of the current frame c to obtain the relative transformation ΔT l,c Introduced into the factor graph as a loop factor.

10. The mapping method based on LIO-SAM improved loop detection and correction according to claim 1, characterized in that: The above mentioned graph optimization adds constraints to finally complete the mapping and positioning, as follows: The constraints and relationships between nodes are represented by the generated lidar odometry factor, pre-integration factor, generated loop factor, and GPS factor. GTSAM is used to iteratively optimize the node states of the factor graph so that the constraints of the entire factor graph are met. The historical frame point cloud is aligned through the ICP algorithm and integrated into the global map.

Citation Information

Cited By

  • Map generation method

    CN122134816A