Round pit obstacle detection method, device and equipment, moving tool and medium

By processing the point cloud data, determining the characteristic points of the circular pit and combining it with the vehicle's pose, it solves the problem of unmanned vehicles being unable to accurately detect the position of circular pit obstacles in complex environments, and achieves accurate detection of circular pit obstacles. and location information acquisition, improving traffic safety.

CN118584502APending Publication Date: 2024-09-03BEIJING ZHIXINGZHE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410699228.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Unmanned vehicles cannot accurately detect the location information of round pit obstacles in complex environments, resulting in possible vehicle damage and traffic obstruction.

Method used

By acquiring point cloud data and converting it into raster data in the vehicle coordinate system, the target slope in the raster data is calculated, the circle pit feature points are determined, matching grouping and verification are performed, and the feature point with the largest target score is obtained. The location information of the circular pit obstacle is determined based on the vehicle's posture.

Benefits of technology

It achieves accurate detection of circular pit obstacles and acquisition of location information, enhancing the environment perception capabilities and traffic safety of unmanned vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118584502A
    Figure CN118584502A
Patent Text Reader

Abstract

The invention relates to a round pit obstacle detection method, device and equipment, a mobile tool and a medium, and the method comprises the steps: obtaining point cloud data, and converting the point cloud data into raster data under a self-vehicle coordinate system; calculating the target gradient of each non-empty grid in the grid data; determining round pit feature points corresponding to the azimuth angles in the raster data according to the target gradient; matching and grouping the round pit feature points in sequence from first to second according to the determination sequence of the round pit feature points, and verifying each round pit feature point in the obtained feature point group; when the verification result of the feature point group is passed, taking the round pit feature point with the maximum target score in the feature point group as a target feature point; and determining the position information of the round pit obstacle according to the self-parking space posture and the target feature point. The position information of the round pit obstacle is obtained by detecting the multiple round pit feature points and performing matching and verification, and the problem that the position information of the round pit obstacle cannot be accurately detected is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and in particular to a method, device, equipment, mobile tool and medium for detecting a circular pit obstacle. Background Art

[0002] When unmanned vehicles use lidar to perceive complex environments, circular pits are a special type of obstacle terrain. Circular pits can be formed by the explosion of explosives or by manual excavation. They have a significant impact on the perception of battlefield environments and the ability of unmanned vehicles to pass through battlefields. When a vehicle encounters a circular pit, the depth or width of the pit may cause damage to the vehicle. Only by accurately detecting the center point position, size of the circular pit, and edge slope of the circular pit obstacle can the decision-making system combine the size of the vehicle and its obstacle-crossing ability to reasonably plan detours or obstacle-crossing plans. If the location information of the circular pit obstacle cannot be accurately detected, the circular pit obstacle cannot be accurately crossed, which will cause damage to the vehicle and create obstacles to passage.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The present application provides a circular pit obstacle detection method, device, equipment, mobile tool and medium to solve the above-mentioned technical problem that the position information of the circular pit obstacle cannot be accurately detected.

[0005] According to one aspect of an embodiment of the present application, the present application provides a method for detecting a circular pit obstacle, including: acquiring point cloud data and converting the point cloud data into raster data in a self-vehicle coordinate system; calculating the target slope of each non-empty grid in the raster data; determining circular pit feature points corresponding to each azimuth angle in the raster data according to the target slope, wherein the circular pit feature points include inclined slope points, proximal edge points, and distal edge points; matching and grouping the circular pit feature points in order from first to last according to the order in which the circular pit feature points are determined, and verifying each circular pit feature point in the obtained feature point group to obtain a verification result corresponding to the feature point group; when the verification result of the feature point group is passed, the circular pit feature point with the largest target score in the feature point group is used as the target feature point; determining the position information of the circular pit obstacle according to the self-vehicle posture and the target feature point to complete the detection of the circular pit obstacle.

[0006] Optionally, the target slope of each non-empty grid in the raster data is calculated, specifically including: determining each non-empty grid in the raster data and adjacent grids corresponding to the non-empty grids; calculating the normal vector of the non-empty grid according to the height of the adjacent grids; determining the initial slope of the non-empty grid according to the angle between the normal vector and the horizontal plane; obtaining the self-vehicle posture, and correcting the initial slope according to the self-vehicle posture to obtain the target slope of each non-empty grid.

