Mapping method and system integrating enhanced multi-line laser radar and IMU

By integrating multi-line lidar and IMU mapping methods, the problem of low mapping accuracy of traditional SLAM technology in complex environments is solved, more efficient dynamic object detection and error correction are achieved, and the accuracy and accuracy of map construction are improved. robustness.

CN118334259BActive Publication Date: 2024-10-15XIAN TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410433567.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-11
Publication Date
2024-10-15
Estimated Expiration
2044-04-11

AI Technical Summary

Technical Problem

Traditional 3D laser SLAM technology has problems such as poor dynamic object detection, distortion in 3D point cloud processing, and path drift in complex outdoor environments, resulting in low mapping accuracy and inability to effectively process complex environmental information.

Method used

Using a mapping method that integrates multi-line lidar and IMU, through data preprocessing, time synchronization, feature extraction and nonlinear optimization technology, denoising, error correction and pose estimation of point cloud data are achieved, and the DBSCAN algorithm is used to remove noise. point, combining the EKF and Levenberg-Marquardt algorithms to improve the accuracy and robustness of data fusion.

Benefits of technology

It improves the precision and accuracy of maps, reduces misleading information, enhances the accuracy of data fusion, reduces fluctuations in data density and quality, improves the robustness of feature extraction, and can handle complex urban streets more effectively. environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334259B_ABST
    Figure CN118334259B_ABST
Patent Text Reader

Abstract

The present invention proposes a mapping method and system for integrating enhanced multi-line laser radar and IMU, the method comprising: using a differential detection method to perform threshold judgment on the received three-dimensional point cloud information, using a DBSCAN clustering algorithm to cluster the point clouds exceeding the threshold, and then eliminating the clustering of noise points; using a time synchronization method to synchronize the time when the multi-line laser radar and the IMU receive data to ensure the consistency of data reception, and using an extended Kalman filter (EKF) method to fuse and optimize the data of the two to correct the error generated when the data is received, so that the point cloud and posture information are matched more accurately, and prepare for subsequent map fusion; using an adaptive feature point cloud extraction method, adding an adaptive parameter when extracting edge and plane feature point cloud maps, the feature point cloud effect of the next frame can be optimized in real time according to the point cloud situation at the previous moment, so that the fusion effect of the final map has stronger accuracy and robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of large-scene outdoor robot positioning and mapping, and in particular to a mapping method and system integrating enhanced multi-line laser radar and IMU. Background Art

[0002] With the advancement of technology and the development of the intelligent control industry in recent years, more and more unmanned equipment has entered people's lives, and research on unmanned vehicles, drones and other industries has gradually become a mainstream. Along with these studies, there has been a rapid development in industries such as autonomous driving, indoor inspection, and intelligent transportation. In these industries, SLAM (Simultaneous Localization and Mapping) technology is the core technology for robots to accurately determine their own position and surrounding environment. Especially in large-scale outdoor environments, whether the environment map can be accurately established determines whether the subsequent work can proceed smoothly.

[0003] Today's laser SLAM technology can be mainly divided into: 2D laser SLAM and 3D laser SLAM. 2D laser SLAM generally uses a single-line laser radar, while 3D laser SLAM requires a multi-line laser radar. Single-line laser radars are generally used for small scene mapping such as indoors due to limited data and information collection. However, complex environments such as urban streets and large scene mapping are difficult to achieve. Figure 1 Generally, multi-line laser radar is used for this purpose.

[0004] During the long period of development, many mapping algorithms based on 3D LiDAR have been born. The LOAM algorithm was first developed for large-scale scene mapping in urban environments. The algorithm mainly estimates the mobile state in real time and combines the IMU data to dedistort the three-dimensional point cloud data to restore the surrounding environment. Later, the improved A-LOAM appeared. By rewriting the optimization method in LOAM using the ceres library, the amount of calculation generated during mapping was reduced. LeGo-LOAM introduced a ground optimization mechanism on the traditional LOAM to reduce the impact of uneven ground on mapping. Lio-SAM added GPS to alleviate the situation of posture drift, and used graph optimization methods to fuse radar and IMU. However, these algorithms all have some problems to a greater or lesser extent, such as poor detection of dynamic objects in street environments, distortion of three-dimensional point cloud processing, path drift, etc. These problems will have a greater impact on the established environment. Summary of the invention

[0005] The present invention proposes a map construction method based on the fusion of multi-line laser radar and inertial sensor, which solves the shortcomings of traditional mapping algorithms such as low mapping accuracy and inability to process complex environmental information.

[0006] In order to achieve the above object, the technical solution of the present invention is as follows:

[0007] In a first aspect, the present invention provides a mapping method integrating enhanced multi-line laser radar and IMU, characterized in that it includes:

[0008] S1. Preprocess the point cloud data collected by the multi-line laser radar: denoise the point cloud information collected by the multi-line laser radar, remove isolated points and obtain the filtered point cloud set P filtered ;

[0009] S2. Smooth the velocity information collected by IMU to obtain the smoothed acceleration a smooth and the smoothed angular velocity ω smooth ;

[0010] S3, data collection: collect the processed multi-line laser radar point cloud data to obtain a set of point cloud data P(t), and then collect the processed IMU velocity information, and also collect the linear velocity and angular velocity to obtain data A(t), Ω(t); construct a continuous data sequence P for the multi-line laser radar point cloud data serics , and also construct a continuous data sequence A for the acceleration and angular velocity information of the IMU series ,Ω series ; Then perform residual analysis and calculate the distance d(p i ,p′ j ), and calculate the velocity difference v t , a t ; Determine whether the speed and point cloud exceed the threshold range, and mark the point cloud and speed that exceed the range;

[0011] S4. Use the DBSCAN algorithm to cluster the marked point cloud and speed information: first find the specific neighborhood range N r (p), then determine the position of the core point p. If point p is not a core point but is within the r-neighborhood of the core point, then determine that point p is a boundary point. If point p is neither a core point nor a boundary point, then classify point p as a noise point. Then cluster and eliminate the noise points to eliminate dynamic points.

[0012] S5. Synchronize the time information of the multi-line laser radar and IMU: First, confirm the deviation value Δt of the timestamp avg , and then use the interpolation method to correct the offset of the timestamp to ensure the consistency of the received data time, then obtain the state vector of the IMU, fuse the observation data of the multi-line laser radar, and use EKF to predict and update the data of both using the covariance matrix to achieve error correction and update of the multi-line laser radar and IMU data;

