Ground continuous tracking method and device based on point cloud and medium

The sliding least squares method is used to update the ground plane parameters in real time in the SLAM system, which solves the problems of low ground detection accuracy and poor real-time performance in the SLAM system, and achieves smooth continuous updating of ground plane parameters and improved robustness.

CN118776547APending Publication Date: 2024-10-15QINGDAO YUNMAO PROTECTIVE PRODUCTS CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410768061.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing SLAM systems have problems in ground detection such as low detection accuracy, high algorithm complexity, poor real-time performance, and discontinuous update of ground plane parameters. Especially when point cloud data is unstable, it results in low ground estimation frequency and parameter jumps.

Method used

The sliding least squares method is used to update the ground plane. The parameters of the ground plane are updated in real time through the cost function. The ground candidate points in the point cloud data are used for fitting in units of points. Statistics are dynamically maintained to maintain the smoothness and continuity of the parameters. .

Benefits of technology

It achieves real-time updating of ground equations and smooth continuous tracking in the SLAM system, avoids parameter jumps, and improves the robustness and real-time performance of ground detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118776547A_ABST
    Figure CN118776547A_ABST
Patent Text Reader

Abstract

The invention relates to a ground continuous tracking method and device based on point cloud, and a medium. The method comprises the following steps: collecting point cloud data of surrounding roads based on a radar, and screening ground candidate point clouds; updating a ground plane by adopting a sliding least square method to realize ground continuous tracking; performing ground plane fitting according to a frame of ground candidate point cloud by utilizing the least square method; and for the ground candidate points in the point cloud data of the new frame, taking the points as units, substituting the coordinate values of the points into the cost function, and updating the parameters of the ground plane in real time by minimizing the cost function value. Compared with the prior art, the method has the advantages of being capable of tracking the ground smoothly and continuously and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ground tracking technology, and in particular to a point cloud-based ground continuous tracking method, device and medium. Background Art

[0002] SLAM (Simultaneous Localization and Mapping), i.e. simultaneous localization and map construction, is an important technology in the field of robotics. In SLAM systems, ground detection is an important preprocessing step. Accurate ground detection can help the system better understand the environment, improve the accuracy of map construction and the positioning accuracy of the robot. In recent years, with the rapid development of LiDAR technology, more and more SLAM systems have begun to use point cloud data for ground detection. However, ground detection technology faces a series of challenges, such as the need to improve detection accuracy, the need to process more point cloud data, and the complexity of the algorithm will increase, making it difficult to maintain real-time performance in practical applications. In addition, there is a smoothness problem in the process of updating the ground model in real time. When updating the ground model equation in units of one frame of point cloud, the ground plane parameters of two adjacent frames may jump due to the instability of the position and quantity information of point clouds in different frames.

[0003] There are two problems with the method of ground estimation in frames: 1. Ground estimation occurs after each state update, which makes the frequency of the ground estimation module the same as the frequency of radar data collection, and the time between two ground estimates is relatively long. Since the ground plane parameters are solved by analytical methods, the update of parameters will become discontinuous and jumpy. 2. The above method relies on the ability to stably and effectively extract a certain number of ground points in each frame of the point cloud. However, in actual movement, the ground may not always appear. When the number of ground points obtained by the lidar scan is too small, the above method will fail. Summary of the invention

[0004] The purpose of the present invention is to provide a point cloud-based ground continuous tracking method, device and medium, so as to achieve real-time updating of ground equations in a SLAM system and to track the ground smoothly and continuously.

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

[0006] A ground continuous tracking method based on point cloud includes the following steps:

[0007] S1, collects surrounding road point cloud data based on radar and screens ground candidate point clouds;

[0008] S2 uses the sliding least squares method to update the ground plane and realize continuous ground tracking: the least squares method is used to fit the ground plane according to a frame of ground candidate point cloud; for the ground candidate points in the new frame of point cloud data, the coordinate values ​​of the points are substituted into the cost function in units of points, and the parameters of the ground plane are updated in real time by minimizing the cost function value.

[0009] The cost function is:

[0010]

[0011] Where: x i ,y i , z i is the coordinate value of the candidate ground point, a, b, c are the sliding least squares parameters to be solved, and n is the number of candidate ground points.

[0012] In step S2, before substituting the new point coordinates into the cost function, all points contained in the cost function are traversed, and their distances from the currently added point are calculated respectively. According to a preset distance threshold, the points in the cost function whose distances from the currently added point exceed the distance threshold are removed.