[0007] Optionally, the circular pit feature points are matched and grouped in order from first to last according to the order in which the circular pit feature points are determined, specifically including: when matching the first feature point, if there is no established feature point group at present, a new first feature point group is created, and the first feature point is stored in the first feature point group, wherein the feature point group includes the first feature group, and the first feature point is the first determined circular pit feature point; according to the preset matching rules and the determined order, the other circular pit feature points except the first feature point are matched with the feature point group in turn, if the match is successful, the circular pit feature point is added to the first feature point group, if the match fails, the circular pit feature point that failed to match is added to the newly created second feature group, until the matching of all circular pit feature points is completed, wherein the feature group includes the second feature group.

[0008] Optionally, each circular pit feature point in the obtained feature point group is verified to obtain a verification result corresponding to the feature point group, specifically including: taking the proximal edge point and the distal edge point of each circular pit feature point as the two endpoints of the diameter passing through the preset center of the circle and intersecting with the preset circle; determining the first center coordinate of the preset center of the circle and the preset circle radius based on the two endpoints; performing circular pit variance verification on each obtained center coordinate to obtain a verification result.

[0009] Optionally, when the verification result of the feature point group is passed, the circular pit feature point with the largest target score in the feature point group is used as the target feature point, specifically including: if the verification result of the feature point group is passed, the corresponding preset circle is determined according to the preset center and preset circle radius of each circular pit feature point; a first number of first grids that meet the circular pit condition and a second number of second grids that do not meet the circular pit condition in the preset circle are determined according to the grid data, wherein the first grid includes an empty grid and a short grid whose grid height is lower than the preset height, and the second grid includes a non-empty grid and a tall grid whose grid height is higher than or equal to the preset height; the ratio of the first number to the sum of the first number and the second number is determined as the target score; the circular pit feature point with the largest target score and higher than the score threshold is used as the target feature point.

[0010] Optionally, the position information of the circular pit obstacle is determined according to the self-vehicle posture and the target feature points, specifically including: determining the center point and the radius of the circular pit obstacle according to the proximal edge point and the distal edge point in the target feature points, and obtaining the absolute coordinates of the center point; calculating the second center coordinates of the center point in the self-vehicle coordinate system according to the self-vehicle posture and the absolute coordinates; and using the second center coordinates and the radius of the circular pit as the position information of the circular pit obstacle.

[0011] According to another aspect of an embodiment of the present application, the present application provides a detection device for a circular pit obstacle, including: an acquisition module, used to acquire point cloud data and convert the point cloud data into raster data in a self-vehicle coordinate system; a calculation module, used to calculate the target slope of each non-empty grid in the raster data; a first determination module, used to determine the circular pit feature points corresponding to each azimuth angle in the raster data according to the target slope, wherein the circular pit feature points include inclined slope points, proximal edge points and distal edge points; a grouping module, used to match and group the circular pit feature points in order from first to last according to the determination order of the circular pit feature points, and verify each circular pit feature point in the obtained feature point group to obtain a verification result corresponding to the feature point group; a processing module, used to, when the verification result of the feature point group is passed, use the circular pit feature point with the largest target score in the feature point group as the target feature point; a second determination module, used to determine the position information of the circular pit obstacle according to the self-vehicle posture and the target feature point, so as to complete the detection of the circular pit obstacle.

[0012] According to another aspect of an embodiment of the present application, the present application provides an electronic device, including a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, the memory and the processor communicate through the communication bus and the communication interface, and the steps of the above method are implemented when the processor executes the computer program.

[0013] According to another aspect of an embodiment of the present application, the present application provides a mobile tool, including the above-mentioned electronic device.

[0014] According to another aspect of an embodiment of the present application, the present application also provides a computer-readable medium having a non-volatile program code executable by a processor, and the program code enables the processor to execute the above method.

[0015] The above technical solution provided by the embodiment of the present application has the following advantages compared with the related art:

[0016] The present application adopts a method for detecting circular pit obstacles, including: obtaining point cloud data, and converting the point cloud data into grid data in the self-vehicle coordinate system; calculating the target slope of each non-empty grid in the grid data; determining circular pit feature points corresponding to each azimuth angle in the grid data according to the target slope, wherein the circular pit feature points include inclined slope points, proximal edge points and distal edge points; matching and grouping the circular pit feature points in the order of determining the circular pit feature points from first to last, and verifying each circular pit feature point in the obtained feature point group to obtain the verification result corresponding to the feature point group; when the verification result of the feature point group is passed, the circular pit feature point with the largest target score in the feature point group is used as the target feature point; according to the self-vehicle posture and the target feature point, the position information of the circular pit obstacle is determined to complete the detection of the circular pit obstacle. By detecting multiple circular pit feature points and matching and verifying them, the position information of the circular pit obstacle is obtained, which solves the problem that the position information of the circular pit obstacle cannot be accurately detected. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 A flowchart of an optional method for detecting a circular pit obstacle provided according to an embodiment of the present application;

