A ground extraction method for vehicle-mounted laser radar point cloud based on vehicle data
By screening and calculating the coordinate average and seed point set of vehicle-mounted LiDAR point cloud data, combined with the vehicle body attitude angle, and using a plane model and covariance matrix singular value decomposition, the accuracy and adaptability of LiDAR point cloud ground extraction are achieved. It solves the problems of complex calculation and poor applicability in the existing technology, and improves the safety of the automatic driving system.
Patent Information
- Application Number
- CN202210699140.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-06-20
AI Technical Summary
Existing lidar point cloud ground extraction methods are computationally complex and have poor applicability, especially in autonomous driving gradient scenarios, which affect the real-time performance and safety of the autonomous driving system.
By obtaining the vehicle lidar point cloud data, we screen the points that meet the height threshold and longitudinal distance, calculate the coordinate average, and calculate the initial seed point set based on the body attitude angle pitch and roll values, using linear plane equations and covariance matrix singular value decomposition Calculate the plane normal vector and perform loop iteration to extract ground points.
It improves the accuracy and adaptability of lidar point cloud ground extraction, adapts to sloped roads, reduces computational complexity, and improves the safety and real-time performance of the autonomous driving system.
Smart Images

Figure CN115236637B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of automobile intelligence, and in particular relates to a vehicle-mounted laser radar point cloud ground extraction method based on vehicle data. Background Art
[0002] With the rapid development of automobile intelligence, more and more cars are equipped with autonomous driving systems. Autonomous driving systems mainly use perception sensors to obtain the environmental conditions around the vehicle, thereby realizing dynamic planning and automatic control of vehicle operation. Therefore, in order to ensure the reliability and safety of autonomous driving system planning and control, it is first necessary to ensure that the autonomous driving system can accurately obtain the environmental conditions around the vehicle through perception sensors.
[0003] Common perception sensors on vehicles include cameras, millimeter-wave radars, lidars, and ultrasound. Lidars have the characteristics of high precision and 3D information about the external environment. When the autonomous driving system uses lidar point cloud data to identify small objects in front of the vehicle, it needs to complete ground extraction first. If the ground threshold is too large, small objects may be directly filtered out as ground and cannot participate in subsequent clustering recognition. If the ground threshold is too small, it may lead to incomplete ground extraction, affecting the subsequent clustering recognition effect and real-time performance.
[0004] At present, the more common method for ground extraction from laser point clouds is the random sampling consistency algorithm, which calculates a plane by randomly selecting points, and then calculates the plane with the most points falling within a certain threshold as the ground. This method works well when the ground is flat, has no slope, or has a small slope, but there are many scenarios in autonomous driving where the road surface has slopes, so its applicability in autonomous driving is relatively low. Chinese Patent CN202111453859.4 A method and storage medium for extracting ground points from a vehicle-mounted point cloud. The scheme segments the point cloud into sections based on trajectories, then uses the moving least squares method to extract the road surface of the section one by one, and finally extracts and refines the ground points by constraining the geometric features of the point cloud in the section; Chinese Patent CN202011075094.0 A method, device, equipment and storage medium for extracting ground point cloud data. The scheme maps the target ground point cloud set to a two-dimensional image, traverses the target two-dimensional image, calculates the angle value formed by two adjacent pixel points in the target two-dimensional image, and obtains the angle matrix corresponding to the target two-dimensional image; traverses the target two-dimensional image according to the angle matrix to obtain ground point cloud data; Both schemes are relatively complex, which can easily lead to an increase in the amount of computation of the autonomous driving system, affect the real-time performance of the autonomous driving system, and have low applicability in autonomous driving. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by the present invention is to provide a vehicle-mounted lidar point cloud ground extraction method based on vehicle data, so as to solve the problems of complex calculations and poor applicability of the lidar point cloud ground extraction method, and achieve the effect of improving the safety of autonomous driving.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0007] A vehicle-mounted laser radar point cloud ground extraction method based on vehicle data includes the following steps:
[0008] 1) Obtain the point cloud data collected by the vehicle-mounted laser radar and sort them in ascending order according to the longitudinal distance from the vehicle;
[0009] 2) Filter out points whose height values are less than or equal to the height threshold and whose longitudinal distances from the vehicle are less than a preset value from the sorted point cloud data, and calculate the average coordinates of the selected points to obtain the average coordinate points;
[0010] 3) Obtain the pitch value and roll value of the vehicle body posture angle in the vehicle data, calculate two points coplanar with the average coordinate point, and use the average coordinate point and the two points coplanar with the average coordinate point as the initial seed point set;
[0011] 4) Perform plane calculation and iterate according to the initial seed point set;
[0012] 5) After the loop iteration is terminated, the ground point set is obtained, and the ground point set is removed from the point cloud data to complete the ground extraction.
[0013] Furthermore, in step 1), the point cloud data is first converted to the same coordinate system as the body posture angle in the vehicle data, denoted as p, and then p is sorted from small to large according to the longitudinal distance from the vehicle through a sorting algorithm, denoted as P sort .
[0014] Further, in step 2), from P sort Filter out the height values that are less than or equal to the height threshold d th The point is denoted as P g , then take P g The first k points of the k-point coordinates are calculated to get the average coordinate point, which is recorded as k m (x m ,y m ,z m );
[0015] The k value is determined by the preset value, the preset value range is 10 to 20 m, and the k value is less than or equal to P sort The number of point clouds and if k is greater than P g The number of point clouds, then the k value is related to P gThe number of point clouds is equal.
[0016] Further, in step 3), the k m The point k1 on the same plane, k1(x m +a,y m ,z m +atan(pitch)), calculated according to the roll value and k m The point k2 on the same plane, we get k2(x m ,y m -b,z m +btan(roll)); where a and b are constants not equal to 0, k m , k1 and k2 are used as the initial seed point set, denoted as S.
[0017] Further, step 4) includes the following sub-steps:
[0018] 41) For the initial seed point set S∈R 3 , use the linear plane equation ax+by+cz+d=0 to estimate the plane model, solve to obtain the plane normal vector n, and calculate the distance d from each point to the plane based on the plane normal vector n;
[0019] 42) Compare the distance d with the threshold d th Compare, if the distance d is less than or equal to the threshold d th , then the point corresponding to the distance d is regarded as a point belonging to the ground, and all the points regarded as belonging to the ground constitute the ground point set P ground , and the ground point set P obtained in this iteration ground As the seed point set S for the next loop iteration;
[0020] 43) Calculate the ground point set P ground The number of midpoint clouds n g And with the initial point cloud number n pre For comparison, if |n g -n pre | <n th , n th For custom hyperparameters, the constant count with an initial value of 0 is increased by 1. If |n g -n pre |≥n th , then set the constant count to 0, and finally set n g Assign the value of n pre ;
[0021] 44) Determine whether the constant count is greater than or equal to 5. If so, exit the loop iteration; otherwise, enter the next loop iteration until n loop iterations are completed.
[0022] Further, step 41) includes the following sub-steps:
[0023] 411) Calculate the covariance matrix C∈R of the seed point set S 3×3 , the calculation formula is as follows:
[0024]
[0025] Among them, s i is an element in the seed point set S, is the mean of all elements in the seed point set S, and T represents transposition;
[0026] 412) performing singular value decomposition on the covariance matrix C; since it is a plane model, the normal vector n perpendicular to the plane represents the direction with the minimum variance, so the singular vector with the minimum singular value is the normal vector n;
[0027] 413) Substituting the plane equation ax+by+cz+d=0 with n T x=-d means, where n is the normal vector, Substitute into the calculation to get the distance d.
[0028] Further, in step 42), d th =d input -d, where d input Hyperparameters for custom settings.
[0029] Furthermore, in step 5), after the loop iteration is terminated, the final ground point set P ground Represents the final ground, removing the final ground point set P from the point cloud data ground , and get the result of ground extraction.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] 1. The present invention discloses a vehicle-mounted laser radar point cloud ground extraction method based on vehicle data. First, some points in the point cloud data that meet the height threshold and are closer to the vehicle in the longitudinal direction are selected as the basis for calculating the coordinate average value to obtain the average coordinate; then, the pitch value and roll value in the vehicle body attitude angle are combined to calculate the coordinate values of the other two points coplanar with the plane where the vehicle is located, and these three points are used as the initial seed point set; the point cloud data and the vehicle body attitude angle in the vehicle data are combined to enable the ground extraction to adapt to sloping roads, which is more in line with the current driving state of the vehicle, and the ground extraction is more accurate and reliable.
[0032] 2. The vehicle-mounted laser radar point cloud ground extraction method based on vehicle data described in the present invention provides a method for calculating its normal vector through a seed point set to obtain a plane.
[0033] 3. The vehicle-mounted laser radar point cloud ground extraction method based on vehicle data described in the present invention provides a method for finding stable ground points through cyclic iteration and then obtaining the ground. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A flowchart of a vehicle-mounted laser radar point cloud ground extraction method based on vehicle data in an embodiment;
[0035] Figure 2 The calculation of k according to the pitch value described in the embodiment m Schematic diagram of coplanar point k1;
[0036] Figure 3 The calculation of k according to the roll value described in the embodiment m Schematic diagram of the coplanar point k2. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0038] It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. In the description of the present invention, it should be noted that the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the invention product is usually placed when used, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance. In addition, the terms "horizontal", "vertical", etc. do not mean that the components are absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted. In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0039] Example:
[0040] See also Figure 1 , a vehicle-mounted laser radar point cloud ground extraction method based on vehicle data, comprising the following steps:
[0041] 1) Obtain the point cloud data collected by the vehicle-mounted laser radar and sort them in ascending order according to the longitudinal distance from the vehicle (i.e., the connection direction between the front and rear of the vehicle, the X-axis direction); specifically, first convert the point cloud data to the same coordinate system as the body posture angle in the vehicle data, denoted as p, and then sort p in ascending order according to the longitudinal distance from the vehicle through a sorting algorithm, denoted as P sort .
[0042] 2) Filter out points whose height values are less than or equal to the height threshold and whose longitudinal distances from the vehicle are less than a preset value from the sorted point cloud data, and calculate the average coordinates of the selected points to obtain the average coordinate points; the details are as follows:
[0043] From P sort Filter out the height values that are less than or equal to the height threshold d th The point is denoted as P g, then take P g The first k points of the system are calculated, and the average coordinate point is obtained by calculating the average coordinate point, which is recorded as k m (x m ,y m ,z m );
[0044] The k value is determined by the preset value, the preset value range is 10 to 20 m, and the k value is less than or equal to P sort The number of point clouds and if k is greater than P g The number of point clouds, then the k value is related to P g The number of point clouds is equal.
[0045] 3) Obtain the pitch value (pitch angle) and roll value (roll angle) of the vehicle body posture angle in the vehicle data, calculate two points coplanar with the average coordinate point, and use the average coordinate point and the two points coplanar with the average coordinate point as the initial seed point set; the details are as follows:
[0046] See also Figure 2 , calculated according to the pitch value and k m The point k1 on the same plane, k1(x m +a,y m ,z m +atan(pitch));
[0047] See also Figure 3 , calculated according to the roll value and k m The point k2 on the same plane, we get k2(x m ,y m -b,z m +btan(roll)); where a and b are constants not equal to 0, k m , k1 and k2 are used as the initial seed point set, denoted as S.
[0048] 4) Performing plane calculation and loop iteration based on the initial seed point set; including the following sub-steps:
[0049] 41) For the initial seed point set S∈R 3 , use the linear plane equation ax+by+cz+d=0 to estimate the plane model, solve to obtain the plane normal vector n, and calculate the distance d from each point to the plane based on the plane normal vector n; including the following sub-steps:
[0050] 411) Calculate the covariance matrix C∈R of the seed point set S 3×3 , the calculation formula is as follows:
[0051]
[0052] Among them, si is an element in the seed point set S, is the mean of all elements in the seed point set S, and T represents transposition;
[0053] 412) performing singular value decomposition on the covariance matrix C; since it is a plane model, the normal vector n perpendicular to the plane represents the direction with the minimum variance, so the singular vector with the minimum singular value is the normal vector n;
[0054] 413) Substituting the plane equation ax+by+cz+d=0 with n T x=-d means, where n is the normal vector, Substitute into the calculation to get the distance d.
[0055] 42) Compare the distance d with the threshold d th Compare, if the distance d is less than or equal to the threshold d th , then the point corresponding to the distance d is regarded as a point belonging to the ground, and all the points regarded as belonging to the ground constitute the ground point set P ground , and the ground point set P obtained in this iteration ground As the seed point set S for the next loop iteration; where d th =d input -d, where d input Hyperparameters for custom settings;
[0056] 43) Calculate the ground point set P ground The number of midpoint clouds n g And with the initial point cloud number n pre For comparison, if |n g -n pre | <n th , n th For custom hyperparameters, the constant count with an initial value of 0 is increased by 1. If |n g -n pre |≥n th , then set the constant count to 0, and finally set n g Assign the value of n pre ;
[0057] 44) Determine whether the constant count is greater than or equal to 5. If so, exit the loop iteration; otherwise, enter the next loop iteration until n loop iterations are completed.
[0058] 5) After the loop iteration is terminated, the ground point set is obtained, and the ground point set is removed from the point cloud data to complete the ground extraction; the details are as follows: After the loop iteration is terminated, the final ground point set P ground Represents the final ground, removing the final ground point set P from the point cloud data ground , and get the result of ground extraction.
[0059] The present invention discloses a method for extracting ground from a vehicle-mounted laser radar point cloud based on vehicle data. Considering that the ground close to the vehicle is actually nearly parallel to the plane where the vehicle is located, the method first selects some points in the point cloud data that meet the height threshold and are closer to the vehicle in the longitudinal direction as the basis for calculating the coordinate average value to obtain the average coordinate; then, the pitch value and roll value in the vehicle body attitude angle are combined to calculate the coordinate values of the other two points that are coplanar with the plane where the vehicle is located. These three points are used as the initial seed point set, and their normal vectors are calculated through the seed point set to obtain the plane where the ground is located; finally, a ground point that tends to be stable is found through a cyclic iteration, which can adapt to sloping roads, and can effectively solve the problems of complex calculations and poor applicability of the laser radar point cloud ground extraction method, thereby achieving the effect of improving the safety of autonomous driving.
[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.
Claims
1. A vehicle-mounted laser radar point cloud ground extraction method based on vehicle data, characterized by: The steps include: 1) Obtain the point cloud data collected by the vehicle-mounted laser radar and sort them in ascending order according to the longitudinal distance from the vehicle; 2) Filter out points whose height values are less than or equal to the height threshold and whose longitudinal distances from the vehicle are less than a preset value from the sorted point cloud data, and calculate the average coordinates of the selected points to obtain the average coordinate points; 3) Obtain the pitch value and roll value of the vehicle body posture angle in the vehicle data, calculate two points coplanar with the average coordinate point, and use the average coordinate point and the two points coplanar with the average coordinate point as the initial seed point set; 4) Perform plane calculation and iterate according to the initial seed point set; 5) After the loop iteration is terminated, the ground point set is obtained, and the ground point set is removed from the point cloud data to complete the ground extraction; The average coordinate point is denoted as k m (x m ,y m ,z m ), in step 3), the pitch value is calculated according to k m The point k1 on the same plane, k1(x m +a,y m ,z m +atan(pitch)), calculated according to the roll value and k m The point k2 on the same plane, k2(x m ,y m -b,z m +btan(roll)); where a and b are constants not equal to 0, k m , k1 and k2 are used as the initial seed point set, denoted as S.
2. According to claim 1, a vehicle-mounted laser radar point cloud ground extraction method based on vehicle data is characterized in that: In step 1), the point cloud data is first converted to the same coordinate system as the body posture angle in the vehicle data, denoted as p, and then the p is sorted from small to large according to the longitudinal distance from the vehicle through a sorting algorithm, denoted as P sort .
3. According to claim 2, a vehicle-mounted laser radar point cloud ground extraction method based on vehicle data is characterized in that: In step 2), from P sort Filter out the height values that are less than or equal to the height threshold d th The point is denoted as P g , then take P g The first k points of the k-point coordinates are calculated to get the average coordinate point, which is recorded as k m (x m ,y m ,z m ); The k value is determined by the preset value, the preset value range is 10 to 20 m, and the k value is less than or equal to P sort The number of point clouds and if k is greater than P g The number of point clouds, then the k value is related to P g The number of point clouds is equal.
4. According to claim 3, a vehicle-mounted laser radar point cloud ground extraction method based on vehicle data is characterized in that: Step 4) includes the following sub-steps: 41) For the initial seed point set S∈R 3 , use the linear plane equation ax+by+cz+d=0 to estimate the plane model, solve to obtain the plane normal vector n, and calculate the distance d from each point to the plane based on the plane normal vector n; 42) Compare the distance d with the threshold d th Compare, if the distance d is less than or equal to the threshold d th , then the point corresponding to the distance d is regarded as a point belonging to the ground, and all the points regarded as belonging to the ground constitute the ground point set P ground , and the ground point set P obtained in this iteration ground As the seed point set S for the next loop iteration; 43) Calculate the ground point set P ground The number of point clouds n g And with the initial point cloud number n pre For comparison, if |n g -n pre | <n th , n th For custom hyperparameters, the constant count with an initial value of 0 is increased by 1. If |n g -n pre |≥n th , then set the constant count to 0, and finally set n g Assign the value of n pre ; 44) Determine whether the constant count is greater than or equal to 5. If so, exit the loop iteration; otherwise, enter the next loop iteration until n loop iterations are completed.
5. According to claim 4, a vehicle-mounted laser radar point cloud ground extraction method based on vehicle data is characterized in that: Step 41) includes the following sub-steps: 411) Calculate the covariance matrix C∈R of the seed point set S 3×3 , the calculation formula is as follows: Among them, s i is an element in the seed point set S, is the mean of all elements in the seed point set S, and T represents transposition; 412) performing singular value decomposition on the covariance matrix C; since it is a plane model, the normal vector n perpendicular to the plane represents the direction with the minimum variance, so the singular vector with the minimum singular value is the normal vector n; 413) Substituting the plane equation ax+by+cz+d=0 with n T x=-d, where n is the normal vector, and n is substituted into the calculation to obtain the distance d.
6. According to claim 5, a vehicle-mounted laser radar point cloud ground extraction method based on vehicle data is characterized in that: In step 42), d th =d input -d, where d input Hyperparameters for custom settings.
7. The vehicle-mounted laser radar point cloud ground extraction method based on vehicle data according to claim 6, characterized in that: In step 5), after the loop iteration is terminated, the final ground point set P ground Represents the final ground, removing the final ground point set P from the point cloud data ground , and get the result of ground extraction.
Citation Information
Patent Citations
Ground point cloud data extraction method, device and apparatus and storage medium
CN112132108A
Vehicle-mounted point cloud ground point extraction method and storage medium
CN114119998A
Vehicle-mounted laser point cloud segmentation method and system
CN111192284A
Pavement characteristic parameter automatic extraction method and system
CN111239757A
Slope ground point cloud segmentation method and system based on multi-line laser radar
CN113920134A
