CN118280104A - Urban traffic simulation-based vehicle lane change control method and device - Google Patents

Urban traffic simulation-based vehicle lane change control method and device Download PDF

Info

Publication number
CN118280104A
CN118280104A CN202410321235.4A CN202410321235A CN118280104A CN 118280104 A CN118280104 A CN 118280104A CN 202410321235 A CN202410321235 A CN 202410321235A CN 118280104 A CN118280104 A CN 118280104A
Authority
CN
China
Prior art keywords
lane
vehicle
current
road section
road
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410321235.4A
Other languages
Chinese (zh)
Inventor
陈奇
张卓凡
张子健
沈李强
裘英杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN202410321235.4A priority Critical patent/CN118280104A/en
Publication of CN118280104A publication Critical patent/CN118280104A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0137Measuring and analyzing of parameters relative to traffic conditions for specific applications

Landscapes

  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明公开了一种基于城市交通仿真的车辆换道控制方法及装置,根据实际道路构建路网二维地图,并生成车辆行驶路线,进行微观交通仿真,获取仿真中车辆状态和路段信息;然后判断当前第i条路段的所有车道中是否有符合该车辆行驶路线可达第i+1条路段的车道;根据可达第i+1条路段中的车道判断可至第i+2条路段的车辆数量;根据车辆行驶路线计算当前第i条车道至第i+1条路段的数量所占当前第i条车道全部下游路段的比例;根据非当前车道中车辆位置后方车辆状态,判断当前车辆换道是否会影响到后车行驶;遍历当前路段中的车道,根据上述条件给予每一条路段一个拥堵指数,获得最优的换道车道。

The present invention discloses a vehicle lane-changing control method and device based on urban traffic simulation. The method comprises the following steps: constructing a two-dimensional road network map according to actual roads, generating a vehicle driving route, performing microscopic traffic simulation, and obtaining vehicle status and road section information in the simulation; then judging whether there is a lane that meets the vehicle driving route and can reach the i+1th road section among all lanes of the current i-th road section; judging the number of vehicles that can reach the i+2th road section according to the lanes in the road section that can reach the i+1th road section; calculating the proportion of the number of vehicles from the current i-th lane to the i+1th road section to all downstream road sections of the current i-th lane according to the vehicle driving route; judging whether the lane-changing of the current vehicle will affect the driving of the following vehicle according to the vehicle status behind the vehicle position in the non-current lane; traversing the lanes in the current road section, giving each road section a congestion index according to the above conditions, and obtaining the optimal lane for lane-changing.

Description

一种基于城市交通仿真的车辆换道控制方法及装置A vehicle lane-changing control method and device based on urban traffic simulation

技术领域Technical Field

本发明涉及城市交通仿真领域,尤其涉及一种基于城市交通仿真的车辆换道控制方法及装置。The present invention relates to the field of urban traffic simulation, and in particular to a vehicle lane changing control method and device based on urban traffic simulation.

背景技术Background technique

城市交通仿真是通过模拟城市道路交通系统的运行情况,以分析交通流、优化交通规划和改善交通效率的一种技术手段。车辆换道模型是城市交通仿真中的关键组成部分,其主要功能是模拟车辆在道路上进行换道的决策过程,以提高交通系统的整体效能。Urban traffic simulation is a technical means to analyze traffic flow, optimize traffic planning and improve traffic efficiency by simulating the operation of urban road traffic systems. The vehicle lane-changing model is a key component of urban traffic simulation. Its main function is to simulate the decision-making process of vehicles changing lanes on the road to improve the overall efficiency of the traffic system.

车辆换道模型的重要性体现在以下几个方面:良好的换道模型能够使车辆在道路上更加灵活地调整行驶路径,有效缓解拥堵情况,提升交通流畅性;通过合理的换道决策,车辆可以更有效地利用道路空间,减少道路资源浪费,提高道路利用率;换道模型的良好设计可以避免交通事故,确保车辆在进行换道操作时考虑到前后车辆的行驶状况,提高交通系统的整体安全性。然而,以往的换道模型也存在一些缺点:The importance of vehicle lane-changing models is reflected in the following aspects: a good lane-changing model can enable vehicles to adjust their driving paths more flexibly on the road, effectively alleviate congestion, and improve traffic flow; through reasonable lane-changing decisions, vehicles can use road space more effectively, reduce road resource waste, and improve road utilization; a good design of the lane-changing model can avoid traffic accidents, ensure that the vehicle takes into account the driving conditions of the vehicles in front and behind when changing lanes, and improve the overall safety of the traffic system. However, previous lane-changing models also have some shortcomings:

1.仅考虑左右车道的拥挤程度:这种模型在较宽道路上表现不佳,无法充分考虑车辆与目标道路的匹配度。1. Only consider the congestion of the left and right lanes: This model performs poorly on wider roads and cannot fully consider the matching degree between the vehicle and the target road.

2.对前方车辆速度和距离的简单判断:以前的模型仅通过前方车辆的速度和距离来进行换道决策,无法提前感知前方车辆的减速或停止情况。2. Simple judgment of the speed and distance of the vehicle in front: Previous models only made lane change decisions based on the speed and distance of the vehicle in front, and were unable to perceive in advance whether the vehicle in front was slowing down or stopping.

3.未考虑后续行驶道路:以前的模型未能提前考虑车辆即将进入的行驶道路,导致换道决策缺乏长远规划。3. Not considering the subsequent driving road: Previous models failed to consider in advance the road that the vehicle was about to enter, resulting in a lack of long-term planning for lane changing decisions.

4.忽略前方车辆数量的影响:在等待红绿灯时,以前的模型未考虑前方车辆数量,可能导致车道无法充分利用。4. Ignoring the impact of the number of vehicles ahead: When waiting for traffic lights, previous models did not take into account the number of vehicles ahead, which may result in lanes not being fully utilized.

5.缺乏与当前车况和路况的评估:以前的模型未对当前车辆状况和道路状况进行全面评估,可能导致选择并非最优的换道策略。5. Lack of assessment of current vehicle and road conditions: Previous models did not fully assess the current vehicle and road conditions, which may result in the selection of suboptimal lane-changing strategies.

为了克服这些缺点,需要进一步优化和改进换道模型,引入更多的因素和先进的算法,以实现更智能、更适应复杂交通环境的车辆换道决策。In order to overcome these shortcomings, it is necessary to further optimize and improve the lane-changing model and introduce more factors and advanced algorithms to achieve smarter and more adaptable vehicle lane-changing decisions in complex traffic environments.

发明内容Summary of the invention

本发明目的在于针对现有技术的不足,提出一种基于城市交通仿真的车辆换道控制方法及装置。The present invention aims to address the deficiencies of the prior art and to propose a vehicle lane changing control method and device based on urban traffic simulation.

本发明的目的是通过以下技术方案来实现的:一种基于城市交通仿真的车辆换道控制方法,该方法包括以下步骤:The object of the present invention is achieved through the following technical solution: a vehicle lane changing control method based on urban traffic simulation, the method comprising the following steps:

(1)根据实际道路构建路网二维地图,并生成车辆行驶路线,进行微观交通仿真,获取仿真中车辆状态和路段信息;(1) Construct a two-dimensional road network map based on actual roads, generate vehicle driving routes, perform microscopic traffic simulation, and obtain vehicle status and road section information in the simulation;