[0013] S6: Adaptive feature extraction of point cloud: extract edge features and plane features of point cloud respectively to obtain edge point cloud features κ(p) and plane point cloud features; add adaptive parameters Param new , through the situation of feature extraction, combined with the features of the previous frame point cloud, the changes of adaptive parameters are adjusted in real time, and the adaptive parameters are used in the next step of feature extraction;

[0014] S7: Fusion pose estimation of multi-line LiDAR and IMU data, and then optimization of pose using nonlinear optimization technology Levenberg-Marquardt algorithm;

[0015] S8: Use the global map fusion method to fuse the block point cloud map to obtain the overall three-dimensional point cloud map M global ,Finally, the map is optimized, redundant data is removed, similar points are deleted, and a complete 3D point cloud map is constructed.

[0016] Furthermore, in S1, the point cloud information collected by the multi-line laser radar is denoised, and a radius filter is used to remove isolated and noise points to obtain a filtered point cloud set p filtered ={p∈P∣count(q∈P,||pq||<r)> N}, where p and q are points in the point cloud, P is the original point cloud set, r is the specified denoising radius, and N is the set denoising threshold.

[0017] Furthermore, in S2, the acceleration and linear velocity in the IMU information are smoothed to obtain a smoothed acceleration a smooth =α·a current +(1-α)·a previous , the smoothed angular velocity ω smooth =α·ω current +(1-tα)·ω previous , where a previous is the acceleration at the previous moment, α current is the acceleration at the current moment, ω previous is the angular velocity at the previous moment, α current is the angular velocity at the current moment, and α is the smoothing coefficient.

[0018] Further, in said S3,

[0019] Point cloud data: P(t) = {p1(t), p2(t), …, p n (t)};

[0020] Acceleration data: A(x) = (a x ,a y ,a z ,t);

[0021] Angular velocity data: Ω(t)=(ω x ,ω y ,ω z ,t);

[0022] In the formula, a x ,a y ,a z They are the acceleration along the three axes of the IMU device, ω x ,ω y ,ω z is the angular velocity around each axis, and t is the timestamp at which these data are collected;

[0023] Continuous data sequence of point cloud data:

[0024] P series ={(x(t1),y(t1),z(t1)),(x(t2),y(t2),z(t2)),…,(x(t n ),y(t n ),z(t n ))};

[0025] Continuous data sequence of acceleration data:

[0026] A series ={(a x (t1),a y (t1),a z (t1)),…,(a x (t n ),a y (t n ),a z (t n ))};

[0027] Continuous data sequence of angular velocity data:

[0028] Ω series ={(ω x (t1),ω y (t1),ω z (t1)),…,(ω x (t n ),ω y (t n ),ω z (t n ))};

[0029] Residual analysis is performed on the constructed data sequences to obtain differential information of the three data, and critical judgment is made based on the differential information and the set threshold.

[0030] Furthermore, in S4, N r (p)={q∈D|dist(p,q)≤r}, where D is the point cloud data range and dist(p,q) is the distance between point p and point q.

[0031] Furthermore, in S5,

[0032] Calculate the deviation value of the timestamp of multi-line lidar and IMU Where, t L,i and t I,i Represents the timestamp of multi-line lidar and IMU records;

[0033] After obtaining the deviation value, use interpolation to correct the timestamp In the formula, t1 and t2 are the time data between the timestamps of the deviation, and the data values ​​corresponding to these two points are and

[0034] Get the state vector x of the IMU k =[p k ,v k ,q k ] T , including position p k , speed v k , and posture q k ; Predict the state of IMU and update the posture information Where Δt is the time interval, Exp() is the operation of converting angular velocity into quaternion change, Represents quaternion multiplication;

[0035] Then the covariance matrix is ​​used to predict the pose information of the next frame In the formula, F k-1 is the Jacobian of the state transfer matrix, Q k-1 is the noise covariance matrix of the IMU; the observation residual y of the fusion multi-line lidar k =z k -h(x k∣k-1 ), where z k is the position observation provided by the multi-line laser radar, h(x k∣k-1 ) converts the predicted state into the observation space; finally, the Kalman gain is used to update the system state estimate x k∣k =x k∣k-1 +K k y k and covariance gain P k∣k =(IK k H k ) k∣k-1 , where Hk is the Jacobian matrix of the observation model, R k It is the observation noise covariance matrix; it realizes error correction and update of multi-line lidar and IMU data.

[0036] Furthermore, in S6, the point cloud density is first determined, and the local density of each point cloud block is obtained using the KNN algorithm: Where N k (p) is the set of k nearest neighbor points of point p, ||pq|| is the distance between point p and point q;

[0037] Then the edge points are measured by local curvature, and the edge point cloud features are extracted and calculated. Where N(p) is the neighborhood of point p, n p and n q They are the normal vectors of the fitted plane at point p and its neighboring point q respectively; at the same time, the RANSAC algorithm is used to extract and calculate the plane point cloud features, and the plane equation Ax+By+Cz+D=0 is constructed for the point cloud surface. Through the distance from the point to the surface, it is calculated whether the point cloud exceeds the threshold of the plane Finally, add a parameter Param. The parameter Param will update the feature extraction of the next step in real time according to the status of the previous frame. At the same time, the parameter Param of the previous step will also be used to update the parameters of the next step to achieve the adaptive effect Param new = g(Param old ,C) In the formula, Param new and Param old Represent the new and old parameter values ​​respectively, and g() is a function that adjusts the parameters according to the evaluation index C.

[0038] Furthermore, in S7, the multi-line laser radar and IMU data are fused for pose estimation, and the pose is optimized using the nonlinear optimization algorithm Levenberg-Marquardt In the formula, f i (θ) makes the prediction model, y i is the observed data, w i is the weight.

[0039] Furthermore, in S8, Where M global is the global map, P current is the point cloud information of the current multi-line lidar frame, and They are the rotation and translation matrices obtained according to the pose estimation.

[0040] In a second aspect, the present invention provides a mapping system integrating an enhanced multi-line laser radar and an IMU, characterized in that it includes:

[0041] Preprocessing module: denoise the point cloud information collected by the multi-line laser radar, remove isolated points to obtain the filtered point cloud set P filtered ;

[0042] Smoothing module: Smoothing the velocity information collected by IMU to obtain the smoothed acceleration a smooth and the smoothed angular velocity ω smooth ;

[0043] Data acquisition module: collects the processed multi-line laser radar point cloud data to obtain a set of point cloud data P(t), and then collects the processed IMU velocity information. Similarly, the linear velocity and angular velocity are collected to obtain data A(t), Ω(t); constructs a continuous data sequence P for the multi-line laser radar point cloud data. serics , and also construct a continuous data sequence A for the acceleration and angular velocity information of the IMU series ,Ω series ; Then perform residual analysis and calculate the distance d(p i ,p′ j ), and calculate the velocity difference v t , a t ; Determine whether the speed and point cloud exceed the threshold range, and mark the point cloud and speed that exceed the range;