[0013] The step S2 specifically includes: setting intermediate variables, converting the problem of updating the ground plane by the sliding least squares method into the problem of real-time maintenance of statistics based on the intermediate variables; updating the statistics according to the coordinate values ​​of the points in the new frame, and updating and solving the parameters.

[0014] The statistics are in points, and the fitting plane parameters are updated by dynamically updating the increase or decrease of points in the statistics and updating the coordinates.

[0015] The parameter updating method of the sliding least squares method is:

[0016] The cost function L is derived from a, b, and c to obtain L a , L b , L c , as shown below:

[0017]

[0018] Let the intermediate variable S x , S y , S z , S xx , S yy and S xy , S xz , S yz , as shown below:

[0019]

[0020] Substituting the intermediate variable into the cost function and setting the partial derivative of the cost function to 0, we get:

[0021]

[0022] Solve the above equations to get the fitting plane parameters Values:

[0023]

[0024] The method of fitting the ground plane using the least squares method according to a frame of ground candidate point cloud is specifically as follows:

[0025] Suppose the point set with n three-dimensional points is Assume the plane equation is ax+by+z+c=0, Substituting the points in the plane equation, we get a system of n equations:

[0026]

[0027] Convert the equations in the above system of equations into non-homogeneous form, and we get the following non-homogeneous system of equations:

[0028]

[0029] Using matrices to represent the non-homogeneous system of equations, we get:

[0030]

[0031] set up The system of equations is converted to Ax=b;

[0032] Let the least squares solution be

[0033]

[0034] For the matrix representation Ax=b, the least squares solution is

[0035] A ground continuous tracking device based on point cloud, comprising:

[0036] Point cloud acquisition and screening module: collects point cloud data of surrounding roads based on radar and screens candidate ground point clouds;

[0037] Ground tracking module: Use sliding least squares method to update the ground plane and realize continuous ground tracking: Use least squares method to fit the ground plane according to a frame of ground candidate point cloud; for the ground candidate points in a new frame of point cloud data, substitute the coordinate value of the point into the cost function in units of points, and update the parameters of the ground plane in real time by minimizing the cost function value.

[0038] A point cloud-based ground continuous tracking device comprises a memory, a processor, and a program stored in the memory, wherein the processor implements the method described above when executing the program.

[0039] A storage medium stores a program, which implements the method described above when executed.

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

[0041] 1. The present invention proposes a method of using sliding least squares method to complete the update of the ground plane in units of points. When a new frame appears, statistics are maintained to update the ground parameters according to the update of the points, avoiding the parameter jump problem caused by the analytical method. The ground update time is short, making the change of the ground plane parameters smooth and continuous.

[0042] 2. The present invention updates the historical point cloud only according to the point cloud in the newly added point cloud frame, and does not completely rely on the point cloud data of the current frame for plane fitting, so it has a certain robustness against the interference of some point cloud frames with few ground points. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

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

[0045] In one technique, a point cloud window of length N is maintained. After a new point cloud frame enters the dynamic tracking module, the point cloud window is updated, and then the point cloud in the point cloud window is used to obtain the accumulated point cloud. The RANSAC algorithm is used to perform multiple iterations on the accumulated point cloud to obtain a new ground plane model.

[0046] However, there are two problems with this method: the first is the real-time problem. Since it is necessary to maintain a point cloud window of length N and complete the plane segmentation of the union of the point clouds, and RANSAC needs to be iterated multiple times, the time complexity of the above algorithm is very high and cannot maintain real-time performance in practical applications. The second is the smoothness problem. The above method updates the candidate point cloud in units of point clouds, but the number of candidate ground points in the point cloud is unstable, and the ground plane parameters of two adjacent frames may jump.

[0047] Based on this, this embodiment provides a ground continuous tracking method based on point cloud, such as Figure 1 As shown, the following steps are included:

[0048] S1, collects surrounding road point cloud data based on radar and screens ground candidate point clouds.

[0049] In one embodiment, S1 includes the following steps:

[0050] S11, start the radar in the car and collect point cloud data of the surrounding roads based on the radar.

[0051] S12, establishing a radar coordinate system and performing dedistortion processing on the point cloud data.

[0052] S121, establish a radar coordinate system with the laser emission point as the origin, the front of the vehicle on which the radar is installed as the positive direction of the X axis, and the left side of the vehicle as the positive direction of the Y axis;

[0053] S122, using the angular velocity and acceleration data of the inertial measurement unit (IMU), forward integration is performed to obtain a pose transformation of a frame of point cloud;

[0054] S123, since the time is very short, the car is considered to move at a uniform speed within one frame. Based on this assumption, time interpolation is used to perform distortion compensation on each point, and each point is projected to the initial moment to obtain a frame of dedistorted point cloud.