[0020] Figure 2 A cross-sectional schematic diagram of an optional round pit obstacle detection provided according to an embodiment of the present application;

[0021] Figure 3 A top view of a point cloud distribution for an optional round pit obstacle detection provided according to an embodiment of the present application;

[0022] Figure 4 It is a block diagram of an optional round pit obstacle detection device provided according to an embodiment of the present application;

[0023] Figure 5 A schematic diagram of an optional electronic device structure provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0025] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application and have no specific meaning. Therefore, "module" and "component" can be used interchangeably.

[0026] When unmanned vehicles use lidar to perceive complex environments, circular pits are a special type of obstacle terrain. Circular pits can be formed by the explosion of explosives or by manual excavation. They have a significant impact on the perception of battlefield environments and the ability of unmanned vehicles to pass through battlefields. When a vehicle encounters a circular pit, the depth or width of the pit may cause damage to the vehicle. Only by accurately detecting the center point position, size of the circular pit, and edge slope of the circular pit obstacle can the decision-making system combine the size of the vehicle and its obstacle-crossing ability to reasonably plan detours or obstacle-crossing plans. If the location information of the circular pit obstacle cannot be accurately detected, the circular pit obstacle cannot be accurately crossed, which will cause damage to the vehicle and create obstacles to passage.

[0027] In order to solve the problems mentioned in the background technology, according to one aspect of the embodiments of the present application, an embodiment of a method for detecting a round pit obstacle is provided, such as Figure 1 As shown, including:

[0028] Step 101, obtaining point cloud data, and converting the point cloud data into raster data in the vehicle coordinate system;

[0029] Step 103, calculating the target slope of each non-empty grid in the grid data;

[0030] Step 105, determining circular pit feature points corresponding to each azimuth in the raster data according to the target slope, wherein the circular pit feature points include inclined slope points, proximal edge points, and distal edge points;

[0031] Step 107, matching and grouping the circular pit feature points in order from the earliest to the latest according to the order in which the circular pit feature points are determined, and verifying each circular pit feature point in the obtained feature point group to obtain a verification result corresponding to the feature point group;

[0032] Step 109, when the verification result of the feature point group is passed, the circular pit feature point with the largest target score in the feature point group is used as the target feature point;

[0033] Step 111, determining the position information of the circular pit obstacle according to the vehicle posture and the target feature points to complete the detection of the circular pit obstacle.

[0034] This application is applied to the field of unmanned driving, especially to the detection of circular pit obstacles. When a vehicle crosses a circular pit during driving, it needs to cross the center point of the circular pit obstacle accurately, otherwise there will be a risk of overturning, so the detection requirements for the center point and size of the circular pit are very high.

[0035] Figure 2 A cross-sectional schematic diagram of the circular pit obstacle detection provided for this application. As shown in the figure, there is a blind area in the circular pit, and the sensor cannot detect the corresponding point cloud data in this blind area, so this application needs to detect the points on the near edge of the circular pit and the points on the far edge of the circular pit to determine the location of the circular pit obstacle.

[0036] This application accurately detects and tracks circular pit obstacles based on the grid map formed by the laser radar point cloud. The specific steps include: laser point cloud rasterization, grid slope calculation, grid slope correction, circular pit feature search, circular pit feature clustering, circular pit verification, circular pit tracking and circular pit output. Next, this application describes the detection of circular pit obstacles based on these steps.

[0037] Autonomous driving vehicles usually include data acquisition equipment such as cameras, infrared equipment, and lidar equipment to monitor the driving environment around the vehicle in real time to ensure the safe operation of the vehicle.

[0038] The sensor used in this application may be a lidar device (or an RGBD camera) to detect obstacles near the vehicle body, generate lidar data, and thus obtain point cloud data. This application is not limited to the specific type of sensor.

[0039] Figure 3 A top view of the point cloud distribution for the circular pit obstacle detection provided in this application.

[0040] Specifically, the point cloud data is converted to the vehicle body coordinate system and then rasterized. The continuous point cloud data is discretized into grids to obtain raster data. Each grid can represent a specific area, which contains information about all points in the area. The raster data includes empty grids and non-empty grids. The data of non-empty grids also includes: the number of ground points in the grid and the height of the lowest point in the grid.

[0041] After obtaining the raster data, it is necessary to calculate the slope of the non-empty raster. The slope calculation is explained below.