[0044] Clustering module: Use DBSCAN algorithm to cluster the marked point cloud and speed information, first find the specific neighborhood range N r (p), then determine the position of the core point p. If point p is not a core point but is within the r-neighborhood of the core point, then determine that point p is a boundary point. If point p is neither a core point nor a boundary point, then classify point p as a noise point. Then cluster and eliminate the noise points to eliminate dynamic points.

[0045] Time synchronization module: synchronize the time information of multi-line laser radar and IMU: first confirm the deviation value Δt of the timestamp avg , and then use the interpolation method to correct the offset of the timestamp to ensure the consistency of the received data time, then obtain the state vector of the IMU, fuse the observation data of the multi-line laser radar, and use EKF to predict and update the data of both using the covariance matrix to achieve error correction and update of the multi-line laser radar and IMU data;

[0046] Feature extraction module: extract edge features and plane features of point cloud to obtain edge point cloud features κ(p) and plane point cloud features; add adaptive parameters Paramnew , through the situation of feature extraction, combined with the features of the previous frame point cloud, the changes of adaptive parameters are adjusted in real time, and the adaptive parameters are used in the next step of feature extraction;

[0047] Pose estimation module: The multi-line lidar and IMU data are integrated to estimate the pose, and then the nonlinear optimization technology Levenberg-Marquardt algorithm is used to optimize the pose;

[0048] Map fusion module: Use the global map fusion method to fuse the block point cloud map to obtain the overall three-dimensional point cloud map M global ,Finally, the map is optimized, redundant data is removed, similar points are deleted, and a complete 3D point cloud map is constructed.

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

[0050] Compared with the traditional 3D laser SLAM concept, the algorithm of the present invention introduces differential detection to detect dynamic objects in street scenes for running robots, and then removes dynamic objects to improve the precision and accuracy of the map while reducing misleading information. At the same time, an improved time synchronization and error correction module is introduced to solve the cumulative error generated by the sensor and enhance the accuracy of data fusion. The point cloud information recognized by the multi-line laser radar is screened and collected using an adaptive feature extraction method to reduce the fluctuation of data density and quality, while improving the robustness of feature extraction. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is an overall structural block diagram of an algorithm of an embodiment of the present invention;

[0052] Figure 2 A flowchart of removing dynamic point cloud information according to an embodiment of the present invention;

[0053] Figure 3 A flowchart of time synchronization and error correction according to an embodiment of the present invention;

[0054] Figure 4 A flowchart of adaptively extracting edge point cloud features and plane point cloud features according to an embodiment of the present invention;

[0055] Figure 5 The figure is a schematic diagram of the physical structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.

[0057] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.

[0058] Embodiment 1:

[0059] This embodiment provides a mapping method integrating enhanced multi-line laser radar and IMU, including the following steps:

[0060] S1: Data preprocessing is performed on the point cloud data collected by the multi-line laser radar. The main method is to denoise the point cloud information collected by the multi-line laser radar and remove isolated points to obtain the filtered point cloud set P. filtered .

[0061] In step S1, a statistical filter is used to identify and remove noise points based on the statistical information (average distance and standard deviation) of points in the neighborhood.

[0062] S2: Smooth the velocity information collected by IMU and calculate the acceleration a at the previous moment. previous and the current acceleration a current Data processing to obtain the smoothed robot acceleration a smooth ; Similarly, the smoothed angular velocity ω is obtained smooth .

[0063] In step S2, a low-pass filter algorithm is used to calculate the linear moving average and exponential moving average (EMA) in the IMU data, reducing the random fluctuations and noise of the data, improving the stability and reliability of the data, and preparing for subsequent attitude estimation and sensor data fusion.

[0064] S3: Identify the dynamic points that appear between the continuous scanning frames of the multi-line laser radar, mark these dynamic points as possible dynamic objects and mark them.

[0065] In step S3, the dynamic point cloud is identified and labeled by using point cloud transformation processing and threshold measurement. The specific method is as follows:

[0066] Step 1: Collect and process multi-line lidar and IMU data:

[0067] For the point cloud data collected by the multi-line laser radar, a special three-dimensional coordinate system is constructed, and each point is represented by a vector (x, y, z). For a multi-line laser radar scan at time t, a set of point cloud data can be obtained, which is expressed as:

[0068] P(t)={p1(t),p2(t),…,p n (t)}

[0069] Among them, p i (t) = (x i ,y i ,z i ,t) are the coordinates and timestamp of the i-th point at time t. n is the total number of points collected in this scan.

[0070] The acceleration, angular velocity and other data after IMU smoothing are packaged as a whole and recorded as follows:

[0071] A(t)=(a x ,a y ,a z ,t),Ω(t)=(ω x ,ω y ,ω z ,t),Q(t)=(q w ,q x ,q y ,q z ,t)

[0072] Among them, a x ,a y ,a z They are the acceleration along the three axes of the IMU device, ω x ,ω y ,ω z is the angular velocity around each axis, q w ,q x ,q y ,q z is the direction represented by the quaternion, and t is the timestamp when these data are collected.

[0073] The second step is to construct a time series:

[0074] Multi-line lidar data includes a series of three-dimensional coordinates (x, y, z) of spatial points. Observe a dynamic point object, track its position at continuous time points, and construct a position time series:

[0075] P serics ={(x(t1),y(t1),z(t1)),(x(t2),y(t2),z(t2)),…,(x(t n ),y(t n ),z(t n ))}

[0076] IMU data contains acceleration a x ,a y ,a z and angular velocity ω x ,ω y ,ω z . For each measurement a time series is constructed:

[0077] Acceleration time series:

[0078] A series ={(a x (t1),a y (t1),a z (t1)),…,(a x (t n ),a y (t n ),a z (t n ))}

[0079] Angular velocity time series:

[0080] Ω serics ={(ω x (t1),ω y (t1),ω z (t1)),…,(ω x (t n ),ω y (t n ),ω z (t n ))}

[0081] The third step is dynamic object differential analysis:

[0082] For the point cloud data, it is necessary to collect the changes between the interval point cloud data and compare the P values ​​of two consecutive frames. t-1 and P t The position change of the corresponding point in . Given P t-1 A point p in i, find P t-1 In and p i The nearest point p′ j . Compute the Euclidean distance between two points:

[0083]

[0084] Where d(p i ,p′ j ) is point p i and p′ j The distance between i ,y i ,z i ) and (x′ j ,y′ j ,z′ j ) are the coordinates of these two points in three-dimensional space.

