Passable ground detection method, terminal device and storage medium
By using a method based on spatial region division and 3D point cloud segmentation, the problem of detecting negative obstacles in unstructured scenes in existing technologies is solved, and the effect of accurately detecting the ground in complex scenes is achieved.
Patent Information
- Application Number
- CN202211659616.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-12-22
AI Technical Summary
Existing ground detection methods struggle to effectively detect negative obstacles such as steep downhill slopes, downward steps, and potholes, as well as uneven ground, in unstructured scenarios, resulting in poor versatility and adaptability.
A method based on spatial region division and 3D point cloud segmentation is adopted. By establishing a carrier coordinate system, the 3D point cloud is divided into point cloud regions that are distributed in an array. The RANSAC and MLE algorithms are used to estimate the plane parameters, and the ground point cloud regions are selected by judging the included angle and distance. Finally, point cloud segmentation is performed to identify the ground point cloud.
It can accurately detect the ground in complex unstructured scenarios, adapt to various complex scenarios, and has strong versatility and stability.
Smart Images

Figure CN118247762B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of point cloud data processing technology, specifically a passable ground detection method, terminal equipment, and storage medium. Background Technology
[0002] Generally, mobile robots comprise perception, localization, path planning, navigation, decision-making, and control systems. The perception system, as the first link in the robot's data flow, provides data input to downstream systems. Obstacle detection is one of the most crucial perception capabilities of a mobile robot. The accuracy and stability of obstacle detection directly affect the robot's path planning and decision-making, thus impacting its operational capabilities and overall performance. Therefore, improving the performance of obstacle detection algorithms plays a decisive role in enhancing the overall performance of mobile robots. And to detect obstacles, it is generally necessary to first detect traversable ground conditions.
[0003] In unstructured scenes, uphill ramps and negative obstacles (such as downhill stairs, ramps, potholes, etc.) are common traffic elements. Existing ground detection methods include those based on the height difference between adjacent regions, those based on disparity maps, and those based on strip pixels. However, these methods struggle to detect ground in complex scenes with ramps and negative obstacles, which limits their versatility. Summary of the Invention
[0004] To address the challenge of detecting walkable ground in complex unstructured scenarios, this invention provides a walkable ground detection method, terminal device, and storage medium. Employing spatial region division and 3D point cloud segmentation, it can adapt to various scenarios and possesses strong versatility while ensuring detection accuracy and stability.
[0005] To achieve the above objectives, the present invention provides a method for detecting passable ground, comprising the following steps:
[0006] Step 1: Establish the carrier coordinate system o-xyz, and transform the 3D point cloud acquired in the current frame into the carrier coordinate system, where the z-axis is the direction of gravity or the opposite direction of gravity;
[0007] Step 2: Divide the 3D point cloud into several point cloud regions arranged in an array, with some overlap between any two adjacent point cloud regions. The dividing plane is parallel to the z-axis.
[0008] Step 3: Estimate the three-dimensional plane parameters of each point cloud region to obtain the plane equation corresponding to each point cloud region;
[0009] Step 4: Based on the planar equation of each point cloud region, filter out the ground point cloud regions;
[0010] Step 5: Segment all data points in all point cloud regions based on the ground point cloud region to obtain a ground point cloud composed of ground data points and output it.
[0011] In one embodiment, step 3, which involves estimating the three-dimensional plane parameters of each point cloud region to obtain the plane equation corresponding to each point cloud region, specifically involves:
[0012] For the i-th point cloud region, N data points are selected in the point cloud region based on uniform random downsampling;
[0013] Based on the selected N data points, the precise plane of the i-th point cloud region is estimated;
[0014] Based on the matching strategy, the precise plane is matched with the previous region plane of the i-th point cloud region:
[0015] If the match is successful, the precise plane is used as the new region plane, and the plane equation of the precise plane is output as the plane equation corresponding to the i-th point cloud region in the current frame.
[0016] If the match fails, output the plane equation of the previous region plane of the i-th point cloud region, and use it as the plane equation corresponding to the current frame of the i-th point cloud region.
[0017] In one embodiment, the process of estimating the precise plane is as follows:
[0018] Based on the selected N data points, the RANSAC algorithm is first used to estimate the initial plane of the i-th point cloud region;
[0019] Based on the in-group points of the initial plane, the MLE algorithm is used to estimate the precise plane of the i-th point cloud region.
[0020] In one embodiment, the matching strategy is:
[0021] Angle judgment: Calculate the angle between the normal vector of the precise plane and the previous region plane. If the angle is greater than the first threshold, the match fails; otherwise, perform a distance judgment.
[0022] Distance judgment: Calculate the distance between the precise plane and the previous region plane. If the distance is greater than the second threshold, the match fails; otherwise, the match succeeds.
[0023] In one embodiment, the calculation process for the distance Δd between the precise plane and the previous region plane is as follows:
[0024]
[0025] Among them, A i1 B i1 Ci1 D i1 The plane equation A of the precise plane of the i-th point cloud region i1 x+B i1 y+C i1 z+D i1 The plane parameter A = 0 i2 B i2 C i2 D i2 Let A be the plane equation of the previous region plane of the i-th point cloud region. i2 x+B i2 y+C i2 z+D i2 Plane parameters = 0.
[0026] In one embodiment, step 4 specifically includes:
[0027] Step 4.1: Establish a set of ground point cloud regions and sort them from near to far according to the distance of the center point of each point cloud region from point o. After obtaining the point cloud region sequence, proceed to step 4.2.
[0028] Step 4.2: Extract the first point cloud region from the point cloud region sequence, define it as point cloud region #1, and delete point cloud region #1 from the point cloud region sequence before proceeding to step 4.3;
[0029] Step 4.3, determine whether point cloud region #1 is located in the row of point cloud regions closest to point o:
[0030] If so, proceed to step 4.4;
[0031] Otherwise, proceed to step 4.6;
[0032] Step 4.4: Calculate the first angle between the region plane normal vector of point cloud region #1 and the z-axis, and determine whether the first angle is greater than the third threshold. If it is, return to step 4.2; otherwise, proceed to step 4.5.
[0033] Step 4.5: Determine whether there is a first intersection line between the region plane of point cloud region #1 and the xoy plane. If yes, proceed to step 4.10; otherwise, return to step 4.2.
[0034] Step 4.6: Determine if there exists a point cloud region in the ground point cloud region cluster that is located in the row preceding and adjacent to point cloud region #1:
[0035] If it exists, then the ground point cloud region that is located in the row in front of point cloud region 1, adjacent to point cloud region 1, and closest to point o is defined as point cloud region 2, and then proceed to step 4.7.
[0036] If it does not exist, return to step 4.2;
[0037] Step 4.7: Calculate the second angle between the region plane normal vector of point cloud region #1 and the region plane normal vector of point cloud region #2, and determine whether the second angle is greater than the third threshold. If it is, return to step 4.2; otherwise, proceed to step 4.8.
[0038] Step 4.8: Determine whether there is a second intersection line between the region plane of point cloud region #1 and the region plane of point cloud region #2. If yes, proceed to step 4.9; otherwise, return to step 4.2.
[0039] Step 4.9: Determine whether the second intersection line is located within the overlapping area of point cloud region #1 and point cloud region #2. If so, proceed to step 4.10; otherwise, return to step 4.2.
[0040] Step 4.10: Take point cloud region #1 as the ground point cloud region and keep it in the ground point cloud region set. Determine whether the current point cloud region sequence is an empty sequence. If it is, return to step 4.2. Otherwise, output the ground point cloud region in the ground point cloud region set.
[0041] In one embodiment, step 5 specifically includes: defining each point cloud region as point cloud region #3, and uniformly processing the normal vector of each point cloud region #3 so that the z-component of the normal vector of all point cloud regions #3 is greater than or equal to 0, and then performing the following operations on each point cloud region #3:
[0042] Step 5.1, determine whether point cloud region #3 is a ground point cloud region:
[0043] If so, proceed to step 5.2;
[0044] Otherwise, proceed to step 5.5;
[0045] Step 5.2, for any data point in point cloud region #3, determine whether the data point is within an overlapping region:
[0046] If so, proceed to step 5.4;
[0047] Otherwise, proceed to step 5.3;
[0048] Step 5.3, calculate the distance d from the data point to the corresponding point cloud region #3 on the regional plane:
[0049] If the distance d is greater than the fourth threshold, then the data point is determined to be a positive obstacle data point;
[0050] If the distance d is less than the fifth threshold, then the data point is determined to be a negative obstacle data point;
[0051] If the distance d is greater than or equal to the fifth threshold and less than or equal to the fourth threshold, then the data point is determined to be a ground data point.
[0052] Step 5.4, calculate the two distances d from the data point to the corresponding two point cloud regions #3 on the region plane:
[0053] If both distances d are greater than the fourth threshold, then the data point is determined to be a positive obstacle data point;
[0054] If both distances d are less than the fifth threshold, then the data point is determined to be a negative obstacle data point;
[0055] If either of the two distances d is greater than or equal to the fifth threshold and less than or equal to the fourth threshold, then the data point is determined to be a ground data point.
[0056] Step 5.5: Determine whether a ground point cloud region exists among all adjacent point cloud regions of point cloud region #3.
[0057] If so, then arbitrarily select one of the ground point cloud regions adjacent to the #3 point cloud region, define it as the #4 point cloud region, and then proceed to step 5.6.
[0058] Otherwise, all data points in the #3 point cloud region are determined to be obstacle data points;
[0059] Step 5.6: For any data point in point cloud region #3, calculate its distance d from the plane of point cloud region #4.
[0060] If the distance d is greater than the fourth threshold, then the data point is determined to be a positive obstacle data point;
[0061] If the distance d is less than the fifth threshold, then the data point is determined to be a negative obstacle data point;
[0062] If the distance d is greater than or equal to the fifth threshold and less than or equal to the fourth threshold, then the data point is determined to be a ground data point.
[0063] After processing all point cloud regions #3 using steps 5.1 to 5.6, a ground point cloud composed of ground data points can be obtained.
[0064] In one embodiment, the distance d is calculated as follows:
[0065]
[0066] Where d is the data point (x n ,y n ,z n ) and region plane A m x+B m y+C mz+D m The distance between A and 0 m B m C m D m These are the planar parameters of the region plane.
[0067] To achieve the above objectives, the present invention also provides a terminal device, which is an unmanned vehicle, a drone, an unmanned driving device, or a mobile robot, and the terminal device is equipped with:
[0068] Memory, used to store programs;
[0069] A processor for executing the program stored in the memory, wherein when the program is executed, the processor is used to perform some or all of the steps of the method described above.
[0070] To achieve the above objectives, the present invention also provides a computer-readable storage medium storing computer-executable instructions; when executed by a processor, the computer-executable instructions are used to implement some or all of the steps of the method described above.
[0071] This invention provides a passable ground detection method, terminal device, and storage medium. First, based on spatial region segmentation, a three-dimensional point cloud is divided into several point cloud regions arranged in an array. Then, the three-dimensional planar parameters of each point cloud region are estimated to determine whether each point cloud region is a ground point cloud region. Finally, based on the known ground point cloud regions, all point cloud regions are segmented. Under the premise of ensuring detection accuracy and stability, it can detect ground in various complex scenarios, including negative obstacles such as steep downhill slopes, downward steps, and potholes, as well as positive obstacles such as moving obstacles and steep uphill slopes, and uneven ground. It has strong adaptability, generalization, and versatility in various complex unstructured scenarios. Attached Figure Description
[0072] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0073] Figure 1 This is a flowchart of a feasible ground detection method in an embodiment of the present invention;
[0074] Figure 2 This is a flowchart of the three-dimensional plane parameter estimation and matching based on the cascade strategy in an embodiment of the present invention;
[0075] Figure 3 This is a flowchart illustrating ground point cloud region identification in an embodiment of the present invention;
[0076] Figure 4 This is a structural block diagram of the terminal device in an embodiment of the present invention.
[0077] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0078] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0079] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0080] Furthermore, in this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0081] Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but only if they are feasible for those skilled in the art. If the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.
[0082] This embodiment discloses a passable ground detection method that can be applied to the perception system of vehicles such as autonomous driving, unmanned vehicles, or mobile robots. It can detect ground in various complex scenarios, including negative obstacles such as steep downhill slopes, downward steps, and potholes, as well as positive obstacles such as moving obstacles, steep uphill slopes, and uneven ground. It solves the problem that existing ground detection methods have poor adaptability, generalization, and versatility in various complex unstructured scenarios.
[0083] refer to Figure 1The passable ground detection method in this embodiment mainly includes the following steps 1 to 5.
[0084] Step 1: Establish the carrier coordinate system o-xyz, and transform the 3D point cloud acquired in the current frame into the carrier coordinate system.
[0085] In practical applications, the z-axis of the carrier coordinate system o-xyz can be set to the direction of gravity or the opposite direction of gravity. For example, in this embodiment, the z-axis is set to the opposite direction of gravity, the y-axis is set to the forward direction of the carrier, and the x-axis is set to the rightward direction of the carrier.
[0086] Step 2: Divide the 3D point cloud into several point cloud regions arranged in an array, with some overlap between any two adjacent point cloud regions.
[0087] Specifically, the 3D point cloud is divided into several arrayed point cloud regions by several intersecting and / or parallel dividing planes, where each dividing plane is parallel to the z-axis of the carrier coordinate system o-xyz. In practical applications, the arrayed point cloud regions can be distributed as a rectangular array along the x-axis and y-axis. That is, along the y-axis, the point cloud regions are divided into several rows from near to far from the carrier, with each row containing more than one point cloud region, such as two or three regions per row.
[0088] It's worth noting that the number of point cloud regions in different rows can be equal or unequal. For example, it can be divided into rows with two, three, or four point cloud regions each, with each row having the same number. Alternatively, it can be divided into rows with 3 point cloud regions in the first row, 2 in the second, 4 in the third, and 3 in the fourth, meaning some rows have the same number of point cloud regions, while others have different numbers. It can also be set so that all rows have a different number of point cloud regions, such as 3 in the first row and 4 in the second.
[0089] It is important to note that the point cloud regions arranged in an array are not limited to rectangular arrays; they can also be arranged in circular arrays or other shapes. Furthermore, adjacent point cloud regions between different rows can be either one-to-one or not. For example, for the first point cloud region in the first row, there can be only one, two, three, or four adjacent regions in the second row.
[0090] In practical applications, a dividing plane with a certain thickness can be used to divide the point cloud region, so that two adjacent point cloud regions have a partial overlap. That is, data points within the thickness range of the dividing plane simultaneously belong to two divided point cloud regions. In this embodiment, the overlapping area of two adjacent point cloud regions accounts for 10% to 30% of the corresponding point cloud region.
[0091] Step 3: Estimate the three-dimensional plane parameters of each point cloud region to obtain the plane equation corresponding to each point cloud region.
[0092] In this embodiment, a cascaded strategy of the RANSAC and MLE algorithms, along with a matching strategy consisting of angle and distance judgments, are used to obtain the plane equation of the corresponding region plane for each point cloud region, thereby achieving high-precision and stable plane estimation results. (Reference) Figure 2 Specifically, for any point cloud region, perform the following operations:
[0093] Step 3.1: For the i-th point cloud region, select N data points in the point cloud region based on uniform random downsampling;
[0094] Step 3.2: Based on the selected N data points, the initial plane of the i-th point cloud region is estimated using the RANSAC (Random Sample Consensus) algorithm;
[0095] Step 3.3: Based on the in-group points of the initial plane of the i-th point cloud region, the MLE (Maximum Likelihood Estimation) algorithm is used to estimate the precise plane of the i-th point cloud region.
[0096] Step 3.3: Based on the matching strategy, match the precise plane with the previous region plane of the i-th point cloud region. The matching strategy includes angle judgment and distance judgment.
[0097] Step 3.4, Angle Judgment: Calculate the angle between the normal vectors of the precise plane and the previous region plane. If the angle is greater than the first threshold, the match fails; otherwise, perform a distance judgment.
[0098] Step 3.5, Distance Judgment: Calculate the distance between the precise plane and the previous region plane. If the distance is greater than the second threshold, the match fails; otherwise, the match succeeds.
[0099] In steps 3.4 and 3.5, if the match is successful, the precise plane is used as the new region plane, and its equation is output as the equation of the region plane corresponding to the i-th point cloud region in the current frame. If the match fails, the equation of the previous region plane of the i-th point cloud region is output as the equation of the region plane corresponding to the i-th point cloud region in the current frame. It is important to note that the previous region plane of the i-th point cloud region is not necessarily the precise plane of the previous frame; it could be the precise plane of the previous two or three frames, etc. Furthermore, if the 3D point cloud of the current frame is frame 1, the precise plane calculated in step 3.2 is directly used as the region plane of the current frame.
[0100] In the specific implementation process, the calculation process of the distance Δd between the precise plane and the previous regional plane in step 3.5 is as follows:
[0101]
[0102] Among them, A i1 B i1 C i1 D i1 The plane equation A of the precise plane of the i-th point cloud region i1 x+B i1 y+C i1 z+D i1 The plane parameter A = 0 i2 B i2 C i2 D i2 Let A be the plane equation of the previous region plane of the i-th point cloud region. i2 x+B i2 y+C i2 z+D i2 Plane parameters = 0.
[0103] After performing steps 3.1 to 3.5 on all point cloud regions, the plane equation of the corresponding region plane for each point cloud region can be obtained.
[0104] Step 4: Based on the planar equations of each point cloud region, filter out the ground point cloud regions, referring to... Figure 3 The specific implementation process is as follows:
[0105] Step 4.1: Establish a set of ground point cloud regions and sort them from near to far according to the distance of the center point of each point cloud region from point o. After obtaining the point cloud region sequence, proceed to step 4.2. It is worth noting that the ground point cloud region set is initially empty. In the process of sorting the point cloud regions in the point cloud region sequence, first sort them by the row number from smallest to largest. For example, all point cloud regions in the first row are located before the point cloud regions in the second row, and so on for the second, third, and so on. Then, within each row, sort them in order from near to far according to the distance of the center point of each point cloud region from point o.
[0106] Step 4.2: Extract the first point cloud region from the point cloud region sequence, define it as point cloud region #1, and delete point cloud region #1 from the point cloud region sequence before proceeding to step 4.3.
[0107] Step 4.3: Determine whether point cloud region #1 is located in the row of point cloud regions closest to point o, that is, determine whether point cloud region #1 is the first row of point cloud regions:
[0108] If so, proceed to step 4.4;
[0109] Otherwise, proceed to step 4.6;
[0110] Step 4.4: Calculate the first angle between the region plane normal vector of point cloud region #1 and the z-axis, and determine whether the first angle is greater than the third threshold. If it is, return to step 4.2; otherwise, proceed to step 4.5.
[0111] Step 4.5: Determine whether there is a first intersection line between the region plane of point cloud region #1 and the xoy plane. If yes, proceed to step 4.10; otherwise, return to step 4.2.
[0112] Step 4.6: Determine if there exists a point cloud region in the ground point cloud region cluster that is located in the row preceding and adjacent to point cloud region #1:
[0113] If it exists, then the ground point cloud region that is located in the row in front of point cloud region 1, adjacent to point cloud region 1, and closest to point o is defined as point cloud region 2, and then proceed to step 4.7.
[0114] If it does not exist, return to step 4.2;
[0115] Step 4.7: Calculate the second angle between the region plane normal vector of point cloud region #1 and the region plane normal vector of point cloud region #2, and determine whether the second angle is greater than the third threshold. If it is, return to step 4.2; otherwise, proceed to step 4.8.
[0116] Step 4.8: Determine whether there is a second intersection line between the region plane of point cloud region #1 and the region plane of point cloud region #2. If yes, proceed to step 4.9; otherwise, return to step 4.2.
[0117] Step 4.9: Determine whether the second intersection line is located within the overlapping area of point cloud region #1 and point cloud region #2. If so, proceed to step 4.10; otherwise, return to step 4.2.
[0118] Step 4.10: Take point cloud region #1 as the ground point cloud region and keep it in the ground point cloud region set. Determine whether the current point cloud region sequence is an empty sequence. If it is, return to step 4.2. Otherwise, output the ground point cloud region in the ground point cloud region set.
[0119] Step 5: Segment all data points in all point cloud regions based on the ground point cloud region to obtain a ground point cloud composed of ground data points and output it.
[0120] After step 4, it becomes possible to distinguish between ground point cloud regions and non-ground point cloud regions within all point cloud areas. Before performing point cloud segmentation in step 5, the normal vectors of all point cloud regions need to be uniformly processed so that the z-component of the normal vector of all point cloud regions is greater than or equal to 0. In specific implementation, the following operations are performed on any point cloud region:
[0121] Obtain the plane equation A of the region plane of this point cloud. n x+B n y+C n z+D n =0, determine the plane parameter D n If the value is positive, then the plane equation of the point cloud region remains unchanged; otherwise, the plane parameter A of the plane equation of the point cloud region is changed. n B n C m C n Multiply all by -1.
[0122] By performing the above operation on all point cloud regions, we can obtain that the plane parameter D of the plane equation of the plane of all point cloud regions is 0 or a positive number, which means that the z component of the normal vector of all point cloud regions is greater than or equal to 0.
[0123] Define all point cloud regions that have undergone the above operations as point cloud region #3, and perform the following data point segmentation operation on any point cloud region #3:
[0124] Step 5.1, determine whether point cloud region #3 is a ground point cloud region:
[0125] If so, proceed to step 5.2;
[0126] Otherwise, proceed to step 5.5;
[0127] Step 5.2, for any data point in point cloud region #3, determine whether the data point is within an overlapping region:
[0128] If so, proceed to step 5.4;
[0129] Otherwise, proceed to step 5.3;
[0130] Step 5.3, calculate the distance d from the data point to the corresponding point cloud region #3 on the regional plane:
[0131] If the distance d is greater than the fourth threshold, then the data point is determined to be a positive obstacle data point;
[0132] If the distance d is less than the fifth threshold, then the data point is determined to be a negative obstacle data point;
[0133] If the distance d is greater than or equal to the fifth threshold and less than or equal to the fourth threshold, then the data point is determined to be a ground data point.
[0134] Step 5.4, calculate the two distances d from the data point to the corresponding two point cloud regions #3 on the region plane:
[0135] If both distances d are greater than the fourth threshold, then the data point is determined to be a positive obstacle data point;
[0136] If both distances d are less than the fifth threshold, then the data point is determined to be a negative obstacle data point;
[0137] If either of the two distances d is greater than or equal to the fifth threshold and less than or equal to the fourth threshold, then the data point is determined to be a ground data point.
[0138] Step 5.5: Determine whether a ground point cloud region exists among all adjacent point cloud regions of point cloud region #3.
[0139] If so, then arbitrarily select one of the ground point cloud regions adjacent to the #3 point cloud region, define it as the #4 point cloud region, and then proceed to step 5.6.
[0140] Otherwise, all data points in the #3 point cloud region are determined to be obstacle data points;
[0141] Step 5.6: For any data point in point cloud region #3, calculate its distance d from the plane of point cloud region #4.
[0142] If the distance d is greater than the fourth threshold, then the data point is determined to be a positive obstacle data point;
[0143] If the distance d is less than the fifth threshold, then the data point is determined to be a negative obstacle data point;
[0144] If the distance d is greater than or equal to the fifth threshold and less than or equal to the fourth threshold, then the data point is determined to be a ground data point.
[0145] In the specific implementation process, the calculation process of distance d in steps 5.3, 5.4, and 5.6 above is as follows:
[0146]
[0147] Where d is the data point (x n ,y n ,z n ) and region plane A m x+B m y+C m z+D m The distance between A and 0 m B m Cm D m These are the planar parameters of the region plane.
[0148] After processing all point cloud regions #3 using steps 5.1 to 5.6, a ground point cloud composed of ground data points can be obtained, thus completing the ground detection.
[0149] like Figure 4 The diagram illustrates a terminal device disclosed in this embodiment, comprising a transmitter, a receiver, a memory, and a processor. The transmitter transmits instructions and data, the receiver receives instructions and data, the memory stores computer-executed instructions, and the processor executes the computer-executed instructions stored in the memory to implement some or all of the steps performed by the passable ground detection method in the aforementioned embodiment. Its specific implementation process is the same as the passable ground detection method in the foregoing embodiments.
[0150] It should be noted that the aforementioned memory can be either standalone or integrated with the processor. When the memory is set up independently, the terminal device also includes a bus for connecting the memory and the processor.
[0151] In practical applications, terminal devices include computers, unmanned vehicles, drones, driverless equipment, or mobile robots.
[0152] This embodiment also discloses a computer-readable storage medium storing computer-executable instructions. When the processor executes the computer-executable instructions, it implements some or all of the steps performed by the passable ground detection method in the above embodiment.
[0153] The above description is merely a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural transformations made using the contents of the present invention's specification and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.
Claims
1. A method of detecting a passable ground, characterized by, Includes the following steps: Step 1: Establish the carrier coordinate system o-xyz, and transform the 3D point cloud acquired in the current frame into the carrier coordinate system, where the z-axis is the direction of gravity or the opposite direction of gravity; Step 2: Divide the 3D point cloud into several point cloud regions arranged in an array, with some overlap between any two adjacent point cloud regions. The dividing plane is parallel to the z-axis. Step 3: Estimate the three-dimensional plane parameters of each point cloud region to obtain the plane equation corresponding to each point cloud region; Step 4: Based on the planar equation of each point cloud region, filter out the ground point cloud regions, specifically including: Step 4.1: Establish a set of ground point cloud regions and sort them from near to far according to the distance of the center point of each point cloud region from point o. After obtaining the point cloud region sequence, proceed to step 4.
2. Step 4.2: Extract the first point cloud region from the point cloud region sequence, define it as point cloud region #1, and delete point cloud region #1 from the point cloud region sequence before proceeding to step 4.3; Step 4.3, determine whether point cloud region #1 is located in the row of point cloud regions closest to point o: If so, proceed to step 4.4; Otherwise, proceed to step 4.6; Step 4.4: Calculate the first angle between the region plane normal vector of point cloud region #1 and the z-axis, and determine whether the first angle is greater than the third threshold. If it is, return to step 4.2; otherwise, proceed to step 4.
5. Step 4.5: Determine whether there is a first intersection line between the region plane of point cloud region #1 and the xoy plane. If yes, proceed to step 4.10; otherwise, return to step 4.
2. Step 4.6: Determine if there exists a point cloud region in the ground point cloud region cluster that is located in the row preceding and adjacent to point cloud region #1: If it exists, then the ground point cloud region that is located in the row in front of point cloud region 1, adjacent to point cloud region 1, and closest to point o is defined as point cloud region 2, and then proceed to step 4.
7. If it does not exist, return to step 4.2; Step 4.7: Calculate the second angle between the region plane normal vector of point cloud region #1 and the region plane normal vector of point cloud region #2, and determine whether the second angle is greater than the third threshold. If it is, return to step 4.2; otherwise, proceed to step 4.
8. Step 4.8: Determine whether there is a second intersection line between the region plane of point cloud region #1 and the region plane of point cloud region #2. If yes, proceed to step 4.9; otherwise, return to step 4.
2. Step 4.9: Determine whether the second intersection line is located within the overlapping area of point cloud region #1 and point cloud region #2. If so, proceed to step 4.10; otherwise, return to step 4.
2. Step 4.10: Take point cloud region #1 as the ground point cloud region and keep it in the ground point cloud region set. Determine whether the current point cloud region sequence is an empty sequence. If it is, return to step 4.
2. Otherwise, output the ground point cloud region in the ground point cloud region set. Step 5: Segment all data points in all point cloud regions based on the ground point cloud regions to obtain and output the ground point cloud composed of ground data points. Specifically, this includes: defining each point cloud region as point cloud region #3, and uniformly processing the normal vector of each point cloud region #3 so that the z-component of the normal vector of all point cloud regions #3 is greater than or equal to 0, and then performing the following operations on each point cloud region #3: Step 5.1, determine whether point cloud region #3 is a ground point cloud region: If so, proceed to step 5.2; Otherwise, proceed to step 5.5; Step 5.2, for any data point in point cloud region #3, determine whether the data point is within an overlapping region: If so, proceed to step 5.4; Otherwise, proceed to step 5.3; Step 5.3, calculate the distance d from the data point to the corresponding point cloud region #3 on the regional plane: If the distance d is greater than the fourth threshold, then the data point is determined to be a positive obstacle data point; If the distance d is less than the fifth threshold, then the data point is determined to be a negative obstacle data point; If the distance d is greater than or equal to the fifth threshold and less than or equal to the fourth threshold, then the data point is determined to be a ground data point. Step 5.4, calculate the two distances d from the data point to the corresponding two point cloud regions #3 on the region plane: If both distances d are greater than the fourth threshold, then the data point is determined to be a positive obstacle data point; If both distances d are less than the fifth threshold, then the data point is determined to be a negative obstacle data point; If either of the two distances d is greater than or equal to the fifth threshold and less than or equal to the fourth threshold, then the data point is determined to be a ground data point. Step 5.5: Determine whether a ground point cloud region exists among all adjacent point cloud regions of point cloud region #3. If so, then arbitrarily select one of the ground point cloud regions adjacent to the #3 point cloud region, define it as the #4 point cloud region, and then proceed to step 5.
6. Otherwise, all data points in the #3 point cloud region are determined to be obstacle data points; Step 5.6: For any data point in point cloud region #3, calculate its distance d from the plane of point cloud region #4. If the distance d is greater than the fourth threshold, then the data point is determined to be a positive obstacle data point; If the distance d is less than the fifth threshold, then the data point is determined to be a negative obstacle data point; If the distance d is greater than or equal to the fifth threshold and less than or equal to the fourth threshold, then the data point is determined to be a ground data point. After processing all point cloud regions #3 using steps 5.1 to 5.6, a ground point cloud composed of ground data points can be obtained.
2. The passable ground detection method according to claim 1, characterized by, In step 3, the estimation of the three-dimensional plane parameters for each point cloud region to obtain the plane equation corresponding to each point cloud region is specifically as follows: For the i-th point cloud region, N data points are selected in the point cloud region based on uniform random downsampling; Based on the selected N data points, the precise plane of the i-th point cloud region is estimated; Based on the matching strategy, the precise plane is matched with the previous region plane of the i-th point cloud region: If the match is successful, the precise plane is used as the new region plane, and the plane equation of the precise plane is output as the plane equation corresponding to the i-th point cloud region in the current frame. If the match fails, output the plane equation of the previous region plane of the i-th point cloud region, and use it as the plane equation corresponding to the current frame of the i-th point cloud region.
3. The passable ground detection method according to claim 2, characterized by, The estimation process for the precise plane is as follows: Based on the selected N data points, the RANSAC algorithm is first used to estimate the initial plane of the i-th point cloud region; Based on the in-group points of the initial plane, the MLE algorithm is used to estimate the precise plane of the i-th point cloud region.
4. The passable ground detection method according to claim 2, characterized by, The matching strategy is as follows: Angle judgment: Calculate the angle between the normal vector of the precise plane and the previous region plane. If the angle is greater than the first threshold, the match fails; otherwise, perform a distance judgment. Distance judgment: Calculate the distance between the precise plane and the previous region plane. If the distance is greater than the second threshold, the match fails; otherwise, the match succeeds.
5. The passable ground detection method according to claim 4, characterized by, The calculation process for the distance Δd between the precise plane and the previous regional plane is as follows: in, , , , The plane equation of the precise plane for the i-th point cloud region x+ y+ z+ Plane parameters with =0, , , , The plane equation of the previous region plane for the i-th point cloud region. x+ y+ z+ Plane parameters = 0.
6. The method for detecting navigable ground according to any one of claims 1 to 5, characterized in that, The calculation process for the distance d is as follows: Where d is the data point ( , , ) and the regional plane x+ y+ z+ The distance between =0, , , , These are the planar parameters of the region plane.
7. A terminal device, characterized in that, The terminal device is a computer, unmanned vehicle, drone, autonomous driving equipment, or mobile robot, and the terminal device is equipped with: Memory, used to store programs; A processor for executing the program stored in the memory, wherein, when the program is executed, the processor is configured to perform some or all of the steps of the method as described in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions; when executed by a processor, the computer-executable instructions are used to implement some or all of the steps of the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Road passable area detection method based on three-dimensional laser radar
CN110244321A
Unstructured Road Detection Method Based on Lidar Point Cloud Statistical Geometric Model
CN110320504A
