LiDAR dynamic point cloud elimination method and device
Through curvature extraction and IMU error classification of feature points, combined with the factor graph model, the problem of reduced positioning accuracy of LiDAR in urban dynamic environments is solved, and high-precision dynamic point cloud elimination and positioning performance improvement are achieved.
Patent Information
- Application Number
- CN202410410876.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-08
- Publication Date
- 2024-08-23
AI Technical Summary
Most of the existing LiDAR point cloud positioning methods are based on static environment assumptions and cannot effectively handle moving objects in dynamic environments in cities, resulting in a decrease in point cloud matching accuracy and affecting the accuracy of positioning and mapping.
Curvature is used as a feature extraction index, spherical projection is used to reduce point cloud processing calculations, IMU errors are used to calculate the resolution of divided plane point clouds, spatial features are extracted and factor maps are constructed, local dynamic point clouds are eliminated, and static point cloud maps are constructed to improve Positioning accuracy.
Determine the resolution of the spherical projection unit that divides LiDAR feature points through the IMU error, balance the calculation amount and detection accuracy, effectively detect and eliminate dynamic point clouds, improve the positioning performance of the LiDAR/SINS combined system in urban dynamic environments, and improve the detection of complex dynamic environments. adaptability.
Smart Images

Figure CN118533189A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser radar navigation technology, and in particular to a method and device for eliminating LiDAR dynamic point clouds by using measurement signals in a combined navigation system mode of LiDAR (Light Detection and Ranging) and SINS (Strapdown Inertial Navigation System), and is particularly suitable for automatic driving auxiliary navigation equipment of vehicles traveling in urban dynamic environments. Background Art
[0002] The positioning technology of the vehicle navigation system is one of the key technologies for achieving navigation and autonomous driving. The LiDAR / SINS integrated navigation system can effectively improve the overall performance and environmental adaptability of the system through the fusion of LiDAR and SINS sensor information. It can also effectively limit the error accumulation of SINS in an environment without satellite navigation signals, providing an accurate, stable and robust navigation solution. In terms of the LiDAR / SINS integrated navigation system algorithm, the factor graph can solve the problems of asynchronous transmission, plug-and-play, and fusion of multi-rate data of the measured values in the system, and can also solve the problem of nonlinearity of the state equation or observation equation. It has good scalability and flexibility and has been widely used in the state estimation problem of the navigation system in recent years. However, most of the existing LiDAR point cloud positioning methods are based on the assumption of a static environment, while in an urban environment, there are a large number of moving cars and pedestrians. The presence of dynamic objects will change the spatial structure of the environment, resulting in a decrease in the accuracy of point cloud matching, thereby affecting the accuracy of positioning and mapping. Therefore, for the fusion positioning system involving LiDAR, the dynamic environment point cloud needs to be properly processed to ensure system performance. Summary of the invention
[0003] In view of this, the present invention provides a LiDAR dynamic point cloud removal method, comprising:
[0004] Step 1: Use curvature as a feature extraction index to extract the feature points of the LiDAR key frame as input data for subsequent processing steps;
[0005] Step 2: construct a spherical projection of the feature point, project the 3D feature point onto a plane, reduce the amount of point cloud processing calculations, and calculate the resolution of the plane point cloud according to the measured inertial unit IMU error;
[0006] Step 3: Extract the spatial features of the projected feature points, divide the plane point cloud into division units using the calculated resolution, and design indicators to extract the spatial features of the plane point cloud units in the division units, and eliminate local dynamic point clouds by comparing the spatial features;
[0007] Step 4: constructing process model factor nodes and measurement model factor nodes to form a factor graph; the factor graph uses the static point cloud and the measurement inertial unit IMU data to establish a connection between the current system state and the previous state and is used for optimization calculation;
[0008] Step 5: Construct a static point cloud map of the LiDAR, and calculate the system navigation solution through the factor graph. The navigation solution provides the system's three-dimensional position, three-dimensional velocity, and three-dimensional attitude angle information. Use the navigation solution to project the current frame static point cloud to the map coordinate system.
[0009] In particular, step 1 specifically includes: using curvature C as an extraction index to extract the feature points of the k-th frame point cloud. For a certain feature point i in the k-th frame point cloud, the calculation expression of the corresponding curvature C is:
[0010]
[0011] In the formula, is the coordinate of feature point i in the k-th frame point cloud in the LiDAR coordinate system (i=1,...,N), L represents the LiDAR coordinate system, and N is the total number of feature points; is the coordinate of point j in the k-th frame point cloud in the LiDAR coordinate system, S is the set of 5 points adjacent to point i on the same line of laser beam, j∈S means j is a point in point set S, |S| represents the number of points in point set S, || || represents the Euclidean distance;
[0012] According to the size of the curvature C as the curvature threshold, the features of the points are divided into two categories, namely edge points and plane points; points greater than the curvature threshold are edge points, and points less than the curvature threshold are plane points; the extracted feature points are used as input data for subsequent processing steps.
[0013] In particular,
[0014] The step 2 specifically includes: for the kth frame point cloud from which feature points have been extracted: The acceleration and angular velocity output by the IMU are used to roughly estimate the pose of the point cloud in the frame. Find the historical frame point cloud near the frame point cloud to form a sub-graph according to the pose At the same time, the kth frame point cloud in the LiDAR coordinate system Convert the k-th frame point cloud to the map coordinate system
[0015]
[0016] Use the pose of the historical frame point cloud to transform the sub-image Also converted to the map coordinate system, get the sub-map in the map coordinate system
[0017]
[0018] The k-frame point cloud in the map coordinate system and sub-maps in map coordinate system The feature points in are projected into the spherical coordinate system. The specific conversion formula is:
[0019]
[0020] In the formula, (x i ,y i ,z i ) is any i-th feature point p i The three-dimensional coordinates in the map coordinate system, (u i ,v i ) is the coordinate projected into the spherical coordinate system, r i For point p i The distance to the origin of the map coordinate system, f = f up +f down is the vertical field of view of the LiDAR, f up represents the upper field of view angle of the laser radar, f down Indicates the downward field of view angle of the laser radar; w and h are proportional adjustment coefficients, h is generally taken as the number of laser radar lines, and w is taken as 360;
[0021] The three-dimensional attitude angle error and three-dimensional position error in the corresponding system state error are obtained by measuring the IMU error propagation equation. The IMU three-dimensional attitude angle error corresponding to the k-th frame point cloud in the local navigation coordinate system is defined as The IMU three-dimensional position error corresponding to the k-th frame point cloud in the local navigation coordinate system is but
[0022]
[0023] In the formula, ω is the three-axis measurement value of the gyroscope, [ω] × It represents the antisymmetric matrix of ω, Ι is the unit matrix, and Δt is the sampling interval of IMU; They are the IMU attitude angle error corresponding to the k-1th frame, the IMU position error in the local navigation coordinate system, the IMU velocity error in the nth system, the accelerometer bias error and the gyroscope bias error; n ω 、n a , They are gyroscope measurement noise, accelerometer measurement noise, gyroscope random walk noise, and accelerometer random walk noise respectively;
[0024] Calculate the IMU 3D position error corresponding to the k-th frame point cloud and attitude angle error Finally, the position error and attitude angle error are converted into the resolution r of the spherical projection of the feature points through empirical formulas;
[0025]
[0026] Where α is a value between 0 and 1, which is used to balance the weight of position error and attitude angle error on resolution, and |·| represents the modulus operation;
[0027] In order to avoid the influence of outliers, the lower limit of the resolution r0 is set. The final adjusted resolution r f for
[0028] r f =max(βr,r0)
[0029] Where β is a coefficient greater than 1, which is used to appropriately amplify the calculated resolution. f is the vertical field of view of the LiDAR, N v is the number of LiDAR lines, r0 represents the vertical resolution of the point cloud, and setting r0 as the lower limit of the resolution of the partition plane point cloud can effectively avoid the situation where there are empty elements in the feature point spherical projection partition unit;
[0030] According to the calculated resolution r f Divide the current frame projection feature point set and projection sub-image.
[0031] In particular, the step 3 specifically includes:
[0032] For the index (m, n) of the division unit, extract the k-frame feature point set in the map coordinate system and sub-maps in map coordinate system Spatial characteristics and Wherein m represents the index of the elevation division unit of the spherical projection, and n represents the index of the azimuth division unit of the spherical projection;
[0033]
[0034] in The point set in the projection point cloud partition unit (m,n) of the feature point set of the kth frame, Point Set The set of x-axes projected on the xy plane, Point Set The set of y axes projected on the xy plane, mean() represents the mean operation, The point set in the projection point cloud partition unit (m,n) for the k-th frame sub-image; Δr xy The average value of the distance from the points in the divided unit to the origin of the map coordinate system projected on the xy plane is calculated;
[0035] After extracting the spatial features of the feature point set and the corresponding sub-graph, the similarity of their spatial features can be measured by the difference;
[0036]
[0037] Determine the k-frame feature point set in the map coordinate system Points in is a dynamic condition for the spatial feature similarity index is greater than the threshold τ, which is set according to different dynamic environments; finally, the dynamic point is defined as
[0038]
[0039] Static points are the complement of dynamic points in the same LiDAR frame point cloud Then, the k-frame pose is estimated by the output data of the measuring inertial unit IMU The static point cloud in the map coordinate system Converted to the radar coordinate system, we get in
[0040]
[0041] In particular, the step 4 specifically includes: step 4.1, calculating the process model factor node, that is, the SINS pre-integration node, including:
[0042] At the measuring time t k The output measurement value of the IMU in the carrier coordinate system b is the specific force and angular velocity Let the IMU measurement value
[0043] is the accelerometer zero bias of the IMU on the three axes of the b system, is the gyro zero bias of IMU on the three axes of b system, during the measurement period [t k ,t k+1 ], ignoring the earth's rotation factor, the mechanical arrangement equation of inertial navigation in the n system is
[0044]
[0045]
[0046]
[0047] in and t k+1 The quaternion form of the position estimate, velocity estimate and attitude estimate of the system at the moment; n a and n ω are the measurement noise of the accelerometer and gyroscope respectively; g n is the projection of gravitational acceleration in the n system; represents the instantaneous attitude rotation matrix from b system to n system; Δt k =t k+1 -t k is the time interval, b k Indicates time t k The carrier coordinate system under is the quaternion multiplication operation;
[0048] The state quantity of the integral part in the arrangement equation is extracted, and only the part related to the original measurement is left in the integral part. This process is called pre-integration, and its specific expression is:
[0049]
[0050]
[0051]
[0052] In the formula, and Arrange the pre-integrated components in the equations for position, velocity, and attitude, respectively. is t in b system k The attitude rotation matrix from time to time t;
[0053] The state quantity of the SINS pre-integration factor node is Said For a space including 15-dimensional state variables, the pre-integrated quantity is substituted into the mechanical arrangement equation, and it is assumed that the IMU zero bias value remains unchanged in a short time, and the IMU pre-integrated residual is obtained as
[0054]
[0055] In the formula, is the IMU at t k The measured value at the moment, t k Time and t k+1 The state quantity at the moment; [·] * represents taking the conjugate of a quaternion, [·] xyz Indicates taking the imaginary part of the quaternion; r p 、r q、r v They are the residuals of position, attitude angle, velocity, accelerometer bias and gyroscope bias respectively;
[0056] Step 4.2: Construct the measurement model factor node, i.e., the LiDAR factor node, which specifically includes:
[0057] Measurement time t k , the LiDAR measurement value is the static point cloud after removing the dynamic point cloud in the radar coordinate system This includes the extracted edge points and plane points By taking the static point cloud in the k-th frame radar coordinate system sta F k and the nearby sub-image in the k-1th frame radar coordinate system The measurement equation of LiDAR is obtained by matching. The specific process is as follows:
[0058] For the static point cloud after removing the dynamic point cloud Extracted edge point set A point i in the image is projected to the k-1th frame radar coordinate system using relative pose and recorded as point i'; The edge point set Find the point j closest to point i' and the point l closest to point j on the adjacent scan line. The residual function of the edge point can be constructed based on the distance from point i' to the straight line formed by point j and point l, so as to update the position and posture. The specific expression is as follows
[0059]
[0060] In the formula, is the coordinate of point i', and are the coordinates of point j and point l respectively, × represents vector cross product, || represents vector modulus;
[0061] for sta F k l Plane Point Set A point e in the image is also projected to the k-1th frame radar coordinate system using relative posture, recorded as point e'; The plane point set Find the point q closest to point e', the point m on the same line as point q and the closest point to it, and the point n adjacent to the scan line where point m is located and the closest point to it; construct the residual function of the plane point based on the distance from point e' to the plane composed of points q, m and n for pose update. The specific expression is
[0062]
[0063] In the formula, are the coordinates of point e', and are the coordinates of point q, point m and point n respectively;
[0064] Assume that the pose transformation of the k-th frame radar coordinate system relative to the k-1-th frame radar coordinate system is This includes the 6-DOF rigid body motion of the LiDAR. Then the coordinates of point i' and point e' projected to the k-1th frame radar coordinate system are and The coordinates of point i and point e in the k-th frame radar coordinate system can be Expressed as
[0065]
[0066] In the formula, yes From item a to item b, is the rotation matrix defined by Rodriguez's formula;
[0067]
[0068] where θ is the magnitude of the rotation, ω represents the unit vector of the rotation direction, [ω] × represents the antisymmetric matrix of ω, ω x The x-axis component of the unit vector representing the direction of rotation, ω y The y-axis component of the unit vector representing the direction of rotation, ω z The z-component of the unit vector representing the direction of rotation.
[0069] In particular, in step 5, obtaining the system navigation solution through the factor graph calculation includes:
[0070] At measurement time k+1, the state quantity X of the factor graph system k+1 The maximum posterior probability value X k+1 MAP The expression is:
[0071]
[0072] in, It means to find the square of Mahalanobis distance of matrix x, Σ is the covariance matrix corresponding to x; the navigation solution of the system is obtained by calculating the maximum a posteriori probability value;
[0073] The updated carrier system state is used to project the point cloud of the current frame into the map coordinate system to construct the point cloud map.
[0074] In particular, the carrier is a vehicle.
[0075] In particular, the method is applied in a navigation system composed of a laser radar LiDAR and a strapdown inertial navigation system SINS, wherein the strapdown inertial navigation system SINS includes a measurement inertial unit IMU.
[0076] The present invention also discloses a LiDAR dynamic point cloud rejection device, comprising:
[0077] A data input module is used to extract feature points of a LiDAR key frame using curvature as a feature extraction index as input data for subsequent processing steps;
[0078] A projection construction module is used to construct a spherical projection of the feature point, project the 3D feature point onto a plane, reduce the amount of point cloud processing calculations, and calculate the resolution of the plane point cloud according to the measured inertial unit IMU error;
[0079] The unit division and dynamic point cloud elimination module is used to extract the spatial features of the projected feature points, divide the plane point cloud into division units using the calculated resolution, and design indicators to extract the spatial features of the plane point cloud units in the division units, and eliminate local dynamic point clouds by comparing the spatial features;
[0080] A factor graph optimization calculation module is used to construct a process model factor node and a measurement model factor node to form a factor graph; the factor graph uses a static point cloud and the measurement inertial unit IMU data to establish a connection between the current system state and the previous state and is used for optimization calculation;
[0081] The system navigation solution module is used to construct a static point cloud map of the LiDAR, and obtain the system navigation solution through the factor graph calculation. The navigation solution provides the system's three-dimensional position, three-dimensional velocity, and three-dimensional attitude angle information. The navigation solution is used to project the current frame static point cloud into the map coordinate system.
[0082] Beneficial effects:
[0083] The resolution scheme of the spherical projection unit for determining and dividing the LiDAR feature points through the IMU error of the present invention can balance the amount of calculation and the detection accuracy;
[0084] By designing the spatial feature index of the present invention to extract the local point cloud features in the division unit, dynamic point clouds can be effectively detected and eliminated;
[0085] By constructing a factor graph model to fuse LiDAR and IMU, the information of the two sensors can be fully utilized for positioning;
[0086] By solving the navigation scheme through the incremental smoothing algorithm of the present invention, high-precision positioning and mapping can be achieved;
[0087] The method of the present invention can significantly improve the positioning performance of the LiDAR / SINS combined system in a dynamic urban environment;
[0088] The method of the present invention can effectively reduce the impact of moving objects on LiDAR point cloud matching;
[0089] The method of the present invention can improve the adaptability of the combined system to complex dynamic environments;
[0090] The method of the present invention can provide accurate and stable positioning support for the automatic driving system of unmanned vehicles;
[0091] The method of the present invention can be widely applied to vehicle-mounted multi-source fusion positioning and navigation systems;
[0092] The method of the present invention can promote the commercialization process of driverless cars. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] Figure 1 It is a schematic diagram of the process of the method of the present invention;
[0094] Figure 2a and Figure 2b This is a comparison chart of the mapping effects of the present invention and Lego-Loam in the KITTI dataset 01 period;
[0095] Figure 3a and Figure 3b This is a comparison chart of the mapping effects of the present invention and Lego-Loam in the KITTI dataset 02 period;
[0096] Figure 4a and Figure 4b This is a comparison chart of the mapping effects of the present invention and Lego-Loam in the KITTI dataset 03 period;
[0097] Figure 5a and Figure 5b This is a comparison chart of the mapping effects of the present invention and Lego-Loam in the 04 period of the KITTI dataset;
[0098] Figure 6 This is a comparison chart of the trajectories of the present invention and Lego-Loam in the KITTI dataset 01 period;
[0099] Figure 7 This is a comparison chart of the trajectories of the present invention and Lego-Loam in the 02 period of the KITTI dataset;
[0100] Figure 8This is a comparison chart of the trajectories of the present invention and Lego-Loam in the 03 period of the KITTI dataset;
[0101] Fig. 9 This is a comparison chart of the trajectories of the present invention and Lego-Loam in the 04 period of the KITTI dataset; DETAILED DESCRIPTION
[0102] The present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0103] For ease of understanding, this specific implementation mode is a preferred embodiment disclosed by the present invention to illustrate the structure and inventive point of the present invention in detail, but it is not intended to limit the protection scope of the claims of the present invention.
[0104] Figure 1 This is a flow chart of a preferred embodiment of the LiDAR dynamic point cloud removal method proposed in the present invention. Figure 1 Provide detailed explanation.
[0105] See also Figure 1 The flowchart of the dynamic point cloud removal method of the combined navigation system including the laser radar LiDAR and the strapdown inertial navigation system SINS shown in the figure includes:
[0106] The first step is to extract LiDAR key frame feature points;
[0107] As a more preferred embodiment, curvature is used as an extraction index to extract the feature points of the k-th frame point cloud. For a feature point i in the k-th frame point cloud, the calculation expression of the corresponding curvature C is:
[0108]
[0109] In the formula, is the coordinate of feature point i in the k-th frame point cloud in the LiDAR coordinate system (i=1,...,N), L represents the LiDAR coordinate system, and N is the total number of feature points; is the coordinate of point j in the k-th frame point cloud in the LiDAR coordinate system, S is the set of 5 points adjacent to point i on the same line of laser beam, j∈S means j is a point in point set S, |S| represents the number of points in point set S, || || represents the Euclidean distance;
[0110] According to the size of the curvature, the features of the points are divided into two categories, namely edge points and plane points. Points with larger curvature are edge points, and points with smaller curvature are plane points.
[0111] The following principles must also be followed when selecting feature points: divide the laser point cloud of each line into 4 areas, each area contains at most 2 edge points and 4 plane points, to ensure that the number of feature points in each sub-area is certain; points near feature points are no longer selected to prevent feature points from being too concentrated; plane points parallel to the laser scanning beam, obscured plane points and outliers are considered abnormal points and cannot be selected as feature points.
[0112] The extracted feature points serve as input data for subsequent processing steps.
[0113] The second step is to construct the spherical projection of the feature points and perform unit division;
[0114] As a more optimal implementation method, in order to simplify the description process, it is assumed that each frame of the point cloud to be processed has been processed by motion dedistortion.
[0115] For the kth frame point cloud with extracted feature points The acceleration and angular velocity output by the IMU are used to roughly estimate the pose of the point cloud in the frame. Find the historical frame point cloud near the frame point cloud to form a sub-graph according to the pose At the same time, the kth frame point cloud in the LiDAR coordinate system Convert the k-th frame point cloud to the map coordinate system
[0116]
[0117] Use the pose of the historical frame point cloud to transform the sub-image Also converted to the map coordinate system, get the sub-map in the map coordinate system
[0118]
[0119] The k-frame point cloud in the map coordinate system and sub-maps in map coordinate system The feature points in are projected into the spherical coordinate system. The specific conversion formula is:
[0120]
[0121] In the formula, (x i ,y i ,z i ) is any i-th feature point p i The three-dimensional coordinates in the map coordinate system, (u i ,v i ) is the coordinate projected into the spherical coordinate system, r i For point p i The distance to the origin of the map coordinate system, f = f up +f downis the vertical field of view of the LiDAR, f up represents the upper field of view angle of the laser radar, f down Indicates the downward field of view angle of the laser radar; w and h are proportional adjustment coefficients, h is generally taken as the number of laser radar lines, and w is taken as 360;
[0122] The three-dimensional attitude angle error and three-dimensional position error in the corresponding system state error are obtained by measuring the IMU error propagation equation; the IMU three-dimensional attitude angle error corresponding to the k-th frame point cloud in the local navigation coordinate system is defined as The IMU three-dimensional position error corresponding to the k-th frame point cloud in the local navigation coordinate system is but
[0123]
[0124] In the formula, ω is the three-axis measurement value of the gyroscope, [ω] × It represents the antisymmetric matrix of ω, Ι is the unit matrix, and Δt is the sampling interval of IMU; They are the IMU attitude angle error corresponding to the k-1th frame, the IMU position error in the local navigation coordinate system, the IMU velocity error in the nth system, the accelerometer bias error and the gyroscope bias error; n ω 、n a , They are gyroscope measurement noise, accelerometer measurement noise, gyroscope random walk noise, and accelerometer random walk noise respectively;
[0125] Calculate the IMU 3D position error corresponding to the k-th frame point cloud and attitude angle error Finally, the position error and attitude angle error are converted into the resolution r of the spherical projection of the feature points through empirical formulas;
[0126]
[0127] Where α is a value between 0 and 1, which is used to balance the weight of position error and attitude angle error on resolution, and |·| represents the modulus operation;
[0128] In order to avoid the influence of outliers, the lower limit of the resolution r0 is set. The final adjusted resolution r f for
[0129] r f =max(βr,r0)
[0130] Where β is a coefficient greater than 1, which is used to appropriately amplify the calculated resolution. f is the vertical field of view of the LiDAR, N v is the number of LiDAR lines, r0 represents the vertical resolution of the point cloud, and setting r0 as the lower limit of the resolution of the partition plane point cloud can effectively avoid the situation where there are empty elements in the feature point spherical projection partition unit;
[0131] According to the calculated resolution r f Divide the current frame projection feature point set and projection sub-image.
[0132] The third step is to extract the spatial features of the projected feature points and perform dynamic point cloud removal:
[0133] The step 3 specifically includes:
[0134] For the index (m, n) of the division unit, extract the k-frame feature point set in the map coordinate system and sub-maps in map coordinate system Spatial characteristics and Wherein m represents the index of the elevation division unit of the spherical projection, and n represents the index of the azimuth division unit of the spherical projection;
[0135]
[0136] in The point set in the projection point cloud partition unit (m,n) of the feature point set of the kth frame, Point Set The set of x-axes projected on the xy plane, Point Set The set of y axes projected on the xy plane, mean() represents the mean operation, The point set in the projection point cloud partition unit (m,n) for the k-th frame sub-image; Δr xy The average value of the distance from the points in the divided unit to the origin of the map coordinate system projected on the xy plane is calculated;
[0137] After extracting the spatial features of the feature point set and the corresponding sub-graph, the similarity of their spatial features can be measured by the difference;
[0138]
[0139] Determine the k-frame feature point set in the map coordinate system Points in is a dynamic condition for the spatial feature similarity index is greater than the threshold τ, which is set according to different dynamic environments; finally, the dynamic point is defined as
[0140]
[0141] Static points are the complement of dynamic points in the same LiDAR frame point cloud Then, the k-frame pose is estimated by the output data of the measuring inertial unit IMU The static point cloud in the map coordinate system Converted to the radar coordinate system, we get in
[0142]
[0143] The fourth step is to construct a factor graph:
[0144] In the factor graph, there are two types of nodes: one is the process model factor node, namely the SINS node; the other is the measurement model factor node, namely the LiDAR node. At any measurement time i, the state quantity of the factor graph system is X i , X i ={x1,x2…x i}, x1 represents the state of the integrated navigation system at the first measurement time, x2 represents the state of the integrated navigation system at the second measurement time, and sequentially, we can know that X i Includes all values of the multi-source fusion navigation system state quantities up to time i.
[0145] As a more preferred implementation, this step specifically includes:
[0146] First, the process model factor nodes are calculated.
[0147] At the measuring time t k The output measurement value of the IMU in the carrier coordinate system b is the specific force and angular velocity Let the IMU measurement value
[0148] is the accelerometer zero bias of the IMU on the three axes of the b system, is the gyro zero bias of IMU on the three axes of b system, during the measurement period [t k ,t k+1 ], ignoring factors such as the earth's rotation, the mechanical arrangement equation of inertial navigation in the n-frame is:
[0149]
[0150]
[0151]
[0152] in and t k+1 The estimated position, velocity and attitude of the system at this moment (in quaternion form); n a and n ω are the measurement noise of the accelerometer and gyroscope respectively; g n is the projection of gravitational acceleration in the n system; represents the instantaneous attitude rotation matrix from b system to n system; Δt k =t k+1 -t k is the time interval, b k Indicates time t k The carrier coordinate system under is the quaternion multiplication operation.
[0153] From the above mechanical arrangement equation, it can be seen that the state propagation of inertial navigation depends on the state quantity of the previous moment, which leads to the need to recalculate the integral quantity in the arrangement equation after the state is updated, which will cause a large computational burden. To solve this problem, the state quantity of the integral part in the arrangement equation is extracted, and only the part related to the original measurement is left in the integral part. This process is called pre-integration, and its specific expression is:
[0154]
[0155]
[0156]
[0157] In the formula, and Arrange the pre-integrated components in the equations for position, velocity, and attitude, respectively. is t in b system k The attitude rotation matrix from time to time t.
[0158] The state quantity of the SINS pre-integration factor node is Said For a space including 15-dimensional state variables, the pre-integrated quantity is substituted into the mechanical arrangement equation, and it is assumed that the IMU zero bias value remains unchanged in a short time, and the IMU pre-integrated residual is obtained as
[0159]
[0160] In the formula, is the IMU at t k The measured value at the moment, t k Time and t k+1 The state quantity at the moment; [·] * represents taking the conjugate of a quaternion, [·] xyzIndicates taking the imaginary part of the quaternion; r p 、r q 、r v They are the residuals of position, attitude angle, velocity, accelerometer bias and gyroscope bias respectively;
[0161] Secondly, construct the measurement model factor node, namely the LiDAR node.
[0162] Measurement time t k , the LiDAR measurement value is the static point cloud after removing the dynamic point cloud in the radar coordinate system This includes the extracted edge points and plane points By taking the static point cloud in the k-th frame radar coordinate system sta F k and the nearby sub-image in the k-1th frame radar coordinate system The measurement equation of LiDAR is obtained by matching. The specific process is:
[0163] for Edge point set A point i in the image is projected to the k-1th frame radar coordinate system using relative pose and recorded as point i'; The edge point set Find the point j closest to point i' and the point l closest to point j on the adjacent scan line. The residual function of the edge point can be constructed based on the distance from point i' to the straight line formed by point j and point l, so as to update the position and posture. The specific expression is as follows
[0164]
[0165] In the formula, is the coordinate of point i', and are the coordinates of point j and point l respectively, × represents vector cross product, and | | represents vector modulus.
[0166] for Plane Point Set A point e in the image is also projected to the k-1th frame radar coordinate system using relative posture, recorded as point e'; The plane point set Find the point q closest to point e', the point m on the same line as point q and closest to point n, and the point n adjacent to the scan line where point m is located and closest to point e'. The residual function of the plane point is constructed based on the distance from point e' to the plane composed of points q, m and n for pose update. The specific expression is
[0167]
[0168] In the formula, are the coordinates of point e', and are the coordinates of point q, point m and point n respectively;
[0169] Assume that the pose transformation of the k-th frame radar coordinate system relative to the k-1-th frame radar coordinate system is This includes the 6-DOF rigid body motion of the LiDAR. Then the coordinates of point i' and point e' projected to the k-1th frame radar coordinate system are and The coordinates of point i and point e in the k-th frame radar coordinate system can be Expressed as
[0170]
[0171] In the formula, yes From item a to item b, is the rotation matrix defined by Rodriguez's formula
[0172]
[0173] where θ is the magnitude of the rotation, ω represents the unit vector of the rotation direction, [ω] × represents the antisymmetric matrix of ω, ω x The x-axis component of the unit vector representing the direction of rotation, ω y The y-axis component of the unit vector representing the direction of rotation, ω z The z-component of the unit vector representing the direction of rotation.
[0174] Substituting equation (3) into equation (1) and equation (2), we can obtain
[0175]
[0176] The state quantity related to the LiDAR factor is For the pose transformation of the k-th frame radar coordinate system relative to the k-1-th frame radar coordinate system Its conversion relationship with the state quantity is
[0177]
[0178] In the formula, Calculated by the external parameters of IMU and LiDAR; f is the function that converts quaternion into attitude angle; Represents quaternion multiplication.
[0179] Substituting equation (5) into equation (4) yields the relationship between the system state and the LiDAR measurement value, i.e., the residual equation of the LiDAR factor node:
[0180]
[0181]
[0182] In the formula, h() represents a function that converts distance into something related to the system state quantity.
[0183] All feature points and the corresponding regional distance formulas are combined to obtain the integrated LiDAR factor node residual equation:
[0184]
[0185] Step 5: Calculation of factor graph:
[0186] At measurement time k+1, the state quantity X of the factor graph system k+1 The maximum posterior probability value X k+1 MAP The expression is:
[0187]
[0188] in, It means to find the square of Mahalanobis distance of matrix x, Σ is the covariance matrix corresponding to x; the system navigation solution is obtained by calculating the maximum a posteriori probability value.
[0189] By using the standard C++ library GTSAM (Georgia Tech Smoothing and Mapping) based on smoothing and mapping, and adopting the second version of the incremental smoothing and mapping (iSAM2) algorithm (see Kaess M, Johannsson H, Roberts R, Ila V, Leonard JJ, Dellaert F. iSAM2: Incremental smoothing and mapping using the Bayes tree [J]. The International Journal of Robotics Research, 2012, 31 (2): 216-235.), the above formula (6) is solved and calculated to obtain the system navigation solution.
[0190] The updated carrier system state is used to project the current frame point cloud into the map coordinate system to construct the point cloud map.
[0191] The experiment to verify the present invention was tested on the KITTI dataset. The data acquisition platform of the KITTI dataset is equipped with a Velodyne 64-line 3D laser radar, an OXTS RT3003 integrated navigation system, an IMU data output rate of 100Hz, a GNSS data output rate of 1Hz, and a reference value provided by the integrated navigation system. Four time periods with more dynamic objects are selected from the entire dataset and numbered as 01, 02, 03 and 04 respectively. The Lego-Loam laser odometer method and the method of the present invention are respectively used to construct and locate the four data sets. The constructed maps are as follows: Figure 2a , Figure 2b , Figure 3a , Figure 3b , Figure 4a , Figure 4b , Figure 5a , Figure 5b shown.
[0192] From the comparison of the constructed maps, it can be seen that the map constructed by Lego-Loam has more "tailing point clouds" caused by dynamic objects, and the map construction quality is average. However, the method of the present invention can better eliminate most of the dynamic point clouds and has better map construction quality.
[0193] In order to further illustrate the influence of the method of the present invention on the positioning accuracy, Figure 6 , Figure 7 , Figure 8 and Fig. 9 The trajectories of the benchmark value, Lego-Loam fusion positioning value and dynamic point cloud rejection value in four time periods are plotted respectively. It can be seen from the trajectory comparison diagram that the trajectory of the method of the present invention in each time period is closer to the benchmark value than the trajectory of the classic Lego-Loam, which verifies the effectiveness of the present invention in improving the positioning performance of the fusion system.
[0194] In order to qualitatively verify the superiority of the positioning performance of the method of the present invention, the average positioning errors of the two methods in four time periods are statistically shown in Table 1.
[0195] Table 1
[0196]
[0197] In the 01 period when there are fewer dynamic objects, the average positioning error of the method of the present invention is 1.452m, and the Lego-Loam is 3.257m, which improves the positioning performance of the method of the present invention by 55.42%; in the 04 period when there are the most dynamic objects, the average positioning error of the method of the present invention is 7.146m, and the Lego-Loam is 3.257m, which improves the positioning performance of the method of the present invention by 47.36%. This table further illustrates that the present invention improves the adaptability of the fusion system to the dynamic environment, improves the positioning accuracy of the fusion system in the dynamic environment, and verifies the effectiveness of the dynamic point cloud elimination method.
[0198] The present invention also discloses a LiDAR dynamic point cloud removal device, comprising:
[0199] A data input module is used to extract feature points of a LiDAR key frame using curvature as a feature extraction index as input data for subsequent processing steps;
[0200] A projection construction module is used to construct a spherical projection of the feature point, project the 3D feature point onto a plane, reduce the amount of point cloud processing calculations, and calculate the resolution of the plane point cloud according to the measured inertial unit IMU error;
[0201] The unit division and dynamic point cloud elimination module is used to extract the spatial features of the projected feature points, divide the plane point cloud into division units using the calculated resolution, and design indicators to extract the spatial features of the plane point cloud units in the division units, and eliminate local dynamic point clouds by comparing the spatial features;
[0202] A factor graph optimization calculation module is used to construct a process model factor node and a measurement model factor node to form a factor graph; the factor graph uses a static point cloud and the measurement inertial unit IMU data to establish a connection between the current system state and the previous state and is used for optimization calculation;
[0203] The system navigation solution module is used to construct a static point cloud map of the LiDAR, and obtain the system navigation solution through the factor graph calculation. The navigation solution provides the system's three-dimensional position, three-dimensional velocity, and three-dimensional attitude angle information. The navigation solution is used to project the current frame static point cloud into the map coordinate system.
[0204] The features of this device embodiment correspond one-to-one to the features in the previous method embodiment, so they will not be repeated here.
[0205] The above are some specific implementation methods of the present invention, but the present invention is not limited to the above methods. All simple changes to the technical features of the present invention, and all equivalent changes or modifications made to the structures, features and principles described in the scope of the patent application of the present invention will fall within the protection scope of the present invention.
[0206] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0207] It is obvious to those skilled in the art that the embodiments of the present invention are not limited to the details of the above exemplary embodiments, and that the embodiments of the present invention can be implemented in other specific forms without departing from the spirit or basic features of the embodiments of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the embodiments of the present invention is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the embodiments of the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units, modules or devices stated in the system, device or terminal claims can also be implemented by the same unit, module or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0208] Finally, it should be noted that the above implementation modes are only used to illustrate the technical solutions of the embodiments of the present invention and are not intended to limit them. Although the embodiments of the present invention have been described in detail with reference to the above preferred implementation modes, those skilled in the art should understand that the technical solutions of the embodiments of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A LiDAR dynamic point cloud removal method, characterized in that: include: Step 1: Use curvature as a feature extraction index to extract the feature points of the LiDAR key frame as input data for subsequent processing steps; Step 2: construct a spherical projection of the feature point, project the 3D feature point onto a plane, reduce the amount of point cloud processing calculations, and calculate the resolution of the plane point cloud according to the measured inertial unit IMU error; Step 3: Extract the spatial features of the projected feature points, divide the plane point cloud into division units using the calculated resolution, and design indicators to extract the spatial features of the plane point cloud units in the division units, and eliminate local dynamic point clouds by comparing the spatial features; Step 4: constructing process model factor nodes and measurement model factor nodes to form a factor graph; the factor graph uses the static point cloud and the measurement inertial unit IMU data to establish a connection between the current system state and the previous state and is used for optimization calculation; Step 5: Construct a static point cloud map of the LiDAR, and calculate the system navigation solution through the factor graph. The navigation solution provides the system's three-dimensional position, three-dimensional velocity, and three-dimensional attitude angle information. Use the navigation solution to project the current frame static point cloud to the map coordinate system.
2. The LiDAR dynamic point cloud removal method according to claim 1, characterized in that: The step 1 specifically includes: Use curvature C as the extraction index to extract the feature points of the k-th frame point cloud. For a feature point i in the k-th frame point cloud, the calculation expression of the corresponding curvature C is: In the formula, is the coordinate of feature point i in the k-th frame point cloud in the LiDAR coordinate system (i=1,...,N), L represents the LiDAR coordinate system, and N is the total number of feature points; is the coordinate of point j in the k-th frame point cloud in the LiDAR coordinate system, S is the set of 5 points adjacent to point i on the same line of laser beam, j∈S means j is a point in point set S, |S| represents the number of points in point set S, || || represents the Euclidean distance; According to the size of the curvature C as the curvature threshold, the features of the points are divided into two categories, namely edge points and plane points; points greater than the curvature threshold are edge points, and points less than the curvature threshold are plane points; the extracted feature points are used as input data for subsequent processing steps.
3. The LiDAR dynamic point cloud removal method according to claim 2, characterized in that: The step 2 specifically includes: for the kth frame point cloud from which feature points have been extracted: The acceleration and angular velocity output by the IMU are used to roughly estimate the pose of the point cloud in the frame. Find the historical frame point cloud near the frame point cloud to form a sub-graph according to the pose At the same time, the kth frame point cloud in the LiDAR coordinate system Convert the k-th frame point cloud to the map coordinate system Use the pose of the historical frame point cloud to transform the sub-image Also converted to the map coordinate system, get the sub-map in the map coordinate system The k-frame point cloud in the map coordinate system and sub-maps in map coordinate system The feature points in are projected into the spherical coordinate system. The specific conversion formula is: In the formula, (x i ,y i ,z i ) is any i-th feature point p i The three-dimensional coordinates in the map coordinate system, (u i ,v i ) is the coordinate projected into the spherical coordinate system, r i For point p i The distance to the origin of the map coordinate system, f = f up +f down is the vertical field of view of the LiDAR, f up represents the upper field of view angle of the laser radar, f down Indicates the downward field of view angle of the laser radar; w and h are proportional adjustment coefficients, h is generally taken as the number of laser radar lines, and w is taken as 360; The three-dimensional attitude angle error and three-dimensional position error in the corresponding system state error are obtained by measuring the IMU error propagation equation; the IMU three-dimensional attitude angle error corresponding to the k-th frame point cloud in the local navigation coordinate system is defined as The IMU three-dimensional position error corresponding to the k-th frame point cloud in the local navigation coordinate system is but In the formula, ω is the three-axis measurement value of the gyroscope, [ω] × It represents the antisymmetric matrix of ω, Ι is the unit matrix, and Δt is the sampling interval of IMU; They are the IMU attitude angle error corresponding to the k-1th frame, the IMU position error in the local navigation coordinate system, the IMU velocity error in the nth system, the accelerometer bias error and the gyroscope bias error; n ω 、n a , They are gyroscope measurement noise, accelerometer measurement noise, gyroscope random walk noise, and accelerometer random walk noise respectively; Calculate the IMU 3D position error corresponding to the k-th frame point cloud and attitude angle error Finally, the position error and attitude angle error are converted into the resolution r of the spherical projection of the feature points through empirical formulas; Where α is a value between 0 and 1, which is used to balance the weight of position error and attitude angle error on resolution, and |·| represents the modulus operation; In order to avoid the influence of outliers, the lower limit of the resolution r0 is set. The final adjusted resolution r f for r f =max(βr,r0) Where β is a coefficient greater than 1, which is used to appropriately amplify the calculated resolution. f is the vertical field of view of the LiDAR, N v is the number of LiDAR lines, r0 represents the vertical resolution of the point cloud, and setting r0 as the lower limit of the resolution of the partition plane point cloud can effectively avoid the situation where there are empty elements in the feature point spherical projection partition unit; According to the calculated resolution r f Divide the current frame projection feature point set and projection sub-image.
4. The LiDAR dynamic point cloud removal method according to claim 3, characterized in that: The step 3 specifically includes: For the index (m, n) of the division unit, extract the k-frame feature point set in the map coordinate system and sub-maps in map coordinate system Spatial characteristics and Wherein m represents the index of the elevation division unit of the spherical projection, and n represents the index of the azimuth division unit of the spherical projection; in The point set in the projection point cloud partition unit (m,n) of the feature point set of the kth frame, Point Set The set of x-axes projected on the xy plane, Point Set The set of y axes projected on the xy plane, mean() represents the mean operation, The point set in the projection point cloud partition unit (m,n) for the k-th frame sub-image; Δr xy The average value of the distance from the points in the divided unit to the origin of the map coordinate system projected on the xy plane is calculated; After extracting the spatial features of the feature point set and the corresponding sub-graph, the similarity of their spatial features can be measured by the difference; Determine the k-frame feature point set in the map coordinate system Points in is a dynamic condition for the spatial feature similarity index is greater than the threshold τ, which is set according to different dynamic environments; finally, the dynamic point is defined as Static points are the complement of dynamic points in the same LiDAR frame point cloud Then, the k-frame pose is estimated by the output data of the measuring inertial unit IMU The static point cloud in the map coordinate system Converted to the radar coordinate system, we get in 5. The LiDAR dynamic point cloud removal method according to claim 4, characterized in that: The step 4 specifically includes: step 4.1, calculating the process model factor node, that is, the SINS pre-integration node, including: At the measuring time t k The output measurement value of the IMU in the carrier coordinate system b is the specific force and angular velocity Let the IMU measurement value is the accelerometer zero bias of the IMU on the three axes of the b system, is the gyro zero bias of IMU on the three axes of b system, during the measurement period [t k ,t k+1 ], ignoring the earth's rotation factor, the mechanical arrangement equation of inertial navigation in the n system is in and t k+1 The quaternion form of the position estimate, velocity estimate and attitude estimate of the system at the moment; n a and n ω are the measurement noise of the accelerometer and gyroscope respectively; g n is the projection of gravitational acceleration in the n system; represents the instantaneous attitude rotation matrix from b system to n system; Δt k =t k+1 -t k is the time interval, b k Indicates time t k The carrier coordinate system under is the quaternion multiplication operation; The state quantity of the integral part in the arrangement equation is extracted, and only the part related to the original measurement is left in the integral part. This process is called pre-integration, and its specific expression is: In the formula, and Arrange the pre-integrated components in the equations for position, velocity, and attitude, respectively. is t in b system k The attitude rotation matrix from time to time t; The state quantity of the SINS pre-integration factor node is Said For a space including 15-dimensional state variables, the pre-integrated quantity is substituted into the mechanical arrangement equation, and it is assumed that the IMU zero bias value remains unchanged in a short time, and the IMU pre-integrated residual is obtained as In the formula, is the IMU at t k The measured value at the moment, t k Time and t k+1 The state quantity at the moment; * represents taking the conjugate of a quaternion, [·] xyz Indicates taking the imaginary part of the quaternion; r p 、r q 、r v , They are the residuals of position, attitude angle, velocity, accelerometer bias and gyroscope bias respectively; Step 4.2: Construct the measurement model factor node, i.e., the LiDAR factor node, which specifically includes: Measurement time t k , the LiDAR measurement value is the static point cloud after removing the dynamic point cloud in the radar coordinate system This includes the extracted edge points and plane points By taking the static point cloud in the k-th frame radar coordinate system and the nearby sub-image in the k-1th frame radar coordinate system The measurement equation of LiDAR is obtained by matching. The specific process is as follows: For the static point cloud after removing the dynamic point cloud Extracted edge point set A point i in the image is projected to the k-1th frame radar coordinate system using relative pose and recorded as point i'; The edge point set Find the point j closest to point i' and the point l closest to point j on the adjacent scan line. The residual function of the edge point can be constructed based on the distance from point i' to the straight line formed by point j and point l, so as to update the position and posture. The specific expression is as follows In the formula, is the coordinate of point i', and are the coordinates of point j and point l respectively, × represents vector cross product, || represents vector modulus; for Plane Point Set A point e in the image is also projected to the k-1th frame radar coordinate system using relative posture, recorded as point e'; The plane point set Find the point q closest to point e', the point m on the same line as point q and the closest point to it, and the point n adjacent to the scan line where point m is located and the closest point to it; construct the residual function of the plane point based on the distance from point e' to the plane composed of points q, m and n for pose update. The specific expression is In the formula, are the coordinates of point e', and are the coordinates of point q, point m and point n respectively; Assume that the pose transformation of the k-th frame radar coordinate system relative to the k-1-th frame radar coordinate system is This includes the 6-DOF rigid body motion of the LiDAR. Then the coordinates of point i' and point e' projected to the k-1th frame radar coordinate system are and The coordinates of point i and point e in the k-th frame radar coordinate system can be Expressed as In the formula, yes From item a to item b, is the rotation matrix defined by Rodriguez's formula; where θ is the magnitude of the rotation, ω represents the unit vector of the rotation direction, [ω] × represents the antisymmetric matrix of ω, ω x The x-axis component of the unit vector representing the direction of rotation, ω y The y-axis component of the unit vector representing the direction of rotation, ω z The z-component of the unit vector representing the direction of rotation.
6. The LiDAR dynamic point cloud removal method according to claim 5, characterized in that: In step 5, obtaining the system navigation solution through the factor graph calculation includes: At measurement time k+1, the state quantity X of the factor graph system k+1 The maximum posterior probability value X k+1 MAP The expression is: in, It means to find the square of Mahalanobis distance of matrix x, Σ is the covariance matrix corresponding to x; the navigation solution of the system is obtained by calculating the maximum a posteriori probability value; The updated carrier system state is used to project the point cloud of the current frame into the map coordinate system to construct the point cloud map.
7. The LiDAR dynamic point cloud removal method according to claim 6, characterized in that The carrier is a vehicle.
8. The LiDAR dynamic point cloud removal method according to claim 1, characterized in that: The method is applied in a navigation system composed of a laser radar LiDAR and a strapdown inertial navigation system SINS, wherein the strapdown inertial navigation system SINS comprises a measurement inertial unit IMU.
9. A LiDAR dynamic point cloud removal device, characterized in that: include: A data input module is used to extract feature points of a LiDAR key frame using curvature as a feature extraction index as input data for subsequent processing steps; A projection construction module is used to construct a spherical projection of the feature point, project the 3D feature point onto a plane, reduce the amount of point cloud processing calculations, and calculate the resolution of the plane point cloud according to the measured inertial unit IMU error; The unit division and dynamic point cloud elimination module is used to extract the spatial features of the projected feature points, divide the plane point cloud into division units using the calculated resolution, and design indicators to extract the spatial features of the plane point cloud units in the division units, and eliminate local dynamic point clouds by comparing the spatial features; A factor graph optimization calculation module is used to construct a process model factor node and a measurement model factor node to form a factor graph; the factor graph uses a static point cloud and the measurement inertial unit IMU data to establish a connection between the current system state and the previous state and is used for optimization calculation; The system navigation solution module is used to construct a static point cloud map of the LiDAR, and obtain the system navigation solution through the factor graph calculation. The navigation solution provides the system's three-dimensional position, three-dimensional velocity, and three-dimensional attitude angle information. The navigation solution is used to project the current frame static point cloud into the map coordinate system.
Citation Information
Cited By
Off-road terrain trafficability estimation method under motion uncertainty condition
CN121121678A
A method for estimating the drivability of off-road terrain under conditions of motion uncertainty
CN121121678B
