Collision detection method, device, electronic device, autonomous driving vehicle and medium

Through the method based on the distance field, it can quickly determine whether the obstacle is located in the detection area, solving the problem of low collision detection efficiency in the existing technology and improving the efficiency and accuracy of collision detection of autonomous vehicles.

CN116424315BActive Publication Date: 2024-10-15APOLLO INTELLIGENT CONNECTIVITY (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310337863.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-15
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

Existing collision detection technologies, such as grid space coverage enumeration method and geometric boundary collision detection method, are inefficient, especially when the complexity of obstacles is high, the detection efficiency drops significantly.

Method used

The positional relationship between the collision detection area and obstacles of the target object at the current collision detection point is determined based on the pre-constructed distance field, and a rectangular surrounding area is constructed through multiple circular filling areas to quickly determine whether the obstacle is located within the detection area. , and then obtain the collision detection results.

Benefits of technology

It improves the efficiency of collision detection and is suitable for platforms with lower computing power, such as automatic parking platforms. It reduces the amount of data calculation and enhances detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116424315B_ABST
    Figure CN116424315B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the computer field, in particular to technical fields such as autonomous driving and intelligent transportation, and specifically to a collision detection method, device, electronic device, autonomous driving vehicle and medium. The specific implementation scheme is: determining the current collision detection point of the target object; based on the pre-constructed distance field, determining the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle; according to the positional relationship, obtaining the collision detection result of the target object at the current collision detection point. The use of the present disclosure can improve the collision detection efficiency of the target object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the computer field, and in particular to technical fields such as autonomous driving and intelligent transportation, and specifically to a collision detection method, device, electronic equipment, autonomous driving vehicle, and medium. Background Art

[0002] With the rise of autonomous driving technology, driving planning and parking planning for autonomous vehicles have received more and more attention, and these issues focus on collision detection technology. At present, collision detection is usually achieved by using technologies such as grid space coverage enumeration and geometric boundary collision detection, which have low detection efficiency. Summary of the invention

[0003] The present disclosure provides a collision detection method, device, electronic equipment, autonomous driving vehicle and medium.

[0004] According to one aspect of the present disclosure, there is provided a collision detection method, comprising:

[0005] Determine the current collision detection point of the target object;

[0006] Determining, based on the pre-constructed distance field, a positional relationship between a collision detection area corresponding to the target object when the target object travels to the current collision detection point and the obstacle;

[0007] A collision detection result of the target object at the current collision detection point is obtained according to the positional relationship.

[0008] According to a second aspect of the present disclosure, there is provided a collision detection device, comprising:

[0009] A detection point determination unit, used to determine a current collision detection point of a target object;

[0010] A detection unit, configured to determine, based on a pre-constructed distance field, a positional relationship between a collision detection area corresponding to the target object when the target object travels to the current collision detection point and an obstacle;

[0011] The result acquisition unit is used to obtain the collision detection result of the target object at the current collision detection point according to the position relationship.

[0012] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0013] at least one processor;

[0014] a memory communicatively coupled to the at least one processor;

[0015] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to execute the method provided by the first aspect.

[0016] According to a fourth aspect of the present disclosure, an autonomous driving vehicle is provided, comprising the electronic device provided by the third aspect.

[0017] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method provided in the first aspect.

[0018] According to a sixth aspect of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method provided in the first aspect is implemented.

[0019] The present disclosure can improve the collision detection efficiency of target objects.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0022] Figure 1 A schematic diagram of a flow chart of a collision detection method provided by an embodiment of the present disclosure;

[0023] Figure 2A and Figure 2B A schematic diagram of a method for constructing a circular filling area provided in an embodiment of the present disclosure;

[0024] Figure 3 A schematic diagram of another method for constructing a circular filling area provided in an embodiment of the present disclosure;

[0025] Figure 4A , Figure 4B and Figure 4C A schematic diagram of a distributed construction method of a circular filling area provided in an embodiment of the present disclosure;

[0026] Figure 5 A schematic diagram of a method for constructing a circular enclosed area provided in an embodiment of the present disclosure;

[0027] Figure 6 A schematic diagram of a detection point sampling method provided by an embodiment of the present disclosure;

[0028] Figure 7A schematic diagram of a detection point sampling method provided by an embodiment of the present disclosure;

[0029] Figure 8 A complete flow chart of a collision detection method provided by an embodiment of the present disclosure;

[0030] Fig. 9 A schematic diagram of an application scenario of a collision detection method provided by an embodiment of the present disclosure;

[0031] Fig.10 A schematic structural block diagram of a collision detection device provided in an embodiment of the present disclosure;

[0032] Fig.11 A schematic structural block diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0033] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0034] As described in the background art, currently, collision detection is usually implemented by using technologies such as grid space coverage enumeration method and geometric boundary collision detection method.

[0035] Among them, the grid space coverage enumeration method discretizes the driving space of the target object into grids, and marks the grid where the obstacle is located as occupied. After that, collision detection is achieved by enumerating the grids corresponding to the target object to determine whether they contain occupied grids. The detection efficiency of this method is greatly affected by the grid resolution, and based on the conventional low-computing power platform, the grid resolution cannot be greatly improved. Therefore, the detection efficiency is low.

[0036] The geometric boundary collision detection method is to construct the target object and the obstacle into specific geometric shapes, such as circles, lines, triangles, rectangles or convex polygons. Then, the collision detection is realized by judging whether the geometric shape corresponding to the target object overlaps with the geometric shape corresponding to the obstacle. This method is greatly affected by the complexity of the obstacle. When the complexity of the obstacle is high, more geometric shapes are usually required to completely cover it, resulting in a significant decrease in detection efficiency.

[0037] Based on this, the embodiment of the present disclosure provides a collision detection method, which can be applied to electronic devices. Figure 1The flowchart diagram shown is used to illustrate a collision detection method provided by an embodiment of the present disclosure. It should be noted that although a logical sequence is shown in the flowchart diagram, in some cases, the steps shown or described may also be performed in other sequences.

[0038] Step S101, determining the current collision detection point of the target object;

[0039] Step S102, determining the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle based on the pre-constructed distance field;

[0040] Step S103: obtaining a collision detection result of the target object at the current collision detection point according to the position relationship.

[0041] Among them, the target object can be an autonomous driving vehicle, and the embodiment of the present disclosure does not specifically limit its vehicle type (model, size, brand).

[0042] In the embodiment of the present disclosure, the current collision detection point may be a collision detection point determined by sampling detection points on the driving plan path according to a preset sampling strategy after the driving plan path of the target object is determined. Based on this, it can be understood that in the embodiment of the present disclosure, the current collision detection point has corresponding posture information to characterize the position and body posture corresponding to the target object when it drives to the current collision detection point. Among them, the body posture can be the direction of the body. Then, after determining the current collision detection point of the target object, as a specific example of the embodiment of the present disclosure, the collision detection area corresponding to the target object when it drives to the current collision detection point can be determined based on the posture information corresponding to the current collision detection point. Among them, the collision detection area may include multiple circular filling areas for filling the area occupied by the target object when it drives to the current collision detection point.

