A real-time ground point cloud detection method and device based on a gravity vector and a medium
By establishing a gravity coordinate system in the SLAM system and using gravity vectors to filter point clouds, the problems of insufficient ground detection accuracy and wall interference were solved, achieving high-precision and stable ground point cloud detection and improving the real-time performance and robustness of the system.
Patent Information
- Application Number
- CN202410730243.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Existing SLAM systems suffer from insufficient detection accuracy, high algorithm complexity, and susceptibility to interference from regular indoor walls when performing ground-based detection, making it difficult to guarantee real-time performance and accuracy.
By establishing a gravity coordinate system and using inertial measurement units to determine the direction of gravity, and combining the gravity vector to filter point cloud data and perform plane fitting, we can avoid misidentifying regular walls as ground, thereby improving detection accuracy and robustness.
It achieves stable ground point cloud detection in various environments, effectively removes noise, improves the fitting accuracy of planar models and the real-time performance of the system, and enhances robustness to indoor environments.
Smart Images

Figure CN118735992B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of point cloud processing technology, and in particular to a method, apparatus and medium for real-time ground point cloud detection based on gravity vector. Background Technology
[0002] SLAM (Simultaneous Localization and Mapping) is a crucial technology in robotics. In SLAM systems, ground detection is a vital preprocessing step. Accurate ground detection helps the system better understand its environment, improving map building accuracy and robot localization precision. In recent years, with the rapid development of LiDAR technology, more and more SLAM systems are using point cloud data for ground detection. However, ground detection technology faces several challenges. For example, improving detection accuracy may require processing more point cloud data, increasing algorithm complexity and making it difficult to maintain real-time performance in practical applications. Furthermore, due to interference from regular walls indoors, existing methods are prone to misidentifying them as the ground, thus reducing algorithm accuracy. Summary of the Invention
[0003] The purpose of this invention is to provide a method, device, and medium for real-time ground point cloud detection based on gravity vectors, which can accurately identify the ground plane based on gravity vectors.
[0004] The objective of this invention can be achieved through the following technical solutions:
[0005] A real-time ground point cloud detection method based on gravity vectors includes the following steps:
[0006] S1, based on radar-collected point cloud data of surrounding roads;
[0007] S2, Establish the radar coordinate system and perform distortion correction on the point cloud data;
[0008] S3, based on the inertial measurement unit, determines the direction of gravity, establishes a gravity coordinate system, and updates the gravity vector in real time according to the pose transformation between each frame of radar data output by the odometer.
[0009] S4. Based on the value of the gravity vector in the radar coordinate system, determine the pose transformation relationship between the gravity coordinate system and the radar coordinate system, and project the point cloud of the radar coordinate system into the gravity coordinate system.
[0010] S5, traverse all point cloud data and filter points based on the comparison results of point cloud coordinates in the gravity coordinate system and distance thresholds;
[0011] S6, iteratively fits the plane equation of the ground based on the selected point cloud.
[0012] Step S2 includes the following steps:
[0013] S21. Establish a radar coordinate system with the laser emission point as the origin, the front of the radar-equipped vehicle as the positive X-axis, and the left side of the vehicle as the positive Y-axis.
[0014] S22, using the angular velocity and acceleration data of the inertial measurement unit, perform forward integration to obtain the pose transformation of a point cloud frame;
[0015] S23. Assuming the car moves at a constant speed within one frame, use time interpolation to compensate for distortion at each point, project each point back to the initial time, and obtain a frame of distortion-free point cloud.
[0016] In step S3, when updating the gravity vector in real time, the gravity vector is represented on the manifold S. 2 Estimation is performed on manifold S. 2 The update process of the gravity vector g is similar to the rotation process of a three-dimensional vector: the two-dimensional vector of the tangent plane is obtained based on the pose transformation between the radar data of the previous and next frames output by the odometer at the front end of the vehicle. The two-dimensional vector of the tangent plane is mapped to three-dimensional space, and the mapped vector is regarded as a rotation vector. The rotation vector is then mapped to a manifold SO(3) through exponential mapping. SO(3) is applied to the gravity vector g to obtain the updated gravity vector.
[0017] Step S3 specifically involves: Let manifold S 2 Let g be the variable on the plane, and δg be the variable on its tangent plane. R g (δg) represents the rotation vector after mapping the variable δg on the tangent plane to three-dimensional space;
[0018] Let the gravitational vector be g = [x, y, z]. T The update process of g is represented as:
[0019]
[0020] in, Represents manifold S 2 The addition on the expression, where Exp represents the natural exponential function.
[0021] The method for calculating the rotation vector is as follows:
[0022] Rotation vector R g (δg) can be viewed as a 3×2 matrix B g Multiply by δg on the left, as shown in the following formula:
[0023]
[0024] Among them, B g column vectors Satisfying g⊥b1, g⊥b2, b1⊥b2, that is, B g The plane spanned by the two column vectors satisfies the property of being a tangent plane to a point on the unit sphere in geometric space;
[0025] B g The result of δg is considered 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 The mapped rotation vector R is obtained. g The modulus of (δg) is:
[0026]
[0027] According to R g (δg)=δub1+δvb2, B is calculated g Then, rotate vector R g The direction of rotation corresponding to (δg) is uniquely determined by the direction of δg.
[0028] Step S4 includes the following steps:
[0029] S41, Calculate the rotation amount:
[0030] Calculate the gravity vector representation L in the radar coordinate system g : Where B represents the IMU coordinate system, L represents the lidar coordinate system, and W represents the world coordinate system. 1 R J This represents the rotation matrix used to transform from the J coordinate system to the I coordinate system;
[0031] set up L g = [x L y L , z L ] T The gravity vector in the gravity coordinate system is represented as G g = [0, 0, 1] T Calculate the rotation amount using the following formula. G R L :
[0032]
[0033] Where Exp represents the natural exponential mapping function;
[0034] S42, the origins of the gravity coordinate system and the radar coordinate system have the same three-dimensional coordinates in the world coordinate system; the two coordinate systems differ only in rotation. G RL Based on rotation amount G R L The homogeneous coordinate downtransformation matrix from L-frame to G-frame is obtained as follows:
[0035]
[0036] Where 03 represents a 3×1 zero matrix;
[0037] S43, set G T L The corresponding three-dimensional coordinate linear transformation is Based on transformation The point cloud in the radar coordinate system is projected onto the gravity coordinate system, where, This represents the point cloud coordinates in the radar coordinate system. This represents the coordinates of a point cloud in the gravity coordinate system.
[0038] Step S5 includes the following steps:
[0039] S51, accumulate point clouds from multiple consecutive point cloud frames:
[0040] Let N be the number of accumulated point cloud frames, and let L be the coordinate system of the i-th point cloud frame. i The gravitational coordinate system is represented as G. i The IMU coordinate system is represented as B. i The accumulated point cloud from multiple consecutive point cloud frames is calculated using the following formula.
[0041]
[0042] Where W represents the world coordinate system, This represents the transformation matrix from the J coordinate system to the I coordinate system. Represents a point cloud in the lidar coordinate system;
[0043] S52, Filter candidate ground point clouds from the accumulated point cloud as the initial ground point cloud:
[0044] Preset the threshold z in the z-axis direction th Points in the point cloud with values less than a threshold are selected as candidate ground points to obtain the initial ground candidate point cloud.
[0045]
[0046] Step S6 specifically involves:
[0047] S61, Planar model calculation: Randomly select three non-coplanar points from the selected point cloud, and use the coordinates of the three points to fit the planar model;
[0048] S62, Interior Point Check: For other points in a frame of point cloud, calculate their distance to the planar model. If the distance is less than a set threshold, it is judged as an interior point.
[0049] S63, Model Reconstruction and Error Assessment: The planar model is evaluated using interior points and the error is calculated, including the root mean square error of the distance from the point to the plane and the cosine similarity error between the plane model normal vector and the gravity vector.
[0050] S64, Repeated Iteration: Repeat steps S61-S63 above until the preset number of iterations is met, and use the plane model with the smallest error as the final fitted plane equation output.
[0051] A real-time ground point cloud detection device based on gravity vector includes a memory, a processor, and a program stored in the memory. When the processor executes the program, it implements the method described above.
[0052] A storage medium having a program stored thereon, which, when executed, implements the method described above.
[0053] Compared with the prior art, the present invention has the following beneficial effects:
[0054] (1) This invention utilizes the characteristics of gravity vectors to avoid the possibility of identifying regular wall surfaces as ground point clouds, and has strong robustness against interference from regular planes such as walls indoors.
[0055] (2) The present invention projects the point cloud onto the gravity coordinate system and selects ground candidate points according to the threshold, which can effectively remove most noise points and improve the accuracy of subsequent planar model fitting.
[0056] (3) The present invention randomly selects ground candidate points and iteratively solves the plane equation when performing plane fitting, which can effectively improve the accuracy of the results.
[0057] (4) Based on the directional characteristics of the gravity vector, the present invention can operate stably under various environments and conditions, and has good stability. Attached Figure Description
[0058] Figure 1 This is a flowchart of the method of the present invention. Detailed Implementation
[0059] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. These embodiments are based on the technical solution of the present invention and provide detailed implementation methods and specific operating procedures. However, the scope of protection of the present invention is not limited to the following embodiments.
[0060] This embodiment provides a real-time ground point cloud detection method based on gravity vectors, such as... Figure 1 As shown, it includes the following steps:
[0061] S1, activate the radar in the car to collect point cloud data of the surrounding roads based on the radar.
[0062] S2, establish the radar coordinate system and perform distortion correction on the point cloud data.
[0063] Step S2 includes the following steps:
[0064] S21. Establish a radar coordinate system with the laser emission point as the origin, the front of the radar-equipped vehicle as the positive X-axis, and the left side of the vehicle as the positive Y-axis.
[0065] S22, using the angular velocity and acceleration data of the inertial measurement unit (IMU), perform forward integration to obtain the pose transformation of a point cloud frame;
[0066] S23. Since the time is very short, the car is considered to be moving at a constant speed within one frame. Based on this assumption, time interpolation is used to compensate for the distortion of each point. Each point is projected to the initial time to obtain a frame of distortion-free point cloud.
[0067] S3 determines the direction of gravity based on the inertial measurement unit (IMU), establishes a gravity coordinate system, and updates the gravity vector in real time according to the pose transformation between each frame of radar data output by the odometer.
[0068] For an irregular point cloud, a common method for extracting the ground is to extract the plane with the largest coverage area from the point cloud. However, this extraction method becomes impractical indoors due to wall interference. Furthermore, extracting the largest plane on every point cloud frame is extremely time-consuming. Therefore, it's necessary to filter out points in the point cloud that are not considered part of the ground as much as possible before extracting the ground plane. Since point clouds are irregular, it's difficult to establish coordinate constraints for point cloud filtering. Therefore, it's necessary to first align the point cloud to a gravity coordinate system and establish coordinate constraints along the gravity direction. To achieve gravity alignment, the gravity vector needs to be estimated in real-time during the SLAM process.
[0069] Based on the pose transformation between each frame of radar data output by the vehicle's front-end odometer, the gravity vector is updated in real time. While the gravity vector has a dimension of 3, its actual adjustable degrees of freedom are 2. Therefore, the gravity vector can be represented on the manifold S. 2 Estimation is performed using the manifold S. 2 After representation, the optimization process of the gravity vector is closed: the gravity vector before and after optimization always lies within the manifold S. 2 Above. Manifold S 2 This corresponds to the unit sphere, on which there are no natural group operations, so S 2It is impossible to form a Lie group similar to the rotation. However, by using S... 2 Addition by definition Subtraction It can update variables on a manifold.
[0070] In manifold S 2 The update process of the gravity vector g is similar to the rotation process of a three-dimensional vector: the two-dimensional vector of the tangent plane is obtained based on the pose transformation between the radar data of the previous and next frames output by the odometer at the front end of the vehicle. The two-dimensional vector of the tangent plane is mapped to three-dimensional space, and the mapped vector is regarded as a rotation vector. The rotation vector is then mapped to a manifold SO(3) through exponential mapping. SO(3) is applied to the gravity vector g to obtain the updated gravity vector.
[0071] Specifically, let manifold S 2 Let g be the variable on the plane, and δg be the variable on its tangent plane. R g (δg) represents the rotation vector after mapping the variable δg on the tangent plane to three-dimensional space;
[0072] Let the gravity vector be g = [x, y, z]. T The update process of g is represented as:
[0073]
[0074] in, Represents manifold S 2 The addition on the expression, where Exp represents the natural exponential function.
[0075] In this embodiment, the method for calculating the rotation vector refers to the method proposed by MTK (Manifold Toolkit), as follows:
[0076] Rotation vector R g (δg) can be considered as a 3×2 matrix B g Multiply by δg on the left, as shown in the following formula:
[0077]
[0078] Among them, B g column vectors Satisfying g⊥b1, g⊥b2, b1⊥b2, that is, B g The plane spanned by the two column vectors satisfies the property of being a tangent plane to a point on the unit sphere in geometric space;
[0079] B g The result of δg is considered 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 The mapped rotation vector R is obtained. g The modulus of (δg) is:
[0080]
[0081] According to R g (δg)=δub1+δvb2, B is calculated g Then, rotate vector R g The direction of rotation corresponding to (δg) is uniquely determined by the direction of δg. Therefore, δg uniquely determines the updated direction and angle of rotation of g.
[0082] Based on the addition field, subtraction on manifold s2 can be defined.
[0083]
[0084] After defining 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.
[0085] S4. Based on the value of the gravity vector in the radar coordinate system, determine the pose transformation relationship between the gravity coordinate system and the radar coordinate system, and project the point cloud of the radar coordinate system into the gravity coordinate system.
[0086] After real-time estimation of the gravity vector is completed at the system front end, the point cloud needs to be transferred from the lidar coordinate system to the gravity coordinate system, that is... Convert to The origins of the gravity coordinate system and the lidar coordinate system have the same three-dimensional coordinates in the world coordinate system; therefore, the two coordinate systems differ only in a rotation amount. G R L (Rotation matrix from the lidar coordinate system L to the gravity coordinate system G).
[0087] Specifically, step S4 includes the following steps:
[0088] S41, Calculate the rotation amount:
[0089] Calculate the gravity vector representation in the radar coordinate system L g: Where B represents the IMU coordinate system, L represents the lidar coordinate system, and W represents the world coordinate system. I R J This represents the rotation matrix for transforming from the J coordinate system to the I coordinate system.
[0090] set up L g = [x L y L , zL ] T The gravity vector in the gravity coordinate system is represented as G g = [0, 0, 1] T Calculate the rotation amount using the following formula. G R L :
[0091]
[0092] Where Exp represents the natural exponential mapping function, and atan2(*) represents the bivariate arctangent function.
[0093] S42, the origins of the gravity coordinate system and the radar coordinate system have the same three-dimensional coordinates in the world coordinate system; the two coordinate systems differ only in rotation. G R L Based on rotation amount G R L The homogeneous coordinate downtransformation matrix from L-frame to G-frame is obtained as follows:
[0094]
[0095] Where 03 represents a 3×1 zero matrix.
[0096] S43, set G T L The corresponding three-dimensional coordinate linear transformation is Based on transformation The point cloud in the radar coordinate system is projected onto the gravity coordinate system, where, This represents the point cloud coordinates in the radar coordinate system. This represents the coordinates of a point cloud in the gravity coordinate system.
[0097] S5: Traverse all point cloud data and perform point cloud filtering based on the comparison results of point cloud coordinates in the gravity coordinate system and distance thresholds.
[0098] The purpose of transforming the point cloud to a gravity coordinate system is to find candidate point clouds for the ground point cloud from the original point cloud. Since the point cloud has already been transformed to a gravity coordinate system, a threshold value z along the z-axis can be preset. th Points smaller than a threshold are selected as candidate ground points. Since considering only ground points in a single point cloud frame may result in a large number of noisy points, this embodiment accumulates point clouds from multiple consecutive point cloud frames during the initialization phase, and then selects candidate ground point clouds from the accumulated point clouds as the point clouds for initializing the ground.
[0099] Step S5 includes the following steps:
[0100] S51, accumulate point clouds from multiple consecutive point cloud frames:
[0101] Let N be the number of accumulated point cloud frames, and let L be the coordinate system of the i-th point cloud frame. i The gravitational coordinate system is represented as G. i The IMU coordinate system is represented as B. i The accumulated point cloud from multiple consecutive point cloud frames is calculated using the following formula.
[0102]
[0103] Where W represents the world coordinate system, This represents the transformation matrix from the J coordinate system to the I coordinate system. Represents a point cloud in the lidar coordinate system;
[0104] S52, Filter candidate ground point clouds from the accumulated point cloud as the initial ground point cloud:
[0105] Preset the threshold z in the z-axis direction th Points in the point cloud with values less than a threshold are selected as candidate ground points to obtain the initial ground candidate point cloud.
[0106]
[0107] S6, iteratively fits the plane equation of the ground based on the selected point cloud.
[0108] Since the system's motion is not significant in the initial N frames (N is set to 10 in this embodiment, corresponding to a time of 1 second), the ground can be approximated as a plane equation satisfying Ax + By + Cz + D = 0. Therefore, after obtaining the ground candidate point cloud, this embodiment uses the Random Sample Consensus (RANSAC) method to fit the ground plane equation parameters, specifically including the following steps:
[0109] S61, Planar model calculation: Randomly select three non-coplanar points from the selected point cloud, and use the coordinates of the three points to fit the planar model;
[0110] Let p be three non-coplanar points. a p b p c Then vector v ab =p b -p a v ac =p c -p a The cross product of vectors yields n = v ab ×v ac Then, n is normalized to obtain the planar model.
[0111] S62, Interior Point Check: For other points in a frame of point cloud, calculate their distance to the planar model. If the distance is less than a set threshold, it is judged as an interior point.
[0112] S63, Model Reconstruction and Error Assessment: The planar model is evaluated using interior points and errors are calculated, including the root mean square error of the distance from the points to the plane and the cosine similarity error between the plane model normal vector and the gravity vector.
[0113] S64, Repeated Iteration: Repeat steps S61-S63 above until the preset number of iterations is met, and use the plane model with the smallest error as the final fitted plane equation output.
[0114] This embodiment also provides a real-time ground point cloud detection device based on gravity vector, including a memory, a processor, and a program stored in the memory. When the processor executes the program, it implements the method described above.
[0115] If the aforementioned functions are implemented as 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 this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0116] The preferred embodiments of the present invention have been described in detail above. *It should be understood that those skilled in the art can make many modifications and variations based on the concept of the present invention without creative effort. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning, or limited experimentation on the basis of the prior art should be within the scope of protection defined by the claims.
Claims
1. A real-time ground point cloud detection method based on gravity vector, characterized in that, Includes the following steps: S1, based on radar-collected point cloud data of surrounding roads; S2, Establish the radar coordinate system and perform distortion correction on the point cloud data; S3, based on the inertial measurement unit, determines the direction of gravity, establishes a gravity coordinate system, and updates the gravity vector in real time according to the pose transformation between each frame of radar data output by the odometer. Step S3 specifically involves: setting the manifold The variables on are The variables on its tangent plane are , Indicates the variables on the tangent plane The rotation vector mapped to three-dimensional space; Let the gravity vector be... , The update process is represented as follows: in, Representing a manifold Addition on top, Exp Represents the natural exponential mapping function; The method for calculating the rotation vector is as follows: Rotate vector View it as a 3×2 matrix Left multiplication As shown in the following formula: in, column vectors , ,satisfy ,Right now, The plane spanned by the two column vectors satisfies the property of being a tangent plane to a point on the unit sphere in geometric space; Will The result is regarded as and A linear combination of the mapped rotation vectors Perpendicular to ,set up The mapped rotation vector is obtained. The modulus is: according to Calculations yielded Then, rotate vector The corresponding rotation direction is from The direction is uniquely determined; S4. Based on the value of the gravity vector in the radar coordinate system, determine the pose transformation relationship between the gravity coordinate system and the radar coordinate system, and project the point cloud of the radar coordinate system into the gravity coordinate system. S5, traverse all point cloud data and filter points based on the comparison results of point cloud coordinates in the gravity coordinate system and distance thresholds; S6, iteratively fits the plane equation of the ground based on the selected point cloud.
2. The real-time ground point cloud detection method based on gravity vector according to claim 1, characterized in that, Step S2 includes the following steps: S21. Establish a radar coordinate system with the laser emission point as the origin, the front of the radar-equipped vehicle as the positive X-axis, and the left side of the vehicle as the positive Y-axis. S22, using the angular velocity and acceleration data of the inertial measurement unit, perform forward integration to obtain the pose transformation of a point cloud frame; S23. Assuming the car moves at a constant speed within one frame, use time interpolation to compensate for distortion at each point, project each point back to the initial time, and obtain a frame of distortion-free point cloud.
3. The real-time ground point cloud detection method based on gravity vector according to claim 1, characterized in that, In step S3, when updating the gravity vector in real time, the gravity vector is represented on the manifold. Estimation is performed on the manifold. gravity vector on The update process mimics the rotation process of a three-dimensional vector: based on the pose transformation between the preceding and following frames of radar data output by the vehicle's front-end odometer, a two-dimensional vector of the tangent plane is obtained. This two-dimensional vector of the tangent plane is then mapped onto three-dimensional space, and the mapped vector is regarded as a rotation vector. The rotation vector is then mapped back to a manifold through exponential mapping. ,Will Acting on the gravitational vector The updated gravity vector is obtained above. .
4. The real-time ground point cloud detection method based on gravity vector according to claim 1, characterized in that, Step S4 includes the following steps: S41, Calculate the rotation amount: Calculate the gravity vector representation in the radar coordinate system ,in, B Indicates the IMU coordinate system. L Indicates the coordinate system of the lidar. W Indicates the world coordinate system. I R J This represents the rotation matrix used to transform from the J coordinate system to the I coordinate system; set up The gravity vector in the gravity coordinate system is represented as Calculate the rotation amount using the following formula. : Where Exp represents the natural exponential mapping function; S42, the origins of the gravity coordinate system and the radar coordinate system have the same three-dimensional coordinates in the world coordinate system; the two coordinate systems differ only in rotation. Based on rotation amount get Tie Homogeneous coordinate downtransformation matrix of the system: Where 03 represents a 3×1 zero matrix; S43, set The corresponding three-dimensional coordinate linear transformation is Based on transformation The point cloud in the radar coordinate system is projected onto the gravity coordinate system, where, This represents the point cloud coordinates in the radar coordinate system. This represents the coordinates of a point cloud in the gravity coordinate system.
5. The real-time ground point cloud detection method based on gravity vector according to claim 1, characterized in that, Step S5 includes the following steps: S51, accumulate point clouds from multiple consecutive point cloud frames: Let the cumulative number of point cloud frames be , No. The lidar coordinate system of a point cloud frame is represented as follows: The gravity coordinate system is represented as The IMU coordinate system is represented as The accumulated point cloud from multiple consecutive point cloud frames is calculated using the following formula. : in, Represents the world coordinate system Indicates from J Coordinate system transformation I The transformation matrix of the coordinate system. Represents a point cloud in the lidar coordinate system; S52, Filter candidate ground point clouds from the accumulated point cloud as the initial ground point cloud: Preset Threshold in the axial direction Points in the point cloud with values less than a threshold are selected as candidate ground points to obtain the initial ground candidate point cloud. : 。 6. The real-time ground point cloud detection method based on gravity vector according to claim 1, characterized in that, Step S6 specifically involves: S61, Planar model calculation: Randomly select three non-coplanar points from the selected point cloud, and use the coordinates of the three points to fit the planar model; S62, Interior Point Check: For other points in a frame of point cloud, calculate their distance to the planar model. If the distance is less than a set threshold, it is judged as an interior point. S63, Model Reconstruction and Error Assessment: The planar model is evaluated using interior points and the error is calculated, including the root mean square error of the distance from the point to the plane and the cosine similarity error between the plane model normal vector and the gravity vector. S64, Repeated Iteration: Repeat steps S61-S63 above until the preset number of iterations is met, and use the plane model with the smallest error as the final fitted plane equation output.
7. A real-time ground point cloud detection device based on gravity vector, comprising a memory, a processor, and a program stored in the memory, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1-6.
8. A storage medium having a program stored thereon, characterized in that, When the program is executed, it implements the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Simultaneous positioning mapping method and device fusing laser radar and IMU, and storage medium
CN113763549A
Road surface detection method and device related to laser radar point cloud data and medium
CN114755695A
