Construction method of envelope circle and vehicle collision detection method based on envelope circle

By constructing the rear and front envelope circles, and constructing the body envelope circle based on these envelope circles, and adjusting the coverage error, the error problem caused by the expansion of the envelope circle is solved, and the accuracy and calculation efficiency of automobile collision detection are improved.

CN118779989AInactive Publication Date: 2024-10-15CHENGDU TIANFU INVO TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411237210.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing automobile collision detection method based on the envelope circle has large errors due to the excessive expansion of the envelope circle, and cannot accurately detect collision risks.

Method used

By constructing the rear envelope circle and the front envelope circle, and constructing several vehicle body envelope circles based on these envelope circles, the size of the first coverage error is adjusted to adjust the detection accuracy of the envelope circles and reduce the envelope circle coverage of the vehicle model. error and improve detection accuracy.

Benefits of technology

It is possible to improve the detection accuracy of envelope circles, reduce the number of envelope circles, reduce the amount of calculation, and enhance the accuracy of collision detection while maintaining the balance of calculation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779989A_ABST
    Figure CN118779989A_ABST
Patent Text Reader

Abstract

The invention provides an envelope circle construction method and an envelope circle-based vehicle collision detection method, and the construction method comprises the steps: determining a vehicle model; constructing a two-dimensional vehicle body coordinate system according to the vehicle model; under the two-dimensional vehicle body coordinate system, a plurality of enveloping circles are constructed according to the vehicle model, and the method comprises the steps that a vehicle tail enveloping circle and a vehicle head enveloping circle are constructed according to the first coverage error and parameters of the vehicle model; constructing a plurality of vehicle body enveloping circles according to the vehicle tail enveloping circle and the vehicle head enveloping circle; wherein the vehicle tail enveloping circle and the vehicle head enveloping circle both intersect with at least one vehicle long edge of the vehicle model; the first coverage error is a maximum vertical distance from a vehicle length side of the vehicle model to an arc opposite to the vehicle length side in a coverage error region generated by intersection of the envelope circle and the vehicle model; the first coverage error is negatively correlated with the precision of the envelope circle. And in the construction process of the envelope circle, changing the error of covering the vehicle model by the envelope circle by adjusting the size of the first coverage error so as to adjust the detection precision of the envelope circle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile safety, and in particular to a method for constructing an envelope circle and a vehicle collision detection method based on the envelope circle. Background Art

[0002] There are three common two-dimensional collision detection methods for cars: detection based on an envelope circle, detection based on an axis-aligned bounding box, and detection based on an oriented bounding box. In the detection method based on an envelope circle, the car is equivalent to one or more circumscribed circles, and the collision between vehicles is detected by judging whether the circles are tangent or intersecting; in the detection method based on an axis-aligned bounding box, the car is framed by an circumscribed rectangle, and the collision is judged by calculating whether the two rectangular boxes overlap on a two-dimensional plane; in the detection method based on an oriented bounding box, the car is framed by an circumscribed rectangle with a direction, and the collision is judged by judging whether the projections of the rectangular box coordinate points to a certain line overlap.

[0003] In the current detection scenario, a detection method based on an envelope circle is used to determine whether a car collides with an obstacle. For example, a car is simplified into one or three envelope circles, which reduces the workload when calculating the distance between the envelope circle and the obstacle and shortens the calculation time. However, the actual shape of a car is more complex than a circle. When one or three envelope circles are used to cover the car, the area of ​​the envelope circle that expands too much on both sides of the car will include parts that do not belong to the car body into the detection range, resulting in a large error between the envelope circle and the car, and the risk of collision cannot be accurately detected.

[0004] Therefore, how to provide a method to reduce the error between the envelope circle and the car is a technical problem that those skilled in the art need to solve urgently. Summary of the invention

[0005] The present application provides a method for constructing an envelope circle and a vehicle collision detection method based on the envelope circle, so as to reduce the error of the envelope circle covering the vehicle model and improve the detection accuracy of the envelope circle.

[0006] This application provides the following technical solutions: A first aspect provides a method for constructing an envelope circle, comprising: Determine the vehicle model; Construct a two-dimensional vehicle body coordinate system according to the vehicle model; In the two-dimensional vehicle body coordinate system, several envelope circles are constructed according to the vehicle model, including: Constructing a rear envelope circle and a front envelope circle of the vehicle respectively according to the first coverage error and the parameters of the vehicle model; Constructing a plurality of vehicle body envelope circles according to the vehicle rear envelope circle and the vehicle front envelope circle; Among them, the rear envelope circle and the front envelope circle both intersect with at least one vehicle length side of the vehicle model; the first coverage error is the maximum vertical distance from the vehicle length side of the vehicle model to its corresponding arc in the coverage error area generated by the intersection of the envelope circle and the vehicle model; the first coverage error is negatively correlated with the accuracy of the envelope circle.

[0007] Preferably, determining the vehicle model includes: Construct a vehicle rectangular frame according to the vehicle shape; Construct a safety rectangle according to the vehicle rectangle and the preset safety distance; Determine vehicle model parameters according to the safety rectangle and actual vehicle parameters; Generate a vehicle model according to the safety rectangle and vehicle model parameters; Among them, the vehicle model parameters include vehicle length, vehicle width, chamfer length, distance from the center of the rear axle to the rear edge, distance from the center of the front axle to the front edge, and wheelbase.

[0008] Preferably, constructing a two-dimensional vehicle body coordinate system according to the vehicle model includes: Determine the direction from the rear end to the front end of the vehicle model to determine the positive direction of the x-axis, and determine the direction from the right rearview mirror to the left rearview mirror of the vehicle model to determine the positive direction of the y-axis; Determine the origin of the 2D vehicle coordinate system using any of the following methods: Determined by any right angle of the vehicle model; Determined by any axle center of the vehicle model; Determined by any edge of the vehicle model.

[0009] Preferably, the determination is made based on any axle center of the vehicle model, including: The rear axle center of the vehicle model is determined as the origin; wherein the vertical distance from the rear axle center to the vehicle length side of the vehicle model is half of the vehicle width.

[0010] Preferably, constructing a vehicle rear envelope circle according to the first coverage error and parameters of the vehicle model includes: Determine a first radius according to the first coverage error and a vehicle width of the vehicle model; Determine the first circle center according to the first radius and the chamfer length of the vehicle model, the vehicle width, and the distance from the rear axle center to the rear edge; The vehicle rear envelope circle is determined according to the first circle center and the first radius.

[0011] Preferably, constructing a vehicle head envelope circle according to the first coverage error and parameters of the vehicle model includes: determining a second radius according to the first coverage error and a vehicle width of the vehicle model; Determine the second circle center according to the second radius, the chamfer length of the vehicle model, the vehicle width, and the distance from the center of the front axle to the front edge; The vehicle head envelope circle is determined according to the second center and the second radius.

[0012] Preferably, the first center of the circle and the second center of the circle are both located on the x-axis; The first radius and the second radius are equal in size.

[0013] Preferably, a plurality of vehicle body envelope circles are constructed according to the vehicle rear envelope circle and the vehicle front envelope circle, including: The rear envelope circle is translated several times along the positive direction of the x-axis, each time by a preset distance, to construct several body envelope circles, until the construction is completed when the center distance between the body envelope circle and the front envelope circle generated finally is no greater than the preset distance; The preset distance is no greater than the length of the intersection chord between the rear envelope circle and the vehicle length side of the vehicle model.

[0014] Preferably, in a two-dimensional vehicle body coordinate system, a plurality of envelope circles are constructed according to the vehicle model, further comprising: Construct the obstacle envelope circle based on the rear envelope circle of the vehicle; Constructing at least one target vehicle rear sub-envelope circle according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and parameters of the vehicle model; Among them, the obstacle envelope circle and the rear envelope circle are concentric, and the obstacle radius is smaller than the first radius; the radius of the target rear sub-envelope circle is smaller than the first radius; the target rear sub-envelope circle and the vehicle width side of the vehicle model at the rear of the vehicle intersect; the second coverage error is the maximum vertical distance from the vehicle width side of the rear of the vehicle model to the corresponding arc in the coverage error area generated by the intersection of the target rear sub-envelope circle and the vehicle model; the second coverage error is negatively correlated with the accuracy of the envelope circle.