[0043] In addition, in the embodiment of the present disclosure, the distance field may be a Euclidean Signed Distance Field (ESDF), a Truncated Signed Distance Function (TSDF), a Manhattan distance field, etc. For ESDF, it has a corresponding distance data set for storing the nearest obstacle distance corresponding to each position point in ESDF to characterize the interval distance between the position point and its nearest obstacle. For TSDF, since it can be converted to and from ESDF, in the embodiment of the present disclosure, when the distance field is TSDF, TSDF can be converted to ESDF, and then based on ESDF, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle is determined. For the Manhattan distance field, it also has a corresponding distance data set for storing the nearest obstacle distance corresponding to each position point in the Manhattan distance field to characterize the Manhattan distance between the position point and the target body. Among them, the target body may be its nearest obstacle.

[0044] Based on the above description, in the embodiment of the present disclosure, when it is determined that there is a driving obstacle area in multiple circular filling areas based on the distance field, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle is determined to be an inclusion relationship, so as to indicate that the obstacle is located inside the collision detection area, thereby determining that the collision detection result of the target object at the current collision detection point is a collision risk; otherwise, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle is determined to be a non-inclusion relationship, so as to indicate that the obstacle is located outside the collision detection area, thereby determining that the collision detection result of the target object at the current collision detection point is no collision risk. Wherein, "determining that there is a driving obstacle area in multiple circular filling areas based on the distance field" may include: for each circular filling area, determining the target center position of the circular filling area in the distance field; querying the target obstacle distance corresponding to the target center position from the distance data set of the distance field; when the target obstacle distance is less than the radius length of the circular filling area, the circular filling area is used as the driving obstacle area, so as to determine that there is a driving obstacle area in multiple circular filling areas.

[0045] The collision detection method provided by the embodiment of the present disclosure can determine the current collision detection point of the target object; based on the pre-constructed distance field, determine the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle; and obtain the collision detection result of the target object at the current collision detection point based on the positional relationship. Since the distance field has a corresponding distance data set for storing the nearest obstacle distance corresponding to each position point in the field, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle can be quickly determined based on the distance field, and then the collision detection result of the target object at the current collision detection point can be obtained based on the positional relationship, thereby improving the collision detection efficiency of the target object.

[0046] In some optional implementations, “determining, based on the pre-constructed distance field, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle” may include the following steps:

[0047] Construct a rectangular enclosing area corresponding to the target object when it drives to the current collision detection point;

[0048] Constructing a plurality of circular filling areas on the rectangular enclosing area; wherein the collision detection area includes the plurality of circular filling areas;

[0049] When it is determined based on the distance field that there is a driving obstacle area containing an obstacle among multiple circular filled areas, the positional relationship between the collision detection area corresponding to the target object when it drives to the current collision detection point and the obstacle is determined to be an inclusion relationship, so as to represent that the obstacle is located inside the collision detection area.

[0050] In the disclosed embodiment, based on the posture information corresponding to the current collision detection point, the minimum circumscribed rectangle corresponding to the target object when it travels to the current collision detection point can be constructed as a rectangular enclosing area to characterize the area occupied by the target object when it travels to the current collision detection point. After constructing the rectangular enclosing area, multiple circular filling areas can be constructed on the rectangular enclosing area, so that each circular filling area intersects (including tangents) with the edge of the rectangular enclosing area.

[0051] Please combine Figure 2AAs a specific example of the embodiment of the present disclosure, for the construction of multiple circular filling areas, multiple first inscribed circular filling areas 202 can be constructed along the four sides of the rectangular enclosed area 201, and the diameter length of the first inscribed circular filling area 202 is less than the width of the rectangular enclosed area 201. In addition, it should be noted that in this example, if the computing power of the platform allows, the number of constructed first inscribed circular filling areas 202 can be increased to make the interval between any two adjacent first inscribed circular filling areas 202 smaller, and / or first corner circular filling areas 203 (such as Figure 2B As shown), the unfilled area of ​​the rectangular enclosed area 201 is reduced to increase the detection accuracy.

[0052] In the above example, the plurality of circular filling areas may include a plurality of first inscribed circular filling areas 202 and a plurality of first corner circular filling areas 203 .

[0053] In the disclosed embodiment, after constructing multiple circular filling areas on the rectangular enclosed area, when it is determined based on the distance field that there is a driving obstacle area in the multiple circular filling areas, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle is determined to be an inclusion relationship, so as to characterize that the obstacle is located inside the collision detection area, otherwise, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle is determined to be a non-inclusion relationship, so as to characterize that the obstacle is located outside the collision detection area. Wherein, "determining that there is a driving obstacle area in multiple circular filling areas based on the distance field" may include: for each circular filling area, determining the target center position of the circular filling area in the distance field; querying the target obstacle distance corresponding to the target center position from the distance data set of the distance field; when the target obstacle distance is less than the radius length of the circular filling area, the circular filling area is used as the driving obstacle area, so as to determine that there is a driving obstacle area in the multiple circular filling areas. In addition, it should be noted that in the embodiments of the present disclosure, the aforementioned steps can be performed in a serial manner, that is, according to a preset judgment order, only one circular filled area is judged at a time whether it is a driving obstacle area, so that the collision detection method provided by the embodiments of the present disclosure can be applicable to lower computing power platforms, for example, an automatic valet parking (AVP) platform. The aforementioned steps can also be performed in a parallel manner, that is, it is synchronously judged whether multiple circular filled areas are driving obstacle areas to further improve the collision detection efficiency of the target object.

[0054] Through the above steps including "determining the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle based on the pre-constructed distance field", in the disclosed embodiment, the area occupied by the target object when it travels to the current collision detection point can be represented by a rectangular enclosed area, and then multiple circular filled areas can be constructed on the rectangular enclosed area. Based on the distance field, it can be quickly determined whether there is a driving obstacle area containing obstacles in the multiple circular filled areas, so as to determine the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle, thereby further improving the collision detection efficiency of the target object.

[0055] In some optional implementations, “constructing multiple circular filling areas on the rectangular enclosing area” may include the following steps:

[0056] Constructing a plurality of longitudinal inscribed circle filling areas in the length direction of the rectangular enclosed area;

[0057] Constructing multiple corner inscribed circle filling areas in the four corner areas of the rectangular enclosed area respectively;

[0058] The plurality of circular filling areas include a plurality of longitudinal inscribed circular filling areas and a plurality of corner inscribed circular filling areas.

