A laser radar motion distortion compensation method based on NDT registration and wheel odometer

The lidar motion distortion compensation method through NDT registration and odometry solves the impact of lidar motion distortion on the SLAM system, achieves higher positioning and mapping accuracy, generates a globally consistent map, and enhances the robustness of the system sex.

CN115047485BActive Publication Date: 2024-10-08ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210641472.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-07
Publication Date
2024-10-08
Estimated Expiration
2042-06-07

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively solve the problem of motion distortion produced by lidar during the scanning process, which affects the accuracy and consistency of the SLAM system. It is especially difficult to achieve high accuracy when positioning and mapping in unknown environments.

Method used

A lidar motion distortion compensation method based on Normal Distributions Transform (NDT) registration and odometry is used to estimate radar motion through low-precision but high-frequency odometry measurement, establish a linear distribution model, and use the NDT registration algorithm to calculate point Cloud matching to handle odometry drift, thereby improving radar motion estimation accuracy.

Benefits of technology

It effectively reduces the cumulative trajectory error in the SLAM system, generates a globally consistent map, improves the positioning and mapping accuracy of mobile robots in unknown environments, and enhances the robustness of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115047485B_ABST
    Figure CN115047485B_ABST
Patent Text Reader

Abstract

A method for compensating laser radar motion distortion based on NDT registration and wheel odometer, the method comprising the following steps: step 1, wheel odometer motion estimation, step 2, inter-frame coordinate transformation, step 3, optimizing motion distortion compensation. The present invention establishes a linear interpolation mathematical model of the wheel odometer sensor, eliminates part of the laser radar motion distortion according to the wheel odometer measurement posture; based on the NDT point cloud registration method, designs accurate compensation for laser radar motion distortion. The present invention provides a method for accurately compensating laser radar motion distortion, which reduces the cumulative error of SLAM trajectories and generates a globally consistent map, and ultimately improves the accuracy of the SLAM system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of simultaneous localization and mapping (SLAM), and proposes a laser radar motion distortion compensation method based on Normal Distributions Transform (NDT) registration and odometer. Background Art

[0002] Mobile robots have been used in various places, such as storage robots in industrial logistics, sweeping robots in the service industry, and disinfection robots in the medical industry. With people's yearning for an intelligent lifestyle, people's demand for mobile robots has become diversified, hoping that they can perfectly achieve specific tasks. At the same time, positioning and mapping technology is currently widely used in the field of mobile robots, which is considered to be the core link for realizing applications such as obstacle avoidance, path planning, and navigation. The task of SLAM is positioning and mapping. When the robot is in an unknown environment, it perceives environmental information and builds a map through sensors, while estimating its own posture. Lidar is widely used in SLAM distance measurement because it can provide accurate and reliable distance measurement and is not easily affected by light. Since most Lidars are rotating structures, they will gradually scan the surrounding space. If the motion of the Lidar is not handled properly, any movement of the sensor during scanning will cause motion distortion. Therefore, an effective Lidar motion distortion compensation method can greatly improve the accuracy of the SLAM system.

[0003] Since the motion distortion phenomenon was proposed, people have shown great interest in the research on eliminating motion distortion. The methods for eliminating motion distortion can be summarized into two categories, including pure estimation method and external motion estimation method. At present, the effect of pure estimation method usually depends on the accuracy of the assumption of the laser radar motion model, and the assumption of the motion model cannot represent its real motion. The external motion estimation method uses the measurement of the sensor to eliminate motion distortion, but does not take into account the measurement error of the external sensor itself. In view of the motion distortion phenomenon in the SLAM system, it is very necessary to find a motion distortion compensation method that is easy to implement quickly in engineering and has high accuracy. Summary of the invention

[0004] In order to solve the influence of the motion distortion of the lidar on the SLAM system and make the SLAM system have strong robustness and accuracy, the present invention provides a lidar motion distortion compensation method based on NDT alignment and odometer. The method first estimates the radar motion with the help of the odometer in a low-precision but high-frequency measurement method, and then establishes a linear distribution model of the odometer measurement error, and uses the NDT alignment algorithm to achieve accurate matching of point clouds to deal with odometer drift, thereby improving the accuracy of radar motion estimation, thereby reducing the trajectory accumulation error in SLAM and generating a globally consistent map.

