Multi-sensor fusion factor graph optimization high-precision mapping technology based on plane constraint
By using multi-sensor fusion factor graph optimization technology based on plane constraints in driverless driving, combined with IMU pre-integration, lidar odometry, GPS and loop detection, the problem of cumulative errors in large-scale outdoor scenes is solved and high-level performance is achieved. Accurate map construction, reaching a mapping accuracy of 3cm.
Patent Information
- Application Number
- CN202310361953.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-06
- Publication Date
- 2024-10-15
AI Technical Summary
In large-scale outdoor scenes, how to eliminate cumulative errors during the construction of high-precision maps is a key issue, which affects the accuracy of maps in autonomous driving.
Using factor graph optimization technology based on multi-sensor fusion with plane constraints, the global factor graph optimizes high-precision pose estimation and high-precision map construction, combining IMU pre-integration, lidar odometry, GPS, loop detection and plane constraints to eliminate accumulation error to achieve high-precision map construction.
It achieves high-precision mapping, with the mapping accuracy reaching about 3cm, which significantly improves the accuracy of map construction for large-scale outdoor scenes.
Smart Images

Figure CN118776543A_ABST
Abstract
Description
Technical Field
[0001] The present invention proposes a high-precision mapping technology based on factor graph optimization of multi-sensor fusion based on plane constraints, which can realize the construction of high-precision maps of large-scale outdoor scenes and can be applied to the construction of high-precision maps in unmanned driving. Background Art
[0002] High-precision map construction is a key technology for unmanned driving, and the use of multi-sensor fusion information to achieve high-precision map construction has always been a hot research topic in industry and academia. When using multi-sensor fusion information, the information complementarity between different sensors is mainly used to achieve high-precision map construction. However, how to eliminate the accumulated errors in the mapping process is a key issue in achieving high-precision map construction, especially in large-scale outdoor scenes. In order to solve this problem, the present invention integrates different sensor information into factor graph optimization to achieve high-precision pose estimation, thereby achieving high-precision map construction. In addition, in order to eliminate the accumulated errors in the vertical direction, ground information is also integrated into the factor graph optimization to further improve the accuracy of mapping. Summary of the invention
[0003] In the process of building high-precision maps for large-scale scenes, how to eliminate the accumulated errors in the mapping process is a core issue. In order to solve this problem, the present invention proposes a high-precision mapping technology based on multi-sensor fusion factor graph optimization based on plane constraints. Experimental results show that the present invention can achieve high-precision mapping with a mapping accuracy of about 3 cm.
[0004] To achieve the above objectives, the present invention proposes a high-precision mapping technology based on multi-sensor fusion factor graph optimization based on plane constraints. Figure 1 As shown, the present invention mainly includes two processes: high-precision pose estimation based on global factor graph optimization and high-precision map construction. Figure 2 As shown in the figure, during the global factor graph optimization process, lidar, IMU pre-integration, GPS, loop detection and plane constraints are added to the factor graph in the form of factors for joint optimization to achieve high-precision pose estimation.
[0005] (1) High-precision pose estimation based on global factor graph optimization
[0006] W represents the world coordinate system, B represents the carrier coordinate system, and the carrier coordinate system is defined to be consistent with the IMU coordinate system. The state vector of the carrier is defined as follows:
[0007] x=[q T p T v T b T ] T (1)
[0008] Among them, q is the unit quaternion, which can be converted into a rotation matrix R, p is the position vector, v is the velocity, and b is the bias of the IMU, including the acceleration bias b a and angular velocity bias b g . The transformation matrix T = [R|p] represents the transformation from the carrier coordinate system B to the world coordinate system W. In order to estimate the state of the carrier using different sensor information, the state estimation problem is modeled as a maximum a posteriori estimation problem. Compared with the Bayesian network, the factor graph is more suitable for maximum a posteriori estimation. Therefore, the global factor graph is used to estimate the state of the carrier with high precision. In the process of constructing the global factor graph, five factors are introduced: IMU pre-integration, lidar odometer, GPS, loop detection and plane constraint.
[0009] AIMU Pre-integration
[0010] IMU outputs angular velocity and acceleration, where the acceleration includes gravity acceleration. The measurement model is shown in formula (2) and formula (3):
[0011]
[0012]
[0013] in, and Represents the original angular velocity and acceleration readings of the IMU in its own coordinate system, and they are subject to the slowly transformed bias b k Impact and white noise k Influence. represents the transformation from the world coordinate system W to the carrier coordinate system B, and represents the constant gravitational acceleration in the world coordinate system W [0 0 9.81] T By integrating the IMU measurements, the velocity, position, and rotation of the carrier at time k+1 can be obtained. In the integration process, it is assumed that the angular velocity and acceleration in the time [k k+1] are constants. The integration formulas are shown in formulas (4), (5), and (6):
[0014]
[0015]
[0016]
[0017] in,
[0018] IMU integration is based on the initial posture at the previous moment. When the posture changes each time after optimization, the IMU integration needs to be recalculated. In the process of incorporating IMU information into factor graph optimization, it is obvious that the amount of calculation using IMU integration is too large, so IMU pre-integration is used. The calculation of IMU pre-integration is decoupled from the initial posture and is only related to the IMU reading, as shown in formulas (7), (8) and (9):
[0019]
[0020]
[0021]
[0022] If the IMU bias changes, the IMU pre-integration can be adjusted according to formula (10), formula (11) and formula (12):
[0023]
[0024]
[0025]
[0026] in, Represents the Jacobian matrix of the pre-integrated term for the IMU bias.
[0027] Therefore, according to the pre-integration of IMU, the residual term of IMU is constructed as shown in formula 13:
[0028]
[0029] in, and Represents the pre-integrated position, velocity and speed measurement values. In addition, based on the results of IMU pre-integration, the laser radar point cloud frame can be distorted, such as Figure 3 shown.
[0030] B Lidar Odometry
[0031] When a new frame of lidar data is received, the smoothness of each point is calculated according to formula (14), as follows:
[0032]
[0033] in, is the coordinate of the current point i, s is the set of n points adjacent to the current point i, is the coordinate of the spatial point j in the set s. According to the calculated smoothness, the spatial points with smoothness greater than a certain threshold are classified as edge points, and the spatial points with smoothness less than a certain threshold are classified as plane points. and Respectively represent the edge points and plane points of the laser radar frame at time k, and use Represents the feature points of the lidar frame at time k.
[0034] When constructing the global factor graph, if each frame of LiDAR data is added to the factor graph, the amount of calculation will be very large. Therefore, key frames are selected based on the distance between the previous and next frames, and the key frames are added to the global factor graph. The n key frames closest to the current key frame are selected and called the sub-key frame set {F k-n ,…,F k}. Convert the feature points of these sub-keyframes to the world coordinate system and use M k Represent these feature points as shown in formula (15):
[0035]
[0036]
[0037]
[0038] in, and Represents the edge points and plane points transformed to the world coordinate system. According to formula (14), the feature points of the laser radar frame at time k+1 are calculated According to the IMU pre-integration predicted pose T k+1 , F k+1 Convert from the carrier coordinate system to the world coordinate system using Represents the feature points of the world coordinate system. Based on the matching relationship, find F' k+1 In M k The corresponding edge points and plane points in . According to the corresponding relationship, calculate F' k+1 and M k The distance between the edge point and the plane point is shown in formulas (16) and (17):
[0039]
[0040]
[0041] Among them, l,u,v and w represent the index of the corresponding point in the feature point set. Middle edge point and is the corresponding point on the edge line. Plane points in and are corresponding points on the plane. Therefore, the distance is minimized and the pose T is optimized. k+1 :
[0042]
[0043] Finally, the relative transformation ΔT is calculated according to formula (19): k,k+1 , and add it to the factor graph as a factor of the lidar odometry.
[0044]
[0045] C loop detection
[0046] Since the global factor graph is constructed, the loop detection module can be seamlessly integrated, such as Figure 2 As shown. For efficiency, the loop detection method based on Euclidean distance is used. When a new node X k+1 When it is added to the factor graph, the node closest to it is found according to the Euclidean distance. Assuming that the node is X3, then F k+1 With keyframe collection {F 3-m ,…,F3,…,F 3+m} matching, and use formulas (16), (17), (18) and (19) to calculate the relative transformation ΔT 3,k+1 , and finally add it to the global factor graph.
[0047] D plane constraint
[0048] In large-scale outdoor scenes, there are many plane information, especially in large-scale outdoor urban scenes. Among the plane information, ground information is very common. Therefore, in those scenes where the ground information is fixed, it is used to eliminate the accumulated error. Assuming that the height of the lidar sensor from the ground is known, first find the ground point based on this height information, and then use RANSAC to fit the plane, such as Figure 4 For each frame of lidar data, the plane information is extracted and then added to the global factor graph, as shown in Figure 2 Assume that the plane coefficient of the ground plane is π0 = [n x n y n z d] T =[0 0 1 0] T , according to the posture T at time k+1 k+1 =[R k+1 |p k+1 ], transform the ground plane to the carrier coordinate system:
[0049] [n' xn' y n' z ] T =R k+1 [n x n y n z ] T (20)
[0050] d'=dp k+1 [n' x n' y n' z ] T (twenty one)
[0051] Among them, π'0=[n' x n' y n' z d'] T Represents the ground plane of the carrier coordinate system. Because the plane has 3 degrees of freedom, it is expressed as:
[0052]
[0053] e=τ(π′0)-τ(π k+1 ) (twenty three)
[0054] Among them, π k+1 Represents the plane information at time k+1.
[0055] E-GPS
[0056] In large-scale outdoor scenes, when the ground is not flat, GPS information is used to eliminate the accumulated error. Because the global factor graph is constructed, GPS data can be easily added to the optimization. The received GPS data is converted to the world coordinate system and the pose T at time k+1 is obtained. k+1 =[R k+1 |p k+1 ] and the GPS position information in the world coordinate system t k+1 Construct the error function as shown in formula (24):
[0057] e=p k+1 -t k+1 (twenty four)
[0058] (2) High-precision map construction
[0059] The input of the high-precision mapping module is the high-precision pose and distortion-corrected point cloud of the current keyframe, such as Figure 1 Assume that the current key frame is at time k, and the key frame set {F k-m ,…,F k-1 ,Fk}Transform to the world coordinate system {F' k-m ,…,F' k-1 ,F' k}. Then {F' k-m ,…,F' k-1 ,F' k} is matched with all feature points in the global map, and the distance from the edge point to the corresponding straight line and the distance from the plane point to the corresponding plane block are calculated using formula (16) and formula (17). Further, according to formula (18), the pose of the current key frame is optimized. Finally, according to the optimized pose, the current key frame is fused with the global map to achieve high-precision mapping. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The present invention is further described below in conjunction with the accompanying drawings and embodiments. The accompanying drawings described below are only some embodiments of the present invention, and for those skilled in the art, other accompanying drawings can be obtained based on the contents of the embodiments of the present invention and these accompanying drawings without creative work.
[0061] Figure 1 This is a flow chart of the high-precision mapping technology based on factor graph optimization of multi-sensor fusion with plane constraints.
[0062] Figure 2 It is a global optimization based on factor graph.
[0063] Figure 3 It is the motion distortion and compensation of LiDAR point cloud.
[0064] Figure 4 It is the ground detection result.
[0065] Figure 5 It is a high-precision map of Wuhan Donggang Science and Technology Industrial Park.
[0066] Figure 6 It is a high-precision map of Xiongan City’s Smart Future Incubator.
[0067] Figure 7 It is a high-precision map of Shanghai's Fangcang Hospital.
[0068] Figure 8 It is a high-precision map of Yaojiadang Park in Jiaxing City.
[0069] Fig. 9 It is a quantitative evaluation of mapping accuracy. DETAILED DESCRIPTION
[0070] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
[0071] The present invention proposes a high-precision mapping technology based on factor graph optimization of multi-sensor fusion with plane constraints. This method can realize high-precision map construction of large-scale outdoor scenes with a mapping accuracy of about 3cm.
[0072] The present invention mainly includes two processes: high-precision pose estimation based on global factor graph optimization and high-precision map construction. The system block diagram is as follows: Figure 1 shown.
[0073] Reference Figure 1 , multiple relative measurement data or absolute measurement data, including lidar, IMU pre-integration, GPS, loop detection and plane constraints, are added to the factor graph in the form of factors for joint optimization. Different factors represent different optimization constraints, and their main purpose is to eliminate the accumulated errors in the mapping process. The high-precision pose and distortion-corrected point cloud are input into the high-precision mapping module to achieve global high-precision map construction.
[0074] Figure 2 The global factor graph is shown, which contains 5 factors: IMU pre-integration factor, lidar odometer factor, loop detection factor, plane constraint factor and GPS factor.
[0075] Figure 3 The LiDAR point cloud motion distortion and compensation are demonstrated.
[0076] Figure 4 Shows the results of plane detection, where red points represent points on the ground.
[0077] Figure 5 , Figure 6 , Figure 7 and Figure 8 The results of high-precision mapping of different large-scale scenes are demonstrated.
[0078] Fig. 9 In the high-precision map of Wuhan Donggang Science and Technology Industrial Park, three areas with obvious features were selected for data sampling to quantitatively evaluate the accuracy of map construction. Fig. 9 It can be seen from the figure that the mapping accuracy of the present invention is about 3 cm.
[0079] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A high-precision mapping technology based on factor graph optimization of multi-sensor fusion based on plane constraints, which mainly includes the following two processes: high-precision pose estimation based on global factor graph optimization and high-precision map construction.
2. The high-precision pose estimation process based on global factor graph optimization according to claim 1 is as follows: W represents the world coordinate system, B represents the carrier coordinate system, and the carrier coordinate system is defined to be consistent with the IMU coordinate system. The state vector of the carrier is defined as follows: x=[q T p T v T b T ] T (1) in, q is a unit quaternion, which can be converted into a rotation matrix R, p is a position vector, v is a velocity, and b is the bias of the IMU, including the acceleration bias b a and angular velocity bias b g . The transformation matrix T = [R|p] represents the transformation from the carrier coordinate system B to the world coordinate system W. In order to estimate the state of the carrier using different sensor information, the state estimation problem is modeled as a maximum a posteriori estimation problem. Compared with the Bayesian network, the factor graph is more suitable for maximum a posteriori estimation. Therefore, the global factor graph is used to estimate the state of the carrier with high precision. In the process of constructing the global factor graph, 5 factors are introduced: IMU pre-integration, lidar odometer, loop detection, plane constraint and GPS.
3. The IMU pre-integration factor according to claim 2, characterized in that: IMU outputs angular velocity and acceleration, where the acceleration includes gravity acceleration. The measurement model is shown in formula (2) and formula (3): in, and Represents the original angular velocity and acceleration readings of the IMU in its own coordinate system, and they are subject to the slowly transformed bias b k Impact and white noise k Influence. represents the transformation from the world coordinate system W to the carrier coordinate system B, and represents the constant gravitational acceleration in the world coordinate system W [0 0 9.81] T By integrating the IMU measurements, the velocity, position, and rotation of the carrier at time k+1 can be obtained. In the integration process, it is assumed that the angular velocity and acceleration in the time [k k+1] are constants. The integration formulas are shown in formulas (4), (5), and (6): in, IMU integration is based on the initial posture at the previous moment. When the posture changes each time after optimization, the IMU integration needs to be recalculated. In the process of incorporating IMU information into factor graph optimization, it is obvious that the amount of calculation using IMU integration is too large, so IMU pre-integration is used. The calculation of IMU pre-integration is decoupled from the initial posture and is only related to the IMU reading, as shown in formulas (7), (8) and (9): If the IMU bias changes, the IMU pre-integration can be adjusted according to formula (10), formula (11) and formula (12): in, Represents the Jacobian matrix of the pre-integrated term for the IMU bias. Therefore, according to the pre-integration of IMU, the residual term of IMU is constructed as shown in formula 13: in, and Represents the measured values of pre-integrated position, velocity and speed. In addition, according to the results of IMU pre-integration, the laser radar point cloud frame can be distorted, as shown in Figure 3.
4. The laser radar odometer factor according to claim 2, characterized in that: When a new frame of lidar data is received, the smoothness of each point is calculated according to formula (14), as follows: in, is the coordinate of the current point i, s is the set of n points adjacent to the current point i, is the coordinate of the spatial point j in the set s. According to the calculated smoothness, the spatial points with smoothness greater than a certain threshold are classified as edge points, and the spatial points with smoothness less than a certain threshold are classified as plane points. and Respectively represent the edge points and plane points of the laser radar frame at time k, and use Represents the feature points of the lidar frame at time k. When constructing the global factor graph, if each frame of LiDAR data is added to the factor graph, the amount of calculation will be very large. Therefore, key frames are selected based on the distance between the previous and next frames, and the key frames are added to the global factor graph. The n key frames closest to the current key frame are selected and called the sub-key frame set {F k-n ,…,F k }. Convert the feature points of these sub-keyframes to the world coordinate system and use M k Represent these feature points as shown in formula (15): in, and Represents the edge points and plane points transformed to the world coordinate system. According to formula (14), the feature points of the laser radar frame at time k+1 are calculated According to the IMU pre-integration predicted pose T k+1 , F k+1 Convert from the carrier coordinate system to the world coordinate system using Represents the feature points of the world coordinate system. Based on the matching relationship, find F' k+1 In M k The corresponding edge points and plane points in the graph. According to the corresponding relationship, calculate F' k+1 and M k The distance between the edge point and the plane point is shown in formulas (16) and (17): Among them, l,u,v and w represent the index of the corresponding point in the feature point set. Middle edge point and is the corresponding point on the edge line. The plane point in and are corresponding points on the plane. Therefore, the distance is minimized and the pose T is optimized. k+1 : Finally, the relative transformation ΔT is calculated according to formula (19): k,k+1 , and add it to the factor graph as a factor of the lidar odometry.
5. The loop detection factor according to claim 2, characterized in that: Since the global factor graph is constructed, the loop detection module can be seamlessly integrated, as shown in Figure 2. For efficiency, the loop detection method based on Euclidean distance is used. k+1 When it is added to the factor graph, the node closest to it is found according to the Euclidean distance. Assuming that the node is X3, then F k+1 With keyframe collection {F 3-m ,…,F3,…,F 3+m } matching, and use formulas (16), (17), (18) and (19) to calculate the relative transformation ΔT 3,k+1 , and finally add it to the global factor graph.
6. The plane constraint factor according to claim 2, characterized in that: In large-scale outdoor scenes, there are many plane information, especially large-scale outdoor urban scenes. Among the plane information, ground information is very common. Therefore, in those scenes where the ground information is fixed, it is used to eliminate the cumulative error. Assuming that the height of the lidar sensor from the ground is known, first find the ground point based on this height information, and then use RANSAC to fit the plane, as shown in Figure 4. For each frame of lidar data, the plane information is extracted and then added to the global factor graph, as shown in Figure 2. Assume that the plane coefficient of the ground plane is π0 = [n x n y n z d] T =[0 0 1 0] T , according to the posture T at time k+1 k+1 =[R k+1 |p k+1 ], transform the ground plane to the carrier coordinate system: [n' x n' y n' z ] T =R k+1 [n x n y n z ] T (20) d'=d-p k+1 [n' x n' y n' z ] T (21) Where v'0 = [n' x n' y n' z d'] T Represents the ground plane of the carrier coordinate system. Because the plane has 3 degrees of freedom, it is expressed as: e=τ(π′0)-τ(π k+1 ) (23) Among them, π k+1 Represents the plane information at time k+1.
7. The GPS factor according to claim 2, characterized in that In large-scale outdoor scenes, when the ground is not flat, GPS information is used to eliminate the accumulated error. Because the global factor graph is constructed, GPS data can be easily added to the optimization. The received GPS data is converted to the world coordinate system and the pose T at time k+1 is obtained. k+1 =[R k+1 |p k+1 ] and the GPS position information in the world coordinate system t k+1 Construct the error function as shown in formula (24): e=p k+1 -t k+1 (24) 8. The high-precision map construction process according to claim 1 is characterized by: The input of the high-precision mapping module is the high-precision pose and distortion-corrected point cloud of the current keyframe, as shown in Figure 1. Assuming that the current keyframe is at time k, the keyframe set {F k-m ,…,F k-1 ,F k}Transform to the world coordinate system {F' k-m ,…,F' k-1 ,F' k}. Then {F' k-m ,…,F' k-1 ,F' k} is matched with all feature points in the global map, and the distance from the edge point to the corresponding straight line and the distance from the plane point to the corresponding plane block are calculated using formula (16) and formula (17). Further, according to formula (18), the pose of the current key frame is optimized. Finally, according to the optimized pose, the current key frame is fused with the global map to achieve high-precision mapping.