[0042] As an optional embodiment, the target slope of each non-empty grid in the raster data is calculated, specifically including: determining each non-empty grid in the raster data and the adjacent grids corresponding to the non-empty grids; calculating the normal vector of the non-empty grid according to the height of the adjacent grids; determining the initial slope of the non-empty grid according to the angle between the normal vector and the horizontal plane; obtaining the self-vehicle posture, and correcting the initial slope according to the self-vehicle posture to obtain the target slope of each non-empty grid.

[0043] The adjacent grid can be selected from at least one grid in the four directions of up, down, left, and right, or a grid farther away, which depends on the level of calculation accuracy. If there are multiple adjacent grids, the average value of the grid heights can be taken for calculation.

[0044] Specifically, the method for calculating the normal vector of a non-empty grid based on the height of adjacent grids includes: determining the height of adjacent grids and calculating the height difference with the adjacent grids, wherein the height difference can be calculated based on the height of the center point or the average height of the entire grid; based on the height difference between adjacent grids, the slope in each direction can be calculated; based on the slope, the normal vector can be calculated, and the normal vector is a vector whose direction is perpendicular to the surface and whose magnitude is equal to the inverse of the slope.

[0045] Specifically, determining the initial slope of the non-empty grid according to the angle between the normal vector and the horizontal plane includes: using an arctan function to calculate the angle between the normal vector and the horizontal plane to obtain the initial slope in radians, and further converting the initial slope in radians into the initial slope in degrees.

[0046] The positioning system can obtain the posture of the vehicle. The posture of the vehicle may not be very flat. On off-road roads, the posture of the vehicle may even have a large inclination angle. Therefore, we also need to rotate the measured initial slope in the opposite direction according to the posture of the vehicle to obtain the slope of the vehicle relative to the horizontal plane, that is, the target slope of the non-empty grid.

[0047] When the laser radar detects the circular pit obstacle, a certain number of points below the ground can be detected in the distance, and the slope is large, while the nearby area is a low-lying area or a large hole area (hole refers to an area without laser point cloud). Based on this feature, the circular pit feature points of this application are composed of three points: the inclined slope point Sp, the far edge point Fp, and the near edge point Np. These three points are collinear in the top view.

[0048] Specifically, circular pit feature points corresponding to each azimuth angle are determined in the raster data according to the target slope. The method includes: taking the vehicle as the center of the circle, starting from a certain direction (for example, the right front of the vehicle), traversing the grid on the direction line from near to far along the direction line, selecting inclined slope points, far edge points and near edge points, and thus completing the circular pit feature point search process in a single direction, and then slightly increasing the search direction, and re-starting the next search from near distance to far distance until the search is completed in all directions within the sensor perception range.

[0049] For example, the specific steps of selecting the inclined slope point, the distal edge point and the proximal edge point include: when searching far away, the proximal end point is searched and marked, and the searched ground point (the slope is less than the first slope threshold ThrsGd, and there is an equal height in the neighborhood and the slope is also less than the first slope threshold ThrsGd) is temporarily marked as the proximal edge point Np, and it is continuously moved far away as the search distance increases. If a hole point or a positive or negative obstacle is encountered, Np will not be updated. If the grid slope Slop> the second slope threshold ThrsS1 is searched, it is used as a candidate point for the inclined slope point Sp in the circular pit feature point. When the inclined slope point Sp candidate point is found, the inclined slope point Sp candidate point is used as the starting point to search for the distal edge point Fp in the distance. The slope of the distal edge point Fp must be less than the inclined slope point Sp candidate point, and the height is higher than the inclined slope point Sp candidate point, and not lower than the grid point far away from the distal edge point Fp. If the far-end point search is successful, the far-end edge point Fp candidate point and the near-end edge point Np are combined into a set of circular pit feature points.

[0050] The first slope threshold and the second slope threshold in the present application can be set according to actual conditions, and the present application does not limit the specific values.

[0051] As an optional embodiment, the circular pit feature points are matched and grouped in order from first to last according to the order in which the circular pit feature points are determined, specifically including: when matching the first feature point, if there is no established feature point group at present, a new first feature point group is created, and the first feature point is stored in the first feature point group, wherein the feature point group includes the first feature group, and the first feature point is the first determined circular pit feature point; according to the preset matching rules and the determined order, the other circular pit feature points except the first feature point are matched with the feature point group in turn, if the match is successful, the circular pit feature point is added to the first feature point group, if the match fails, the circular pit feature point that failed to match is added to the newly created second feature group, until the matching of all circular pit feature points is completed, wherein the feature group includes the second feature group.