[0059] Please combine Figure 3 As for the construction of multiple circular filling areas, as another specific example of the embodiment of the present disclosure, multiple longitudinal inscribed circular filling areas 302 can also be constructed in the length direction of the rectangular enclosed area 301, and the diameter length of the longitudinal inscribed circular filling area 302 is equal to the width of the rectangular enclosed area 301, and multiple corner inscribed circular filling areas 303 are respectively constructed in the four corner areas of the rectangular enclosed area 301. In addition, it should be noted that in this example, if the computing power of the platform allows, the number of longitudinal inscribed circular filling areas 302 to be constructed can be increased to make the spacing distance between any two adjacent longitudinal inscribed circular filling areas 302 smaller, and / or the number of corner inscribed circular filling areas 303 to be constructed can be increased to make the spacing distance between any two adjacent corner inscribed circular filling areas 303 smaller, thereby reducing the unfilled area of ​​the rectangular enclosed area 301 to increase the detection accuracy.

[0060] In the above example, the plurality of circular filling areas may include a plurality of longitudinal inscribed circular filling areas 302 and a plurality of corner inscribed circular filling areas 303 .

[0061] Through the above steps of “constructing multiple circular filling areas on a rectangular enclosed area”, in the embodiment of the present disclosure, multiple longitudinal inscribed circular filling areas can be constructed in the length direction of the rectangular enclosed area, and multiple corner inscribed circular filling areas can be constructed in the four corner areas of the rectangular enclosed area respectively, and then the multiple longitudinal inscribed circular filling areas and the multiple corner inscribed circular filling areas are taken together as multiple circular filling areas. Compared with other construction methods of multiple circular filling areas (for example, Figure 2A and Figure 2B As for the construction method shown in the figure, the unfilled area of ​​the rectangular enclosed area can be reduced by using as small a circular filling area as possible, thereby reducing the subsequent data calculation amount of the collision detection method to further improve the collision detection efficiency of the target object.

[0062] In some optional implementations, “constructing a plurality of circular filling areas on the rectangular enclosing area” may also include the following steps:

[0063] Using the half-cut method, multiple circular filling areas are constructed on the rectangular enclosed area.

[0064] In the embodiment of the present disclosure, when constructing multiple circular filling areas on a rectangular enclosed area using the halving method, at least one circular filling area can be constructed each time the area is halved. The at least one circular filling area constitutes a detection layer, and the detection layer number corresponding to the detection layer is positively correlated with the number of halvings corresponding to the construction of the detection layer.

[0065] In the following, the above steps will be described by taking the case where a plurality of circular filling areas include a plurality of longitudinal inscribed circular filling areas and a plurality of corner inscribed circular filling areas as an example.

[0066] (1) Using the half-cut method, multiple longitudinal inscribed circles are constructed in the length direction of the rectangular enclosed area to fill the area.

[0067] Please combine Figure 4AFirst, a longitudinal inscribed circle filling area 4021 can be constructed at the first end of the rectangular enclosed area 401, and a longitudinal inscribed circle filling area 4022 can be constructed at the second end of the rectangular enclosed area 401. The longitudinal inscribed circle filling area 4021 and the longitudinal inscribed circle filling area 4022 form a detection layer, and the detection layer number corresponding to the detection layer can be 1. Thereafter, the longitudinal inscribed circle filling area 4023 is constructed with the middle point A3 of the center position A1 of the longitudinal inscribed circle filling area 4021 and the center position A2 of the longitudinal inscribed circle filling area 4022 as the center position. The longitudinal inscribed circle filling area 4023 forms a detection layer, and the detection layer number corresponding to the detection layer can be 2. Finally, fold in half again, and construct a longitudinal inscribed circle filling area 4024 with the center position A1 of the longitudinal inscribed circle filling area 4021 and the middle point A4 of the center position A3 of the longitudinal inscribed circle filling area 4023 as the center position; construct a longitudinal inscribed circle filling area 4025 with the center position A2 of the longitudinal inscribed circle filling area 4022 and the middle point A5 of the center position A3 of the longitudinal inscribed circle filling area 4023 as the center position. The longitudinal inscribed circle filling area 4024 and the longitudinal inscribed circle filling area 4025 form a detection layer, and the detection layer number corresponding to the detection layer can be 3. If more detection layers need to be constructed on the rectangular enclosed area 401, the same can be applied.

[0068] (2) Using the half-cut method, multiple corner inscribed circle filling areas are constructed in the four corner areas of the rectangular enclosed area.

[0069] Please combine Figure 4BFirst, a corner inscribed circle filling area 4031 can be constructed with a corner point position A6 of the rectangular enclosed area 401 as the center position, and a corner inscribed circle filling area 4032 can be constructed at one end of the rectangular enclosed area 401 close to the corner point position A6 (which can be the same inscribed circle filling area as the longitudinal inscribed circle filling area 4021). The corner inscribed circle filling area 4031 and the corner inscribed circle filling area 4032 form a detection layer, and the detection layer number corresponding to the detection layer can be 1. Thereafter, the corner inscribed circle filling area 4033 is constructed with the center position A6 of the corner inscribed circle filling area 4031 and the middle point A7 of the center position A1 of the corner inscribed circle filling area 4032 as the center position. The corner inscribed circle filling area 4033 forms a detection layer, and the detection layer number corresponding to the detection layer can be 2. Finally, fold in half again, and construct the corner inscribed circle filling area 4034 with the center position A6 of the corner inscribed circle filling area 4031 and the middle point A8 of the center position A7 of the corner inscribed circle filling area 4033 as the center position; construct the corner inscribed circle filling area 4035 with the center position A1 of the corner inscribed circle filling area 4033 and the middle point A9 of the center position A7 of the corner inscribed circle filling area 4033 as the center position. The corner inscribed circle filling area 4034 and the corner inscribed circle filling area 4035 form a detection layer, and the detection layer number corresponding to the detection layer can be 3. If more detection layers related to the corner point position A6 need to be constructed on the rectangular enclosed area 401, the same can be done by analogy.

[0070] It is understandable that in the embodiment of the present disclosure, a detection layer related to the corner point position A10, a detection layer related to the corner point position A12, and a detection layer related to the corner point position A13 can also be constructed on the rectangular enclosed area 401 according to the above construction method, which will not be elaborated here.

[0071] Finally, we can obtain Figure 4C The multiple circular filling areas shown include multiple longitudinal inscribed circular filling areas and multiple corner inscribed circular filling areas.

[0072] Through the above steps of “constructing multiple circular filling areas on a rectangular enclosed area”, in the embodiment of the present disclosure, the half-method can be used to construct multiple circular filling areas on the rectangular enclosed area, so that any two adjacent similar inscribed circular filling areas have an equal spacing distance, thereby improving the collision detection effect of the target object.

[0073] In some optional implementations, “using the half-cut method to construct multiple circular filling areas on the rectangular enclosed area” may include the following steps:

[0074] Determine the current driving scene of the target object;

[0075] Get the half parameter corresponding to the current driving scene;

[0076] The binary method is used to construct multiple circular filling areas on the rectangular enclosed area according to the binary parameters.

[0077] Among them, the driving scenes of the target object may include driving scenes and parking scenes, and the driving scenes may be further subdivided into high-speed driving scenes, low-speed driving scenes, etc.

[0078] The binary parameter is used to control the number of detection layers constructed on the rectangular enclosed area. For example, when the binary parameter is 2, the binary method will be used to construct 2 detection layers on the rectangular enclosed area; when the binary parameter is 3, the binary method will be used to construct 3 detection layers on the rectangular enclosed area.

[0079] In the disclosed embodiment, the binary parameter corresponding to each driving scene can be preset. For example, the binary parameter corresponding to the high-speed driving scene is set to 1; the binary parameter corresponding to the low-speed driving scene is set to 2; and the binary parameter corresponding to the parking scene is set to 3. It should be noted that in the disclosed embodiment, the binary parameter corresponding to each driving scene can be set in combination with the platform computing power and actual business needs, and the disclosed embodiment does not impose specific restrictions on this.

[0080] In addition, in the embodiment of the present disclosure, when the multiple circular filling areas include multiple longitudinal inscribed circle filling areas and multiple corner inscribed circle filling areas, since the longitudinal length of the target object is usually greater than the lateral length, in the same driving scenario, the longitudinal inscribed circle filling areas and the corner inscribed circle filling areas can also be constructed according to different halving parameters. For example, in a high-speed driving scenario, according to the halving parameter "2", a longitudinal inscribed circle filling area is constructed, that is, two detection layers are constructed in the length direction of the rectangular enclosed area, and according to the halving parameter "1", a corner inscribed circle filling area is constructed, that is, one detection layer is constructed in each of the four corner areas of the rectangular enclosed area; in a low-speed driving scenario, according to the halving parameter "3", a longitudinal inscribed circle filling area is constructed, that is, three detection layers are constructed in the length direction of the rectangular enclosed area, and according to the halving parameter "2", a corner inscribed circle filling area is constructed, that is, two detection layers are constructed in each of the four corner areas of the rectangular enclosed area; in a parking scenario, according to the halving parameter "4", a longitudinal inscribed circle filling area is constructed, that is, four detection layers are constructed in the length direction of the rectangular enclosed area, and according to the halving parameter "3", a corner inscribed circle filling area is constructed, that is, three detection layers are constructed in each of the four corner areas of the rectangular enclosed area. Similarly, it should be noted that in the embodiments of the present disclosure, when constructing the longitudinal inscribed circle filling area and the corner inscribed circle filling area in each driving scenario, the halving parameters used can be set specifically in combination with the platform computing power and actual business needs, and the embodiments of the present disclosure do not impose specific restrictions on this.

[0081] Through the above steps of “using the binary method to construct multiple circular filling areas on the rectangular enclosed area”, it can be understood that in the embodiment of the present disclosure, the binary parameters corresponding to each driving scene can be set in advance, so that after determining the current driving scene of the target object, the binary parameters corresponding to the current driving scene can be directly obtained, and then the binary method is used to construct multiple circular filling areas on the rectangular enclosed area according to the binary parameters, thereby reducing the time consumption of constructing multiple circular filling areas, so as to further improve the collision detection efficiency of the target object.

[0082] In addition, in the embodiments of the present disclosure, in the process of constructing multiple circular filling areas on the rectangular enclosed area, the number of detection layers can also be dynamically controlled. For example, in the case where the multiple circular filling areas include multiple longitudinal inscribed circle filling areas and multiple corner inscribed circle filling areas, the half-halving method is used. In the process of constructing multiple circular filling areas on the rectangular enclosed area, the intersection distance between two adjacent similar inscribed circle filling areas and the rectangular enclosed area can be detected each time the half-halving operation is performed. When the intersection distance is less than a preset distance threshold, the next half-halving operation is stopped, and the final number of detection layers is determined. Among them, the preset distance threshold can be set in combination with the platform computing power and actual business needs, and the embodiments of the present disclosure do not impose specific restrictions on this.

[0083] In the disclosed embodiment, each circular filling area has a corresponding detection layer number, and the detection layer number corresponding to each circular filling area is positively correlated with the number of halvings corresponding to the construction of the circular filling area. Among them, the detection layer number corresponding to each circular filling area is the detection layer number corresponding to the detection layer where the circular filling area is located. Based on this, in some optional implementations, "determining the presence of a driving obstacle area containing obstacles in multiple circular filling areas based on the distance field" may include the following steps:

[0084] Selecting at least one target filling area with the same detection layer number from the plurality of circular filling areas in an ascending order of the detection layer numbers;

[0085] For each target filling area, determining a first center position of the target filling area in the distance field;

[0086] Querying a first obstacle distance corresponding to the first circle center position from a distance data set of the distance field;

[0087] When the first obstacle distance is less than the radius length of the target filling area, the target filling area is taken as a driving obstacle area to determine that there is a driving obstacle area in the multiple circular filling areas.

[0088] In the embodiment of the present disclosure, after selecting at least one target filling area with the same detection layer number from multiple circular filling areas in order of the detection layer numbers from low to high, the subsequent steps can be executed in a serial manner, that is, according to the preset judgment order, only one target filling area is judged at a time whether it is a driving obstacle area, so that the collision detection method provided by the embodiment of the present disclosure can be applicable to a lower computing power platform, and the subsequent steps can also be executed in a parallel manner, that is, synchronously judging whether the at least one target filling area is a driving obstacle area, so as to further improve the collision detection efficiency of the target object.

[0089] In addition, in the embodiment of the present disclosure, taking the distance field as ESDF as an example, after determining the first center position of the target filling area in ESDF, the nearest obstacle distance corresponding to the first center position can be queried from the distance data set of ESDF with a time complexity of O(1), as the first obstacle distance, recorded as D1. When the first obstacle distance D1 is less than the radius length R1 of the target filling area, that is, D1<R1, the target filling area is regarded as a driving obstacle area to determine whether there is a driving obstacle area in multiple circular filling areas.

[0090] Since the distribution characteristics of obstacles are usually distributed in large blocks and continuously, therefore, through the above steps of "determining whether there is a driving obstacle area containing obstacles in multiple circular filled areas based on the distance field", in the embodiment of the present disclosure, it is possible to determine whether there is a driving obstacle area containing obstacles in multiple circular filled areas in the order of detection layer numbers from low to high. Then, even on a low computing power platform that cannot synchronously determine whether multiple circular filled areas are driving obstacle areas, the collision detection efficiency of the target object can be relatively improved.

[0091] In some optional implementations, “determining, based on the pre-constructed distance field, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle” may further include the following steps:

[0092] Constructing a circular enclosing area outside the rectangular enclosing area; wherein the collision detection area includes the circular enclosing area;

[0093] When it is determined based on the distance field that the circular enclosing area does not contain an obstacle, the positional relationship is determined to be a non-containment relationship to indicate that the obstacle is located outside the collision detection area, otherwise a step of constructing multiple circular filling areas on the rectangular enclosing area is performed.

[0094] Please combine Figure 5 In the embodiment of the present disclosure, the circular enclosed area 501 can be the minimum circumscribed circle of the rectangular enclosed area 502, that is, the center position B of the circular enclosed area 501 is the center point of the rectangular enclosed area 502 (used to represent the center position of the target object), and the radius length of the circular enclosed area 501 is half the length of the diagonal of the rectangular enclosed area.

[0095] In the embodiment of the present disclosure, after constructing a circular enclosed area outside the rectangular enclosed area, when it is determined based on the distance field that the circular enclosed area does not contain an obstacle, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle is determined to be a non-containment relationship to characterize that the obstacle is located outside the collision detection area. Otherwise, the step of constructing multiple circular filling areas on the rectangular enclosed area is executed.

[0096] By “determining the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle based on the pre-constructed distance field”, in the embodiment of the present disclosure, a circular enclosed area can be constructed outside the rectangular enclosed area, and then based on the distance field, it is determined whether the circular enclosed area contains the obstacle. If it is determined that the circular enclosed area does not contain the obstacle, it is determined that the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle is a non-containment relationship, and subsequent steps are stopped, thereby further improving the collision detection efficiency of the target object.

[0097] In some optional implementations, “determining, based on the distance field, that the circular enclosed area does not contain an obstacle” may include the following steps:

[0098] Determine a second center position of the circular enclosing area in the distance field;

[0099] Querying a second obstacle distance corresponding to the second circle center position from the distance data set of the distance field;

[0100] When the second obstacle distance is greater than the radius of the circular enclosed area, it is determined that the circular enclosed area does not contain an obstacle.

[0101] Taking the distance field as ESDF as an example, after determining the second center position of the circular enclosed area in ESDF, the nearest obstacle distance corresponding to the second center position can be queried from the distance data set of ESDF with a time complexity of O(1), as the second obstacle distance, recorded as D2. When the second obstacle distance D2 is greater than the radius length R2 of the circular enclosed area, that is, D2>R2, it is determined that the circular enclosed area does not contain an obstacle.

[0102] Through the above steps of “determining that no obstacle is contained in the circular enclosed area based on the distance field”, in the embodiment of the present disclosure, after the second center position of the circular enclosed area is determined in the distance field, the second obstacle distance corresponding to the second center position can be quickly queried from the distance data set of the distance field, so that when the second obstacle distance is greater than the radius length of the circular enclosed area, it is determined that no obstacle is contained in the circular enclosed area, thereby further improving the collision detection efficiency of the target object.

[0103] In some optional implementations, “determining a current collision detection point of a target object” may include the following steps:

[0104] When the target object's planned driving path is a straight line path, the current collision detection point is determined from a plurality of sampling points to be tested according to a preset traversal order; wherein the plurality of sampling points to be tested are obtained by sampling the detection points of the planned driving path according to a first sampling interval greater than a conventional sampling threshold;

[0105] And / or, when the target object's planned driving path is a curved path, a current collision detection point is determined from a plurality of sampling points to be tested according to a breadth first search (BFS) algorithm; wherein the plurality of sampling points to be tested are obtained by sampling detection points on the planned driving path according to a second sampling interval.

[0106] Based on the above steps, it can be understood that in the embodiment of the present disclosure, when the driving plan path is a straight path, the detection point sampling of the driving plan path can be performed according to the first sampling interval that is greater than the conventional sampling threshold to obtain multiple sampling points to be tested. Among them, the conventional sampling threshold can be 0.2M. Based on this, in the embodiment of the present disclosure, the value of the first sampling interval L can be: 0.2<L≤Lmax. Among them, Lmax can be the length of the target object, for example, it can be 4.5M. When the first sampling interval L is equal to the length Lmax of the target object, that is, L=Lmax, the overlapping interval between any two adjacent collision detection points is exactly 0. Therefore, when the driving plan path is a straight path, the collision detection efficiency of the target object can be greatly improved.

[0107] After sampling the detection points of the driving plan path according to the first sampling interval and obtaining multiple sampling points to be tested, the current collision detection point can be determined from the multiple sampling points to be tested according to the preset traversal order. As a specific example of an embodiment of the present disclosure, the preset traversal order can be a traversal order from near to far relative to the target object. Based on this, please combine Figure 6 In the embodiment of the present disclosure, it is assumed that the detection point sampling is performed on the driving plan path according to the first sampling interval, and the obtained multiple sampling points to be tested include sampling point C1 to be tested, sampling point C2 to be tested, sampling point C3 to be tested, sampling point C4 to be tested, and sampling point C5 to be tested. Then, according to the preset traversal order, sampling point C1 to be tested, sampling point C2 to be tested, sampling point C3 to be tested, sampling point C4 to be tested, and sampling point C5 to be tested can be used as the current collision detection point in sequence.

[0108] Based on the above steps, it can also be understood that in the embodiment of the present disclosure, when the planned driving path is a curved path, the planned driving path can be sampled for detection points according to the second sampling interval to obtain multiple sampling points to be tested. The second sampling interval can be inversely correlated with the curvature parameter of the planned driving path, that is, the larger the curvature parameter of the planned driving path, the smaller the second sampling interval.

[0109] After sampling the detection points of the driving plan path according to the second sampling interval and obtaining multiple sampling points to be tested, the current collision detection point can be determined from the multiple sampling points to be tested according to the BFS algorithm based on the distribution characteristics of the obstacles. Figure 7 In the embodiment of the present disclosure, it is assumed that the detection point sampling is performed on the driving plan path according to the second sampling interval, and the obtained multiple sampling points to be tested include sampling point D1 to be tested, sampling point D2 to be tested, sampling point D3 to be tested, sampling point D4 to be tested, and sampling point D5 to be tested. Then, according to the preset traversal order, sampling point D1 to be tested, sampling point D5 to be tested, sampling point D3 to be tested, sampling point D2 to be tested, and sampling point D4 to be tested can be used as the current collision detection point in sequence.

[0110] Through the above steps of "determining the current collision detection point of the target object", in the embodiment of the present disclosure, the continuity of the planned driving path and the distribution characteristics of obstacles can be combined. When the planned driving path of the target object is a straight path, the sampling interval can be adaptively increased. When the planned driving path is a curved path, the BFS algorithm can be selected to determine the current collision detection point from multiple sampling points to be tested, thereby further improving the collision detection efficiency of the target object.

[0111] In some optional implementations, the collision detection method provided by the embodiment of the present disclosure may further include the following steps:

[0112] When the collision detection result corresponding to the current collision detection point is no collision risk, determining the next collision detection point from the driving planning path of the target object;

[0113] Get the collision detection result corresponding to the next collision detection point;

[0114] When there is a risk detection point on the planned driving path, the planned driving path is determined to be a risk path; wherein the collision detection result corresponding to the risk detection point is that there is a collision risk.

[0115] As mentioned above, in the embodiment of the present disclosure, when the planned driving path of the target object is a straight path, the next collision detection point can be determined from multiple sampling points to be tested according to a preset traversal order; wherein the multiple sampling points to be tested are obtained by sampling the detection points of the planned driving path according to a first sampling interval that is greater than a conventional sampling threshold; and / or, when the planned driving path of the target object is a curved path, the next collision detection point is determined from multiple sampling points to be tested according to the BFS algorithm; wherein the multiple sampling points to be tested are obtained by sampling the detection points of the planned driving path according to a second sampling interval.

[0116] Thereafter, according to the steps described in step S102 and step S103, the collision detection result corresponding to the next collision detection point is obtained, which is not described in detail in the present embodiment. In the case where there is a risk detection point on the driving plan path, the driving plan path is determined to be a risk path, otherwise the driving plan path is determined to be a safe path. Among them, the collision detection result corresponding to the risk detection point is that there is a collision risk.

[0117] Through the above steps, the collision detection method provided by the embodiment of the present disclosure can also be used to perform collision detection on the planned driving path, thereby increasing the applicable scope of the collision detection method.

[0118] The following will be combined Figure 8 , the complete process of a collision detection method provided by an embodiment of the present disclosure is described.

[0119] The detection points of the planned driving path are sampled to obtain multiple sampling points to be tested.

[0120] Traverse multiple sampling points to be tested to determine the current collision detection point. Specifically, when the target object's planned driving path is a straight path, the current collision detection point can be determined from the multiple sampling points to be tested according to a preset traversal order; when the target object's planned driving path is a curved path, the current collision detection point can be determined from the multiple sampling points to be tested according to a BFS algorithm.

[0121] Determine whether the circular enclosed area contains an obstacle. Specifically, the second center position of the circular enclosed area can be determined in the distance field; the second obstacle distance corresponding to the second center position can be queried from the distance data set of the distance field; if the second obstacle distance is greater than the radius length of the circular enclosed area, it is determined that the circular enclosed area does not contain an obstacle, otherwise it is determined that the circular enclosed area contains an obstacle. The circular enclosed area is the minimum circumscribed circle of the rectangular enclosed area corresponding to the target object when it drives to the current collision detection point.

[0122] When it is determined that the circular enclosed area contains an obstacle, at least one target filling area with the same corresponding detection layer number is selected from the multiple circular filling areas constructed on the rectangular enclosed area in the order of detection layer numbers from low to high; for each target filling area, the first center position of the target filling area is determined in the distance field; the first obstacle distance corresponding to the first center position is queried from the distance data set of the distance field; when the first obstacle distance is less than the radius length of the target filling area, the target filling area is used as a driving obstacle area to determine that there is a driving obstacle area among the multiple circular filling areas, otherwise, the next layer of circular filling areas is continuously detected until the detection layer number reaches the maximum. When the detection layer number reaches the maximum, if the driving obstacle area is still not determined from the multiple circular filling areas, the collision detection result corresponding to the current collision detection point is determined to be no collision risk, that is, the current collision detection point is determined to be a safe detection point, otherwise the collision detection result corresponding to the current collision detection point is determined to be a collision risk, that is, the current collision detection point is determined to be a risk detection point.

[0123] When the current collision detection point is determined to be a safe detection point, continue to detect the next collision detection point until it is determined that multiple collision detection points are all safe detection points, and the driving planned path is determined to be a safe path; when the current collision detection point is determined to be a risk detection point, the driving planned path is determined to be a risky path.

[0124] See also Fig. 9 , which is a schematic diagram of an application scenario of a collision detection method provided in an embodiment of the present disclosure.

[0125] As mentioned above, the collision detection method provided by the embodiment of the present disclosure is applied to an electronic device, wherein the electronic device is intended to represent various forms of digital computers, such as a vehicle computer, or other suitable computers.

[0126] In the embodiment of the present disclosure, the electronic device can be used to perform the collision detection method:

[0127] Determine the current collision detection point of the target object;

[0128] Based on the pre-constructed distance field, determine the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle;

[0129] According to the positional relationship, the collision detection result of the target object at the current collision detection point is obtained.

[0130] It should be noted that in the embodiments of the present disclosure, the electronic device can be arranged in an autonomous driving vehicle.

[0131] In addition, it should be noted that in the embodiments of the present disclosure, Fig. 9The scene diagram shown is only illustrative and not restrictive. Those skilled in the art can Fig. 9 Various obvious changes and / or substitutions are made to the examples, and the obtained technical solutions still fall within the scope of the disclosure of the embodiments of the present disclosure.

[0132] In order to better implement the above collision detection method, the embodiment of the present disclosure further provides a collision detection device 1000, which can be integrated into an electronic device. Fig.10 The structural schematic diagram shown is used to illustrate a collision detection device 1000 provided in the disclosed embodiment.

[0133] The collision detection device 1000 comprises:

[0134] A detection point determination unit 1001 is used to determine a current collision detection point of a target object;

[0135] The detection unit 1002 is used to determine the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle based on the pre-constructed distance field;

[0136] The result acquisition unit 1003 is used to obtain the collision detection result of the target object at the current collision detection point according to the position relationship.

[0137] In some optional implementations, the detection unit 1002 is used to:

[0138] Construct a rectangular enclosing area corresponding to the target object when it drives to the current collision detection point;

[0139] Constructing a plurality of circular filling areas on the rectangular enclosing area; wherein the collision detection area includes the plurality of circular filling areas;

[0140] When it is determined based on the distance field that there is a driving obstacle region containing an obstacle among the plurality of circular filling regions, the positional relationship is determined to be a containing relationship to represent that the obstacle is located inside the collision detection region.

[0141] In some optional implementations, the detection unit 1002 is used to:

[0142] Using the half-cut method, multiple circular filling areas are constructed on the rectangular enclosed area.

[0143] In some optional implementations, the detection unit 1002 is used to:

[0144] Determine the current driving scene of the target object;

[0145] Get the half parameter corresponding to the current driving scene;

[0146] The binary method is used to construct multiple circular filling areas on the rectangular enclosed area according to the binary parameters.

[0147] In some optional implementations, the detection unit 1002 is used to:

[0148] Constructing a plurality of longitudinal inscribed circle filling areas in the length direction of the rectangular enclosed area;

[0149] Constructing multiple corner inscribed circle filling areas in the four corner areas of the rectangular enclosed area respectively;

[0150] The plurality of circular filling areas include a plurality of longitudinal inscribed circular filling areas and a plurality of corner inscribed circular filling areas.

[0151] In some optional implementations, each circular filling area has a corresponding detection layer number, and the detection layer number corresponding to each circular filling area is positively correlated with the number of halvings corresponding to the construction of the circular filling area, and the detection unit 1002 is used to:

[0152] Selecting at least one target filling area with the same detection layer number from the plurality of circular filling areas in an ascending order of the detection layer numbers;

[0153] For each target filling area, determining a first center position of the target filling area in the distance field;

[0154] Querying a first obstacle distance corresponding to the first circle center position from a distance data set of the distance field;

[0155] When the first obstacle distance is less than the radius length of the target filling area, the target filling area is taken as a driving obstacle area to determine that there is a driving obstacle area in the multiple circular filling areas.

[0156] In some optional implementations, the detection unit 1002 is further configured to:

[0157] Constructing a circular enclosing area outside the rectangular enclosing area; wherein the collision detection area includes the circular enclosing area;

[0158] When it is determined based on the distance field that the circular enclosing area does not contain an obstacle, the positional relationship is determined to be a non-containment relationship to indicate that the obstacle is located outside the collision detection area, otherwise a step of constructing multiple circular filling areas on the rectangular enclosing area is performed.

[0159] In some optional implementations, the detection unit 1002 is used to:

[0160] Determine a second center position of the circular enclosing area in the distance field;

[0161] Querying a second obstacle distance corresponding to the second circle center position from the distance data set of the distance field;

[0162] When the second obstacle distance is greater than the radius of the circular enclosed area, it is determined that the circular enclosed area does not contain an obstacle.

[0163] In some optional implementations, the detection point determination unit 1001 is used to:

[0164] When the target object's planned driving path is a straight line path, the current collision detection point is determined from a plurality of sampling points to be tested according to a preset traversal order; wherein the plurality of sampling points to be tested are obtained by sampling the detection points of the planned driving path according to a first sampling interval greater than a conventional sampling threshold.

[0165] And / or, when the target object's planned driving path is a curved path, the current collision detection point is determined from multiple sampling points to be tested according to the BFS algorithm; wherein the multiple sampling points to be tested are obtained by sampling the detection points of the planned driving path according to the second sampling interval.

[0166] In some optional embodiments, the collision detection device further includes a path detection control unit, which is used to:

[0167] When the collision detection result corresponding to the current collision detection point is no collision risk, determining the next collision detection point from the driving planning path of the target object;

[0168] Get the collision detection result corresponding to the next collision detection point;

[0169] When there is a risk detection point on the planned driving path, the planned driving path is determined to be a risk path; wherein the collision detection result corresponding to the risk detection point is that there is a collision risk.

[0170] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can refer to the above collision detection method embodiment, which will not be repeated here.

[0171] The collision detection device provided by the embodiment of the present disclosure can determine the current collision detection point of the target object; based on the pre-constructed distance field, determine the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle; and obtain the collision detection result of the target object at the current collision detection point according to the positional relationship. Since the distance field has a corresponding distance data set for storing the nearest obstacle distance corresponding to each position point in the field, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle can be quickly determined based on the distance field, and then the collision detection result of the target object at the current collision detection point can be obtained according to the positional relationship, thereby improving the collision detection efficiency of the target object.

[0172] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0173] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, an autonomous driving vehicle, a medium and a computer program product.

