Method and device for detecting a mobile subject and its drivable area
Through the fusion of target detection and obstacle detection and edge disassembly of the point cloud, combined with the optimization of the own vehicle width, the problem of insufficiently accurate and reasonable drivable area detection in the existing technology is solved, and a more edge-to-edge and applicable drivable area is achieved. Driving area detection.
Patent Information
- Application Number
- CN202311703056.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-12-11
AI Technical Summary
The detection of drivable areas in the existing technology is not accurate enough, the boundaries are not close to obstacles and the width of the vehicle is not considered, resulting in some narrow areas that are not suitable for passing.
Through target detection and general obstacle detection on the point cloud to be processed, the fusion results are used to disassemble the edges, determine the area to be optimized for the moving subject to drive along the edge, and optimize the drivable area based on the traffic width.
The accuracy and rationality of the drivable area are improved, so that the boundary of the drivable area is close to the obstacles and matches the width of the own vehicle, which improves the applicability of the area.
Smart Images

Figure CN117710920B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of autonomous driving technology, and in particular to a method and device for detecting a mobile subject and a drivable area thereof. Background Art
[0002] Mobile entities, such as intelligent mobile entities, such as intelligent driving vehicles, are an important research direction for improving traffic efficiency. Intelligent mobile entities integrate a variety of modern electronic information technologies and can be divided into three parts: environmental perception, path decision-making, and vehicle control. Among them, path decision-making is the second step in realizing intelligent mobility (such as autonomous driving); specifically, it is necessary to make a decision on the path suitable for the movement of the intelligent mobile entity based on the surrounding environment conditions collected by the first step of environmental perception.
[0003] The drivable area detection is one of the important algorithms for realizing path decision. The drivable area detection scheme in the related art is generally to obtain the drivable area by removing the ground points of the 3D point cloud and finding the nearest point in each direction interval. However, there are two problems with this scheme: First, the drivable area obtained is not accurate enough, and the boundary of the drivable area cannot be close to the obstacle; second, the drivable area obtained is not reasonable enough. Since the width of the vehicle is not taken into account, some narrow areas in the drivable area are not suitable for the vehicle to pass through. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method and device for detecting a mobile object and a drivable area thereof.
[0005] In a first aspect, the present disclosure provides a method for detecting a drivable area of a mobile subject, comprising:
[0006] Performing target detection and general obstacle detection on the point cloud to be processed, obtaining detection results respectively, and fusing the two detection results to obtain a fusion result;
[0007] Decomposing the edge based on the fusion result to obtain a decomposition result;
[0008] Based on the disassembly result, determining the area to be optimized corresponding to the side-by-side driving of the mobile body;
[0009] The area to be optimized is optimized based on the passage width of the mobile body to obtain an optimized drivable area.
[0010] Optionally, target detection is performed on the point cloud to be processed, including:
[0011] Converting the point cloud to be processed into data in array form;
[0012] The data in the array form is input into the target detection model to obtain a detection result containing at least one regular rectangle with a direction.
[0013] Optionally, general obstacle detection is performed on the point cloud to be processed, including:
[0014] Removing ground points from the point cloud to be processed to obtain a remaining point cloud;
[0015] The remaining point clouds are clustered by Euclidean distance to obtain a polygonal bounding box corresponding to at least one general obstacle.
[0016] Optionally, the two detection results are fused to obtain a fusion result, including:
[0017] Calculate the intersection-over-union ratio of the two detection results from a bird's-eye view;
[0018] Retain the results corresponding to the target detection for which the intersection-over-union ratio is not 0;
[0019] The result corresponding to the target detection with the intersection-and-union ratio of 0 is deleted, and the result corresponding to the general obstacle detection with the intersection-and-union ratio of 0 is retained.
[0020] Optionally, the fusion result includes at least one retained target detection result and at least one retained general obstacle detection result;
[0021] The step of disassembling the edge based on the fusion result to obtain the disassembly result includes:
[0022] Disassembling at least one of the retained target detection results to obtain a first type of disassembling result; and disassembling at least one of the retained general obstacle detection results to obtain a second type of disassembling result;
[0023] The disassembly results include the first-category disassembly results and the second-category disassembly results.
[0024] Optionally, the target detection result includes a regular rectangle, and the retained target detection results are respectively decomposed to obtain a first type of decomposition result, including:
[0025] For each retained target detection result, obtaining the original information of the regular rectangle; the original information of the regular rectangle includes the center point position, length, width, height and orientation of the regular rectangle;
[0026] Based on the original information of the regular rectangle, determining the target vertices of the regular rectangle from a bird's-eye view, and a rotation matrix between a reference orientation and a target orientation;
[0027] Based on the vertices of the regular rectangle under the bird's-eye view and the rotation matrix, the vertices are rotated around the target center point to obtain vertices corresponding to the target orientation;
[0028] Based on the vertices corresponding to the target orientation, each side is determined; the first type of disassembly result includes each side of the regular rectangle.
[0029] Optionally, the general obstacle detection result includes a polygonal bounding box, and the retained general obstacle detection result is disassembled to obtain a second type of disassembly result, including:
[0030] For each retained general obstacle detection result, original information of the polygonal bounding box is obtained; the original information of the polygonal bounding box includes vertex positions;
[0031] Based on the original information of the polygonal bounding box, each edge is determined; and the second type of disassembly result includes each edge of the polygonal bounding box.
[0032] Optionally, the determining, based on the disassembly result, the area to be optimized corresponding to the side-by-side driving of the mobile body includes:
[0033] Split the horizontal field of view into multiple fan-shaped areas based on preset angles;
[0034] Based on the disassembly result, determining the edge in each sector area that is closest to the mobile body;
[0035] Based on the edges in all the fan-shaped areas that are closest to the mobile body, the edge-adhering area to be optimized is obtained by connecting them end to end in sequence.
[0036] Optionally, it also includes:
[0037] If the edge does not exist in the target sector area, the edge in the target sector area closest to the moving subject is determined based on the distance reference value.
[0038] Optionally, the determining, based on the disassembly result, the edge closest to the mobile body in each of the sector-shaped areas includes:
[0039] Determining the slope of a preset ray in the fan-shaped area based on the starting angle and the ending angle of the fan-shaped area;
[0040] Based on the disassembly result, determining the slope of the target edge;
[0041] Determining an intersection point between the preset ray and the target edge based on the slope of the preset ray, the slope of the target edge, and an endpoint of the target edge;
[0042] Based on the intersection point, determining a distance between the target edge and the moving subject;
[0043] By comparing the distances corresponding to a plurality of target edges within the fan-shaped area, the edge closest to the moving subject is determined.
[0044] Optionally, the optimizing the area to be optimized based on the passage width of the mobile body to obtain an optimized drivable area includes:
[0045] Based on the passage width, determining different passage arcs corresponding to a plurality of different distances, wherein the distance is the distance between the edge of the area to be optimized and the mobile body, and / or a distance reference value;
[0046] The narrow area in the area to be optimized is filtered out using the travel arc to obtain an optimized drivable area.
[0047] Optionally, the using the passing arc to filter out narrow areas in the area to be optimized to obtain an optimized drivable area includes:
[0048] Determine the radian value corresponding to each vertex of the area to be optimized;
[0049] Splitting the horizontal field of view into a plurality of fan-shaped areas; wherein the horizontal field of view is the horizontal field of view of the radar carried by the mobile body;
[0050] Determine the vertex closest to the mobile body in each of the fan-shaped areas based on the passing arc and the arc values corresponding to the respective vertices;
[0051] Based on the vertices in each sector area that are closest to the mobile body being connected in sequence, an optimized drivable area is obtained.
[0052] Optionally, determining the vertex closest to the mobile body in each of the fan-shaped areas based on the passing arc and the arc values corresponding to the respective vertices includes:
[0053] For each target distance of the multiple different distances, the passing arc is used as a sliding arc, a preset arc smaller than the passing arc is used as a sliding step, and each sliding step determines a vertex corresponding to the distance to the nearest point among multiple vertices within the passing arc;
[0054] When the closest point distance is greater than the target distance, updating the drivable distance to the target distance;
[0055] When the closest point distance is less than or equal to the target distance, and the drivable distance is less than the closest point distance, updating the drivable distance to the closest point distance;
[0056] Until the multiple different distances are traversed, the drivable distance at each distance is obtained, and then the vertex closest to the mobile body in each fan-shaped area is obtained.
[0057] In a second aspect, the present disclosure further provides a device for detecting a drivable area of a mobile subject, comprising:
[0058] The first processing module is used to perform target detection and general obstacle detection on the point cloud to be processed, obtain detection results respectively, and fuse the two detection results to obtain a fusion result;
[0059] A second processing module, configured to decompose the edges based on the fusion result to obtain a decomposition result;
[0060] A third processing module is used to determine, based on the disassembly result, a region to be optimized corresponding to the side-by-side driving of the mobile body;
[0061] The fourth processing module is used to optimize the area to be optimized based on the passage width of the mobile body to obtain an optimized drivable area.
[0062] In a third aspect, the present disclosure further provides a mobile subject, including a processor and a memory;
[0063] The processor is used to execute the steps of any method described in the first aspect by calling the program or instruction stored in the memory.
[0064] Compared with the prior art, the technical solution provided by the present invention has the following advantages:
[0065] The method for detecting the drivable area of a mobile subject provided by the present disclosure includes performing target detection and general obstacle detection on the processed point cloud, obtaining detection results respectively, and fusing the two detection results to obtain a fusion result; disassembling the edge based on the fusion result to obtain a disassembly result; determining the area to be optimized corresponding to the mobile subject's edge driving based on the disassembly result; optimizing the area to be optimized based on the passage width of the mobile subject to obtain the optimized drivable area. Thus, the drivable area based on the passage width of the mobile subject is obtained, which can improve the accuracy and rationality of the drivable area. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0067] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0068] Figure 1 A schematic diagram of a drivable area in the related art;
[0069] Figure 2 A schematic diagram of another drivable area in the related art;
[0070] Figure 3 A schematic flow chart of a method for detecting a drivable area of a mobile subject provided in an embodiment of the present disclosure;
[0071] Figure 4 for Figure 3 In the method shown, a detailed flow chart of S120;
[0072] Figure 5 for Figure 4 In the method shown, a detailed flow chart of S401;
[0073] Figure 6 for Figure 4 In the method shown, a detailed flow chart of S402;
[0074] Figure 7 for Figure 3 In the method shown, a detailed flow chart of S130;
[0075] Figure 8 for Figure 7 In the method shown, a detailed flow chart of S702;
[0076] Fig. 9 A schematic diagram of an area to be optimized provided by an embodiment of the present disclosure;
[0077] Fig.10 for Figure 3 In the method shown, a detailed flow chart of S140;
[0078] Fig.11 for Fig. 9 In the method shown, a detailed flow chart of S1002;
[0079] Fig.12 for Fig.10 In the method shown, a detailed flow chart of S1103;
[0080] Fig.13A schematic diagram of a non-optimized drivable area provided in an embodiment of the present disclosure;
[0081] Fig.14 A schematic diagram of an optimized drivable area provided in an embodiment of the present disclosure;
[0082] Fig.15 A schematic diagram of the structure of a device for detecting a drivable area of a mobile subject provided in an embodiment of the present disclosure;
[0083] Fig.16 A structural schematic diagram of a mobile body is also provided for the embodiment of the present disclosure. DETAILED DESCRIPTION
[0084] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0085] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0086] As mentioned in the background technology, the common method for calculating the drivable area is to remove the ground points of the 3D point cloud and find the nearest point in each direction interval to obtain the drivable area. However, this method has the following problems:
[0087] First, the drivable area is not precise enough, and the boundary of the drivable area cannot be close to obstacles.
[0088] For example, Figure 1 FIG. 1 is a schematic diagram of a drivable area in the related art. Figure 1 As shown in the figure, in the two circled areas, 100 may represent a mobile body, and 200 may represent a drivable area for the mobile body. Figure 1 It can be seen that there is a gap between the drivable area and the mobile body, and the location of the gap can actually be used as a drivable area. Therefore, the drivable area obtained by the relevant technology is not accurate enough and there is still room for improvement.
[0089] Second, the drivable area does not take into account the width of the vehicle.
[0090] For example, Figure 2 FIG. 1 is a schematic diagram of another drivable area in the related art. Figure 2As shown, in the circled area, although the narrow long strip area is also determined as a drivable area, in fact, due to the width of the vehicle, the vehicle cannot pass through the narrow long strip area. Therefore, the narrow long strip area should not be determined as a drivable area in theory, which also leads to poor accuracy of the drivable area.
[0091] In response to at least one of the above-mentioned shortcomings, an embodiment of the present disclosure provides a method for detecting a drivable area of a mobile body, so that the boundary of the drivable area is close to the mobile body and matches the passage width of the mobile body, thereby improving the accuracy of the drivable area.
[0092] For example, Figure 3 A flow chart of a method for detecting a drivable area of a mobile subject provided in an embodiment of the present disclosure. Figure 3 , the method may include the following steps:
[0093] S110, performing target detection and general obstacle detection on the point cloud to be processed, obtaining detection results respectively, and fusing the two detection results to obtain a fusion result.
[0094] The mobile subject refers to a unit entity that can move, such as a car, etc., which is not limited here.
[0095] The point cloud to be processed is the basic point cloud data that needs to be processed. In this article, the point cloud to be processed can also be referred to as point cloud data or point cloud, which is not limited here. Exemplarily, the point cloud to be processed is the point cloud data formed by the information of the object to be measured carried by the echo received by the receiver of the laser radar. It can be understood that the point cloud to be processed in this step can be a frame of point cloud.
[0096] Targets may include pedestrians, cars, taxis, road signs, static objects on the road, etc., and the model can be trained by annotating data to realize the recognition of a variety of different targets of interest. General obstacles may include all targets except the ground. In the embodiments of the present disclosure, general obstacle detection can be achieved by a general obstacle algorithm, which is an algorithm for point cloud perception, and its purpose is to recognize all targets except the ground.
[0097] In some embodiments, performing target detection on the point cloud to be processed includes:
[0098] Convert the point cloud to be processed into data in array form;
[0099] The data in array form is input into the target detection model to obtain a detection result containing at least one regular rectangle with a direction.
[0100] Specifically, the original point cloud to be processed can be pre-processed to convert the sparse point cloud into a dense and regular array form, and then the array form data is input into the target detection model. The target detection model in the embodiment of the present disclosure can be a 3D target detection model. The target detection model can generate a regular rectangular detection result with orientation based on the input array form data, such as a 3D rectangular box.
[0101] In some embodiments, general obstacle detection is performed on the point cloud to be processed, including:
[0102] Remove the ground points in the point cloud to be processed to obtain the remaining point cloud;
[0103] The remaining point clouds are clustered by Euclidean distance to obtain a polygonal bounding box corresponding to at least one general obstacle.
[0104] Specifically, the ground point represents the point representing the ground in the point cloud to be processed. After removing the ground point, the remaining point cloud is obtained. The remaining point cloud can be clustered by Euclidean distance using a clustering algorithm, and potential obstacles can be extracted from the remaining point cloud to obtain their orientation, size, shape and other information, and general obstacles can be described by a polygonal bounding box.
[0105] Furthermore, after obtaining the detection results of the target detection (regular rectangle detection results with orientation) and the general obstacle detection results (polygonal bounding box of general obstacles), the two detection results are fused to obtain the fusion result. The advantages of general obstacle detection are used to make up for the shortcomings of target detection, so as to improve the perception results and accuracy without adding more perception equipment.
[0106] In some embodiments, the two detection results are fused to obtain a fusion result, including:
[0107] Calculate the intersection and union ratio of the two detection results from a bird's eye view;
[0108] Keep the results corresponding to the target detection whose intersection-over-union ratio is not 0;
[0109] The results corresponding to the target detection based on the intersection-and-union ratio of 0 are deleted, and the results corresponding to the general obstacle detection with the intersection-and-union ratio of 0 are retained.
[0110] The 3D rectangular box is converted into an associated polygon to facilitate matching with the polygonal bounding box. For the same target, target detection and general obstacle detection will be associated, that is, the corresponding plane figures will intersect. In the embodiment of the present disclosure, the intersecting polygon can be determined based on the position and size of the associated polygon and the polygonal bounding box.
[0111] After obtaining the intersecting polygons, the area of the intersecting polygons, the area of the associated polygons and the area of the polygonal bounding box can be calculated to obtain the intersection-to-union ratio. The specific calculation method can be any method known to those skilled in the art, which will not be described here.
[0112] Then, determine whether the intersection-and-union ratio is 0. If the intersection-and-union ratio is not 0, it means that the polygonal bounding box intersects with the associated polygon, and the target detection result is retained and determined as the output fusion result. If the intersection-and-union ratio is 0, it means that the polygonal bounding box does not intersect with the associated polygon, and the target detection result is deleted, and the general obstacle detection result is retained and determined as the output fusion result.
[0113] S120: Decompose the edges based on the fusion result to obtain a decomposition result.
[0114] After obtaining the fusion result, the edges of the fusion result can be decomposed to obtain the decomposition result.
[0115] In some embodiments, the fusion result includes at least one retained target detection result and at least one retained general obstacle detection result. By decomposing the edges of the target detection result and the general obstacle detection result in the fusion result, a series of edges can be obtained, for example, which can be represented in the form of a set of edges.
[0116] In some embodiments, Figure 4 for Figure 3 In the method shown, a detailed flow chart of S120 is shown. Figure 3 Based on Figure 4 S120 may specifically include:
[0117] S401: Disassemble at least one retained target detection result respectively to obtain a first type of disassembly result.
[0118] Specifically, each target detection result in the retained target detection results is respectively disassembled and summarized to obtain a first type of disassembly result.
[0119] In some embodiments, the object detection result includes a regular rectangle. Figure 5 for Figure 4 In the method shown, a detailed flow chart of S401 is shown. Figure 4 Based on Figure 5 S401 may specifically include:
[0120] S501. For each retained target detection result, obtain original information of a regular rectangle.
[0121] The original information of the regular rectangle includes the center point position, length, width, height and direction of the regular rectangle.
[0122] Exemplarily, the original information of a regular rectangle can be expressed as (x_c, y_c, z_c, l, w, h, yaw), where (x_c, y_c, z_c) represents the center point of the regular rectangle, l represents the length of the regular rectangle, w represents the width of the regular rectangle, h represents the height of the regular rectangle, and yaw represents the orientation of the regular rectangle.
[0123] S502: Based on the original information of the regular rectangle, determine the vertices of the regular rectangle in the bird's-eye view and the rotation matrix between the reference orientation and the target orientation.
[0124] Exemplarily, the vertex positions of the regular rectangle corresponding to the reference orientation (ie, default orientation) can be determined based on the center position, length and width of the regular rectangle, and the rotation matrix between the reference orientation and the target orientation can be determined based on the orientation of the regular rectangle.
[0125] Exemplarily, firstly, based on the length and width of the regular rectangle, the half-length and half-width are determined. Specifically:
[0126] The half length is half_l=l÷2 (1)
[0127] The half width is half_w=w÷2 (2)
[0128] The vertex positions of the vertices of the unrotated regular rectangle from a bird's eye view are:
[0129] verte_1=[x_c-half_l, y_c-half_w] (3)
[0130] vertex_2=[x_c+half_l, y_c-half_w] (4)
[0131] vertex_3=[x_c-half_l, y_c+half_w] (5)
[0132] vertex_4=[x_c+half_l, y_c+half_w] (6)
[0133] The rotation matrix of the yaw angle is:
[0134]
[0135] S503 : Based on the vertices of the regular rectangle in the bird's-eye view and the rotation matrix, the vertices are rotated around the target center point to obtain vertices corresponding to the target orientation.
[0136] Specifically, the vertices of the regular rectangle are rotated around the center point of the regular rectangle box_center=[x_c, y_c] to obtain the corresponding vertices of the target:
[0137] vertex_n′=R_yaw*(vertex_n-box_center)+box_center (8)
[0138] S504: Determine the edges based on the vertices corresponding to the target orientation. The first type of disassembly results include the edges of a regular rectangle.
[0139] Specifically, each edge is represented as follows:
[0140] line_1=[vertex_1′, vertex_2′] (9)
[0141] line_2=[vertex_2 ′ ,vertex_3′] (10)
[0142] line_3=[vertex_3′, vertex_4′] (11)
[0143] line_4=[vertex_4′, vertex_1′] (12)
[0144] Thus, the sides of each regular rectangle are obtained, and all regular rectangles are decomposed to obtain the sides corresponding to all regular rectangles, that is, the first type of decomposition result is obtained.
[0145] S402: Disassemble the at least one retained general obstacle detection result to obtain a second type of disassembly result.
[0146] In some embodiments, the general obstacle detection result includes a polygonal bounding box. Figure 6 for Figure 4 In the method shown, a detailed flow chart of S402 is shown. Figure 4 Based on Figure 6 S402 may specifically include:
[0147] S601: For each retained general obstacle detection result, obtain original information of a polygonal bounding box.
[0148] The original information of the polygonal bounding box includes vertex positions.
[0149] Specifically, the original information of the polygonal bounding box can be expressed as {v_1, v_2, v_3...v_n}, where v_1~v_n represent vertex positions.
[0150] S602: Determine the edges based on the original information of the polygonal bounding box. The second type of disassembly results includes the edges of the polygonal bounding box.
[0151] Specifically, the sides of the polygonal bounding box can be expressed as follows:
[0152] line_1=[v_1, v_2], line_2=[V_2, V_3]... line_n=[v_n, v_1].
[0153] Thus, the edge of each polygonal bounding box is obtained, and all polygonal bounding boxes are disassembled to obtain the edges corresponding to all polygonal bounding boxes, that is, the second type of disassembly result is obtained.
[0154] The disassembly results obtained based on the fusion results include the first type of disassembly results and the second type of disassembly results mentioned above.
[0155] S130: Based on the disassembly result, determine the area to be optimized corresponding to the side-by-side driving of the mobile body.
[0156] Since the decomposition result is a series of edges, each edge of the edge can be obtained by processing the series of edges, and then the area to be optimized of the edge can be obtained.
[0157] In some embodiments, Figure 7 for Figure 3 In the method shown, a detailed flow chart of S130 is shown. Figure 3 Based on Figure 7 , S130 specifically includes:
[0158] S701: Split the horizontal field of view into a plurality of fan-shaped areas in units of preset angles.
[0159] In the disclosed embodiment, the horizontal field of view can be divided into multiple fan-shaped areas in units of 1°. It has been found that if the preset angle is set too large, it may lead to low accuracy and missed detection; if the preset angle is set too small, it may lead to excessive calculation and affect the calculation efficiency. Therefore, by setting the preset angle to 1°, it can ensure accuracy and avoid low calculation efficiency.
[0160] Exemplarily, the horizontal field of view in this step may be the horizontal field of view of a laser radar, and the horizontal field of view may range from -60° to 60°, divided in units of 1°, and may be divided into 120 sector-shaped areas.
[0161] In other implementations, the angle range of the horizontal field of view and the value of the preset angle may also be other angles, which are not limited here.
[0162] S702: Based on the disassembly result, determine the edge in each sector area that is closest to the mobile body.
[0163] The disassembly result includes a series of edges obtained based on the disassembly of the fusion result. The series of edges can be distributed in the same or different fan-shaped areas in the horizontal field of view. By calculating the distance between different edges in the same fan-shaped area and the moving subject, the edge closest to the moving subject in each fan-shaped area can be determined.
[0164] In some embodiments, Figure 8 for Figure 7 In the method shown, a detailed flow chart of S702 is shown. Figure 7 Based on Figure 8 S702 may specifically include:
[0165] S801: Determine the slope of a preset ray in the fan-shaped area based on the start angle and the end angle of the fan-shaped area.
[0166] S802: Determine the slope of the target edge based on the disassembly result.
[0167] S803: Determine an intersection point between the preset ray and the target edge based on the slope of the preset ray, the slope of the target edge, and an endpoint of the target edge.
[0168] S804: Determine the distance between the target edge and the moving subject based on the intersection point.
[0169] S805: Determine the edge closest to the moving subject by comparing the distances corresponding to multiple target edges in the fan-shaped area.
[0170] Specifically, after splitting a plurality of sector-shaped regions, the starting angles θ1 and θ2 of each sector-shaped region may be obtained.
[0171] tan_ray=tan((θ1+θ2) / 2) (13)
[0172] tan_line=(y2-y1) / (x2-x1) (14)
[0173] x_intersect=(y1-tan_line*x1) / (tan_ray-tan_line) (15)
[0174] y_intersect=x_intersect*tan_ray (16)
[0175]
[0176] Wherein, formula (13) represents the slope of the intermediate ray corresponding to the starting angles θ1 and θ2 of the fan-shaped area. x1, y1, x2, y2 in formula (14) represent the positions of the two end points of the line segment in the fan-shaped area. The line segment is the line segment obtained by intercepting the edge obtained by the disassembly in the previous step by the fan-shaped area. Formula (14) represents the slope of the edge closest to the moving body in the fan-shaped area. Formula (15) represents the horizontal coordinate of the intersection of the intermediate ray and the edge. Formula (16) represents the vertical coordinate of the intersection of the intermediate ray and the edge. Formula (17) represents the distance between the intersection and the moving body, where the coordinates of the moving body are (0,0), which can be the position of the installed laser radar.
[0177] Therefore, for each sector area, by calculating the distances of all line segments therein from the main body and comparing the calculated distances, the shortest distance can be obtained, thereby finding the shortest distance to the moving main body, that is, determining the edge closest to the moving main body.
[0178] In some embodiments, if there is no edge in the target sector area, the edge in the target sector area closest to the moving subject is determined based on the distance reference value.
[0179] Exemplarily, the distance reference value may be preset, such as 50 meters or other distance values, which are not limited herein.
[0180] S703: Based on the edges in all the fan-shaped regions that are closest to the mobile body, the regions to be optimized are obtained by connecting them end to end.
[0181] After determining the edges of all the fan-shaped areas that are closest to the moving body, all the edges are connected end to end in sequence to obtain the area to be optimized that is close to the edge.
[0182] For example, Fig. 9 A schematic diagram of an area to be optimized provided by an embodiment of the present disclosure. Fig. 9 The area enclosed by the edge indicated by 300 is the area to be optimized.
[0183] Depend on Fig. 9 It can also be known that the area may include narrow and inaccessible areas, and therefore further optimization is required, such as S140.
[0184] S140. Optimize the area to be optimized based on the passage width of the mobile body to obtain an optimized drivable area.
[0185] The pass width can be the vehicle body width, or the vehicle body width plus a certain distance value, so that the vehicle can pass through conveniently. By optimizing the area to be optimized in combination with the pass width, narrow and impassable areas are filtered out, thereby improving the accuracy of the optimized drivable area.
[0186] In some embodiments, Fig.10 for Figure 3 In the method shown, a detailed flow chart of S140 is shown. Figure 3 Based on Fig.10 , S140 may specifically include:
[0187] S1001: Based on the passage width, determine different passage arcs corresponding to multiple different distances, wherein the distance is the distance between the edge of the area to be optimized and the mobile body, and / or a distance reference value.
[0188] The access width is used to indicate the width required for the mobile subject to pass through, and the access width can be expressed as access_width. For example, access_width can be 3 meters, 5 meters, or other width values.
[0189] The distance may be a theoretically achievable distance of the vehicle, and may be represented as multiple distances, for example, as distances={d_1, d_2...d_n}. For example, d_1, d_2...d_n may be 1 meter, 2 meters,..., 50 meters or other distance values, respectively.
[0190] For example, the arc of the passage width at different distances can be determined by an arc cosine function, and the passage arc can be specifically expressed as:
[0191] theta n =arccos(1-(access_width 2 / 2d_n 2 )) (18)
[0192] S1002. Filter out narrow areas in the area to be optimized using the travel arc to obtain an optimized drivable area.
[0193] Exemplarily, the vertex radians of the area to be optimized determined in the above step are traversed using the communication radians at different distances, and narrow areas are filtered out, so that a drivable area with high accuracy that meets traffic requirements can be obtained.
[0194] In some embodiments, Fig.11 for Fig.10 In the method shown, a detailed flow chart of S1002 is shown. Fig.10 Based on Fig.11 S1002 may specifically include:
[0195] S1101, determining the radian value corresponding to each vertex of the area to be optimized.
[0196] Specifically, the radian values corresponding to the vertices of the area to be optimized formed by the edges can be calculated, which can be specifically expressed as:
[0197] point_theta=arctan2(y,x) (19)
[0198] In formula (19), x and y represent the vertex coordinates, and point_theta represents the radian value corresponding to the vertex.
[0199] S1102: Split the horizontal field of view into a plurality of fan-shaped areas, wherein the horizontal field of view is the horizontal field of view of the radar carried by the mobile object.
[0200] Exemplarily, the horizontal field of view may be split into a plurality of sector-shaped areas at a preset angle, for example, split in units of 1°.
[0201] S1103: Determine the vertex closest to the mobile body in each sector area based on the passing arc and the arc value corresponding to each vertex.
[0202] For example, each travel arc may include one or more vertices, and the vertex closest to the moving body in each fan-shaped area may be determined by downsampling or comparing distances.
[0203] S1104, connecting the vertices closest to the mobile body in each sector area in sequence to obtain an optimized drivable area.
[0204] In some embodiments, Fig.12 for Fig.11 In the method shown, a detailed flow chart of S1103 is shown. Fig.11 Based on Fig.12 S1103 may specifically include:
[0205] S1201. For each target distance of a plurality of different distances, a travel arc is used as a sliding arc, and a preset arc smaller than the travel arc is used as a sliding step. Each time the sliding is performed, a vertex corresponding to the distance to the nearest point among a plurality of vertices within the travel arc is determined.
[0206] S1202: When the closest point distance is greater than the target distance, the drivable distance is updated to the target distance.
[0207] S1203: When the closest point distance is less than or equal to the target distance and the drivable distance is less than the closest point distance, update the drivable distance to the closest point distance.
[0208] S1204, until a plurality of different distances are traversed, the drivable distance at each distance is obtained, and then the vertex closest to the mobile body in each sector area is obtained.
[0209] Specifically, initialize a vector points_new_dist and update_pre of length m, with initial values of 0 and true respectively.
[0210] ①Starting from distance d_1, with theta1 as the sliding arc and theta1 / 4 as the sliding step, each sliding finds the nearest point within the passing arc, window_min_distance.
[0211] ② Initialize the update vector of length m, with the initial value false, and record whether each point of the current distance is updated.
[0212] ③ Compare the distance window_min_distance of the nearest point in each pass arc with d_1. If window_min_distance>d_1, then the update status of all points in the pass arc is changed to true. The distance in points_new_dist is changed to d_1.
[0213] ④ If window_min_distance<=d_1, then for the point within the passing arc, if the value of update_pre is true, and the value in points_new_dist is less than window_min_distance, then the value of the point in points_new_dist is changed to window_min_distance.
[0214] ⑤ Let pre_update = update, and repeat the above process ① to ④ starting from step ① until all distances are traversed.
[0215] ⑥The final points_new_dist is the drivable area that can adapt to the width of the vehicle.
[0216] For example, Fig.13 A schematic diagram of an unoptimized drivable area provided in an embodiment of the present disclosure, Fig.14 A schematic diagram of an optimized drivable area provided in an embodiment of the present disclosure. Fig.13 The area enclosed by the edge indicated by 400 represents the unoptimized drivable area. Fig.14 The area enclosed by the edge indicated by 500 represents the optimized drivable area. Fig.13 and Fig.14 It can be seen that the optimized drivable area removes some narrow areas that are not suitable for the vehicle to pass through, thereby improving the rationality of the drivable area.
[0217] Therefore, the embodiment of the present disclosure can obtain a drivable area that is close to the edge of the passage width of the mobile body based on the above scheme, which can improve the accuracy and rationality of the drivable area.
[0218] Based on the same inventive concept, the embodiment of the present disclosure also provides a device for detecting a drivable area of a mobile subject, which can execute the steps of any detection method provided in the above-mentioned embodiments to achieve corresponding technical effects. The details can be understood by referring to the above and will not be repeated here.
[0219] For example, Fig.15 A schematic diagram of a detection device for a drivable area of a mobile subject provided in an embodiment of the present disclosure. Fig.15 The device may include: a first processing module 1501, which is used to perform target detection and general obstacle detection on the point cloud to be processed, obtain detection results respectively, and fuse the two detection results to obtain a fusion result. A second processing module 1502 is used to disassemble the edge based on the fusion result to obtain a disassembly result. A third processing module 1503 is used to determine the area to be optimized corresponding to the mobile body driving along the edge based on the disassembly result. A fourth processing module 1504 is used to optimize the area to be optimized based on the passage width of the mobile body to obtain an optimized drivable area.
[0220] A device for detecting a drivable area for a mobile subject provided in an embodiment of the present disclosure corresponds to the above-mentioned embodiment of a method for detecting a drivable area for a mobile subject, and includes at least partially the same technical features as the above-mentioned embodiment of a method for detecting a drivable area for a mobile subject. Therefore, it can also achieve the same technical effect as the above-mentioned embodiment of a method for detecting a drivable area for a mobile subject, which will not be repeated here.
[0221] On the basis of the above implementation, the embodiment of the present disclosure also provides a mobile body, which may include a controller for executing the steps of any of the above methods to achieve corresponding technical effects. The details can be understood by referring to the above and will not be repeated here.
[0222] For example, Fig.16 A schematic diagram of the structure of a mobile body provided by an embodiment of the present disclosure. Fig.16 The mobile subject may include a processor 1601 and a memory 1602; the processor 1601 calls a program or instruction stored in the memory 1602 to execute the steps of any one of the above-mentioned methods for detecting a drivable area of a mobile subject.
[0223] The mobile subject provided by the embodiment of the present disclosure can execute the steps of any method in the above-mentioned embodiment of the method for detecting the drivable area of the mobile subject, so it can also achieve the same technical effect as the above-mentioned embodiment of the method for detecting the drivable area of the mobile subject, which will not be repeated here.
[0224] 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 any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0225] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for detecting a drivable area of a mobile subject, characterized in that: include: Performing target detection and general obstacle detection on the point cloud to be processed, obtaining detection results respectively, and fusing the two detection results to obtain a fusion result; Decomposing the edge based on the fusion result to obtain a decomposition result; Based on the disassembly result, determining the area to be optimized corresponding to the side-by-side driving of the mobile body; Optimizing the area to be optimized based on the passage width of the mobile body to obtain an optimized drivable area; Wherein, the fusion result includes at least one retained target detection result and at least one retained general obstacle detection result; The step of disassembling the edge based on the fusion result to obtain the disassembly result includes: Disassembling at least one of the retained target detection results to obtain a first type of disassembling result; and disassembling at least one of the retained general obstacle detection results to obtain a second type of disassembling result; The disassembly results include the first-category disassembly results and the second-category disassembly results; The target detection results include regular rectangles. The retained target detection results are decomposed respectively to obtain first-class decomposition results, including: For each retained target detection result, obtaining the original information of the regular rectangle; the original information of the regular rectangle includes the center point position, length, width, height and orientation of the regular rectangle; Based on the original information of the regular rectangle, determining the vertices of the regular rectangle from a bird's-eye view, and a rotation matrix between a reference orientation and a target orientation; Based on the vertices of the regular rectangle under the bird's-eye view and the rotation matrix, the vertices are rotated around the target center point to obtain vertices corresponding to the target orientation; Based on the vertices corresponding to the target orientation, each side is determined; the first type of disassembly result includes each side of the regular rectangle.
2. The detection method according to claim 1, characterized in that: Perform target detection on the point cloud to be processed, including: Converting the point cloud to be processed into data in array form; The data in the array form is input into the target detection model to obtain a detection result containing at least one regular rectangle with a direction.
3. The detection method according to claim 1, characterized in that: Perform general obstacle detection on the point cloud to be processed, including: Removing ground points from the point cloud to be processed to obtain a remaining point cloud; The remaining point clouds are clustered by Euclidean distance to obtain a polygonal bounding box corresponding to at least one general obstacle.
4. The detection method according to claim 1, characterized in that: The two detection results are fused to obtain the fusion result, including: Calculate the intersection-over-union ratio of the two detection results from a bird's-eye view; Retain the results corresponding to the target detection for which the intersection-over-union ratio is not 0; The result corresponding to the target detection with the intersection-and-union ratio of 0 is deleted, and the result corresponding to the general obstacle detection with the intersection-and-union ratio of 0 is retained.
5. The detection method according to claim 1, characterized in that: The general obstacle detection result includes a polygonal bounding box. The retained general obstacle detection result is disassembled to obtain a second type of disassembly result, including: For each retained general obstacle detection result, original information of the polygonal bounding box is obtained; the original information of the polygonal bounding box includes vertex positions; Based on the original information of the polygonal bounding box, each edge is determined; and the second type of disassembly result includes each edge of the polygonal bounding box.
6. The detection method according to claim 1, characterized in that: The step of determining the area to be optimized corresponding to the side-by-side driving of the mobile body based on the disassembly result includes: Split the horizontal field of view into multiple fan-shaped areas based on preset angles; Based on the disassembly result, determining the edge in each sector area that is closest to the mobile body; Based on the edges in all the fan-shaped areas that are closest to the mobile body, the edge-adhering area to be optimized is obtained by connecting them end to end in sequence.
7. The detection method according to claim 6, characterized in that: Also includes: If the edge does not exist in the target sector area, the edge in the target sector area closest to the moving subject is determined based on the distance reference value.
8. The detection method according to claim 6, characterized in that: The step of determining the edge closest to the mobile body in each of the fan-shaped regions based on the disassembly result includes: Determining the slope of a preset ray in the fan-shaped area based on the starting angle and the ending angle of the fan-shaped area; Based on the disassembly result, determining the slope of the target edge; Determining an intersection point between the preset ray and the target edge based on the slope of the preset ray, the slope of the target edge, and an endpoint of the target edge; Based on the intersection point, determining a distance between the target edge and the moving subject; By comparing the distances corresponding to a plurality of target edges within the fan-shaped area, the edge closest to the moving subject is determined.
9. The detection method according to claim 1, characterized in that: The step of optimizing the area to be optimized based on the passage width of the mobile body to obtain an optimized drivable area includes: Based on the passage width, determining different passage arcs corresponding to a plurality of different distances, wherein the distance is the distance between the edge of the area to be optimized and the mobile body, and / or a distance reference value; The narrow area in the area to be optimized is filtered out using the travel arc to obtain an optimized drivable area.
10. The detection method according to claim 9, characterized in that: The method of filtering out the narrow area in the area to be optimized by using the travel arc to obtain an optimized drivable area includes: Determine the radian value corresponding to each vertex of the area to be optimized; Splitting the horizontal field of view into a plurality of fan-shaped areas; wherein the horizontal field of view is the horizontal field of view of the radar carried by the mobile body; Determine the vertex closest to the mobile body in each of the fan-shaped areas based on the passing arc and the arc values corresponding to the respective vertices; Based on the vertices in each sector area that are closest to the mobile body being connected in sequence, an optimized drivable area is obtained.
11. The detection method according to claim 10, characterized in that: Determining the vertex closest to the moving body in each of the fan-shaped areas based on the passing arc and the arc values corresponding to the respective vertices includes: For each target distance of the multiple different distances, the passing arc is used as a sliding arc, a preset arc smaller than the passing arc is used as a sliding step, and each sliding step determines a vertex corresponding to the distance to the nearest point among multiple vertices within the passing arc; When the closest point distance is greater than the target distance, updating the drivable distance to the target distance; When the closest point distance is less than or equal to the target distance and the drivable distance is less than the closest point distance, updating the drivable distance to the closest point distance; Until the multiple different distances are traversed, the drivable distance at each distance is obtained, and then the vertex closest to the mobile body in each fan-shaped area is obtained.
12. A device for detecting a drivable area of a mobile subject, characterized in that: include: The first processing module is used to perform target detection and general obstacle detection on the point cloud to be processed, obtain detection results respectively, and fuse the two detection results to obtain a fusion result; A second processing module, configured to decompose the edges based on the fusion result to obtain a decomposition result; A third processing module is used to determine, based on the disassembly result, a region to be optimized corresponding to the side-by-side driving of the mobile body; A fourth processing module is used to optimize the area to be optimized based on the passage width of the mobile body to obtain an optimized drivable area; Wherein, the fusion result includes at least one retained target detection result and at least one retained general obstacle detection result; The step of disassembling the edge based on the fusion result to obtain the disassembly result includes: Disassembling at least one of the retained target detection results to obtain a first type of disassembling result; and disassembling at least one of the retained general obstacle detection results to obtain a second type of disassembling result; The disassembly results include the first-category disassembly results and the second-category disassembly results; The target detection results include regular rectangles. The retained target detection results are decomposed respectively to obtain first-class decomposition results, including: For each retained target detection result, obtaining the original information of the regular rectangle; the original information of the regular rectangle includes the center point position, length, width, height and orientation of the regular rectangle; Based on the original information of the regular rectangle, determining the vertices of the regular rectangle from a bird's-eye view, and a rotation matrix between a reference orientation and a target orientation; Based on the vertices of the regular rectangle under the bird's-eye view and the rotation matrix, the vertices are rotated around the target center point to obtain vertices corresponding to the target orientation; Based on the vertices corresponding to the target orientation, each side is determined; the first type of disassembly result includes each side of the regular rectangle.
13. A mobile subject, characterized in that: including a processor and a memory; The processor is used to execute the steps of the method according to any one of claims 1 to 11 by calling the program or instructions stored in the memory.
Citation Information
Patent Citations
Method and device for detecting boundary on driving area of vehicle
CN114359869A
Laser sensing fusion optimization method, device and equipment and readable storage medium
CN115578703A
Vehicle obstacle avoidance control method, device and equipment
CN115798261A