[0052] Since all the circular pit feature points may not correspond to only a single circular pit, the circular pit feature points need to be matched and grouped in order from the first to the last according to the order in which the circular pit feature points are determined, so as to obtain a feature point group corresponding to the circular pit.

[0053] Since the search process for circular pit feature points is performed step by step according to the azimuth, the obtained circular pit features are arranged in order according to the azimuth. Based on this, the method for matching and grouping circular pit feature points provided in the present application includes: traversing all circular pit feature points in the order of determining the circular pit feature points. If there is no grouping result at present, or the current circular pit feature point does not match any existing group, the current circular pit feature point is added to the newly established group Group{Feat} (first feature point group); if there is a successful match in Group{Feat} (feature point group), it is added to the Group{Feat}.

[0054] The method for matching the current circular pit feature point with the existing feature point group includes: traversing all the existing circular pit feature points in the feature point group to be matched, if the center point distance between the current circular pit feature point and the existing circular pit feature points (the distance between the center points of their respective distal edge points Fp and proximal edge points Np) is less than a certain multiple (such as 1.5MaxDis) of the maximum length (MaxDis) of the two (the distance Dis between their respective distal edge points Fp and proximal edge points Np), then it is considered that the current circular pit feature point and the feature point group to be matched are successfully matched, and the current circular pit feature point is added to the feature point group.

[0055] The naming of the first feature point group and the second feature point group of the present application is to distinguish different feature point groups. During matching, the circular pit feature points need to be matched with the currently existing feature point groups.

[0056] The detection results in each feature point group may have a certain error, and each circular pit feature may not correspond to the largest chord that crosses the center of the circle, so it is necessary to select the best result from multiple detection results in this group. Next, we will explain how to verify each circular pit feature point in the feature point group.

[0057] As an optional embodiment, each circular pit feature point in the obtained feature point group is verified to obtain a verification result corresponding to the feature point group, specifically including: taking the proximal edge point and the distal edge point of each circular pit feature point as the two endpoints of the diameter passing through the preset center of the circle and intersecting the preset circle; determining the first center coordinate of the preset center of the circle and the preset circle radius based on the two endpoints; performing circular pit variance verification on each obtained center coordinate to obtain a verification result.

[0058] For example, each circular pit feature point is regarded as a preset circle, and the distal edge point Fp and the proximal edge point Np are assumed to be the two endpoints of the diameter spanning the center of the circle and intersecting the preset circle. According to the positions of the distal edge point Fp and the proximal edge point Np, the center coordinates CirPos and the radius CirR of the preset circle can be calculated, and the circular pit variance check is performed on the center of the circle. If the check passes, the detection continues; if the check fails, the detection is stopped.

[0059] The core of the circular pit variance check is to evaluate the flatness of the grids outside the circular area. If the area around the circle is not flat, the circle is considered to have failed the check and will not pass. The specific method is: plane fitting is performed on the lowest height value of the grid within a certain range outside the circular ring; if the error of the fitted plane is too large, the check is considered to have failed; if the fit is successful, the variance of the height difference between the grid height at the edge of the circular ring and the height of the fitted plane is calculated. If the variance result exceeds a certain threshold, the flatness is considered to be too poor and the check fails.

[0060] Optionally, the variance used to measure the flatness in the present application may also be measured by other statistical parameters such as mean absolute deviation, and the present application does not limit the specific parameter calculation scheme.

[0061] After the circle pit variance check is passed, the target score of the circle pit is calculated, which can also be regarded as the second check.

[0062] As an optional embodiment, when the verification result of the feature point group is passed, the circular pit feature point with the largest target score in the feature point group is used as the target feature point, specifically including: if the verification result of the feature point group is passed, the corresponding preset circle is determined according to the preset center and preset circle radius of each circular pit feature point; the first number of first grids that meet the circular pit condition and the second number of second grids that do not meet the circular pit condition in the preset circle are determined according to the grid data, wherein the first grid includes an empty grid and a short grid whose grid height is lower than the preset height, and the second grid includes a non-empty grid and a tall grid whose grid height is higher than or equal to the preset height; the ratio of the first number to the sum of the first number and the second number is determined as the target score; the circular pit feature point with the largest target score and higher than the score threshold is used as the target feature point.

[0063] For example, the target score Score1 is formed by the ratio of the number of grids that meet the circular pit feature point hit and the number of grids that do not meet the feature mis inside the circle, Score1 = hit / (hit+mis), where hit is the sum of the number of empty grids (grids without point clouds) + low grids (slope> second slope threshold ThrsS1, and height is not higher than the height of the grid at the near end of the arc); mis is the number of grids that are not empty grids and whose height is higher than the height of the grid at the near end of the arc. The average maximum height of the grids near the arc boundary whose height value of the grid at the near end of the arc is closest to the evaluation grid.