[0085] For the IMU data, the difference between consecutive data points in the time series is calculated to identify changes in velocity and acceleration. For each dimension of the position sequence (x, y, z), the difference is expressed as:

[0086] Δx t =x t -x t-1 ,Δy t =y t -y t-1 ,Δz t =z t -z t-1

[0087] Further calculation of the difference in velocity and acceleration:

[0088]

[0089] a t =(v t -v t-1 ) / Δt, where Δt is the time interval.

[0090] Step 4: Threshold determination:

[0091] For point cloud data judgment threshold, if d(p i ,p′ j ) The distance exceeds the predetermined threshold d th , then we consider point p i In dynamic change, and for point p i Mark it.

[0092] For IMU data, it is divided into acceleration threshold a thresh and the angular velocity threshold ω thresh , at a certain time ti The acceleration a(t i ) exceeds this threshold, that is:

[0093] This indicates that a significant acceleration change occurred at that time.

[0094] At a certain moment t i The angular velocity ω(t i ) exceeds this threshold, that is:

[0095] The marker then undergoes a significant angular velocity change at that time.

[0096] S4: Use DBSCAN clustering to cluster the marked dynamic point cloud information to distinguish different objects and remove objects identified as dynamic.

[0097] The described step S4 uses the DBSCAN algorithm to achieve spatial clustering and subsequent removal of the point cloud data after differential planning, and the specific implementation is as follows:

[0098] The first step is to set specific parameters:

[0099] Set r as the neighborhood radius for identification and set MinPts as the minimum number of points required to form a cluster area.

[0100] The second step is to define the field:

[0101] For each identified out-of-domain point cloud p, find all points whose distance to p is less than or equal to r, and construct these special points as the r-neighborhood of p. It can be expressed as:

[0102] N r (p)={q∈D|dist(p,q)≤r}

[0103] Where D is the point cloud data range, and dist(p,q) is the distance between point p and point q.

[0104]

[0105] Among them, p x ,p y ,p z and q x ,q y ,q z are the coordinates of points p and q in three-dimensional space respectively.

[0106] The third step is to determine the core points:

[0107] If there are at least MinPts points in a point cloud area r, including the point itself, it is judged as a core point.

[0108] |N r (p)|≥MinPts

[0109] The fourth step is to determine the boundary points and noise points:

[0110] Judgment basis: If point p is not a core point but is within the r-neighborhood of a core point, then p is considered a boundary point. If point p is neither a core point nor a boundary point, then p is classified as a noise point.

[0111] The fifth step is to aggregate and classify all noise points:

[0112] For each core point or non-isolated boundary point that is not assigned to any cluster, starting from that point, all dense points in its r-neighborhood are recursively added to the same cluster. These clusters are classified as dynamic objects.

[0113] Step 6: Remove the point clouds of these dynamic objects from the current frame.

[0114] S5: Align the timestamps of the multi-line LiDAR and IMU data collection, use the interpolation method to match the specific time nodes of the multi-line LiDAR and IMU scans, and use the extended Kalman filter (EKF) method to filter the aligned sensor information to reduce the errors that may be caused by noise or transmission delays.

[0115] In step S5, the interpolation method is used to align the multi-line laser radar and IMU data, and the EKF method is used to filter the sensor information. The specific implementation is as follows:

[0116] The first step is to determine the timestamp deviation value:

[0117] Collect timestamp data from the multi-line lidar and IMU incoming data. If the timestamps of the two data are asynchronous, calculate the average time offset between the two by comparing the timestamps recorded by the two systems on the same event.

[0118]

[0119] where t L,i and t I,i Represents the timestamp recorded by the multi-line lidar and IMU, the time deviation Δt = t L,i -t I,i . Δt avg It is estimated as the average of the time deviations of all events.

[0120] Step 2: Timestamp correction:

[0121] For continuous data streams such as multi-line lidar and IMU, the deviation of the timestamp is not a constant. To ensure the consistency of the data in time, the timestamp is corrected using interpolation:

[0122]

[0123] Among them, t1 and t2 are the time data between the timestamps of the deviation, and the data values ​​corresponding to these two points are and Data value D at time t t Estimated by linear interpolation.

[0124] The third step is to obtain the state vector of the IMU:

[0125] x k =[p k ,v k ,q k ] T

[0126] x k is the state vector, containing the position p k , speed v k , and posture q k .

[0127] Get its state vector through acceleration and angular velocity:

[0128] x k =f(x k-1 ,u k-1 )+w k-1

[0129] Among them, u k-1 is the control input, the acceleration a measured by the IMU k-1 and angular velocity ω k-1 , w k-1 is the process noise.

[0130] Step 4: Predict the next state of the IMU:

[0131] Use the acceleration and angular velocity of the IMU to predict the state at the next moment. Assume that the acceleration a k-1 Directly affects the speed, angular velocity ω k-1 Impact posture q k .

[0132]

[0133] v k =v k-1 +a k-1 Δt

[0134]

[0135] Where Δt is the time interval, Exp() is the operation to convert angular velocity into quaternion change, Represents quaternion multiplication.

[0136] Step 5, covariance prediction:

[0137]

[0138] Among them, F k-1 is the Jacobian of the state transfer matrix, Q k-1 is the noise covariance matrix of the IMU.

[0139] The sixth step is to calculate the observation residual using the multi-line lidar observation:

[0140] y k =z k -h(x k∣k-1 )

[0141] where z k is the position observation provided by the multi-line laser radar, h(x k∣k-1 ) transforms the predicted state into the observation space.

[0142] Step 7: Calculate the Kalman gain and update the state estimate:

[0143]

[0144] H k is the Jacobian matrix of the observation model, R k is the observation noise covariance matrix.

[0145] Update state estimate: x k∣k =x k∣k-1 +K k y k .

[0146] Update covariance gain: P k∣k =(IK k H k ) k∣k-1

[0147] S6: Use an adaptive method to extract features. Use local curvature to calculate edge eigenvalues ​​of the precisely processed point cloud data, use the RANSAC algorithm to extract plane features, and then adaptively optimize the parameters to extract the feature framework.

[0148] In step S6, the point cloud features are adaptively extracted, and the specific method is as follows:

[0149] The first step is to calculate the point cloud density:

[0150] The local density of each point cloud is calculated using the K nearest neighbor (KNN) algorithm:

[0151]

[0152] Where N k (p) is the set of k nearest neighbor points of point p, and ||pq|| is the distance between point p and point q.

[0153] The second step is feature threshold adjustment:

[0154] κ th =f(ρ)