[0174] Fig.11 A schematic block diagram of an example electronic device 1100 is shown that can be used to implement embodiments of the present disclosure.

[0175] As previously mentioned, in the embodiments of the present disclosure, the electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital processing, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0176] like Fig.11 As shown, the electronic device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 to a random access memory (RAM) 1103. In RAM 1103, various programs and data required for the operation of the electronic device 1100 can also be stored. The computing unit 1101, ROM 1102, and RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0177] Multiple components in the electronic device 1100 are connected to the I / O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disk, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the electronic device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0178] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSP), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1101 performs the various methods and processes described above, such as collision detection methods. For example, in some optional embodiments, the collision detection method may be implemented as a computer software program, which is tangibly contained in a non-transient computer-readable storage medium, such as a storage unit 1108. In some optional embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1100 via the ROM 1102 and / or the communication unit 1109. When the computer program is loaded into RAM 1103 and executed by the computing unit 1101, one or more steps of the collision detection method described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to perform the collision detection method in any other appropriate manner (e.g., by means of firmware).

[0179] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0180] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0181] In the context of the present disclosure, a non-transient computer-readable storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A non-transient computer-readable storage medium may be a machine-readable signal medium or a machine-readable storage medium. A non-transient computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples of non-transient computer-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, erasable programmable read-only memory (EPROM) or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0182] To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having: a display device (e.g., a cathode ray tube (CRT) display or a liquid crystal display (LCD)) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0183] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN), and the Internet.