[0064] If the target score Score is less than the score threshold, the circle is considered to have failed the verification and will not pass. If the target score Score is greater than or equal to the score threshold, the circle is considered to have passed the verification. For all circles that have successfully been verified, the one with the largest target score is selected as the final result of this feature group Group{Feat}.

[0065] As an optional embodiment, the position information of the circular pit obstacle is determined according to the self-vehicle posture and the target feature points, specifically including: determining the center point and the radius of the circular pit obstacle according to the proximal edge point and the distal edge point in the target feature points, and obtaining the absolute coordinates of the center point; calculating the second center coordinates of the center point in the self-vehicle coordinate system according to the self-vehicle posture and the absolute coordinates; and using the second center coordinates and the radius of the circular pit as the position information of the circular pit obstacle.

[0066] Specifically, if a new frame of data re-obtains a verified point cloud at an approximate position, the circle with a high target score is selected as the new tracking result. For the memorized circular pit, after the new position of the vehicle is obtained, its latest relative coordinates are recalculated based on the absolute coordinates saved in memory for use by downstream algorithms.

[0067] For example, if the second center coordinates are obtained, the circular pit can be output according to the downstream algorithm. If vector information is required, the center coordinates and radius can be output. If the edge points of the circular pit are required, the points on the edge of the arc can be drawn according to a certain layout angle.

[0068] Based on the laser radar point cloud raster map, the present invention accurately detects and tracks circular pits, enhances the environmental perception capability and perception accuracy of the unmanned vehicle, and at the same time realizes the stable detection of negative obstacles by the unmanned vehicle, ensures driving safety, and improves the traffic capacity in complex environments.

[0069] The present application adopts a method for detecting circular pit obstacles, including: obtaining point cloud data, and converting the point cloud data into grid data in the self-vehicle coordinate system; calculating the target slope of each non-empty grid in the grid data; determining circular pit feature points corresponding to each azimuth angle in the grid data according to the target slope, wherein the circular pit feature points include inclined slope points, proximal edge points and distal edge points; matching and grouping the circular pit feature points in the order of determining the circular pit feature points from first to last, and verifying each circular pit feature point in the obtained feature point group to obtain the verification result corresponding to the feature point group; when the verification result of the feature point group is passed, the circular pit feature point with the largest target score in the feature point group is used as the target feature point; according to the self-vehicle posture and the target feature point, the position information of the circular pit obstacle is determined to complete the detection of the circular pit obstacle. By detecting multiple circular pit feature points and matching and verifying them, the position information of the circular pit obstacle is obtained, which solves the problem that the position information of the circular pit obstacle cannot be accurately detected.

[0070] According to another aspect of the embodiment of the present application, the present application provides a detection device for a round pit obstacle, such as Figure 4 As shown, including:

[0071] The acquisition module 402 is used to acquire point cloud data and convert the point cloud data into raster data in the vehicle coordinate system;

[0072] A calculation module 404 is used to calculate the target slope of each non-empty grid in the grid data;

[0073] A first determination module 406 is used to determine circular pit feature points corresponding to each azimuth in the raster data according to the target slope, wherein the circular pit feature points include inclined slope points, proximal edge points and distal edge points;

[0074] The grouping module 408 is used to match and group the circular pit feature points in order from the earliest to the latest according to the order in which the circular pit feature points are determined, and to verify each circular pit feature point in the obtained feature point group to obtain a verification result corresponding to the feature point group;

[0075] The processing module 410 is used to use the circular pit feature point with the largest target score in the feature point group as the target feature point when the verification result of the feature point group is passed;

[0076] The second determination module 412 is used to determine the position information of the circular pit obstacle according to the vehicle posture and the target feature points to complete the detection of the circular pit obstacle.

[0077] It should be noted that the acquisition module 402 in this embodiment can be used to execute step 101 in the embodiment of the present application, the calculation module 404 in this embodiment can be used to execute step 103 in the embodiment of the present application, the first determination module 406 in this embodiment can be used to execute step 105 in the embodiment of the present application, the grouping module 408 in this embodiment can be used to execute step 107 in the embodiment of the present application, the processing module 410 in this embodiment can be used to execute step 109 in the embodiment of the present application, and the second determination module 412 in this embodiment can be used to execute step 111 in the embodiment of the present application.