[0155] Where f(ρ) is a curvature threshold κ adjusted according to the point cloud density ρ th function.

[0156] The third step is feature extraction:

[0157] The edge points are identified by calculating the local curvature of the point cloud, and measured by the change in the normal vector of the least squares fit plane of the points:

[0158]

[0159] Among them, N(p) is the neighborhood of point p, n p and n q are the normal vectors of the fitted plane at point p and its neighborhood point q, respectively.

[0160] The features of the plane are extracted by the RANSAC algorithm, and the point clouds are randomly assigned in groups of three to construct the plane equation: Ax+By+Cz+D=0, where A, B, C are the normal vectors of the plane and D is the displacement term. Then, for each point in the point cloud, its distance to the plane model is calculated to find the inner points in the plane point cloud:

[0161]

[0162] Where d is the distance from the point (x, y, z) to the plane. Repeat the above steps until the number of inner points of the plane point cloud exceeds the set threshold, and then extract the inner point cloud as the plane point cloud feature.

[0163] Step 4: Add a dynamic adaptive feedback mechanism:

[0164] Construct a feedback adjustment function, set an indicator to evaluate the effect of feature extraction, such as the correspondence C between feature points and real edges, and then adjust the feature extraction parameters according to C:

[0165] Param new = g(Paran old ,C)

[0166] Among them, Paran new and Param old Represent the new and old parameter values ​​respectively, and g() is a function that adjusts the parameters according to the evaluation index C. This adaptive feature extraction method can adaptively adjust the feature extraction method and parameters according to the specific conditions of the environment and the effect of the features extracted in the previous step. Through this dynamic adjustment mechanism, useful information can be more effectively extracted from complex urban street environments, improving the accuracy of map construction and navigation.

[0167] S7: Fuse the multi-line lidar and IMU data, estimate the fused pose, and optimize the pose using the Levenberg-Marquardt algorithm.

[0168] S8: Utilize the fused and optimized pose information and combine it with the point cloud data scanned by the multi-line lidar to perform map fusion and build a 3D environment map. Finally, optimize the global map, remove redundant data, and merge similar points to improve map accuracy and storage requirements.

[0169] Embodiment 2:

[0170] like Figure 1 As shown in FIG. 1 , the present invention provides a method for mapping by integrating enhanced multi-line laser radar and IMU, which is named Fusion-Enhanced Lidar-Inertial Mapping (FE-LIM). The present invention is mainly innovative in the following ways. First, a solution for dynamic point cloud removal without deep learning is used, such as Figure 2 As shown in the figure, this method mainly uses differential detection to set a threshold for the point cloud range, marks the points by testing the distance between the points and the threshold, and then uses the DBSCAN algorithm to cluster the points that exceed the threshold, and then eliminates these point cloud blocks. This method reduces the required hardware cost and computing power requirements, and can achieve better results. Then align the timestamps of the multi-line laser radar and IMU to ensure the time synchronization of the sensors, and then use the EKF method to fuse the data between the sensors and correct their errors, as shown in the figure. Figure 3 By extracting the features of edge point cloud and plane point cloud information, a local point cloud corresponding to each frame is constructed, and adaptive variables are added to dynamically adjust the feature extraction of the point cloud according to the situation of the previous frame, ensuring that the final generated three-dimensional point cloud has stronger accuracy and robustness, as shown in Figure 4 shown.

[0171] The following combination Figure 1 The detailed process of the present invention is specifically introduced.

[0172] Step S1: It is necessary to perform denoising operation on the point cloud data collected by the multi-line laser radar, and use a radius filter to remove the collected isolated points.

[0173] p filtered ={p∈P∣count(q∈P,||pq||<r)> N}

[0174] Where p and q are points in the point cloud, P is the original point cloud set, r is the specified denoising radius, and N is the set denoising threshold.

[0175] Step S2: Smoothing the linear velocity and angular velocity information collected by the IMU, using a low-pass filtering method to filter the previous moment and the current moment of the two velocities, thereby obtaining smoothed velocity data.

[0176] a smooth =α·a current +(1-α)·a previous

[0177] ω smooth =α·ω current +(1-α)·ω previous

[0178] where a smooth is the smoothed acceleration, ω smooth is the smoothed angular velocity. current ,ω current is the acceleration and angular velocity at the current moment, a previous ,ω previous are the acceleration and angular velocity at the previous moment, and α is the smoothing coefficient.

[0179] Step S3: First, collect the data processed by the multi-line laser radar to obtain a set of specific data P(t) = {p1(t), p2(t), ..., p n (t)}, and then collect IMU data to generate its speed and position A(t) = (a x ,a y ,a z ,t),Ω(t)=(ω x ,ω y ,ω z ,t),Q(t)=(q w ,q x ,q y ,q z ,t);

[0180] Then, the time series P of the multi-line laser radar is constructed in continuous time periods. serics={(x(t1),y(t1),z(t1)),(x(t2),y(t2),z(t2)),…,(x(t n ),y(t n ),z(t n ))}, similarly, we need to construct the time series A of acceleration and angular velocity series ,Ω serics Then, the error between the point and the speed and the set threshold is judged to obtain the differential information of the point cloud.

[0181] Step S4: Then cluster the differential information of each point cloud obtained in S3. First, define the neighborhood, N r (p) = {q∈D|dist(p,q)≤r}, and then determine the core points, edge points and noise points of each point cloud. The noise points are summed into clusters and eliminated to achieve the purpose of dynamic removal.

[0182] Step S5: Determine the timestamp deviation value of the sensor data of the multi-line laser radar and IMU After obtaining the specific deviation value, the timestamp is corrected using the interpolation method. Finally, by obtaining the state vector of the IMU and combining it with the observation values ​​of the multi-line lidar, the EKF method is used to optimize the IMU velocity data and correct the error.

[0183] Step S6: Calculate the local density of the point cloud first The range of feature thresholds is obtained, and then the feature extraction of edge point cloud is calculated by the change of normal vector of the least squares fitting plane through the local curvature point. Then, the RANSAC algorithm is used to extract the features of the plane and calculate the distance between the point and the plane to extract the feature point cloud of the plane. Finally, an adaptive parameter index Param is introduced new = g(Param old ,C), to make adaptive judgment on the feature extraction process, and use the state of the previous moment to change the point cloud feature extraction situation at the next moment to ensure the accuracy and completeness of the three-dimensional point cloud information.

[0184] Step S7: Fuse the multi-line laser radar with the IMU data to optimize the pose estimation and improve the accuracy of positioning and mapping. Use the IMU data for initial pose estimation.

[0185]