[0184] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0185] The embodiment of the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the aforementioned collision detection method.

[0186] The embodiment of the present disclosure also provides a computer program product, including a computer program, which implements the aforementioned collision detection method when executed by a processor.

[0187] The electronic device, autonomous driving vehicle, medium and computer program product provided by the embodiments of the present disclosure can determine the current collision detection point of the target object; based on the pre-constructed distance field, determine the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle; and obtain the collision detection result of the target object at the current collision detection point according to the positional relationship. Since the distance field has a corresponding distance data set for storing the nearest obstacle distance corresponding to each position point in the field, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle can be quickly determined based on the distance field, and then the collision detection result of the target object at the current collision detection point can be obtained according to the positional relationship, thereby improving the collision detection efficiency of the target object.

[0188] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in the present disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and this document is not limited here. In addition, in the present disclosure, relational terms such as "first", "second", "third", etc. 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. Furthermore, "multiple" in the present disclosure can be understood as at least two.

[0189] The foregoing specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A collision detection method, comprising: Determine the current collision detection point of the target object; Based on a pre-constructed distance field, determining a positional relationship between a collision detection area corresponding to the target object when the target object travels to the current collision detection point and an obstacle; wherein the distance field has a corresponding distance data set, and the distance data set is used to store the nearest obstacle distance corresponding to each position point in the distance field; Obtaining a collision detection result of the target object at the current collision detection point according to the positional relationship; The collision detection area includes a plurality of circular filled areas; and determining the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle based on the pre-constructed distance field includes: Constructing a rectangular enclosing area corresponding to the target object when it travels to the current collision detection point; determining the current driving scene of the target object; obtaining a binary parameter corresponding to the current driving scene; adopting a binary method, and according to the binary parameter, constructing the plurality of circular filling areas on the rectangular enclosing area; in the process of constructing the plurality of circular filling areas on the rectangular enclosing area by adopting the binary method, each time the binary method is used, at least one circular filling area is constructed, and the at least one circular filling area constitutes a detection layer; the binary parameter is used to control the number of detection layers constructed on the rectangular enclosing area; the circular filling area intersects with the edge of the rectangular enclosing area; When it is determined based on the distance field that there is a driving obstacle area containing the obstacle among the plurality of circular filling areas, the positional relationship is determined to be a containing relationship to represent that the obstacle is located inside the collision detection area.

