Vehicle meeting processing method and device, electronic equipment and medium
By obtaining and analyzing vehicle driving information, the location and trajectory of the meeting vehicle are determined, and the vehicle is controlled to avoid collision, which solves safety problems caused by improper handling of meeting vehicles and improves driving safety.
Patent Information
- Application Number
- CN202310344721.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-15
AI Technical Summary
While the vehicle is in motion, improper handling of the intersection between the driver's vehicle and other vehicles or facilities may lead to nervousness, improper operation, and personal injury.
By obtaining the driving information of the own vehicle and the oncoming vehicle, it determines whether lateral avoidance is needed, calculates the meeting position and driving trajectory, and controls the own vehicle to drive along the trajectory to avoid collision.
It effectively avoids collisions and personal injuries caused by improper handling of meeting vehicles, and improves driving safety.
Smart Images

Figure CN118770202A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method, device, electronic equipment and medium for handling vehicle oncoming traffic. Background Art
[0002] During the driving process, the passing of upgoing and downgoing vehicles can be called a meeting. The lack of driving experience of the driver and the complex meeting scene (such as meeting on a narrow road) can easily cause the driver to feel nervous when meeting. Improper meeting handling operations can also cause personal injuries, such as vehicles scraping and colliding with other vehicles, roadside vehicles, roadside facilities, etc.
[0003] Thus, it is necessary to provide a method for handling vehicle oncoming traffic so as to avoid the situation where personal injury is caused by improper vehicle oncoming traffic handling. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and medium for handling vehicle oncoming traffic, which can avoid the situation where personal injury occurs due to improper vehicle oncoming traffic handling.
[0005] In a first aspect, an embodiment of the present application provides a method for handling oncoming vehicles, comprising: determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on driving information of the own vehicle and driving information of the oncoming vehicle located in front of the own vehicle; when it is determined that it is necessary to perform lateral avoidance of the oncoming vehicle, obtaining a meeting position for performing lateral avoidance of the oncoming vehicle; based on the meeting position, obtaining a driving trajectory of the own vehicle toward the meeting position; and controlling the own vehicle to travel along the driving trajectory.
[0006] Optionally, the determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle includes: obtaining the relative movement direction of the oncoming vehicle and the own vehicle based on the movement direction of the oncoming vehicle and the movement direction of the own vehicle; determining whether the relative movement direction of the oncoming vehicle and the own vehicle falls within a preset relative movement direction range, wherein the relative movement direction of two vehicles that are about to meet will fall within the preset relative movement direction range; and in the case that the relative movement direction of the oncoming vehicle and the own vehicle does not fall within the preset relative movement direction range, determining that it is not necessary to perform lateral avoidance of the oncoming vehicle.
[0007] Optionally, the determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle includes: obtaining the lateral movement speed of the oncoming vehicle; determining whether the lateral movement speed of the oncoming vehicle is less than a first preset threshold, wherein the lateral movement speed of the vehicle that is about to meet the own vehicle is less than the first preset threshold; and when it is determined that the lateral movement speed of the oncoming vehicle is not less than the first preset threshold, determining that it is not necessary to perform lateral avoidance of the oncoming vehicle.
[0008] Optionally, the determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle includes: obtaining a first longitudinal relative position distance between the oncoming vehicle and the own vehicle based on the longitudinal minimum distance of the oncoming vehicle and the longitudinal maximum distance of the own vehicle; determining whether the first longitudinal relative position distance between the oncoming vehicle and the own vehicle is less than a second preset threshold, wherein the first longitudinal relative position distance between the vehicle entering the avoidance range of the own vehicle and the own vehicle is less than the second preset threshold; and when it is determined that the first longitudinal relative position distance between the oncoming vehicle and the own vehicle is not less than the second preset threshold, determining that it is not necessary to perform lateral avoidance of the oncoming vehicle.
[0009] Optionally, the determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle includes: obtaining the second longitudinal relative position distance between the oncoming vehicle and the own vehicle based on the longitudinal maximum distance of the oncoming vehicle and the longitudinal maximum distance of the own vehicle; determining whether the second longitudinal relative position distance between the oncoming vehicle and the own vehicle is greater than a third preset threshold, wherein the third preset threshold is obtained based on the body length of the own vehicle, and the second longitudinal relative position distance between two vehicles that are about to meet is greater than the third preset threshold; when it is determined that the second longitudinal relative position distance between the oncoming vehicle and the own vehicle is not greater than the third preset threshold, determining that it is not necessary to perform lateral avoidance of the oncoming vehicle.
[0010] Optionally, the determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle includes: obtaining the longitudinal movement speed of the oncoming vehicle; determining whether the longitudinal movement speed of the oncoming vehicle is less than a fourth preset threshold, wherein the longitudinal movement speed of the vehicle that is about to meet the own vehicle is less than the fourth preset threshold; and when it is determined that the longitudinal movement speed of the oncoming vehicle is not less than the fourth preset threshold, determining that it is not necessary to perform lateral avoidance of the oncoming vehicle.
[0011] Optionally, obtaining the meeting position for lateral avoidance of the oncoming vehicle includes: obtaining a longitudinal safety distance based on the longitudinal relative speeds of the oncoming vehicle and the own vehicle and a preset safety time interval; obtaining a compensation distance based on the movement direction of the oncoming vehicle; and obtaining the longitudinal distance of the meeting position based on the longitudinal safety distance, the compensation distance, the longitudinal minimum distance of the oncoming vehicle, and the longitudinal maximum distance of the own vehicle.
[0012] Optionally, obtaining the compensation distance according to the movement direction of the oncoming vehicle includes: determining whether the movement direction of the oncoming vehicle falls within a preset movement direction range; when it is determined that the movement direction of the oncoming vehicle falls within the preset movement direction range, obtaining the compensation distance according to the body length of the oncoming vehicle and the movement direction of the oncoming vehicle; when it is determined that the movement direction of the oncoming vehicle does not fall within the preset movement direction range, determining that the compensation distance is zero.
[0013] Optionally, obtaining the meeting position for lateral avoidance of the oncoming vehicle includes: when at least one of the first condition and the second condition is met, taking the distance obtained by subtracting a preset lateral safety distance from the minimum lateral distance of the oncoming vehicle as the lateral distance of the meeting position; when neither the first condition nor the second condition is met, taking the distance obtained by adding the lateral safety distance from the maximum lateral distance of the oncoming vehicle as the lateral distance of the meeting position; wherein, the first condition includes: the minimum lateral distance of the oncoming vehicle is greater than zero; the second condition includes: the maximum lateral distance of the oncoming vehicle is greater than zero; the minimum lateral distance of the oncoming vehicle and the maximum lateral distance of the oncoming vehicle are both obtained based on a preset coordinate system.
[0014] Optionally, the obtaining of the driving trajectory of the vehicle toward the meeting position according to the meeting position includes: obtaining the maximum curvature on a reference line, wherein along the forward direction of the vehicle, the vehicle is located on the right side of the reference line; determining whether a third condition is met according to the maximum curvature and the maximum lateral distance of the oncoming vehicle, wherein the third condition includes: the maximum lateral distance of the oncoming vehicle is greater than zero, and the maximum curvature falls within a preset curvature range; and determining the value of the current lateral distance of the vehicle minus the lateral distance of the meeting position when at least one of the first condition and the third condition is met. The method comprises the following steps: determining a first distance difference obtained by subtracting the current lateral distance of the own vehicle from the lateral distance of the oncoming vehicle, and obtaining a lateral speed according to the first distance difference and a predetermined movement time required for the own vehicle to travel to the meeting position; when both the first condition and the third condition are not met, determining a second distance difference obtained by subtracting the current lateral distance of the own vehicle from the lateral distance of the oncoming vehicle, and obtaining a lateral speed according to the second distance difference and the movement time; wherein the first condition includes: the minimum lateral distance of the oncoming vehicle is greater than zero; and obtaining a driving trajectory of the own vehicle toward the meeting position according to the movement time and the obtained lateral speed.
[0015] Optionally, obtaining the driving trajectory of the own vehicle toward the meeting position according to the meeting position includes: obtaining a longitudinal relative distance according to a current longitudinal distance of the own vehicle and a longitudinal distance of the meeting position; and obtaining the movement time according to the longitudinal relative distance and a longitudinal speed of the own vehicle.
[0016] Optionally, obtaining the driving trajectory of the vehicle toward the meeting position based on the movement time and the obtained lateral speed includes: obtaining the longitudinal distance and the lateral distance at a series of time points within a subsequent period of time by linear interpolation based on the movement time and the obtained lateral speed, wherein the duration of the period of time is the movement time; obtaining the position points at the series of time points based on the longitudinal distance and the lateral distance at the series of time points, so as to obtain the driving trajectory including the position points at the series of time points.
[0017] Optionally, the obtaining of the driving trajectory of the own vehicle toward the meeting position according to the meeting position includes: obtaining a first position and a second position for performing cubic polynomial fitting according to the current position of the own vehicle and the meeting position; obtaining parameters of the cubic polynomial according to the current position of the own vehicle, the meeting position, the first position and the second position; using a series of longitudinal distances as independent variables of the cubic polynomial and a series of lateral distances corresponding one-to-one to the series of longitudinal distances as dependent variables, and obtaining the series of lateral distances according to the parameters of the cubic polynomial, wherein the series of longitudinal distances are between the current longitudinal distance of the own vehicle and the longitudinal distance of the meeting position; obtaining a series of position points according to the series of longitudinal distances and the series of lateral distances to obtain the driving trajectory including the series of position points.
[0018] In a second aspect, an embodiment of the present application provides a meeting processing device, comprising: a determination module, used to determine whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle; a first acquisition module, used to obtain a meeting position for lateral avoidance of the oncoming vehicle when it is determined that it is necessary to perform lateral avoidance of the oncoming vehicle; a second acquisition module, used to obtain a driving trajectory of the own vehicle towards the meeting position based on the meeting position; and a control module, used to control the own vehicle to travel along the driving trajectory.
[0019] In a third aspect, an embodiment of the present application provides an electronic chip, comprising: a processor, which is used to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute any method as in the first aspect.
[0020] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory for storing computer program instructions, a processor for executing the computer program instructions, and a communication device, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute a method as described in any one of the first aspects.
[0021] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes any method in the first aspect.
[0022] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run on a computer, the computer executes any method in the first aspect.
[0023] The oncoming vehicle handling method provided in the embodiment of the present application includes: determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle; obtaining a meeting position for lateral avoidance of the oncoming vehicle when it is determined that it is necessary to perform lateral avoidance of the oncoming vehicle; obtaining the driving trajectory of the own vehicle toward the meeting position based on the meeting position; and controlling the own vehicle to travel along the driving trajectory. The embodiment of the present application combines the vehicle driving data to determine whether the own vehicle needs to perform lateral avoidance of the oncoming vehicle. If so, the own vehicle can be controlled to travel along the planned driving trajectory to the planned meeting position to perform lateral avoidance of the oncoming vehicle, thereby avoiding the situation where personal injury is caused by improper oncoming vehicle handling. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 A flowchart of a method for handling a vehicle meeting provided in one embodiment of the present application;
[0026] Figure 2 A schematic diagram of the relative movement direction of an oncoming vehicle and a self-vehicle provided in one embodiment of the present application;
[0027] Figure 3 A flowchart of an implementation method for determining whether it is necessary to perform lateral avoidance of an oncoming vehicle provided in one embodiment of the present application;
[0028] Figure 4 A schematic diagram of the relative positions of an oncoming vehicle and a vehicle provided in one embodiment of the present application;
[0029] Figure 5 A flowchart of an implementation method for obtaining a meeting position provided by an embodiment of the present application;
[0030] Figure 6 A flowchart of an implementation method for obtaining a vehicle trajectory provided by an embodiment of the present application;
[0031] Figure 7 A block diagram of a vehicle-meeting processing device provided in one embodiment of the present application;
[0032] Figure 8 A schematic diagram of the structure of a computer device provided for one embodiment of the present application. DETAILED DESCRIPTION
[0033] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0034] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0035] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0036] It should be understood that the term "at least one" used in this article refers to one or more, and "plurality" refers to two or more. The term "and / or" used in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, wherein a, b, c can be single or multiple.
[0037] It should be understood that, although the terms first, second, etc. may be used to describe the set thresholds in the embodiments of the present application, these set thresholds should not be limited to these terms. These terms are only used to distinguish the set thresholds from each other. For example, without departing from the scope of the embodiments of the present application, the first set threshold may also be referred to as the second set threshold, and similarly, the second set threshold may also be referred to as the first set threshold.
[0038] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.
[0039] like Figure 1 As shown, the embodiment of the present application provides a method for handling a vehicle meeting, including steps 101 to 104. Figure 1 The execution subject of the illustrated embodiment may be an electronic device. In one embodiment, the electronic device may be an automatic driving controller of the vehicle.
[0040] Step 101, based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle, determine whether it is necessary to perform lateral avoidance of the oncoming vehicle.
[0041] In one embodiment, if it is determined that there is no need to perform lateral avoidance for the oncoming vehicle, the process may be terminated so that no lateral avoidance for the oncoming vehicle is performed.
[0042] In one embodiment, it can be based on the sensor data of the vehicle itself (such as images and videos collected by a driving recorder) or the driving information of the oncoming vehicle (such as movement direction, vehicle position, lateral driving speed, longitudinal driving speed, etc.).
[0043] Step 102: When it is determined that the vehicle needs to avoid the oncoming vehicle laterally, a meeting position for avoiding the oncoming vehicle laterally is obtained.
[0044] Step 103, according to the meeting position, obtain the driving trajectory of the vehicle towards the meeting position.
[0045] Step 104, controlling the vehicle to travel along the driving trajectory.
[0046] Figure 1 The embodiment shown combines the vehicle driving data to determine whether the vehicle needs to make a lateral avoidance to the oncoming vehicle (or other vehicle). If so, the vehicle can be controlled to drive along the planned driving trajectory to the planned meeting position to make a lateral avoidance to the oncoming vehicle, thereby avoiding the situation where people are injured due to improper handling of the meeting. Figure 1 The illustrated embodiment can implement identification and selection of a meeting target through step 101 , calculation of a safe meeting point through step 102 , and generation of a meeting driving trajectory through step 103 .
[0047] In one embodiment, considering that two vehicles about to meet usually have a suitable relative motion direction, the relative motion direction of the own vehicle and the oncoming vehicle can be combined to determine whether it is necessary to perform lateral avoidance of the oncoming vehicle.
[0048] In one embodiment, considering that the oncoming vehicle that is about to meet the vehicle should generally have an appropriate lateral speed, the lateral speed of the oncoming vehicle may be combined to determine whether it is necessary to perform lateral avoidance of the oncoming vehicle.
[0049] In one embodiment, considering that the oncoming vehicle that is about to meet the own vehicle is usually within the consideration range of the own vehicle's avoidance, the longitudinal relative position distance between the own vehicle and the oncoming vehicle can be combined to determine whether it is necessary to perform lateral avoidance of the oncoming vehicle.
[0050] In one embodiment, considering that the oncoming vehicle that is about to meet the own vehicle usually has not passed the own vehicle yet, the longitudinal relative position distance between the own vehicle and the oncoming vehicle can be combined to determine whether it is necessary to perform lateral avoidance of the oncoming vehicle.
[0051] In one embodiment, considering that the oncoming vehicle that is about to meet the vehicle should generally have an appropriate longitudinal speed, the longitudinal speed of the oncoming vehicle may be combined to determine whether to perform lateral avoidance of the oncoming vehicle.
[0052] In one embodiment of the present application, whether it is necessary to perform lateral avoidance of the oncoming vehicle can be determined based on at least one (i.e., any one, any multiple, or all) of the following judgment items: whether the self-vehicle and the oncoming vehicle have a suitable relative motion direction, whether the oncoming vehicle has a suitable lateral speed, whether the oncoming vehicle enters the avoidance consideration range of the self-vehicle, whether the oncoming vehicle has not passed the self-vehicle, and whether the oncoming vehicle has a suitable longitudinal speed.
[0053] In one embodiment, if any one of the judgment items is no, it can be determined that there is no need to perform lateral avoidance of the oncoming vehicle. If all of them are judged as yes, it can be determined that it is necessary to perform lateral avoidance of the oncoming vehicle. In one embodiment, if all of them are judged as yes, the preset flag "meeting_action" can be set to true, otherwise it is set to false. If it is set to true, it can be considered that the vehicle and the oncoming vehicle will meet, and the oncoming vehicle is an object that needs to be considered for meeting, and lateral avoidance is required. If it is set to false, it can be considered that the vehicle and the oncoming vehicle will not meet, so lateral avoidance is not required.
[0054] In one embodiment, based on the movement trend of the oncoming vehicle and the relative position of the oncoming vehicle to the own vehicle, consideration may be given to avoiding the oncoming vehicle that has avoidance space and a stable movement trend.
[0055] It is feasible that the execution order of each judgment item may not be limited, for example, each judgment item may be executed in sequence according to a preset execution order, or each judgment item may be executed asynchronously. When each judgment item is executed in sequence, the execution may end when any judgment item is determined to be negative, and the remaining unexecuted judgment items are no longer executed.
[0056] Regarding the situation where it is determined whether it is necessary to perform lateral avoidance of the oncoming vehicle based on whether there is a suitable relative motion direction between the own vehicle and the oncoming vehicle, in one embodiment of the present application, step 101 may include: obtaining the relative motion direction of the oncoming vehicle and the own vehicle based on the motion direction of the oncoming vehicle and the motion direction of the own vehicle; determining whether the relative motion direction of the oncoming vehicle and the own vehicle falls within a preset relative motion direction range, wherein the relative motion direction of two vehicles that are about to meet will fall within the preset relative motion direction range; in the case where the relative motion direction of the oncoming vehicle and the own vehicle does not fall within the preset relative motion direction range, determining that it is not necessary to perform lateral avoidance of the oncoming vehicle.
[0057] In one embodiment, the relative movement direction between the oncoming vehicle and the own vehicle can be calculated according to the following formula (1).
[0058] diff_frenet_yaw=obj_frenet_yaw-ego_frenet_yaw (1)
[0059] Among them, diff_frenet_yaw can be the relative movement direction of the oncoming vehicle and the ego vehicle, obj_frenet_yaw can be the movement direction of the oncoming vehicle, ego_frenet_yaw can be the movement direction of the ego vehicle, the movement direction of the vehicle can be reflected by the heading angle (yaw) of the vehicle, and frenet can represent the preset coordinate system.
[0060] In one embodiment, the situation where the relative motion direction between the oncoming vehicle and the own vehicle falls within the preset relative motion direction range may include: at least one of |diff_frenet_yaw|>5 / 6*PI (PI is 180°) and diff_frenet_yaw>3 / 4*PI is established.
[0061] For example, please refer to Figure 2 , d1 is the moving direction of the vehicle. When the moving direction of the oncoming vehicle is any one of d21~d24, it can be determined that at least one of |diff_frenet_yaw|>5 / 6*PI and diff_frenet_yaw>3 / 4*PI is established, so it is necessary to perform lateral avoidance of the oncoming vehicle.
[0062] in, Figure 2 The x-axis shown can be the vertical axis of the Frenet coordinate system (can also be represented by s), and the horizontal axis of the Frenet coordinate system, that is, the y-axis (can also be represented by l), is Figure 2 Not shown.
[0063] In one embodiment, the situation where the relative motion direction between the oncoming vehicle and the own vehicle falls within the preset relative motion direction range may include: 4 / 9*PI<|diff_frenet_yaw|<5 / 9*PI does not hold.
[0064] For example, please refer to Figure 2 , d1 is the direction of movement of the vehicle. When the direction of movement of the oncoming vehicle is d25, it can be determined that 4 / 9*PI<|diff_frenet_yaw|<5 / 9*PI holds, so there is no need to perform lateral avoidance for the oncoming vehicle. For oncoming vehicles whose movement direction is substantially perpendicular to the direction of movement of the vehicle, lateral avoidance for the oncoming vehicle can be ignored.
[0065] In one embodiment, it can be determined whether |diff_frenet_yaw|>5 / 6*PI, diff_frenet_yaw>3 / 4*PI, and 4 / 9*PI<|diff_frenet_yaw|<5 / 9*PI are established. If 4 / 9*PI<|diff_frenet_yaw|<5 / 9*PI is not established, and at least one of |diff_frenet_yaw|>5 / 6*PI and diff_frenet_yaw>3 / 4*PI is established, the preset flag "normal_obj" can be set to true, otherwise it is set to false. If it is set to false, lateral avoidance may not be performed.
[0066] The identification bit "normal_obj" can indicate that the oncoming vehicle has a movement direction that will meet the own vehicle, and the oncoming vehicle is a normal oncoming vehicle (reverse_motion_obj) and a non-perpendicular own vehicle, that is, the relative movement direction of the oncoming vehicle and the own vehicle falls within the preset relative movement direction range.
[0067] Regarding the situation where it is determined whether it is necessary to perform lateral avoidance of an oncoming vehicle based on whether the oncoming vehicle has a suitable lateral speed, in one embodiment of the present application, step 101 may include: obtaining the lateral movement speed of the oncoming vehicle; determining whether the lateral movement speed of the oncoming vehicle is less than a first preset threshold, wherein the lateral movement speed of the vehicle that is about to meet the own vehicle is less than the first preset threshold; and determining that it is not necessary to perform lateral avoidance of the oncoming vehicle when it is determined that the lateral movement speed of the oncoming vehicle is not less than the first preset threshold.
[0068] In one embodiment, taking obj_lat_v to represent the lateral movement speed of the oncoming vehicle and lat_stable_vel_limit to represent the lateral movement stability threshold as an example, it can be determined whether |obj_lat_v| < lat_stable_vel_limit holds. The case where it holds can indicate that the lateral movement speed of the oncoming vehicle is less than the first preset threshold, and can also indicate that the oncoming vehicle has a stable lateral movement trend. Based on the first preset threshold, the lateral speed of the oncoming vehicle is restricted accordingly.
[0069] For the case of determining whether to perform lateral avoidance of the oncoming vehicle based on whether the oncoming vehicle enters the self-vehicle avoidance consideration range, in one embodiment of the present application, step 101 may include: obtaining the first longitudinal relative position distance between the oncoming vehicle and the self-vehicle according to the longitudinal minimum distance of the oncoming vehicle and the longitudinal maximum distance of the self-vehicle; determining whether the first longitudinal relative position distance between the oncoming vehicle and the self-vehicle is less than a second preset threshold, where the first longitudinal relative position distance between the vehicle entering the self-vehicle avoidance range and the self-vehicle is less than the second preset threshold; and in the case where it is determined that the first longitudinal relative position distance between the oncoming vehicle and the self-vehicle is not less than the second preset threshold, determining that there is no need to perform lateral avoidance of the oncoming vehicle.
[0070] In one embodiment, the first longitudinal relative position distance between the oncoming vehicle and the self-vehicle can be calculated according to the following formula (2).
[0071] diff_relative_x1 = obj_min_x - ego_front_x (2)
[0072] Wherein, diff_relative_x1 can represent the first longitudinal relative position distance between the oncoming vehicle and the self-vehicle, obj_min_x can represent the longitudinal minimum distance of the oncoming vehicle, and ego_front_x can represent the longitudinal maximum distance of the self-vehicle. Front can correspond to the front of the self-vehicle. The longitudinal distance of the front of the oncoming vehicle is less than the longitudinal distance of the rear of the oncoming vehicle.
[0073] The value of the second preset threshold can be set as needed. For example, in one embodiment, the value of the second preset threshold can be 5m. The case where diff_relative_x1 < 5.0m can indicate that the oncoming vehicle enters the self-vehicle avoidance consideration range, and the longitudinal distance between the oncoming vehicle and the self-vehicle is relatively close. In this way, the oncoming vehicles that are far from the self-vehicle can be excluded, and lateral avoidance does not need to be performed on the oncoming vehicles that are far from the self-vehicle and have not entered the self-vehicle avoidance consideration range.
[0074] Regarding the situation where it is determined whether it is necessary to perform lateral avoidance of an oncoming vehicle based on whether the oncoming vehicle has not passed the own vehicle, in one embodiment of the present application, step 101 may include: obtaining a second longitudinal relative position distance between the oncoming vehicle and the own vehicle based on the maximum longitudinal distance of the oncoming vehicle and the maximum longitudinal distance between the own vehicle; determining whether the second longitudinal relative position distance between the oncoming vehicle and the own vehicle is greater than a third preset threshold, wherein the third preset threshold is obtained based on the body length of the own vehicle, and the second longitudinal relative position distance between the two vehicles that are about to meet is greater than the third preset threshold; when it is determined that the second longitudinal relative position distance between the oncoming vehicle and the own vehicle is not greater than the third preset threshold, determining that it is not necessary to perform lateral avoidance of the oncoming vehicle.
[0075] In one embodiment, the second longitudinal relative position distance between the oncoming vehicle and the own vehicle can be calculated according to the following formula (3).
[0076] diff_relative_x2=obj_max_x-ego_front_x (3)
[0077] Among them, diff_relative_x2 can represent the second longitudinal relative position distance between the oncoming vehicle and the ego vehicle, obj_max_x can represent the maximum longitudinal distance of the oncoming vehicle, ego_front_x can represent the maximum longitudinal distance of the ego vehicle, and front can correspond to the front of the ego vehicle.
[0078] The value of the third preset threshold value can be set as needed. For example, in one embodiment, the value of the third preset threshold value can be -3 / 4*vehicle_param_length, where vehicle_param_length can be the length of the vehicle body (e.g. Figure 3 The length a shown in the figure). The situation where diff_relative_x2>-3 / 4*vehicle_param_length may indicate that the oncoming vehicle has not passed the vehicle yet and there is a possibility of meeting the vehicle. In this way, the oncoming vehicle that has basically passed the vehicle can be excluded and the oncoming vehicle that has basically passed the vehicle may not be lateral avoided.
[0079] In one embodiment, it can be determined whether diff_relative_x2>-3 / 4*vehicle_param_length is true. If true, the preset flag "rear_obj_filter_condition" can be set to true, otherwise it can be set to false. If it is set to false, lateral avoidance may not be performed.
[0080] Regarding the situation where whether it is necessary to perform lateral avoidance of an oncoming vehicle is determined based on whether the oncoming vehicle has a suitable longitudinal speed, in one embodiment of the present application, step 101 may include: obtaining the longitudinal movement speed of the oncoming vehicle; determining whether the longitudinal movement speed of the oncoming vehicle is less than a fourth preset threshold, wherein the longitudinal movement speed of the vehicle that is about to meet the own vehicle is less than the fourth preset threshold; and determining that it is not necessary to perform lateral avoidance of the oncoming vehicle when it is determined that the longitudinal movement speed of the oncoming vehicle is not less than the fourth preset threshold.
[0081] The value of the fourth preset threshold value can be set as needed. For example, in one embodiment, the value of the fourth preset threshold value can be 0.5*v_limit, where v_limit can represent the maximum speed limit. With obj_lon_vel representing the longitudinal speed of the oncoming vehicle, the situation where obj_lon_vel<0.5*v_limit can represent that the longitudinal speed of the oncoming vehicle meets the speed limit requirement and there is a possibility of meeting the vehicle. For an oncoming vehicle whose longitudinal speed exceeds the fourth preset threshold value, lateral avoidance may not be performed on it.
[0082] In one embodiment, it can be determined whether obj_lon_vel<0.5*v_limit holds true, and if so, a preset flag "obj_lon_vel_condition" can be set to true, otherwise set to false. If set to false, lateral avoidance may not be performed.
[0083] In one embodiment of the present application, please refer to Figure 4 , step 101 may include the following steps 1011 to 1018:
[0084] Step 1011, according to the movement direction of the oncoming vehicle and the movement direction of the own vehicle, obtain the relative movement direction of the oncoming vehicle and the own vehicle.
[0085] Step 1012, determine whether the relative motion direction of the oncoming vehicle and the own vehicle falls within the preset relative motion direction range, if so, execute step 1013, wherein the relative motion direction of the two vehicles about to meet will fall within the preset relative motion direction range. If not, the process ends without performing lateral avoidance of the oncoming vehicle.
[0086] Step 1013, determine whether the lateral movement speed of the oncoming vehicle is less than a first preset threshold, if so, proceed to step 1014, wherein the lateral movement speed of the vehicle about to meet the vehicle is less than the first preset threshold. If not, the process ends without performing lateral avoidance of the oncoming vehicle.
[0087] Step 1014: Obtain a first longitudinal relative position distance between the oncoming vehicle and the own vehicle based on the minimum longitudinal distance of the oncoming vehicle and the maximum longitudinal distance of the own vehicle.
[0088] Step 1015, determine whether the first longitudinal relative position distance between the oncoming vehicle and the vehicle is less than a second preset threshold value, if so, proceed to step 1016, wherein the first longitudinal relative position distance between the vehicle entering the avoidance range of the vehicle and the vehicle is less than the second preset threshold value. If not, the process ends, and no lateral avoidance is performed on the oncoming vehicle.
[0089] Step 1016: Obtain a second longitudinal relative position distance between the oncoming vehicle and the own vehicle based on the maximum longitudinal distance of the oncoming vehicle and the maximum longitudinal distance of the own vehicle.
[0090] Step 1017, determine whether the second longitudinal relative position distance between the oncoming vehicle and the own vehicle is greater than a third preset threshold value, if so, proceed to step 1018, wherein the third preset threshold value is obtained according to the length of the own vehicle body, and the second longitudinal relative position distance between the two vehicles about to meet is greater than the third preset threshold value. If not, the process ends, and no lateral avoidance is performed on the oncoming vehicle.
[0091] Step 1018, determine whether the longitudinal movement speed of the oncoming vehicle is less than a fourth preset threshold value. If so, determine that it is necessary to perform lateral avoidance of the oncoming vehicle, wherein the longitudinal movement speed of the vehicle that is about to meet the own vehicle is less than the fourth preset threshold value.
[0092] When it is determined that the oncoming vehicle needs to be avoided laterally, that is, after the target vehicle that needs to be avoided is screened, the desired meeting position for lateral avoidance of the oncoming vehicle can be calculated. Specifically, the lateral distance and longitudinal distance of the meeting position (or meeting point, meeting position point) can be determined respectively to obtain the meeting position. The meeting position can be a position point where there is no lateral interference between the own vehicle and the oncoming vehicle.
[0093] To determine the longitudinal distance of the meeting position, in one embodiment of the present application, the step of obtaining the meeting position for lateral avoidance of the oncoming vehicle in step 102 may include: obtaining the longitudinal safety distance based on the longitudinal relative speed of the oncoming vehicle and the own vehicle and a preset safety time interval; obtaining the compensation distance based on the moving direction of the oncoming vehicle; and obtaining the longitudinal distance of the meeting position based on the longitudinal safety distance, the compensation distance, the longitudinal minimum distance of the oncoming vehicle, and the longitudinal maximum distance of the own vehicle.
[0094] In one embodiment, the longitudinal safety distance may be calculated according to the following formula (4).
[0095] lon_meeting_safe_dist=0.5+min(1.0,relative_vel*care_t) (4)
[0096] Among them, lon_meeting_safe_dist can represent the longitudinal safety distance, relative_vel can represent the longitudinal relative speed between the oncoming vehicle and the vehicle, and care_t can represent the safety time interval (or safety time interval).
[0097] In one embodiment, the safety time interval may be any value between 1.5 and 3.0.
[0098] In one embodiment, the longitudinal distance of the meeting position can be calculated according to the following formula (5).
[0099] P_pre.s=(lon_meeting_safe_dist+Compensation distance)-ego_front_x-obj_min_x(5)
[0100] Among them, P_pre.s can represent the longitudinal distance of the meeting position, lon_meeting_safe_dist can represent the longitudinal safety distance, Compensation distance can represent the compensation distance, ego_front_x can represent the maximum longitudinal distance of the ego vehicle, and obj_min_x can represent the minimum longitudinal distance of the oncoming vehicle.
[0101] Please refer to Figure 3 , the minimum longitudinal distance of the vehicle can be x0 (corresponding to the rear of the vehicle), the maximum longitudinal distance of the vehicle can be x1 (corresponding to the front of the vehicle), the minimum longitudinal distance of the oncoming vehicle can be x2 (corresponding to the front of the oncoming vehicle), and the maximum longitudinal distance of the oncoming vehicle can be x3 (corresponding to the rear of the oncoming vehicle).
[0102] In one embodiment of the present application, the step of obtaining the compensation distance according to the movement direction of the oncoming vehicle may include: determining whether the movement direction of the oncoming vehicle falls within a preset movement direction range; when it is determined that the movement direction of the oncoming vehicle falls within the preset movement direction range, obtaining the compensation distance according to the body length of the oncoming vehicle and the movement direction of the oncoming vehicle.
[0103] In one embodiment, if the movement direction of the oncoming vehicle falls within the preset movement direction range, it can be considered that the running state of the oncoming vehicle is unstable, that is, the oncoming vehicle is in an uncertain state, and the compensation distance can be obtained according to the body length of the oncoming vehicle and the movement direction of the oncoming vehicle. Otherwise, the compensation distance may not be set, that is, the compensation distance is determined to be zero.
[0104] In one embodiment, the situation where the movement direction of the oncoming vehicle falls within the preset movement direction range may include: 11 / 12*PI>obj_frenet_yaw>2 / 3*PI, and obj_frenet_yaw may represent the movement direction of the oncoming vehicle.
[0105] When the moving direction of the oncoming vehicle falls within the preset moving direction range, in one embodiment, the compensation distance can be calculated according to the following formula (6).
[0106] Compensation distance=obj_length*cos(PI-obj_frenet_yaw) (6)
[0107] Among them, Compensation distance can represent the compensation distance, obj_length can represent the body length of the oncoming vehicle, and obj_frenet_yaw can represent the movement direction of the oncoming vehicle.
[0108] In one embodiment of the present application, when it is determined that the moving direction of the oncoming vehicle does not fall within a preset moving direction range, the compensation distance is determined to be zero.
[0109] To determine the lateral distance of the meeting position, in one embodiment of the present application, the step of obtaining the meeting position for lateral avoidance of the oncoming vehicle in step 102 may include: when at least one of the first condition and the second condition is met, the distance obtained by subtracting the preset lateral safety distance from the minimum lateral distance of the oncoming vehicle is used as the lateral distance of the meeting position (i.e., obj_min_y-lat_safe_distance). The minimum lateral distance of the oncoming vehicle is obtained based on a preset coordinate system.
[0110] To determine the lateral distance of the meeting position, in one embodiment of the present application, the step of obtaining the meeting position for lateral avoidance of the oncoming vehicle in step 102 may include: when both the first condition and the second condition are not met, the distance obtained by adding the lateral maximum distance of the oncoming vehicle to the lateral safety distance is used as the lateral distance of the meeting position (i.e., obj_max_y+lat_safe_distance). The lateral maximum distance of the oncoming vehicle is obtained based on a preset coordinate system.
[0111] In one embodiment, the first condition includes: the minimum lateral distance of the oncoming vehicle is greater than zero (ie, obj_min_y>0).
[0112] In one embodiment, the second condition includes: the maximum lateral distance of the oncoming vehicle is greater than zero (ie, obj_max_y>0).
[0113] In another embodiment, the second condition includes: the relative movement direction between the oncoming vehicle and the own vehicle falls within a preset relative movement direction range, and the maximum lateral distance of the oncoming vehicle is greater than zero (ie, the flag bit normal_obj is true&&obj_max_y>0).
[0114] Based on a preset coordinate system (such as a Frenet coordinate system), the lateral distance of a certain position on the oncoming vehicle can be a positive value or a negative value. It is feasible that the positive or negative value of the lateral distance can reflect the relative position relationship between the position of the oncoming vehicle and the reference line. In the forward direction of the own vehicle, the own vehicle can be located on the right side of the reference line.
[0115] In one embodiment, the lateral safety distance can be pre-set as needed.
[0116] In one embodiment, the lateral safety distance may be calculated according to the following formula (7).
[0117] lat_safe_distance=dynamic_safe_dist+0.5*vehicle_width (7)
[0118] Among them, lat_safe_distance can represent the lateral safety distance, dynamic_safe_dist can represent the dynamic vehicle safety space, and vehicle_width can represent the vehicle width. The dynamic vehicle safety space can be set as needed, and the dynamic vehicle safety space can reflect the safe distance that should exist between the outer wall of the vehicle and the outer wall of other vehicles.
[0119] After obtaining the lateral distance of the meeting position (e.g., recorded as P_pre.l, or recorded as P_pre{y}) and the longitudinal distance of the meeting position (e.g., recorded as P_pre.s, or recorded as P_pre{x}), the corresponding meeting position (e.g., recorded as P_pre, or recorded as P_pre{x,y}) can be determined. Among them, s and x can correspond to the longitudinal axis of the coordinate system, and l and y can correspond to the transverse axis of the coordinate system.
[0120] In one embodiment of the present application, please refer to Figure 5 , step 102 may include the following steps 1021 to 1209:
[0121] Step 1021, obtaining a longitudinal safety distance according to the longitudinal relative speeds of the oncoming vehicle and the own vehicle and a preset safety time interval.
[0122] Step 1022, determine whether the movement direction of the oncoming vehicle falls within the preset movement direction range, if so, execute step 1023, otherwise determine that the compensation distance is zero, and execute step 1024.
[0123] Step 1023, obtaining a compensation distance according to the body length of the oncoming vehicle and the moving direction of the oncoming vehicle.
[0124] Step 1024, obtaining the longitudinal distance of the meeting position according to the longitudinal safety distance, the compensation distance, the longitudinal minimum distance of the oncoming vehicle, and the longitudinal maximum distance of the own vehicle.
[0125] Step 1025, determine whether the first condition is met, the first condition includes: the minimum lateral distance of the oncoming vehicle is greater than zero, if so, execute step 1028, otherwise execute step 1026, wherein the minimum lateral distance of the oncoming vehicle is obtained based on a preset coordinate system.
[0126] Step 1026, determine whether the second condition is met, the second condition includes: the relative movement direction of the oncoming vehicle and the own vehicle falls within the preset relative movement direction range, and the maximum lateral distance of the oncoming vehicle is greater than zero, if so, execute step 1028, otherwise execute step 1027, wherein the maximum lateral distance of the oncoming vehicle is obtained based on the preset coordinate system.
[0127] Step 1027 , taking the distance obtained by adding the lateral maximum distance of the oncoming vehicle to the lateral safety distance as the lateral distance of the meeting position, and executing step 1029 .
[0128] When both the first condition and the second condition are not met, step 1027 is executed.
[0129] Step 1028 , taking the distance obtained by subtracting the lateral safety distance from the lateral minimum distance of the oncoming vehicle as the lateral distance of the meeting position, and executing step 1029 .
[0130] If at least one of the first condition and the second condition is met, step 1028 is executed.
[0131] Step 1029: Obtain the meeting position according to the obtained longitudinal distance of the meeting position and the lateral distance of the meeting position.
[0132] After determining the meeting position, a trajectory route to the meeting position can be generated. In one embodiment, the trajectory route can be generated by linear interpolation, and in another embodiment, the trajectory route can be generated by a cubic polynomial.
[0133] In one embodiment, the movement time and lateral speed required for the vehicle to drive to the meeting position may be obtained first, and then the trajectory route may be generated by linear interpolation according to the obtained movement time and lateral speed.
[0134] To determine the movement time, in one embodiment of the present application, step 103 may include: obtaining a longitudinal relative distance based on the current longitudinal distance of the vehicle and the longitudinal distance of the meeting position; obtaining the movement time based on the longitudinal relative distance and the longitudinal speed of the vehicle, that is, obtaining the movement time required for the vehicle to travel to the meeting position.
[0135] In one embodiment, the current longitudinal distance of the vehicle may be zero. Based on this, the longitudinal relative distance may be represented by the longitudinal distance P_pre{x} of the meeting position.
[0136] In one embodiment, the movement time can be calculated according to the following formula (8).
[0137] t_avd=P_pre{x} / ego_lon_vel (8)
[0138] Among them, t_avd can represent the motion time, P_pre{y} can represent the longitudinal relative distance, and ego_lon_vel can represent the longitudinal speed of the vehicle.
[0139] To determine the lateral speed, in one embodiment of the present application, step 103 may include: obtaining the maximum curvature on the reference line (for example, denoted as max_ref_curve), where the vehicle is located on the right side of the reference line along the forward direction of the vehicle; and determining whether the third condition is met based on the maximum curvature and the maximum lateral distance of the oncoming vehicle.
[0140] In one embodiment, the third condition includes: the maximum lateral distances of the oncoming vehicles are greater than zero, and the maximum curvature falls within a preset curvature range (ie, (obj_max_y>0)&&max_ref_curve falls within the curvature range).
[0141] The curvature range can be set as needed, for example, the absolute value of the maximum curvature can be set to be less than 0.02 (i.e.
[0142] |max_ref_curve|<0.02).
[0143] In another embodiment, the third condition includes: the relative movement direction of the oncoming vehicle and the own vehicle falls within the preset relative movement direction range, the maximum lateral distance of the oncoming vehicle is greater than zero, and the maximum curvature falls within the preset curvature range (that is, the flag bit normal_obj is true&&(obj_max_y>0)&&max_ref_curve falls within the curvature range).
[0144] In one embodiment of the present application, when at least one of the first condition and the third condition is satisfied, a first distance difference is obtained by subtracting the lateral distance of the oncoming position from the current lateral distance of the vehicle, and the lateral speed is obtained according to the first distance difference and the predetermined movement time required for the vehicle to travel to the oncoming position; and the driving trajectory of the vehicle to the oncoming position is obtained according to the movement time and the obtained lateral speed. Among them, the first condition includes: the minimum lateral distance of the oncoming vehicle is greater than zero (i.e., obj_min_y>0).
[0145] In one embodiment, if at least one of the first condition and the third condition is met, it can be considered that the rightward avoidance condition is met.
[0146] In one embodiment, the lateral velocity may be calculated according to the following formula (9).
[0147] v_lat=(ego_l-P_pre{y}) / t_avd (9)
[0148] Among them, v_lat can represent the lateral speed, ego_l can represent the current lateral distance of the vehicle, P_pre{y} can represent the lateral distance of the oncoming vehicle, and t_avd can represent the movement time.
[0149] In one embodiment of the present application, when neither the first condition nor the third condition is satisfied, a second distance difference is obtained by subtracting the current lateral distance of the vehicle from the lateral distance of the oncoming vehicle, and the lateral speed is obtained based on the second distance difference and the movement time; and the driving trajectory of the vehicle toward the oncoming vehicle is obtained based on the movement time and the obtained lateral speed. The first condition includes: the minimum lateral distance of the oncoming vehicle is greater than zero (i.e., obj_min_y>0).
[0150] In one embodiment, if both the first condition and the third condition are not met, it can be considered that the left-bound avoidance condition is met.
[0151] In one embodiment, the lateral velocity may be calculated according to the following formula (10).
[0152] v_lat=(P_pre{y}-ego_l) / t_avd (10)
[0153] Among them, v_lat can represent the lateral speed, ego_l can represent the current lateral distance of the ego vehicle (or the lateral coordinate of the ego vehicle), P_pre{y} can represent the lateral distance of the oncoming vehicle, and t_avd can represent the movement time.
[0154] After obtaining the motion time and lateral speed (ie, obtaining the motion state {v_lat, t_avd}), the driving trajectory can be generated accordingly.
[0155] To generate a driving trajectory, in one embodiment of the present application, step 103 may include: obtaining the longitudinal distance and lateral distance at a series of time points within a subsequent period of time (i.e., 0 to t_avd) by linear interpolation according to the movement time and the obtained lateral speed, wherein the duration of a period of time is the movement time; obtaining the position points at a series of time points according to the longitudinal distance and lateral distance at a series of time points to obtain a driving trajectory including the position points at a series of time points.
[0156] In one embodiment, a series of time points may be obtained based on a preset time interval.
[0157] In one embodiment, the lateral spacing distance between position points at adjacent time points may be obtained according to the lateral speed and the time interval.
[0158] In one embodiment, the longitudinal interval distance between position points at adjacent time points may be obtained according to the longitudinal velocity and the time interval.
[0159] In one embodiment of the present application, please refer to Figure 6 , step 103 may include the following steps 1031 to 1038.
[0160] Step 1031, obtaining the longitudinal relative distance according to the current longitudinal distance of the own vehicle and the longitudinal distance of the oncoming vehicle position.
[0161] Step 1032, based on the longitudinal relative distance and the longitudinal speed of the vehicle, obtain the movement time required for the vehicle to travel to the meeting position.
[0162] Step 1033, determine whether the first condition is met, if so, execute step 1036, otherwise execute step 1034, wherein the first condition includes: the minimum lateral distance of the oncoming vehicle is greater than zero.
[0163] Step 1034, obtaining the maximum curvature on the reference line, wherein along the forward direction of the vehicle, the vehicle is located on the right side of the reference line.
[0164] Step 1035, determine whether the third condition is met based on the maximum curvature and the maximum lateral distance of the oncoming vehicle. If so, execute step 1036, otherwise execute step 1037. The third condition includes: the relative movement direction of the oncoming vehicle and the own vehicle falls within the preset relative movement direction range, and the maximum lateral distance of the oncoming vehicle is greater than zero, and the maximum curvature falls within the preset curvature range.
[0165] Step 1036, determine a first distance difference obtained by subtracting the lateral distance of the oncoming vehicle from the current lateral distance of the vehicle, and obtain the lateral speed according to the first distance difference and the movement time.
[0166] If at least one of the first condition and the third condition is satisfied, step 1036 is executed.
[0167] Step 1037, determine a second distance difference obtained by subtracting the lateral distance of the oncoming vehicle from the current lateral distance of the own vehicle, and obtain the lateral speed according to the second distance difference and the movement time.
[0168] When neither the first condition nor the third condition is satisfied, step 1037 is executed.
[0169] Step 1038, obtaining the driving trajectory of the vehicle towards the meeting position by linear interpolation according to the movement time and the obtained lateral speed.
[0170] In one embodiment, the trajectory route may be generated by a cubic polynomial according to the obtained oncoming vehicle position (or avoidance center point P_pre).
[0171] In one embodiment of the present application, step 103 may include: obtaining a first position and a second position for performing a cubic polynomial fitting based on the current position of the vehicle and the position of the oncoming vehicle; obtaining parameters of the cubic polynomial based on the current position of the vehicle, the oncoming vehicle position, the first position, and the second position; using a series of longitudinal distances as independent variables of the cubic polynomial and a series of lateral distances corresponding one-to-one to the series of longitudinal distances as dependent variables, and obtaining a series of lateral distances based on the parameters of the cubic polynomial, wherein the series of longitudinal distances are between the current longitudinal distance of the vehicle and the longitudinal distance of the oncoming vehicle position; obtaining a series of position points based on the series of longitudinal distances and the series of lateral distances to obtain a driving trajectory including a series of position points.
[0172] In one embodiment, the four positions obtained according to the current position of the vehicle and the position of the oncoming vehicle may be:
[0173] The current position of the ego vehicle: P_0{ego_s,ego_l};
[0174] First position: P_1{ego_s+remaining_distance / 3,ego_l-(ego_l-P_pre.l) / 8};
[0175] Second position: P_2{ego_s+remaining_distance*3 / 4,ego_l-(ego_l-P_pre.l)*3 / 4};
[0176] Meeting position: P_3{ego_s+remaining_distance,P_pre.l}, that is, P_3{P_pre.s,P_pre.l}.
[0177] Among them, remaining_distance represents the remaining distance, remaining_distance = P_pre.s-ego_s.
[0178] In one embodiment, after obtaining the four positions, a cubic polynomial fitting may be performed on the four positions to solve the cubic polynomial "y = ax 3 +bx 2 +cx+d". In one embodiment, the parameters can be solved by least squares.
[0179] After solving the parameters, the longitudinal distance can be used as the independent variable of the cubic polynomial, and the lateral distance can be used as the dependent variable of the cubic polynomial. According to the series of longitudinal distances between the current position and the meeting position, a corresponding series of lateral distances can be obtained, thereby obtaining a series of position points, such as traj_i(s,l*). s can represent the longitudinal distance, and l* can represent the lateral distance obtained by the cubic polynomial. The correlation between the series of longitudinal distances and the corresponding series of lateral distances can be reflected by the following formula:
[0180] l*=a*traj_points[i].s*traj_points[i].s*traj_points[i].s+b*traj_points[i].s*raj_points[i].s+c*traj_points[i].s+d
[0181] That is, l*=a*(traj_points[i].s) 3 +b*(traj_points[i].s) 2 +c*traj_points[i].s+d
[0182] Among them, traj_points[i].s can represent the longitudinal distance of the i-th trajectory point.
[0183] In one embodiment, based on the obtained series of position points, a driving trajectory consisting of the series of position points can be obtained.
[0184] Compared with the driving trajectory obtained by linear interpolation, the driving trajectory obtained by using a cubic polynomial can better conform to the dynamic characteristics of the actual vehicle and is more conducive to achieving a better lateral avoidance effect.
[0185] like Figure 7As shown, the embodiment of the present application provides a meeting processing device 70, including: a determination module 701, used to determine whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle; a first acquisition module 702, used to obtain a meeting position for lateral avoidance of the oncoming vehicle when it is determined that it is necessary to perform lateral avoidance of the oncoming vehicle; a second acquisition module 703, used to obtain a driving trajectory of the own vehicle towards the meeting position based on the meeting position; and a control module 704, used to control the own vehicle to travel along the driving trajectory.
[0186] An embodiment of the present application provides an electronic chip, including: a processor, which is used to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute the method described in any embodiment of the present application.
[0187] An embodiment of the present application provides an electronic device, which includes a memory for storing computer program instructions, a processor for executing the computer program instructions, and a communication device, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method described in any embodiment of the present application.
[0188] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method described in any embodiment of the present application.
[0189] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program runs on a computer, the computer executes the method described in any embodiment of the present application.
[0190] Figure 8 A schematic diagram of a computer device provided in an embodiment of the present application. Figure 8 As shown, the computer device 20 of this embodiment includes: a processor 21 and a memory 22, the memory 22 is used to store a computer program 23 that can be run on the processor 21, and the computer program 23 is executed by the processor 21 to implement the steps in the method embodiment of the present application. To avoid repetition, they are not described one by one here. Alternatively, when the computer program 23 is executed by the processor 21, the functions of each model / unit in the device embodiment of the present application are implemented. To avoid repetition, they are not described one by one here.
[0191] The computer device 20 includes but is not limited to a processor 21 and a memory 22. Those skilled in the art will appreciate that Figure 8It is only an example of the computer device 20 and does not constitute a limitation of the computer device 20. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.
[0192] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc.
[0193] The memory 22 may be an internal storage unit of the computer device 20, such as a hard disk or memory of the computer device 20. The memory 22 may also be an external storage device of the computer device 20, such as a plug-in hard disk, a Smart Media (SM) card, a Secure Digital (SD) card, a Flash Card, etc. equipped on the computer device 20. Further, the memory 22 may also include both an internal storage unit of the computer device 20 and an external storage device. The memory 22 is used to store the computer program 23 and other programs and data required by the computer device. The memory 22 may also be used to temporarily store data that has been output or is to be output.
[0194] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0195] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0196] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0197] The integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0198] In the embodiments of the present application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.
[0199] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0200] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0201] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments of the present application can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0202] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0203] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for handling a vehicle meeting, characterized in that: include: Determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle in front of the own vehicle; When it is determined that the oncoming vehicle needs to be lateral avoided, obtaining a meeting position for lateral avoided the oncoming vehicle; According to the meeting position, obtaining a driving trajectory of the vehicle toward the meeting position; The vehicle is controlled to travel along the driving trajectory.
2. The method according to claim 1, characterized in that: The determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle comprises: Obtaining the relative movement direction of the oncoming vehicle and the own vehicle according to the movement direction of the oncoming vehicle and the movement direction of the own vehicle; Determining whether the relative motion direction of the oncoming vehicle and the own vehicle falls within a preset relative motion direction range, wherein the relative motion direction of two vehicles about to meet will fall within the preset relative motion direction range; When the relative movement direction between the oncoming vehicle and the own vehicle does not fall within the preset relative movement direction range, it is determined that there is no need to perform lateral avoidance of the oncoming vehicle.
3. The method according to claim 1, characterized in that The determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle comprises: Obtaining the lateral movement speed of the oncoming vehicle; Determining whether the lateral movement speed of the oncoming vehicle is less than a first preset threshold, wherein the lateral movement speed of the vehicle that is about to meet the own vehicle is less than the first preset threshold; When it is determined that the lateral movement speed of the oncoming vehicle is not less than the first preset threshold, it is determined that there is no need to perform lateral avoidance on the oncoming vehicle.
4. The method according to claim 1, characterized in that: The determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle comprises: According to the minimum longitudinal distance of the oncoming vehicle and the maximum longitudinal distance of the own vehicle, obtaining a first longitudinal relative position distance between the oncoming vehicle and the own vehicle; Determine whether a first longitudinal relative position distance between the oncoming vehicle and the vehicle itself is less than a second preset threshold, wherein the first longitudinal relative position distance between the vehicle entering the avoidance range of the vehicle itself and the vehicle itself is less than the second preset threshold; When it is determined that the first longitudinal relative position distance between the oncoming vehicle and the vehicle itself is not less than the second preset threshold, it is determined that there is no need to perform lateral avoidance of the oncoming vehicle.
5. The method according to claim 1, characterized in that The determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle comprises: According to the maximum longitudinal distance of the oncoming vehicle and the maximum longitudinal distance of the vehicle, the distance between the oncoming vehicle and DD224945I is obtained. The second longitudinal relative position distance from the workshop; Determine whether the second longitudinal relative position distance between the oncoming vehicle and the own vehicle is greater than a third preset threshold, wherein the third preset threshold is obtained according to the body length of the own vehicle, and the second longitudinal relative position distance between the two vehicles about to meet is greater than the third preset threshold; When it is determined that the second longitudinal relative position distance between the oncoming vehicle and the vehicle itself is not greater than the third preset threshold, it is determined that there is no need to perform lateral avoidance of the oncoming vehicle.
6. The method according to claim 1, characterized in that The determining whether it is necessary to perform lateral avoidance of the oncoming vehicle based on the driving information of the own vehicle and the driving information of the oncoming vehicle located in front of the own vehicle comprises: Obtaining the longitudinal movement speed of the oncoming vehicle; Determining whether the longitudinal movement speed of the oncoming vehicle is less than a fourth preset threshold, wherein the longitudinal movement speed of the vehicle that is about to meet the own vehicle is less than the fourth preset threshold; When it is determined that the longitudinal movement speed of the oncoming vehicle is not less than the fourth preset threshold, it is determined that there is no need to perform lateral avoidance for the oncoming vehicle.
7. The method according to claim 1, characterized in that The obtaining of a meeting position for performing lateral avoidance on the oncoming vehicle includes: Obtaining a longitudinal safety distance according to the longitudinal relative speeds of the oncoming vehicle and the own vehicle and a preset safety time interval; Obtaining a compensation distance according to the moving direction of the oncoming vehicle; The longitudinal distance of the meeting position is obtained according to the longitudinal safety distance, the compensation distance, the longitudinal minimum distance of the oncoming vehicle, and the longitudinal maximum distance of the own vehicle.
8. The method according to claim 7, characterized in that The obtaining of the compensation distance according to the moving direction of the oncoming vehicle includes: Determining whether the moving direction of the oncoming vehicle falls within a preset moving direction range; When it is determined that the moving direction of the oncoming vehicle falls within the preset moving direction range, the compensation distance is obtained according to the body length of the oncoming vehicle and the moving direction of the oncoming vehicle; When it is determined that the moving direction of the oncoming vehicle does not fall within the preset moving direction range, the compensation distance is determined to be zero.
9. The method according to claim 1, characterized in that: The obtaining of a meeting position for performing lateral avoidance on the oncoming vehicle includes: When at least one of the first condition and the second condition is satisfied, the distance obtained by subtracting the preset lateral safety distance from the minimum lateral distance of the oncoming vehicle is used as the lateral distance of the meeting position; When neither the first condition nor the second condition is satisfied, the distance obtained by adding the lateral maximum distance of the oncoming vehicle to the lateral safety distance is used as the lateral distance of the meeting position; Wherein, the first condition includes: the minimum lateral distance of the oncoming vehicle is greater than zero; The second condition includes: the maximum lateral distance of the oncoming vehicle is greater than zero; The minimum lateral distance of the oncoming vehicle and the maximum lateral distance of the oncoming vehicle are both obtained based on a preset coordinate system.
10. The method according to claim 1, characterized in that According to the oncoming vehicle position, the vehicle DD224945I is obtained. The driving trajectory toward the meeting position includes: Obtaining the maximum curvature on the reference line, wherein along the forward direction of the vehicle, the vehicle is located on the right side of the reference line; Determining whether a third condition is satisfied according to the maximum curvature and the maximum lateral distance of the oncoming vehicle, the third condition comprising: the maximum lateral distance of the oncoming vehicle is greater than zero, and the maximum curvature falls within a preset curvature range; When at least one of the first condition and the third condition is satisfied, determining a first distance difference obtained by subtracting the lateral distance of the meeting position from the current lateral distance of the vehicle, and obtaining a lateral speed according to the first distance difference and a predetermined movement time required for the vehicle to travel to the meeting position; When neither the first condition nor the third condition is satisfied, determining a second distance difference obtained by subtracting the current lateral distance of the vehicle from the lateral distance of the oncoming vehicle, and obtaining a lateral speed according to the second distance difference and the movement time; Wherein, the first condition includes: the minimum lateral distance of the oncoming vehicle is greater than zero; The driving trajectory of the vehicle toward the meeting position is obtained according to the movement time and the obtained lateral speed.
11. The method according to claim 10, characterized in that The step of obtaining the driving trajectory of the vehicle toward the meeting position according to the meeting position includes: Obtaining a longitudinal relative distance according to the current longitudinal distance of the own vehicle and the longitudinal distance of the oncoming vehicle position; The movement time is obtained according to the longitudinal relative distance and the longitudinal speed of the vehicle.
12. The method according to claim 10, characterized in that The step of obtaining the driving trajectory of the vehicle toward the meeting position according to the movement time and the obtained lateral speed includes: According to the movement time and the obtained lateral speed, the longitudinal distance and the lateral distance at a series of time points within a subsequent period of time are obtained by linear interpolation, wherein the duration of the period of time is the movement time; According to the longitudinal distances and the lateral distances at the series of time points, the position points at the series of time points are obtained to obtain the driving trajectory including the position points at the series of time points.
13. The method according to claim 1, characterized in that The step of obtaining the driving trajectory of the vehicle toward the meeting position according to the meeting position includes: According to the current position of the vehicle and the oncoming vehicle position, a first position and a second position for performing a cubic polynomial fitting are obtained; Obtaining parameters of the cubic polynomial according to the current position of the vehicle, the oncoming vehicle position, the first position, and the second position; A series of longitudinal distances are used as independent variables of the cubic polynomial, and a series of lateral distances corresponding to the series of longitudinal distances are used as dependent variables, and the series of lateral distances are obtained according to the parameters of the cubic polynomial, wherein the series of longitudinal distances are between the current longitudinal distance of the vehicle and the longitudinal distance of the meeting position; A series of position points are obtained according to the series of longitudinal distances and the series of lateral distances to obtain the driving trajectory including the series of position points.
14. A vehicle meeting processing device, characterized in that: include: Determination module, used for determining the driving information of the vehicle and the driving information of the oncoming vehicle in front of the vehicle, DD224945I Determining whether it is necessary to perform lateral avoidance for the oncoming vehicle; A first acquisition module is used to acquire a meeting position for performing lateral avoidance on the oncoming vehicle when it is determined that lateral avoidance is required for the oncoming vehicle; A second acquisition module is used to acquire a driving trajectory of the vehicle driving toward the meeting position according to the meeting position; The control module is used to control the vehicle to travel along the driving trajectory.
15. An electronic device, characterized in that: The electronic device comprises a memory for storing computer program instructions, a processor for executing the computer program instructions, and a communication device, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method as described in any one of claims 1-13.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 13.
Citation Information
Cited By
Intelligent driving assistance method and intelligent driving assistance system
CN119428648A
Intelligent Driving Assistance Method and Intelligent Driving Assistance System
CN119428648B