[0015] Specifically, at least one target vehicle rear sub-envelope circle is constructed according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model, including: Determine a third radius according to the second coverage error, the first circle center, and the distance from the rear axle center to the rear edge, and determine a first vehicle rear sub-envelope circle according to the first circle center and the third radius; Compare the obstacle radius and the third radius; If the obstacle radius is smaller than the third radius, the first vehicle rear sub-envelope circle is determined as the target vehicle rear sub-envelope circle.

[0016] Specifically, if the obstacle radius is greater than the third radius, at least one target vehicle rear sub-envelope circle is constructed according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model, and further comprising: Determine a second judgment envelope circle according to the first circle center and the second judgment radius; wherein the second judgment radius is greater than the third radius and less than the first radius, and the difference between the second judgment radius and the third radius meets a preset condition; and the length of the intersection chord of the second judgment envelope circle and the vehicle width side at the rear of the vehicle model is the first chord length; Compare the obstacle radius, the third radius, and the second judgment radius; If the obstacle radius is greater than the third radius and less than the second judgment radius, the first rear sub-envelope circle is translated along the positive direction of the y-axis by a first preset distance to generate a second rear sub-envelope circle, the first rear sub-envelope circle is translated along the negative direction of the y-axis by a first preset distance to generate a third rear sub-envelope circle, and the second rear sub-envelope circle and the third rear sub-envelope circle are determined as target rear sub-envelope circles; wherein the first preset distance is half of the length of the first chord.

[0017] Specifically, at least one target vehicle rear sub-envelope circle is constructed according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model, and further includes: Determine a third judgment envelope circle according to the first circle center and the third judgment radius; wherein the third judgment radius is greater than the second judgment radius and less than the first radius, and the difference between the third judgment radius and the second judgment radius meets a preset condition; the length of the intersection chord of the third judgment envelope circle and the vehicle width side at the rear of the vehicle model is the second chord length; comparing the obstacle radius, the second judgment radius, and the third judgment radius; If the obstacle radius is greater than the second judgment radius and less than the third judgment radius, the first rear end sub-envelope circle is translated along the positive direction of the y-axis by the second preset distance to generate a fourth rear end sub-envelope circle, and the first rear end sub-envelope circle is translated along the negative direction of the y-axis by the second preset distance to generate a fifth rear end sub-envelope circle. The first rear end sub-envelope circle, the fourth rear end sub-envelope circle and the fifth rear end sub-envelope circle are determined as target rear end sub-envelope circles; wherein the second preset distance is one third of the second chord length.

[0018] Specifically, at least one target vehicle rear sub-envelope circle is constructed according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model, and further includes: Determine a fourth judgment envelope circle according to the first circle center and the fourth judgment radius; wherein the fourth judgment radius is greater than the third judgment radius and less than the first radius, and the difference between the fourth judgment radius and the third judgment radius meets a preset condition; the length of the intersection chord of the fourth judgment envelope circle and the vehicle width side at the rear of the vehicle model is the third chord length; comparing the obstacle radius, the third judgment radius, and the fourth judgment radius; If the obstacle radius is greater than the third judgment radius and less than the fourth judgment radius, determine the sixth radius according to the vehicle width, the second coverage error and the third chord length of the vehicle model, calculate the abscissa and ordinate of the sixth circle center according to the sixth radius, the chamfer length of the vehicle model and the second coverage error to determine the sixth circle center, and construct a sixth rear sub-envelope circle according to the sixth circle center and the sixth radius; wherein the sixth rear sub-envelope circle intersects the width side of the rear of the vehicle model and the length side of the vehicle with the left rearview mirror, respectively, and the first coverage error is equal to the second coverage error; The sixth vehicle tail sub-envelope circle is translated three times along the negative direction of the y-axis, each time by the third preset distance, to generate the seventh vehicle tail sub-envelope circle, the eighth vehicle tail sub-envelope circle and the ninth vehicle tail sub-envelope circle respectively, and the sixth vehicle tail sub-envelope circle, the seventh vehicle tail sub-envelope circle, the eighth vehicle tail sub-envelope circle and the ninth vehicle tail sub-envelope circle are determined as the target vehicle tail sub-envelope circles; wherein the third preset distance is one quarter of the length of the third chord.

[0019] Preferably, the sixth vehicle tail sub-envelope circle and the ninth vehicle tail sub-envelope circle are symmetrical along the x-axis.

[0020] A second aspect provides a vehicle collision detection method based on an envelope circle, comprising: Identify obstacles; Determine the collision risk of the vehicle according to the distance from the obstacle to the center of the enveloping circle corresponding to the obstacle and the radius of the enveloping circle; The enveloping circle is determined according to the enveloping circle construction method provided in the first aspect.

[0021] A third aspect provides an electronic device, comprising: a processor and a memory; Instructions are stored in the memory, and the instructions are loaded and executed by the processor to implement the envelope circle construction method provided in the first aspect and / or the envelope circle-based vehicle collision detection method provided in the second aspect.

[0022] A fourth aspect provides a computer-readable storage medium storing a computer program; When the computer program is executed by the processor, the envelope circle construction method provided in the first aspect and / or the envelope circle-based vehicle collision detection method provided in the second aspect are implemented.

[0023] According to the specific embodiments provided in this application, the following technical effects are disclosed: The present application provides a method for constructing an envelope circle and a vehicle collision detection method based on the envelope circle, wherein the construction method includes: determining a vehicle model; constructing a two-dimensional vehicle body coordinate system according to the vehicle model; in the two-dimensional vehicle body coordinate system, constructing several envelope circles according to the vehicle model, including: constructing a rear envelope circle and a front envelope circle according to a first coverage error and parameters of the vehicle model respectively; constructing several body envelope circles according to the rear envelope circle and the front envelope circle; wherein the rear envelope circle and the front envelope circle both intersect with at least one vehicle long side of the vehicle model; the first coverage error is the maximum vertical distance from the vehicle long side of the vehicle model to its relative arc in the coverage error area generated by the intersection of the envelope circle and the vehicle model; the first coverage error is negatively correlated with the accuracy of the envelope circle. In the process of constructing the envelope circle, by adjusting the size of the first coverage error, the error of the envelope circle covering the vehicle model is changed to adjust the detection accuracy of the envelope circle; when the value of the first coverage error increases, although the area of ​​the envelope circle increases, only a few envelope circles are needed to cover the vehicle model, and the number of envelope circles required to be constructed is reduced, which saves the calculation time for constructing the envelope circle, but as the area of ​​the coverage error area increases, the detection accuracy of the envelope circle decreases; when the value of the first coverage error decreases, although the detection accuracy of the envelope circle increases as the area of ​​the coverage error area decreases, due to the decrease in the area of ​​the envelope circle, many envelope circles need to be constructed to cover the vehicle model, and the number of envelope circles required to be constructed increases, resulting in an increase in the amount of calculation for constructing the envelope circle and an increase in the calculation time. The present application can customize the size of the coverage error, and provide a general framework for generating an envelope circle, which can reduce the number of envelope circles as much as possible while improving the detection accuracy of the envelope circle, so that in practical applications, the detection accuracy and calculation time of the envelope circle are well balanced. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 is a general flow chart of the method for constructing an envelope circle provided in an embodiment of the present application; Figure 2 is a schematic diagram of a vehicle rear envelope circle provided in an embodiment of the present application; Figure 3 is a flow chart for determining a vehicle model provided in an embodiment of the present application; Figure 4 is a schematic diagram of a vehicle model provided in an embodiment of the present application; Figure 5is a flow chart of constructing a two-dimensional vehicle body coordinate system provided by an embodiment of the present application; Figure 6 is a flow chart of constructing a vehicle rear envelope circle provided in an embodiment of the present application; Figure 7 It is a schematic diagram of a combination of a rear envelope circle and a front envelope circle provided in an embodiment of the present application; Figure 8 is a flow chart of constructing a vehicle head envelope circle provided in an embodiment of the present application; Fig. 9 is a flow chart of constructing a vehicle body envelope circle provided in an embodiment of the present application; Fig.10 Schematic diagram of a rear envelope circle, a front envelope circle, and a body envelope circle provided in an embodiment of the present application; Fig.11 is a schematic diagram of constructing an envelope circle of a rearview mirror provided in an embodiment of the present application; Fig.12 It is a general flow chart of constructing a target vehicle rear sub-envelope circle provided in an embodiment of the present application; Fig.13 This is a flow chart of a target vehicle rear sub-envelope circle constructed under one situation provided by an embodiment of the present application; Fig.14 is a schematic diagram of a target vehicle rear sub-envelope circle constructed under one situation provided in an embodiment of the present application; Fig.15 is a flow chart of a target vehicle rear sub-envelope circle constructed under another situation provided by an embodiment of the present application; Fig.16 is a schematic diagram of a target vehicle rear sub-envelope circle constructed under another situation provided in an embodiment of the present application; Fig.17 This is a flow chart of a target vehicle rear sub-envelope circle constructed under another situation provided by an embodiment of the present application; Fig.18 is a schematic diagram of a target vehicle rear envelope circle constructed under another situation provided in an embodiment of the present application; Fig.19 This is a flow chart of a target vehicle rear sub-envelope circle constructed under another situation provided by an embodiment of the present application; Fig. 20 is a schematic diagram of a target vehicle rear envelope circle constructed under another situation provided in an embodiment of the present application; Fig.21 is a schematic diagram of a pre-constructed envelope circle in an absolute collision scenario provided in an embodiment of the present application; Fig. 22 is a schematic diagram of a pre-constructed envelope circle in an absolutely collision-free scenario provided in an embodiment of the present application; Fig.23is a schematic diagram of a vehicle collision detection method based on an envelope circle provided in an embodiment of the present application; Fig.24 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the protection scope of the present application.