(2)判断当前第i条路段的所有车道中是否有符合该车辆行驶路线可达第i+1条路段的车道;(2) Determine whether there is a lane among all lanes of the current i-th road section that meets the vehicle's driving route and can reach the i+1-th road section;

(3)根据可达第i+1条路段中的车道判断可至第i+2条路段的车辆数量,判断影响车辆行驶路线的拥堵程度T;(3) Determine the number of vehicles that can reach the i+2th road section based on the lanes in the i+1th road section, and determine the congestion level T that affects the vehicle's driving route;

(4)根据车辆行驶路线计算当前第i条车道至第i+1条路段的数量所占当前第i条车道全部下游路段的比例K;(4) Calculate the ratio K of the number of sections from the current i-th lane to the i+1-th lane to all downstream sections of the current i-th lane according to the vehicle's driving route;

(5)根据非当前车道中车辆位置后方车辆状态,判断当前车辆换道是否会影响到后车行驶,赋予拥堵影响系数B;(5) Based on the status of the vehicle behind the vehicle in the lane other than the current one, determine whether the lane change of the current vehicle will affect the driving of the following vehicle and assign a congestion impact coefficient B;

(6)遍历当前路段中的车道,给予每一条路段一个拥堵指数weight,计算公式为:(6) Traverse the lanes in the current section and give each section a congestion index weight. The calculation formula is:

其中vehnum为前方车辆数量,frontV为前方车辆速度,limitV为当前车道限速,frontS为前方车辆位置,curS为当前车辆位置,nextNum为可达第i+2条在车辆行驶路线上的路段中的车道数量,a、b、c均为参数;Where vehnum is the number of vehicles ahead, frontV is the speed of the vehicle ahead, limitV is the speed limit of the current lane, frontS is the position of the vehicle ahead, curS is the current vehicle position, nextNum is the number of lanes in the road section that can reach the i+2th on the vehicle's driving route, and a, b, and c are all parameters;

将所有车道按照拥堵指数排序,其中拥堵指数最小的车道为最优的换道车道。All lanes are sorted according to the congestion index, and the lane with the smallest congestion index is the optimal lane for lane change.

进一步地,步骤(1)中,采用车道Lane、路段Edge、道路Road的三层路网结构来模拟真实的道路,Junction来模拟真实的交叉口;Furthermore, in step (1), a three-layer road network structure of lane, edge, and road is used to simulate a real road, and junction is used to simulate a real intersection;

路段Edge分为两种:Internal Edge和Normal Edge,Normal Edge为交叉口之间的路段,包含多个车道Lane,Internal Edge为交叉口内部的行车路线,有且只有一个车道;There are two types of road edge: Internal Edge and Normal Edge. Normal Edge is the road section between intersections, which contains multiple lanes. Internal Edge is the driving route inside the intersection, which has only one lane.

车道Lane是比路段更小的单位,一条车道不能横跨两个路段,只能并列排列在路段内部。A lane is a smaller unit than a road section. A lane cannot span two road sections and can only be arranged side by side within a road section.

进一步地,步骤(2)中,通过当前第i条路段可达的下游第i+1条路段反向获取到当前第i条路段中每条车道分别通行至下游的哪一条路段;判断当前车辆所在路段在该车辆行驶路线中是否为终点路段,若是终点则将目标车道设为路段中最右车道,若不是终点,则判断当前车辆的行驶路线中第i+1条路段与该车所在路段可达的下游路段中哪一个路段相同,并将该路段对应的车道标记为可至第i+1条路段的车道。Furthermore, in step (2), the i+1th downstream road section reachable from the current i-th road section is used to reversely obtain which road section downstream each lane in the current i-th road section leads to; determine whether the road section where the current vehicle is located is the terminal section in the vehicle's driving route; if it is the terminal, set the target lane to the rightmost lane in the road section; if it is not the terminal, determine which road section in the current vehicle's driving route is the same as the i+1th road section in the downstream road section reachable from the road section where the vehicle is located, and mark the lane corresponding to the road section as the lane that can reach the i+1th road section.

进一步地,步骤(3)中,若在车辆的行驶路线route中,第i+2条路段为目的地,则跳过此步骤;否则,根据车辆行驶路线寻找第i+1条路段中的车道可达第i+2条在行驶路线上的路段的数量,记为nextNum,将行驶路线影响系数记为T:Furthermore, in step (3), if the i+2th road segment in the vehicle's driving route is the destination, then this step is skipped; otherwise, the number of lanes in the i+1th road segment that can reach the i+2th road segment on the driving route is found according to the vehicle's driving route, which is recorded as nextNum, and the driving route influence coefficient is recorded as T:

T的含义为:当前该车道是否可达行驶路线中第i+1条的路段NextNormalEdge,且在第i+1条路段的下游车道中是否可达第i+2条行驶路线上路段,若都满足,则记为1,若不满足第一点,记为t1,若不满足第二点,记为t2,若都不满足,记为t3,此时t1,t2,t3应小于1且递减。The meaning of T is: whether the current lane can reach the NextNormalEdge of the i+1th section in the driving route, and whether the downstream lane of the i+1th section can reach the section on the i+2th driving route. If both are satisfied, it is recorded as 1. If the first point is not satisfied, it is recorded as t 1. If the second point is not satisfied, it is recorded as t 2. If none of them are satisfied, it is recorded as t 3. At this time, t 1 , t 2 , and t 3 should be less than 1 and decreasing.

进一步地,步骤(5)中,若存在后方车辆,则获取该车辆的位置信息记为backS,速度信息记为backV,当前车辆位置信息记为curS,当前车辆速度信息记为curV,记最大换道时间记为maxA;计算后方来车的影响系数B,即当前车辆换道会影响到后车行驶的系数为:Furthermore, in step (5), if there is a vehicle behind, the position information of the vehicle is obtained and recorded as backS, the speed information is recorded as backV, the current vehicle position information is recorded as curS, the current vehicle speed information is recorded as curV, and the for The maximum lane-changing time is recorded as maxA; the influence coefficient B of the vehicle coming from behind is calculated, that is, the coefficient of the current vehicle changing lanes to affect the driving of the following vehicle is:

大于等于maxA时,在当前最大的换道时间内后车会影响换道,则认为后方车辆过快,赋予更高的拥堵指数,考虑在该后车通行过后换道。when When it is greater than or equal to maxA, the rear vehicle will affect the lane change within the current maximum lane change time, then the rear vehicle is considered to be too fast, a higher congestion index is assigned, and consideration is given to changing lanes after the rear vehicle passes.

进一步地,根据拥堵指数获得车道排序后,还需要判断候选车道,将除当前车道外的所有排序后车道依次与当前车道进行拥堵指数比较,直到某一项数值大于等于当前车道拥堵指数的p%时停止,将小于当前车道拥堵指数的p%的车道列入候选车道中,其中p的数值设定为:Furthermore, after obtaining the lane ranking according to the congestion index, it is necessary to determine the candidate lanes. The congestion indexes of all the ranked lanes except the current lane are compared with the current lane in turn until a certain value is greater than or equal to p% of the congestion index of the current lane. The lanes with a congestion index less than p% of the current lane are included in the candidate lanes, where the value of p is set as:

其中,curV表示当前车辆速度,limitV表示根据路段限速以及当前车辆类型限速得出该车最大速度;此时p的含义为当前车辆速度越不达限速,则越不希望进行换道。Among them, curV represents the current vehicle speed, limitV represents the maximum speed of the vehicle according to the speed limit of the road section and the speed limit of the current vehicle type; at this time, the meaning of p is that the lower the current vehicle speed is from the speed limit, the less desired it is to change lanes.

进一步地,对选定的每一条车道进行安全检查判断,即在当前的速度下换道后判断目标车道上是否有车辆冲突的行为,记换道所需要的距离为t*V,冲突判断距离t*(V+-v),t为设定的换道时间,V为当前车辆速度,v为设定的速度偏移值;Furthermore, a safety check is performed on each selected lane, that is, after changing lanes at the current speed, it is determined whether there is a vehicle conflict in the target lane. The distance required for lane change is t*V, and the conflict judgment distance is t*(V+-v), where t is the set lane change time, V is the current vehicle speed, and v is the set speed offset value;

a.目标车道上对应位置加冲突判断距离的范围内是否被车辆占满;a. Whether the target lane is fully occupied within the range of the corresponding position plus the conflict judgment distance;

b.目标车道上对应位置加冲突判断距离的范围内是否有后车冲入,后车判断所在位置计算为后车当前位置+t*后车当前速度;b. Whether there is a rear vehicle rushing into the target lane within the range of the corresponding position plus the conflict judgment distance. The rear vehicle judgment position is calculated as the rear vehicle's current position + t* the rear vehicle's current speed;

当无冲突时,将当前车道作为换道目标进行输出;当有冲突时,判定为该车道不安全,继续下一条车道的判断,当所有候选车道都不安全时,输出为空,表示当前情况不满足换道条件。When there is no conflict, the current lane is output as the lane-changing target; when there is a conflict, the lane is judged to be unsafe and the judgment of the next lane continues. When all candidate lanes are unsafe, the output is empty, indicating that the current situation does not meet the lane-changing conditions.

第二方面,本发明还提供了一种基于城市交通仿真的车辆换道控制装置,包括存储器和一个或多个处理器,所述存储器中存储有可执行代码,所述处理器执行所述可执行代码时,实现所述的一种基于城市交通仿真的车辆换道控制方法。In a second aspect, the present invention also provides a vehicle lane changing control device based on urban traffic simulation, comprising a memory and one or more processors, wherein the memory stores executable code, and when the processor executes the executable code, the vehicle lane changing control method based on urban traffic simulation is implemented.

第三方面,本发明还提供了一种计算机可读存储介质,其上存储有程序,所述程序被处理器执行时,实现所述的一种基于城市交通仿真的车辆换道控制方法。In a third aspect, the present invention further provides a computer-readable storage medium having a program stored thereon, and when the program is executed by a processor, the vehicle lane changing control method based on urban traffic simulation is implemented.

第四方面,本发明还提供了一种计算机程序产品,包括计算机程序/指令,所述计算机程序/指令被处理器执行时,实现所述的一种基于城市交通仿真的车辆换道控制方法。In a fourth aspect, the present invention further provides a computer program product, including a computer program/instruction, which, when executed by a processor, implements the vehicle lane changing control method based on urban traffic simulation.

本发明的有益效果:Beneficial effects of the present invention:

1.考虑车辆与目标路段的匹配度:新模型引入了更多的因素,如车辆类型、目标路段特性等,使得在较宽路段上也能够更好地考虑车辆与目标路段的匹配度。1. Consider the matching degree between the vehicle and the target road section: The new model introduces more factors, such as vehicle type, target road section characteristics, etc., so that the matching degree between the vehicle and the target road section can be better considered on wider road sections.

2.提前感知前方车辆减速或停止:新模型能够提前感知前方车辆的减速或停止情况,避免仅仅依赖速度和距离的简单判断。这样的改进使得换道决策更加智能和安全,降低了交通事故的风险。2. Pre-sense when the vehicle ahead is slowing down or stopping: The new model can sense when the vehicle ahead is slowing down or stopping in advance, avoiding simple judgments based solely on speed and distance. Such improvements make lane-changing decisions smarter and safer, reducing the risk of traffic accidents.

3.长远规划换道决策:新模型考虑了车辆即将进入的行驶路段,实现了更长远的换道规划。这有助于避免短视的决策,提高了整体交通系统的效率和流畅性。3. Long-term planning of lane change decisions: The new model takes into account the road section that the vehicle is about to enter, and achieves longer-term lane change planning. This helps avoid short-sighted decisions and improves the efficiency and smoothness of the overall traffic system.

4.充分利用车道空间:引入对前方车辆数量的考虑,新模型确保在等待红绿灯时充分利用车道空间,减少车道被填不满的情况,提高了道路资源的利用率,降低了拥堵的可能性。4. Make full use of lane space: By taking into account the number of vehicles ahead, the new model ensures that lane space is fully utilized when waiting for traffic lights, reducing the situation where lanes are not fully filled, improving the utilization rate of road resources and reducing the possibility of congestion.

5.全面评估当前车况和路况:新模型对当前车辆状况和道路状况进行全面评估,确保选择最优的换道策略。这有助于提高整体交通系统的效能,减少不必要的交通阻塞和延误。5. Comprehensive assessment of current vehicle and road conditions: The new model comprehensively assesses the current vehicle and road conditions to ensure the selection of the optimal lane-changing strategy. This helps improve the efficiency of the overall traffic system and reduce unnecessary traffic jams and delays.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动前提下,还可以根据这些附图获得其他附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

图1为本发明提供的一种基于城市交通仿真的车辆换道控制方法的流程图;FIG1 is a flow chart of a vehicle lane changing control method based on urban traffic simulation provided by the present invention;

图2为城市交通仿真的路网结构示意图;FIG2 is a schematic diagram of a road network structure of an urban traffic simulation;

图3为提前感知后续路程车辆决策示意图;FIG3 is a schematic diagram of a vehicle decision-making process for pre-sensing the subsequent journey;

图4为真实的交通仿真场景图;Figure 4 is a diagram of a real traffic simulation scene;

图5为本发明提供的一种基于城市交通仿真的车辆换道控制装置的结构图。FIG5 is a structural diagram of a vehicle lane-changing control device based on urban traffic simulation provided by the present invention.

具体实施方式Detailed ways

以下结合附图对本发明具体实施方式作进一步详细说明。The specific implementation modes of the present invention are further described in detail below with reference to the accompanying drawings.

如图1所示,本发明提供的一种基于城市交通仿真的车辆换道控制方法,该方法包括以下步骤:As shown in FIG1 , the present invention provides a vehicle lane changing control method based on urban traffic simulation, the method comprising the following steps:

(1)根据实际道路构建路网(1) Constructing a road network based on actual roads

如图2所示,采用车道Lane、路段Edge、道路Road的三层路网结构来模拟真实的道路,Junction来模拟真实的交叉口。As shown in Figure 2, a three-layer road network structure of lanes, edges, and roads is used to simulate real roads, and junctions are used to simulate real intersections.