[0055] S13, determining the gravity direction based on the inertial measurement unit (IMU), establishing a gravity coordinate system, and updating the gravity vector in real time according to the posture transformation between each frame of radar data output by the odometer.

[0056] On the manifold S 2 The updating process of the gravity vector g on the surface is similar to the rotation process of the three-dimensional vector: the two-dimensional vector of the tangent plane is obtained according to the posture transformation between the front and rear frame radar data output by the front-end odometer of the car, the two-dimensional vector of the tangent plane is mapped to the three-dimensional space, and the mapped vector is regarded as the rotation vector. The rotation vector is remapped to the manifold SO(3) through exponential mapping, and SO(3) is applied to the gravity vector g to obtain the updated gravity vector

[0057] Specifically, let the manifold S 2 The variable on the surface is g, the variable on the tangent plane is δg, R g (δg) represents the rotation vector after mapping the variable δg on the tangent plane to the three-dimensional space;

[0058] Let gravity vector g = [x, yz] T , the update process of g is expressed as:

[0059]

[0060] in, Represents the manifold S 2 Exp represents the natural exponential function.

[0061] In this embodiment, the calculation method of the rotation vector refers to the method proposed by MTK (Manifold Toolkit), which is as follows:

[0062] The rotation vector R g (δg) is considered as a 3×2 matrix B g Multiply δg on the left, as shown below:

[0063]

[0064] Among them, B g Column vector of Satisfies g⊥b1, g⊥b2, b1⊥b2, that is, B g The plane spanned by the two column vectors satisfies the properties of the tangent plane of the point on the unit sphere in the geometric space;

[0065] B g The result of δg is regarded as a linear combination of b1 and b2, and the mapped rotation vector R g (δg) is perpendicular to g, let δg = [δu, δv] T , get the mapped rotation vector R g The modulus of (δg) is:

[0066]

[0067] According to R g (δg)=δub1+δvb2, calculated to get B g Then, the rotation vector R g The rotation direction corresponding to (δg) is uniquely determined by the direction of δg. Therefore, δg uniquely determines the rotation direction and rotation angle of g update.

[0068] After completing the definition of the update of the gravity vector, the update of the gravity vector can be integrated into the front-end odometer, so that the gravity vector is output in real time while the front-end odometer is updating its status.

[0069] S14, determining a posture transformation relationship between the gravity coordinate system and the radar coordinate system according to the value of the gravity vector in the radar coordinate system, and projecting the point cloud of the radar coordinate system into the gravity coordinate system.

[0070] After the real-time estimation of the gravity vector is completed at the front end of the system, the point cloud needs to be transferred from the lidar coordinate system to the gravity coordinate system. Convert to The three-dimensional coordinates of the origin of the gravity coordinate system and the lidar coordinate system in the world coordinate system are the same, so the two coordinate systems only differ by a rotation. G R L (Rotation matrix from the lidar coordinate system L to the gravity coordinate system G).

[0071] S141, calculate the rotation amount:

[0072] Calculate the gravity vector representation in the radar coordinate system L g: Among them, B represents the IMU coordinate system, L represents the lidar coordinate system, and W represents the world coordinate system. I R J Represents the rotation matrix from the J coordinate system to the I coordinate system.

[0073] set up L g=[x L ,y L , z L ] T , the gravity vector is expressed in the gravity coordinate system as G g=[0,0,1] T , calculate the rotation amount according to the following formula G R L :

[0074]

[0075] Among them, Exp represents the natural exponential mapping function, and atan2(*) represents the binary inverse tangent function.

[0076] S142, the origin of the gravity coordinate system and the radar coordinate system has the same three-dimensional coordinates in the world coordinate system, and the two coordinate systems only differ by the rotation amount. G R L , based on the rotation G R L Get the transformation matrix from L system to G system in homogeneous coordinates:

[0077]

[0078] Among them, 03 represents a 3×1 zero matrix.

[0079] S143, set G T L The corresponding three-dimensional coordinate linear transformation is Transformation-based Project the point cloud of the radar coordinate system into the gravity coordinate system, where: represents the point cloud coordinates in the radar coordinate system, Represents the point cloud coordinates in the gravity coordinate system.

[0080] S15, traversing all point cloud data, and performing point cloud screening based on the comparison result between the point cloud coordinates in the gravity coordinate system and the distance threshold.

[0081] S151, accumulate point clouds in multiple consecutive point cloud frames:

[0082] Assume that the number of accumulated point cloud frames is N, and the LiDAR coordinate system of the i-th point cloud frame is represented by L i , the gravity coordinate system is represented by G i , the IMU coordinate system is represented by B i , the point cloud accumulated by multiple consecutive point cloud frames is calculated by the following formula

[0083]

[0084] Where W represents the world coordinate system, represents the transformation matrix from the J coordinate system to the I coordinate system, Represents the point cloud in the laser radar coordinate system;

[0085] S152, screening ground candidate point clouds from the accumulated point clouds:

[0086] Preset the threshold z in the z-axis direction th , take the point cloud smaller than the threshold as the candidate ground point, and get the ground candidate point cloud

[0087]

[0088] S2 uses the sliding least squares method to update the ground plane and realize continuous ground tracking: the least squares method is used to fit the ground plane according to a frame of ground candidate point cloud; for the ground candidate points in the new frame of point cloud data, the coordinate values ​​of the points are substituted into the cost function in units of points, and the parameters of the ground plane are updated in real time by minimizing the cost function value.

[0089] This embodiment first introduces an algorithm based on least squares fitting plane.

[0090] Suppose the point set with n three-dimensional points is Assume the plane equation is ax+by+z+c=0, Substituting the points in the plane equation, we get a system of n equations:

[0091]

[0092] Convert the equations in the above system of equations into non-homogeneous form, and we get the following non-homogeneous system of equations:

[0093]

[0094] Using matrices to represent the non-homogeneous system of equations, we get:

[0095]

[0096] set up The system of equations is converted to Ax=b;

[0097] In practice, n is much larger than 3, and the system of equations is overdetermined, so we can only find the least squares solution to this problem. Let the least squares solution be

[0098]

[0099] For the matrix representation Ax=b, the least squares solution is

[0100] The following proves Split b into two n-dimensional vectors b p and b e :b=b p +b e . Where b p In the space spanned by the column vectors of A, and b e is perpendicular to this space, so that ||Ax-b|| 2 The minimum value of ||b e || 2 , so we only need to make Ax-b p =0 n So

[0101] The plane estimation method based on the least squares method can also achieve the effect of estimating the ground plane. When entering the system, first use the coefficient of the last ground segmentation to obtain The point cloud belonging to the ground is then used to calculate new ground plane parameters according to the least squares method. Although the above method can achieve real-time performance compared to the point cloud window and RANSAC-based methods, there are still two problems: 1. Ground estimation occurs after each state update, which makes the ground estimation module a 10Hz module, and the two ground estimates are 0.1 seconds apart. Since the ground plane parameters are solved by an analytical method, the parameter update becomes discontinuous and jumps occur. 2. The above method relies on the ability to stably and effectively extract a certain number of ground points in each frame of the point cloud. However, in actual movement, the ground may not always appear. When the number of ground points obtained by the lidar scan is too small, the above method will fail.

[0102] These two problems are similar to those of point cloud window-based and RANSAC-based methods, and are essentially caused by updating the ground plane in units of point clouds. Therefore, the present invention proposes a method of using a sliding least squares method to complete the update of the ground plane in units of points, thereby making the change of ground plane parameters smooth.

[0103] Specifically, the cost function is set as:

[0104]

[0105] Where: x i ,y i , z i is the coordinate value of the candidate ground point, a, b, c are the sliding least squares parameters to be solved, and n is the number of candidate ground points. Minimize equation (1) to solve the parameters and obtain the fitting plane equation.

[0106] The cost function L is derived from a, b, and c to obtain L a , L b , L c , as shown below:

[0107]

[0108] In order to obtain a better solution, this embodiment sets intermediate variables and converts the problem of updating the ground plane using the sliding least squares method into the problem of maintaining statistics based on the intermediate variables in real time; the statistics are updated according to the coordinate values ​​of the points in the new frame, and the parameters are updated and solved.

[0109] Let the intermediate variable S x , S y , S z , S xx , S yy and S xy , S xz , S yz , as shown below:

[0110]

[0111] Substituting the intermediate variable into the cost function and setting the partial derivative of the cost function to 0, we get:

[0112]

[0113] Solve the equations shown in formula (4) to obtain the fitting plane parameters Values:

[0114]

[0115] Therefore, x can be expressed by the statistic S = (n, Sx , S y , S z , S xx , S xy , S xz , S yy , S yz ), so the problem of estimating the ground plane parameters in real time is transformed into the problem of maintaining the statistics S in real time. The fitting plane parameters are updated by dynamically updating the increase and decrease of points in the statistics and updating the coordinates. It can be observed from formula (3) that the statistics can be updated in points, supporting the dynamic increase and decrease of points, which allows the real-time update of the ground plane to be completed in points.