[0005] The technical solutions proposed to solve the above technical problems are as follows:

[0006] A laser radar motion distortion compensation method based on NDT registration and odometer includes the following steps:

[0007] Step 1: Wheel odometer motion estimation. The process is as follows:

[0008] 1.1 Let X = {x i}, i=1,…,n is a frame point cloud set, x i represents the two-dimensional coordinate vector of the i-th point, X k represents the point cloud of the kth frame, x (k,i) represents the i-th point in the k-th frame, and t is the current timestamp, then is the start time of the kth frame, then is the time of the i-th point in the k-th frame. Due to the continuous scanning characteristics of the laser radar, the end time of the k-th frame and the start time of frame k+1 are equal, the laser radar coordinate system {L} is a two-dimensional coordinate system, whose origin is located at the geometric center of the laser radar, and the k-th frame radar coordinate system {L k The i-th point in} is represented as p=[p 1 p 2 p 3 ] T =[x yθ] T Represents the pose vector. The world coordinate system {W} is a two-dimensional coordinate system. It coincides with {L} at the initial position. The world coordinate system {W} of the kth frame k}Mid-wheel odometer The pose at the moment is expressed as

[0009] 1.2 The start time and end time of the kth frame are and The measured pose of the wheel odometer at the corresponding timestamp is in represents the wheel odometer pose set in the world coordinate system of the kth frame, p (k,i) In the k-th frame time interval Inside The posture of the moment, is the kth frame The corresponding wheel odometer pose can be obtained by linear interpolation The estimated radar pose at time As shown below:

[0010]

[0011] Step 2, inter-frame coordinate transformation, the process is as follows

[0012] 2.1 Since the radar is usually scanned while moving, k Each point in has a frame coordinate system, and the radar pose in motion is represented by a 3×3 transformation matrix T, as shown in formula (2):

[0013]

[0014] Where R is a 2×2 rotation matrix and t is a 1×2 translation vector;

[0015] 2.2 Point x in different frame coordinate systems (k,i) Using the matching wheel odometry pose to correct the distorted point cloud, the lidar The points collected at the moment are mapped to the starting frame of the radar through formula (3), which is calculated as follows:

[0016]

[0017] in express The transformation matrix from radar frame to world frame at each moment;

[0018] Step 3: Optimize motion distortion compensation. The process is as follows:

[0019] 3.1 The two-dimensional space around the robot is divided into units of equal size, and the k-th frame point cloud X is collected in the two-dimensional space. k , find the unit containing the scan point, and calculate the scan point sample x in the unit respectively (k,i) The average value q k and the covariance matrix ∑ k :

[0020]

[0021] 3.2 Establish the normal distribution model of the probability density of the scanning point samples in this unit:

[0022]

[0023] Among them, exp is the exponential function, p(x) is the probability of normal distribution of the scanning point;

[0024] 3.3 Indicates that the k+1th frame scan point x is converted to (k+1,i) Mapped to the kth frame coordinate system, ∑ (k,i) and q (k,i) Respectively indicate points The covariance matrix and mean value of the normal distribution model of the corresponding k-th frame are calculated using the parameter ∑ (k,i) and q (k,i) Calculate all points The maximum value of the normal distribution cumulative sum, the sum s(p) is defined as:

[0025]

[0026] Where p is the pose vector parameter to be estimated, and argmax means that p is the parameter that makes the function s(p) reach the maximum value;

[0027] 3.4 Since the optimization problem is generally described as a minimization problem, the function s(p) is expressed as -s(p). The Newton method can be used to find the parameter p that makes the function optimal. The Newton method is used to iteratively solve the equation, which is shown in equation (7):

[0028] HΔp=-g (7)

[0029] H and g are the Hessian matrix and gradient vector of s(p), respectively. To simplify the formula, let The element g in the gradient vector g i for

[0030]

[0031] The elements H in the Hessian matrix H ij for

[0032]

[0033] 3.5 The solution of equation (7) is the increment Δp, which is added to the current estimated pose p in each iteration 0 , the initial value of the next iteration is p :

[0034] p=p 0 +Δp (10)