[0027] As described in the background technology, for example, a car is simplified into one or three enveloping circles, thereby reducing the workload in calculating the distance between the enveloping circle and the obstacle and shortening the calculation time. However, the actual shape of the car is more complicated than a circle. When one or three enveloping circles are used to cover the car, the enveloping circle expands too much on both sides of the car, and parts that do not belong to the car body are included in the detection range, resulting in a large error between the enveloping circle and the car, making it impossible to accurately detect the risk of collision.

[0028] To solve one or more of the above problems, the core of the present application is to provide a method for constructing an envelope circle and a vehicle collision detection method based on the envelope circle, so as to reduce the error of the envelope circle covering the vehicle model and improve the detection accuracy of the envelope circle.

[0029] Example 1 A method for constructing an enveloping circle, such as Figure 1 As shown, including: S10: Determine the vehicle model; S20: constructing a two-dimensional vehicle body coordinate system according to the vehicle model; S30: In a two-dimensional vehicle body coordinate system, construct a plurality of envelope circles according to the vehicle model, including: S40: constructing a rear envelope circle and a front envelope circle respectively according to the first coverage error and the parameters of the vehicle model; wherein the rear envelope circle and the front envelope circle both intersect with at least one vehicle long side of the vehicle model; S50: Constructing several vehicle body envelope circles according to the rear envelope circle and the front envelope circle; wherein the first coverage error is the maximum vertical distance from the vehicle long side of the vehicle model to its corresponding arc in the coverage error area generated by the intersection of the envelope circle and the vehicle model; the first coverage error is negatively correlated with the accuracy of the envelope circle.

[0030] In some embodiments of the present application, the vehicle model can be constructed based on any car shape and parameters, including but not limited to sedans, SUVs, MPVs, sports cars, and trucks.

[0031] In some embodiments of the present application, taking the rear envelope circle as an example, Figure 2As shown, the direction from the rear end to the front end of the vehicle is taken as the positive direction, and the envelope circle of the rear end intersects with the left vehicle length side, the right vehicle length side and the vehicle width side of the rear end of the vehicle model respectively, and has two intersection points with the intersecting sides. In this way, the circle is divided into a coverage area 50 and coverage error areas 20, 30, and 40. The coverage area 50 is the area where the rear envelope circle and the vehicle model intersect. The coverage error areas 20, 30, and 40 are the areas where the rear envelope circle and the vehicle model do not intersect, that is, the complement of the coverage area 50. The first coverage error 10 is the vertical distance from the midpoint of the minor arc to the intersecting chord. When the first coverage error 10 increases, the detection accuracy of the envelope circle is lower, and things that do not belong to the vehicle body may be detected, and the probability of misjudgment is higher. When the first coverage error 10 decreases, the detection accuracy of the envelope circle is higher, and the detection range fits the vehicle body more closely, and the probability of misjudgment is lower. By reducing the first coverage error 10, the area of ​​the coverage error area 20 is reduced, so as to avoid the envelope circle from expanding too much on both sides of the vehicle model, and improve the detection accuracy of the envelope circle.

[0032] In some embodiments of the present application, the first coverage error 10 on the left side of the vehicle model is equal to the first coverage error 10 on the right side of the vehicle, so that the envelope circle and the vehicle model satisfy the symmetry at the same time, avoiding the problem of misjudgment or omission of obstacles due to inconsistent detection ranges on both sides when there are obstacles on both sides of the vehicle in actual situations.

[0033] In some embodiments of the present application, the sizes of the rear envelope circle, the front envelope circle and the body envelope circle are determined based on the vehicle's shape and the parameters of the vehicle model to ensure that the vehicle model is covered as much as possible while constructing fewer envelope circles, thereby reducing the error of the envelope circle covering the car.

[0034] Example 2 Embodiment 2 of the present application provides a specific method for constructing a vehicle model based on Embodiment 1.

[0035] like Figure 3 As shown, S10: determining a vehicle model, including: S100: constructing a vehicle rectangular frame according to the vehicle shape; S110: constructing a safety rectangular frame according to the vehicle rectangular frame and a preset safety distance; S120: Determine vehicle model parameters according to the safety rectangle and actual vehicle parameters; S130: Determine the vehicle model according to the safety rectangle and the vehicle model parameters; Among them, reference Figure 4The vehicle model parameters include vehicle length veh_len, vehicle width veh_wid, chamfer length chamfer_dis, distance from the center of the rear axle to the rear edge veh_lr, distance from the center of the front axle to the front edge veh_lf, and wheelbase wheel_base.

[0036] The vehicle shape is mostly similar to a rectangle, and its long and wide sides have curved arcs. Therefore, a vehicle rectangular frame is used to wrap the vehicle, making the vehicle equivalent to a minimum rectangular unit. The vehicle rectangular frame is further expanded into a safe rectangular frame, which provides safety protection for the construction of the vehicle model. The preset safety distance safe_dis is set according to the actual situation of the vehicle. Since the vehicle is constructed twice, the parameters of the vehicle model are slightly larger than the actual vehicle parameters; the rear axle center and the front axle center correspond to the midpoints of the two rear wheels and the two front wheels of the vehicle respectively; the chamfer refers to the distance from a right angle of the safe rectangular frame to the corresponding arc corner of the vehicle side.

[0037] Example 3 Embodiment 3 of the present application provides a specific method for constructing a two-dimensional vehicle body coordinate system based on Embodiment 2.

[0038] In an optional embodiment of the present application, Figure 5 As shown, S20: constructing a two-dimensional vehicle body coordinate system according to the vehicle model, including: S200: Determine the direction from the rear end to the front end of the vehicle model to determine the positive direction of the x-axis, and determine the direction from the right rearview mirror to the left rearview mirror of the vehicle model to determine the positive direction of the y-axis; Determine the origin of the 2D vehicle coordinate system using any of the following methods: S210: Determine the origin according to any right angle of the vehicle model; S220: Determine the origin according to any axle center of the vehicle model; S230: Determine an origin according to any edge of the vehicle model.

[0039] Among them, the specific method to be selected to construct the coordinate system can be determined according to the actual vehicle and design concept.

[0040] In a specific embodiment of the present application, S220: determining the origin according to any axle center of the vehicle model includes: S2200: Determine the center of the rear axle of the vehicle model as the origin; wherein the vertical distance from the center of the rear axle to the vehicle length side of the vehicle model is half of the vehicle width.

[0041] Among them, the rear axle center is located near the center of gravity of the vehicle, many parameters of the vehicle are related to it, and the vehicle is symmetrical in the left and right directions. Taking it as the origin can simplify the calculation when constructing the envelope circle. In addition, combined with the construction method of the vehicle model provided in the aforementioned embodiment 2, this modeling method combining the vehicle model and the coordinate system has a long history in the engineering field, and many theories and practices are established based on this model.

[0042] Example 4 Embodiment 4 of the present application provides a specific method for constructing a rear envelope circle, a front envelope circle and a body envelope circle based on Embodiment 3.