2. The method according to claim 1, wherein: The step of constructing the plurality of circular filling areas on the rectangular enclosed area comprises: Constructing a plurality of longitudinal inscribed circle filling areas in the length direction of the rectangular enclosed area; Constructing a plurality of corner inscribed circle filling areas in the four corner areas of the rectangular enclosed area respectively; The plurality of circular filling areas include the plurality of longitudinal inscribed circular filling areas and the plurality of corner inscribed circular filling areas.

3. The method according to claim 1, wherein: Each of the circular filling areas has a corresponding detection layer number, and the detection layer number corresponding to each of the circular filling areas is positively correlated with the corresponding halving number when constructing the circular filling area; and determining, based on the distance field, that there is a driving obstacle area containing the obstacle in the plurality of circular filling areas, comprises: Selecting at least one target filling area with the same detection layer number from the plurality of circular filling areas in an ascending order of the detection layer numbers; For each of the target filling areas, determining a first center position of the target filling area in the distance field; Querying a first obstacle distance corresponding to the first circle center position from a distance data set of the distance field; When the first obstacle distance is less than the radius length of the target filling area, the target filling area is used as the driving obstacle area to determine that the driving obstacle area exists in the plurality of circular filling areas.

4. The method according to claim 1, wherein: The collision detection area includes a circular enclosed area; the determining, based on the pre-constructed distance field, the positional relationship between the collision detection area corresponding to the target object when it travels to the current collision detection point and the obstacle also includes: Construct the circular enclosing area outside the rectangular enclosing area; When it is determined based on the distance field that the obstacle is not contained in the circular enclosed area, the positional relationship is determined to be a non-containment relationship to indicate that the obstacle is located outside the collision detection area, otherwise the step of constructing a plurality of circular filling areas on the rectangular enclosed area is performed.