[0035] 3.6 By iteratively optimizing the estimated pose of the current frame, the precise pose parameter p is calculated, and the difference between p and p' is used as the wheel odometer error. The error is evenly distributed to each frame. Formula (1) is introduced to give the form of formula (11):

[0036]

[0037] Where n is the midpoint x of the kth frame (k,i) , p' is the wheel odometer pose increment.

[0038] Based on NDT point cloud registration and odometer, the present invention designs a compensation method for laser radar motion distortion. While solving the motion distortion problem, the accuracy of the SLAM system is improved, and accurate simultaneous positioning and mapping of mobile robots are achieved.

[0039] The technical concept of the present invention is: the odometer-assisted method can compensate for motion distortion with the help of a motion model, but it usually introduces the problem of odometer drift. A laser radar motion distortion compensation algorithm based on NDT registration and odometer is proposed. First, the radar motion is estimated with the help of the odometer in a low-precision but high-frequency measurement method, and then a linear distribution model of the odometer measurement error is established, and the NDT registration algorithm is used to achieve accurate matching of the point cloud to deal with the odometer drift, thereby improving the accuracy of radar motion estimation.

[0040] The beneficial effects of the present invention are: to reduce the influence of laser radar motion distortion on the positioning accuracy and mapping effect of the SLAM system, to achieve accurate estimation of radar motion, and to effectively compensate for motion distortion, thereby reducing the trajectory cumulative error of the SLAM system and generating a globally consistent map. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 Positioning trajectory for odometer-assisted motion distortion compensation method;

[0042] Figure 2 Positioning trajectory for the LiDAR motion distortion compensation method based on NDT registration and wheel odometer;

[0043] Figure 3 Maps built for odometry-assisted motion distortion compensation methods;

[0044] Figure 4 Maps built for the LiDAR motion distortion compensation method based on NDT registration and wheel odometer;

[0045] Figure 5 This is a flow chart of the laser radar motion distortion compensation method based on NDT registration and odometer. DETAILED DESCRIPTION

[0046] The present invention will be further described below in conjunction with the accompanying drawings.

[0047] Reference Figure 1-Figure 5 , a laser radar motion distortion compensation method based on NDT registration and odometer, comprising the following steps:

[0048] Step 1: Wheel odometer motion estimation. The process is as follows:

[0049] 1.1 Let X = {x i}, i=1,…,n is a frame point cloud set, x i represents the two-dimensional coordinate vector of the i-th point, X k represents the point cloud of the kth frame, x (k,i) represents the i-th point in the k-th frame, and t is the current timestamp, then is the start time of the kth frame, then is the time of the i-th point in the k-th frame. Due to the continuous scanning characteristics of the laser radar, the end time of the k-th frame and the start time of frame k+1 are equal, the laser radar coordinate system {L} is a two-dimensional coordinate system, whose origin is located at the geometric center of the laser radar, and the k-th frame radar coordinate system {L k The i-th point in} is represented as p=[p 1 p 2 p 3 ] T =[x yθ] T Represents the pose vector. The world coordinate system {W} is a two-dimensional coordinate system. It coincides with {L} at the initial position. The world coordinate system {W} of the kth frame k}Mid-wheel odometer The pose at the moment is expressed as

[0050] 1.2 The start time and end time of the kth frame are and The measured pose of the wheel odometer at the corresponding timestamp is in represents the wheel odometer pose set in the world coordinate system of the kth frame, p (k,i) In the k-th frame time interval Inside The posture of the moment, is the kth frame The corresponding wheel odometer pose can be obtained by linear interpolation The estimated radar pose at time As shown below:

[0051]

[0052] Step 2, inter-frame coordinate transformation, the process is as follows:

[0053] 2.1 Since the radar is usually scanned while moving, k Each point in has a frame coordinate system, and the radar pose in motion is represented by a 3×3 transformation matrix T, as shown in formula (2):

[0054]

[0055] Where R is a 2×2 rotation matrix and t is a 1×2 translation vector;

[0056] 2.2 Point x in different frame coordinate systems (k,i) Using the matching wheel odometry pose to correct the distorted point cloud, the lidar The points collected at the moment are mapped to the starting frame of the radar through formula (3), which is calculated as follows:

[0057]

[0058] in express The transformation matrix from radar frame to world frame at each moment;

[0059] Step 3: Optimize motion distortion compensation. The process is as follows:

[0060] 3.1 The two-dimensional space around the robot is divided into units of equal size, and the k-th frame point cloud X is collected in the two-dimensional space. k , find the unit containing the scan point, and calculate the scan point sample x in the unit respectively (k,i) The average value q k and the covariance matrix ∑ k :

[0061]

[0062] 3.2 Establish the normal distribution model of the probability density of the scanning point samples in this unit:

[0063]

[0064] Among them, exp is the exponential function, p(x) is the probability of normal distribution of the scanning point;

[0065] 3.3 Indicates that the k+1th frame scan point x is converted to (k+1,i) Mapped to the kth frame coordinate system, ∑ (k,i) and q (k,i) Respectively indicate points The covariance matrix and mean value of the normal distribution model of the corresponding k-th frame are calculated using the parameter ∑(k,i) and q (k,i) Calculate all points The maximum value of the normal distribution cumulative sum, the sum s(p) is defined as:

[0066]

[0067] Where p is the pose vector parameter to be estimated, and argmax means that p is the parameter that makes the function s(p) reach the maximum value;

[0068] 3.4 Since the optimization problem is generally described as a minimization problem, the function s(p) is expressed as -s(p). The Newton method can be used to find the parameter p that makes the function optimal. The Newton method is used to iteratively solve the equation, which is shown in equation (7):

[0069] HΔp=-g (18)

[0070] H and g are the Hessian matrix and gradient vector of s(p), respectively. To simplify the formula, let The element g in the gradient vector g i for

[0071]

[0072] The elements H in the Hessian matrix H ij for

[0073]

[0074] 3.5 The solution of equation (7) is the increment Δp, which is added to the current estimated pose p in each iteration 0 , the initial value of the next iteration is p:

[0075] p=p 0 +Δp (21)

[0076] 3.6 By iteratively optimizing the estimated pose of the current frame, the precise pose parameter p is calculated, and the difference between p and p' is used as the wheel odometer error. The error is evenly distributed to each frame. Formula (1) is introduced to give the form of formula (11):

[0077]

[0078] Where n is the midpoint x of the kth frame (k,i) , p' is the wheel odometer pose increment.

[0079] To verify the effectiveness of the proposed method, a lidar motion distortion compensation method based on NDT registration and odometer was simulated and compared with the odometer-assisted method. The data sets used by the two methods in the simulation were consistent.

[0080] Figure 1-Figure 4 This is a comparison chart of the simulation effects of laser radar motion distortion compensation. Figure 1 This is the robot positioning trajectory obtained using the odometer-assisted method. It can be seen from the figure that the robot failed to return to the starting point successfully, and the trajectory drifted greatly. Figure 2 The robot positioning trajectory is obtained using the NDT-based motion distortion compensation method. By comparison, the NDT-based motion distortion compensation method significantly improves the trajectory estimation, which is mainly manifested in the successful return to the starting point and the obvious trajectory closure effect. Figure 3 This is a map obtained using the odometer-assisted method. As can be seen from the figure, there are many inconsistencies in the constructed map. Figure 4 This is a map built based on the motion distortion compensation method of NDT. As can be seen from the figure, the motion distortion compensation method based on NDT produces a better mapping effect, the map consistency is more obvious, and the mapping accuracy is higher. From the simulation comparison of the trajectory and the map, it can be seen that compared with the odometer-assisted method, the laser radar motion distortion compensation method based on the present invention can accurately estimate the radar motion and effectively compensate for the motion distortion, thereby reducing the trajectory cumulative error and generating a globally consistent map. From the results of the simulation experiment, the laser radar motion distortion compensation method based on NDT alignment and odometer can effectively solve the motion distortion phenomenon, realize accurate estimation of radar motion, and effectively compensate for motion distortion, thereby reducing the trajectory cumulative error of the SLAM system and generating a globally consistent map, thereby improving the accuracy of the SLAM system.