[0043] like Figure 6 As shown, S40: constructing a vehicle rear envelope circle according to the first coverage error and the parameters of the vehicle model, including: S410: determining a first radius according to the first coverage error and a vehicle width of the vehicle model; S420: determining a first circle center according to the first radius, a chamfer length of the vehicle model, a vehicle width, and a distance from a rear axle center to a rear edge; S430: Determine a rear end envelope circle according to the first center and the first radius.

[0044] Among them, Figure 7 As shown, in order to ensure the symmetry between the rear envelope circle and the vehicle model, the first center of the rear envelope circle is located on the x-axis. The detailed process of constructing the rear envelope circle is provided as follows: The vehicle model is ABCD; The center of the rear envelope circle is O1 (center1_x, center1_y), and the radius is r1; The length of chamfer AG is chamfer_dis; Let the length of vehicle width AD be veh_wid; Then, r1=veh_wid 0.5+accuracy1_dis; center1_x=-veh_lr+ sqrt((r1+chamfer_dis) (r1+chamfer_dis)-veh_wid 0.5 veh_wid 0.5); center1_y=0; In this way, the rear envelope circle is constructed, which intersects with the left vehicle long side, the right vehicle long side and the vehicle width side at the rear of the vehicle, and has two intersection points with each side.

[0045] like Figure 8 As shown, S40: constructing a vehicle head envelope circle according to the first coverage error and the parameters of the vehicle model, including: S440: determining a second radius according to the first coverage error and a vehicle width of the vehicle model; S450: determining a second circle center according to the second radius, a chamfer length of the vehicle model, a vehicle width, and a distance from a front axle center to a front edge; S460: Determine the vehicle head envelope circle according to the second circle center and the second radius.

[0046] Among them, Figure 7 As shown, in order to ensure the symmetry between the front envelope circle and the vehicle model, the second center of the front envelope circle is located on the x-axis. The following is a detailed process of constructing the front envelope circle based on the aforementioned detailed process of constructing the rear envelope circle: The center of the vehicle head envelope circle is O2 (center2_x, center2_y), and the radius is r2; Let the length of chamfer BH be equal to the length of chamfer AG, which is chamfer_dis; Then, r2=veh_wid 0.5+accuracy1_dis; center2_x=veh_lf+wheel_base- sqrt((r2+chamfer_dis) (r2+chamfer_dis)-veh_wid 0.5 veh_wid 0.5); center2_y=0; In this way, the front envelope circle is constructed, which intersects with the left vehicle length side, the right vehicle length side and the vehicle width side at the front of the vehicle, and has two intersection points with each side.

[0047] In a preferred embodiment of the present application, the first radius of the rear envelope circle is equal to the second radius of the front envelope circle, and the rear envelope circle and the front envelope circle are symmetrical along the two central axes of the vehicle model to ensure the consistency of the precision of the rear envelope circle and the front envelope circle.

[0048] like Fig. 9 As shown, S50: constructing a plurality of vehicle body envelope circles according to the vehicle rear envelope circle and the vehicle front envelope circle, including: S500: The rear envelope circle is translated several times along the positive direction of the x-axis, each time by a preset distance, to construct several body envelope circles, until the construction is completed when the distance between the centers of the body envelope circle and the front envelope circle generated finally is no greater than a preset distance; wherein the preset distance is no greater than the length of the intersection chord of the rear envelope circle and the vehicle length side of the vehicle model.

[0049] In some embodiments of the present application, the preset distance is slightly smaller than the length of the intersection chord between the rear envelope circle and the long side of the vehicle, and the coverage error areas of the two envelope circles generated by translation partially overlap. For chips with high computing power, the calculation amount of this partial overlap has little effect on the computing time.

[0050] In some embodiments of the present application, the preset distance is equal to the length of the intersection chord of the rear envelope circle and the long side of the vehicle, and the coverage error areas of the two envelope circles generated by translation do not overlap partially. For chips with average computing power, this method can reduce the amount of calculation and save computing time.

[0051] Among them, when the rear envelope circle and the front envelope circle are of the same size and their centers are both located on the x-axis, the rear envelope circle is translated several times to generate several body envelope circles. Then, all the envelope circles have the same size and their centers are both located on the x-axis, thus ensuring the consistency of the envelope circle accuracy.

[0052] like Fig.10 As shown, the following provides a detailed process of constructing the vehicle body envelope circle following the detailed process of constructing the vehicle head envelope circle mentioned above: The preset distance is the length of the intersection chord EF of the vehicle rear envelope circle and the vehicle long side or the length of the intersection chord IJ of the vehicle front envelope circle and the vehicle long side; Let the coordinates of F be (f_x, f_y); f_x=center1_x+sqrt(r1 r1-(r1-accuracy1_dis) (r1-accuracy1_dis)); f_y=veh_wid 0.5; From this, the center of the first body envelope circle O3 (center3_x, center3_y) is deduced; center3_x=center1_x+ 2 sqrt(r1 r1-(r1-accuracy1_dis) (r1-accuracy1_dis)); center3_y=0; Similarly, the center of the second body envelope circle is O4 (center4_x, center4_y); center4_x=center1_x+ 4 sqrt(r1 r1-(r1-accuracy1_dis) (r1-accuracy1_dis)); center4_y=0; Furthermore, the center O of the nth body envelope circle n+2 (centern+2_x, centern+2_y); Centern+2_x=center1_x+ 2n sqrt(r1 r1-(r1-accuracy1_dis) (r1-accuracy1_dis)); Centern+2_y=0; The body envelope circle and the front envelope circle finally generated intersect at I, and the distance between the center of the circle and the center of the front envelope circle is equal to the length of the intersecting chord EF. At this time, the construction of the body envelope circle has been completed and the vehicle model has been covered by the envelope circle.

[0053] In addition, the construction order of the rear envelope circle and the front envelope circle can be adjusted. Similarly, it is also possible to start from the front envelope circle and translate along the negative direction of the x-axis to generate several body envelope circles. The specific construction order is not limited here.

[0054] In some embodiments of the present application, a method for constructing an envelope circle further includes: determining a rearview mirror of a vehicle model; and constructing a rearview mirror envelope circle according to the rearview mirror. Fig.11 As shown, the detailed process of constructing the rearview mirror envelope is provided below: The distance from the center of the rear axle to the center of the rearview mirror is rear_center_to_rear_view_mirror; The length of the rearview mirror is rear_view_mirror_length. The width is rear_view_mirror_width; The center coordinates of the left rearview mirror envelope circle are (rear_view_mirror_center1_x, rear_view_mirror_center1_y), the center coordinates of the right rearview mirror envelope circle are (rear_view_mirror_center2_x, rear_view_mirror_center2_y), and the radii of the two rearview mirror envelope circles are both rear_view_mirror_radius; rear_view_mirror_radius= max(rear_view_mirror_length, rear_view_mirror_width) / 2; rear_view_mirror_center1_x=rear_view_mirror_center2_x= rear_center_to_rear_view_mirror; rear_view_mirror_center1_y=veh_wid 0.5+rear_view_mirror_radius; rear_view_mirror_center2_y=-veh_wid 0.5-rear_view_mirror_radius; In this way, the envelope circles of the rearview mirrors on the left and right sides of the vehicle model are constructed.

[0055] Among them, whether it is necessary to construct the rearview mirror envelope circle can be determined according to actual design requirements, and the construction order of the rearview mirror envelope circle and the rear, front and body envelope circles can be changed.

[0056] Example 5 For the vehicle body envelope circle, as long as the distance from the obstacle point to the center of the vehicle body envelope circle is less than the radius of the vehicle body envelope circle, the vehicle is determined to be at risk of collision. However, for the rear envelope circle and the front envelope circle, if the distance from the obstacle to the rear envelope circle or the front envelope circle is less than the radius of the rear envelope circle or the front envelope circle, the vehicle may not necessarily collide with the obstacle. The reason is that when designing the envelope circle, the size of the first coverage error on both sides of the vehicle model is given priority, and the size of the second coverage error on the rear side of the vehicle is not considered in detail, resulting in a large area of ​​the coverage error area on the rear side of the rear envelope circle and the front side of the front envelope circle, which will affect the accuracy of the rear envelope circle and the front envelope circle. For example, during collision detection, it is detected through calculation and analysis that the obstacle and the vehicle collide, but in fact there is still a certain distance between the two, and no collision occurs. Therefore, Example 5 of the present application provides an optimization method for the rear envelope circle and the front envelope circle on the basis of Example 4 to improve the detection accuracy of the envelope circle for obstacles at the rear and front of the vehicle.