路段Edge分为两种:Internal Edge和Normal Edge,Normal Edge(下简称Normal)为通常意义上所说的路段,即交叉口之间的路段;而Internal Edge(下简称Internal)特指交叉口内部的行车路线,两者有非常多的共性,唯一不同是Normal Edge可以包含多个车道,而Internal Edge有且只有一个车道,这样处理是为了简化交叉口内部的处理逻辑。路段Edge包含的数据有:路段限速、路段属性、路段长度、路段宽度、包含的车道以及所包含的设备。There are two types of road edge: Internal Edge and Normal Edge. Normal Edge (hereinafter referred to as Normal) is the road section in the usual sense, that is, the road section between intersections; while Internal Edge (hereinafter referred to as Internal) specifically refers to the driving route inside the intersection. The two have many similarities. The only difference is that Normal Edge can contain multiple lanes, while Internal Edge has only one lane. This is done to simplify the processing logic inside the intersection. The data contained in the road edge include: road speed limit, road attributes, road length, road width, included lanes, and included equipment.

车道Lane是比路段更小的单位,一条车道不能横跨两个路段,只能并列排列在路段内部,Normal Edge与Internal Edge在Edge层级上的差别在Lane层级上得到了统一。车道Lane包含的数据有:车道限速、车道长度、车道宽度、车道所属路段以及所包含的设备。Lane is a smaller unit than road section. A lane cannot span two road sections and can only be arranged side by side inside a road section. The difference between Normal Edge and Internal Edge at the Edge level is unified at the Lane level. Lane contains the following data: lane speed limit, lane length, lane width, road section to which the lane belongs, and the equipment included.

道路Road是一个具体的概念,层级在Edge之上,是类似于“人民路”、“解放路”等完整道路的概念。Road is a specific concept, which is above Edge. It is a concept of complete roads similar to "Renmin Road" and "Jiefang Road".

交叉口Junction是两条或两条以上的有向道路相交的点,用于连接相邻的边。包含的数据有:交叉口中心点坐标、进入交叉口的路段以及离开交叉口的路段。An intersection is a point where two or more directed roads intersect, and is used to connect adjacent edges. The data included are: the coordinates of the center point of the intersection, the road section entering the intersection, and the road section leaving the intersection.

交叉口上的交通信号灯TrafficLight属于路段所包含的设备中,包含的数据有:信号灯周期和信号灯所控制的车道。The traffic light TrafficLight at the intersection is a device included in the road section, and the data included include: the traffic light cycle and the lane controlled by the traffic light.

(2)根据新能源车数据构建od并生成路线route(2) Build OD and generate routes based on new energy vehicle data

本发明方法直接从地图结构出发得到最小区域块,然后充分利用GPS数据,提取轨迹数据中的起讫点,构建起讫点OD数据集。包括以下步骤:The method of the present invention directly obtains the smallest area block from the map structure, and then makes full use of GPS data to extract the starting and ending points in the trajectory data to construct the starting and ending point OD data set. It includes the following steps:

(2.1)获取轨迹数据,所述的轨迹数据包括车辆识别代号VIN、获取轨迹数据时的时间time、经度longitude、纬度latitude、车速speed、车辆钥匙状态keystatus;(2.1) Acquiring trajectory data, wherein the trajectory data includes a vehicle identification code (VIN), a time when the trajectory data is acquired, longitude, latitude, vehicle speed, and vehicle key status;

OD:起讫点,包括起点(Origin)、讫点(Destination)。OD: Origin and destination, including the starting point (Origin) and the destination (Destination).

(2.2)对轨迹数据进行过滤,删除有缺失值的轨迹数据、冗余数据等异常数据,得到正常轨迹数据集;(2.2) Filter the trajectory data, delete the trajectory data with missing values, redundant data and other abnormal data, and obtain the normal trajectory data set;

(2.3)对于正常轨迹数据集中的每一条数据,按照车辆识别代号VIN进行分组,并将同一组内的数据按照时间time从早到晚的顺序排序;(2.3) For each data in the normal trajectory data set, group it according to the vehicle identification code VIN, and sort the data in the same group in order from early to late according to time;

(2.4)根据车辆钥匙状态keystatus判断其是否为起讫点,构建OD数据集A={A1,A2,A3,...,Ai,...,AN},其中第i条OD数据Ai包括经度longitude与纬度latitude。假设车辆在行车过程中车辆钥匙不会出现关闭状态,则起讫点判断方法为:(2.4) According to the vehicle key status keystatus, determine whether it is the starting and ending point, and construct the OD data set A = {A 1 , A 2 , A 3 , ..., Ai , ..., A N }, where the i-th OD data Ai includes longitude and latitude. Assuming that the vehicle key will not be turned off during driving, the starting and ending point determination method is:

1)若轨迹数据为该组数据第一个车辆钥匙状态为开启,且车速不为0的点,则判断为起点;1) If the trajectory data is the first point in the group of data where the vehicle key state is turned on and the vehicle speed is not 0, it is judged as the starting point;

2)若轨迹数据的车辆钥匙状态由关闭(或点火)变为开启,且车速不再为0,则判断为起点;2) If the vehicle key status of the trajectory data changes from off (or ignition) to on, and the vehicle speed is no longer 0, it is determined to be the starting point;

3)若轨迹数据为该组数据最后一个车辆钥匙状态为关闭,且车速为0的点,则判断为讫点;3) If the trajectory data is the last point in the group of data where the vehicle key status is off and the vehicle speed is 0, it is determined as the end point;

4)若轨迹数据的车辆钥匙状态由开启变为关闭,且车速变为0,则判断为讫点;4) If the vehicle key status of the trajectory data changes from on to off, and the vehicle speed becomes 0, it is determined to be the end point;

(2.5)根据车辆GPS定位的每一条数据在路网中生成一个由Normal Edge组成的有向数组作为车辆的路线Route。(2.5) Based on each piece of data from the vehicle’s GPS positioning, a directed array consisting of Normal Edges is generated in the road network as the vehicle’s route.

(3)开始微观交通仿真(3) Start micro traffic simulation

通过前面生成的二维地图实现一个微观交通仿真系统,仿真系统主要由四部分Network、Vehicle、Kernel、Common Service构成,Network模块负责车辆的移动、道路的构建、道路上设施的构建;Vehicle模块负责车辆的行为(变道、加速、减速)、车辆内部设备的构建;Kernel模块负责控制路网与车辆的运转、定义时钟节拍器控制仿真的速度;CommonService模块负责定义一些全局的配置和数据存取接口方便其他模块使用。A microscopic traffic simulation system is realized through the two-dimensional map generated earlier. The simulation system is mainly composed of four parts: Network, Vehicle, Kernel, and Common Service. The Network module is responsible for the movement of vehicles, the construction of roads, and the construction of facilities on the roads; the Vehicle module is responsible for the behavior of the vehicle (changing lanes, accelerating, decelerating) and the construction of the vehicle's internal equipment; the Kernel module is responsible for controlling the operation of the road network and vehicles, and defining the clock metronome to control the speed of the simulation; the CommonService module is responsible for defining some global configurations and data access interfaces for the convenience of other modules.

