[go: up one dir, main page]

CN113295177B - Dynamic path planning method and system based on real-time road condition information - Google Patents

Dynamic path planning method and system based on real-time road condition information Download PDF

Info

Publication number
CN113295177B
CN113295177B CN202110479473.4A CN202110479473A CN113295177B CN 113295177 B CN113295177 B CN 113295177B CN 202110479473 A CN202110479473 A CN 202110479473A CN 113295177 B CN113295177 B CN 113295177B
Authority
CN
China
Prior art keywords
road section
path
road
section
current
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.)
Active
Application number
CN202110479473.4A
Other languages
Chinese (zh)
Other versions
CN113295177A (en
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.)
Changan University
Original Assignee
Changan University
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 Changan University filed Critical Changan University
Priority to CN202110479473.4A priority Critical patent/CN113295177B/en
Publication of CN113295177A publication Critical patent/CN113295177A/en
Application granted granted Critical
Publication of CN113295177B publication Critical patent/CN113295177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3446Details of route searching algorithms, e.g. Dijkstra, A*, arc-flags or using precalculated routes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3453Special cost functions, i.e. other than distance or default speed limit of road segments
    • G01C21/3492Special cost functions, i.e. other than distance or default speed limit of road segments employing speed data or traffic data, e.g. real-time or historical
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Navigation (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention relates to the field of vehicle navigation and path planning, and discloses a dynamic path planning method and a dynamic path planning system based on real-time road condition information. The method is characterized in that in the process of driving a vehicle along a planned navigation route, if a congested road section appears in front of the vehicle, a part of the route connected with the congested road section is replaced as little as possible on the basis of an original route without deviating from the original driving direction, the route can be re-planned to reach a preset destination, and therefore the road traffic congestion condition can be effectively relieved. Meanwhile, when the path is re-planned, the invention does not need to search the path in the network again, but searches in the tree structure mentioned in the invention, which is faster than searching the path in the network, thereby shortening the time spent on searching the path to a great extent. The method is suitable for vehicle navigation, path planning and other conditions, and has important application value in the field of intelligent transportation.

Description

基于实时路况信息的动态路径规划方法及系统Dynamic route planning method and system based on real-time road condition information

技术领域technical field

本发明属于车辆导航以及路径规划领域,具体涉及基于实时路况信息的动态路径规划方法及系统。The invention belongs to the field of vehicle navigation and path planning, and in particular relates to a dynamic path planning method and system based on real-time road condition information.

背景技术Background technique

车辆在沿已规划好的导航路线行驶过程中,由于受到交通流量、天气、突发事故等因素的影响,在汽车的行驶路径中会出现拥堵路段,此时需要合理的路径规划来规避拥堵。现有的路径规划大多是在全局路网的基础上进行搜索,通过使用遗传算法、A*算法、蚁群算法、Dijkstra算法等来解决路径优化问题。其中,遗传算法是指通过模拟自然界中的选择和遗传机制来寻找最优路径。它具有很好的全局搜索能力,但在处理行驶路线问题时,存在路径交叉现象,导致搜索结果次优;A*算法是一种广泛使用的最短路径启发式搜索算法。该算法的搜索结果与启发式函数密切相关。不同的启发式函数会导致不同的搜索路径;蚁群算法是一种现代仿生进化算法,具有很强的鲁棒性,但容易出现算法收敛速度慢和容易陷入局部最优的缺陷;Dijkstra算法用于计算一个节点到其他所有节点的最短路径。主要特点是以起始点为中心向外层层扩展,直到扩展到终点为止。它能得出最短路径的最优解,但由于它遍历计算的节点很多,所以效率低。During the process of driving along the planned navigation route, due to the influence of traffic flow, weather, unexpected accidents and other factors, there will be congested sections in the driving path of the car. At this time, reasonable path planning is required to avoid congestion. Most of the existing path planning search on the basis of the global road network, and solve the path optimization problem by using genetic algorithm, A* algorithm, ant colony algorithm, Dijkstra algorithm and so on. Among them, the genetic algorithm refers to finding the optimal path by simulating the selection and genetic mechanism in nature. It has a good global search ability, but when dealing with the driving route problem, there is a phenomenon of path intersection, which leads to suboptimal search results; A* algorithm is a widely used shortest path heuristic search algorithm. The search results of this algorithm are closely related to the heuristic function. Different heuristic functions will lead to different search paths; ant colony algorithm is a modern bionic evolutionary algorithm, which has strong robustness, but it is prone to the defects of slow algorithm convergence and easy to fall into local optimum; Dijkstra algorithm uses It is used to calculate the shortest path from one node to all other nodes. The main feature is that it expands from the starting point to the outer layer until it reaches the end point. It can get the optimal solution of the shortest path, but because it traverses many nodes for calculation, it is inefficient.

此外,采用全局路网搜索的方法进行路径规划时,需要在重新遍历路网中的全部路径的基础上进行搜索,且搜索过程中需要利用所有路段的拓扑关系,以此来替换原导航路径中的很大一部分路径,从而使得汽车行驶偏离了原来的行驶方向,同时也增加了路径规划的时间,不满足汽车行驶的及时性要求。In addition, when using the global road network search method for path planning, it is necessary to search on the basis of traversing all the paths in the road network again, and the topological relationship of all road segments needs to be used in the search process to replace the original navigation path. A large part of the path is used, so that the car deviates from the original driving direction, and it also increases the path planning time, which does not meet the timeliness requirements of the car.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供基于实时路况信息的动态路径规划方法及系统,用以解决现有技术中当出现重新规划路径的情况时,需要重新在路网中进行路径搜索,从而导致处理效率低下的问题。The purpose of the present invention is to provide a dynamic path planning method and system based on real-time road condition information, so as to solve the problem that when a path is re-planned in the prior art, it is necessary to perform a path search in the road network again, resulting in low processing efficiency. question.

为了实现上述任务,本发明采用以下技术方案:In order to realize the above-mentioned tasks, the present invention adopts the following technical solutions:

基于实时路况信息的动态路径规划方法,用于采用建立好的最短树形结构路网地图,对原始路径中的拥堵路段进行替换并对候补替换路径进行寻优,获得最优替换路径;The dynamic route planning method based on real-time road condition information is used to use the established shortest tree structure road network map to replace the congested road sections in the original route and optimize the candidate replacement route to obtain the optimal replacement route;

所述的最短树形结构路网地图包括各个路段的树形结构,每个路段的树形结构包括路段的拓扑结构以及该路段进行最短距离搜索后每个路段到其他路段的最短可达路径和最短距离;该方法包括如下步骤:The shortest tree structure road network map includes the tree structure of each road segment, and the tree structure of each road segment includes the topology structure of the road segment and the shortest reachable path from each road segment to other road segments after the shortest distance search is performed on the road segment. The shortest distance; the method includes the following steps:

步骤1:获取原始规划路径和当前位置,所述原始规划路径中包含拥堵路段;Step 1: Obtain the original planned path and the current position, where the original planned path includes congested road sections;

步骤2:根据拥堵路段的路段ID在最短树形结构路网地图中查找拥堵路段树形结构,获得拥堵路段的相邻上游路段和相邻下游路段,将拥堵路段的相邻上游路段的拓扑路段作为出发路段,将拥堵路段的相邻下游路段作为结束路段,所述的相邻上游路段和相邻下游路段均属于原始规划路径;Step 2: Search the congested road segment tree structure in the shortest tree structure road network map according to the road segment ID of the congested road segment, obtain the adjacent upstream road segments and adjacent downstream road segments of the congested road segment, and assign the topological road segments of the adjacent upstream road segments of the congested road segment As the departure road section, the adjacent downstream road section of the congested road section is used as the end road section, and the adjacent upstream road section and the adjacent downstream road section both belong to the original planned route;

步骤3:判断当前的出发路段和当前的结束路段之间是否存在不经过拥堵路段的可达路径,将存在的可达路径保存为候补替换路径,Step 3: Determine whether there is an accessible path that does not pass through the congested section between the current departure road section and the current ending road section, and save the existing accessible path as a candidate replacement path,

保留当前的出发路段并将当前的结束路段的相邻下游路段作为当前的结束路段;Retain the current departure road segment and take the adjacent downstream road segment of the current end road segment as the current end road segment;

步骤4:对当前的结束路段进行判断,若当前的结束路段到拥堵路段之间的路径长度小于等于第二路径距离阈值时,则返回执行步骤3,其中,所述第二路径距离阈值为从拥堵路段出发向下游路段搜索距离的最大上限阈值;Step 4: Judging the current end road section, if the path length between the current end road section and the congested road section is less than or equal to the second path distance threshold, return to step 3, where the second path distance threshold is from The maximum upper limit threshold of the search distance from the congested road section to the downstream section;

若当前的结束路段到拥堵路段之间的路径长度大于第二路径距离阈值时,则将当前的出发路段中不包含原始轨迹路段的剩余拓扑路段作为当前的出发路段,将拥堵路段的相邻下游路段作为当前的结束路段,返回执行步骤3,直至当前的出发路段中剩余拓扑路段为空,则将当前的出发路段中包含的原始轨迹路段的相邻上游路段的拓扑路段更新为当前的出发路段,将拥堵路段的相邻下游路段作为当前的结束路段,执行步骤5;If the path length between the current end road segment and the congested road segment is greater than the second path distance threshold, the remaining topological road segments that do not include the original trajectory segment in the current departure road segment are taken as the current departure road segment, and the adjacent downstream segments of the congested road segment are used as the current departure road segment. The road segment is taken as the current end road segment, and returns to step 3 until the remaining topological road segments in the current departure road segment are empty, then update the topological road segment of the adjacent upstream segment of the original trajectory segment included in the current departure road segment to the current departure road segment , take the adjacent downstream section of the congested section as the current end section, and perform step 5;

步骤5:若当前的出发路段到当前位置的距离大于等于第一路径距离阈值时,则返回执行步骤3,其中,所述第一路径距离阈值为出发路段到当前行驶位置之间距离的最小下限阈值;Step 5: If the distance from the current departure section to the current position is greater than or equal to the first path distance threshold, return to step 3, where the first path distance threshold is the minimum lower limit of the distance between the departure section and the current driving position threshold;

否则,停止路径搜索并判断,若候补替换路径为空,则继续按照原始规划路径行驶;若候补替换路径不为空,则执行步骤6;Otherwise, stop the path search and judge, if the candidate replacement path is empty, continue to drive according to the original planned path; if the candidate replacement path is not empty, go to step 6;

步骤6:获取候补替换路径中的出发路段和结束路段之间路径长度最短的路径,并判断该路径长度最短的路径中是否包含新的拥堵路段,若存在新的拥堵路段,则更新拥堵路段且将更新后的行驶轨迹路径作为原始轨迹路径并重新执行步骤2;否则将该路径长度最短的路径作为最优替换路径。Step 6: Obtain the path with the shortest path length between the departure section and the end section in the candidate replacement path, and determine whether the path with the shortest path length includes a new congested section, if there is a new congested section, update the congested section and Take the updated driving trajectory path as the original trajectory path and perform step 2 again; otherwise, the path with the shortest path length is used as the optimal replacement path.

进一步的,获取最短树形结构路网地图包括如下子步骤:Further, obtaining the shortest tree structure road network map includes the following sub-steps:

步骤a:获得所有路段的路段数据,所述的路段数据包括路段ID、路段起点经度坐标、路段起点纬度坐标、路段终点经度坐标、路段终点纬度坐标和路段长度,将所有路段的路段数据根据起点、终点经纬度坐标是否相同进行关联,获得每个路段的拓扑结构;Step a: Obtain the road section data of all road sections, the road section data includes the road section ID, the longitude coordinates of the start point of the road section, the latitude coordinates of the start point of the road section, the longitude coordinates of the end point of the road section, the latitude coordinates of the end point of the road section, and the length of the road section. , whether the latitude and longitude coordinates of the end point are the same, and then associate to obtain the topology structure of each road segment;

步骤b:对每个路段按照拓扑结构进行最短距离搜索,获得每个路段到其他路段的最短可达路径和最短距离,以每个路段的起点和终点为该路段树形结构的Node节点,以每个路段在最短距离搜索算法的时间长度内的可达路径和最短距离为该路段树形结构的Value值建立树形结构,得到所有路段的树形结构,将所有路段的树形结构作为最短树形结构路网地图。Step b: Carry out the shortest distance search for each road segment according to the topology structure, obtain the shortest reachable path and shortest distance from each road segment to other road segments, take the starting point and end point of each road segment as the Node node of the tree structure of the road segment, and use The reachable path and the shortest distance of each road segment within the time length of the shortest distance search algorithm establish a tree structure for the Value value of the tree structure of the road segment, obtain the tree structure of all road segments, and take the tree structure of all road segments as the shortest Tree structure road network map.

进一步的,所述的第一路径距离阈值根据最短反应时间和汽车的平均行驶速度确定,所述的第二路径距离阈值根据从当前路段出发到达与其相连的下游方向的最远可达路径之间所需的时间和汽车的平均行驶速度确定。Further, the first path distance threshold is determined according to the shortest reaction time and the average driving speed of the car, and the second path distance threshold is determined according to the distance between the farthest reachable path from the current road section to the downstream direction connected to it. The time required and the average speed of the car are determined.

更进一步的,平均行驶速度为50km/s,最短反应时间为40s,从当前路段出发到达与其相连的下游方向的最远可达路径之间所需的时间为2min。Furthermore, the average driving speed is 50km/s, the shortest response time is 40s, and the time required between starting from the current road section and reaching the farthest reachable route in the downstream direction connected to it is 2min.

基于实时路况信息的动态路径规划系统,用于采用建立好的最短树形结构路网地图,对原始路径中的拥堵路段进行替换并对候补替换路径进行寻优,获得最优替换路径;The dynamic route planning system based on real-time road condition information is used to use the established shortest tree structure road network map to replace the congested road sections in the original route and optimize the candidate replacement route to obtain the optimal replacement route;

该系统包括路段最短树形结构路网地图和替换路径规划模块;The system includes the shortest tree structure road network map of the road section and a replacement path planning module;

所述的最短树形结构路网地图包括各个路段的树形结构,每个路段的树形结构包括路段的拓扑结构以及该路段进行最短距离搜索后每个路段到其他路段的最短可达路径和最短距离;The shortest tree structure road network map includes the tree structure of each road segment, and the tree structure of each road segment includes the topology structure of the road segment and the shortest reachable path from each road segment to other road segments after the shortest distance search is performed on the road segment. the shortest distance;

所述的替换路径规划模块包括多个子模块,其中,第一子模块用于获取原始规划路径和当前位置,所述原始规划路径中包含拥堵路段;The replacement route planning module includes a plurality of sub-modules, wherein the first sub-module is used to obtain an original planned route and a current position, and the original planned route includes a congested road section;

第二子模块用于根据拥堵路段的路段ID在最短树形结构路网地图中查找拥堵路段树形结构,获得拥堵路段的相邻上游路段和相邻下游路段,将拥堵路段的相邻上游路段的拓扑路段作为出发路段,将拥堵路段的相邻下游路段作为结束路段,所述的相邻上游路段和相邻下游路段均属于原始规划路径;The second sub-module is used to search the congested road segment tree structure in the shortest tree structure road network map according to the road segment ID of the congested road segment, obtain the adjacent upstream road segment and adjacent downstream road segment of the congested road segment, and assign the adjacent upstream road segment of the congested road segment The topological road section is used as the departure road section, and the adjacent downstream road section of the congested road section is used as the end road section, and the adjacent upstream road sections and adjacent downstream road sections belong to the original planned path;

第三子模块用于判断当前的出发路段和当前的结束路段之间是否存在不经过拥堵路段的可达路径,将存在的可达路径保存为候补替换路径,The third sub-module is used to determine whether there is an accessible route that does not pass through the congested road segment between the current departure road segment and the current end segment, and save the existing reachable route as a candidate replacement route,

保留当前的出发路段并将当前的结束路段的相邻下游路段作为当前的结束路段;Retain the current departure road segment and take the adjacent downstream road segment of the current end road segment as the current end road segment;

第四子模块用于对当前的结束路段进行判断,若当前的结束路段到拥堵路段之间的路径长度小于等于第二路径距离阈值时,则返回执行第三子模块,其中,所述第二路径距离阈值为从拥堵路段出发向下游路段搜索距离的最大上限阈值;The fourth sub-module is used for judging the current end road section, and if the path length between the current end road section and the congested road section is less than or equal to the second path distance threshold, return to execute the third sub-module, wherein the second sub-module is executed. The path distance threshold is the maximum upper limit threshold of the search distance from the congested road section to the downstream road section;

若当前的结束路段到拥堵路段之间的路径长度大于第二路径距离阈值时,则将当前的出发路段中不包含原始轨迹路段的剩余拓扑路段作为当前的出发路段,将拥堵路段的相邻下游路段作为当前的结束路段,返回执行第三子模块,直至当前的出发路段中剩余拓扑路段为空,则将当前的出发路段中包含的原始轨迹路段的相邻上游路段的拓扑路段更新为当前的出发路段,将拥堵路段的相邻下游路段作为当前的结束路段,执行第五子模块;If the path length between the current end road segment and the congested road segment is greater than the second path distance threshold, the remaining topological road segments that do not include the original trajectory segment in the current departure road segment are taken as the current departure road segment, and the adjacent downstream segments of the congested road segment are used as the current departure road segment. The road segment is taken as the current end road segment, and returns to execute the third sub-module until the remaining topological road segments in the current departure road segment are empty, then update the topological road segment of the adjacent upstream road segment of the original trajectory segment included in the current departure road segment to the current one Departure section, take the adjacent downstream section of the congested section as the current end section, and execute the fifth sub-module;

第五子模块用于判断,若当前的出发路段到当前位置的距离大于等于第一路径距离阈值时,则返回执行第三子模块,其中,所述第一路径距离阈值为出发路段到当前行驶位置之间距离的最小下限阈值;The fifth sub-module is used to judge, if the distance from the current departure road segment to the current position is greater than or equal to the first path distance threshold, then return to execute the third sub-module, wherein the first path distance threshold is the departure road segment to the current driving distance. Minimum lower threshold for distances between locations;

否则,停止路径搜索并判断,若候补替换路径为空,则继续按照原始规划路径行驶;若候补替换路径不为空,则执行第六子模块;Otherwise, stop the path search and judge, if the candidate replacement path is empty, continue to drive according to the original planned path; if the candidate replacement path is not empty, execute the sixth sub-module;

第六子模块用于获取候补替换路径中的出发路段和结束路段之间路径长度最短的路径,并判断该路径长度最短的路径中是否包含新的拥堵路段,若存在新的拥堵路段,则更新拥堵路段且将更新后的行驶轨迹路径作为原始轨迹路径并重新执行第二子模块;否则将该路径长度最短的路径作为最优替换路径。第六子模块用于获取替换路径的出发路段和结束路段之间路径长度最短的路径,并判断该路径长度最短的路径中是否包含新的拥堵路段,若存在新的拥堵路段,则更新拥堵路段并重新执行第二子模块;否则将该路径长度最短的路径作为最优替换路径。The sixth sub-module is used to obtain the path with the shortest path length between the departure road segment and the end road segment in the candidate replacement path, and determine whether the path with the shortest path length includes a new congested road segment, and if there is a new congested road segment, update the The road section is congested and the updated driving trajectory path is taken as the original trajectory path and the second sub-module is re-executed; otherwise, the path with the shortest path length is taken as the optimal replacement path. The sixth sub-module is used to obtain the path with the shortest path length between the departure section and the end section of the replacement path, and determine whether the path with the shortest path length includes a new congested section, and if there is a new congested section, update the congested section And re-execute the second sub-module; otherwise, the path with the shortest path length is regarded as the optimal replacement path.

进一步的,获取最短树形结构路网地图包括如下子模块:Further, obtaining the shortest tree structure road network map includes the following submodules:

子模块a用于获得所有路段的路段数据,所述的路段数据包括路段ID、路段起点经度坐标、路段起点纬度坐标、路段终点经度坐标、路段终点纬度坐标和路段长度,将所有路段的路段数据根据起点、终点经纬度坐标是否相同进行关联,获得每个路段的拓扑结构;Submodule a is used to obtain the road section data of all road sections, and the road section data includes the road section ID, the longitude coordinates of the start point of the road section, the latitude coordinates of the start point of the road section, the longitude coordinates of the end point of the road section, the latitude coordinates of the end point of the road section and the length of the road section. Correlate according to whether the latitude and longitude coordinates of the starting point and the ending point are the same to obtain the topology structure of each road segment;

子模块b用于对每个路段按照拓扑结构进行最短距离搜索,获得每个路段到其他路段的最短可达路径和最短距离,以每个路段的起点和终点为该路段树形结构的Node节点,以每个路段在最短距离搜索算法的时间长度内的可达路径和最短距离为该路段树形结构的Value值建立树形结构,得到所有路段的树形结构,将所有路段的树形结构作为最短树形结构路网地图。Sub-module b is used to search the shortest distance for each road segment according to the topology structure, obtain the shortest reachable path and shortest distance from each road segment to other road segments, and take the starting point and end point of each road segment as the Node node of the road segment tree structure , take the reachable path and the shortest distance of each road segment within the time length of the shortest distance search algorithm as the Value value of the tree structure of the road segment to establish a tree structure, obtain the tree structure of all road segments, and combine the tree structure of all road segments As the shortest tree structure road network map.

进一步的,所述的第一路径距离阈值根据最短反应时间和汽车的平均行驶速度确定,所述的第二路径距离阈值根据从当前路段出发到达与其相连的下游方向的最远可达路径之间所需的时间和汽车的平均行驶速度确定。Further, the first path distance threshold is determined according to the shortest reaction time and the average driving speed of the car, and the second path distance threshold is determined according to the distance between the farthest reachable path from the current road section to the downstream direction connected to it. The time required and the average speed of the car are determined.

更进一步的,平均行驶速度为50km/s,最短反应时间为40s,从当前路段出发到达与其相连的下游方向的最远可达路径之间所需的时间为2min。Furthermore, the average driving speed is 50km/s, the shortest response time is 40s, and the time required between starting from the current road section and reaching the farthest reachable route in the downstream direction connected to it is 2min.

本发明与现有技术相比具有以下技术特点:Compared with the prior art, the present invention has the following technical characteristics:

(1)本发明基于实时路况信息的动态路径规划,车辆在沿已规划好的导航路线行驶过程中,若在车辆行驶前方出现拥堵路段时,在原始路径的基础上尽可能少的替换与拥堵路段相连的一部分路径,而不用偏离原来的行驶方向,就可以完成路径的重新规划,到达预先设定好的目的地。从而能有效的缓解道路交通拥堵状况。(1) The present invention is based on dynamic path planning based on real-time road condition information. When the vehicle is traveling along the planned navigation route, if there is a congested road section in front of the vehicle, the replacement and congestion are as little as possible on the basis of the original path. Part of the path connected to the road segment can complete the re-planning of the path and reach the preset destination without deviating from the original driving direction. This can effectively alleviate road traffic congestion.

(2)本发明在重新规划路径时不需要再次在路网中进行路径搜索,而是在本发明中所提到的树形结构中进行搜索,比在路网中进行路径搜索更加快捷,从而能很大程度上缩短因路径搜索而花费的时间。(2) The present invention does not need to search the route in the road network again when re-planning the route, but searches in the tree structure mentioned in the present invention, which is faster than the route search in the road network, thereby The time spent on path search can be greatly shortened.

(3)本发明的方法适用于车辆导航以及路径规划等情况,在智能交通领域有重要的应用价值。(3) The method of the present invention is suitable for situations such as vehicle navigation and path planning, and has important application value in the field of intelligent transportation.

附图说明Description of drawings

图1为本发明实时路况信息的动态路径规划的效果图;Fig. 1 is the effect diagram of the dynamic path planning of real-time road condition information of the present invention;

图2为路段拓扑结构示意图;Figure 2 is a schematic diagram of the road section topology;

图3为树形的数据结构示意图;3 is a schematic diagram of a tree-shaped data structure;

图4为总体流程图;Fig. 4 is the overall flow chart;

图5为实施例示意图。FIG. 5 is a schematic diagram of the embodiment.

具体实施方式Detailed ways

以下给出本发明的具体实施方式,需要说明的是本发明并不局限于以下具体实施例,凡在本申请技术方案基础上做的等同变换均落入本发明的保护范围。The specific embodiments of the present invention are given below. It should be noted that the present invention is not limited to the following specific embodiments, and all equivalent transformations made on the basis of the technical solutions of the present application all fall into the protection scope of the present invention.

本发明基于实时路况信息的动态路径规划,采用Scala语言实现,可以根据车辆行驶路径中出现的拥堵路段来进行实时地重新规划路径,从而能有效的缓解道路交通拥堵状况,以及避免因交通拥堵而消耗的时间。The present invention uses Scala language to implement dynamic path planning based on real-time road condition information, and can re-plan the path in real time according to the congested road sections that appear in the vehicle's driving path, thereby effectively alleviating road traffic congestion and avoiding traffic congestion. time consumed.

在本实施例中公开了一种基于实时路况信息的动态路径规划方法,用于采用建立好的最短树形结构路网地图,对原始路径中的拥堵路段进行替换并对候补替换路径进行寻优,获得最优替换路径;In this embodiment, a dynamic route planning method based on real-time road condition information is disclosed, which is used to replace the congested road sections in the original route by using the established shortest tree structure road network map and to optimize the candidate replacement route. , to obtain the optimal replacement path;

在算法的实际运行中不光替换了拥堵路段,还会替换与拥堵路段相连的一部分路段;In the actual operation of the algorithm, not only the congested road section is replaced, but also a part of the road section connected to the congested road section is replaced;

所述的最短树形结构路网地图包括各个路段的树形结构,每个路段的树形结构包括路段的拓扑结构以及该路段进行最短距离搜索后每个路段到其他路段的最短可达路径和最短距离;该方法包括如下步骤:The shortest tree structure road network map includes the tree structure of each road segment, and the tree structure of each road segment includes the topology structure of the road segment and the shortest reachable path from each road segment to other road segments after the shortest distance search is performed on the road segment. The shortest distance; the method includes the following steps:

步骤1:获取原始规划路径和当前位置,所述原始规划路径中包含拥堵路段;Step 1: Obtain the original planned path and the current position, where the original planned path includes congested road sections;

步骤2:根据拥堵路段的路段ID在最短树形结构路网地图中查找拥堵路段树形结构,获得拥堵路段的相邻上游路段和相邻下游路段,将拥堵路段的相邻上游路段的拓扑路段作为出发路段,将拥堵路段的相邻下游路段作为结束路段,所述的相邻上游路段和相邻下游路段均属于原始规划路径;Step 2: Search the congested road segment tree structure in the shortest tree structure road network map according to the road segment ID of the congested road segment, obtain the adjacent upstream road segments and adjacent downstream road segments of the congested road segment, and assign the topological road segments of the adjacent upstream road segments of the congested road segment As the departure road section, the adjacent downstream road section of the congested road section is used as the end road section, and the adjacent upstream road section and the adjacent downstream road section both belong to the original planned route;

步骤3:判断当前的出发路段和当前的结束路段之间是否存在不经过拥堵路段的可达路径,将存在的可达路径保存为候补替换路径,Step 3: Determine whether there is an accessible path that does not pass through the congested section between the current departure road section and the current ending road section, and save the existing accessible path as a candidate replacement path,

保留当前的出发路段并将当前的结束路段的相邻下游路段作为当前的结束路段;Retain the current departure road segment and take the adjacent downstream road segment of the current end road segment as the current end road segment;

步骤4:对当前的结束路段进行判断,若当前的结束路段到拥堵路段之间的路径长度小于等于第二路径距离阈值时,则返回执行步骤3,其中,所述第二路径距离阈值为从拥堵路段出发向下游路段搜索距离的最大上限阈值;Step 4: Judging the current end road section, if the path length between the current end road section and the congested road section is less than or equal to the second path distance threshold, return to step 3, where the second path distance threshold is from The maximum upper limit threshold of the search distance from the congested road section to the downstream section;

若当前的结束路段到拥堵路段之间的路径长度大于第二路径距离阈值时,则将当前的出发路段中不包含原始轨迹路段的剩余拓扑路段作为当前的出发路段,将拥堵路段的相邻下游路段作为当前的结束路段,返回执行步骤3,直至当前的出发路段中剩余拓扑路段为空,则将当前的出发路段中包含的原始轨迹路段的相邻上游路段的拓扑路段更新为当前的出发路段,将拥堵路段的相邻下游路段作为当前的结束路段,执行步骤5;If the path length between the current end road segment and the congested road segment is greater than the second path distance threshold, the remaining topological road segments that do not include the original trajectory segment in the current departure road segment are taken as the current departure road segment, and the adjacent downstream segments of the congested road segment are used as the current departure road segment. The road segment is taken as the current end road segment, and returns to step 3 until the remaining topological road segments in the current departure road segment are empty, then update the topological road segment of the adjacent upstream segment of the original trajectory segment included in the current departure road segment to the current departure road segment , take the adjacent downstream section of the congested section as the current end section, and perform step 5;

步骤5:若当前的出发路段到当前位置的距离大于等于第一路径距离阈值时,则返回执行步骤3,其中,所述第一路径距离阈值为出发路段到当前行驶位置之间距离的最小下限阈值;Step 5: If the distance from the current departure section to the current position is greater than or equal to the first path distance threshold, return to step 3, where the first path distance threshold is the minimum lower limit of the distance between the departure section and the current driving position threshold;

否则,停止路径搜索并判断,若候补替换路径为空,则继续按照原始规划路径行驶;若候补替换路径不为空,则执行步骤6;Otherwise, stop the path search and judge, if the candidate replacement path is empty, continue to drive according to the original planned path; if the candidate replacement path is not empty, go to step 6;

步骤6:获取候补替换路径中的出发路段和结束路段之间路径长度最短的路径,并判断该路径长度最短的路径中是否包含新的拥堵路段,若存在新的拥堵路段,则更新拥堵路段且将更新后的行驶轨迹路径作为原始轨迹路径并重新执行步骤2;否则将该路径长度最短的路径作为最优替换路径。Step 6: Obtain the path with the shortest path length between the departure section and the end section in the candidate replacement path, and determine whether the path with the shortest path length includes a new congested section, if there is a new congested section, update the congested section and Take the updated driving trajectory path as the original trajectory path and perform step 2 again; otherwise, the path with the shortest path length is used as the optimal replacement path.

具体的,获取最短树形结构路网地图包括如下子步骤:Specifically, obtaining the shortest tree-structured road network map includes the following sub-steps:

步骤a:获得所有路段的路段数据,所述的路段数据包括路段ID、路段起点经度坐标、路段起点纬度坐标、路段终点经度坐标、路段终点纬度坐标和路段长度,将所有路段的路段数据根据起点、终点经纬度坐标是否相同进行关联,获得每个路段的拓扑结构;Step a: Obtain the road section data of all road sections, the road section data includes the road section ID, the longitude coordinates of the start point of the road section, the latitude coordinates of the start point of the road section, the longitude coordinates of the end point of the road section, the latitude coordinates of the end point of the road section, and the length of the road section. , whether the latitude and longitude coordinates of the end point are the same, and then associate to obtain the topology structure of each road segment;

步骤b:对每个路段按照拓扑结构进行最短距离搜索,获得每个路段到其他路段的最短可达路径和最短距离,获得每个路段到其他路段的最短可达路径和最短距离,以每个路段的起点或终点为该路段树形结构的Node节点,以每个路段在最短距离搜索算法的时间长度内的可达路径和最短距离为该路段树形结构的Value值建立树形结构,得到所有路段的树形结构,将所有路段的树形结构作为最短树形结构路网地图。Step b: Perform the shortest distance search for each road segment according to the topology, obtain the shortest reachable path and shortest distance from each road segment to other road segments, obtain the shortest reachable path and shortest distance from each road segment to other road segments, and use each The starting point or end point of the road segment is the Node node of the tree structure of the road segment, and the tree structure is established with the reachable path and the shortest distance of each road segment within the time length of the shortest distance search algorithm as the Value value of the tree structure of the road segment, and we get The tree structure of all road segments, the tree structure of all road segments is used as the shortest tree structure road network map.

具体的,对于任一个路段进行最短距离搜索时采用如下方法:Specifically, the following methods are used for the shortest distance search for any road segment:

选取一个路段,以选取的路段为起始路段,对起始路段按照拓扑结构进行最短距离搜索,获得每个路段到其他路段的最短可达路径和最短距离,Select a road segment, take the selected road segment as the starting road segment, perform the shortest distance search for the starting road segment according to the topology structure, and obtain the shortest reachable path and shortest distance from each road segment to other road segments,

具体的,所述的第一路径距离阈值根据最短反应时间和汽车的平均行驶速度确定,所述的第二路径距离阈值根据从当前路段出发到达与其相连的下游方向的最远可达路径之间所需的时间和汽车的平均行驶速度确定。Specifically, the first path distance threshold is determined according to the shortest reaction time and the average driving speed of the vehicle, and the second path distance threshold is determined according to the distance between the farthest reachable path from the current road section to the downstream direction connected to it. The time required and the average speed of the car are determined.

具体的,平均行驶速度为50km/s,最短反应时间为40s,从当前路段出发到达与其相连的下游方向的最远可达路径之间所需的时间为2min。Specifically, the average driving speed is 50km/s, the shortest response time is 40s, and the time required between starting from the current road section and reaching the farthest reachable route in the downstream direction connected to it is 2min.

具体的,所述每个路段的拓扑结构包括路段ID和路段拓扑信息,所述路段拓扑信息包括:路段起点经度坐标、路段起点纬度坐标、与路段起点直接相连的路段Id集合、路段终点经度坐标、路段终点纬度坐标、与路段终点直接相连的路段Id集合和路段长度。Specifically, the topology structure of each road segment includes a road segment ID and road segment topology information, and the road segment topology information includes: the longitude coordinates of the start point of the road segment, the latitude coordinates of the start point of the road segment, the set of road segment IDs directly connected to the start point of the road segment, and the longitude coordinates of the end point of the road segment. , the latitude coordinates of the end point of the road segment, the set of road segment IDs directly connected to the end point of the road segment, and the length of the road segment.

具体的,存储时路段的拓扑结构为Map结构,且路段拓扑信息结构如下:Specifically, the topology structure of the road segment during storage is a Map structure, and the topology information structure of the road segment is as follows:

Figure BDA0003048623860000101
Figure BDA0003048623860000101

具体的,路段的拓扑结构的建立方式如下:Specifically, the method of establishing the topology structure of the road segment is as follows:

从第一行数据开始,取出RoadId作为Key添加进Map结构中,取出起点经纬度坐标添加进路段拓扑信息中,然后依次与其他的路段数据的起点、终点经纬度坐标进行比较,若是相同,则将其他路段数据的RoadId添加进入与当前路段起点直接相连的路段Id集合中,然后取出终点经纬度坐标,然后依次与其他的路段数据的起点、终点经纬度坐标进行比较,若是相同,则将其他路段数据的Id添加进入与当前路段终点直接相连的路段Id集合中,然后以起点和终点经纬度做地球大圆距离计算,添加进入Distance字段中,然后取出第二行数据做上面的操作,一直到所有的路段数据都构成路段的拓扑结构则结束。Starting from the first row of data, take out the RoadId as a Key and add it to the Map structure, take out the longitude and latitude coordinates of the starting point and add them to the road segment topology information, and then compare with the starting point and end point longitude and latitude coordinates of other road segment data in turn. The RoadId of the road segment data is added to the set of road segment IDs directly connected to the starting point of the current road segment, and then the latitude and longitude coordinates of the end point are taken out, and then compared with the start point and end point latitude and longitude coordinates of other road segment data. Add it into the set of road segment IDs directly connected to the end point of the current road segment, then calculate the distance of the great circle of the earth with the latitude and longitude of the starting point and end point, add it into the Distance field, and then take out the second row of data and do the above operations until all the road segment data are The topology that makes up the road segment ends.

具体的,所述从当前路段出发到达与其相连的下游方向的最远可达路径之间所需的时间长度为2min。该方法是在保存了当前路段相连的下游方向2min之内可达路径的数据集上进行的。为了节省搜索时间,这部分数据集可以通过离线计算得到,提前通过最短距离搜索算法计算出每个路段与其小1667m的所有路段之间的最短路径及最短距离。1667m为汽车在规定时速为50km/s的条件下,在2min的行驶时间内汽车从当前路段出发与其相连的下游方向可达路径的最远距离。Specifically, the length of time required between starting from the current road section and reaching the farthest reachable path in the downstream direction connected to it is 2 minutes. The method is performed on a dataset that saves the reachable paths in the downstream direction connected by the current road segment within 2 minutes. In order to save search time, this part of the data set can be obtained by offline calculation, and the shortest path and shortest distance between each road segment and all road segments less than 1667m are calculated in advance through the shortest distance search algorithm. 1667m is the farthest distance that the car can reach from the current road section in the downstream direction connected to it within the 2min driving time under the condition of the specified speed of 50km/s.

由于最短树形结构路网地图是与当前路段相连的下游方向2min之内可达路径的数据集,所以该方法是在保存了当前路段相连的下游方向2min之内可达路径的数据集上进行的,所以取Threshold2为1667m,1667m为以50km/h速度行驶的并在2min之内从当前路段出发与其相连的下游方向可达路径的最远距离。取Threshold1为560m,560m为汽车在40s的反应时间内,在规定时速为50km/s的条件下,从当前位置出发与其相连的下游方向可达路径的最远距离,如果小于Threshold1的情况下汽车司机来不及做出反应去走到新的规划路线。Since the shortest tree-structured road network map is a dataset of accessible paths in the downstream direction connected to the current road segment within 2 minutes, this method is performed on the dataset that saves the accessible paths in the downstream direction connected to the current road segment within 2 minutes. , so take Threshold2 as 1667m, and 1667m is the furthest distance that can be reached in the downstream direction from the current road section within 2 minutes while traveling at a speed of 50km/h. Take Threshold1 as 560m, and 560m is the longest distance the car can reach in the downstream direction from the current position in the reaction time of 40s and the specified speed is 50km/s. If it is less than Threshold1, the car The driver has no time to react to go to the new planned route.

具体的,为每个路段构建两个树形结构,分别对应路段的起点和终点。路段的树形结构用Node节点表示,Node节点如下Specifically, two tree structures are constructed for each road segment, corresponding to the start point and the end point of the road segment respectively. The tree structure of the road segment is represented by the Node node, and the Node node is as follows

Figure BDA0003048623860000111
Figure BDA0003048623860000111

Figure BDA0003048623860000121
Figure BDA0003048623860000121

其中RoadId代表当前路段的编号,ChildMap(Current ChildRoadId,CurrentNode)表示了该节点的子路段ID和子路段的Node节点,Value(Distance,Path)包含从初始路段到当前子路段之间的最短距离和连通路径。Among them, RoadId represents the number of the current road segment, ChildMap(Current ChildRoadId, CurrentNode) represents the sub-road segment ID of the node and the Node node of the sub-road segment, and Value(Distance, Path) contains the shortest distance and connectivity from the initial road segment to the current sub-road segment. path.

具体的,路段的树形结构的建立方式如下:Specifically, the tree structure of the road segment is established as follows:

从初始路段出发,取出RoadId作为Key添加进Node节点中,然后将与初始路段相连的子路段的当前子路段ID和当前子路段的Node节点添加进路段树形结构中,通过步骤a中的路段的拓扑结构,以及步骤b中的最短可达路径和最短距离并赋值给Value并保存到路段树形结构中。重复上述步骤,直到将当前路段的所有子路段与对应的Node节点全部添加完为止。路段树形结构示意图如图3所示。Starting from the initial road segment, take out the RoadId as the Key and add it to the Node node, then add the current sub-road segment ID of the sub-road segment connected to the initial road segment and the Node node of the current sub-road segment into the road segment tree structure, through the road segment in step a The topology structure of , and the shortest reachable path and shortest distance in step b are assigned to Value and saved in the road segment tree structure. Repeat the above steps until all sub-sections and corresponding Node nodes of the current section are added. A schematic diagram of the tree structure of the road section is shown in Figure 3.

本实施例中还公开了一种基于实时路况信息的动态路径规划系统,用于采用建立好的最短树形结构路网地图,对原始路径中的拥堵路段进行替换并对候补替换路径进行寻优,获得最优替换路径;This embodiment also discloses a dynamic route planning system based on real-time road condition information, which is used to replace the congested road sections in the original route and optimize the candidate replacement route by using the established shortest tree structure road network map. , to obtain the optimal replacement path;

该系统包括路段最短树形结构路网地图和替换路径规划模块;The system includes the shortest tree structure road network map of the road section and a replacement path planning module;

所述的最短树形结构路网地图包括各个路段的树形结构,每个路段的树形结构包括路段的拓扑结构以及该路段进行最短距离搜索后每个路段到其他路段的最短可达路径和最短距离;The shortest tree structure road network map includes the tree structure of each road segment, and the tree structure of each road segment includes the topology structure of the road segment and the shortest reachable path from each road segment to other road segments after the shortest distance search is performed on the road segment. the shortest distance;

所述的替换路径规划模块包括多个子模块,其中,第一子模块用于获取原始规划路径和当前位置,所述原始规划路径中包含拥堵路段;The replacement route planning module includes a plurality of sub-modules, wherein the first sub-module is used to obtain an original planned route and a current position, and the original planned route includes a congested road section;

第二子模块用于根据拥堵路段的路段ID在最短树形结构路网地图中查找拥堵路段树形结构,获得拥堵路段的相邻上游路段和相邻下游路段,将拥堵路段的相邻上游路段的拓扑路段作为出发路段,将拥堵路段的相邻下游路段作为结束路段,所述的相邻上游路段和相邻下游路段均属于原始规划路径;The second sub-module is used to search the congested road segment tree structure in the shortest tree structure road network map according to the road segment ID of the congested road segment, obtain the adjacent upstream road segment and adjacent downstream road segment of the congested road segment, and assign the adjacent upstream road segment of the congested road segment The topological road section is used as the departure road section, and the adjacent downstream road section of the congested road section is used as the end road section, and the adjacent upstream road sections and adjacent downstream road sections belong to the original planned path;

第三子模块用于判断当前的出发路段和当前的结束路段之间是否存在不经过拥堵路段的可达路径,将存在的可达路径保存为候补替换路径,The third sub-module is used to determine whether there is an accessible route that does not pass through the congested road segment between the current departure road segment and the current end segment, and save the existing reachable route as a candidate replacement route,

保留当前的出发路段并将当前的结束路段的相邻下游路段作为当前的结束路段;Retain the current departure road segment and take the adjacent downstream road segment of the current end road segment as the current end road segment;

第四子模块用于对当前的结束路段进行判断,若当前的结束路段到拥堵路段之间的路径长度小于等于第二路径距离阈值时,则返回执行第三子模块,其中,所述第二路径距离阈值为从拥堵路段出发向下游路段搜索距离的最大上限阈值;The fourth sub-module is used for judging the current end road section, and if the path length between the current end road section and the congested road section is less than or equal to the second path distance threshold, return to execute the third sub-module, wherein the second sub-module is executed. The path distance threshold is the maximum upper limit threshold of the search distance from the congested road section to the downstream road section;

若当前的结束路段到拥堵路段之间的路径长度大于第二路径距离阈值时,则将当前的出发路段中不包含原始轨迹路段的剩余拓扑路段作为当前的出发路段,将拥堵路段的相邻下游路段作为当前的结束路段,返回执行第三子模块,直至当前的出发路段中剩余拓扑路段为空,则将当前的出发路段中包含的原始轨迹路段的相邻上游路段的拓扑路段更新为当前的出发路段,将拥堵路段的相邻下游路段作为当前的结束路段,执行第五子模块;If the path length between the current end road segment and the congested road segment is greater than the second path distance threshold, the remaining topological road segments that do not include the original trajectory segment in the current departure road segment are taken as the current departure road segment, and the adjacent downstream segments of the congested road segment are used as the current departure road segment. The road segment is taken as the current end road segment, and returns to execute the third sub-module until the remaining topological road segments in the current departure road segment are empty, then update the topological road segment of the adjacent upstream road segment of the original trajectory segment included in the current departure road segment to the current one Departure section, take the adjacent downstream section of the congested section as the current end section, and execute the fifth sub-module;

第五子模块用于判断,若当前的出发路段到当前位置的距离大于等于第一路径距离阈值时,则返回执行第三子模块,其中,所述第一路径距离阈值为出发路段到当前行驶位置之间距离的最小下限阈值;The fifth sub-module is used to judge, if the distance from the current departure road segment to the current position is greater than or equal to the first path distance threshold, then return to execute the third sub-module, wherein the first path distance threshold is the departure road segment to the current driving distance. Minimum lower threshold for distances between locations;

否则,停止路径搜索并判断,若候补替换路径为空,则继续按照原始规划路径行驶;若候补替换路径不为空,则执行第六子模块;Otherwise, stop the path search and judge, if the candidate replacement path is empty, continue to drive according to the original planned path; if the candidate replacement path is not empty, execute the sixth sub-module;

第六子模块用于获取候补替换路径中的出发路段和结束路段之间路径长度最短的路径,并判断该路径长度最短的路径中是否包含新的拥堵路段,若存在新的拥堵路段,则更新拥堵路段且将更新后的行驶轨迹路径作为原始轨迹路径并重新执行第二子模块;否则将该路径长度最短的路径作为最优替换路径。第六子模块用于获取替换路径的出发路段和结束路段之间路径长度最短的路径,并判断该路径长度最短的路径中是否包含新的拥堵路段,若存在新的拥堵路段,则更新拥堵路段并重新执行第二子模块;否则将该路径长度最短的路径作为最优替换路径。The sixth sub-module is used to obtain the path with the shortest path length between the departure road segment and the end road segment in the candidate replacement path, and determine whether the path with the shortest path length includes a new congested road segment, and if there is a new congested road segment, update the The road section is congested and the updated driving trajectory path is taken as the original trajectory path and the second sub-module is re-executed; otherwise, the path with the shortest path length is taken as the optimal replacement path. The sixth sub-module is used to obtain the path with the shortest path length between the departure section and the end section of the replacement path, and determine whether the path with the shortest path length includes a new congested section, and if there is a new congested section, update the congested section And re-execute the second sub-module; otherwise, the path with the shortest path length is regarded as the optimal replacement path.

进一步的,获取最短树形结构路网地图包括如下子模块:Further, obtaining the shortest tree structure road network map includes the following submodules:

子模块a用于获得所有路段的路段数据,所述的路段数据包括路段ID、路段起点经度坐标、路段起点纬度坐标、路段终点经度坐标、路段终点纬度坐标和路段长度,将所有路段的路段数据根据起点、终点经纬度坐标是否相同进行关联,获得每个路段的拓扑结构;Submodule a is used to obtain the road section data of all road sections, and the road section data includes the road section ID, the longitude coordinates of the start point of the road section, the latitude coordinates of the start point of the road section, the longitude coordinates of the end point of the road section, the latitude coordinates of the end point of the road section and the length of the road section. Correlate according to whether the latitude and longitude coordinates of the starting point and the ending point are the same to obtain the topology structure of each road segment;

子模块b用于对每个路段进行最短距离搜索,获得每个路段到其他路段的最短可达路径和最短距离,以每个路段的起点或终点为该路段树形结构的Node节点,以每个路段在最短距离搜索算法的时间长度内的可达路径和最短距离为该路段树形结构的Value值建立树形结构,得到所有路段的树形结构,将所有路段的树形结构作为最短树形结构路网地图。Sub-module b is used to search for the shortest distance of each road segment, and obtain the shortest reachable path and shortest distance from each road segment to other road segments. The reachable path and the shortest distance of each road segment within the time length of the shortest distance search algorithm are used to establish a tree structure for the Value value of the tree structure of the road segment, and the tree structure of all road segments is obtained, and the tree structure of all road segments is regarded as the shortest tree. road network map.

实施例1Example 1

本实施例公开了一种基于实时路况信息的动态路径规划方法,从与拥堵路段相邻的上一个路段的拓扑结构中遍历与该路段起点或终点的相连路段,并将该路段起点或终点的相连路段作为出发路段,与拥堵路段相邻的下一个路段的次路段作为结束路段,寻找一条连通路径。在上述实施例的基础上,还公开了如下技术特征:This embodiment discloses a dynamic path planning method based on real-time road condition information, which traverses the connected road segment with the starting point or the end point of the road segment from the topology structure of the previous road segment adjacent to the congested road segment, and calculates the starting point or end point of the road segment. The connected road segment is used as the departure road segment, and the sub-road segment of the next road segment adjacent to the congested road segment is used as the end road segment to find a connecting path. On the basis of the foregoing embodiments, the following technical features are also disclosed:

获取出发点和目标点之间的原路径为:The original path between the starting point and the target point is obtained as:

51483708242->51483708239->51483700698->51483708176->51483708175->51483705267->51483705268->51483700685->51483700666(51483708175为拥堵路段)51483708242->51483708239->51483700698->51483708176->51483708175->51483705267->51483705268->51483700685->51483700666 (51483708175)

路段51483708176拓扑结构如下图2所示,与51483708176路段的拓扑结构相连的下游51483708177路段为出发路段,与拥堵路段51483708175相邻的下一个路段的次路段51483705268作为结束路段,可以找到一条不经过拥堵路段51483708175的一条连通路径。The topology of road section 51483708176 is shown in Figure 2 below. The downstream section 51483708177 connected to the topology of section 51483708176 is the departure section, and the sub-section 51483705268 of the next section adjacent to the congested section 51483708175 is the end section. A connected path of 51483708175.

51483708242->51483708239->51483700698->51483708176->51483708177->51483708167->51483705268->51483700685->5148370066651483708242->51483708239->51483700698->51483708176->51483708177->51483708167->51483705268->51483700685->51483700666

上述实施例示意图如图5所示。A schematic diagram of the above embodiment is shown in FIG. 5 .

Claims (6)

1. The dynamic path planning method based on the real-time road condition information is characterized by being used for replacing a congested road section in an original path and optimizing alternate paths by adopting a built shortest tree-shaped structure road network map to obtain an optimal alternate path;
the shortest tree-structure road network map comprises a tree structure of each road section, and the tree structure of each road section comprises a topological structure of the road section and the shortest reachable path and shortest distance from each road section to other road sections after the shortest distance search is carried out on the road section; the method comprises the following steps:
step 1: acquiring an original planned path and a current position, wherein the original planned path comprises a congestion road section;
step 2: searching a tree structure of the congested road section in a shortest tree structure road network map according to the road section ID of the congested road section, obtaining an adjacent upstream road section and an adjacent downstream road section of the congested road section, taking a topological road section of the adjacent upstream road section of the congested road section as a starting road section, and taking the adjacent downstream road section of the congested road section as an ending road section, wherein the adjacent upstream road section and the adjacent downstream road section both belong to an original planning path;
and step 3: judging whether an reachable path which does not pass through the congested road section exists between the current departure road section and the current ending road section, saving the existing reachable path as a candidate alternative path,
reserving the current starting road section and taking the adjacent downstream road section of the current ending road section as the current ending road section;
and 4, step 4: judging the current ending road section, and returning to the step 3 if the path length between the current ending road section and the congested road section is less than or equal to a second path distance threshold, wherein the second path distance threshold is a maximum upper limit threshold of a searching distance from the congested road section to a downstream road section;
if the path length from the current ending road section to the congested road section is greater than the second path distance threshold, taking the remaining topological road section which does not contain the original track road section in the current starting road section as the current starting road section, taking the adjacent downstream road section of the congested road section as the current ending road section, returning to the step 3, updating the topological road section of the adjacent upstream road section of the original track road section contained in the current starting road section into the current starting road section until the remaining topological road section in the current starting road section is empty, taking the adjacent downstream road section of the congested road section as the current ending road section, and executing the step 5;
and 5: if the distance from the current departure road section to the current position is greater than or equal to a first path distance threshold value, returning to execute the step 3, wherein the first path distance threshold value is a minimum lower limit threshold value of the distance from the departure road section to the current driving position;
otherwise, stopping path searching and judging, and if the alternate alternative path is empty, continuing to drive according to the original planned path; if the alternate path is not empty, executing step 6;
step 6: acquiring a path with the shortest path length between a starting section and an ending section in the candidate replacement paths, judging whether the path with the shortest path length contains a new congestion section, if the new congestion section exists, updating the congestion section, taking the updated traveling track path as an original track path, and executing the step 2 again; otherwise, taking the path with the shortest path length as the optimal replacement path;
the method for establishing the shortest tree structure road network map comprises the following substeps:
step a: acquiring road section data of all road sections, wherein the road section data comprises road section IDs, road section starting point longitude coordinates, road section starting point latitude coordinates, road section finishing point longitude coordinates, road section finishing point latitude coordinates and road section lengths, and the road section data of all the road sections are associated according to whether the starting point longitude coordinates and the finishing point longitude coordinates are the same or not to acquire a topological structure of each road section;
step b: and searching each road section according to the shortest distance according to a topological structure to obtain the shortest reachable path and the shortest distance from each road section to other road sections, taking the starting point and the end point of each road section as Node nodes of the tree structure of the road section, taking the reachable path and the shortest distance of each road section in the time length of the shortest distance searching algorithm as Value values of the tree structure of the road section to establish a tree structure, obtaining the tree structures of all the road sections, and taking the tree structures of all the road sections as a road network map with the shortest tree structure.
2. The method as claimed in claim 1, wherein the first path distance threshold is determined according to a shortest response time and an average traveling speed of the car, and the second path distance threshold is determined according to a time required for the car to travel from the current road section to the farthest reachable path in a downstream direction connected to the current road section and the average traveling speed of the car.
3. The dynamic path planning method according to claim 2, wherein the average driving speed is 50km/s, the shortest response time is 40s, and the time required from the current road section to the farthest reachable path in the downstream direction connected thereto is 2 min.
4. The dynamic path planning system based on the real-time road condition information is characterized by being used for replacing a congested road section in an original path and optimizing alternate paths by adopting an established shortest tree-structure road network map to obtain an optimal alternate path;
the system comprises a road network map with a shortest road section tree structure and a planning module of an alternative path;
the shortest tree-structure road network map comprises a tree structure of each road section, and the tree structure of each road section comprises a topological structure of the road section and the shortest reachable path and shortest distance from each road section to other road sections after the shortest distance search is carried out on the road section;
the alternative path planning module comprises a plurality of sub-modules, wherein a first sub-module is used for acquiring an original planned path and a current position, and the original planned path comprises a congested road section;
the second submodule is used for searching the tree structure of the congested road section in the shortest tree structure road network map according to the road section ID of the congested road section, obtaining an adjacent upstream road section and an adjacent downstream road section of the congested road section, taking a topological road section of the adjacent upstream road section of the congested road section as a starting road section, and taking the adjacent downstream road section of the congested road section as an ending road section, wherein the adjacent upstream road section and the adjacent downstream road section both belong to an original planning path;
the third sub-module is used for judging whether an reachable path which does not pass through the congested road section exists between the current departure road section and the current ending road section or not, saving the reachable path as a candidate alternative path,
reserving the current starting road section and taking the adjacent downstream road section of the current ending road section as the current ending road section;
the fourth submodule is used for judging the current ending road section, and returning to execute the third submodule if the path length between the current ending road section and the congested road section is less than or equal to a second path distance threshold, wherein the second path distance threshold is a maximum upper limit threshold of the searching distance from the congested road section to the downstream road section;
if the path length from the current ending road section to the congested road section is greater than the second path distance threshold, taking a residual topology road section which does not contain the original track road section in the current starting road section as the current starting road section, taking an adjacent downstream road section of the congested road section as the current ending road section, returning to execute the third submodule until the residual topology road section in the current starting road section is empty, updating the topology road section of the adjacent upstream road section of the original track road section contained in the current starting road section into the current starting road section, taking the adjacent downstream road section of the congested road section as the current ending road section, and executing the fifth submodule;
the fifth submodule is used for judging, and if the distance from the current departure road section to the current position is greater than or equal to a first path distance threshold value, returning to execute the third submodule, wherein the first path distance threshold value is a minimum lower limit threshold value of the distance from the departure road section to the current driving position;
otherwise, stopping path searching and judging, and if the alternate alternative path is empty, continuing to drive according to the original planned path; if the alternate alternative path is not empty, executing a sixth sub-module;
the sixth submodule is used for acquiring a path with the shortest path length between a starting section and an ending section in the alternate paths, judging whether the path with the shortest path length contains a new congestion section, if the new congestion section exists, updating the congestion section, taking the updated driving track path as an original track path, and executing the second submodule again; otherwise, taking the path with the shortest path length as an optimal replacement path;
the method for establishing the shortest tree structure road network map comprises the following sub-modules:
the sub-module a is used for obtaining road section data of all road sections, wherein the road section data comprises road section IDs, road section starting point longitude coordinates, road section starting point latitude coordinates, road section ending point longitude coordinates, road section ending point latitude coordinates and road section lengths, and the road section data of all the road sections are associated according to whether the starting point longitude coordinates and the ending point longitude coordinates are the same or not to obtain a topological structure of each road section;
the submodule b is used for searching the shortest distance of each road section according to the topological structure to obtain the shortest reachable path and the shortest distance from each road section to other road sections, the starting point and the end point of each road section are taken as Node nodes of the tree structure of the road section, the reachable path and the shortest distance of each road section in the time length of the shortest distance searching algorithm are taken as Value values of the tree structure of the road section to establish a tree structure, the tree structures of all the road sections are obtained, and the tree structures of all the road sections are taken as the road network map with the shortest tree structure.
5. The system according to claim 4, wherein the first distance threshold is determined according to a shortest response time and an average driving speed of the vehicle, and the second distance threshold is determined according to a time required between a departure from a current road section and a farthest reachable route in a downstream direction connected thereto and the average driving speed of the vehicle.
6. The dynamic path planning system according to claim 5, wherein the average driving speed is 50km/s, the shortest response time is 40s, and the time required from the current road section to the farthest reachable path in the downstream direction connected thereto is 2 min.
CN202110479473.4A 2021-04-30 2021-04-30 Dynamic path planning method and system based on real-time road condition information Active CN113295177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110479473.4A CN113295177B (en) 2021-04-30 2021-04-30 Dynamic path planning method and system based on real-time road condition information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110479473.4A CN113295177B (en) 2021-04-30 2021-04-30 Dynamic path planning method and system based on real-time road condition information

Publications (2)

Publication Number Publication Date
CN113295177A CN113295177A (en) 2021-08-24
CN113295177B true CN113295177B (en) 2022-08-19

Family

ID=77320674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110479473.4A Active CN113295177B (en) 2021-04-30 2021-04-30 Dynamic path planning method and system based on real-time road condition information

Country Status (1)

Country Link
CN (1) CN113295177B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114137973B (en) * 2021-11-26 2024-05-07 湖北亿纬动力有限公司 Path planning method, device, equipment and storage medium
CN114353797B (en) * 2021-12-13 2025-02-07 长三角哈特机器人产业技术研究院 A real-time path planning method and AGV
CN114964284B (en) * 2022-04-22 2024-06-18 合众新能源汽车股份有限公司 Vehicle path planning method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1670482A (en) * 2004-03-18 2005-09-21 株式会社查纳位资讯情报 navigation device
CN102169637A (en) * 2010-12-08 2011-08-31 北京大学 Dynamic route guidance method oriented to urban traffic
CN102542793A (en) * 2012-01-11 2012-07-04 东南大学 Active control method of oversaturated traffic situation at intersection group
CN105810001A (en) * 2016-05-19 2016-07-27 东华大学 Real-time dynamic path planning method based on vehicle-mounted ad hoc network
CN107798079A (en) * 2017-09-30 2018-03-13 北京泓达九通科技发展有限公司 Section joining method and system based on track of vehicle data
CN110268227A (en) * 2017-02-17 2019-09-20 爱信艾达株式会社 Driving aids and computer programs
CN110579221A (en) * 2019-09-30 2019-12-17 重庆元韩汽车技术设计研究院有限公司 trajectory planning method and system for remote control
CN111982141A (en) * 2020-07-31 2020-11-24 长安大学 Method, equipment and storage medium for path inference for low-frequency vehicle trajectory data

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1421454B1 (en) * 2001-02-26 2014-09-10 ALK Technologies, Inc. Thin-client navigation and route guidance system
US8751156B2 (en) * 2004-06-30 2014-06-10 HERE North America LLC Method of operating a navigation system using images
EP2653834B1 (en) * 2012-04-18 2014-08-13 Harman Becker Automotive Systems GmbH Method of Performing a Road Network Search and System for Estimating a Cruising Range of a Vehicle
US10989553B2 (en) * 2018-04-17 2021-04-27 Here Global B.V. Method, apparatus and computer program product for determining likelihood of a route
CN108562301A (en) * 2018-05-21 2018-09-21 北京石油化工学院 A kind of method and device for planning of driving path

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1670482A (en) * 2004-03-18 2005-09-21 株式会社查纳位资讯情报 navigation device
CN102169637A (en) * 2010-12-08 2011-08-31 北京大学 Dynamic route guidance method oriented to urban traffic
CN102542793A (en) * 2012-01-11 2012-07-04 东南大学 Active control method of oversaturated traffic situation at intersection group
CN105810001A (en) * 2016-05-19 2016-07-27 东华大学 Real-time dynamic path planning method based on vehicle-mounted ad hoc network
CN110268227A (en) * 2017-02-17 2019-09-20 爱信艾达株式会社 Driving aids and computer programs
CN107798079A (en) * 2017-09-30 2018-03-13 北京泓达九通科技发展有限公司 Section joining method and system based on track of vehicle data
CN110579221A (en) * 2019-09-30 2019-12-17 重庆元韩汽车技术设计研究院有限公司 trajectory planning method and system for remote control
CN111982141A (en) * 2020-07-31 2020-11-24 长安大学 Method, equipment and storage medium for path inference for low-frequency vehicle trajectory data

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Lei Zuo ; Nan Zhang ; Yigang He ; Tingting Zhou.Research on Dynamic Route Guidance and Navigation System Based on Multi Information Feedback.《2017 International Conference on Sensing, Diagnostics, Prognostics, and Control》.2017,全文. *
考虑实时路况反馈的动态路径规划算法研究;王润泽,王亮,刘涛,栗斌;《测绘科学》;20200731;第45卷(第7期);全文 *

Also Published As

Publication number Publication date
CN113295177A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN113295177B (en) Dynamic path planning method and system based on real-time road condition information
CN106092111B (en) A kind of vehicle route dynamic programming method, server and navigation system
Jagadeesh et al. Heuristic techniques for accelerating hierarchical routing on road networks
CN108827335B (en) Shortest path planning method based on one-way search model
CN111947678B (en) Automatic driving navigation method and system for structured road
CN107798079B (en) Method and system for road segment splicing based on vehicle trajectory data
CN103344248B (en) A Calculation Method of Optimal Route for Vehicle Navigation System
CN108280463B (en) Optimization method and device for double-layer path of vehicle-mounted unmanned aerial vehicle
CN102235873B (en) Processing method and device of navigation electronic map, navigator
CN111289005A (en) Path finding method based on A star optimization algorithm
CN112033428A (en) A path planning method for power distribution emergency repair
CN111337047B (en) Macro-path planning method for unstructured roads based on multi-task point constraints
CN117249842A (en) Unmanned vehicle mixed track planning method based on track smooth optimization
CN111272187B (en) Optimal driving path planning method and system based on improved A-star algorithm
CN109035783A (en) A kind of virtual networks missing section automatic identifying method based on public transport GPS track
CN107917716B (en) Fixed line navigation method, device, terminal and computer-readable storage medium
CN111210065A (en) Logistics network efficient K shortest path algorithm based on re-optimization technology
CN114234991A (en) Navigation path planning method, device, computer equipment and storage medium
CN114379569A (en) Method and device for generating driving reference line
CN115097824B (en) A vehicle path planning method in complex environments
CN115562267B (en) Amphibious vehicle cross-domain path planning and decomposing method and system
CN104596527A (en) A method of dividing guiding roads at different levels and detailed streets
CN117848360A (en) A hybrid trajectory planning method for unmanned vehicles based on trajectory smoothing optimization
CN114462609B (en) A floating vehicle data trajectory restoration method based on hidden Markov model
CN116465425A (en) Heuristic path planning method for local optimization and bidirectional calculation

Legal Events

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