[0057] In a preferred embodiment of the present application, Fig.12 As shown, S30: constructing a plurality of envelope circles according to the vehicle model in a two-dimensional vehicle body coordinate system, further comprising: S300: constructing an obstacle envelope circle according to the vehicle rear envelope circle; S310: constructing at least one target vehicle rear sub-envelope circle according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and parameters of the vehicle model; Among them, the obstacle envelope circle and the rear envelope circle are concentric, and the obstacle radius is smaller than the first radius; the radius of the target rear sub-envelope circle is smaller than the first radius; the target rear sub-envelope circle and the vehicle width side of the vehicle model at the rear of the vehicle intersect; the second coverage error is the maximum vertical distance from the vehicle width side of the rear of the vehicle model to the corresponding arc in the coverage error area generated by the intersection of the target rear sub-envelope circle and the vehicle model; the second coverage error is negatively correlated with the accuracy of the envelope circle.

[0058] Among them, the obstacle radius is used to indicate the distance of the obstacle (obstacle point) closest to the rear envelope circle of the vehicle, and the obstacle envelope circle is used to indicate that the obstacle point exists on the circumference of the circle and is located within the rear envelope circle of the vehicle; the specific location of the obstacle needs to be analyzed according to specific circumstances.

[0059] In a preferred embodiment of the present application, the second coverage error accuracy2_dis is equal to the first coverage error accuracy1_dis, so that the coverage errors of the rear and front of the vehicle and the coverage errors on both sides of the vehicle body are kept consistent, thereby improving the detection accuracy of the envelope circle.

[0060] Specifically, taking the rear envelope circle as an example, combined with the different positions of obstacles at the rear of the vehicle model, four cases are discussed and several rear sub-envelope circles are constructed.

[0061] In some embodiments of the present application, Fig.13 As shown, S310: constructing at least one target vehicle rear sub-envelope circle according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model, including: S3100: determining a third radius according to the second coverage error, the first circle center, and the distance from the rear axle center to the rear edge, and determining a first vehicle rear subenvelope circle according to the first circle center and the third radius; S3110: Compare the obstacle radius and the third radius; S3120: If the obstacle radius is smaller than the third radius, determining the first vehicle rear sub-envelope circle as the target vehicle rear sub-envelope circle.

[0062] like Fig.14 As shown, the following provides a detailed process of constructing the first vehicle tail sub-envelope circle (dashed line in the figure) and the first judgment envelope circle in the first case: The distance of the nearest obstacle from the center O1 of the rear envelope circle is R; The first vehicle rear sub-envelope circle, the first judgment envelope circle, the obstacle envelope circle and the vehicle rear sub-envelope circle are concentric, and the first vehicle rear sub-envelope circle and the first judgment envelope circle coincide with each other, that is, the third radius of the first vehicle rear sub-envelope circle is equal to the first judgment radius of the first judgment envelope circle; Note the center coordinates of the first vehicle tail envelope circle (first_center1_x, first_center1_y), and the third radius is r p1 ; The first judgment radius r d1 =r p1 ; first_center1_x=center1_x; first_center1_y=0; r p1 =center1_x+veh_lr+accuracy2_dis; It should be noted that the first judgment envelope circle is used to judge the position of the obstacle; When R is less than r d1 , the first rear sub-envelope circle is determined as the target rear sub-envelope circle for detection. In the first case, only one rear sub-envelope circle is constructed. Although the accuracy of a single rear sub-envelope circle is improved by configuring the second coverage error, a single rear sub-envelope circle is not sufficient to cover the entire rear area. If the obstacle point is located in an area of ​​the vehicle model that cannot be covered by the rear sub-envelope circle, the vehicle may have collided in reality but the rear sub-envelope circle has not been detected. Therefore, the present application further provides a method for constructing multiple vehicle sub-envelope circles. While ensuring that the second coverage error is small, the rear area is covered by a plurality of rear sub-envelope circles to achieve more accurate detection of the rear area.

[0063] In some embodiments of the present application, Fig.15 As shown, S310: constructing at least one target vehicle rear sub-envelope circle according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model, and further comprising: S3130: determining a second judgment envelope circle according to the first circle center and the second judgment radius; wherein the second judgment radius is greater than the third radius and less than the first radius, and the difference between the second judgment radius and the third radius meets a preset condition; and the length of the intersection chord of the second judgment envelope circle and the vehicle width side at the rear of the vehicle model is the first chord length; S3140: Compare the obstacle radius, the third radius, and the second judgment radius; S3150: If the obstacle radius is greater than the third radius and less than the second judgment radius, the first rear end sub-envelope circle is translated along the positive direction of the y-axis by a first preset distance to generate a second rear end sub-envelope circle, and the first rear end sub-envelope circle is translated along the negative direction of the y-axis by a first preset distance to generate a third rear end sub-envelope circle, and the second rear end sub-envelope circle and the third rear end sub-envelope circle are determined as target rear end sub-envelope circles; wherein the first preset distance is half of the length of the first chord.

[0064] like Fig.16 As shown, the following provides a detailed process of constructing the second vehicle tail sub-envelope circle, the third vehicle tail sub-envelope circle (dashed line in the figure) and the second judgment envelope circle (dotted line in the figure) in the second case: The coordinates of the center of the second judgment envelope circle are (center1_x, 0), and the radius of the second judgment is r. d2 , and r d1 <r d2 <r1; The length of the intersection chord between the second judgment envelope circle and the width side of the vehicle at the rear of the vehicle model is recorded as chord2_length; Then there is, chord2_length=2 sqrt(r d2 r d2 -(center1_x+veh_lr) (center1_x+veh_lr)); Along the negative direction of the y-axis, from top to bottom, record the center coordinates of the second vehicle tail envelope circle (second_center2_x, second_center2_y), and the radius is r p2 , the center coordinates of the third car tail envelope circle (second_center3_x, second_center3_y), the radius is r p3 ; Then, second_center2_y=center1_y+chord2_length 0.5; second_center3_y=center1_y-chord2_length 0.5; second_center2_x=second_center3_y=center1_x; The second judgment envelope circle is concentric with the rear sub-envelope circle, and passes through the intersection of the second rear sub-envelope circle and the vehicle width side close to the left vehicle length side, and the intersection of the third rear sub-envelope circle and the vehicle width side close to the right vehicle length side. The second judgment radius and the first judgment radius are used to define the range of the obstacle point.

[0065] When R is greater than r d1 and less than r d2 , the second vehicle rear sub-envelope circle and the third vehicle rear sub-envelope circle are determined as the target vehicle rear sub-envelope circle. Similarly, two vehicle rear sub-envelope circles are not enough to cover the entire vehicle rear area. If the obstacle point is located in the area of ​​the vehicle model that cannot be covered by the vehicle rear sub-envelope circle, the vehicle may actually have collided but the vehicle rear sub-envelope circle has not been detected. Therefore, the present application further provides a method for constructing multiple vehicle sub-envelope circles. While ensuring that the second coverage error is small, the vehicle rear area is covered by a plurality of vehicle rear sub-envelope circles to achieve more accurate detection of the vehicle rear area.

[0066] In some embodiments of the present application, Fig.17 As shown, S310: constructing at least one target vehicle rear sub-envelope circle according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model, and further comprising: S3160: determining a third judgment envelope circle according to the first circle center and the third judgment radius; wherein the third judgment radius is greater than the second judgment radius and less than the first radius, and the difference between the third judgment radius and the second judgment radius meets a preset condition; and the length of the intersecting chord between the third judgment envelope circle and the vehicle width side at the rear of the vehicle model is the second chord length; S3170: Compare the obstacle radius, the second judgment radius, and the third judgment radius; S3180: If the obstacle radius is greater than the second judgment radius and less than the third judgment radius, the first rear end sub-envelope circle is translated along the positive direction of the y-axis by the second preset distance to generate a fourth rear end sub-envelope circle, and the first rear end sub-envelope circle is translated along the negative direction of the y-axis by the second preset distance to generate a fifth rear end sub-envelope circle. The first rear end sub-envelope circle, the fourth rear end sub-envelope circle and the fifth rear end sub-envelope circle are determined as target rear end sub-envelope circles; wherein the second preset distance is one third of the second chord length.