(4)获取仿真中车辆状态(4) Obtaining the vehicle status in simulation

获取仿真中车辆的相关信息,例如车辆的行驶速度、加速度、行驶位置,行驶意图,车辆类型,当前车辆行驶速度curV,行驶在当前Lane中位置curS。Get relevant information about the vehicle in the simulation, such as the vehicle's speed, acceleration, driving position, driving intention, vehicle type, current vehicle speed curV, and position curS in the current Lane.

(5)获取仿真中路段信息(5) Obtaining road section information in simulation

获取仿真中路段的相关信息,路段限速标志,路段长度,路段车道数,后继路段。Obtain relevant information of the road section in the simulation, including the speed limit sign, length, number of lanes, and subsequent sections.

(6)获取当前第i条路段的所有车道中符合该车辆行驶route可达第i+1条路段的车道列表(6) Obtain a list of lanes on the current i-th road segment that match the vehicle's route to the i+1-th road segment.

通过当前第i条edge可达的下游第i+1条edge反向获取到当前第i条edge中每条lane分别通行至下游的哪一条edge,例如左转车道可达十字路口交叉的左方edge,直行车道可达十字路口交叉的前方edge;判断当前车辆所在edge在该车辆route中是否为终点edge,若是终点则将目标车道设为edge中最右lane,若不是终点,则判断当前车辆的route中第i+1条edge与该车所在edge可达的下游edge中哪一个edge相同,并将该edge对应的lane标记为可至第i+1条edge的lane。Through the i+1th downstream edge reachable by the current i-th edge, reversely obtain which edge each lane in the current i-th edge can pass to downstream, for example, the left-turn lane can reach the left edge of the intersection, and the straight lane can reach the front edge of the intersection; determine whether the edge where the current vehicle is located is the terminal edge in the vehicle route. If it is the terminal, set the target lane to the rightmost lane in the edge; if it is not the terminal, determine which edge of the downstream edges reachable by the edge where the vehicle is located is the same as the i+1th edge in the route of the current vehicle, and mark the lane corresponding to the edge as the lane that can reach the i+1th edge.

(7)获取可达第i+1条路段中的每个车道可至第i+2条路段的车道数量,此处应为一个长度等于可达第i+1条路段车道数量的列表,其中为每个车道到达第i+2条路段的车道个数。(7) Obtain the number of lanes that can reach the i+2th road section for each lane in the i+1th road section. This should be a list with a length equal to the number of lanes that can reach the i+1th road section, where is the number of lanes that each lane can reach the i+2th road section.

若在车辆的route中,第i+2条Normal Edge为目的地Destination,则跳过此步骤;否则,根据车辆route寻找第i+1条Normal Edge中的lane可达第i+2条在Route上的NormalEdge的数量,记为nextNum,这里将route影响系数记为T,此时T的含义为:当前该车道是否可达route中第i+1条的Normal Edge,且在第i+1条Normal Edge的下游lane中是否可达第i+2条route上Normal Edge,若都满足,则记为1,若不满足第一点,记为t1,若不满足第二点,记为t2,若都不满足,记为t3,此时t1,t2,t3应小于1且递减,如图3所示,作为附加解释。If the i+2th Normal Edge in the vehicle's route is the destination, skip this step; otherwise, find the number of Normal Edges on the route that can be reached from the lane in the i+1th Normal Edge according to the vehicle route, denoted as nextNum. Here, the route influence coefficient is denoted as T. At this time, the meaning of T is: whether the current lane can reach the i+1th Normal Edge in the route, and whether the i+2th Normal Edge on the route can be reached in the downstream lane of the i+1th Normal Edge. If both are satisfied, it is recorded as 1. If the first point is not satisfied, it is recorded as t 1. If the second point is not satisfied, it is recorded as t 2. If none of them are satisfied, it is recorded as t 3. At this time, t 1 , t 2 , and t 3 should be less than 1 and decrease, as shown in Figure 3 as an additional explanation.

(8)获取车道中车辆位置前方车辆数量(8) Obtain the vehicle position and number of vehicles ahead in the lane

通过微观仿真系统中的每一条Normal Edge的车辆管理器,获得到每一条lane在该车所在位置的前方所拥有的车辆数量记为vehnum,引入排队车辆数量可以使得在红绿灯交叉口处排队更趋向于平均。Through the vehicle manager of each Normal Edge in the micro-simulation system, the number of vehicles in front of each lane at the location of the vehicle is obtained, recorded as vehnum. Introducing the number of queued vehicles can make the queue at the traffic light intersection more even.

(9)根据前方车辆的速度以及该车辆距离前方车辆的距离,获得拥堵程度(9) Obtain the congestion level based on the speed of the vehicle in front and the distance between the vehicle and the vehicle in front

遍历车道时,在当前某一车道上该车辆前方的车辆数量不为0时,找到车道上前方的第一辆车,获取该车辆与当前车辆的距离和该车辆速度,分别记为frontS和frontV,引入前方车辆的速度以及距离,可以提前探测到Lane前方的拥堵程度。When traversing the lanes, if the number of vehicles in front of the vehicle in the current lane is not 0, find the first vehicle in front of the lane, obtain the distance between the vehicle and the current vehicle and the speed of the vehicle, which are recorded as frontS and frontV respectively. By introducing the speed and distance of the vehicle in front, the degree of congestion in front of the lane can be detected in advance.

(10)根据route计算当前第i条车道至第i+1条路段的数量所占当前第i条车道下游路段的比例(10) Calculate the ratio of the number of sections from the current i-th lane to the i+1-th lane to the number of sections downstream of the current i-th lane according to the route

计算当前Normal Lane中的下游Internal Lane可以通向当前车辆route中第i+1条Normal Edge与全部下游Internal Lane数量的比例,记下游路段的比例影响系数为K。Calculate the ratio of the number of downstream Internal Lanes in the current Normal Lane that can lead to the i+1th Normal Edge in the current vehicle route to the number of all downstream Internal Lanes, and record the proportional influence coefficient of the downstream section as K.

其中,nextLanes表示可以通向当前车辆route中第i+1条Normal Edge的数量;allLanes当前Normal Lane中的全部下游Internal Lane数量;Among them, nextLanes indicates the number of Normal Edges that can lead to the i+1th Normal Edge in the current vehicle route; allLanes indicates the number of all downstream Internal Lanes in the current Normal Lane;

(11)获取非当前车道中车辆位置后方车辆状态(11) Obtain the status of the vehicle behind the vehicle position in the non-current lane

若存在后方车辆,则获取该车辆的位置信息记为backS,速度信息记为backV,当前车辆位置信息记为curS,当前车辆速度信息记为curV,记最大换道时间记为maxA,表示当大于等于maxA时,在当前最大的换道时间内后车会影响换道,则认为后方车辆过快,赋予更高的拥堵指数,考虑在该后车通行过后换道。If there is a vehicle behind, the position information of the vehicle is recorded as backS, the speed information is recorded as backV, the current vehicle position information is recorded as curS, the current vehicle speed information is recorded as curV, and the for The maximum lane-changing time is denoted as maxA, which means when When it is greater than or equal to maxA, the rear vehicle will affect the lane change within the current maximum lane change time, then the rear vehicle is considered to be too fast, a higher congestion index is assigned, and consideration is given to changing lanes after the rear vehicle passes.