5. The method according to claim 4, wherein: The determining, based on the distance field, that the obstacle is not included in the circular enclosed area comprises: Determining a second center position of the circular enclosed area in the distance field; Querying a second obstacle distance corresponding to the second circle center position from a distance data set of the distance field; When the second obstacle distance is greater than the radius of the circular enclosed area, it is determined that the obstacle is not included in the circular enclosed area.

6. The method according to claim 1, wherein: The determining of the current collision detection point of the target object comprises: When the target object's planned driving path is a straight path, the current collision detection point is determined from a plurality of sampling points to be tested according to a preset traversal order; wherein the plurality of sampling points to be tested are obtained by sampling detection points of the planned driving path according to a first sampling interval greater than a conventional sampling threshold; And / or, when the planned driving path of the target object is a curved path, the current collision detection point is determined from multiple sampling points to be tested according to a breadth-first search algorithm; wherein the multiple sampling points to be tested are obtained by sampling the detection points of the planned driving path according to a second sampling interval.

7. The method according to claim 1 or 6, further comprising: When the collision detection result corresponding to the current collision detection point is no collision risk, determining the next collision detection point on the planned driving path of the target object; Obtaining a collision detection result corresponding to the next collision detection point; In the case where there is a risk detection point on the planned driving path, the planned driving path is determined to be a risk path; wherein the collision detection result corresponding to the risk detection point is that there is a collision risk.