[0067] like Fig.18 As shown, the following provides a detailed process of constructing the fourth vehicle tail sub-envelope circle, the fifth parking space sub-envelope circle (dashed line in the figure) and the third judgment envelope circle (dotted line in the figure) in the third case: The coordinates of the center of the third judgment envelope circle are (center1_x, 0), and the radius of the third judgment is r. d3 , and r d2 <r d3 <r1; The length of the intersection chord between the third judgment envelope circle and the width side of the vehicle at the rear of the vehicle model is recorded as chord3_length; Then there is, chord3_length=2 sqrt(r d3 r d3 -(center1_x+veh_lr) (center1_x+veh_lr)); Along the negative direction of the y-axis, from top to bottom, record the center coordinates of the fourth vehicle tail envelope circle (third_center4_x, third_center4_y), and the radius is r p4 , the center coordinates of the fifth car tail envelope circle are (third_center5_x, third_center5_y), and the radius is r p5 ; Then, third_center4_y=center1_y+chord2_length 1 / 3; third_center5_y=center1_y-chord2_length 1 / 3; third_center4_x=third_center5_x=center1_x; The third judgment envelope circle is concentric with the rear sub-envelope circle, and passes through the intersection of the fourth rear sub-envelope circle and the vehicle width side close to the left vehicle length side, and the intersection of the fifth rear sub-envelope circle and the vehicle width side close to the right vehicle length side. The third judgment radius and the second judgment radius are used to define the range of obstacle points.

[0068] When R is greater than r d2 and less than r d3 , the first vehicle rear sub-envelope circle, the fourth vehicle rear sub-envelope circle and the fifth vehicle rear sub-envelope circle are determined as the target vehicle rear sub-envelope circle. Similarly, three vehicle rear sub-envelope circles are not enough to cover the entire vehicle rear area. If the obstacle point is located in the area of ​​the vehicle model that cannot be covered by the vehicle rear sub-envelope circle, the vehicle may actually have collided but the vehicle rear sub-envelope circle has not been detected. Therefore, the present application further provides a method for constructing multiple vehicle sub-envelope circles. While ensuring that the second coverage error is small, the vehicle rear area is covered by a plurality of vehicle rear sub-envelope circles to achieve more accurate detection of the vehicle rear area.

[0069] In some embodiments of the present application, Fig.19As shown, S310: constructing at least one target vehicle rear sub-envelope circle according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model, and further comprising: S3190: determining a fourth judgment envelope circle according to the first circle center and the fourth judgment radius; wherein the fourth judgment radius is greater than the third judgment radius and less than the first radius, and the difference between the fourth judgment radius and the third judgment radius meets a preset condition; and the length of the intersection chord of the fourth judgment envelope circle and the vehicle width side at the rear of the vehicle model is the third chord length; S3200: Compare the obstacle radius, the third judgment radius, and the fourth judgment radius; S3210: If the obstacle radius is greater than the third judgment radius and less than the fourth judgment radius, determine a sixth radius according to the vehicle width of the vehicle model, the second coverage error, and the third chord length; calculate the abscissa and ordinate of the sixth center of the circle according to the sixth radius, the chamfer length of the vehicle model, and the second coverage error to determine the sixth center of the circle; construct a sixth rear sub-envelope circle according to the sixth center of the circle and the sixth radius; wherein the sixth rear sub-envelope circle intersects the width side of the rear of the vehicle model and the length side of the vehicle with the left rearview mirror, respectively, and the first coverage error is equal to the second coverage error; S3220: Translate the sixth rear end sub-envelope circle three times along the negative direction of the y-axis, each time moving the third preset distance, to generate the seventh rear end sub-envelope circle, the eighth rear end sub-envelope circle and the ninth rear end sub-envelope circle respectively, and determine the sixth rear end sub-envelope circle, the seventh rear end sub-envelope circle, the eighth rear end sub-envelope circle and the ninth rear end sub-envelope circle as the target rear end sub-envelope circles; wherein the third preset distance is one quarter of the length of the third chord.

[0070] like Fig. 20 As shown, the following provides a detailed process of constructing the sixth vehicle tail sub-envelope circle, the seventh vehicle tail sub-envelope circle, the eighth vehicle tail sub-envelope circle, the ninth vehicle tail sub-envelope circle (dashed line in the figure) and the fourth judgment envelope circle (dotted line in the figure) in the fourth case: Under the conventional thinking, along the negative direction of the y-axis, from top to bottom, record the sixth center coordinates of the sixth car tail envelope circle (forth_center6_x, forth_center6_y), and the sixth radius is r p6 , the seventh center coordinates of the seventh car tail envelope circle (forth_center7_x, forth_center7_y), the seventh radius is r p7 , the eighth center coordinates of the eighth car tail envelope circle (forth_center8_x, forth_center8_y), the eighth radius is r p8 ; The ninth center coordinates of the ninth car tail envelope circle (forth_center9_x, forth_center9_y), the ninth radius is r p9 ; r p6 =r p7 =r p8 =r p9 ; accuracy1_dis=accuracy2_dis; Let L be half the length of the intersection chord between the single rear envelope circle and the width side of the vehicle. Then we have equation 1: veh_wid=r p6 -accuracy1_dis+r p6 -accuracy1_dis+6 L; At the same time, according to the Pythagorean theorem, we have equation 2: (r p6 -accuracy2_dis) (r p6 -accuracy2_dis)+L L=r p6 r p6 ; Combining the two formulas, we get r p6 =(accuracy2_dis accuracy2_dis+L L) 0.5 / accuracy2_dis; Note the coordinates of A (VehicleCorner_A_x, VehicleCorner_A_y); forth_center6_x=forth_center7_x=forth_center8_x=forth_center9_x= VehicleCorner_A_x+(r p6 -accuracy2_dis); forth_center1_y=VehicleCorner_A_y-(R-accuracy1_dis-L)-L; forth_center2_y=VehicleCorner_A_y-(R-accuracy1_dis-L)-LL 2; forth_center3_y=VehicleCorner_A_y-(R-accuracy1_dis-L)-LL 4; forth_center4_y=VehicleCorner_A_y-(R-accuracy1_dis-L)-LL 6; The coordinates of the center of the fourth judgment envelope circle are (center1_x, 0), and the radius of the fourth judgment is r. d4 , and r d3 <r d4 <r1; In some cases, the value of L is known, and there is no need to establish a set of equations; the length of the intersection chord between the fourth judgment envelope circle and the width side of the vehicle at the rear of the vehicle model is chord4_length; Then there is, chord4_length=2 sqrt(r d4 r d4 -(center1_x+veh_lr) (center1_x+veh_lr)); L=chord4_length 1 / 8; The fourth judgment envelope circle is concentric with the rear sub-envelope circle, and passes through the intersection of the sixth rear sub-envelope circle and the vehicle width side close to the left vehicle length side, and also passes through the intersection of the ninth rear sub-envelope circle and the vehicle width side close to the right vehicle length side. The fourth judgment radius and the third judgment radius are used to define the range of the obstacle point.

[0071] When R is greater than r d3 And when it is less than r1, the sixth rear sub-envelope circle, the seventh rear sub-envelope circle, the eighth rear sub-envelope circle and the ninth rear sub-envelope circle are determined as the target rear sub-envelope circle. The current setting of the four rear sub-envelope circles optimizes the rear envelope circle, reduces the coverage error, and improves the accuracy of the rear sub-envelope circle. For the fourth case, the chamfer of the vehicle model cannot be completely covered. Since there must be a certain distance between the actual vehicle and the right angle point of the vehicle model, the chamfer can be basically ignored and does not need to be covered. If complete coverage is required in some implementation schemes, the value of the coverage error can be appropriately increased so that the chamfer is covered by the envelope circle and the coverage area is increased, but this will reduce the coverage accuracy of the envelope circle.

[0072] In an optional embodiment of the present application, Fig. 20 As shown, the left sub-envelope circle of the vehicle rear and the right sub-envelope circle of the vehicle rear, that is, the sixth vehicle rear sub-envelope circle and the ninth vehicle rear sub-envelope circle are symmetrical along the x-axis to ensure the consistency of the envelope circle accuracy.

[0073] Similarly, the same method is used to construct several sub-envelope circles of the front of the vehicle for the front of the vehicle, which will not be repeated here.