[0116] In a preferred embodiment, before substituting the coordinates of the new point into the cost function, all points included in the cost function are traversed, and their distances to the currently added point are calculated respectively, and the distance threshold th is set according to the preset distance threshold. g , remove the points in the cost function whose distance from the current point exceeds the distance threshold th g point.

[0117] This embodiment also provides a ground continuous tracking device based on point cloud, including:

[0118] Point cloud acquisition and screening module: collects point cloud data of surrounding roads based on radar and screens candidate ground point clouds;

[0119] Ground tracking module: Use sliding least squares method to update the ground plane and realize continuous ground tracking: Use least squares method to fit the ground plane according to a frame of ground candidate point cloud; for the ground candidate points in a new frame of point cloud data, substitute the coordinate value of the point into the cost function in units of points, and update the parameters of the ground plane in real time by minimizing the cost function value.

[0120] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0121] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, 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. The computer software product is stored in a storage medium, including several instructions for 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, etc., which can store program code.

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

Claims

1. A ground continuous tracking method based on point cloud, characterized in that: The following steps are involved: S1, collects surrounding road point cloud data based on radar and screens ground candidate point clouds; S2 uses the sliding least squares method to update the ground plane and realize continuous ground tracking: the least squares method is used to fit the ground plane according to a frame of ground candidate point cloud; for the ground candidate points in the new frame of point cloud data, the coordinate values ​​of the points are substituted into the cost function in units of points, and the parameters of the ground plane are updated in real time by minimizing the cost function value.

2. The point cloud-based ground continuous tracking method according to claim 1, characterized in that: The cost function is: Where: x i ,y i , z i is the coordinate value of the candidate ground point, a, b, c are the sliding least squares parameters to be solved, and n is the number of candidate ground points.

3. The point cloud-based ground continuous tracking method according to claim 1, characterized in that: In step S2, before substituting the new point coordinates into the cost function, all points contained in the cost function are traversed, and their distances from the currently added point are calculated respectively. According to a preset distance threshold, the points in the cost function whose distances from the currently added point exceed the distance threshold are removed.

4. The point cloud-based ground continuous tracking method according to claim 1, characterized in that: The step S2 specifically includes: setting intermediate variables, converting the problem of updating the ground plane by the sliding least squares method into the problem of real-time maintenance of statistics based on the intermediate variables; updating the statistics according to the coordinate values ​​of the points in the new frame, and updating and solving the parameters.

5. The point cloud-based ground continuous tracking method according to claim 4, characterized in that: The statistics are in points, and the fitting plane parameters are updated by dynamically updating the increase or decrease of points in the statistics and updating the coordinates.

6. The point cloud-based ground continuous tracking method according to claim 2, characterized in that: The parameter updating method of the sliding least squares method is: The cost function L is derived from a, b, and c to obtain L a , L b , L c , as shown below: Let the intermediate variable S x , S y , S z , S xx , S yy and S xy , S xz , S yz , as shown below: Substituting the intermediate variable into the cost function and setting the partial derivative of the cost function to 0, we get: Solve the above equations to get the fitting plane parameters Values:

7. The point cloud-based ground continuous tracking method according to claim 1, characterized in that: The method of fitting the ground plane using the least squares method according to a frame of ground candidate point cloud is specifically as follows: Suppose the point set with n three-dimensional points is Assume the plane equation is ax+by+z+c=0, Substituting the points in the plane equation, we get a system of n equations: Convert the equations in the above system of equations into non-homogeneous form, and we get the following non-homogeneous system of equations: Using matrices to represent the non-homogeneous system of equations, we get: set up The system of equations is converted to Ax=b; Let the least squares solution be For the matrix representation Ax=b, the least squares solution is 8. A ground continuous tracking device based on point cloud, characterized in that: include: Point cloud acquisition and screening module: collects point cloud data of surrounding roads based on radar and screens candidate ground point clouds; Ground tracking module: Use sliding least squares method to update the ground plane and realize continuous ground tracking: Use least squares method to fit the ground plane according to a frame of ground candidate point cloud; for the ground candidate points in a new frame of point cloud data, substitute the coordinate value of the point into the cost function in units of points, and update the parameters of the ground plane in real time by minimizing the cost function value.

9. A ground continuous tracking device based on point cloud, comprising a memory, a processor, and a program stored in the memory, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A storage medium having a program stored thereon, characterized in that: When the program is executed, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Gradient estimation device and method

    CN119394268A

  • A slope estimation device and method

    CN119394268B