计算后方来车的影响系数B,即当前车辆换道会影响到后车行驶的系数为:Calculate the influence coefficient B of the vehicle coming from behind, that is, the coefficient of the current vehicle changing lanes that will affect the driving of the vehicle behind:

(12)根据拥堵指数进行求最优Lane(12) Find the optimal lane based on the congestion index

遍历当前Normal Edge中的Lane后,给予每一条路段一个拥堵指数weight,计算公式为:After traversing the Lanes in the current Normal Edge, a congestion index weight is given to each road section. The calculation formula is:

其中vehnum为前方车辆数量,frontV为前方车辆速度,limitV为当前车道限速,frontS为前方车辆位置,curS为当前车辆位置,nextNum为可达第i+2条在Route上的NormalEdge的lane数量,a、b、c均为参数,本发明设定为100,5,1。后续将拥堵指数weight通过T,K,B进行修正:Where vehnum is the number of vehicles ahead, frontV is the speed of the vehicle ahead, limitV is the speed limit of the current lane, frontS is the position of the vehicle ahead, curS is the current vehicle position, nextNum is the number of lanes that can reach the NormalEdge of the i+2th on the Route, a, b, c are all parameters, which are set to 100, 5, and 1 in the present invention. The congestion index weight is subsequently modified by T, K, and B:

weight’=weight·T·K·Bweight’=weight·T·K·B

其中,weight’为修正后的拥堵指数,T为route影响系数,数值小于等于1大于0,K为下游路段比例影响系数,数值小于等于1大于0,B为后方来车影响系数,数值大于等于1。Among them, weight’ is the corrected congestion index, T is the route influence coefficient, the value is less than or equal to 1 and greater than 0, K is the downstream section proportion influence coefficient, the value is less than or equal to 1 and greater than 0, B is the rear vehicle influence coefficient, the value is greater than or equal to 1.

将所有Lane按照拥堵指数升序排列,记为排列Lanes,其中拥堵指数最小的Lane为最优Lane;Arrange all lanes in ascending order according to the congestion index, recorded as arranged Lanes, where the Lane with the smallest congestion index is the optimal Lane;

(13)判断车辆是否临近该车道限速行驶(13) Determine whether the vehicle is approaching the lane with the speed limit

1、没有路段中心线的路段1. Road sections without a center line

1)城市路段最高行驶速度不得超过每小时30公里;1) The maximum speed on urban roads shall not exceed 30 kilometers per hour;

2)公路最高行驶速度不得超过每小时40公里。2) The maximum speed on highways shall not exceed 40 kilometers per hour.

2、同方向只有1条机动车道的路段2. Road sections with only one motor vehicle lane in the same direction

1)城市路段最高行驶速度不得超过每小时50公里;1) The maximum speed on urban roads shall not exceed 50 kilometers per hour;

2)公路最高行驶速度不得超过每小时70公里。2) The maximum speed on highways shall not exceed 70 kilometers per hour.

3、同方向划有两条以上机动车道的路段(没有限速标志、标线的)3. Road sections with more than two motor vehicle lanes in the same direction (without speed limit signs or markings)

1)城市路段最高行驶速度不得超过每小时70公里;1) The maximum speed on urban roads shall not exceed 70 kilometers per hour;

2)封闭的机动车专用路段和公路最高行驶速度不得超过每小时80公里。2) The maximum speed on closed motor vehicle-only roads and highways shall not exceed 80 kilometers per hour.

获取当前车辆速度,记为curV,根据路段限速以及当前车辆类型限速得出该车最大速度,记为limitV。Get the current vehicle speed, denoted as curV, and calculate the maximum speed of the vehicle based on the speed limit of the road section and the speed limit of the current vehicle type, denoted as limitV.

(14)与原先车道相比若超出一定比重则记为候选车道(14) If the lane exceeds a certain proportion compared to the original lane, it will be recorded as a candidate lane

将排列Lanes依次与当前Lane的拥堵指数比较(除了当前Lane),直到该排列的某一项数值大于等于当前车道拥堵指数的p%时停止,将小于当前车道拥堵指数的p%的Lane列入候选车道中,其中p的数值设定为:Compare the congestion index of the arranged Lanes with that of the current Lane in turn (except the current Lane) until a value of one of the arranged items is greater than or equal to p% of the congestion index of the current lane. Then, the Lanes with a congestion index less than p% of the current lane are included in the candidate lanes, where the value of p is set as:

此时p的含义为当前车辆速度越不达限速,则越不希望进行换道,例如当行驶速度达限速的90%时,只有拥堵程度为当前车道的10%才考虑换道。这样做的好处是可以消除车辆意图的波动,防止车辆频繁产生换道意图,在较为通畅的Edge中频繁换道。At this time, p means that the less the current vehicle speed reaches the speed limit, the less it is desired to change lanes. For example, when the driving speed reaches 90% of the speed limit, lane change is considered only when the congestion level reaches 10% of the current lane. The advantage of this is that it can eliminate the fluctuation of vehicle intentions and prevent vehicles from frequently changing lanes in relatively smooth Edges.

list={Weightlane>Weightcur·p|Lane∈Lanes}list={Weight lane >Weight cur ·p|Lane∈Lanes}

(15)候选车道安全判断(15) Safety judgment of candidate lanes

对选定的每一条候选路段进行安全检查判断,即在当前的速度下换道至候选车道方向的Lane上判断是否有车辆冲突的行为,记换道所需要的距离为t*V,冲突判断距离t*(V±v),此处t为设定的换道时间,V为当前车辆速度,v为设定的速度偏移值。A safety check is performed on each selected candidate road section, that is, at the current speed, the lane is changed to the lane in the direction of the candidate lane to determine whether there is any vehicle conflict. The distance required for lane change is t*V, and the conflict judgment distance is t*(V±v), where t is the set lane change time, V is the current vehicle speed, and v is the set speed offset value.

a.目标车道上对应位置加冲突判断距离的范围内是否被车辆占满。a. Whether the corresponding position on the target lane plus the conflict judgment distance is fully occupied by vehicles.

b.目标车道上对应位置加冲突判断距离的范围内是否有后车冲入,后车判断所在位置计算为后车当前位置+t*后车当前速度;b. Whether there is a rear vehicle rushing into the target lane within the range of the corresponding position plus the conflict judgment distance. The rear vehicle judgment position is calculated as the rear vehicle's current position + t* the rear vehicle's current speed;

当无冲突时,将当前Lane作为换道目标进行输出;当有冲突时,判定为该Lane不安全,继续下一条Lane的判断,当所有候选Lane都不安全时,输出为空,表示当前情况不满足换道条件。When there is no conflict, the current lane is output as the lane-changing target; when there is a conflict, the lane is judged to be unsafe, and the judgment of the next lane continues. When all candidate lanes are unsafe, the output is empty, indicating that the current situation does not meet the lane-changing conditions.

(16)换道判断结束(16) Lane change judgment ends

输出相应的结果并进行换道意图输出。Output the corresponding results and output the lane change intention.

(17)将换道的结果输出在仿真系统中(17) Output the lane change results in the simulation system