[0074] It should be noted that after the sub-envelope circles of the target vehicle rear end in the four cases are constructed, in the detection application of the envelope circle, it is possible to selectively determine how many sub-envelope circles to use for collision detection based on the approximate position of the obstacle.

[0075] Example 6 In combination with the above embodiments, it can be known that if it is determined whether a vehicle collides with an obstacle, it is necessary to calculate the distances from multiple centers of circles to the obstacle. In fact, for some scenarios, it is not necessary to calculate so many distances from the center of the circle to the obstacle. Therefore, Embodiment 6 of the present application provides a method for pre-dividing the collision scene on the basis of Embodiment 5. The scene is first judged and then a decision is made whether to construct the rear envelope circle, the front envelope circle and the body envelope circle in the above embodiments.

[0076] like Fig.21 As shown, in the absolute collision scenario, the vehicle model is covered with three inscribed envelope circles; along the positive direction of the x-axis, the center coordinates of the first envelope circle are (Z1_x, Z1_y), and the radius is r z1 , the center coordinates of the second enveloping circle are (Z2_x, Z2_y) and the radius is r z2 , the coordinates of the center of the third enveloping circle are (Z3_x, Z3_y) and the radius is r z3 ; r z1 =r z2 =r z3 =veh_wid 0.5; Z1_x=-veh_lr+veh_wid 0.5; Z3_x=wheel_base+veh_lf-veh_wid 0.5; Z2_x=(Z1_x+Z3_x) 0.5; Z1_y=Z2_y=Z3_y=0; In this absolute collision scenario, in a pre-collision detection, if the distance from the obstacle to the center of the inscribed envelope circle is greater than the radius of the envelope circle, it is preliminarily determined that no collision occurs. At this time, a secondary collision detection is required, that is, the envelope circle construction method provided in the above embodiments 1 to 5 is performed to construct the rear envelope circle, the front envelope circle and the body envelope circle to further detect the position of the obstacle, and determine whether the first collision detection is accurate. The final result of whether a collision occurs is determined by the secondary collision detection; in a pre-collision detection, if the distance from the obstacle to the center of the envelope circle is less than the radius of the envelope circle, it is preliminarily determined that a collision occurs. At this time, there is no need to perform a secondary collision detection, and the final result is that a collision occurs.

[0077] like Fig. 22 As shown, in an absolutely collision-free scenario, the vehicle model is completely covered by three circumscribed enveloping circles; the positions and sizes of the three enveloping circles are not fixed and can be designed according to the actual situation of the vehicle to completely envelop the vehicle model.

[0078] In this absolutely no-collision scenario, in a pre-collision detection, if the distance from the obstacle to the center of the circumscribed envelope circle is greater than the radius of the envelope circle, it is preliminarily determined that no collision occurs. At this time, there is no need to continue the secondary collision detection, and the final result is that no collision occurs; in a pre-collision detection, if the distance from the obstacle to the center of the circumscribed envelope circle is less than the radius of the envelope circle, it is preliminarily determined that a collision occurs. At this time, a secondary collision detection is required, that is, the envelope circle construction method provided in the above embodiments 1 to 5 is performed, the rear envelope circle, the front envelope circle and the body envelope circle are constructed to further detect the position of the obstacle, and determine whether the first collision detection is accurate. The final result of whether a collision occurs is determined by the secondary collision detection.

[0079] Example 7 Embodiment 7 of the present application provides a vehicle collision detection method based on an envelope circle, such as Fig.23 As shown, including: S1: Determine obstacles; S2: Determine the collision risk of the vehicle according to the distance from the obstacle to the center of the enveloping circle corresponding to the obstacle and the radius of the enveloping circle; The enveloping circle is determined according to the enveloping circle construction method of any one of Embodiments 1 to 5.

[0080] In some embodiments of the present application, the vehicle collision detection method based on the envelope circle further includes: constructing a distance map based on the distribution of obstacles.

[0081] Among them, the distance map can be directly combined with the vehicle model to distribute the obstacles in the two-dimensional vehicle coordinate system, making it easy to obtain the distance between the obstacle and the center of the envelope circle through coordinate calculation.

[0082] Example 8 Embodiment 8 of the present application provides an electronic device, including a memory and a processor; the memory stores a computer program that can be run on the processor, and when the computer program is executed by the processor, the envelope circle construction method provided in the above embodiments 1 to 5 and / or the envelope circle-based vehicle collision detection method provided in embodiment 7 are executed.

[0083] Among them, Fig.24 As shown, the electronic device of this embodiment is exemplarily shown, which may specifically include a processor 1510, a video display adapter 1511, a disk drive 1512, an input / output interface 1513, a network interface 1514, and a memory 1520. The processor 1510, the video display adapter 1511, the disk drive 1512, the input / output interface 1513, the network interface 1514, and the memory 1520 may be communicatively connected via a communication bus 1530.

[0084] Among them, the processor 1510 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., to execute relevant programs to implement the technical solution provided in this application.

[0085] The memory 1520 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1520 can store an operating system 1521 for controlling the operation of the computer device and a basic input and output system 1522 for controlling the low-level operation of the computer device. In addition, a web browser 1523, a data storage management system 1524, and a device identification information processing system 1525, etc. can also be stored. The above-mentioned device identification information processing system 1525 can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided in the present application is implemented by software or firmware, the relevant program code is stored in the memory 1520 and is called and executed by the processor 1510.

[0086] The input / output interface 1513 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0087] The network interface 1514 is used to connect to a communication module (not shown) to achieve communication interaction between the device and other devices. The communication module can achieve communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0088] The communication bus 1530 comprises a pathway for transmitting information between the various components of the device (eg, the processor 1510 , the video display adapter 1511 , the disk drive 1512 , the input and output interface 1513 , the network interface 1514 , and the memory 1520 ).

[0089] In addition, the device can also obtain information on specific collection conditions from a virtual resource object collection condition information database for use in condition judgment, and so on.

[0090] It should be noted that, although the above device only shows a processor 1510, a video display adapter 1511, a disk drive 1512, an input and output interface 1513, a network interface 1514, a memory 1520, a communication bus 1530, etc., in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include components necessary for implementing the solution of the present application, and does not necessarily include all the components shown in the figure.

[0091] Example 9 Embodiment 9 of the present application also provides a computer-readable storage medium storing a computer program. When the computer program is executed, the envelope circle construction method provided in the above embodiments 1 to 5 and / or the envelope circle-based vehicle collision detection method provided in embodiment 7 are implemented.

[0092] It can be known from the above description of the implementation mode that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention or certain parts of the embodiments.

[0093] The technical solution provided by the present application is described in detail above. The principle and implementation method of the present application are described in detail using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A method for constructing an enveloping circle, characterized in that: include: Determine the vehicle model; Constructing a two-dimensional vehicle body coordinate system according to the vehicle model; In the two-dimensional vehicle body coordinate system, a plurality of envelope circles are constructed according to the vehicle model, including: Constructing a rear envelope circle and a front envelope circle of the vehicle respectively according to the first coverage error and the parameters of the vehicle model; Constructing a plurality of vehicle body envelope circles according to the vehicle rear envelope circle and the vehicle front envelope circle; Among them, the rear envelope circle and the front envelope circle both intersect with at least one vehicle length side of the vehicle model; the first coverage error is the maximum vertical distance from the vehicle length side of the vehicle model to its relative arc in the coverage error area generated by the intersection of the envelope circle and the vehicle model; the first coverage error is negatively correlated with the accuracy of the envelope circle.

2. The method for constructing an envelope circle according to claim 1, characterized in that: The determining of the vehicle model comprises: Construct a vehicle rectangular frame according to the vehicle shape; Constructing a safety rectangular frame according to the vehicle rectangular frame and a preset safety distance; Determine vehicle model parameters according to the safety rectangular frame and actual vehicle parameters; Generate a vehicle model according to the safety rectangular frame and the vehicle model parameters; The vehicle model parameters include vehicle length, vehicle width, chamfer length, distance from the center of the rear axle to the rear edge, distance from the center of the front axle to the front edge, and wheelbase.

3. The method for constructing an envelope circle according to claim 2, characterized in that: The step of constructing a two-dimensional vehicle body coordinate system according to the vehicle model includes: Determine the direction from the rear end to the front end of the vehicle model to determine the positive direction of the x-axis, and determine the direction from the right rearview mirror to the left rearview mirror of the vehicle model to determine the positive direction of the y-axis; Determine the origin of the 2D vehicle coordinate system using any of the following methods: Determined according to any right angle of the vehicle model; Determined according to any axle center of the vehicle model; Determined according to any edge of the vehicle model.

