一种自动驾驶会车场景处理方法及其装置、车辆、存储介质A kind of automatic driving meeting scene processing method and device, vehicle, storage medium
本申请要求于2020年9月11日提交的、申请号为202010951662.2、标题为“一种自动驾驶会车场景处理方法及其装置、车辆”的中国专利申请的优先权,该中国专利申请的公开内容以引用的方式并入本文。This application claims the priority of the Chinese patent application filed on September 11, 2020 with the application number 202010951662.2 and titled "A method for processing an autonomous driving meeting scene and its device and vehicle". The disclosure of the Chinese patent application The contents are incorporated herein by reference.
技术领域technical field
本发明涉及自动驾驶技术领域,特别是涉及一种自动驾驶会车场景处理方法及其装置、车辆、存储介质。The present invention relates to the technical field of automatic driving, and in particular, to a method for processing a car meeting scene of automatic driving, a device, a vehicle and a storage medium thereof.
背景技术Background technique
随着自动驾驶车辆的应用领域日益扩大,需要处理的驾驶场景也逐渐增加。会车是行车过程中常见的交通场景,在交通规则中,对于会车提出了许多制度和规定。As the field of application of autonomous vehicles expands, so does the number of driving scenarios that need to be addressed. Meeting cars is a common traffic scene in the process of driving. In the traffic rules, many systems and regulations are proposed for meeting cars.
会车就是相向行驶车辆(包括车辆和对向车辆)在同一时间点在某一相同地点交错通过。会车中应根据道路、气候和车型等条件,适当控制车速,保持足够的横向间距,并严格遵守会车有关规定。由于某些会车工况存在一定的碰撞风险,会造成人类驾驶员心理和操作上的慌乱。Meeting vehicles means that vehicles traveling in the opposite direction (including vehicles and opposite vehicles) pass through staggeredly at the same place at the same time. During the meeting, the vehicle speed should be properly controlled according to the conditions of the road, climate and vehicle type, sufficient horizontal distance should be maintained, and the relevant regulations of the meeting should be strictly observed. Due to the certain collision risk in some meeting conditions, it will cause human drivers to panic in psychology and operation.
目前,现有的自动驾驶领域针对障碍物的处理方案,可以大致分为采样和优化两种。其中,基于采样的障碍物处理方案,通过对状态空间的采样点进行碰撞检测,搜索导向空白区域,从而寻找到一条从起始点到目标点的无碰撞规划路径。基于优化的障碍物处理方案,首先对障碍物进行行为决策,以安全性、舒适性以及效率等作为优化目标,求解运动学的未知参数。At present, the existing solutions for obstacles in the field of autonomous driving can be roughly divided into two types: sampling and optimization. Among them, the sampling-based obstacle processing scheme searches for a guiding blank area by performing collision detection on the sampling points in the state space, so as to find a collision-free planning path from the starting point to the target point. Based on the optimized obstacle handling scheme, the behavior of obstacles is firstly determined, and the unknown parameters of kinematics are solved with safety, comfort and efficiency as the optimization goals.
但是,基于采样的障碍物处理方案,对环境信息的表述不够准确,选择搜索终点缺乏灵活性。而基于优化的障碍物处理方案,计算量较大,并且可能存在不收敛的情况。However, the sampling-based obstacle processing scheme is not accurate enough to describe the environmental information, and lacks flexibility in selecting the search end point. However, the optimization-based obstacle processing scheme requires a large amount of computation and may not converge.
此外,这两种现有的障碍物处理方案,都没有针对会车场景的特点进行调整的策略,不符合人类的驾驶习惯。In addition, neither of the two existing obstacle handling solutions has a strategy for adjusting the characteristics of the car meeting scene, which is not in line with human driving habits.
因此,目前迫切需要开发出一种安全且符合人们驾驶习惯的会车场景处理方法,这将具有非常重要的意义。Therefore, there is an urgent need to develop a method for dealing with car meeting scenarios that is safe and conforms to people's driving habits, which will be of great significance.
发明内容SUMMARY OF THE INVENTION
本发明的目的是针对现有技术存在的技术缺陷,提供一种自动驾驶会车场景处理方法及其装置、车辆、存储介质。The purpose of the present invention is to provide a method for processing a car meeting scene of an automatic driving, a device, a vehicle and a storage medium thereof, aiming at the technical defects existing in the prior art.
为此,本发明提供了一种自动驾驶会车场景处理方法,包括以下步骤:To this end, the present invention provides a method for processing an automatic driving meeting scene, comprising the following steps:
步骤S1,会车状态判断:判断车辆是否处于会车状态,当车辆处于会车状态时,继续执行步骤S2;Step S1: Judgment of the meeting state: judging whether the vehicle is in the meeting state, and when the vehicle is in the meeting state, proceed to step S2;
步骤S2,会车类型判断处理:对当前的会车状态进行分类,判断对应的会车类型,然后根据预先设置的多个不同会车类型与多个不同会车处理操作之间的对应关系,执行对应的会车处理操作。Step S2, judging processing of the meeting vehicle type: classifying the current meeting vehicle status, judging the corresponding meeting vehicle type, and then according to the preset correspondence between multiple different meeting vehicle types and multiple different meeting processing operations, Perform the corresponding meeting handling operation.
优选地,在步骤S2之后,还包括以下步骤:Preferably, after step S2, the following steps are also included:
步骤S3,根据步骤S2所判断的当前会车状态所属会车类型,确定车辆的横向向右偏移距离和目标速度;Step S3, according to the type of meeting vehicle to which the current meeting state determined in step S2 belongs, determine the lateral rightward offset distance and target speed of the vehicle;
步骤S4,根据步骤S3确定的车辆的横向向右偏移距离和目标速度,获得车辆的规划目标终点,车辆的规划目标终点即为车辆的参考路径的终点;Step S4, according to the lateral rightward offset distance and the target speed of the vehicle determined in step S3, the planned target end point of the vehicle is obtained, and the planned target end point of the vehicle is the end point of the reference path of the vehicle;
步骤S5,根据车辆的当前位置和步骤S4确定的车辆的规划目标终点的位置,生成车辆从当前位置到达规划目标终点之间的行车轨迹。Step S5, according to the current position of the vehicle and the position of the planned target end point of the vehicle determined in step S4, generate a driving track between the vehicle from the current position to the planned target end point.
优选地,步骤S11,首先判断车辆是否符合预设会车条件,如果符合预设会车条件,则执行步骤S12,否则,判断车辆不处于会车状态,不进行处理;Preferably, in step S11, it is first judged whether the vehicle meets the preset meeting conditions, and if it meets the preset meeting conditions, step S12 is performed; otherwise, it is judged that the vehicle is not in the meeting state, and no processing is performed;
其中,预设会车条件具体为:车辆位于最左车道,并且车辆左侧不存在物理遮挡物;The preset vehicle meeting conditions are specifically: the vehicle is located in the leftmost lane, and there is no physical obstruction on the left side of the vehicle;
步骤S12,筛选车辆前方的所有对向车辆(即对向行驶的车辆),如果存在对向车辆行驶在车辆相邻对向车道的情况,判断车辆此时处于会车状态,继续执行步骤S2,否则,判断车辆不处于会车状态,不进行处理。Step S12, screening all the opposite vehicles in front of the vehicle (that is, vehicles driving in the opposite direction), if there is a situation where the opposite vehicle is driving in the adjacent opposite lane of the vehicle, it is judged that the vehicle is in a meeting state at this time, and step S2 is continued, Otherwise, it is judged that the vehicle is not in the meeting state, and no processing is performed.
优选地,步骤S2具体包括以下子步骤:Preferably, step S2 specifically includes the following sub-steps:
步骤S21,首先,判断对向车辆的预测轨迹与车辆的参考路径是否存在 碰撞风险,如果不存在碰撞风险,判断当前会车状态属于限速类型,对应执行的会车处理操作为:降低车辆的车速,而如果存在碰撞风险,则判断当前会车状态不属于限速类型,继续执行步骤S22;Step S21, first, it is judged whether there is a collision risk between the predicted trajectory of the opposite vehicle and the reference path of the vehicle, if there is no collision risk, it is judged that the current meeting state belongs to the speed limit type, and the corresponding meeting processing operation is: reduce the vehicle's collision risk. speed, and if there is a risk of collision, it is determined that the current meeting state does not belong to the speed limit type, and step S22 is continued;
步骤S22,判断车辆与对向车辆之间是否存在冲突区域(即不允许两辆车同时通过的区域),如果不存在冲突区域,判断当前会车状态属于避让类型,对应执行的会车处理操作为:通过控制车辆进行横向向右偏移运动,来避免碰撞,而如果存在冲突区域,则判断当前会车状态属于停车类型,对应执行的会车处理操作为:控制车辆在冲突区域前停车,等待对向车辆通过。Step S22, determine whether there is a conflict area between the vehicle and the opposite vehicle (that is, an area where two vehicles are not allowed to pass at the same time), if there is no conflict area, it is judged that the current meeting vehicle state belongs to the avoidance type, and the corresponding vehicle meeting processing operation is executed. It is: avoid collision by controlling the vehicle to move laterally to the right, and if there is a conflict area, it is judged that the current meeting state belongs to the parking type, and the corresponding meeting processing operation is: control the vehicle to stop before the conflict area, Wait for the oncoming vehicle to pass.
优选地,在步骤S21中,为了判断对向车辆的预测轨迹与车辆的参考路径是否存在碰撞风险,具体操作为:Preferably, in step S21, in order to determine whether there is a collision risk between the predicted trajectory of the opposite vehicle and the reference path of the vehicle, the specific operations are as follows:
计算对向车辆的预测轨迹的任意一个位置点与车辆的参考路径中的任意一个位置点之间的距离,如果存在距离值小于预设安全距离的情况,则说明存在碰撞风险,反之不存在;Calculate the distance between any position point of the predicted trajectory of the opposite vehicle and any position point in the reference path of the vehicle, if there is a situation where the distance value is less than the preset safety distance, it means that there is a collision risk, otherwise it does not exist;
在步骤S22,关于判断车辆与对向车辆之间是否存在冲突区域,具体包括如下操作:In step S22, the determination of whether there is a conflict area between the vehicle and the opposite vehicle specifically includes the following operations:
当对向车道上存在静态障碍物,并且位于对向车道上的静态障碍物右侧剩余空间的宽度,小于车辆宽度、对向车辆宽度和预设安全距离三者之和,那么判断车辆与对向车辆之间存在冲突区域。When there is a static obstacle in the opposite lane, and the width of the remaining space on the right side of the static obstacle on the opposite lane is less than the sum of the vehicle width, the width of the opposite vehicle and the preset safety distance, then it is judged that the vehicle is in the opposite direction. There is a conflict area between the vehicles.
优选地,在步骤S3中,根据步骤S2所判断的当前会车状态所属会车类型,确定车辆的横向向右偏移距离,具体包括以下步骤:Preferably, in step S3, according to the type of meeting vehicle to which the current meeting state determined in step S2 belongs, the lateral rightward offset distance of the vehicle is determined, which specifically includes the following steps:
如果当前会车状态属于限速类型,车辆的横向向右偏移距离为零;If the current meeting state is of the speed limit type, the vehicle's lateral right offset distance is zero;
如果当前会车状态属于避让类型,根据以下计算公式,计算获得车辆的横向向右偏移距离,具体公式如下:If the current meeting vehicle state is an avoidance type, calculate the lateral rightward offset distance of the vehicle according to the following calculation formula. The specific formula is as follows:
s=l+0.5w+d;s=l+0.5w+d;
其中,l表示对向车辆的预测轨迹最右侧的点与车辆的参考路径的直线距离;Wherein, l represents the straight-line distance between the rightmost point of the predicted trajectory of the opposite vehicle and the reference path of the vehicle;
其中,w表示车辆的宽度;d表示预设安全距离,即车辆左侧所在直线与对向车辆最右侧所在直线之间保持的横向垂直距离;Among them, w represents the width of the vehicle; d represents the preset safety distance, that is, the horizontal vertical distance maintained between the straight line on the left side of the vehicle and the straight line on the far right side of the opposite vehicle;
如果当前会车状态属于停车类型,根据以下计算公式,计算获得车辆的 横向向右偏移距离,具体公式如下:If the current meeting state belongs to the parking type, calculate the lateral rightward offset distance of the vehicle according to the following calculation formula. The specific formula is as follows:
s=x-d;s=x-d;
其中,x表示车辆中心距离冲突区域前的道路最右侧的距离;Among them, x represents the distance from the center of the vehicle to the far right side of the road in front of the conflict area;
d表示预设安全距离,即车辆左侧所在直线与对向车辆最右侧所在直线之间保持一定的横向垂直距离。d represents the preset safety distance, that is, a certain horizontal and vertical distance is maintained between the straight line on the left side of the vehicle and the straight line on the far right side of the opposite vehicle.
优选地,在步骤S3中,根据当前会车状态属于的会车类型,确定车辆的目标速度,具体包括以下步骤:Preferably, in step S3, the target speed of the vehicle is determined according to the type of meeting vehicle to which the current meeting state belongs, which specifically includes the following steps:
如果当前会车状态属于限速类型,车辆的目标速度为预设第一目标速度;If the current meeting state is of the speed limit type, the target speed of the vehicle is the preset first target speed;
如果当前会车状态属于避让类型,车辆的目标速度为预设第二目标速度;If the current meeting state is an avoidance type, the target speed of the vehicle is the preset second target speed;
其中,预设第二目标速度值小于预设第一目标速度值;Wherein, the preset second target speed value is smaller than the preset first target speed value;
如果当前会车状态属于停车类型,车辆的目标速度为零。If the current meeting state is of the parking type, the target speed of the vehicle is zero.
优选地,在步骤S3中,还包括以下步骤:Preferably, in step S3, the following steps are also included:
控制车辆进行匀减速运动,计算车辆到达会车位置的减速距离,具体公式如下:Control the vehicle to perform a uniform deceleration motion, and calculate the deceleration distance for the vehicle to reach the meeting position. The specific formula is as follows:
其中,v
ego表示车辆的当前车速;
Among them, v ego represents the current speed of the vehicle;
v
goal表示车辆的目标速度;
v goal represents the target speed of the vehicle;
v
obj表示对向车辆的当前车速;
v obj represents the current speed of the opposite vehicle;
y表示车辆当前位置与对向车辆的距离。y represents the distance between the current position of the vehicle and the opposite vehicle.
此外,本发明还提供了一种自动驾驶会车场景处理装置,包括以下模块:In addition, the present invention also provides an automatic driving meeting scene processing device, including the following modules:
会车状态判断模块,用于判断车辆是否处于会车状态,当车辆处于会车状态时,发送触发信号给会车判断模块,触发运行会车类型判断模块;The meeting vehicle state judgment module is used to judge whether the vehicle is in the meeting vehicle state. When the vehicle is in the meeting vehicle state, it sends a trigger signal to the meeting vehicle judgment module to trigger the operation of the meeting vehicle type judgment module;
会车类型判断处理模块,与会车状态判断模块相连接,用于在被所述会车状态判断模块触发运行后,对当前的会车状态进行分类,判断对应的会车类型,然后根据预先设置的多个不同会车类型与多个不同会车处理操作之间的对应关系,执行对应的会车处理操作。The meeting vehicle type judging processing module is connected with the meeting vehicle state judging module, and is used to classify the current meeting vehicle state after being triggered to run by the meeting vehicle state judging module, judge the corresponding meeting vehicle type, and then according to the preset The corresponding relationship between the multiple different meeting vehicle types and the multiple different meeting processing operations is performed, and the corresponding meeting processing operation is performed.
优选地,还包括以下模块:Preferably, the following modules are also included:
横向向右偏移距离和目标速度确定模块,与会车类型判断处理模块相连接,用于根据所述会车类型判断处理模块确定的当前会车状态所属于的会车类型,确定车辆的横向向右偏移距离和目标速度;The lateral right offset distance and the target speed determination module are connected with the meeting vehicle type judgment processing module, and are used for determining the lateral direction of the vehicle according to the type of meeting vehicle to which the current meeting vehicle state determined by the meeting vehicle type judgment processing module belongs. Right offset distance and target speed;
规划目标终点确定模块,与横向向右偏移距离和目标速度确定模块相连接,用于根据所述横向向右偏移距离和目标速度确定模块确定的车辆的横向向右偏移距离和目标速度,获得车辆的规划目标终点,车辆的规划目标终点即为车辆的参考路径的终点;The planning target end point determination module is connected with the lateral right offset distance and the target speed determination module, and is used for determining the lateral right offset distance and the target speed of the vehicle according to the lateral right offset distance and the target speed determination module. , obtain the planned target end point of the vehicle, and the planned target end point of the vehicle is the end point of the reference path of the vehicle;
行车规划模块,与规划目标终点确定模块相连接,用于根据车辆的当前位置和所述规划目标终点确定模块确定的车辆的规划目标终点的位置,生成车辆从当前位置到达规划目标终点之间的行车轨迹。The driving planning module is connected with the planning target end point determination module, and is used for generating the distance between the vehicle from the current position to the planning target end point according to the current position of the vehicle and the position of the planning target end point of the vehicle determined by the planning target end point determination module. driving track.
另外,本发明还提供了一种车辆,包括前面所述的自动驾驶会车场景处理装置。In addition, the present invention also provides a vehicle, including the above-mentioned apparatus for processing a car meeting scene of an automatic driving.
另外,本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有程序,当所述程序被多核处理器执行时,使得所述多核处理器执行如前面所述的自动驾驶会车场景处理方法。In addition, the present invention also provides a computer-readable storage medium, where a program is stored in the computer-readable storage medium, and when the program is executed by a multi-core processor, the multi-core processor causes the multi-core processor to execute the automatic The processing method of the driving meeting scene.
由以上本发明提供的技术方案可见,与现有技术相比较,本发明提供了一种自动驾驶会车场景处理方法及其装置、车辆、存储介质,其设计科学,能够在遇到会车场景时,主动调节车辆的车速和横向位置,从而降低了会车瞬间的车辆车速,同时增加了车辆与对向车辆间的横向间隔距离,有利于进一步提高行车的安全性,并且满足人们的驾驶习惯,具有重大的实践意义。It can be seen from the above technical solutions provided by the present invention that, compared with the prior art, the present invention provides an automatic driving meeting scene processing method and device, vehicle, and storage medium, which are scientifically designed and can be used when encountering a meeting scene. At the same time, it can actively adjust the speed and lateral position of the vehicle, thereby reducing the speed of the vehicle at the moment of passing, and at the same time increasing the lateral separation distance between the vehicle and the opposite vehicle, which is conducive to further improving the safety of driving and satisfying people's driving habits , has great practical significance.
附图说明Description of drawings
图1为本发明提供的一种自动驾驶会车场景处理方法的基本流程示意图;Fig. 1 is a basic flowchart of a method for processing a car meeting scene of an automatic driving provided by the present invention;
图2为本发明提供的一种自动驾驶会车场景处理方法,一种实施例的流程示意图;2 is a schematic flowchart of an embodiment of a method for processing a car meeting scenario provided by the present invention;
图3为本发明所面对的限速类型会车场景示意图;FIG. 3 is a schematic diagram of a speed-limited type meeting scene faced by the present invention;
图4为本发明所面对的避让类型会车场景示意图;4 is a schematic diagram of an avoidance type meeting scene faced by the present invention;
图5为本发明所面对的停车类型会车场景示意图。FIG. 5 is a schematic diagram of a parking type meeting scene faced by the present invention.
具体实施方式detailed description
为使本发明实现的技术手段更容易理解,下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关申请,而非对该申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分。In order to make the technical means realized by the present invention easier to understand, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related application, but not to limit the application. In addition, it should be noted that, for the convenience of description, only the parts related to the present application are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
需要说明的是,在本申请的描述中,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方向或位置关系的术语是基于附图所示的方向或位置关系,这仅仅是为了便于描述,而不是指示或暗示所述装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。It should be noted that in the description of this application, the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. The terminology of the indicated direction or positional relationship is based on the direction or positional relationship shown in the drawings, which is only for convenience of description and does not indicate or imply that the device or element must have a particular orientation, be constructed and operated in a particular orientation , so it cannot be construed as a limitation on this application.
参见图1至图5,本发明提供了一种自动驾驶会车场景处理方法,包括以下步骤:Referring to FIGS. 1 to 5 , the present invention provides a method for processing a car meeting scenario of automatic driving, including the following steps:
步骤S1,会车状态判断:判断车辆是否处于会车状态,当车辆处于会车状态时,继续执行步骤S2;Step S1: Judgment of the meeting state: judging whether the vehicle is in the meeting state, and when the vehicle is in the meeting state, proceed to step S2;
在本发明中,具体实现上,步骤S1的会车状态判断操作,具体包括以下子步骤:In the present invention, in terms of specific implementation, the operation of judging the meeting state of the vehicle in step S1 specifically includes the following sub-steps:
步骤S11,首先判断车辆是否符合预设会车条件,如果符合预设会车条件,则执行步骤S12,否则,判断车辆不处于会车状态,不进行处理;Step S11, first determine whether the vehicle meets the preset meeting conditions, if it meets the preset meeting conditions, then execute step S12, otherwise, it is judged that the vehicle is not in the meeting state, and no processing is performed;
其中,预设会车条件具体为:车辆位于最左车道,并且车辆左侧不存在物理遮挡物(即障碍物,例如护栏等物理遮挡物);需要同时满足这两个条件。The preset meeting conditions are specifically: the vehicle is located in the leftmost lane, and there is no physical obstruction (ie, an obstacle, such as a physical obstruction such as a guardrail) on the left side of the vehicle; both conditions need to be satisfied at the same time.
在步骤S11中,需要说明的是,自动驾驶车辆在自动驾驶状态中依赖现有的高精度地图,高精度地图预先存储了车道类型,车道拓扑,车道线和地理位置等信息。In step S11, it should be noted that the self-driving vehicle relies on the existing high-precision map in the self-driving state, and the high-precision map pre-stores information such as lane type, lane topology, lane line and geographic location.
根据车辆上安装的定位模块的输出,可以获取车辆绝对位置,然后基于高精度地图得到车辆所在的车道,再通过高精度地图查找车辆车道是否存在同向的左侧平行车道,如果不存在,说明车辆位于最左车道。According to the output of the positioning module installed on the vehicle, the absolute position of the vehicle can be obtained, and then the lane where the vehicle is located can be obtained based on the high-precision map. The vehicle is in the leftmost lane.
其中,车辆属于最左车道是会车的前提条件,如果车辆的左侧有平行车道,并且左侧车辆与车辆行驶方向相同,不构成会车场景。Among them, if the vehicle belongs to the leftmost lane, it is a prerequisite for the meeting. If there is a parallel lane on the left side of the vehicle, and the vehicle on the left is in the same direction as the vehicle, it does not constitute a meeting scene.
也就是说,判断车辆是否位于最左车道,是现有成熟的技术,在此不再赘述。That is to say, judging whether the vehicle is in the leftmost lane is an existing mature technology, which will not be repeated here.
还需要说明的是,现有的高精度地图中预先记录了车道的左右边界类型、实线、虚线或物理遮挡等,如果车辆车道的左侧边界类型不是物理遮挡,则说明车辆左侧不存在物理遮挡物。It should also be noted that the existing high-precision map pre-records the left and right boundary types, solid lines, dashed lines or physical occlusions of the lane. If the left boundary type of the vehicle lane is not a physical occlusion, it means that the left side of the vehicle does not exist. Physical Obstruction.
其中,车辆左侧不存在物理遮挡物是会车的前提条件,如果左侧存在护栏灯物理遮挡,左侧不会存在与车辆运动方向相反的车辆,不构成会车场景。Among them, the absence of physical obstructions on the left side of the vehicle is a prerequisite for the meeting. If there is a physical obstruction by the guardrail light on the left side, there will be no vehicles on the left side that move in the opposite direction to the vehicle, which does not constitute a meeting scene.
同样,判断车辆左侧是否存在物理遮挡物,为现有成熟的技术,在此不再赘述。Similarly, judging whether there is a physical obstruction on the left side of the vehicle is an existing mature technology and will not be repeated here.
步骤S12,筛选车辆前方的所有对向车辆(即对向行驶的车辆),如果存在对向车辆行驶在车辆相邻对向车道的情况,判断车辆此时处于会车状态,继续执行步骤S2,否则,判断车辆不处于会车状态,不进行处理;Step S12, screening all the opposite vehicles in front of the vehicle (that is, vehicles driving in the opposite direction), if there is a situation where the opposite vehicle is driving in the adjacent opposite lane of the vehicle, it is judged that the vehicle is in a meeting state at this time, and step S2 is continued, Otherwise, it is judged that the vehicle is not in a meeting state, and no processing is performed;
在步骤S12中,需要说明的是,根据车辆上设置的现有的感知模块(例如激光雷达、摄像机等)的输出,可以获取车辆周围障碍物(包括对向车辆)的相对位置,从而筛选车辆前方的所有对向车辆(即对向行驶的车辆),速度和类别等信息。其中,位置在车辆前方,速度方向与车辆相反的车辆属于对向车辆。In step S12, it should be noted that, according to the output of the existing perception module (such as lidar, camera, etc.) set on the vehicle, the relative position of the obstacles (including the opposite vehicle) around the vehicle can be obtained, so as to screen the vehicle Information on all oncoming vehicles ahead (i.e. vehicles driving in the opposite direction), speed and category. Among them, the vehicle whose position is in front of the vehicle and whose speed direction is opposite to that of the vehicle belongs to the opposite vehicle.
在本发明中,车辆前方的对向车辆,是作为会车场景中目标车辆的必要条件。In the present invention, the opposite vehicle in front of the vehicle is a necessary condition for the target vehicle in the meeting scene.
在本发明中,关于判断是否存在对向车辆行驶在车辆相邻对向车道的情况,具体为:通过现有的感知模块,可以获取车辆周围障碍物(包括对向车辆)的绝对位置,然后通过高精度地图,可以根据车辆周围障碍物的绝对位置获取对应的车道,同时提供每条车道所有存在拓扑关系的车道(高精度地图预先存储了车道类型,车道拓扑,车道线和地理位置等信息)。如果对向车辆(作为车辆周围障碍物)所在车道的相邻对向车道包含车辆车道,则说明对向车辆行驶在车辆相邻对向车道。在此为现有成熟的技术手段,在此不再赘述。In the present invention, regarding whether there is a situation in which the opposite vehicle is driving in the adjacent opposite lane of the vehicle, specifically: through the existing perception module, the absolute position of the obstacle (including the opposite vehicle) around the vehicle can be obtained, and then Through the high-precision map, the corresponding lane can be obtained according to the absolute position of the obstacles around the vehicle, and all the lanes with topological relationship of each lane are provided at the same time (the high-precision map pre-stores information such as lane type, lane topology, lane line and geographic location, etc. ). If the adjacent opposite lane of the lane where the oncoming vehicle (as an obstacle around the vehicle) is located includes the vehicle lane, it means that the oncoming vehicle is driving in the opposite lane adjacent to the vehicle. This is an existing mature technical means, which will not be repeated here.
其中,行驶在车辆相邻对向车道的对向车辆是作为会车场景中目标车辆 的必要条件。Among them, the opposite vehicle driving in the opposite lane adjacent to the vehicle is a necessary condition for the target vehicle in the meeting scene.
步骤S2,会车类型判断处理:对当前的会车状态进行分类,判断对应的会车类型,然后根据预先设置的多个不同会车类型与多个不同会车处理操作之间的对应关系,执行对应的会车处理操作;Step S2, judging processing of the meeting vehicle type: classifying the current meeting vehicle status, judging the corresponding meeting vehicle type, and then according to the preset correspondence between multiple different meeting vehicle types and multiple different meeting processing operations, Execute the corresponding car meeting processing operation;
在本发明中,具体实现上,步骤S2具体包括以下子步骤:In the present invention, in terms of specific implementation, step S2 specifically includes the following sub-steps:
步骤S21,首先,判断对向车辆的预测轨迹与车辆的参考路径是否存在碰撞风险,如果不存在碰撞风险,判断当前会车状态属于限速类型,对应执行的会车处理操作为:降低车辆的车速,而如果存在碰撞风险,则判断当前会车状态不属于限速类型,继续执行步骤S22;Step S21, first, it is judged whether there is a collision risk between the predicted trajectory of the opposite vehicle and the reference path of the vehicle, if there is no collision risk, it is judged that the current meeting state belongs to the speed limit type, and the corresponding meeting processing operation is: reduce the vehicle's collision risk. speed, and if there is a risk of collision, it is determined that the current meeting state does not belong to the speed limit type, and step S22 is continued;
需要说明的是,当前会车状态属于限速类型时,只需要通过降低车速,就可以提升驾驶员的安全感,如图3所示。It should be noted that when the current meeting state is of the speed limit type, the driver's sense of security can be improved by reducing the vehicle speed, as shown in Figure 3.
在本发明中,具体实现上,在步骤S21中,对向车辆的预测轨迹,可以根据其周围障碍物分布结合运动状态计算得到,通常采用运动学轨迹估计或机器学习算法得到。In the present invention, in terms of specific implementation, in step S21, the predicted trajectory of the opposite vehicle can be calculated according to the distribution of surrounding obstacles combined with the motion state, and is usually obtained by kinematic trajectory estimation or machine learning algorithm.
需要说明的是,关于对向车辆的预测轨迹,车辆上安装的现有的自动驾驶系统中的预测模块,基于对向车辆等车辆周围障碍物的历史位置和速度等信息,可以估计出对向车辆等车辆周围障碍物未来一段时间内的位置信息,即获得对向车辆等车辆周围障碍物的预测轨迹。目前,可以通过现有的卡尔曼滤波或深度学习等算法,获得对向车辆等车辆周围障碍物的预测轨迹。此为现有成熟的技术,在此不再赘述。It should be noted that, regarding the predicted trajectory of the oncoming vehicle, the prediction module in the existing automatic driving system installed on the vehicle can estimate the oncoming vehicle based on the historical position and speed of obstacles around the vehicle such as the oncoming vehicle. The position information of obstacles around vehicles such as vehicles in a period of time in the future is to obtain the predicted trajectories of obstacles around vehicles such as opposing vehicles. At present, the predicted trajectories of obstacles around vehicles such as oncoming vehicles can be obtained through existing algorithms such as Kalman filtering or deep learning. This is an existing mature technology and will not be repeated here.
其中,对向车辆的预测轨迹,例如可以为未来8秒每间隔0.1秒对应的对向车辆位置信息。预测轨迹是判断会车场景类型的重要依据。Wherein, the predicted trajectory of the oncoming vehicle may be, for example, the position information of the oncoming vehicle corresponding to each 0.1 second interval for the next 8 seconds. The predicted trajectory is an important basis for judging the type of meeting scene.
需要说明的是,关于车辆的参考路径,通过车辆上设置的现有的自动驾驶规划模块,可以根据车辆周围的环境信息实时输出车辆未来一段时间内需要经过的位置点,位置点的组合即为参考路径。目前,可以通过现有的混合A*和五次多项式优化等算法,来获取车辆的参考路径。此为现有成熟的技术,在此不再赘述。It should be noted that, with regard to the reference path of the vehicle, through the existing automatic driving planning module set on the vehicle, the position points that the vehicle needs to pass through in the future can be output in real time according to the environmental information around the vehicle. The combination of the position points is Reference path. At present, the reference path of the vehicle can be obtained through existing algorithms such as hybrid A* and quintic polynomial optimization. This is an existing mature technology and will not be repeated here.
车辆的参考路径,可以为未来8秒每间隔0.1秒对应的车辆位置和速度信息。The reference path of the vehicle can be the position and speed information of the vehicle corresponding to every 0.1 second interval in the next 8 seconds.
还需要说明的是,车辆的参考路径是判断会车场景类型和状态的重要依 据,通过参考路径规划可以控制车辆的位置,从而实现会车功能。It should also be noted that the reference path of the vehicle is an important basis for judging the type and status of the meeting scene, and the position of the vehicle can be controlled through the reference path planning, thereby realizing the meeting function.
在步骤S21中,为了判断对向车辆的预测轨迹与车辆的参考路径是否存在碰撞风险,具体操作为:In step S21, in order to determine whether there is a collision risk between the predicted trajectory of the opposite vehicle and the reference path of the vehicle, the specific operation is as follows:
计算对向车辆的预测轨迹与车辆的参考路径中两两位置点间(任意两个位置点之间,即对向车辆的预测轨迹的任意一个位置点与车辆的参考路径中的任意一个位置点之间)的距离,如果存在距离值小于预设安全距离(例如5m)的情况,则说明存在碰撞风险,反之不存在。Calculate the distance between the predicted trajectory of the opposite vehicle and the reference path of the vehicle (between any two position points, that is, any position point of the predicted trajectory of the opposite vehicle and any position point in the reference path of the vehicle) If there is a situation where the distance value is less than the preset safety distance (for example, 5m), it means that there is a collision risk, otherwise it does not exist.
在本发明中,预测轨迹与参考路径是否存在碰撞,是判断会车场景类型的重要依据。In the present invention, whether there is a collision between the predicted trajectory and the reference path is an important basis for judging the type of the meeting scene.
步骤S22,判断车辆与对向车辆之间是否存在冲突区域(即不允许两辆车同时通过的区域),如果不存在冲突区域,判断当前会车状态属于避让类型,对应执行的会车处理操作为:通过控制车辆进行横向向右偏移运动,来避免碰撞,而如果存在冲突区域,则判断当前会车状态属于停车类型,对应执行的会车处理操作为:控制车辆在冲突区域前停车,等待对向车辆通过。Step S22, determine whether there is a conflict area between the vehicle and the opposite vehicle (that is, an area where two vehicles are not allowed to pass at the same time), if there is no conflict area, it is judged that the current meeting vehicle state belongs to the avoidance type, and the corresponding vehicle meeting processing operation is executed. It is: avoid collision by controlling the vehicle to move laterally to the right, and if there is a conflict area, it is judged that the current meeting state belongs to the parking type, and the corresponding meeting processing operation is: control the vehicle to stop before the conflict area, Wait for the oncoming vehicle to pass.
在本发明中,在步骤S22,关于判断车辆与对向车辆之间是否存在冲突区域,具体包括如下操作:In the present invention, in step S22, judging whether there is a conflict area between the vehicle and the opposite vehicle specifically includes the following operations:
参见图5所示,当左侧的静态障碍物(即对向车道上存在静态障碍物)占据可通行区域较多,并且位于对向车道上的静态障碍物右侧剩余空间的宽度,小于车辆宽度、对向车辆宽度和预设安全距离(例如0.5m,即对向车辆右侧与车辆左侧的预留安全距离)三者之和,那么判断车辆与对向车辆之间存在冲突区域,位于对向车道上的静态障碍物右侧剩余空间(水平右侧方向空间)属于冲突区域。Referring to Figure 5, when the static obstacle on the left (that is, there is a static obstacle on the opposite lane) occupies more of the passable area, and the width of the remaining space on the right side of the static obstacle on the opposite lane is smaller than that of the vehicle The sum of the width, the width of the opposite vehicle and the preset safety distance (for example, 0.5m, that is, the reserved safety distance between the right side of the opposite vehicle and the left side of the vehicle), then it is judged that there is a conflict area between the vehicle and the opposite vehicle, The remaining space to the right of the static obstacle on the opposite lane (horizontal right direction space) belongs to the conflict area.
具体实现上,判断车辆与对向车辆之间是否存在冲突区域,具体可以包括以下子步骤:In terms of specific implementation, judging whether there is a conflict area between the vehicle and the opposite vehicle may specifically include the following sub-steps:
第一步,在车辆和对向车辆之间每隔一定距离(1m)进行一次检测,从现有的高精度地图中获取检测距离对应左侧道路边界点和右侧边界点的距离。The first step is to perform detection at a certain distance (1m) between the vehicle and the opposite vehicle, and obtain the distance corresponding to the left road boundary point and the right boundary point of the detection distance from the existing high-precision map.
第二步,筛选所有覆盖了检测距离的静态障碍物,即距离车辆的最近距离大于检测距离而距离车辆的最远距离小于检测距离的障碍物,障碍物位于检测距离的左右两个点为左侧边界点和右侧边界点。The second step is to screen all static obstacles that cover the detection distance, that is, obstacles whose closest distance to the vehicle is greater than the detection distance and the farthest distance to the vehicle is less than the detection distance. The obstacles are located at the left and right of the detection distance. Side boundary point and right boundary point.
第三步,将所有障碍物按照从左至右的顺序排序,计算相邻障碍物之间的可通行距离,即左侧障碍物的右侧边界点和右侧障碍物的左侧边界点的距离,作为备选可通行距离。左侧道路边界点与最左侧障碍物的左侧边界点之间的距离以及最右侧障碍物的右侧边界点与右侧道路边界点之间的距离也作为备选可通行距离。The third step is to sort all obstacles in the order from left to right, and calculate the passable distance between adjacent obstacles, that is, the right boundary point of the left obstacle and the left boundary point of the right obstacle. Distance, as an alternative travelable distance. The distance between the left road boundary point and the left boundary point of the leftmost obstacle and the distance between the right boundary point of the rightmost obstacle and the right road boundary point are also used as alternative traversable distances.
第四步,计算对向车辆宽度,车辆车辆宽度和左右安全距离之和作为最小同时通行距离,若最小同时通行距离大于最大的备选可通行距离,说明存在冲突。如果任何检测距离存在冲突,则说明车辆与对向车辆之间存在冲突区域。The fourth step is to calculate the width of the opposite vehicle, the sum of the width of the vehicle and the left and right safety distances as the minimum simultaneous passing distance. If the minimum simultaneous passing distance is greater than the largest alternative passable distance, it indicates that there is a conflict. If any detected distances are in conflict, there is a conflict area between the vehicle and the oncoming vehicle.
在本发明中,判断车辆与对向车辆之间是否存在冲突区域是判定会车场景类型的重要依据。In the present invention, judging whether there is a conflict area between the vehicle and the opposite vehicle is an important basis for judging the type of the meeting scene.
需要说明的是,在本发明中,计算冲突位置作为车辆减速停车的终点,能够保证车辆不会阻碍对向车辆通行。It should be noted that, in the present invention, the collision position is calculated as the end point of the vehicle decelerating and stopping, which can ensure that the vehicle does not obstruct the passage of the oncoming vehicle.
需要说明的是,如果车辆与对向车辆之间不存在冲突区域,即不存在不允许两辆车同时通过的区域,那么说明车辆通过横向偏移运动即可避免碰撞,当前会车状态属于避让类型,如图4所示。否则,当前会车状态属于停车类型,需要在冲突区域前停车,等待对向车辆通过,如图5所示。It should be noted that if there is no conflict area between the vehicle and the opposite vehicle, that is, there is no area where two vehicles are not allowed to pass at the same time, it means that the vehicle can avoid the collision by moving laterally, and the current state of meeting vehicles belongs to avoidance. type, as shown in Figure 4. Otherwise, the current meeting state belongs to the parking type, and it is necessary to stop before the conflict area and wait for the oncoming vehicle to pass, as shown in Figure 5.
在本发明中,在步骤S2之后,还可以包括以下步骤:In the present invention, after step S2, the following steps may also be included:
步骤S3,根据步骤S2所判断的当前会车状态所属会车类型,确定车辆的横向向右偏移距离和目标速度;Step S3, according to the type of meeting vehicle to which the current meeting state determined in step S2 belongs, determine the lateral rightward offset distance and target speed of the vehicle;
步骤S4,根据步骤S3确定的车辆的横向向右偏移距离和目标速度,获得车辆的规划目标终点(即车辆的参考路径的终点);Step S4, obtaining the planned target end point of the vehicle (that is, the end point of the reference path of the vehicle) according to the lateral rightward offset distance and the target speed of the vehicle determined in step S3;
在本发明中,需要说明的是,关于步骤S4,目前可以通过现有的混合A*和五次多项式优化等算法,来获取车辆的参考路径以及参考路径的终点。此为现有成熟的技术,在此不再赘述。In the present invention, it should be noted that, regarding step S4, the reference path of the vehicle and the end point of the reference path can be obtained through existing algorithms such as hybrid A* and quintic polynomial optimization. This is an existing mature technology and will not be repeated here.
步骤S5,根据车辆的当前位置和步骤S4确定的车辆的规划目标终点(即车辆的参考路径的终点)的位置,生成车辆从当前位置到达规划目标终点之间的行车轨迹(例如运用现有的搜索算法或者其他能够生成行车路径的现有算法)。Step S5, according to the current position of the vehicle and the position of the planned target end point of the vehicle (that is, the end point of the reference path of the vehicle) determined in step S4, generate a driving trajectory between the vehicle from the current position to the planned target end point (for example, using existing search algorithms or other existing algorithms capable of generating driving paths).
需要说明的是,该行车轨迹是满足车辆动力学约束并且安全的轨迹。It should be noted that the driving trajectory is a trajectory that satisfies the vehicle dynamics constraints and is safe.
在本发明中,需要说明的是,关于步骤S5,目前可以通过现有的混合A*和五次多项式优化等算法,根据根据车辆的当前位置和步骤S4确定的车辆的规划目标终点(即车辆的参考路径的终点)的位置,生成车辆从当前位置到达规划目标终点之间的行车轨迹。此为现有成熟的技术,在此不再赘述。In the present invention, it should be noted that, with regard to step S5, existing algorithms such as hybrid A* and quintic polynomial optimization can be used, according to the current position of the vehicle and the planned target end point of the vehicle determined in step S4 (that is, the vehicle The position of the end point of the reference path), and the driving trajectory between the vehicle from the current position to the end point of the planned target is generated. This is an existing mature technology and will not be repeated here.
需要说明的是,对于本发明,关于步骤S3,为了保证会车过程中存在足够的安全距离,需要根据会车类型计算相应的横向偏移距离。若当前属于限速类型,车辆可以保持当前参考路径,不需要向右偏移。若当前属于避让类型,车辆需要与障碍物最右侧保持一定安全距离。It should be noted that, for the present invention, with regard to step S3, in order to ensure that there is a sufficient safety distance during the meeting of vehicles, the corresponding lateral offset distance needs to be calculated according to the type of the meeting vehicles. If the current speed limit type, the vehicle can maintain the current reference path, and does not need to offset to the right. If it is currently in the avoidance type, the vehicle needs to maintain a safe distance from the far right side of the obstacle.
在本发明中,具体实现上,在步骤S3中,根据步骤S2所判断的当前会车状态所属会车类型,确定车辆的横向向右偏移距离,具体包括以下步骤:In the present invention, in terms of specific implementation, in step S3, according to the type of meeting vehicle to which the current meeting state determined in step S2 belongs, the lateral rightward offset distance of the vehicle is determined, which specifically includes the following steps:
如果当前会车状态属于限速类型,车辆不需要横向向右偏移,即车辆的横向向右偏移距离为零。If the current meeting state is of the speed limit type, the vehicle does not need to be offset laterally to the right, that is, the lateral offset distance of the vehicle to the right is zero.
在本发明中,具体实现上,在步骤S3中,根据步骤S2所判断的当前会车状态所属会车类型,确定车辆的横向向右偏移距离,具体包括以下步骤:In the present invention, in terms of specific implementation, in step S3, according to the type of meeting vehicle to which the current meeting state determined in step S2 belongs, the lateral rightward offset distance of the vehicle is determined, which specifically includes the following steps:
如果当前会车状态属于避让类型,根据以下计算公式,计算获得车辆的横向向右偏移距离,具体公式如下:If the current meeting vehicle state is an avoidance type, calculate the lateral rightward offset distance of the vehicle according to the following calculation formula. The specific formula is as follows:
s=l+0.5w+d;s=l+0.5w+d;
其中,l表示对向车辆(其属于动态障碍物)的预测轨迹最右侧的点与车辆的参考路径的直线距离(考虑障碍物面积),以右为正;Among them, l represents the straight-line distance between the rightmost point of the predicted trajectory of the opposite vehicle (which belongs to the dynamic obstacle) and the reference path of the vehicle (considering the obstacle area), and the right is positive;
其中,w表示车辆的宽度,d表示预设安全距离(即车辆左侧所在直线与对向车辆最右侧所在直线之间保持的横向垂直距离),考虑到感知和控制误差,d一般取0.5m左右,例如为0.5m。Among them, w represents the width of the vehicle, and d represents the preset safety distance (that is, the horizontal vertical distance maintained between the straight line on the left side of the vehicle and the straight line on the far right side of the opposite vehicle). Considering the perception and control errors, d is generally taken as 0.5 About m, for example, 0.5m.
需要说明的是,车辆的横向向右偏移距离,是指车辆参考路径的路点沿道路方向向右平移的距离。It should be noted that the lateral right offset distance of the vehicle refers to the distance that the waypoint of the vehicle reference path is shifted to the right along the road direction.
具体实现上,l表示对向车辆(其属于动态障碍物)的预测轨迹最右侧的点与车辆的参考路径的直线距离(考虑障碍物面积),具体可以未:通过计算对向车辆的预测轨迹中每个点对应的对向车辆上的四个角点(即车辆的 四角位置点),与车辆参考路径的垂直距离,取最小值,将该最小值作为l。In terms of specific implementation, l represents the straight-line distance between the rightmost point of the predicted trajectory of the opposite vehicle (which belongs to a dynamic obstacle) and the reference path of the vehicle (considering the area of the obstacle), specifically: by calculating the prediction of the opposite vehicle The four corner points on the opposite vehicle (that is, the four corner position points of the vehicle) corresponding to each point in the trajectory, and the vertical distance from the vehicle reference path, take the minimum value, and the minimum value is taken as l.
在这里,需要说明的是,如果当前会车状态属于避让类型,车辆需要与对向车辆(其属于动态障碍物)最右侧保持一定的安全距离d。Here, it should be noted that if the current passing vehicle state belongs to the avoidance type, the vehicle needs to maintain a certain safety distance d from the opposite vehicle (which belongs to the dynamic obstacle) on the far right side.
在本发明中,具体实现上,在步骤S3中,根据步骤S2所判断的当前会车状态所属会车类型,确定车辆的横向向右偏移距离,具体包括以下步骤:In the present invention, in terms of specific implementation, in step S3, according to the type of meeting vehicle to which the current meeting state determined in step S2 belongs, the lateral rightward offset distance of the vehicle is determined, which specifically includes the following steps:
如果当前会车状态属于停车类型,根据以下计算公式,计算获得车辆的横向向右偏移距离,具体公式如下:If the current meeting state belongs to the parking type, calculate the lateral rightward offset distance of the vehicle according to the following calculation formula. The specific formula is as follows:
s=x-d;s=x-d;
其中,x表示车辆中心距离位于冲突区域前的道路最右侧边界线的距离;Among them, x represents the distance from the center of the vehicle to the rightmost boundary line of the road in front of the conflict area;
d表示预设安全距离(即车辆左侧所在直线与对向车辆最右侧所在直线之间保持一定的横向垂直距离),考虑到感知和控制误差,d一般取0.5m左右,例如为0.5m。d represents the preset safety distance (that is, a certain horizontal and vertical distance is maintained between the straight line on the left side of the vehicle and the straight line on the far right side of the opposite vehicle). Considering the perception and control errors, d is generally about 0.5m, for example, 0.5m .
具体实现上,根据现有的高精度地图,可以获取车辆所在道路的右侧边界,计算车辆位置与道路右侧边界线的垂向距离,该垂向距离即为:车辆中心距离位于冲突区域前的道路最右侧边界线的距离x。In terms of specific implementation, according to the existing high-precision map, the right boundary of the road where the vehicle is located can be obtained, and the vertical distance between the vehicle position and the right boundary line of the road can be calculated. The vertical distance is: the vehicle center distance is located in front of the conflict area The distance x from the rightmost boundary line of the road.
在这里,需要说明的是,如果当前会车状态属于停车类型,那么,车辆需要行驶至道路最右侧,为对向车辆提供充足的空间。Here, it should be noted that if the current meeting state belongs to the parking type, the vehicle needs to drive to the far right of the road to provide sufficient space for the opposite vehicle.
在本发明中,具体实现上,在步骤S3中,根据当前会车状态属于的会车类型,确定车辆的目标速度,具体包括以下步骤:In the present invention, in terms of specific implementation, in step S3, the target speed of the vehicle is determined according to the type of meeting vehicle to which the current meeting state belongs, which specifically includes the following steps:
如果当前会车状态属于限速类型,车辆的目标速度为预设第一目标速度(例如20km/h左右)。If the current meeting state is of the speed limit type, the target speed of the vehicle is the preset first target speed (for example, about 20 km/h).
如果当前会车状态属于避让类型,车辆的目标速度为预设第二目标速度(例如10km/h左右);If the current meeting state is an avoidance type, the target speed of the vehicle is the preset second target speed (for example, about 10km/h);
其中,预设第二目标速度值小于预设第一目标速度值;Wherein, the preset second target speed value is smaller than the preset first target speed value;
如果当前会车状态属于停车类型,车辆的目标速度为零。If the current meeting state is of the parking type, the target speed of the vehicle is zero.
在本发明中,具体实现上,在步骤S3中,还包括以下步骤:In the present invention, in terms of specific implementation, in step S3, the following steps are also included:
控制车辆进行匀减速运动,计算车辆到达会车位置的减速距离,具体公式如下:Control the vehicle to perform a uniform deceleration motion, and calculate the deceleration distance for the vehicle to reach the meeting position. The specific formula is as follows:
其中,v
ego表示车辆的当前车速;
Among them, v ego represents the current speed of the vehicle;
v
goal表示车辆的目标速度(即目标车速);
v goal represents the target speed of the vehicle (ie the target speed);
v
obj表示对向车辆的当前车速;
v obj represents the current speed of the opposite vehicle;
y表示车辆当前位置与对向车辆的距离(具体为车辆的车头最前侧位置与对向车辆的车头最前侧位置的垂直距离)。y represents the distance between the current position of the vehicle and the opposite vehicle (specifically, the vertical distance between the frontmost position of the front of the vehicle and the frontmost position of the front of the opposite vehicle).
需要说明的是,会车位置为:对向车辆与车辆纵向距离为零时车辆的位置。It should be noted that the meeting position is: the position of the vehicle when the longitudinal distance between the opposite vehicle and the vehicle is zero.
还需要说明的是,车辆的当前车速v
ego由车辆上安装的定位模块提供。对向车辆的车速v
obj和相对距离y,由车辆上安装的现有的感知模块提供,车辆的目标速度由上述逻辑得到(例如20km/h左右,或者10km/h左右)。
It should also be noted that the current speed vego of the vehicle is provided by a positioning module installed on the vehicle. The vehicle speed v obj and the relative distance y of the opposite vehicle are provided by the existing perception module installed on the vehicle, and the target speed of the vehicle is obtained by the above logic (for example, about 20km/h, or about 10km/h).
在本发明中,通过以上公式,就可以计算获得车辆到达会车位置的减速距离,在这里,不需要得到会车位置的具体位置。In the present invention, through the above formula, the deceleration distance for the vehicle to reach the meeting position can be calculated and obtained, and the specific position of the meeting position does not need to be obtained here.
需要说明的是,对于本发明,为了降低车辆在会车瞬间中的车速,需要估计会车瞬间所在位置(即会车位置),并且根据会车类型确定会车位置的目标车速。若当前属于限速类型,车辆目标速度可以取20km/h左右,若当前属于避让类型,车辆目标速度可以取10km/h左右。It should be noted that, for the present invention, in order to reduce the speed of the vehicle at the meeting moment, it is necessary to estimate the position at the meeting moment (ie the meeting position), and determine the target speed of the meeting position according to the type of the meeting. If the current speed limit type, the vehicle target speed can be about 20km/h, if the current avoidance type, the vehicle target speed can be about 10km/h.
还需要说明的是,对于本发明,如果当前会车类型属于停车类型,车辆需要在冲突区域前停车,等待对向车辆通过,因此减速距离为车辆的位置(具体为车头最前侧位置)与冲突区域间的垂直距离,目标车速为0km/h。It should also be noted that, for the present invention, if the current meeting type is a parking type, the vehicle needs to stop in front of the conflict area and wait for the opposite vehicle to pass, so the deceleration distance is the position of the vehicle (specifically, the frontmost position of the front of the vehicle) and the conflict. The vertical distance between areas, the target speed is 0km/h.
其中,冲突区域位置前文已经描述,车辆的位置通过现有的定位模块获取,车辆及冲突区域间的垂直距离为上面所描述的存在冲突的检测距离。The position of the conflict area has been described above, the position of the vehicle is obtained through an existing positioning module, and the vertical distance between the vehicle and the conflict area is the detection distance for the presence of the conflict described above.
基于以上技术方案可知,与现有技术相比较,本发明提出了会车场景的判断方法和分类标准,可以将会车场景规划目标终点,选择转换为横向偏移距离和目标速度计算。同时,提出了针对不同会车类型,对应的规划目标终点计算方法和关键参数设计原则。Based on the above technical solutions, compared with the prior art, the present invention proposes a method for judging and classifying a car meeting scene, and the target end point of the car meeting scene can be planned and converted into lateral offset distance and target speed calculation. At the same time, according to different types of vehicles, the corresponding planning target end point calculation method and key parameter design principles are proposed.
在本发明中,车辆的规划目标终点(即车辆的参考路径的终点),由横 向偏移距离和目标限速值(即目标速度)决定,如前步骤S4所述,目前可以通过现有的混合A*和五次多项式优化等算法,来获取车辆的参考路径以及参考路径的终点。此为现有成熟的技术,在此不再赘述。In the present invention, the planned target end point of the vehicle (that is, the end point of the reference path of the vehicle) is determined by the lateral offset distance and the target speed limit value (that is, the target speed). Algorithms such as hybrid A* and quintic polynomial optimization are used to obtain the reference path of the vehicle and the end point of the reference path. This is an existing mature technology and will not be repeated here.
其中,横向偏移距离和目标限速值(即目标速度)这二者的计算方式及关键参数取决于会车类型,如前所述。Among them, the calculation method and key parameters of the lateral offset distance and the target speed limit value (ie, the target speed) depend on the type of passing vehicles, as described above.
此外,基于以上本发明提供的一种自动驾驶会车场景处理方法,为了执行上述自动驾驶会车场景处理方法,本发明还提供了一种自动驾驶会车场景处理装置,该装置包括以下模块:In addition, based on the above-mentioned method for processing an automatic driving meeting scene provided by the present invention, in order to execute the above-mentioned automatic driving meeting scene processing method, the present invention also provides an automatic driving meeting scene processing device, and the device includes the following modules:
会车状态判断模块,用于判断车辆是否处于会车状态,当车辆处于会车状态时,发送触发信号给会车判断模块,触发运行会车类型判断模块;The meeting vehicle state judgment module is used to judge whether the vehicle is in the meeting vehicle state. When the vehicle is in the meeting vehicle state, it sends a trigger signal to the meeting vehicle judgment module to trigger the operation of the meeting vehicle type judgment module;
会车类型判断处理模块,与会车状态判断模块相连接,用于在被所述会车状态判断模块触发运行后,对当前的会车状态进行分类,判断对应的会车类型,然后根据预先设置的多个不同会车类型与多个不同会车处理操作之间的对应关系,执行对应的会车处理操作;The meeting vehicle type judging processing module is connected with the meeting vehicle state judging module, and is used to classify the current meeting vehicle state after being triggered to run by the meeting vehicle state judging module, judge the corresponding meeting vehicle type, and then according to the preset The corresponding relationship between a plurality of different car meeting types and a plurality of different car meeting processing operations is performed, and the corresponding car meeting processing operations are performed;
在本发明中,基于以上本发明提供的一种自动驾驶会车场景处理方法,对于本发明提供的自动驾驶会车场景处理装置,还包括以下模块:In the present invention, based on the above-mentioned method for processing an automatic driving meeting scene provided by the present invention, the automatic driving meeting scene processing device provided by the present invention further includes the following modules:
横向向右偏移距离和目标速度确定模块,与会车类型判断处理模块相连接,用于根据所述会车类型判断处理模块确定的当前会车状态所属于的会车类型,确定车辆的横向向右偏移距离和目标速度;The lateral right offset distance and the target speed determination module are connected with the meeting vehicle type judgment processing module, and are used for determining the lateral direction of the vehicle according to the type of meeting vehicle to which the current meeting vehicle state determined by the meeting vehicle type judgment processing module belongs. Right offset distance and target speed;
规划目标终点确定模块,与横向向右偏移距离和目标速度确定模块相连接,用于根据所述横向向右偏移距离和目标速度确定模块确定的车辆的横向向右偏移距离和目标速度,获得车辆的规划目标终点,车辆的规划目标终点即为车辆的参考路径的终点;The planning target end point determination module is connected with the lateral right offset distance and the target speed determination module, and is used for determining the lateral right offset distance and the target speed of the vehicle according to the lateral right offset distance and the target speed determination module. , obtain the planned target end point of the vehicle, and the planned target end point of the vehicle is the end point of the reference path of the vehicle;
行车规划模块,与规划目标终点确定模块相连接,用于根据车辆的当前位置和所述规划目标终点确定模块确定的车辆的规划目标终点的位置,生成车辆从当前位置到达规划目标终点之间的行车轨迹(例如运用现有的搜索算法或者其他能够生成行车路径的现有算法)。The driving planning module is connected with the planning target end point determination module, and is used for generating the distance between the vehicle from the current position to the planning target end point according to the current position of the vehicle and the position of the planning target end point of the vehicle determined by the planning target end point determination module. Driving trajectories (eg using existing search algorithms or other existing algorithms capable of generating driving paths).
需要说明的是,该行车轨迹是满足车辆动力学约束并且安全的轨迹。It should be noted that the driving trajectory is a trajectory that satisfies the vehicle dynamics constraints and is safe.
需要说明的是,行车轨迹规划,为现有的行车路径规划方式,可以采用现有公知的方法确定,在此不再赘述。It should be noted that the driving trajectory planning, which is an existing driving path planning method, can be determined by using an existing well-known method, which will not be repeated here.
另外,本发明还提供了一种车辆,所述车辆包括前面所述的自动驾驶会车场景处理装置。In addition, the present invention also provides a vehicle, where the vehicle includes the foregoing apparatus for processing a car meeting scene of an automatic driving.
另外,本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有程序,当所述程序被多核处理器执行时,使得所述多核处理器执行如前面所述的自动驾驶会车场景处理方法。In addition, the present invention also provides a computer-readable storage medium, where a program is stored in the computer-readable storage medium, and when the program is executed by a multi-core processor, the multi-core processor causes the multi-core processor to execute the automatic The processing method of the driving meeting scene.
需要说明的是,在本发明中,具体实现上,本发明中的目标速度计算时估计车辆减速过程,也可以基于梯形加速度和最小冲击度等运动学模型。It should be noted that, in the present invention, in terms of specific implementation, the vehicle deceleration process is estimated when calculating the target speed in the present invention, which can also be based on kinematic models such as trapezoidal acceleration and minimum impact.
在本发明中,具体实现上,本发明中计算得到规划目标终点后,可以在周围进行采样,生成若干个规划终点,用于生成运动轨迹。In the present invention, in terms of specific implementation, after the planned target end point is calculated in the present invention, sampling can be performed around to generate several planned end points for generating motion trajectories.
与现有技术相比较,本发明提供的一种自动驾驶会车场景处理方法及其装置、车辆、存储介质,其具有以下的有益技术效果:Compared with the prior art, the present invention provides a method for processing a car meeting scene of automatic driving, a device, a vehicle, and a storage medium thereof, which have the following beneficial technical effects:
1、本发明设计的会车场景处理方法,能够保证自动驾驶车辆在会车过程中保持合理的车速,车辆和对向车辆都存在充足的空间通过,提高了行驶安全性,并且符合人类的驾驶习惯,从而提升了乘客的乘坐体验。1. The method for processing the meeting scene designed by the present invention can ensure that the automatic driving vehicle maintains a reasonable speed during the meeting, and there is sufficient space for both the vehicle and the opposite vehicle to pass, which improves the driving safety and conforms to human driving. habit, thereby enhancing the passenger's riding experience.
2、本发明设计的规划终点选择方法,充分结合了车辆行驶环境和当前会车场景类型的特点,转换为横向向右偏移距离和目标速度计算,实现过程简洁清晰。2. The planning end point selection method designed by the present invention fully combines the characteristics of the vehicle driving environment and the current meeting scene type, and is converted into the calculation of the lateral right offset distance and the target speed, and the implementation process is concise and clear.
综上所述,与现有技术相比较,本发明提供的一种自动驾驶会车场景处理方法及其装置、车辆、存储介质,其设计科学,能够在遇到会车场景时,主动调节车辆的车速和横向位置,从而降低了会车瞬间的车辆车速,同时增加了车辆与对向车辆间的横向间隔距离,有利于进一步提高行车的安全性,并且满足人们的驾驶习惯,具有重大的实践意义。To sum up, compared with the prior art, the present invention provides a method for processing a car meeting scene of automatic driving, a device, a vehicle, and a storage medium thereof, which are scientifically designed and can actively adjust the vehicle when encountering a car meeting scene. Therefore, the speed of the vehicle at the moment of meeting is reduced, and the lateral separation distance between the vehicle and the opposite vehicle is increased, which is conducive to further improving the safety of driving and satisfying people's driving habits, which has great practice. significance.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.