将换道意图引入行驶的每一辆车辆中,如图4所示,为真实的交通仿真场景图。The lane-changing intention is introduced into each moving vehicle, as shown in FIG4 , which is a diagram of a real traffic simulation scene.

与前述一种基于城市交通仿真的车辆换道控制方法的实施例相对应,本发明还提供了一种基于城市交通仿真的车辆换道控制装置的实施例。Corresponding to the aforementioned embodiment of a vehicle lane changing control method based on urban traffic simulation, the present invention also provides an embodiment of a vehicle lane changing control device based on urban traffic simulation.

参见图5,本发明实施例提供的一种基于城市交通仿真的车辆换道控制装置,包括存储器和一个或多个处理器,所述存储器中存储有可执行代码,所述处理器执行所述可执行代码时,用于实现上述实施例中的一种基于城市交通仿真的车辆换道控制方法。Referring to FIG. 5 , a vehicle lane changing control device based on urban traffic simulation is provided in an embodiment of the present invention, comprising a memory and one or more processors, wherein the memory stores executable code, and when the processor executes the executable code, it is used to implement a vehicle lane changing control method based on urban traffic simulation in the above embodiment.

本发明提供的一种基于城市交通仿真的车辆换道控制装置的实施例可以应用在任意具备数据处理能力的设备上,该任意具备数据处理能力的设备可以为诸如计算机等设备或装置。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在任意具备数据处理能力的设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图5所示,为本发明提供的一种基于城市交通仿真的车辆换道控制装置所在任意具备数据处理能力的设备的一种硬件结构图,除了图5所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的任意具备数据处理能力的设备通常根据该任意具备数据处理能力的设备的实际功能,还可以包括其他硬件,对此不再赘述。An embodiment of a vehicle lane changing control device based on urban traffic simulation provided by the present invention can be applied to any device with data processing capabilities, and the any device with data processing capabilities can be a device or apparatus such as a computer. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of any device with data processing capabilities in which it is located to read the corresponding computer program instructions in the non-volatile memory into the memory and run them. From the hardware level, as shown in Figure 5, it is a hardware structure diagram of any device with data processing capabilities in which a vehicle lane changing control device based on urban traffic simulation provided by the present invention is located. In addition to the processor, memory, network interface, and non-volatile memory shown in Figure 5, any device with data processing capabilities in which the device in the embodiment is located can also include other hardware according to the actual function of the device with data processing capabilities, which will not be described in detail.

上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本发明方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.

本发明实施例还提供一种计算机可读存储介质,其上存储有程序,该程序被处理器执行时,实现上述实施例中的一种基于城市交通仿真的车辆换道控制方法。An embodiment of the present invention further provides a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, a vehicle lane changing control method based on urban traffic simulation in the above embodiment is implemented.

所述计算机可读存储介质可以是前述任一实施例所述的任意具备数据处理能力的设备的内部存储单元,例如硬盘或内存。所述计算机可读存储介质也可以是任意具备数据处理能力的设备的外部存储设备,例如所述设备上配备的插接式硬盘、智能存储卡(Smart Media Card,SMC)、SD卡、闪存卡(Flash Card)等。进一步的,所述计算机可读存储介质还可以既包括任意具备数据处理能力的设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述任意具备数据处理能力的设备所需的其他程序和数据,还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be an internal storage unit of any device with data processing capability described in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium may also be an external storage device of any device with data processing capability, such as a plug-in hard disk, a smart media card (SMC), an SD card, a flash card, etc. equipped on the device. Furthermore, the computer-readable storage medium may also include both an internal storage unit and an external storage device of any device with data processing capability. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capability, and may also be used to temporarily store data that has been output or is to be output.

本发明还提供了一种计算机程序产品,包括计算机程序/指令,所述计算机程序/指令被处理器执行时,实现所述的一种基于城市交通仿真的车辆换道控制方法。The present invention also provides a computer program product, including a computer program/instruction, and when the computer program/instruction is executed by a processor, the vehicle lane changing control method based on urban traffic simulation is implemented.

上述实施例用来解释说明本发明,而不是对本发明进行限制,在本发明的精神和权利要求的保护范围内,对本发明作出的任何修改和改变,都落入本发明的保护范围。The above embodiments are used to illustrate the present invention rather than to limit the present invention. Any modification and change made to the present invention within the spirit of the present invention and the protection scope of the claims shall fall within the protection scope of the present invention.

Claims (10)