[0186] in is the pose estimate at t, ω is the angular velocity measured by IMU, and Δt is the time interval.

[0187] Then the Levenberg-Marquardt algorithm is used to optimize the pose.

[0188]

[0189] where f i (θ) makes the prediction model, y i is the observed data, w i is the weight.

[0190] Step S8: Using the optimized posture information and combining it with multi-line laser radar scanning, a high-precision three-dimensional environment map is constructed. First, map fusion is performed to use the optimized posture information and combine it with all multi-line laser radar scanning to construct a high-precision three-dimensional environment map.

[0191]

[0192] Among them, M global is the global map, P current is the point cloud information of the current multi-line lidar frame, and They are the rotation and translation matrices obtained according to the pose estimation.

[0193] Finally, the global map is optimized regularly, redundant data is removed, and similar feature points are merged to improve the accuracy of the map and reduce storage requirements, thereby optimizing the global map.

[0194] Embodiment 3:

[0195] This embodiment relates to a mapping system integrating enhanced multi-line laser radar and IMU, which can be implemented in hardware or software to complete a mapping method integrating enhanced multi-line laser radar and IMU. The mapping system includes a preprocessing module, a smoothing processing module, a data acquisition module, a clustering module, a time synchronization module, a feature extraction module, a posture estimation module and a map fusion module.

[0196] Preprocessing module: denoise the point cloud information collected by the multi-line laser radar, remove isolated points to obtain the filtered point cloud set P filtered ;

[0197] Smoothing module: Smoothing the velocity information collected by IMU to obtain the smoothed acceleration a smooth and the smoothed angular velocity ω smooth ;

[0198] Data acquisition module: collects the processed multi-line laser radar point cloud data to obtain a set of point cloud data P(t), and then collects the processed IMU velocity information. Similarly, the linear velocity and angular velocity are collected to obtain data A(t), Ω(t); constructs a continuous data sequence P for the multi-line laser radar point cloud data. serics , and also construct a continuous data sequence A for the acceleration and angular velocity information of the IMU series ,Ω series ; Then perform residual analysis and calculate the distance d(p i ,p′ j ), and calculate the velocity difference v t , a t ; Determine whether the speed and point cloud exceed the threshold range, and mark the point cloud and speed that exceed the range;

[0199] Clustering module: Use DBSCAN algorithm to cluster the marked point cloud and speed information, first find the specific neighborhood range N r (p), then determine the position of the core point p. If point p is not a core point but is within the r-neighborhood of the core point, then determine that point p is a boundary point. If point p is neither a core point nor a boundary point, then classify point p as a noise point. Then cluster and eliminate the noise points to eliminate dynamic points.

[0200] Time synchronization module: synchronize the time information of multi-line laser radar and IMU: first confirm the deviation value Δt of the timestamp avg , and then use the interpolation method to correct the offset of the timestamp to ensure the consistency of the received data time, then obtain the state vector of the IMU, fuse the observation data of the multi-line laser radar, and use EKF to predict and update the data of both using the covariance matrix to achieve error correction and update of the multi-line laser radar and IMU data;

[0201] Feature extraction module: extract edge features and plane features of point cloud to obtain edge point cloud features κ(p) and plane point cloud features; add adaptive parameters Param new , through the situation of feature extraction, combined with the features of the previous frame point cloud, the changes of adaptive parameters are adjusted in real time, and the adaptive parameters are used in the next step of feature extraction;

[0202] Pose estimation module: The multi-line lidar and IMU data are integrated to estimate the pose, and then the nonlinear optimization technology Levenberg-Marquardt algorithm is used to optimize the pose;

[0203] Map fusion module: Use the global map fusion method to fuse the block point cloud map to obtain the overall three-dimensional point cloud map M global,Finally, the map is optimized, redundant data is removed, similar points are deleted, and a complete 3D point cloud map is constructed.

[0204] Embodiment 4:

[0205] This embodiment relates to an electronic device for integrating enhanced multi-line laser radar and IMU for mapping. Figure 5 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, the electronic device may include: a processor 301, a communications interface 302, a memory 303 and a bus 304, wherein the processor 301, the communications interface 302, and the memory 303 communicate with each other through the bus 304. The processor 301 may call a computer program stored in the memory 303 and executable on the processor 301 to execute the mapping method of the fusion enhanced multi-line laser radar and IMU provided in the above embodiment. For example, it includes: data preprocessing of the point cloud data collected by the multi-line laser radar: denoising the point cloud information collected by the multi-line laser radar, removing isolated points to obtain a filtered point cloud set P filtered ; Smooth the velocity information collected by IMU to obtain the smoothed acceleration a smooth and the smoothed angular velocity ω smooth ; Data collection: Collect the processed multi-line laser radar point cloud data to obtain a set of point cloud data P(t), then collect the processed IMU velocity information, and also collect the linear velocity and angular velocity to obtain data A(t), Ω(t); construct a continuous data sequence P for the multi-line laser radar point cloud data serics , and also construct a continuous data sequence A for the acceleration and angular velocity information of the IMU series ,Ω series ; Then perform residual analysis and calculate the distance d(p i ,p′ j ), and calculate the velocity difference v t , a t ; Determine whether the speed and point cloud exceed the threshold range, and mark the point cloud and speed that exceed the range; Use the DBSCAN algorithm to cluster the marked point cloud and speed information: First find the specific neighborhood range N r (p), then determine the position of the core point p. If point p is not a core point but is within the r-neighborhood of the core point, then determine that p is a boundary point; if point p is neither a core point nor a boundary point, then classify p as a noise point; then cluster and eliminate the noise points to eliminate dynamic points; S5, synchronize the time information of the multi-line laser radar and IMU: first confirm the deviation value Δt of the timestamp avg, and then use the interpolation method to correct the offset of the timestamp to ensure the consistency of the received data time, then obtain the state vector of the IMU, fuse the observation data of the multi-line laser radar, use EKF to predict and update the data of both with the covariance matrix, and realize the error correction and update of the multi-line laser radar and IMU data; perform adaptive feature extraction on the point cloud: extract and calculate the edge features and plane features of the point cloud respectively to obtain the edge point cloud features κ(p) and plane point cloud features; add adaptive parameters Param new , through the feature extraction, combined with the features of the previous frame point cloud to adjust the changes of adaptive parameters in real time, and use the adaptive parameters in the next step of feature extraction; fuse the multi-line laser radar and IMU data to estimate the pose, and then use the nonlinear optimization technology Levenberg-Marquardt algorithm to optimize the pose; use the global map fusion method to fuse the block point cloud map to obtain the overall 3D point cloud map M global ,Finally, the map is optimized, redundant data is removed, similar points are deleted, and a complete 3D point cloud map is constructed.