[0081] The above describes the excellent optimization effect shown by an embodiment of the present invention. Obviously, the present invention is not limited to the above embodiment, and various modifications can be made to it without departing from the basic spirit of the present invention and without exceeding the scope of the essential content of the present invention.

Claims

1. A laser radar motion distortion compensation method based on NDT registration and wheel odometer, characterized in that the method comprises the following steps: Step 1: Wheel odometer motion estimation. The process is as follows: 1.1 Let X = {x i}, i=1,…,n is a frame point cloud set, x i represents the two-dimensional coordinate vector of the i-th point, X k represents the point cloud of the kth frame, x (k,i) represents the i-th point in the k-th frame, and t is the current timestamp, then is the start time of the kth frame, then is the time of the i-th point in the k-th frame. Due to the continuous scanning characteristics of the laser radar, the end time of the k-th frame and the start time of frame k+1 are equal, the laser radar coordinate system {L} is a two-dimensional coordinate system, whose origin is located at the geometric center of the laser radar, and the k-th frame radar coordinate system {L k The i-th point in} is represented as p=[p 1 p 2 p 3 ] T =[xy θ] T Represents the pose vector. The world coordinate system {W} is a two-dimensional coordinate system. It coincides with {L} at the initial position. The world coordinate system {W} of the kth frame k}Mid-wheel odometer The pose at the moment is expressed as 1.2 The start time and end time of the kth frame are and The measured pose of the wheel odometer at the corresponding timestamp is in represents the wheel odometer pose set in the world coordinate system of the kth frame, p (k,i) In the k-th frame time interval Inside The posture of the moment, is the kth frame The corresponding wheel odometer pose can be obtained by linear interpolation The estimated radar pose at time As shown below: Step 2, inter-frame coordinate transformation, the process is as follows: 2.1 Since the radar is usually scanned while moving, k Each point in has a frame coordinate system, and the radar pose in motion is represented by a 3×3 transformation matrix T, as shown in formula (2): Where R is a 2×2 rotation matrix and t is a 1×2 translation vector; 2.2 Point x in different frame coordinate systems (k,i) Using the matching wheel odometry pose to correct the distorted point cloud, the lidar The points collected at the moment are mapped to the starting frame of the radar through formula (3), which is calculated as follows: in express The transformation matrix from radar frame to world frame at each moment; Step 3: Optimize motion distortion compensation. The process is as follows: 3.1 The two-dimensional space around the robot is divided into units of equal size, and the point cloud X of the kth frame in the two-dimensional space is collected. k , find the unit containing the scan point, and calculate the scan point sample x in the unit respectively (k,i) The average value q k and the covariance matrix ∑ k : 3.2 Establish the normal distribution model of the probability density of the scanning point samples in this unit: in, exp is the exponential function, p(x) is the probability of normal distribution of the scanning point; 3.3 Indicates that the k+1th frame scan point x is converted to (k+1,i) Mapped to the kth frame coordinate system, ∑ (k,i) and q (k,i) Respectively indicate points The covariance matrix and mean value of the normal distribution model of the corresponding k-th frame are calculated using the parameter ∑ (k,i) and q (k,i) Calculate all points The maximum value of the normal distribution cumulative sum, the sum s(p) is defined as: Where p is the pose vector parameter to be estimated, and argmax means that p is the parameter that makes the function s(p) reach the maximum value; 3.4 Since the optimization problem is generally described as a minimization problem, the function s(p) is expressed as -s(p). The Newton method can be used to find the parameter p that makes the function optimal. The Newton method is used to iteratively solve the equation, which is shown in equation (7): HΔp=-g (7) H and g are the Hessian matrix and gradient vector of s(p), respectively. To simplify the formula, let The element g in the gradient vector g i for The elements H in the Hessian matrix H ij for 3.5 The solution of equation (7) is the increment Δp, which is added to the current estimated pose p in each iteration 0 , the initial value of the next iteration is p: p=p 0 +Δp (10) 3.6 By iteratively optimizing the estimated pose of the current frame, the precise pose parameter p is calculated, and the difference between p and p' is used as the wheel odometer error. The error is evenly distributed to each frame. Formula (1) is introduced to give the form of formula (11): in, n is the midpoint x of the kth frame (k,i) , p' is the wheel odometer pose increment.