4. The method for constructing an envelope circle according to claim 3, characterized in that: The determining according to any one axle center of the vehicle model comprises: The rear axle center of the vehicle model is determined as the origin; wherein the vertical distance from the rear axle center to the vehicle length side of the vehicle model is half of the vehicle width.

5. The method for constructing an envelope circle according to claim 4, characterized in that: The step of constructing a vehicle rear envelope circle according to the first coverage error and the parameters of the vehicle model includes: Determine a first radius according to a first coverage error and a vehicle width of the vehicle model; Determine a first circle center according to the first radius and the chamfer length, the vehicle width, and the distance from the rear axle center to the rear edge of the vehicle model; A rear envelope circle is determined according to the first center and the first radius.

6. The method for constructing an envelope circle according to claim 5, characterized in that: The step of constructing a vehicle head envelope circle according to the first coverage error and the parameters of the vehicle model includes: determining a second radius according to the first coverage error and a vehicle width of the vehicle model; Determine the second center of the circle according to the second radius and the chamfer length, the vehicle width, and the distance from the center of the front axle to the front edge of the vehicle model; The vehicle head envelope circle is determined according to the second circle center and the second radius.

7. The method for constructing an envelope circle according to claim 6, characterized in that: The first circle center and the second circle center are both located on the x-axis; The first radius and the second radius are equal in size.

8. The method for constructing an envelope circle according to claim 7, characterized in that: The step of constructing a plurality of vehicle body envelope circles according to the vehicle rear envelope circle and the vehicle front envelope circle comprises: The rear envelope circle is translated several times along the positive direction of the x-axis, each time by a preset distance, to construct several body envelope circles, until the construction is completed when the distance between the center of the finally generated body envelope circle and the front envelope circle is no greater than the preset distance; The preset distance is no greater than the length of the intersection chord between the rear envelope circle and the vehicle length side of the vehicle model.

9. The method for constructing an envelope circle according to claim 5, characterized in that: The step of constructing a plurality of envelope circles according to the vehicle model in the two-dimensional vehicle body coordinate system further includes: Constructing an obstacle envelope circle according to the vehicle rear envelope circle; Constructing at least one target vehicle rear sub-envelope circle according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model; Among them, the obstacle envelope circle and the vehicle rear envelope circle are concentric, and the obstacle radius is smaller than the first radius; the radius of the target vehicle rear sub-envelope circle is smaller than the first radius; the target vehicle rear sub-envelope circle and the vehicle width side of the vehicle model at the rear of the vehicle intersect; the second coverage error is the maximum vertical distance from the vehicle width side of the vehicle rear of the vehicle model to its relative arc in the coverage error area generated by the intersection of the target vehicle rear sub-envelope circle and the vehicle model; the second coverage error is negatively correlated with the accuracy of the envelope circle.

10. The method for constructing an envelope circle according to claim 9, characterized in that: The step of constructing at least one target vehicle rear sub-envelope circle according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model includes: Determine a third radius according to the second coverage error, the first circle center, and the distance from the center of the rear axle to the rear edge, and determine a first rear sub-envelope circle according to the first circle center and the third radius; comparing the obstacle radius and the third radius; If the obstacle radius is smaller than the third radius, the first vehicle rear sub-envelope circle is determined as the target vehicle rear sub-envelope circle.

11. The method for constructing an envelope circle according to claim 10, characterized in that: If the obstacle radius is greater than the third radius, constructing at least one target vehicle rear sub-envelope circle according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model further includes: A second judgment envelope circle is determined according to the first circle center and the second judgment radius; wherein the second judgment radius is larger than the third radius and smaller than the first radius, and the difference between the second judgment radius and the third radius meets a preset condition; and the length of the intersecting chord between the second judgment envelope circle and the vehicle width side at the rear of the vehicle model is the first chord length; comparing the obstacle radius, the third radius and the second judgment radius; If the obstacle radius is greater than the third radius and less than the second judgment radius, the first rear end sub-envelope circle is translated along the positive direction of the y-axis by a first preset distance to generate a second rear end sub-envelope circle, the first rear end sub-envelope circle is translated along the negative direction of the y-axis by the first preset distance to generate a third rear end sub-envelope circle, and the second rear end sub-envelope circle and the third rear end sub-envelope circle are determined as target rear end sub-envelope circles; wherein the first preset distance is half of the first chord length.

12. The method for constructing an envelope circle according to claim 11, characterized in that: The step of constructing at least one target vehicle rear sub-envelope circle according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model further includes: Determine a third judgment envelope circle according to the first circle center and the third judgment radius; wherein the third judgment radius is greater than the second judgment radius and less than the first radius, and the difference between the third judgment radius and the second judgment radius meets the preset condition; the length of the intersection chord of the third judgment envelope circle and the vehicle width side at the rear of the vehicle model is the second chord length; comparing the obstacle radius, the second judgment radius, and the third judgment radius; If the obstacle radius is greater than the second judgment radius and less than the third judgment radius, the first rear end sub-envelope circle is translated along the positive direction of the y-axis by the second preset distance to generate a fourth rear end sub-envelope circle, the first rear end sub-envelope circle is translated along the negative direction of the y-axis by the second preset distance to generate a fifth rear end sub-envelope circle, and the first rear end sub-envelope circle, the fourth rear end sub-envelope circle and the fifth rear end sub-envelope circle are determined as target rear end sub-envelope circles; wherein the second preset distance is one third of the second chord length.

13. The method for constructing an envelope circle according to claim 12, characterized in that: The step of constructing at least one target vehicle rear sub-envelope circle according to the obstacle envelope circle, the vehicle rear envelope circle, the second coverage error and the parameters of the vehicle model further includes: Determine a fourth judgment envelope circle according to the first circle center and the fourth judgment radius; wherein the fourth judgment radius is greater than the third judgment radius and less than the first radius, and the difference between the fourth judgment radius and the third judgment radius meets the preset condition; the length of the intersection chord of the fourth judgment envelope circle and the vehicle width side at the rear of the vehicle model is the third chord length; comparing the obstacle radius, the third judgment radius, and the fourth judgment radius; If the obstacle radius is greater than the third judgment radius and less than the fourth judgment radius, a sixth radius is determined according to the vehicle width of the vehicle model, the second coverage error and the third chord length, the abscissa and ordinate of the sixth center of the circle are respectively calculated according to the sixth radius, the chamfer length of the vehicle model and the second coverage error to determine the sixth center of the circle, and a sixth rear sub-envelope circle is constructed according to the sixth center of the circle and the sixth radius; wherein the sixth rear sub-envelope circle intersects with the width side of the rear of the vehicle model and the length side of the vehicle with the left rearview mirror, respectively, and the first coverage error is equal to the second coverage error; The sixth vehicle tail sub-envelope circle is translated three times along the negative direction of the y-axis, each time by a third preset distance, to generate a seventh vehicle tail sub-envelope circle, an eighth vehicle tail sub-envelope circle and a ninth vehicle tail sub-envelope circle respectively, and the sixth vehicle tail sub-envelope circle, the seventh vehicle tail sub-envelope circle, the eighth vehicle tail sub-envelope circle and the ninth vehicle tail sub-envelope circle are determined as target vehicle tail sub-envelope circles; wherein the third preset distance is one quarter of the third chord length.

14. The method for constructing an envelope circle according to claim 13, characterized in that: The sixth vehicle tail sub-envelope circle and the ninth vehicle tail sub-envelope circle are symmetrical along the x-axis.

15. A vehicle collision detection method based on an envelope circle, characterized in that: include: Identify obstacles; Determining the collision risk of the vehicle according to the distance from the obstacle to the center of the envelope circle corresponding to the obstacle and the radius of the envelope circle; Wherein, the envelope circle is determined according to the envelope circle construction method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Collision detection method and device based on distance transformation diagram

    CN111591288A

  • Collision detection method and device, terminal equipment and computer readable storage medium

    CN115617042A

  • Collision detection method and system for automatic parking, vehicle, medium and program

    CN118306388A

Cited By

  • Vehicle distance processing method and device, equipment and storage medium

    CN119953361A