8. A collision detection device, comprising: A detection point determination unit, used to determine a current collision detection point of a target object; A detection unit, configured to determine, based on a pre-constructed distance field, a positional relationship between a collision detection area corresponding to the target object when the target object travels to the current collision detection point and an obstacle; wherein the distance field has a corresponding distance data set, and the distance data set is configured to store the nearest obstacle distance corresponding to each position point in the distance field; A result acquisition unit, configured to obtain a collision detection result of the target object at the current collision detection point according to the position relationship; Wherein, the collision detection area includes a plurality of circular filling areas; and the detection unit is used for: Constructing a rectangular enclosing area corresponding to the target object when it travels to the current collision detection point; Determine the current driving scene of the target object; obtain a binary parameter corresponding to the current driving scene; adopt a binary method and construct the multiple circular filling areas on the rectangular enclosed area according to the binary parameter; in the process of constructing the multiple circular filling areas on the rectangular enclosed area using the binary method, each time the binary method is used, at least one circular filling area is constructed, and the at least one circular filling area constitutes a detection layer; the binary parameter is used to control the number of detection layers constructed on the rectangular enclosed area; the circular filling area intersects with the edge of the rectangular enclosed area; When it is determined based on the distance field that there is a driving obstacle area containing the obstacle among the plurality of circular filling areas, the positional relationship is determined to be a containing relationship to represent that the obstacle is located inside the collision detection area.

9. The device according to claim 8, wherein: The detection unit is used for: Constructing a plurality of longitudinal inscribed circle filling areas in the length direction of the rectangular enclosed area; Constructing a plurality of corner inscribed circle filling areas in the four corner areas of the rectangular enclosed area respectively; The plurality of circular filling areas include the plurality of longitudinal inscribed circular filling areas and the plurality of corner inscribed circular filling areas.

10. The device according to claim 8, wherein: Each of the circular filling areas has a corresponding detection layer number, and the detection layer number corresponding to each of the circular filling areas is positively correlated with the number of halvings corresponding to the construction of the circular filling area; the detection unit is used for: Selecting at least one target filling area with the same detection layer number from the plurality of circular filling areas in an ascending order of the detection layer numbers; For each of the target filling areas, determining a first center position of the target filling area in the distance field; Querying a first obstacle distance corresponding to the first circle center position from a distance data set of the distance field; When the first obstacle distance is less than the radius length of the target filling area, the target filling area is used as the driving obstacle area to determine that the driving obstacle area exists in the plurality of circular filling areas.

11. The device according to claim 8, wherein: The collision detection area includes a circular enclosed area; the detection unit is further used for: Constructing the circular enclosed area outside the rectangular enclosed area; wherein the collision detection area includes the circular enclosed area; When it is determined based on the distance field that the obstacle is not contained in the circular enclosed area, the positional relationship is determined to be a non-containment relationship to indicate that the obstacle is located outside the collision detection area, otherwise the step of constructing a plurality of circular filling areas on the rectangular enclosed area is performed.

12. The device according to claim 11, wherein: The detection unit is used for: Determining a second center position of the circular enclosed area in the distance field; Querying a second obstacle distance corresponding to the second circle center position from a distance data set of the distance field; When the second obstacle distance is greater than the radius of the circular enclosed area, it is determined that the obstacle is not included in the circular enclosed area.

13. The device according to claim 8, wherein: The detection point determination unit is used for: When the target object's planned driving path is a straight path, the current collision detection point is determined from a plurality of sampling points to be tested according to a preset traversal order; wherein the plurality of sampling points to be tested are obtained by sampling detection points of the planned driving path according to a first sampling interval greater than a conventional sampling threshold; And / or, when the planned driving path of the target object is a curved path, the current collision detection point is determined from multiple sampling points to be tested according to a breadth-first search algorithm; wherein the multiple sampling points to be tested are obtained by sampling the detection points of the planned driving path according to a second sampling interval.

14. The device according to claim 8 or 13, further comprising a path detection control unit, configured to: When the collision detection result corresponding to the current collision detection point is no collision risk, determining the next collision detection point on the planned driving path of the target object; Obtaining a collision detection result corresponding to the next collision detection point; In the case where there is a risk detection point on the planned driving path, the planned driving path is determined to be a risk path; wherein the collision detection result corresponding to the risk detection point is that there is a collision risk.

15. An electronic device, comprising: at least one processor; a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 7.

16. An autonomous driving vehicle comprising the electronic device described in claim 15.

17. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.