[0206] In addition, the logic instructions in the above-mentioned memory 303 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the embodiment of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0207] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.

[0208] In summary, the above is a detailed implementation method of the present invention, and no other forms of limitations or restrictions are imposed on the present invention through this implementation process. However, if there are basically similar changes based on the relevant improved algorithms and technologies of the present invention, they should still be within the scope of protection required by the present invention.

Claims

1. A mapping method integrating enhanced multi-line laser radar and IMU, characterized in that: include: S1. Preprocess the point cloud data collected by the multi-line laser radar: denoise the point cloud information collected by the multi-line laser radar, remove isolated points and obtain the filtered point cloud set P filtered ; S2. Smooth the velocity information collected by IMU to obtain the smoothed acceleration a smooth and the smoothed angular velocity ω smooth ; S3, data collection: collect the processed multi-line laser radar point cloud data to obtain a set of point cloud data P(t), and then collect the processed IMU velocity information, and also collect the linear velocity and angular velocity to obtain data A(t), Ω(t); Construct a continuous data sequence P for the point cloud data of the multi-line laser radar serics , and also construct a continuous data sequence A for the acceleration and angular velocity information of the IMU series ,Ω series ; Then, residual analysis is performed on the constructed data sequence, and the distance d(p i , p′ j ), and calculate the velocity difference v t , a t ; Determine whether the speed and point cloud exceed the threshold range, and mark the point cloud and speed that exceed the range; S4. Use the DBSCAN algorithm to cluster the marked point cloud and velocity information: first find the specific neighborhood range Nr(p), then determine the position of the core point p. If point p is not a core point but is within the r-neighborhood of the core point, then determine that p is a boundary point; if point p is neither a core point nor a boundary point, then classify p as a noise point; then cluster and eliminate the noise points to eliminate dynamic points; S5. Synchronize the time information of the multi-line laser radar and IMU: First, confirm the deviation value Δt of the timestamp avg , and then use the interpolation method to correct the offset of the timestamp to ensure the consistency of the received data time, then obtain the state vector of the IMU, fuse the observation data of the multi-line laser radar, and use EKF to predict and update the data of both using the covariance matrix to achieve error correction and update of the multi-line laser radar and IMU data; Specifically, calculate the deviation value of the timestamp of the multi-line lidar and IMU In the formula, t L,i and t I,i Represents the timestamp of multi-line lidar and IMU records; After obtaining the deviation value, use interpolation to correct the timestamp In the formula, t1 and t2 are the time data between the timestamps of the deviation, and the data values ​​corresponding to these two points are and Get the state vector x of the IMU k =[p k , v k ,q k ] T , including position p k , speed v k , and posture q k ; Predict the state of IMU and update the posture information Where Δt is the time interval, Exp() is the operation of converting angular velocity into quaternion change, Represents quaternion multiplication; Then the covariance matrix is ​​used to predict the pose information of the next frame In the formula, F k-1 is the Jacobian of the state transfer matrix, Q k-1 is the noise covariance matrix of the IMU; the observation residual y of the fusion multi-line lidar k =z k -h(x k|k-1 ), where z k is the position observation provided by the multi-line laser radar, h(x k|k-1 ) converts the predicted state into the observation space; finally, the Kalman gain is used to update the system state estimate x k|k =x k|k-1 +K k y k and covariance gain P k|k =(IK k H k ) k|k-1 , where H k is the Jacobian matrix of the observation model, R k is the observation noise covariance matrix; Realize error correction and update of multi-line lidar and IMU data; S6: Adaptive feature extraction of point cloud: extract edge features and plane features of point cloud respectively to obtain edge point cloud features κ(p) and plane point cloud features; add Adaptive parameter Param new , through the situation of feature extraction, combined with the features of the previous frame point cloud, the changes of adaptive parameters are adjusted in real time, and the adaptive parameters are used in the next step of feature extraction; Specifically, the point cloud density is first judged, and the local density of each point cloud block is obtained using the KNN algorithm: Where N k (p) is the set of k nearest neighbor points of point p, ||pq|| is the distance between point p and point q; Then the edge points are measured by local curvature, and the edge point cloud features are extracted and calculated. Where N(p) is the neighborhood of point p, n p and n q They are the normal vectors of the fitted plane at point p and its neighboring point q respectively; at the same time, the RANSAC algorithm is used to extract and calculate the plane point cloud features, and the plane equation Ax+By+Cz+D=0 is constructed for the point cloud surface. The distance from the point to the surface is used to measure whether the point cloud exceeds the threshold of the plane. Finally, add a parameter Param. The parameter Param will update the feature extraction of the next step in real time according to the status of the previous frame. At the same time, the parameter Param of the previous step will also be used to update the parameters of the next step to achieve the adaptive effect Param new = g(Param old , C) where Param new and Param old Represent the new and old parameter values ​​respectively, and g() is a function that adjusts the parameters according to the evaluation index C; S7: Fusion pose estimation of multi-line LiDAR and IMU data, and then optimization of pose using nonlinear optimization technology Levenberg-Marquardt algorithm; S8: Use the global map fusion method to fuse the block point cloud map to obtain the overall three-dimensional point cloud map M glogal ,Finally, the map is optimized, redundant data is removed, similar points are deleted, and a complete 3D point cloud map is constructed.

2. The mapping method of fusion enhanced multi-line laser radar and IMU according to claim 1, characterized in that: In S1, the point cloud information collected by the multi-line laser radar is denoised, and a radius filter is used to remove isolated and noise points to obtain a filtered point cloud set p filtered ={p∈P|count(q∈P, ||pq||<r)>N}, where p and q are points in the point cloud, P is the original point cloud set, r is the specified denoising radius, and N is the set denoising threshold.

3. The mapping method of fusion enhanced multi-line laser radar and IMU according to claim 1, characterized in that: In S2, the acceleration and linear velocity in the IMU information are smoothed to obtain the smoothed acceleration a smooth =α·a current +(1-α)·a previous , the smoothed angular velocity ω smooth =α·ω current +(1-α)·ω previous , where a previous is the acceleration at the previous moment, a current is the acceleration at the current moment, ω previous is the angular velocity at the previous moment, ω current is the angular velocity at the current moment, and α is the smoothing coefficient.