[0078] Optionally, the calculation module 404 is also used to determine each non-empty grid in the raster data and the adjacent grids corresponding to the non-empty grids; calculate the normal vector of the non-empty grid according to the height of the adjacent grids; determine the initial slope of the non-empty grid according to the angle between the normal vector and the horizontal plane; obtain the vehicle posture, and correct the initial slope according to the vehicle posture to obtain the target slope of each non-empty grid.

[0079] Optionally, the grouping module 408 is also used to, when matching the first feature point, create a new first feature point group if there is no established feature point group currently, and store the first feature point in the first feature point group, wherein the feature point group includes the first feature group, and the first feature point is the first determined circular pit feature point; match the circular pit feature points except the first feature point with the feature point group in sequence according to the preset matching rules and the determined order, if the match is successful, add the circular pit feature point to the first feature point group, if the match fails, add the circular pit feature point that failed to match to the newly created second feature group, until the matching of all circular pit feature points is completed, wherein the feature group includes the second feature group.

[0080] Optionally, the grouping module 408 is also used to use the proximal edge point and the distal edge point of each circular pit feature point as the two endpoints of the diameter passing through the preset center of the circle and intersecting with the preset circle; determine the first center coordinate of the preset center of the circle and the preset circle radius based on the two endpoints; perform circular pit variance check on each obtained center coordinate to obtain a check result.

[0081] Optionally, the processing module 410 is also used to determine the corresponding preset circle according to the preset center and preset circle radius of each circular pit feature point if the verification result of the feature point group is passed; determine the first number of first grids that meet the circular pit condition and the second number of second grids that do not meet the circular pit condition in the preset circle according to the grid data, wherein the first grid includes empty grids and short grids whose grid height is lower than the preset height, and the second grid includes non-empty grids and tall grids whose grid height is higher than or equal to the preset height; determine the ratio of the first number to the sum of the first number and the second number as the target score; and take the circular pit feature point with the largest target score and higher than the score threshold as the target feature point.

[0082] Optionally, the second determination module 412 is also used to determine the center point and the radius of the circular pit obstacle according to the proximal edge point and the distal edge point in the target feature point, and obtain the absolute coordinates of the center point; calculate the second center coordinates of the center point in the self-vehicle coordinate system according to the self-vehicle posture and the absolute coordinates; and use the second center coordinates and the radius of the circular pit as the position information of the circular pit obstacle.

[0083] It should be noted here that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.

[0084] According to another aspect of the embodiments of the present application, the present application provides an electronic device, such as Figure 5 As shown, it includes a memory 501, a processor 503, a communication interface 505 and a communication bus 507. The memory 501 stores a computer program that can be run on the processor 503. The memory 501 and the processor 503 communicate through the communication interface 505 and the communication bus 507. When the processor 503 executes the computer program, the steps of the above method are implemented.

[0085] The memory and processor in the above electronic device communicate via a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.

[0086] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0087] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0088] According to another aspect of the embodiments of the present application, a mobile tool is provided, including the above-mentioned electronic device.

[0089] The mobile tool of the present application can be a vehicle or robot with an autonomous driving function, such as a vacuum truck, a floor scrubber, a sprinkler truck, a sewage treatment truck, a sanitation truck, a lawn mower, a golf cart, an entertainment vehicle, an amusement park autonomous driving device, a balance car, a sweeping robot, a food delivery robot, a shopping guide robot, etc.

[0090] In some possible implementations, the electronic device provided in the present application is an autonomous driving domain controller, and the mobile tool provided in the present application is equipped with an autonomous driving domain controller and various sensors for sensing environmental information and the mobile tool's own information (including but not limited to lidar, camera, millimeter wave radar, ultrasonic radar, inertial measurement unit, wheel speed meter, etc.). When the mobile tool is in working state, the autonomous driving domain controller is communicated with the various sensors loaded on the mobile tool, and path planning is performed for the mobile tool based on the environmental information collected by these sensors and the mobile tool's own information, so as to achieve the purpose of controlling the mobile tool to drive automatically.

[0091] According to another aspect of the embodiments of the present application, a computer-readable medium having a non-volatile program code executable by a processor is provided.

[0092] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0093] When the embodiments of the present application are specifically implemented, reference may be made to the above-mentioned embodiments, which have corresponding technical effects.

[0094] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0095] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0096] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0097] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0098] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0099] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0100] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0101] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk. It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

