Vehicle travel control method based on minimum risk state, medium, and vehicle
By determining and implementing reasonable lateral lane change or longitudinal deceleration control strategies based on trigger signals of minimum risk states in autonomous vehicles, the problem of insufficient safety performance in existing technologies is solved, and the driving safety of vehicles in abnormal situations is improved.
Patent Information
- Application Number
- CN202611206507.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-10
- Publication Date
- 2026-12-01
AI Technical Summary
Existing autonomous vehicles lack adequate minimum risk state control in abnormal situations such as critical sensor failures, resulting in insufficient safety performance, especially in special scenarios where there is a risk of serious accidents such as collisions and deviations from the road surface.
Based on the trigger signal of the minimum risk state, determine whether the vehicle has triggered the minimum risk state, and take reasonable lateral lane change, longitudinal deceleration or longitudinal parking control strategies according to whether there are lateral lane change conditions or near the ramp area, including lateral lane change trajectory planning and longitudinal deceleration control.
It enables vehicles to safely transition to a state of minimum risk under abnormal conditions, improves driving safety, avoids safety hazards caused by a single braking method, and is applicable to more scenarios and working conditions.
Smart Images

Figure CN123190846A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of vehicle technology, and in particular relates to a vehicle driving control method, medium and vehicle based on minimum risk state. Background Technology
[0002] When autonomous vehicles experience abnormal situations such as critical sensor malfunctions during operation, they need to safely transition from a dynamic driving state to a minimum risk condition (MRC) to prevent serious accidents such as collisions or deviations from the road from continuing to drive under uncontrollable conditions. However, current technologies are not yet perfect in their vehicle control design for the minimum risk condition. For example, they lack consideration for special scenarios, and their braking methods are relatively simple, resulting in insufficient safety performance.
[0003] Therefore, this application proposes a vehicle driving control method based on minimum risk state that can solve the above problems. Summary of the Invention
[0004] The embodiments of this application provide a vehicle driving control method, medium, and vehicle based on a minimum risk state, which can solve the problem of insufficient safety in existing control methods.
[0005] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0006] According to one aspect of the embodiments of this application, a vehicle driving control method based on a minimum risk state is provided, the method comprising: Based on the trigger signal of the minimum risk state, it is determined whether the vehicle has triggered the minimum risk state; the trigger signal is used to characterize the abnormal situation of the vehicle. If it is determined that the vehicle has triggered the minimum risk state, then it is determined whether there is a target lane that meets the conditions for lateral lane change. If the target lane exists, the lateral lane-changing trajectory of the vehicle is determined based on the vehicle's current position and the vehicle's target position in the target lane, and the vehicle is controlled to drive to the parking position using the lateral lane-changing trajectory. If the target lane does not exist, the vehicle is determined to be in the near-ramp area based on whether the vehicle is within a first preset distance range of the ramp. When the vehicle is in the near-ramp area, the vehicle is controlled to decelerate longitudinally, and when the vehicle is not in the near-ramp area, the vehicle is controlled to park longitudinally.
[0007] In some embodiments of this application, the trigger signal is generated when at least one of the following abnormal conditions is detected: a preset sensor failure in the vehicle, loss of vehicle positioning signal, abnormality of the vehicle perception system, and abnormal vehicle dynamics state; the trigger signal based on the minimum risk state determines whether the vehicle has triggered the minimum risk state, including: Determine whether the trigger signal is currently received. If so, increment the trigger signal once to obtain the incremented value of the trigger signal. Otherwise, set the incremented value of the trigger signal to zero. If the accumulated value of the current trigger signal is greater than or equal to the first threshold, then the vehicle is determined to have triggered the minimum risk state, and the minimum value of the first threshold is two times.
[0008] In some embodiments of this application, determining whether a target lane exists that satisfies the lateral lane change conditions includes: If an obstacle is found within a second preset distance range of the vehicle and no manual operation command is received, determine in the map whether there is a target lane that meets the lateral lane change conditions; wherein, the lateral lane change conditions include belonging to a lane in the map, belonging to a non-contact lane, belonging to a non-emergency lane, belonging to a motor vehicle lane, belonging to a non-congested lane, and the vehicle navigation function and vehicle speed control function being normal.
[0009] In some embodiments of this application, determining the lateral lane-changing trajectory of the vehicle based on its current position and its target position in the target lane includes: The current position and target position of the vehicle are determined in a preset coordinate system, wherein the target position is within the target lane; wherein the preset coordinate system is established with the reference line of the lane where the vehicle is located as the vertical axis and the direction perpendicular to the reference line as the horizontal axis; Using the x-coordinate of the current position, the lateral acceleration of the current position being zero, the x-coordinate of the target position, and the lateral acceleration of the target position being zero as boundary conditions, the auxiliary variables of a pre-set fifth-degree polynomial are solved; the fifth-degree polynomial is an equation that obtains the x-coordinate based on the ordinate. The x-coordinate of the current position is used as the zero-degree coefficient of the fifth-degree polynomial, the first-degree coefficient of the fifth-degree polynomial is set to zero, the quadratic coefficient of the fifth-degree polynomial is obtained based on the lateral acceleration of the current position, and the cubic, quartic, and quintic coefficients of the fifth-degree polynomial are obtained based on the auxiliary variable. Substituting the zero-degree term coefficient, the first-degree term coefficient, the second-degree term coefficient, the third-degree term coefficient, the fourth-degree term coefficient, and the fifth-degree term coefficient into the fifth-degree polynomial yields the lateral lane change trajectory.
[0010] In some embodiments of this application, determining whether a vehicle is in a near-ramp area based on whether the vehicle is within a first preset distance range of the ramp includes: Obtain the shortest distance between the vehicle and the ramp, and calculate the braking distance of the vehicle based on the vehicle's deceleration under minimum risk conditions and the vehicle's current speed; Based on the shortest distance and the braking distance, the stopping distance from the vehicle's parking point to the ramp is obtained; If the stopping distance is within the third preset distance range, or if the current distance of the vehicle from the ramp is within the fourth preset distance range and the sum of the current distance and the braking distance is within the third preset distance range, then it is determined that the vehicle is in the near ramp area; The current distance away is obtained as follows: if the shortest distance is within the fifth preset distance range, the current distance away is obtained based on the distance away at the previous moment and the displacement increment between the current moment and the previous moment; if the shortest distance is not within the fifth preset distance range, the current distance away is determined to be zero.
[0011] In some embodiments of this application, controlling the longitudinal deceleration of the vehicle includes: Determine the initial acceleration of the vehicle when it enters the longitudinal deceleration, and obtain the real-time acceleration of the vehicle based on the initial acceleration and the preset jerk. The travel time from the real-time acceleration change to the target acceleration is obtained, where the maximum and minimum values of the target acceleration are related to the gear of the vehicle, and the maximum and minimum values of the preset acceleration are also related to the gear of the vehicle. Based on the travel time and the initial speed of the vehicle when it enters the longitudinal deceleration phase, a candidate speed of the vehicle is obtained; The maximum value between the preset speed limit of the ramp and the candidate speed is used as the minimum driving speed of the vehicle to control the longitudinal deceleration of the vehicle, and the vehicle deceleration is controlled by constant acceleration during the longitudinal deceleration process.
[0012] In some embodiments of this application, controlling the longitudinal deceleration of the vehicle further includes: Based on the initial acceleration of the longitudinal deceleration, the initial speed of the longitudinal deceleration, the constant acceleration of the longitudinal deceleration, and the minimum travel speed, determine the first target speed at each moment during the longitudinal deceleration process; The first weight coefficient of the first target speed is obtained by multiplying the conventional weight and the first adjustment factor, and the longitudinal deceleration of the vehicle is controlled based on the first weight coefficient and the first target speed; wherein, the value of the conventional weight is 0 to 1, and the value of the first adjustment factor is 1. The control of the vehicle's longitudinal parking includes: Based on the initial acceleration of the longitudinal parking, the initial velocity of the longitudinal parking, the constant acceleration of the longitudinal parking, and the parking velocity, the second target velocity at each moment during the longitudinal parking process is determined; The second weighting coefficient of the second target speed is obtained by multiplying the conventional weight and the second adjustment factor. The vehicle is controlled to park longitudinally based on the second weighting coefficient and the second target speed. The value of the second adjustment factor is as follows: when the initial speed of the vehicle when entering the longitudinal parking is within the first preset speed range, the value of the second adjustment factor is 0; when the initial speed of the vehicle when entering the longitudinal parking is not within the first preset speed range, the value of the second adjustment factor is less than 1.
[0013] In some embodiments of this application, controlling the vehicle to drive to parking using the lateral lane-changing trajectory, or controlling the vehicle to park longitudinally, includes: Determine whether the current speed of the vehicle is within the second preset speed range. If it is, increment the number of times the vehicle has stopped by one. Otherwise, set the number of times the vehicle has stopped to zero. If the number of times the vehicle remains stationary exceeds the second threshold, then a request is initiated to instruct the electronic parking brake of the vehicle to be engaged. If the electronic parking brake has been engaged or is being engaged, then the number of times the electronic parking brake has been used is counted. If the number of applications exceeds the third threshold, it is determined that a request is initiated to instruct the release of the vehicle's electronic parking brake.
[0014] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein at least one piece of program code is stored therein, the at least one piece of program code being loaded and executed by a processor to implement the method described above.
[0015] According to one aspect of the embodiments of this application, a vehicle is provided, the vehicle including one or more processors and one or more memories, the one or more memories storing at least one piece of program code, the at least one piece of program code being loaded and executed by the one or more processors to implement the method as described above.
[0016] Based on the above solution, the technical solution provided in this application has at least the following advantages and advancements: This application determines whether a vehicle has triggered a minimum risk state based on a trigger signal of the minimum risk state. The trigger signal is used to characterize an abnormal situation of the vehicle. If it is determined that the vehicle has triggered a minimum risk state, it determines whether there is a target lane that meets the conditions for lateral lane change. If there is a target lane, it determines the lateral lane change trajectory of the vehicle based on the vehicle's current position and the vehicle's target position in the target lane, and controls the vehicle to drive to parking based on the lateral lane change trajectory. If there is no target lane, it determines whether the vehicle is in the near-ramp area based on whether the vehicle is within a first preset distance range of the ramp, and controls the vehicle to decelerate longitudinally when the vehicle is in the near-ramp area, and controls the vehicle to park longitudinally when the vehicle is not in the near-ramp area.
[0017] This application determines whether a vehicle has triggered a minimum risk state, and when such a state is triggered, it adopts different braking or control methods for different special scenarios, including lateral lane change scenarios where there is a target lane that meets the conditions for lateral lane change, and longitudinal deceleration or parking scenarios where there is no target lane that meets the conditions for lateral lane change. Specifically, for longitudinal deceleration or parking, it further specifies longitudinal deceleration near the ramp and longitudinal parking in non-ramp areas, taking into account whether the vehicle is near the ramp. This process achieves vehicle control under the minimum risk state in a more complete and precise manner, improving driving safety.
[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings: Figure 1 The flowchart of the vehicle driving control method based on minimum risk state provided in this application Figure 1 ; Figure 2 The lateral lane change trajectory diagram provided in this application; Figure 3 A schematic diagram illustrating parameter changes in the lateral lane change trajectory provided in this application; Figure 4 The flowchart of the vehicle driving control method based on minimum risk state provided in this application Figure 2 ; Figure 5 This is a geometric schematic diagram of near-ramp scene detection provided in this application; Figure 6 The flowchart of the vehicle driving control method based on minimum risk state provided in this application Figure 3 ; Figure 7 Schematic diagram of longitudinal velocity curve provided for this application Figure 1 ; Figure 8 Schematic diagram of longitudinal velocity curve provided for this application Figure 2 ; Figure 9 The flowchart of the vehicle driving control method based on minimum risk state provided in this application Figure 4 ; Figure 10 The electronic parking brake control timing diagram provided for this application; Figure 11 A schematic diagram of a vehicle driving control device based on minimum risk state provided for this application; Figure 12 This is a system schematic diagram of a vehicle provided for this application. Detailed Implementation
[0020] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0021] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0022] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0023] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0024] It should also be noted that the terms "first," "second," etc., used in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such uses of the terms can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described.
[0025] When an autonomous vehicle is in operation, if the perception system degrades, critical sensors malfunction, positioning signals are lost, or the vehicle's dynamic state exceeds the Operational Design Domain (ODD), the vehicle must safely transition from its dynamic driving state to the Minimum Risk Condition (MRC) to prevent serious accidents such as collisions or deviations from the road surface caused by continued driving under uncontrollable conditions. MRC is the core safety fallback mechanism of Level 3 / Level 4 autonomous driving systems, and its handling quality directly determines the functional safety boundary.
[0026] As intelligent driving technology evolves from Level 2 assisted driving to Level 3 / 4 conditional / highly automated driving, the requirements for MRC (Motor Responsive Control) capabilities are constantly increasing. Existing technologies either only address trajectory planning for routine lane-changing scenarios and lack specific design for emergency MRC situations, posing a risk that MRC lane-changing trajectories will be suppressed by conventional costs, or that emergency MRC lane-changing trajectories may be suppressed due to high pre-selected costs (such as the collision boundary used in the initial trajectory selection) or subsequent costs (such as the cost used in evaluating the initial trajectory), resulting in insufficient reliability of emergency response. Existing technologies based on longitudinal deceleration MRC handling methods only decelerate longitudinally to a stop in the current lane. While this method is simple in principle and easy to implement, it carries the risk of secondary collisions, especially in high-speed scenarios such as highways and urban expressways. Furthermore, the lack of scenario-based design (such as the inability to recognize ramp scenarios) and refined control leads to inaccurate deceleration control, resulting in repeated activation and release of the braking system. All of these shortcomings may pose safety hazards.
[0027] Figure 1 The flowchart of the vehicle driving control method based on minimum risk state provided in this application Figure 1 .like Figure 1 As shown, this method can be applied to a vehicle control system, and the method includes the following steps S101 to S104: S101. Based on the trigger signal of the minimum risk state, determine whether the vehicle has triggered the minimum risk state; the trigger signal is used to characterize the abnormal situation of the vehicle.
[0028] This application categorizes the Minimum Risk State (MRC) into three types: the initial MRC state, the stable MRC state, and the near-ramp state. The initial MRC state is a trigger signal issued by the perception and decision module each frame. The perception and decision module includes sensors such as cameras and radar. When the perception and decision module detects an abnormal situation in the vehicle, it generates a trigger signal. However, this trigger signal may fluctuate within a single frame due to sensor jitter, state switching, or other reasons. For example, the trigger signal is generated when at least one of the following abnormal situations is detected: a pre-set sensor malfunction in the vehicle, loss of vehicle positioning signal, abnormal vehicle perception system, and abnormal vehicle dynamics state. Pre-set sensors include sensors in the vehicle that do not affect the MRC function; abnormal vehicle perception system conditions include vehicle perception system degradation; and abnormal vehicle dynamics state conditions include exceeding the operating design domain.
[0029] The stable state of MRC is the usable signal output after inter-frame counter anti-jitter. For example, the specific implementation of step S101 above includes: determining whether a trigger signal is currently received; if so, incrementing the trigger signal by one increment to obtain the accumulated value of the trigger signal; otherwise, setting the accumulated value of the trigger signal to zero; if the current accumulated value of the trigger signal is greater than or equal to a first threshold, determining the minimum risk state for vehicle triggering, where the minimum value of the first threshold is two. Specifically, when incrementing the trigger signal, the first counter increments the trigger signal by one increment; when clearing the trigger signal, the accumulated value of the trigger signal in the first counter is set to zero. The first counter is the inter-frame counter.
[0030] When the initial MRC state is true (the vehicle control system receives or detects a trigger signal), the MRC trigger for the current frame is determined to be valid, and the first counter is incremented by 1. When the initial MRC state is false (the vehicle control system does not receive or detect a trigger signal), the first counter is reset to zero. When the accumulated value of the first counter for the trigger signal reaches the anti-jitter threshold (first threshold), the MRC stable state is set to true, i.e., the minimum risk state of this embodiment is triggered. The upper limit of the first counter can be set to 10 to prevent counter overflow. By setting and determining the accumulated value, the determination of whether to trigger the MRC stable state can effectively filter out single-frame jitter; setting the upper limit of the first counter can maintain the stability of the state during continuous triggering, while avoiding unlimited counter growth.
[0031] Taking a threshold of three (or more) times as an example, if the original MRC state is true for three consecutive (or more) frames up to the current frame (meaning the original MRC state is true in the current frame, the previous frame, and the frame before that), then the accumulated value of the trigger signal can be accumulated to 3, triggering the minimum risk state. The stabilization threshold can be set according to the dynamic characteristics of different car models, such as 2 frames for sports sedans and 4 frames for family SUVs. An adaptive stabilization threshold method can also be used, dynamically adjusting the threshold according to the confidence level of the MRC trigger signal. At high confidence levels, the threshold is decreased to improve response speed, and at low confidence levels, the threshold is increased to improve stability.
[0032] To determine whether the MRC stable state is set to true, an operating design domain condition can be added (requiring the vehicle to meet certain operating ranges). This operating design domain condition differs from the trigger signal generation condition mentioned above. When the accumulated value meets both the anti-shake threshold and the operating design domain condition, the MRC stable state is set to true. If neither condition is met, the MRC stable state is not set to true.
[0033] Once the MRC stable state takes effect, it is written back to the vehicle behavior assistance module for unified use by downstream modules such as lateral lane change decision-making, longitudinal speed planning, and A* search constraints.
[0034] The above steps filter out any potential MRC raw state jitter upstream and generate a stable and reliable MRC stable state for subsequent lateral lane change decisions, longitudinal speed planning, and other modules; ensuring accurate triggering of the minimum risk state and avoiding repeated entry and exit from the minimum risk state.
[0035] S102. If it is determined that the vehicle has triggered the minimum risk state, then determine whether there is a target lane that meets the conditions for lateral lane change.
[0036] If the MRC steady state is true, it determines whether the current environment is suitable for lateral lane changing and parking, that is, whether there is a target lane that meets the conditions for lateral lane changing. Parking means stopping, and lateral lane changing and parking generally means parking on the side of the road.
[0037] For example, determining whether there is a target lane that meets the conditions for lateral lane change includes: if there is an obstacle within a second preset distance range of the determined vehicle and no manual operation command is received, determining whether there is a target lane in the map that meets the conditions for lateral lane change; wherein, the conditions for lateral lane change include belonging to a lane in the map, belonging to a non-oncoming lane, belonging to a non-emergency lane, belonging to a motor vehicle lane, belonging to a non-congested lane, having normal vehicle navigation function, and having normal vehicle speed control function.
[0038] MRC lane change (such as lateral lane change and parking) is triggered when the vehicle meets the following triggering conditions: the current lane is blocked (it is determined that there is an obstacle within the second preset distance range of the vehicle), the MRC stable state is true, and no manual operation command is received. The manual operation command includes manual pull-to-the-side command (pull-to-the-side request) and manual lane change command. If the pull-to-the-side request is non-zero, it means that no pull-to-the-side request has been received. If the manual lane change command is empty, it means that no manual lane change command has been received.
[0039] After triggering MRC lane change, the legality of the target lane is verified. For example, it checks whether the candidate lane (right lane) exists on the map, whether the candidate lane is a non-contrarian lane, whether the candidate lane is a non-emergency lane, whether the candidate lane is a motor vehicle lane, and whether the candidate lane is a non-blocking lane. If all of these are true, the candidate lane is determined to be a legal target lane. In addition to the existence of a legal target lane, the vehicle navigation function (navigation enabled) and the vehicle speed control function (speed enabled) must also be normal for the target lane to meet the conditions for lateral lane change.
[0040] Non-blocking lane verification is used to determine whether there are obstacles obstructing passage in the candidate lane. The road type of the candidate lane should not be an emergency lane or a non-motorized vehicle lane. Navigation enable indicates whether lane changing is allowed or possible under the current navigation status, and speed enable indicates whether lane changing is allowed or possible under the current speed status.
[0041] When any of the lateral lane change conditions are not met (e.g., the candidate lane is an emergency lane or a non-motorized vehicle lane), the lateral MRC enable flag is set to false, indicating that lateral MRC lane change is not allowed in that direction, and a longitudinal deceleration or longitudinal parking scheme should be used. When the lateral lane change conditions are met, the lateral MRC enable flag is set to true, and a lateral lane change and parking scheme should be used. In other words, an MRC enable flag is set; when the MRC enable flag is true, the lateral lane change and parking scheme is selected; when the MRC enable flag is false, the longitudinal deceleration or longitudinal parking scheme is selected. This step determines whether the MRC enable flag is true or false based on the lateral lane change conditions, and subsequent steps are planned based on whether the MRC enable flag is true or false.
[0042] The above steps make vehicle driving control under MRC applicable to more scenarios, meet more operating conditions, and be safer.
[0043] S103. If a target lane exists, the vehicle's lateral lane-changing trajectory is determined based on the vehicle's current position and the vehicle's target position in the target lane, and the vehicle is controlled to drive to the parking position using the lateral lane-changing trajectory.
[0044] If the MRC stable state is true and the lateral MRC enable is true, then the planning of the lateral lane change trajectory is initiated. With the current position and the target position of the vehicle determined, trajectory planning is performed, and the safe parking is achieved by using the lateral lane change trajectory obtained through vehicle intelligent planning.
[0045] S104. If there is no target lane, determine whether the vehicle is in the near-ramp area based on whether the vehicle is within the first preset distance range of the ramp, and control the vehicle to decelerate longitudinally when the vehicle is in the near-ramp area, and control the vehicle to park longitudinally when the vehicle is not in the near-ramp area.
[0046] If the MRC stable state is true and the lateral MRC enable is false, then longitudinal deceleration or parking will be initiated. Whether to decelerate to a low speed or to park depends on the actual scenario. If the vehicle is near the ramp, it is considered to be in the near-ramp area, and longitudinal deceleration to a low speed can be initiated to avoid congestion. If the vehicle is not near the ramp, it is considered to be in the non-near-ramp area, and longitudinal deceleration to parking can be initiated for safe parking. If the vehicle's current closest distance to the ramp is within the first preset distance range of the ramp, it can be determined that the vehicle is in the near-ramp area. The vehicle's parking distance can also be calculated, and a comprehensive determination of whether the vehicle is in the near-ramp area can be made by combining the current closest distance to the ramp and the vehicle's parking distance.
[0047] When the vehicle is in the area near the ramp, the longitudinal deceleration of the vehicle in step S104 above is specifically implemented by: determining the first target speed at each moment during the longitudinal deceleration process based on the initial acceleration of longitudinal deceleration, the initial speed of longitudinal deceleration, the constant acceleration of longitudinal deceleration, and the minimum driving speed; obtaining the first weight coefficient of the first target speed based on the product of the conventional weight and the first adjustment factor; and controlling the longitudinal deceleration of the vehicle based on the first weight coefficient and the first target speed; wherein the value of the conventional weight is 0 to 1, and the value of the first adjustment factor is 1.
[0048] When entering longitudinal deceleration, the initial acceleration and initial velocity of the vehicle at its current position are determined, and the minimum speed to which the vehicle needs to decelerate (i.e., the target deceleration speed) is determined. Based on a preset constant jerk, the real-time acceleration is smoothly adjusted to linearly transition from the initial value to the target acceleration. Then, through a piecewise dynamics model, the vehicle is controlled to change from the initial velocity to the minimum speed, allowing the planning of the first target speed at each moment during longitudinal deceleration. The vehicle's speed optimizer tracks the actual vehicle speed in real time, determines the first deviation between the actual speed and the corresponding first target speed at each moment, and then multiplies the first weighting coefficient by the first deviation to obtain the first cost. The larger the first cost, the more adaptive adjustments the vehicle needs to make to reduce the first cost to within a first preset value range; that is, the smaller the first weighting coefficient, the greater the tolerance for deviation.
[0049] When the vehicle is in a non-ramp area, the longitudinal parking control in step S104 above specifically includes: determining the second target speed at each moment during the longitudinal parking process based on the initial acceleration, initial speed, constant acceleration, and parking speed of the longitudinal parking; obtaining the second weight coefficient of the second target speed based on the product of the conventional weight and the second adjustment factor; and controlling the longitudinal parking of the vehicle based on the second weight coefficient and the second target speed. The value of the second adjustment factor is as follows: when the initial speed of the vehicle entering the longitudinal parking is within the first preset speed range, the value of the second adjustment factor is 0; when the initial speed of the vehicle entering the longitudinal parking is not within the first preset speed range, the value of the second adjustment factor is less than 1.
[0050] When entering longitudinal parking, the initial acceleration and initial velocity of the vehicle at its current position are determined, and the parking speed to which the vehicle needs to decelerate (i.e., the target deceleration speed, which is 0) is determined. Based on constant jerk adjustment of acceleration and by controlling the vehicle's change from initial velocity to parking speed through a dynamic model, a second target speed at each moment during longitudinal deceleration can be planned. The vehicle's speed optimizer can track the vehicle's actual speed in real time, determine the second deviation between the actual speed and the corresponding second target speed at each moment, and then multiply the second weight coefficient by the second deviation to obtain the second cost. The larger the second cost, the more adaptive adjustments the vehicle needs to make to reduce the second cost to within a second preset value range.
[0051] To ensure the speed optimizer prioritizes meeting the MRC deceleration intent, the weights are adjusted. The speed optimizer uses an adaptive weight adjustment method, for example: when the MRC steady state is true, no lateral lane change is performed, and the vehicle is not in the near-ramp area, the speed tracking weight is reduced (using the second weight coefficient); when the MRC steady state is true, no lateral lane change is performed, and the vehicle is in the near-ramp area, the speed tracking weight is maintained (using the first weight coefficient) to maintain tracking of the ramp speed limit.
[0052] The formula for obtaining the speed tracking weight (first weight coefficient / second weight coefficient) is as follows:
[0053] in, To track weights; Use standard weights; These are weighted adjustment factors (corresponding to the first and second adjustment factors, respectively). If the vehicle is in the near-ramp area (near-ramp state is true), the first adjustment factor can be set to 1, which maintains the ramp speed limit tracking. When the vehicle is not in the near-ramp area, the second adjustment factor can adaptively take a value based on the initial speed, for example... The initial speed of the vehicle when it enters longitudinal parking. When the speed is less than 0.5 m / s, the second adjustment factor can be 0, which means completely relaxing the tracking of the second target's velocity; When the speed is greater than or equal to 0.5 m / s, the second adjustment factor can be set to 0.2, which means tracking is performed with deceleration as the priority. Different speed tracking weights are matched according to different scenarios to complete MRC longitudinal deceleration or parking in a more accurate and safer manner.
[0054] In the above embodiments, it is determined whether the vehicle has triggered a minimum risk state. When the minimum risk state is triggered, different braking or control methods are adopted for different special scenarios, including lateral lane change scenarios where there is a target lane that meets the lateral lane change conditions, and longitudinal deceleration or parking scenarios where there is no target lane that meets the lateral lane change conditions. Specifically, for longitudinal deceleration or parking, depending on whether the vehicle is near the ramp area, longitudinal deceleration near the ramp area and longitudinal parking in non-ramp area are specifically set. This process achieves vehicle control under the minimum risk state in a more complete and precise manner, improving driving safety.
[0055] In step S103 above, the lateral lane-changing trajectory of the vehicle is determined based on the vehicle's current position and its target position in the target lane. Specifically, this is achieved through the following steps S1031 to S1034: S1031. Determine the current position and target position of the vehicle in the preset coordinate system, wherein the target position is within the target lane; wherein the preset coordinate system is established with the reference line of the lane where the vehicle is located as the vertical axis and the direction perpendicular to the reference line as the horizontal axis.
[0056] When the MRC stable state is true and the lateral MRC enable is true, lateral lane change trajectory planning is initiated; at this time, the longitudinal speed curve generation module no longer issues MRC-specific deceleration speed limits to avoid conflict with the lateral lane change intention. Reference lines include lane centerlines.
[0057] This embodiment plans the lateral lane change trajectory in the Frenet coordinate system. The Frenet coordinate system uses the reference line of the vehicle's lane as the vertical axis and the direction perpendicular to the reference line as the horizontal axis. The current position of the vehicle is determined in the Frenet coordinate system. and target location The current position is the starting point of the lateral lane change, and the target position is the ending point of the lateral lane change; where, The starting point is the ordinate; The x-coordinate is the starting point, which also corresponds to the lateral offset at the current lane centerline; The endpoint is the ordinate; The x-coordinate of the endpoint is also the lateral offset at the center line of the target lane. The difference between the x-coordinate of the endpoint and the x-coordinate of the starting point is the lateral lane change distance of the vehicle, which can be equal to the width of one lane, approximately 3.75 meters.
[0058] To ensure that the lateral trajectory is tangent to the lane centerline at the start and end points (i.e., the vehicle's heading is along the lane direction) and that there are no sudden changes in lateral acceleration to avoid passenger discomfort, this embodiment sets six boundary conditions as follows: , , , , , ;in, This represents the starting displacement (starting x-coordinate) relative to the reference line. The starting velocity relative to the reference line; Acceleration at the starting point; This represents the endpoint displacement relative to the reference line (the x-coordinate of the endpoint). The velocity at the endpoint relative to the reference line; The acceleration is the endpoint. The above boundary conditions ensure that the lateral offset, lateral velocity, and lateral acceleration at the start and end points are 0 or the target value, achieving G2 continuity between the lateral trajectory and the lane centerline (i.e., the position, first derivative, and second derivative are all continuous).
[0059] S1032. Using the x-coordinate of the current position, the lateral acceleration of the current position being zero, the x-coordinate of the target position, and the lateral acceleration of the target position being zero as boundary conditions, solve for the auxiliary variables of the pre-set fifth-degree polynomial; the fifth-degree polynomial is an equation based on the ordinate to obtain the x-coordinate.
[0060] The auxiliary variables for solving the pre-set fifth-degree polynomial are determined using some of the six boundary conditions mentioned above. The specific implementation of step S1032 includes: obtaining a first parameter based on the square of the longitudinal lane change distance and the starting acceleration; subtracting the first parameter from the ending x-coordinate and then subtracting the starting x-coordinate to obtain a second parameter; using the cube of the longitudinal lane change distance as a third parameter; and dividing the second parameter by the third parameter to obtain the first auxiliary variable. A fourth parameter is obtained based on the longitudinal lane change distance and the starting acceleration; the square of the longitudinal lane change distance is used as a fifth parameter; and dividing the fourth parameter by the fifth parameter to obtain the second auxiliary variable. The difference between the ending acceleration and the starting acceleration is used as a sixth parameter; and dividing the sixth parameter by the longitudinal lane change distance to obtain the third auxiliary variable. The boundary conditions for the three auxiliary variables are solved linearly.
[0061] Get the first auxiliary variable The formula is as follows: ;in, This refers to the longitudinal lane change distance. The longitudinal lane change distance is adaptively determined based on the current vehicle speed, and its formula is as follows: ,in, To obtain the maximum value; The longitudinal speed at the starting point; The lane change duration is between 4 and 6 seconds. The possible value is 20 meters.
[0062] Obtain the second auxiliary variable The formula is as follows: .
[0063] Obtaining the third auxiliary variable The formula is as follows: .
[0064] The fifth-degree polynomial is an equation that uses the ordinate to obtain the abscissa, as shown below:
[0065] in, This is the lateral lane change trajectory (lateral offset). The coefficient of the zero-order term; The coefficient of the linear term; The coefficient of the quadratic term; The coefficient of the cubic term; The coefficient of the fourth term; The coefficient of the fifth term; The vertical axis is represented by .
[0066] S1033. Use the horizontal coordinate of the current position as the zero-degree coefficient of the fifth-degree polynomial, set the first-degree coefficient of the fifth-degree polynomial to zero, obtain the second-degree coefficient of the fifth-degree polynomial based on the horizontal acceleration of the current position, and obtain the third-degree, fourth-degree, and fifth-degree coefficients of the fifth-degree polynomial based on the auxiliary variables.
[0067] The specific implementation of obtaining the coefficients of the cubic, quartic, and quintic terms of the fifth-degree polynomial based on auxiliary variables in step S1033 above includes: obtaining a seventh parameter based on the first, second, and third auxiliary variables, and dividing the seventh parameter by 2 to obtain the coefficient of the cubic term; obtaining an eighth parameter based on the first, second, and third auxiliary variables, and dividing the eighth parameter by the longitudinal lane change distance to obtain the coefficient of the quartic term; obtaining a ninth parameter based on the first, second, and third auxiliary variables, and dividing the ninth parameter by the fifth parameter to obtain the coefficient of the quintic term.
[0068] The formula for obtaining the coefficient of the cubic term is as follows: .
[0069] The formula for obtaining the coefficient of the fourth term is as follows: .
[0070] The formula for obtaining the coefficient of the fifth term is as follows: .
[0071] Substituting the six boundary conditions into the above fifth-degree polynomial, we obtain the six coefficients. The formulas for the coefficients of the third to fifth-degree terms are as above, and the formulas for the coefficients of the zeroth to second-degree terms are as follows: ; ; .
[0072] S1034. Substitute the coefficients of the zero-order term, the first-order term, the second-order term, the third-order term, the fourth-order term, and the fifth-order term into the fifth-order polynomial to obtain the lateral lane change trajectory.
[0073] For a pre-defined fifth-degree polynomial, six coefficients are obtained by substituting six boundary conditions. Some coefficients are obtained through auxiliary variables, which are derived from some boundary conditions and the longitudinal lane change distance. Substituting these six coefficients back into the fifth-degree polynomial yields the lateral lane change trajectory. This closed-form solution avoids online optimization, ensuring real-time performance. It obtains the lateral offset from lane change to parking in a single step, allowing subsequent lateral movement control of the vehicle based on this offset.
[0074] The lateral lane change process is driven by a state machine. The state machine is segmented and managed sequentially: waiting for enable, executing the lane change, briefly pausing after crossing the lane line for a smooth transition, returning to the target lane centerline, and finally entering the parking phase. State transitions are based on lateral offset and its boundary conditions to avoid abrupt changes caused by a single-frame lane change command, which could lead to vehicle instability. When the lateral MRC enable is false, the process degenerates to only longitudinal deceleration and stopping, without entering the aforementioned state machine.
[0075] Figure 2 A schematic diagram of the lateral lane change trajectory provided in this application. Figure 3 This is a schematic diagram illustrating parameter changes in the lateral lane change trajectory provided in this application. (See diagram below.) Figure 2 As shown, the horizontal axis represents longitudinal displacement, and the vertical axis represents lateral displacement, with both axes measured in meters. In this embodiment, the vehicle's lateral trajectory smoothly follows the longitudinal displacement under a fifth-order polynomial. Figure 3 As shown, the horizontal axis represents the longitudinal displacement, and the vertical axis represents the amplitude of each parameter. The curves from top to bottom represent the target's lateral displacement (in meters), lateral displacement (in meters), and lateral velocity, respectively. lateral acceleration This includes the lateral offset curve, lateral velocity curve, and lateral acceleration curve, showing the vehicle gradually shifting laterally toward the target.
[0076] After the lateral lane change decision module outputs lateral MRC enable as true, the vehicle needs to smoothly transition from the current lane to the target lane confirmed by five-fold legality checks, and finally pull over to the side of the road. This embodiment presents a lateral lane change trajectory planning method based on a fifth-order polynomial in the Frenet coordinate system, achieving smoothness, boundary continuity, and curvature constraints of the lateral trajectory in the integrated coordination of longitudinal deceleration, lateral lane change, and pulling over to the side of the road under MRC conditions. Furthermore, the final lateral trajectory is generated layer by layer according to the sequence of triggering conditions, coordinate system definition, boundary conditions, fifth-order polynomial solution, and state machine progression. The fifth-order polynomial can be replaced with other curves, such as Bézier curves.
[0077] Figure 4 The flowchart of the vehicle driving control method based on minimum risk state provided in this application Figure 2 , Figure 5 This is a geometric schematic diagram of the near-ramp scene detection provided in this application. Figure 4 and Figure 5 As shown, the method includes the following steps S401 to S403: S401. Obtain the shortest distance between the vehicle and the ramp, and calculate the vehicle's braking distance based on the vehicle's deceleration under the minimum risk condition and the vehicle's current speed.
[0078] Obtain the first distance from the vehicle to the nearest ramp entrance and the second distance from the vehicle to the nearest ramp exit. Select the minimum value between the first and second distances as the shortest distance between the vehicle and the ramp.
[0079] The formula for obtaining the shortest distance is as follows:
[0080] in, The shortest distance between the vehicle and the ramp; The first distance from the vehicle to the nearest ramp entrance; This is the second distance from the vehicle to the nearest ramp exit.
[0081] S402. Based on the shortest distance and braking distance, the stopping distance from the vehicle's parking point to the ramp is obtained.
[0082] The braking distance is calculated based on the vehicle's current speed and MRC deceleration, which is the braking distance required for the vehicle to decelerate from its current speed to a stop.
[0083] The formula for obtaining the braking distance is as follows:
[0084] in, Braking distance; Current vehicle speed; The MRC deceleration (preset deceleration) can be set to 1.5 m / s². 2 m is for meters, s is for seconds.
[0085] Subtracting the braking distance from the shortest distance gives the stopping distance from the vehicle's stopping point to the ramp. The formula for obtaining the stopping distance is as follows: ;in, This refers to the stopping distance.
[0086] To prevent vehicles from being mistakenly judged as having moved far from the ramp as soon as they pass the ramp point, this embodiment uses mileage difference to accumulate the distance after passing the ramp point. The specific calculation method is as follows: When The formula for obtaining the distance from the point where the vehicle passes the ramp is as follows: ,in, for Distance from the ramp point at all times for Distance at the point where the vehicle passes the ramp at any time; This is the displacement increment for this frame; when At that time, the distance from the point where the vehicle passed the ramp was 0; The value is 40 meters. The distance from the point where the vehicle passes the ramp exit is the distance between the vehicle and the ramp exit.
[0087] S403. If the stopping distance is within the third preset distance range, or the current distance of the vehicle from the ramp is within the fourth preset distance range and the sum of the current distance and the braking distance is within the third preset distance range, then the vehicle is determined to be in the near ramp area. The current distance away is obtained as follows: if the shortest distance is within the fifth preset distance range, the current distance away is obtained based on the distance away at the previous moment and the displacement increment between the current moment and the previous moment; if the shortest distance is not within the fifth preset distance range, the current distance away is determined to be zero.
[0088] The stopping distance is taken as a positive value. A vehicle is determined to be in the near-ramp area if either of the following conditions is met: First, the stopping distance is within the third preset distance range; second, the current distance the vehicle is moving away from the ramp is within the fourth preset distance range, and the sum of the current distance and the braking distance is within the third preset distance range. A vehicle being in the near-ramp area is indicated by the following flag: Near-ramp state is set to true.
[0089] Taking the expression as an example, a vehicle is determined to be in the near-ramp area if it meets any of the following conditions: Condition one: hour, A value of 200 meters is acceptable; that is, the braking distance is close to the ramp point, and it is impossible to stop safely before the ramp. Condition two: ,and At that time; among them, This represents the current distance the vehicle has moved away from the ramp (distance from the point where it passed the ramp). This is the distance threshold, which can be 1×10. - ³ meters; that is, the vehicle has just passed the ramp point and the braking distance is insufficient to leave the ramp area.
[0090] When MRC is triggered, if a vehicle is near a highway ramp entrance or exit, directly decelerating to a stop may obstruct ramp traffic and pose a risk of being rear-ended. This implementation can identify whether a vehicle is near the ramp area and adjust the lower limit of longitudinal deceleration accordingly to resolve the aforementioned congestion and rear-end collision issues.
[0091] In addition to the methods mentioned above, the pre-storage of ramp locations in high-precision maps can be used to directly determine whether a vehicle is in a ramp area, combined with vehicle positioning. Alternatively, visual sensors can be used to identify the physical characteristics of ramp entrances / exits (such as ramp signs and guide lines). Vehicle-to-Everything (V2X) communication can also be used to obtain ramp information of the road ahead.
[0092] Figure 6 The flowchart of the vehicle driving control method based on minimum risk state provided in this application Figure 3 .like Figure 6 As shown, the method includes the following steps S601 to S604: S601. Determine the initial acceleration of the vehicle when it enters longitudinal deceleration, and obtain the real-time acceleration of the vehicle based on the initial acceleration and the preset jerk.
[0093] When the MRC steady state is true and the lateral MRC enable is false, the MRC speed limit is triggered. The deceleration process is generated using the initial acceleration when the vehicle enters longitudinal deceleration and the preset jerk. Let the initial moment be when the vehicle enters longitudinal deceleration, and the initial moment be 0.
[0094] The formula for how real-time acceleration changes over time is as follows:
[0095] in, for Real-time acceleration; This is the initial acceleration of the vehicle when it enters longitudinal deceleration; Preset jerk.
[0096] Integrating the real-time acceleration yields the real-time velocity:
[0097] in, for Real-time speed; The initial velocity; For tiny time From 0 to Integral at time step; for Real-time acceleration; This is the initial acceleration.
[0098] Integrating the real-time velocity yields the real-time displacement:
[0099] in, for Real-time displacement; for Real-time speed.
[0100] S602. Obtain the travel time from real-time acceleration change to target acceleration. The maximum value of the target acceleration is related to the vehicle's gear. The maximum value of the preset acceleration is also related to the vehicle's gear.
[0101] Real-time acceleration is adjusted by preset jerk. The preset jerk is multiplied by time and then added to the initial acceleration. When the real-time acceleration reaches the target acceleration, the time value multiplied by the preset jerk is the candidate time. The travel time is obtained by subtracting the initial time from the candidate time.
[0102] The target acceleration can be adaptively set by the vehicle, and different gears correspond to different maximum values; when the gear is reverse, the minimum deceleration (the minimum value of the target acceleration) is... 2.5 m / s², minimum jerk (the minimum preset jerk value) is 2.5 m / s³; when the gear is forward, the minimum deceleration is 1.5 m / s², minimum jerk is 1.5 m / s³. Furthermore, the maximum deceleration parameter in Sport mode (S gear) can be increased; the deceleration parameter can also be adaptively adjusted according to the road surface adhesion coefficient to reduce deceleration on slippery surfaces; and an adjustable deceleration speed can be set according to passenger comfort requirements.
[0103] S603. Based on the travel time and the initial speed of the vehicle when it enters longitudinal deceleration, the candidate speed of the vehicle is obtained.
[0104] When the actual driving time reaches the target acceleration, the vehicle speed at each point in time corresponding to the driving time can be considered a candidate speed. Alternatively, the speed obtained at a later point during deceleration based on the target acceleration can also be considered a candidate speed. This application implements deceleration in stages, including a constant acceleration stage (acceleration gradually approaches the target acceleration) and a constant acceleration stage (target acceleration). The speeds corresponding to this entire process are candidate speeds, which can be compared in real time with the preset speed limit of the ramp to determine the minimum driving speed of the vehicle.
[0105] S604. The maximum value between the preset speed limit and the candidate speed of the ramp is used as the minimum driving speed of the vehicle to control the longitudinal deceleration of the vehicle, and the vehicle deceleration is controlled by constant acceleration during the longitudinal deceleration process.
[0106] When the approach ramp condition is true, the lower limit of the target speed is not zero, and the target speed is taken as the preset speed limit, for example, 8.333 m / s (approximately 30 km / h); when the approach ramp condition is false, the target speed is zero. The constant jerk can be kept constant continuously or kept constant in segments.
[0107] When the vehicle is near the ramp, the minimum driving speed is based on the preset speed limit. If the candidate speed is lower than the preset speed limit, the vehicle speed can be appropriately increased to the preset speed limit. The maximum value between the preset speed limit and the candidate speed is used as the target speed (minimum driving speed) for the vehicle in the ramp area. The preset jerk is a constant jerk to ensure that the vehicle does not fall below the ramp speed limit in ramp scenarios.
[0108] The final MRC speed limiting curve is as follows:
[0109] in, For target speed; Candidate speed; The preset speed limit for the ramp.
[0110] When the real-time acceleration reaches the target acceleration, that is When the acceleration reaches a constant level, the acceleration remains roughly constant, while the velocity and displacement may change. For example: The real-time speed of a vehicle is obtained by multiplying the difference between the current moment and the moment when the real-time acceleration reaches the target acceleration by the target acceleration, and then adding the product to the speed at which the real-time acceleration reaches the target acceleration. The speed formula is:
[0111] in, The real-time velocity after the acceleration remains constant; This is the target acceleration achieved while maintaining a constant acceleration. The velocity at which the real-time acceleration reaches the target acceleration; The moment when the real-time acceleration reaches the target acceleration; if the vehicle speed deviates from the minimum driving speed, it needs to return to the minimum driving speed as much as possible; The displacement formula is:
[0112] in, This represents the real-time displacement after the acceleration remains constant. The displacement when the real-time acceleration reaches the target acceleration.
[0113] Figure 7 Schematic diagram of longitudinal velocity curve provided for this application Figure 1 , Figure 8 Schematic diagram of longitudinal velocity curve provided for this application Figure 2 .like Figure 7 As shown, the horizontal axis represents time (in seconds), and the vertical axis represents velocity (in meters per second) or acceleration (in meters per second squared). The curves from top to bottom represent velocity and acceleration respectively. In a standard MRC deceleration forward gear, with an initial speed of 80 km / h, the speed of the standard MRC deceleration continuously decreases, as shown... Figure 8 As shown, the horizontal axis represents time (in seconds), and the vertical axis represents speed (in meters per second). The curves from top to bottom represent speed and the speed limit of the ramp. In this embodiment, the minimum driving speed near the ramp is limited by a preset speed limit of 30 km / h.
[0114] The MRC longitudinal speed curve is used to provide a safe and smooth longitudinal deceleration and speed limit curve for vehicles when lateral lane changes are not possible or appropriate, so that the vehicle eventually decelerates to a standstill or maintains the ramp speed limit. In this embodiment, the final speed curve is generated layer by layer in the order of trigger judgment, parameter selection, kinematic modeling, speed limiting, and optimizer weight adjustment.
[0115] Figure 9 The flowchart of the vehicle driving control method based on minimum risk state provided in this application Figure 4 , Figure 10 A schematic diagram of the electronic parking brake control timing provided in this application. Figure 9 and Figure 10 As shown, Figure 10 The horizontal axis represents time (in seconds), the solid curve represents vehicle speed, and the dashed curve represents the count of the stationary counter; the method includes the following steps S901 to S904: S901. Determine if the vehicle's current speed is within the second preset speed range. If yes, increment the number of times the vehicle has stopped; otherwise, set the number of times the vehicle has stopped to zero. Increment the number of times the vehicle has stopped using the second counter, and then set the number of times the vehicle has stopped in the second counter to zero.
[0116] The Electronic Parking Brake (EPB) is used for braking. This embodiment includes the active EPB activation (execution layer) for MRC parking and parallel parking. This execution layer triggers the EPB activation request through independent stationary counting logic according to different parking scenarios, ensuring that the vehicle is safely parked after coming to a complete stop.
[0117] For MRC emergency braking scenarios: When the MRC steady state is true, the system begins monitoring vehicle speed to determine if the vehicle has come to a complete stop. The update rule for the stationary counter (second counter) is: when... hour, ;otherwise ;in, The vehicle's current speed; The static velocity threshold can be set to 0.001 m / s. The upper limit for counting is 100; when the absolute value of the vehicle's current speed is less than the stationary speed threshold, the stationary count is incremented by one; otherwise, the stationary count is set to zero.
[0118] S902. If the number of times the vehicle stops is greater than the second threshold, then a request is initiated to instruct the electronic parking brake of the vehicle to be engaged.
[0119] when When the vehicle is determined to be stationary, the parking brake is requested to be engaged; among which, The second threshold (the number of static confirmation frames) can be set to 50. If the MRC status is exited, the static count is immediately reset to zero to avoid false triggering.
[0120] For regular sidewalk parking scenarios, a different stationary counter is used for counting, unlike the MRC emergency parking scenario, and the threshold for the number of stationary confirmation frames can be set to 10.
[0121] S903. If the electronic parking brake has been engaged or is being engaged, increment the electronic parking brake usage count by one. The electronic parking brake usage count is incremented by one using the third counter.
[0122] This embodiment includes an EPB status counter (status monitoring layer). The status monitoring layer is used to track the actual execution status of the EPB in real time, providing a basis for judgment for subsequent anti-repeating logic. When the EPB is detected to be in a parked or parking state, the EPB application counter (third counter) is incremented and an upper limit is set to prevent overflow; otherwise, the counter is immediately cleared to zero.
[0123] The counting rule for the third counter is as follows:
[0124] in, for The third counter counts the number of times the electronic parking brake is used. for The third counter counts at time 1. This is the upper limit for counting, and can be 10.
[0125] S904. If the number of applications exceeds the third threshold, then a request is initiated to instruct the release of the vehicle's electronic parking brake. The third threshold can be set to 2.
[0126] This embodiment includes a stabilization mechanism (protection layer) to prevent repeated pulling and releasing of the parking brake (EPB). This protection layer prevents the EPB from being abnormally released after being pulled up due to state machine timing conflicts, thus avoiding repeated "pull-release-pull" actions and executing forced protection logic. When the number of applications exceeds a third threshold, it indicates that the EPB is in a stable braking state and the system mode is normal. At this time, the parking brake request is forcibly set to release to avoid the planning module issuing conflicting release commands later. This mechanism effectively tunes the timing boundaries of the parking state machine, ensuring the singularity and reliability of the EPB's actions.
[0127] In the parking brake request update stage of the accessory control module, this embodiment uses a dual monitoring mechanism of EPB state counting and stationary counting to perform refined timing management of the electronic parking brake (EPB) requests. The overall control logic of this method is divided into three levels: state monitoring, active pull-up, and anti-repetitive stabilization. In addition to EPB, other braking systems, such as electromechanical braking systems, or multiple braking systems can be used in coordination.
[0128] Finally, in the behavior dispatch module, when the behavior selection result is MRC emergency stop behavior, the system-level braking stop flag is set to true, and a braking stop command is sent to the downstream control system: system braking stop flag is true.
[0129] The overall technical architecture of this application consists of seven functional layers, which coordinate with each other through status signals and data flows, as detailed below: Level 1 (State Layer): MRC State Management and Anti-shake Module. Maintains three types of states: original MRC state, stable MRC state, near-ramp state, and distance traveled after the ramp. It uses inter-frame counter anti-shake and ODD joint judgment.
[0130] Level Two (Decision-Making Level): MRC Lateral Lane Change Decision Module. Performs five-fold legality checks on the right lane, distinguishing between two processing modes: lateral MRC (allowing lateral lane changes to the side of the road) and longitudinal MRC (only longitudinal deceleration and stopping).
[0131] Level 3 (Lateral Planning Layer): MRC Lateral Lane Change Trajectory Planning Module. Based on the Frenet coordinate system and a fifth-order polynomial, it generates lateral offset curves (lateral lane change trajectories) and ensures the continuity of position / velocity / acceleration through six boundary conditions, driving the lateral lane change state machine.
[0132] Level 4 (Vertical Planning Layer): MRC Vertical Velocity Curve Generation Module. Based on the differences in gear position and near-ramp conditions, deceleration parameters and target speed lower limits are selected, and a constant acceleration motion model is used to generate a velocity-time series.
[0133] Level 5 (Scenario Layer): Near-Ramp Scenario Detection Module. This module uses a geometric combination of distance to the ramp entrance / exit, braking distance, and distance traveled to determine the near-ramp status.
[0134] Level 6 (Parking Level): MRC Parking Brake Control Module. It controls parking brake requests through a dual mechanism of EPB state counting and stationary counting.
[0135] Level 7 (Behavior Subsequent Layer): Issues braking and stopping commands to the downstream control system.
[0136] The beneficial effects of this application are as follows: 1. Layered collaborative decision-making avoids incomplete decision-making by a single module: This invention divides MRC processing into five levels: state stabilization, lateral lane change decision, longitudinal speed curve generation, ramp scene detection, and parking braking. The information flow between each level is clear, avoiding incomplete decision-making by a single module.
[0137] 2. ODD Joint Judgment Ensures Safety: Lateral MRC lane changes are only permitted within the ODD area; outside the ODD area, only longitudinal deceleration is implemented to avoid blindly changing lanes in areas not covered by the road.
[0138] 3. Inter-frame stabilization improves stability: 3-frame cumulative stabilization (up to 10 frames) avoids frequent switching of lane change commands due to single-frame jitter, improving ride comfort and command stability.
[0139] 4. Emergency lane directional constraints: Clearly exclude emergency lanes and non-motorized vehicle lanes as target lanes for MRC lane changing to avoid occupying emergency rescue channels.
[0140] 5. Differentiated processing of ramp scenarios: Within 200m of ramp entrance / exit, MRC maintains a speed limit of 30km / h without stopping to avoid stopping and blocking traffic in the ramp area; a smooth deceleration curve is generated through a constant acceleration model.
[0141] 6. Gear Differentiation Parameters: Different deceleration intensities (-1.5 m / s² or -2.5 m / s²) and acceleration jerk are configured for forward gear (D) and reverse gear (R) respectively to adapt to the dynamic constraints under different gears.
[0142] 7. Clear parking timing: Through the dual mechanism of EPB state counting and parking stillness counting, the repeated actions of pulling and releasing EPB are avoided, and the state machine timing is clear; the 50-frame stillness threshold provides a sufficient stillness confirmation window.
[0143] 8. Smooth and continuous lateral trajectory: The lateral offset curve is generated based on a fifth-order polynomial in the Frenet coordinate system. Six boundary conditions are applied (the position, velocity, and acceleration at the start / end point are all 0 or target values) to achieve G2 continuity between the lateral trajectory and the lane centerline, avoiding abrupt changes in lateral acceleration and improving ride comfort. The closed-form solution ensures real-time performance and eliminates the need for online optimization.
[0144] 9. Segmented lateral lane change state machine: The lane change process is managed by a multi-segment state machine, with the lateral offset threshold as the basis for state switching, to avoid vehicle instability caused by a single-frame lane change command jumping directly.
[0145] 10. Adaptive speed optimizer weights: Completely relax reference speed tracking at low speeds (<0.5m / s) and weakly track at higher speeds, ensuring flexibility in deceleration to zero while avoiding excessive deceleration in ramp scenarios.
[0146] The following describes an apparatus embodiment of this application, which can be used to perform the methods described in the above embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the methods described in the above embodiments of this application.
[0147] Figure 11 A schematic diagram of a vehicle driving control device based on minimum risk state provided in this application. The device 1100 may include: a first determination module 1101, a second determination module 1102, a lateral planning module 1103, and a longitudinal planning module 1104; The first determination module 1101 is used to determine whether the vehicle has triggered a minimum risk state based on a trigger signal of the minimum risk state; the trigger signal is used to characterize an abnormal situation of the vehicle. The second determination module 1102 is used to determine whether there is a target lane that meets the lateral lane change conditions if it is determined that the vehicle has triggered the minimum risk state. The lateral planning module 1103 is used to determine the lateral lane-changing trajectory of the vehicle based on the current position of the vehicle and the target position of the vehicle in the target lane if the target lane exists, and to control the vehicle to drive to the parking position based on the lateral lane-changing trajectory. The longitudinal planning module 1104 is used to determine whether the vehicle is in the near-ramp area based on whether the vehicle is within a first preset distance range of the ramp if the target lane does not exist, and to control the vehicle to decelerate longitudinally when the vehicle is in the near-ramp area, and to control the vehicle to park longitudinally when the vehicle is not in the near-ramp area.
[0148] It should be noted that for any content not described in detail in this embodiment of the device, please refer to the method described above.
[0149] Figure 12 This is a system schematic diagram of a vehicle provided for this application. For example... Figure 12 As shown, the vehicle includes a memory 1204, a processor 1202, and a computer program stored in the memory 1204 and executable on the processor 1202. When the processor 1202 executes the computer program, it implements the method provided in any embodiment of the present invention.
[0150] Among them, Figure 12 In this document, a bus architecture (represented by bus 1200) is used. Bus 1200 may include any number of interconnected buses and bridges, linking various circuits including one or more processors represented by processor 1202 and memory represented by memory 1204. Bus 1200 may also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. Bus interface 1205 provides an interface between bus 1200 and receiver 1201 and transmitter 1203. Receiver 1201 and transmitter 1203 may be the same element, i.e., a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 1202 is responsible for managing bus 1200 and general processing, while memory 1204 may be used to store data used by processor 1202 during operation.
[0151] Based on the same inventive concept, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method provided in any embodiment of the present invention.
[0152] The functions described herein can be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions can be stored as one or more instructions or codes on or transmitted via a computer-readable medium. Other examples and embodiments are within the scope and spirit of this invention and the appended claims. For example, due to the nature of software, the functions described above can be implemented using software executed by a processor, hardware, firmware, hardwired, or any combination thereof. Furthermore, the functional units can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit.
[0153] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.
[0154] The units described as separate components may or may not be physically separate. Similarly, the components of the control device may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0155] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0156] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0157] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0158] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope.
Claims
1. A vehicle driving control method based on minimum risk state, characterized in that, The method includes: Based on the trigger signal of the minimum risk state, it is determined whether the vehicle has triggered the minimum risk state; the trigger signal is used to characterize the abnormal situation of the vehicle. If it is determined that the vehicle has triggered the minimum risk state, then it is determined whether there is a target lane that meets the conditions for lateral lane change. If the target lane exists, the lateral lane-changing trajectory of the vehicle is determined based on the vehicle's current position and the vehicle's target position in the target lane, and the vehicle is controlled to drive to the parking position using the lateral lane-changing trajectory. If the target lane does not exist, the vehicle is determined to be in the near-ramp area based on whether the vehicle is within a first preset distance range of the ramp. When the vehicle is in the near-ramp area, the vehicle is controlled to decelerate longitudinally, and when the vehicle is not in the near-ramp area, the vehicle is controlled to park longitudinally.
2. The method according to claim 1, characterized in that, The trigger signal is generated when at least one of the following abnormal conditions is detected: a preset sensor failure in the vehicle, loss of vehicle positioning signal, abnormality of vehicle perception system, and abnormality of vehicle dynamics. The trigger signal based on the minimum risk state determines whether the vehicle has triggered the minimum risk state, including: Determine whether the trigger signal is currently received. If so, increment the trigger signal once to obtain the incremented value of the trigger signal. Otherwise, set the incremented value of the trigger signal to zero. If the accumulated value of the current trigger signal is greater than or equal to the first threshold, then the vehicle is determined to have triggered the minimum risk state, and the minimum value of the first threshold is two times.
3. The method according to claim 1, characterized in that, Determining whether a target lane exists that meets the conditions for a lateral lane change includes: If an obstacle is found within a second preset distance range of the vehicle and no manual operation command is received, determine in the map whether there is a target lane that meets the lateral lane change conditions; wherein, the lateral lane change conditions include belonging to a lane in the map, belonging to a non-contact lane, belonging to a non-emergency lane, belonging to a motor vehicle lane, belonging to a non-congested lane, and the vehicle navigation function and vehicle speed control function being normal.
4. The method according to claim 1, characterized in that, Determining the lateral lane-changing trajectory of the vehicle based on its current position and its target position in the target lane includes: The current position and target position of the vehicle are determined in a preset coordinate system, wherein the target position is within the target lane; wherein the preset coordinate system is established with the reference line of the lane where the vehicle is located as the vertical axis and the direction perpendicular to the reference line as the horizontal axis; Using the x-coordinate of the current position, the lateral acceleration of the current position being zero, the x-coordinate of the target position, and the lateral acceleration of the target position being zero as boundary conditions, the auxiliary variables of a pre-set fifth-degree polynomial are solved; the fifth-degree polynomial is an equation that obtains the x-coordinate based on the ordinate. The x-coordinate of the current position is used as the zero-degree coefficient of the fifth-degree polynomial, the first-degree coefficient of the fifth-degree polynomial is set to zero, the quadratic coefficient of the fifth-degree polynomial is obtained based on the lateral acceleration of the current position, and the cubic, quartic, and quintic coefficients of the fifth-degree polynomial are obtained based on the auxiliary variable. Substituting the zero-degree term coefficient, the first-degree term coefficient, the second-degree term coefficient, the third-degree term coefficient, the fourth-degree term coefficient, and the fifth-degree term coefficient into the fifth-degree polynomial yields the lateral lane change trajectory.
5. The method according to claim 1, characterized in that, The step of determining whether the vehicle is in the near-ramp area based on whether the vehicle is within a first preset distance range of the ramp includes: Obtain the shortest distance between the vehicle and the ramp, and calculate the braking distance of the vehicle based on the vehicle's deceleration under minimum risk conditions and the vehicle's current speed; Based on the shortest distance and the braking distance, the stopping distance from the vehicle's parking point to the ramp is obtained; If the stopping distance is within the third preset distance range, or if the current distance of the vehicle from the ramp is within the fourth preset distance range and the sum of the current distance and the braking distance is within the third preset distance range, then it is determined that the vehicle is in the near ramp area; The current distance away is obtained as follows: if the shortest distance is within the fifth preset distance range, the current distance away is obtained based on the distance away at the previous moment and the displacement increment between the current moment and the previous moment; if the shortest distance is not within the fifth preset distance range, the current distance away is determined to be zero.
6. The method according to claim 1, characterized in that, The control of longitudinal deceleration of the vehicle includes: Determine the initial acceleration of the vehicle when it enters the longitudinal deceleration, and obtain the real-time acceleration of the vehicle based on the initial acceleration and the preset jerk. The travel time from the real-time acceleration change to the target acceleration is obtained, where the maximum and minimum values of the target acceleration are related to the gear of the vehicle, and the maximum and minimum values of the preset acceleration are also related to the gear of the vehicle. Based on the travel time and the initial speed of the vehicle when it enters the longitudinal deceleration phase, a candidate speed of the vehicle is obtained; The maximum value between the preset speed limit of the ramp and the candidate speed is used as the minimum driving speed of the vehicle to control the longitudinal deceleration of the vehicle, and the vehicle deceleration is controlled by constant acceleration during the longitudinal deceleration process.
7. The method according to claim 6, characterized in that, The method of controlling the longitudinal deceleration of the vehicle further includes: Based on the initial acceleration of the longitudinal deceleration, the initial speed of the longitudinal deceleration, the constant acceleration of the longitudinal deceleration, and the minimum travel speed, determine the first target speed at each moment during the longitudinal deceleration process; The first weight coefficient of the first target speed is obtained by multiplying the conventional weight and the first adjustment factor, and the longitudinal deceleration of the vehicle is controlled based on the first weight coefficient and the first target speed; wherein, the value of the conventional weight is 0 to 1, and the value of the first adjustment factor is 1. The control of the vehicle's longitudinal parking includes: Based on the initial acceleration of the longitudinal parking, the initial velocity of the longitudinal parking, the constant acceleration of the longitudinal parking, and the parking velocity, the second target velocity at each moment during the longitudinal parking process is determined; The second weighting coefficient of the second target speed is obtained by multiplying the conventional weight and the second adjustment factor. The vehicle is controlled to park longitudinally based on the second weighting coefficient and the second target speed. The value of the second adjustment factor is as follows: when the initial speed of the vehicle when entering the longitudinal parking is within the first preset speed range, the value of the second adjustment factor is 0; when the initial speed of the vehicle when entering the longitudinal parking is not within the first preset speed range, the value of the second adjustment factor is less than 1.
8. The method according to claim 1, characterized in that, The step of controlling the vehicle to drive to parking using the lateral lane-changing trajectory, or the step of controlling the vehicle to park longitudinally, includes: Determine whether the current speed of the vehicle is within the second preset speed range. If it is, increment the number of times the vehicle has stopped by one. Otherwise, set the number of times the vehicle has stopped to zero. If the number of times the vehicle remains stationary exceeds the second threshold, then a request is initiated to instruct the electronic parking brake of the vehicle to be engaged. If the electronic parking brake has been engaged or is being engaged, then the number of times the electronic parking brake has been used is counted. If the number of applications exceeds the third threshold, it is determined that a request is initiated to instruct the release of the vehicle's electronic parking brake.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one piece of program code, which is loaded and executed by a processor to implement the method as described in any one of claims 1 to 8.
10. A vehicle, characterized in that, The vehicle includes one or more processors and one or more memories, wherein at least one piece of program code is stored in the one or more memories, and the at least one piece of program code is loaded and executed by the one or more processors to implement the method as claimed in any one of claims 1 to 8.