4. The mapping method of fusion enhanced multi-line laser radar and IMU according to claim 1, characterized in that: In S3, Point cloud data: P(t) = {p1(t), p2(t), ..., p n (t)}; Acceleration data: A(t) = (a x , a y , a z , t); Angular velocity data: Ω(t)=(ω x ,ω y ,ω z , t); In the formula, a x , a y , a z They are the acceleration along the three axes of the IMU device, ω x ,ω y ,ω z is the angular velocity around each axis, and t is the timestamp at which these data are collected; Continuous data sequence of point cloud data: P series ={(x(t1),y(t1),z(t1)),(x(t2),y(t2),z(t2)),...,(x(t n ),y(t n ),z(t n ))}; Continuous data sequence of acceleration data: From series ={(a x (t1), a y (t1), a z (t1)),...,(a x (t n ),a y (t n ),a z (t n ))}; Continuous data sequence of angular velocity data: Oh series ={(ω x (t1),ω y (t1),ω z (t1)),...,(ω x (t n ),ω y (t n ),ω z (t n ))}; Residual analysis is performed on the constructed data sequences to obtain differential information of the three data, and critical judgment is made based on the differential information and the set threshold.

5. The mapping method of fusion enhanced multi-line laser radar and IMU according to claim 1, characterized in that: In S4, Nr(p)={q∈D|dist(p,q)≤r}, where D is the point cloud data range, and dist(p,q) is the distance between point p and point q.

6. The method for building a map by integrating enhanced multi-line laser radar and IMU according to claim 1, characterized in that: In S7, the multi-line laser radar and IMU data are fused to estimate the pose, and the nonlinear optimization algorithm Levenberg-Marquardt is used to optimize the pose. In the formula, f i (θ) is the prediction model, y i is the observed data, w i is the weight.

7. The mapping method of fusion enhanced multi-line laser radar and IMU according to claim 1, characterized in that: In said S8, Where M global is the global map, P current is the point cloud information of the current multi-line lidar frame, and They are the rotation and translation matrices obtained according to the pose estimation.

8. A mapping system integrating enhanced multi-line laser radar and IMU, characterized in that: include: Preprocessing module: denoise the point cloud information collected by the multi-line laser radar, remove isolated points to obtain the filtered point cloud set P filtered ; Smoothing module: Smoothing the velocity information collected by IMU to obtain the smoothed acceleration a smooth and the smoothed angular velocity ω smooth ; Data acquisition module: collects the processed multi-line laser radar point cloud data to obtain a set of point cloud data P(t), and then collects the processed IMU velocity information. Similarly, the linear velocity and angular velocity are collected to obtain data A(t), Ω(t); Construct a continuous data sequence P for the point cloud data of the multi-line laser radar serics , and also construct a continuous data sequence A for the acceleration and angular velocity information of the IMU series ,Ω series ; Then, residual analysis is performed on the constructed data sequence, and the distance d(p i , p′ j ), and calculate the velocity difference v t , a t ; Determine whether the speed and point cloud exceed the threshold range, and mark the point cloud and speed that exceed the range; Clustering module: The marked point cloud and velocity information are clustered using the DBSCAN algorithm. First, the specific neighborhood range Nr(p) is found, and then the position of the core point p is determined. If point p is not a core point but is within the r-neighborhood of the core point, then p is determined to be a boundary point; if point p is neither a core point nor a boundary point, then p is classified as a noise point; then the noise points are clustered and eliminated to eliminate dynamic points; Time synchronization module: synchronize the time information of multi-line laser radar and IMU: first confirm the deviation value Δt of the timestamp avg , and then use the interpolation method to correct the offset of the timestamp to ensure the consistency of the received data time, then obtain the state vector of the IMU, fuse the observation data of the multi-line laser radar, and use EKF to predict and update the data of both using the covariance matrix to achieve error correction and update of the multi-line laser radar and IMU data; Specifically, calculate the deviation value of the timestamp of the multi-line lidar and IMU In the formula, t L,i and t I,i Represents the timestamp of multi-line lidar and IMU records; After obtaining the deviation value, use interpolation to correct the timestamp In the formula, t1 and t2 are the time data between the timestamps of the deviation, and the data values ​​corresponding to these two points are and Get the state vector x of the IMU k =[p k , v k ,q k ] T , including position p k , speed v k , and posture q k ; Predict the state of IMU and update the posture information Where Δt is the time interval, Exp() is the operation of converting angular velocity into quaternion change, Represents quaternion multiplication; Then the covariance matrix is ​​used to predict the pose information of the next frame In the formula, F k-1 is the Jacobian of the state transfer matrix, Q k-1 is the noise covariance matrix of the IMU; the observation residual y of the fusion multi-line lidar k =z k -h(x k|k-1 ), where z k is the position observation provided by the multi-line laser radar, h(x k|k-1 ) converts the predicted state into the observation space; finally, the Kalman gain is used to update the system state estimate x k|k =x k|k-1 +K k y k and covariance gain P k|k =(IK k H k ) k|k-1 , where H k is the Jacobian matrix of the observation model, R k is the observation noise covariance matrix; Realize error correction and update of multi-line lidar and IMU data; Feature extraction module: extract and calculate the edge features and plane features of the point cloud to obtain the edge point cloud features κ(p) and the plane point cloud features; Add adaptive parameters Param new , through the situation of feature extraction, combined with the features of the previous frame point cloud, the changes of adaptive parameters are adjusted in real time, and the adaptive parameters are used in the next step of feature extraction; Specifically, the point cloud density is first judged, and the local density of each point cloud block is obtained using the KNN algorithm: Where N k (p) is the set of k nearest neighbor points of point p, ||pq|| is the distance between point p and point q; Then the edge points are measured by local curvature, and the edge point cloud features are extracted and calculated. Where N(p) is the neighborhood of point p, n p and n q They are the normal vectors of the fitted plane at point p and its neighboring point q respectively; at the same time, the RANSAC algorithm is used to extract and calculate the plane point cloud features, and the plane equation Ax+By+Cz+D=0 is constructed for the point cloud surface. Through the distance from the point to the surface, it is calculated whether the point cloud exceeds the threshold of the plane Finally, add a parameter Param. The parameter Param will update the feature extraction of the next step in real time according to the status of the previous frame. At the same time, the parameter Param of the previous step will also be used to update the parameters of the next step to achieve the adaptive effect Param new = g(Param old , C) where Param new and Param old Represent the new and old parameter values ​​respectively, and g() is a function that adjusts the parameters according to the evaluation index C; Pose estimation module: The multi-line lidar and IMU data are integrated to estimate the pose, and then the nonlinear optimization technology Levenberg-Marquardt algorithm is used to optimize the pose; Map fusion module: Use global map fusion to fuse the block point cloud maps to obtain the overall three-dimensional point cloud map Mglobal. Finally, optimize the map, remove redundant data, delete similar points, and build a complete three-dimensional point cloud map.