Vehicle following distance planning method, device, vehicle and storage medium
By calculating the relative speed and distance of vehicles, classifying risk levels and adjusting vehicle speed and following distance, the problem of insufficient following distance planning for autonomous driving in complex urban scenarios is solved, safety and comfort are improved, and unnecessary accidents are avoided. Heavy braking.
Patent Information
- Application Number
- CN202211023671.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-08-22
AI Technical Summary
Existing autonomous driving technology lacks adequate following distance planning in complex urban scenarios, leading to comfort and safety problems, especially when following a stationary target at a long distance at a high relative speed or when the vehicle in front cuts into the own lane. Unnecessary heavy braking is prone to occur, affecting the driving experience.
By obtaining the relative distance and speed between the current vehicle and the target vehicle, the collision time is calculated, the risk level is divided according to the collision time, and the speed and position error weight coefficients of the dynamic planning are matched, and the vehicle speed and following distance are adjusted in real time to meet the preset comfort sexual and safety conditions.
It effectively avoids unnecessary heavy braking, improves the comfort and safety of car following scenes in urban areas, takes into account the generality and specificity of the scene, and improves the driving experience.
Smart Images

Figure CN115416655B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent driving technology, and in particular to a method, device, vehicle and storage medium for planning a vehicle-to-vehicle distance. Background Art
[0002] In recent years, the autonomous driving function has attracted a lot of attention from the outside world, especially from major OEMs. At the current stage, OEMs have completed the mass production of driving assistance functions such as ACC (Adaptive Cruise Control) / IACC (Intergrated Adapted Cruise Control) based on millimeter-wave radar and front-view cameras. The market response is good and the market prospects for autonomous driving are promising. Digging deeper into the technology, the basic principle of autonomous driving acceleration planning is mainly based on real-time road information and vehicle surrounding target information to perform real-time target acceleration planning to ensure that the vehicle can complete autonomous driving functions such as following the vehicle and cruising on the actual road.
[0003] In the related art, the calculation is mainly performed based on the following time distance gear position TimeGap set by the user, Target_FollowDistance=Velocity*TimeGap*Index.
[0004] However, the current longitudinal speed planning of autonomous driving in urban areas is mainly based on dynamic programming and quadratic programming algorithms to plan the following speed. This algorithm is relatively dependent on a reasonable target following distance value. Therefore, the traditional method of calculating the target following distance based solely on the current vehicle speed and the user's gear setting has relatively large limitations in complex urban scenarios. For example, in the scenario of following a stationary target at a long distance with a relatively high relative speed, due to the close set target distance, the following vehicle brakes too late, missing the best braking opportunity, resulting in heavy braking in the later stage, and insufficient sense of security; or the front vehicle cuts into the lane of the vehicle, but the speed of the front vehicle is comparable to that of the vehicle. If it is still controlled according to the set distance, it will lead to unnecessary heavy braking. These situations will reduce the comfort and safety of the urban following scene. Summary of the invention
[0005] The present application provides a vehicle following distance planning method, device, vehicle and storage medium to solve the problem that the related technology cannot meet the complex urban road conditions and lacks comfort and safety under the setting of a fixed following distance target value, avoids unnecessary heavy braking, and takes into account the generalization and specificity of the scene.
[0006] The first aspect of the present application provides a method for planning a vehicle following distance, comprising the following steps: obtaining the relative distance and relative speed between a current vehicle and a target vehicle, and calculating a collision time between the two based on a ratio of the relative distance and the relative speed; determining an actual following danger level of the current vehicle based on the collision time, and matching an optimal speed error weight coefficient and an optimal position error weight coefficient of a dynamic plan of the current vehicle based on the actual following danger level; and adjusting the speed and position of the current vehicle based on the optimal speed error weight coefficient and the optimal position error weight coefficient until a preset optimal condition is met, and planning the following distance of the current vehicle based on the current speed of the vehicle, a preset following time gear and a preset following distance correction coefficient.
[0007] Based on the above technical means, the present application can solve the problem that the related technology cannot meet the complex urban road conditions and lacks comfort and safety when setting a fixed following distance target value, avoid unnecessary heavy braking, and take into account the generalization and specificity of the scene.
[0008] Optionally, in some embodiments, obtaining the relative distance and relative speed between the current vehicle and the target vehicle includes: determining the relative distance between the current vehicle and the target vehicle according to the predicted trajectory position of the target vehicle based on a preset target position time graph; obtaining the current speed of the current vehicle and the current speed of the target vehicle, and calculating the relative speed between the current vehicle and the target vehicle based on the current speed of the current vehicle and the current speed of the target vehicle.
[0009] Based on the above technical means, the present application can solve the problem that traditional autonomous driving in urban following scenarios cannot meet the complex urban road conditions and lacks comfort and safety under the setting of a fixed following distance target value, and divides the safety level according to relative speed and relative distance.
[0010] Optionally, in some embodiments, determining the actual following danger level of the current vehicle based on the collision time includes: when the collision time is less than a first preset threshold, determining the actual following danger level as a first danger level; when the collision time is greater than or equal to the first preset threshold, and the collision time is less than a second preset threshold, determining the actual following danger level as a second danger level; when the collision time is greater than or equal to the second preset threshold, and the collision time is less than a third preset threshold, determining the actual following danger level as a third danger level; when the collision time is greater than the third preset threshold, determining the actual following danger level as a safety level; wherein the danger degree of the first danger level is greater than the danger degree of the second level, the danger degree of the second level is greater than the danger degree of the third level, and the danger degree of the third level is greater than the danger degree of the safety level.
[0011] According to the above technical means, the present application can divide the safety level according to the relative speed and relative distance, and match the braking mode according to the safety level, taking into account the generalization and particularity of the scene, and improving the driving experience.
[0012] Optionally, in some embodiments, matching the optimal speed error weight coefficient and the optimal position error weight coefficient of the dynamic planning of the current vehicle according to the actual following danger level includes: when the following danger level is the safety level, determining the optimal speed error weight coefficient according to the difference between the current vehicle speed and the preset target vehicle speed; when the following danger level is the third danger level, reducing the accelerator pedal opening of the current vehicle to a first preset opening, and determining the optimal position error weight coefficient according to the first preset opening; when the following danger level is the second danger level, reducing the accelerator pedal opening of the current vehicle to a second preset opening, and determining the optimal position error weight coefficient according to the second preset opening, so that the vehicle enters a state of preparation for deceleration, wherein the second preset opening is smaller than the first preset opening; when the following danger level is the first danger level, determining the optimal speed error weight coefficient and the optimal position error weight coefficient according to the minimum following distance between the current vehicle and the target vehicle.
[0013] According to the above technical means, the present application can divide the safety level according to the relative speed and relative distance, and match the braking mode according to the safety level, taking into account the generalization and particularity of the scene, and improving the driving experience.
[0014] Optionally, in some embodiments, the following distance of the current vehicle is planned according to the current speed of the vehicle, the preset following time gap gear and the preset following distance correction coefficient, including: based on a preset following distance calculation formula, the following distance of the current vehicle is planned according to the current speed of the vehicle, the preset following time gap gear and the preset following distance correction coefficient, wherein the preset following distance calculation formula is: Target_FollowDistance=Velocity*TimeGap*SituationIndex; wherein Target_FollowDistance is the following distance of the current vehicle, Velocity is the current speed, TimeGap is the preset following time gap gear, and SituationIndex is the following distance correction coefficient. According to the above technical means, the present application can take into account the generalization and particularity of the scene and improve the driving experience.
[0015] Optionally, in some embodiments, the preset following distance correction coefficient is determined by a following scenario of the current vehicle.
[0016] Based on the above technical means, the present application can avoid unnecessary heavy braking to improve comfort, taking into account the generalization and particularity of the scenarios.
[0017] A second aspect of the present application provides a device for planning a vehicle following distance, including: an acquisition module, used to acquire the relative distance and relative speed between a current vehicle and a target vehicle, and calculate the collision time between the two according to the ratio of the relative distance and the relative speed; a matching module, used to determine the actual following danger level of the current vehicle according to the collision time, and match the optimal speed error weight coefficient and the optimal position error weight coefficient of the dynamic planning of the current vehicle according to the actual following danger level; and a planning module, used to adjust the speed and position of the current vehicle according to the optimal speed error weight coefficient and the optimal position error weight coefficient until a preset optimal condition is met, and plan the following distance of the current vehicle according to the current speed of the vehicle, the preset following time gear and the preset following distance correction coefficient.
[0018] Optionally, in some embodiments, the acquisition module is also used to: determine the relative distance between the current vehicle and the target vehicle according to the predicted trajectory position of the target vehicle based on a preset target position time graph; obtain the current speed of the current vehicle and the current speed of the target vehicle, and calculate the relative speed between the current vehicle and the target vehicle based on the current speed of the current vehicle and the current speed of the target vehicle.
[0019] Optionally, in some embodiments, the matching module is also used to: determine that the actual following vehicle danger level is a first danger level when the collision time is less than a first preset threshold; determine that the actual following vehicle danger level is a second danger level when the collision time is greater than or equal to the first preset threshold and the collision time is less than a second preset threshold; determine that the actual following vehicle danger level is a third danger level when the collision time is greater than or equal to the second preset threshold and the collision time is less than a third preset threshold; determine that the actual following vehicle danger level is a safety level when the collision time is greater than the third preset threshold; wherein the danger degree of the first danger level is greater than the danger degree of the second level, the danger degree of the second level is greater than the danger degree of the third level, and the danger degree of the third level is greater than the danger degree of the safety level.
[0020] Optionally, in some embodiments, the matching module is also used to: when the following vehicle danger level is the safety level, determine the optimal speed error weight coefficient according to the difference between the current vehicle speed and the preset target vehicle speed; when the following vehicle danger level is the third danger level, reduce the accelerator pedal opening of the current vehicle to a first preset opening, and determine the optimal position error weight coefficient according to the first preset opening; when the following vehicle danger level is the second danger level, reduce the accelerator pedal opening of the current vehicle to a second preset opening, and determine the optimal position error weight coefficient according to the second preset opening, so that the vehicle enters a state of preparation for deceleration, wherein the second preset opening is smaller than the first preset opening; when the following vehicle danger level is the first danger level, determine the optimal speed error weight coefficient and the optimal position error weight coefficient according to the minimum following distance between the current vehicle and the target vehicle.
[0021] Optionally, in some embodiments, the planning module is further used to: plan the following distance of the current vehicle according to the current speed of the vehicle, the preset following time gap gear and the preset following distance correction coefficient, including: based on a preset following distance calculation formula, plan the following distance of the current vehicle according to the current speed of the vehicle, the preset following time gap gear and the preset following distance correction coefficient, wherein the preset following distance calculation formula is: Target_FollowDistance=Velocity*TimeGap*SituationIndex; wherein Target_FollowDistance is the following distance of the current vehicle, Velocity is the current speed, TimeGap is the preset following time gap gear, and SituationIndex is the following distance correction coefficient. Optionally, in some embodiments, the preset following distance correction coefficient is determined by the following scenario of the current vehicle.
[0022] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle following distance planning method as described in the above embodiment.
[0023] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the vehicle following distance planning method as described in the above embodiment.
[0024] Therefore, by calculating the collision time TTC (Time-To-Collision) according to the current speed and acceleration of the vehicle, the relative distance of the target in front, the speed and acceleration of the front vehicle, and combining the real-time TTC value, and grading the TTC according to the degree of danger, the target following distance is dynamically adjusted in real time, and the speed error weight coefficient VelErrIndex / position error weight coefficient PosErrIndex is dynamically planned, so as to generalize the scene and extract common features. In the case of high relative speed and high degree of danger, a longer following distance is planned, braking is performed in advance and a larger deceleration value is output. In the case of low degree of danger and low relative speed, a closer following distance is planned, resulting in less braking. Therefore, the problem that the relevant technology cannot meet the complex urban road conditions and the comfort and safety are insufficient under the fixed following distance target value setting is solved, unnecessary heavy braking is avoided, and the generalization and particularity of the scene are taken into account.
[0025] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0027] Figure 1 A flowchart of a vehicle following distance planning method provided according to an embodiment of the present application;
[0028] Figure 2 A schematic diagram of a planning framework for a vehicle following distance provided according to an embodiment of the present application;
[0029] Figure 3 A schematic diagram of the following vehicle distance in a specific scenario provided according to an embodiment of the present application;
[0030] Figure 4 A block diagram of a vehicle following distance planning device provided according to an embodiment of the present application;
[0031] Figure 5 A schematic diagram of a vehicle provided according to an embodiment of the present application.
[0032] Explanation of the reference numerals: 10 - a vehicle following distance planning device, 100 - an acquisition module, 200 - a matching module and 300 - a planning module. DETAILED DESCRIPTION
[0033] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0034] The following describes the vehicle following distance planning method, device, vehicle and storage medium of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the related technologies mentioned in the above background technology cannot meet the complex urban road conditions and lack comfort and safety under the fixed following distance target value setting, the present application provides a vehicle following distance planning method. In this method, the collision time TTC is calculated according to the current vehicle speed and acceleration of the vehicle, the relative distance of the front target, the speed and acceleration of the front vehicle, and the real-time TTC value is combined, and the TTC is graded according to the degree of danger. The target following distance is dynamically adjusted in real time, and the speed error weight coefficient VelErrIndex / position error weight coefficient PosErrIndex is dynamically planned, so as to generalize the scene and extract common features. In the case of high relative speed and high degree of danger, a longer following distance is planned, braking is performed in advance and a larger deceleration value is output. When the danger level is low and the relative speed is low, a closer following distance is planned, resulting in less braking. This solves the problem that related technologies cannot meet the needs of complex urban road conditions and lack comfort and safety when setting a fixed following distance target value. It avoids unnecessary heavy braking and takes into account the generalization and specificity of the scenarios.
[0035] Specifically, Figure 1 A flow chart of a vehicle following distance planning method provided in an embodiment of the present application.
[0036] like Figure 1 As shown, the vehicle following distance planning method includes the following steps:
[0037] In step S101, the relative distance and relative speed between the current vehicle and the target vehicle are obtained, and the collision time between the two is calculated according to the ratio of the relative distance and the relative speed.
[0038] Optionally, in some embodiments, the relative distance and relative speed between the current vehicle and the target vehicle are obtained, including: based on a preset target position time graph, determining the relative distance between the current vehicle and the target vehicle according to the predicted trajectory position of the target vehicle; obtaining the current speed of the current vehicle and the current speed of the target vehicle, and calculating the relative speed between the current vehicle and the target vehicle based on the current speed of the current vehicle and the current speed of the target vehicle.
[0039] Specifically, combined Figure 2As shown, the embodiment of the present application can first calculate the collision time TTC according to the current vehicle speed, acceleration, relative distance of the front target, speed and acceleration of the front vehicle. Specifically, firstly, in combination with the predicted target trajectory position in the future, the minimum distance Distance_Min3s within the first 3 seconds is selected in the ST diagram (target position time diagram) (the target prediction confidence in this time range is relatively high), which can more accurately calculate the collision time, and then calculate the collision time according to the current vehicle speed and the target vehicle speed, the relative distance divided by the relative speed (TTC=Distance_Min3s / Velocity_relative).
[0040] In step S102, the actual following vehicle danger level of the current vehicle is determined according to the collision time, and the optimal speed error weight coefficient and the optimal position error weight coefficient of the dynamic programming of the current vehicle are matched according to the actual following vehicle danger level.
[0041] Optionally, in some embodiments, the actual following danger level of the current vehicle is determined based on the collision time, including: when the collision time is less than a first preset threshold, determining the actual following danger level as the first danger level; when the collision time is greater than or equal to the first preset threshold, and the collision time is less than the second preset threshold, determining the actual following danger level as the second danger level; when the collision time is greater than or equal to the second preset threshold, and the collision time is less than the third preset threshold, determining the actual following danger level as the third danger level; when the collision time is greater than the third preset threshold, determining the actual following danger level as the safety level; wherein the danger level of the first danger level is greater than the danger level of the second level, the danger level of the second level is greater than the danger level of the third level, and the danger level of the third level is greater than the danger level of the safety level.
[0042] Optionally, in some embodiments, the optimal speed error weight coefficient and the optimal position error weight coefficient of the current vehicle dynamic planning are matched according to the actual following vehicle danger level, including: when the following vehicle danger level is the safety level, the optimal speed error weight coefficient is determined according to the difference between the current vehicle speed and the preset target vehicle speed; when the following vehicle danger level is the third danger level, the accelerator pedal opening of the current vehicle is reduced to a first preset opening, and the optimal position error weight coefficient is determined according to the first preset opening; when the following vehicle danger level is the second danger level, the accelerator pedal opening of the current vehicle is reduced to a second preset opening, and the optimal position error weight coefficient is determined according to the second preset opening, so that the vehicle enters a state of preparation for deceleration, wherein the second preset opening is smaller than the first preset opening; when the following vehicle danger level is the first danger level, the optimal speed error weight coefficient and the optimal position error weight coefficient are determined according to the minimum following distance between the current vehicle and the target vehicle.
[0043] In this embodiment of the present application, the first preset threshold can be set to TTC_Level3, the second preset threshold can be set to TTC_Level2, and the third preset threshold can be set to TTC_Level1.
[0044] Specifically, in the embodiment of the present application, according to the data-driven thinking mode, combined with the data analysis and statistics of dangerous situations in typical scenarios, the calculated collision time is segmented to correspond to different danger levels. A higher granularity division can make the corresponding control method more refined, the parameter granularity is also higher, and the final control effect will be smoother and more comfortable. In the embodiment of the present application, the safety level can be divided into the following four situations: a safer following situation (ie, the safety level), corresponding to the collision time judgment TTC>TTC_Level1; a general dangerous scenario (ie, the third danger level), corresponding to the collision time TTC_Level1>TTC>TTC_Level2; a relatively dangerous situation (ie, the second danger level), corresponding to the collision time TTC_Level2>TTC>TTC_Level3; a very dangerous situation (ie, the first danger level), corresponding to the collision time TTC_Level3>TTC.
[0045] According to the classification of each danger level, different dynamic programming weight parameters and control strategies are adopted.
[0046] Safe following scenario: When TTC>TTC_Level1, it is a relatively safe following state, and relatively comfortable acceleration and deceleration are adopted to meet the set speed, and the speed error weight coefficient is strengthened;
[0047] General dangerous scenarios: TTC_Level1>TTC>TTC_Level2, release the throttle appropriately, match the appropriate calibration parameters Jerk weight, position error weight PosErr_Weight, etc., to meet the comfort and deceleration state preparation;
[0048] In more dangerous scenarios: TTC_Level2>TTC>TTC_Level3, slow down appropriately and increase the position error weight to maintain a safer following distance.
[0049] Extremely dangerous scenarios: TTC_Level3>TTC>TTC_Level4, with very strong deceleration and minimal position control error to ensure that the dynamically planned speed instructions meet the safety requirements in extremely dangerous situations.
[0050] It should be noted that in order to avoid repeated jumps in parameter weights at the boundaries of the danger level TTC segments, a segmented dead zone setting can also be performed in the application embodiment, and a certain dead zone interval (such as 0.5s) can be appropriately set.
[0051] In order to ensure that the target position instruction is followed as accurately as possible and the safe distance is met, the embodiment of the present application can select the corresponding optimization algorithm weights at different TTC gears. When the following distance is far and TTC is in a larger gear, the speed error weight is selected to account for the main part, while the distance error control weight accounts for the secondary part; when the following distance is close and TTC is in a smaller gear (the situation is more dangerous), the speed error weight accounts for the secondary part, while the distance error control weight accounts for the main part.
[0052] In step S103, the speed and position of the current vehicle are adjusted according to the optimal speed error weight coefficient and the optimal position error weight coefficient until the preset optimal conditions are met, and the following distance of the current vehicle is planned according to the current speed of the vehicle, the preset following time gear and the preset following distance correction coefficient.
[0053] Optionally, in some embodiments, the following distance of the current vehicle is planned according to the current speed of the vehicle, a preset following time gap gear and a preset following distance correction coefficient, including: based on a preset following distance calculation formula, the following distance of the current vehicle is planned according to the current speed of the vehicle, a preset following time gap gear and a preset following distance correction coefficient, wherein the preset following distance calculation formula is: Target_FollowDistance=Velocity*TimeGap*SituationIndex; wherein, Target_FollowDistance is the following distance of the current vehicle, Velocity is the current speed, TimeGap is the preset following time gap gear, and SituationIndex is the following distance correction coefficient.
[0054] Optionally, in some embodiments, the preset following distance correction coefficient is determined by the following scenario of the current vehicle.
[0055] Specifically, in an embodiment of the present application, after determining the actual following danger level of the current vehicle, it is necessary to dynamically adjust the following distance according to the danger level. Specifically, first, according to the following time gap gear set by the user, the target following distance is calculated: Target_FollowDistance = Velocity*TimeGap*SituationIndex, wherein SituationIndex is the following distance correction coefficient, which is used to make certain corrections to the following distance. This value determines the target distance of the actual vehicle following in a steady state.
[0056] Then, the embodiment of the present application needs to combine scene recognition to calculate the optimal target following distance correction coefficient SituationIndex in a specific scene to improve the comfort and experience of the specific scene, such as Figure 3 As shown in Figure 2, the following strategies in different scenarios.
[0057] Scenario 1: The vehicle next to you cuts in and then accelerates away. In this scenario, SituationIndex is appropriately reduced so that the actual vehicle does not experience unnecessary excessive deceleration due to the front vehicle cutting in. When the front vehicle accelerates away, the actual vehicle can return to normal driving speed more quickly.
[0058] Scenario 2: In the scenario of following a vehicle in congested road conditions, in order to follow the target vehicle faster, it is necessary to reduce the following target distance to achieve the purpose of fast following; or in the scenario of active cutin in congested road conditions, in order to merge and actively cutin in heavy traffic, the planned target following distance is appropriately corrected (reducing the correction factor SituationIndex) to complete active cutin in congested conditions.
[0059] According to the vehicle following distance planning method proposed in the embodiment of the present application, the collision time TTC is calculated according to the current speed and acceleration of the vehicle, the relative distance of the front target, the speed and acceleration of the front vehicle, and combined with the real-time TTC value, and the TTC is graded according to the degree of danger, the target following distance is dynamically adjusted in real time, and the speed error weight coefficient VelErrIndex / position error weight coefficient PosErrIndex is dynamically planned, so as to generalize the scene and extract common features. In the case of high relative speed and high degree of danger, a longer following distance is planned, braking is performed in advance and a larger deceleration value is output. In the case of low degree of danger and low relative speed, a closer following distance is planned, so as to produce less braking. Therefore, the problem that the related technology cannot meet the complex urban road conditions and the comfort and safety are insufficient under the fixed following distance target value setting is solved, unnecessary heavy braking is avoided, and the generalization and particularity of the scene are taken into account.
[0060] Next, a vehicle following distance planning device proposed in an embodiment of the present application will be described with reference to the accompanying drawings.
[0061] Figure 4 It is a block diagram of a vehicle following distance planning device according to an embodiment of the present application.
[0062] like Figure 4 As shown, the vehicle following distance planning device 10 includes: an acquisition module 100, a matching module 200 and a planning module 300.
[0063] Among them, the acquisition module 100 is used to obtain the relative distance and relative speed between the current vehicle and the target vehicle, and calculate the collision time between the two according to the ratio of the relative distance and the relative speed; the matching module 200 is used to determine the actual following danger level of the current vehicle according to the collision time, and match the optimal speed error weight coefficient and the optimal position error weight coefficient of the dynamic planning of the current vehicle according to the actual following danger level; and the planning module 300 is used to adjust the speed and position of the current vehicle according to the optimal speed error weight coefficient and the optimal position error weight coefficient until the preset optimal conditions are met, and plan the following distance of the current vehicle according to the current speed of the vehicle, the preset following time gear and the preset following distance correction coefficient.
[0064] Optionally, in some embodiments, the acquisition module 100 is also used to: determine the relative distance between the current vehicle and the target vehicle according to the predicted trajectory position of the target vehicle based on a preset target position time graph; obtain the current speed of the current vehicle and the current speed of the target vehicle, and calculate the relative speed between the current vehicle and the target vehicle based on the current speed of the current vehicle and the current speed of the target vehicle.
[0065] Optionally, in some embodiments, the matching module 200 is also used to: determine the actual following vehicle danger level as the first danger level when the collision time is less than a first preset threshold; determine the actual following vehicle danger level as the second danger level when the collision time is greater than or equal to the first preset threshold and the collision time is less than the second preset threshold; determine the actual following vehicle danger level as the third danger level when the collision time is greater than or equal to the second preset threshold and the collision time is less than the third preset threshold; determine the actual following vehicle danger level as the safety level when the collision time is greater than the third preset threshold; wherein the danger level of the first danger level is greater than the danger level of the second level, the danger level of the second level is greater than the danger level of the third level, and the danger level of the third level is greater than the danger level of the safety level.
[0066] Optionally, in some embodiments, the matching module 200 is also used to: when the following vehicle danger level is a safety level, determine the optimal speed error weight coefficient according to the difference between the current vehicle speed and the preset target vehicle speed; when the following vehicle danger level is a third danger level, reduce the accelerator pedal opening of the current vehicle to a first preset opening, and determine the optimal position error weight coefficient according to the first preset opening; when the following vehicle danger level is a second danger level, reduce the accelerator pedal opening of the current vehicle to a second preset opening, and determine the optimal position error weight coefficient according to the second preset opening, so that the vehicle enters a ready state for deceleration, wherein the second preset opening is smaller than the first preset opening; when the following vehicle danger level is the first danger level, determine the optimal speed error weight coefficient and the optimal position error weight coefficient according to the minimum following distance between the current vehicle and the target vehicle.
[0067] Optionally, in some embodiments, the planning module 300 is also used to: plan the following distance of the current vehicle according to the current speed of the vehicle, a preset following time gap gear and a preset following distance correction coefficient, including: based on a preset following distance calculation formula, planning the following distance of the current vehicle according to the current speed of the vehicle, a preset following time gap gear and a preset following distance correction coefficient, wherein the preset following distance calculation formula is: Target_FollowDistance=Velocity*TimeGap*SituationIndex; wherein, Target_FollowDistance is the following distance of the current vehicle, Velocity is the current speed, TimeGap is the preset following time gap gear, and SituationIndex is the following distance correction coefficient.
[0068] Optionally, in some embodiments, the preset following distance correction coefficient is determined by the following scenario of the current vehicle.
[0069] It should be noted that the above explanation of the embodiment of the vehicle following distance planning method is also applicable to the vehicle following distance planning device of this embodiment, and will not be repeated here.
[0070] According to the vehicle following distance planning device proposed in the embodiment of the present application, the collision time TTC is calculated according to the current vehicle speed and acceleration, the relative distance of the front target, the speed and acceleration of the front vehicle, and combined with the real-time TTC value, and the TTC is graded according to the degree of danger, the target following distance is dynamically adjusted in real time, and the speed error weight coefficient VelErrIndex / position error weight coefficient PosErrIndex is dynamically planned, so as to generalize the scene and extract common features. In the case of high relative speed and high degree of danger, a longer following distance is planned, braking is performed in advance and a larger deceleration value is output. In the case of low degree of danger and low relative speed, a closer following distance is planned, so as to produce less braking. Therefore, the problem that the related technology cannot meet the complex urban road conditions and the comfort and safety are insufficient under the fixed following distance target value setting is solved, unnecessary heavy braking is avoided, and the generalization and particularity of the scene are taken into account.
[0071] Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0072] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .
[0073] When the processor 502 executes the program, the vehicle following distance planning method provided in the above embodiment is implemented.
[0074] Furthermore, the vehicle also includes:
[0075] The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0076] The memory 501 is used to store computer programs that can be executed on the processor 502 .
[0077] The memory 501 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0078] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0079] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0080] The processor 502 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0081] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned vehicle following distance planning method.
[0082] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0083] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0084] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0085] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0086] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0087] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for planning a vehicle following distance, characterized in that: The following steps are involved: Obtaining the relative distance and relative speed between the current vehicle and the target vehicle, and calculating the collision time between the two according to the ratio of the relative distance and the relative speed; Determining an actual following vehicle danger level of the current vehicle according to the collision time, and matching an optimal speed error weight coefficient and an optimal position error weight coefficient of dynamic programming of the current vehicle according to the actual following vehicle danger level; as well as The speed and position of the current vehicle are adjusted according to the optimal speed error weight coefficient and the optimal position error weight coefficient until a preset optimal condition is met, and the following distance of the current vehicle is planned according to the current speed of the vehicle, a preset following time distance gear and a preset following distance correction coefficient.
2. The method according to claim 1, characterized in that The obtaining of the relative distance and relative speed between the current vehicle and the target vehicle comprises: Based on a preset target position time graph, determining a relative distance between the current vehicle and the target vehicle according to the predicted trajectory position of the target vehicle; The current speed of the current vehicle and the current speed of the target vehicle are obtained, and the relative speed between the current vehicle and the target vehicle is calculated according to the current speed of the current vehicle and the current speed of the target vehicle.
3. The method according to claim 1, characterized in that The determining the actual following vehicle danger level of the current vehicle according to the collision time includes: When the collision time is less than a first preset threshold, determining the actual following vehicle danger level as a first danger level; When the collision time is greater than or equal to the first preset threshold and the collision time is less than a second preset threshold, determining the actual following vehicle danger level to be a second danger level; When the collision time is greater than or equal to the second preset threshold, and the collision time is less than a third preset threshold, determining that the actual following vehicle danger level is a third danger level; When the collision time is greater than the third preset threshold, determining the actual following vehicle danger level to be a safety level; The risk level of the first risk level is greater than that of the second risk level, the risk level of the second risk level is greater than that of the third risk level, and the risk level of the third risk level is greater than that of the safety level.
4. The method according to claim 3, characterized in that: The optimal speed error weight coefficient and the optimal position error weight coefficient of the current vehicle dynamic planning are matched according to the actual vehicle following danger level, including: When the following vehicle danger level is the safety level, determining the optimal speed error weight coefficient according to the difference between the current vehicle speed and the preset target vehicle speed; When the following vehicle danger level is the third danger level, reducing the accelerator pedal opening of the current vehicle to a first preset opening, and determining the optimal position error weight coefficient according to the first preset opening; When the following vehicle danger level is the second danger level, reducing the accelerator pedal opening of the current vehicle to a second preset opening, and determining the optimal position error weight coefficient according to the second preset opening, so that the vehicle enters a ready-to-decelerate state, wherein the second preset opening is smaller than the first preset opening; When the following vehicle danger level is the first danger level, the optimal speed error weight coefficient and the optimal position error weight coefficient are determined according to the minimum following vehicle distance between the current vehicle and the target vehicle.
5. The method according to any one of claims 1 to 4, characterized in that: The planning of the following distance of the current vehicle according to the current vehicle speed, the preset following distance gear and the preset following distance correction coefficient includes: Based on a preset following distance calculation formula, the following distance of the current vehicle is planned according to the current vehicle speed, the preset following distance gear and the preset following distance correction coefficient, wherein the preset following distance calculation formula is: Target_FollowDistance = Velocity * TimeGap * SituationIndex; Among them, Target_FollowDistance is the following distance of the current vehicle, Velocity is the current vehicle speed, TimeGap is the preset following time gap gear, and SituationIndex is the following distance correction coefficient.
6. The method according to claim 5, characterized in that The preset following distance correction coefficient is determined by the following scenario of the current vehicle.
7. A vehicle following distance planning device, characterized in that: include: An acquisition module, used to acquire the relative distance and relative speed between the current vehicle and the target vehicle, and calculate the collision time between the two according to the ratio of the relative distance and the relative speed; A matching module, used to determine the actual following vehicle danger level of the current vehicle according to the collision time, and match the optimal speed error weight coefficient and the optimal position error weight coefficient of the dynamic programming of the current vehicle according to the actual following vehicle danger level; as well as A planning module is used to adjust the speed and position of the current vehicle according to the optimal speed error weight coefficient and the optimal position error weight coefficient until a preset optimal condition is met, and to plan the following distance of the current vehicle according to the current speed of the vehicle, a preset following time distance gear and a preset following distance correction coefficient.
8. The device according to claim 7, characterized in that The acquisition module is further used for: Based on a preset target position time graph, determining a relative distance between the current vehicle and the target vehicle according to the predicted trajectory position of the target vehicle; The current speed of the current vehicle and the current speed of the target vehicle are obtained, and the relative speed between the current vehicle and the target vehicle is calculated according to the current speed of the current vehicle and the current speed of the target vehicle.
9. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle following distance planning method as described in any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the vehicle following distance planning method as described in any one of claims 1-6.