[0102] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A method for detecting a circular pit obstacle, characterized in that: include: Acquire point cloud data, and convert the point cloud data into raster data in the vehicle coordinate system; Calculating the target slope of each non-empty grid in the grid data; Determining circular pit feature points corresponding to each azimuth in the raster data according to the target slope, wherein the circular pit feature points include inclined slope points, proximal edge points, and distal edge points; According to the determined order of the circular pit feature points, the circular pit feature points are matched and grouped in sequence from earliest to latest, and each of the circular pit feature points in the obtained feature point group is verified to obtain a verification result corresponding to the feature point group; When the verification result of the feature point group is passed, taking the circular pit feature point with the largest target score in the feature point group as the target feature point; According to the vehicle's position and the target feature points, the position information of the circular pit obstacle is determined to complete the detection of the circular pit obstacle.

2. The method according to claim 1, characterized in that The calculating the target slope of each non-empty grid in the grid data specifically includes: Determine each of the non-empty grids in the grid data and adjacent grids corresponding to the non-empty grids; Calculate the normal vector of the non-empty grid according to the height of the adjacent grid; Determining the initial slope of the non-empty grid according to the angle between the normal vector and the horizontal plane; The vehicle posture is obtained, and the initial slope is corrected according to the vehicle posture to obtain the target slope of each non-empty grid.

3. The method according to claim 1, characterized in that The matching and grouping of the circular pit feature points in order from earliest to latest according to the determined order of the circular pit feature points specifically includes: When matching the first feature point, if there is no existing feature point group, a new first feature point group is created, and the first feature point is stored in the first feature point group, wherein the feature point group includes the first feature group, and the first feature point is the first determined circular pit feature point; According to the preset matching rules and the determined order, the circular pit feature points other than the first feature point are matched with the feature point group in sequence. If the match is successful, the circular pit feature point is added to the first feature point group. If the match fails, the circular pit feature point that failed to match is added to the newly created second feature group until the matching of all the circular pit feature points is completed, wherein the feature group includes the second feature group.

4. The method according to claim 1, characterized in that: The step of verifying each of the circular pit feature points in the obtained feature point group to obtain a verification result corresponding to the feature point group specifically includes: The proximal edge point and the distal edge point of each circular pit feature point are used as two endpoints of the diameter passing through the preset center of the circle and intersecting with the preset circle; Determine the first center coordinates of the preset circle center and the preset circle radius according to the two endpoints; A circle pit variance check is performed on each of the obtained circle center coordinates to obtain the check result.

5. The method according to claim 4, characterized in that When the verification result of the feature point group is passed, taking the circular pit feature point with the largest target score in the feature point group as the target feature point specifically includes: If the verification result of the feature point group is passed, determining the corresponding preset circle according to the preset circle center and the preset circle radius of each of the circular pit feature points; Determine, according to the grid data, a first number of first grids that meet the circular pit condition and a second number of second grids that do not meet the circular pit condition in the preset circle, wherein the first grids include empty grids and short grids whose grid heights are lower than a preset height, and the second grids include the non-empty grids and tall grids whose grid heights are higher than or equal to the preset height; determining a ratio of the first number to the sum of the first number and the second number as the target score; The circular pit feature point with the maximum target score and higher than the score threshold is used as the target feature point.

6. The method according to claim 1, characterized in that The determining the position information of the round pit obstacle according to the vehicle posture and the target feature point specifically includes: Determine the center point of the circular pit obstacle and the radius of the circular pit according to the proximal edge point and the distal edge point in the target feature point, and obtain the absolute coordinates of the center point; Calculate the coordinates of the second center of the circle at the point where the center of the circle is located in the vehicle coordinate system according to the vehicle posture and the absolute coordinates; The second circle center coordinates and the circular pit radius are used as the position information of the circular pit obstacle.

7. A detection device for round pit obstacles, characterized in that: include: An acquisition module is used to acquire point cloud data and convert the point cloud data into raster data in the vehicle coordinate system; A calculation module, used for calculating the target slope of each non-empty grid in the grid data; A first determination module is used to determine circular pit feature points corresponding to each azimuth in the raster data according to the target slope, wherein the circular pit feature points include inclined slope points, proximal edge points and distal edge points; A grouping module, used to match and group the circular pit feature points in order from the earliest to the latest according to the determination order of the circular pit feature points, and verify each of the circular pit feature points in the obtained feature point group to obtain a verification result corresponding to the feature point group; A processing module, configured to, when the verification result of the feature point group is passed, use the circular pit feature point with the largest target score in the feature point group as a target feature point; The second determination module is used to determine the position information of the circular pit obstacle according to the vehicle posture and the target feature point to complete the detection of the circular pit obstacle.

8. An electronic device, comprising a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, and the memory and the processor communicate through the communication bus and the communication interface, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A mobile tool, characterized in that: Comprising the electronic device as claimed in claim 8.

10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the method according to any one of claims 1 to 6.