1. A vehicle lane change control method based on urban traffic simulation is characterized by comprising the following steps:
(1) Constructing a road network two-dimensional map according to an actual road, generating a vehicle driving route, performing microscopic traffic simulation, and acquiring vehicle state and road section information in the simulation;
(2) Judging whether all lanes of the current ith road section have lanes which accord with the (i+1) th road section of the vehicle driving route;
(3) Judging the number of vehicles reaching the (i+2) th road section according to the lanes reaching the (i+1) th road section, and judging the congestion degree T affecting the running route of the vehicle;
(4) Calculating the proportion K of the number of the current ith lane to the (i+1) th road sections to the whole downstream road sections of the current ith lane according to the vehicle driving route;
(5) Judging whether the current vehicle lane change affects the running of the rear vehicle according to the state of the vehicle behind the vehicle position in the non-current lane, and giving a congestion influence coefficient B;
(6) Traversing lanes in a current road section, giving a congestion index weight to each road section, wherein the calculation formula is as follows:
Wherein vehnum is the number of vehicles ahead, frontV is the speed of vehicles ahead, limitV is the current lane speed limit, frontS is the position of vehicles ahead, curS is the current vehicle position, nextNum is the number of lanes in the road section on the vehicle driving route up to the (i+2) th lane, and a, b and c are parameters;
And sequencing all the lanes according to the congestion index, wherein the lane with the smallest congestion index is the optimal lane change lane.
2. The vehicle Lane change control method based on urban traffic simulation according to claim 1, wherein in the step (1), a three-layer Road network structure of a Lane, a Road section Edge and a Road is adopted to simulate a real Road, and a Junction is adopted to simulate a real intersection;
road segments Edge are divided into two types: INTERNAL EDGE and Normal Edge, which are road sections between intersections, including multiple lanes Lane, INTERNAL EDGE, which are driving routes inside the intersections, and only one Lane;
the Lane is a unit smaller than a road section, and one Lane cannot cross two road sections and can be arranged in parallel inside the road section.
3. The vehicle lane change control method based on urban traffic simulation according to claim 1, wherein in the step (2), the downstream i+1 road section accessible to the current i road section is reversely acquired, and each lane in the current i road section is respectively passed to the downstream road section; judging whether the road section where the current vehicle is located is a destination road section in the vehicle driving route, if yes, setting the target lane as the rightmost lane in the road section, if not, judging which road section in the i+1th road section in the current vehicle driving route is the same as the downstream road section reachable by the road section where the current vehicle is located, and marking the lane corresponding to the road section as the lane reaching the i+1th road section.
4. The urban traffic simulation-based vehicle lane change control method according to claim 1, wherein in the step (3), if the i+2th road section is the destination in the travel route of the vehicle, the step is skipped; otherwise, the number of sections on which the (i+2) th road section can be reached by the lane in the (i+1) th road section is searched according to the running route of the vehicle, which is marked as nextNum, and the running route influence coefficient is marked as T:
T has the meaning: if the current lane can reach the (i+1) th road section NextNormalEdge in the driving route and if the (i+2) th road section on the driving route can reach the (i+1) th road section in the downstream lane, the current lane is marked as 1 if both the road sections are satisfied, the current lane is marked as t 1 if the first point is not satisfied, the current lane is marked as t 2 if the second point is not satisfied, the current lane is marked as t 3 if both the first point and the second point are not satisfied, and at this time, t 1,t2,t3 should be smaller than 1 and gradually decreased.
5. The urban traffic simulation-based vehicle lane change control method according to claim 1, wherein in step (5), if there is a rear vehicle, the position information of the vehicle is obtained and is denoted as backS, the speed information is denoted as backV, the current vehicle position information is denoted as curS, the current vehicle speed information is denoted as curV, and the speed information is denoted asIs thatThe maximum lane change time is recorded as maxA; calculating an influence coefficient B of a rear coming vehicle, namely, a coefficient that the current vehicle lane change can influence the running of the rear vehicle is as follows:
When (when) When the traffic jam index is larger than or equal to maxA, the rear vehicle can influence lane change in the current maximum lane change time, and the rear vehicle is considered to be too fast, a higher jam index is given, and lane change after the rear vehicle passes is considered.
6. The vehicle lane change control method based on urban traffic simulation according to claim 1, wherein after obtaining the lane sequence according to the congestion index, the candidate lanes are further required to be determined, all sequenced lanes except the current lane are sequentially compared with the current lane for the congestion index, until a certain value is greater than or equal to p% of the current lane congestion index, the lane less than p% of the current lane congestion index is listed in the candidate lanes, wherein the value of p is set as follows:
Wherein curV represents the current vehicle speed, limitV represents deriving the maximum speed of the vehicle from the road segment speed limit and the current vehicle type speed limit; the meaning of p at this time is that the less the current vehicle speed reaches the speed limit, the less desirable the lane change is.
7. The urban traffic simulation-based vehicle lane change control method according to claim 1, wherein safety inspection judgment is performed on each selected lane, namely, whether a vehicle conflict exists on a target lane is judged after lane change at the current speed, the distance required for lane change is t x V, the conflict judgment distance t x (v+ -V), t is set lane change time, V is the current vehicle speed, and V is a set speed offset value;
a. whether the range of the conflict judgment distance is occupied by the vehicle or not is judged by adding the conflict in the corresponding position on the target lane;
b. Whether a rear vehicle rushes in the range of the conflict judgment distance is added to the corresponding position on the target lane, and the position where the rear vehicle is judged is calculated as the current position of the rear vehicle and t is the current speed of the rear vehicle;
when no conflict exists, the current lane is used as a lane change target to be output; when the collision exists, the lane is judged to be unsafe, the judgment of the next lane is continued, and when all the candidate lanes are unsafe, the output is empty, and the current situation is indicated to not meet the lane change condition.
8. A vehicle lane change control apparatus based on urban traffic simulation, comprising a memory and one or more processors, wherein executable codes are stored in the memory, and wherein the processor implements a vehicle lane change control method based on urban traffic simulation as claimed in any one of claims 1 to 7 when executing the executable codes.
9. A computer-readable storage medium having a program stored thereon, wherein the program, when executed by a processor, implements a vehicle lane change control method based on urban traffic simulation as claimed in any one of claims 1 to 7.
10. A computer program product comprising computer programs/instructions which, when executed by a processor, implement a vehicle lane change control method based on urban traffic simulation as claimed in claims 1-7.
CN202410321235.4A 2024-03-20 2024-03-20 Urban traffic simulation-based vehicle lane change control method and device Pending CN118280104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410321235.4A CN118280104A (en) 2024-03-20 2024-03-20 Urban traffic simulation-based vehicle lane change control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410321235.4A CN118280104A (en) 2024-03-20 2024-03-20 Urban traffic simulation-based vehicle lane change control method and device

Publications (1)

Publication Number Publication Date
CN118280104A true CN118280104A (en) 2024-07-02

Family

ID=91648017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410321235.4A Pending CN118280104A (en) 2024-03-20 2024-03-20 Urban traffic simulation-based vehicle lane change control method and device

Country Status (1)

Country Link
CN (1) CN118280104A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118865694A (en) * 2024-09-26 2024-10-29 广东车卫士信息科技有限公司 Vehicle cooperative control method and control system based on vehicle-road-cloud
CN119151112A (en) * 2024-11-21 2024-12-17 华芯(嘉兴)智能装备有限公司 Crown block system congestion dispersion method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118865694A (en) * 2024-09-26 2024-10-29 广东车卫士信息科技有限公司 Vehicle cooperative control method and control system based on vehicle-road-cloud
CN119151112A (en) * 2024-11-21 2024-12-17 华芯(嘉兴)智能装备有限公司 Crown block system congestion dispersion method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104298829B (en) Cellular automaton model based urban road network traffic flow simulation design method
CN118280104A (en) Urban traffic simulation-based vehicle lane change control method and device
CN111238497A (en) High-precision map construction method and device
CN112987711B (en) Optimization method of automatic driving regulation algorithm and simulation testing device
CN107851381A (en) The method and apparatus for controlling traffic intersection vehicle pass-through
CN115565390B (en) Intelligent network-connected automobile multi-lane queue traffic control method, system and computer readable storage medium
CN113536538B (en) Pedestrian and vehicle interaction simulation method and system based on traffic conflict
WO2024222453A1 (en) Method and apparatus for determining vehicle traveling trajectory, and electronic device and storage medium
Barthauer et al. Presorting and presignaling: A new intersection operation mode for autonomous and human-operated vehicles
CN113538939A (en) Bus priority phase setting method under condition of constant period
CN113312760A (en) Traffic simulation-based networked motor vehicle right turn trajectory planning method and device
CN113689703B (en) Vehicle shunting control method and device, electronic equipment and storage medium
CN115527362A (en) Traffic flow guidance method, device, equipment and storage medium for high-speed section
CN114839984A (en) A shuttle route planning method, device, equipment and storage medium
CN105117395A (en) Query Algorithm of Neighboring Vehicles Based on Position Cues Balanced Binary Tree
CN115662133B (en) Intersection signal timing optimization method and device, terminal equipment and storage medium
ShangGuan et al. Research on unsigned intersection control method based on cooperative vehicle infrastructure system
Wang et al. A Simulation‐Based Comprehensive Analysis for Traffic Efficiency and Spatial Distribution of Risks in Short Weaving Area of Municipal Interchange
CN116756509A (en) Energy management optimization method, device, equipment and storage medium
CN113276860B (en) Vehicle control method, device, electronic device, and storage medium
CN115438019A (en) Traffic scene description method and device
Alanazi et al. Improving the performance of unsignalized T-intersections within CAVs mixed traffic
CN115587460B (en) Digital simulation method and device for road traffic condition
Feng et al. Method of pedestrian-vehicle conflict eliminating at unsignalized mid-block crosswalks for autonomous vehicles
CN115456392B (en) A high-speed multi-vehicle multi-driving behavior conflict collaborative decision-making method and device

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination