CN108562301A - A kind of method and device for planning of driving path - Google Patents

A kind of method and device for planning of driving path Download PDF

Info

Publication number
CN108562301A
CN108562301A CN201810489707.1A CN201810489707A CN108562301A CN 108562301 A CN108562301 A CN 108562301A CN 201810489707 A CN201810489707 A CN 201810489707A CN 108562301 A CN108562301 A CN 108562301A
Authority
CN
China
Prior art keywords
path
road section
level
target
section
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
CN201810489707.1A
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.)
Beijing Institute of Petrochemical Technology
Original Assignee
Beijing Institute of Petrochemical Technology
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 Beijing Institute of Petrochemical Technology filed Critical Beijing Institute of Petrochemical Technology
Priority to CN201810489707.1A priority Critical patent/CN108562301A/en
Publication of CN108562301A publication Critical patent/CN108562301A/en
Pending legal-status Critical Current

Links

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/3407Route searching; Route guidance specially adapted for specific applications
    • G01C21/3415Dynamic re-routing, e.g. recalculating the route when the user deviates from calculated route or after detecting real-time traffic data or accidents
    • 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, using precalculated routes

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 present invention provides a method and device for planning a travel path, the method comprising: using a preset algorithm to plan a travel path of a target vehicle from a starting position to a destination position to obtain a planned route, wherein the planned route includes a plurality of road sections; In the case that the target vehicle is traveling according to the planned route, query the traffic service level grade of the target road section to be entered by the target vehicle; if the traffic service level grade of the target road section is a preset level, then adopt the decision The tree pruning algorithm calculates the driving path between the starting position and the ending position of the target road section to obtain a local optimal path; replaces the target road section with the local optimal path to update the planned path. In this way, when the target vehicle travels according to the planned route, the planned route can be updated according to the traffic service level of the target section to be driven, thereby improving the accuracy of the planned route.

Description

一种行驶路径的规划方法及装置A method and device for planning a driving route

技术领域technical field

本发明涉及交通技术领域,尤其涉及一种行驶路径的规划方法及装置。The invention relates to the field of traffic technology, in particular to a planning method and device for a driving path.

背景技术Background technique

危化品,即危险化学品,是指具有毒害、腐蚀、爆炸、燃烧、助燃等性质,对人体、设施、环境具有危害的剧毒化学品和其他化学品。可见,由于危化品的危险性质,针对危化品的各种活动都必须妥善进行。比如针对危化品的运输,近年来随着经济的发展,危化品运输变得越来越频繁,因此如何对运送危化品的车辆规划合适的行驶路径,以提高危化品的运输效率,成了危化品运输服务的重中之重。通常,业界大多采用搜索算法对危化品运输路径进行计算,然而,由于实际中的路况随时随地都在发生变化,因此容易导致已经规划好的行驶路径与实际路况不匹配;比如,在进行路径规划时其中某一路段并不拥堵,而在目标车辆实际行驶的过程中,该路段却变得拥堵起来,从而致使目标车辆难以通行。由此,目前的行驶路径的规划方法所规划的路径准确度较低。Hazardous chemicals, that is, hazardous chemicals, refer to highly toxic chemicals and other chemicals that are poisonous, corrosive, explosive, flammable, and combustion-supporting, and are harmful to the human body, facilities, and the environment. It can be seen that due to the dangerous nature of hazardous chemicals, various activities targeting hazardous chemicals must be properly carried out. For example, for the transportation of hazardous chemicals, with the development of the economy in recent years, the transportation of hazardous chemicals has become more and more frequent. Therefore, how to plan a suitable driving route for vehicles transporting hazardous chemicals to improve the transportation efficiency of hazardous chemicals , has become the top priority of hazardous chemical transportation services. Usually, the industry mostly uses search algorithms to calculate the transportation route of hazardous chemicals. However, because the actual road conditions are changing anytime and anywhere, it is easy to cause the planned driving route to not match the actual road conditions; One of the road sections is not congested during planning, but in the actual driving process of the target vehicle, the road section becomes congested, which makes it difficult for the target vehicle to pass. Therefore, the accuracy of the route planned by the current driving route planning method is low.

发明内容Contents of the invention

本发明实施例提供一种行驶路径的规划方法及装置,以解决现有的行驶路径的规划方法的准确度较低的问题。Embodiments of the present invention provide a driving route planning method and device to solve the problem of low accuracy of the existing driving route planning method.

为解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:

第一方面,本发明实施例提供了一种行驶路径的规划方法,包括:In a first aspect, an embodiment of the present invention provides a method for planning a driving route, including:

采用预设算法规划目标车辆从起始位置至目的位置的行驶路径,得到规划路径,其中,所述规划路径包括多个路段;Using a preset algorithm to plan the driving path of the target vehicle from the starting position to the destination position to obtain a planned path, wherein the planned path includes a plurality of road sections;

在所述目标车辆按照所述规划路径行驶的情况下,查询所述目标车辆待驶入的目标路段的交通服务水平等级;In the case that the target vehicle is traveling according to the planned route, inquiring about the traffic service level grade of the target section to be entered by the target vehicle;

若所述目标路段的交通服务水平等级为预设等级,则采用决策树剪枝算法,对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算,得到局部优化路径;If the traffic service level grade of the target road section is a preset level, a decision tree pruning algorithm is used to calculate the driving path between the starting position and the ending position of the target road section to obtain a local optimal path;

通过所述局部优化路径替换所述目标路段,以更新所述规划路径。The target road section is replaced by the local optimized route, so as to update the planned route.

可选的,所述预设算法为迪杰斯特拉算法。Optionally, the preset algorithm is the Dijkstra algorithm.

可选的,在所述目标车辆按照所述规划路径行驶的情况下,查询所述目标车辆待驶入的目标路段的交通服务水平等级之前,所述方法还包括:Optionally, when the target vehicle is traveling according to the planned route, before inquiring about the traffic service level grade of the target section to be entered by the target vehicle, the method further includes:

获取所述目标路段的通行能力和交通量;Obtain the traffic capacity and traffic volume of the target road section;

根据所述通行能力和所述交通量,计算所述目标路段的道路饱和度;calculating the road saturation of the target section according to the traffic capacity and the traffic volume;

根据预设的道路饱和度和交通服务水平等级的对应关系,确定所述目标路段的道路饱和度对应的交通服务水平等级。According to the preset correspondence between road saturation and traffic service level, the traffic service level corresponding to the road saturation of the target section is determined.

可选的,所述采用决策树剪枝算法,对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算的步骤,包括:Optionally, the step of using the decision tree pruning algorithm to calculate the driving path between the starting position and the ending position of the target road section includes:

若所述目标路段的交通服务水平等级为第一预设等级,则增大所述目标路段的长度的权重值,并基于增大后的所述目标路段的长度的权重值,采用决策树剪枝算法,对与所述目标路段的起始节点和终止节点之间的最短运输路径进行计算,得到局部优化路径;和/或If the traffic service level grade of the target road section is the first preset level, then increase the weight value of the length of the target road section, and based on the increased weight value of the length of the target road section, use decision tree pruning A branch algorithm, calculating the shortest transportation path between the start node and the end node of the target road section, to obtain a local optimal path; and/or

若所述目标路段的交通服务水平等级为第二预设等级,则采用决策树剪枝算法,对与所述目标路段的起始节点和终止节点之间的最短运输路径进行计算,得到局部优化路径,其中,采用所述决策树剪枝算法计算行驶路径时的计算参数中不包括所述目标路段的长度。If the traffic service level of the target road section is the second preset level, a decision tree pruning algorithm is used to calculate the shortest transportation path between the start node and the end node of the target road section to obtain a local optimization The route, wherein, the calculation parameters when using the decision tree pruning algorithm to calculate the driving route do not include the length of the target road section.

可选的,所述交通服务水平等级分为一级、二级、三级和四级,其中,0≤道路饱和度≤0.6的路段为所述一级,0.6<道路饱和度≤0.8的路段为所述二级,0.8<道路饱和度≤1的路段为所述三级,1<道路饱和度的路段为所述四级。Optionally, the traffic service level grades are divided into grades 1, 2, 3 and 4, wherein, the section with 0≤road saturation≤0.6 is the first level, and the section with 0.6<road saturation≤0.8 The road section with 0.8<road saturation≤1 is the third grade, and the road section with 1<road saturation is the fourth grade.

第二方面,本发明实施例还提供一种行驶路径的规划装置,包括:In the second aspect, the embodiment of the present invention also provides a driving route planning device, including:

规划模块,用于采用预设算法规划目标车辆从起始位置至目的位置的行驶路径,得到规划路径,其中,所述规划路径包括多个路段;The planning module is used to plan the driving path of the target vehicle from the starting position to the destination position by using a preset algorithm to obtain the planned path, wherein the planned path includes a plurality of road sections;

查询模块,用于在所述目标车辆按照所述规划路径行驶的情况下,查询所述目标车辆待驶入的目标路段的交通服务水平等级;An inquiry module, configured to inquire about the traffic service level grade of the target road segment to be entered by the target vehicle when the target vehicle is traveling according to the planned route;

计算模块,用于若所述目标路段的交通服务水平等级为预设等级,则采用决策树剪枝算法,对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算,得到局部优化路径;A calculation module, configured to use a decision tree pruning algorithm to calculate the driving path between the starting position and the ending position of the target road section if the traffic service level of the target road section is a preset level, and obtain local optimization path;

更新模块,用于通过所述局部优化路径替换所述目标路段,以更新所述规划路径。An update module, configured to replace the target road section with the local optimized route, so as to update the planned route.

第三方面,本发明实施例还提供一种行驶路径的规划装置,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述行驶路径的规划方法的步骤。In the third aspect, the embodiment of the present invention also provides a driving route planning device, including a processor, a memory, and a computer program stored in the memory and operable on the processor, the computer program being controlled by the The processor executes the steps to realize the above-mentioned driving route planning method.

第四方面,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述行驶路径的规划方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned driving route planning method are implemented.

在本发明实施例中,采用预设算法规划目标车辆从起始位置至目的位置的行驶路径,得到规划路径,其中,所述规划路径包括多个路段;在所述目标车辆按照所述规划路径行驶的情况下,查询所述目标车辆待驶入的目标路段的交通服务水平等级;若所述目标路段的交通服务水平等级为预设等级,则采用决策树剪枝算法,对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算,得到局部优化路径;通过所述局部优化路径替换所述目标路段,以更新所述规划路径。这样,目标车辆在按照规划路径行驶时,能够根据待驶入的目标路段的交通服务水平等级更新规划路径,从而可以提高规划路径的准确度。In the embodiment of the present invention, a preset algorithm is used to plan the travel path of the target vehicle from the starting position to the destination position to obtain a planned route, wherein the planned route includes a plurality of road sections; In the case of driving, query the traffic service level grade of the target road section to be entered by the target vehicle; if the traffic service level grade of the target road section is a preset level, then use a decision tree pruning algorithm to The driving path between the starting position and the ending position of the road section is calculated to obtain a local optimal path; the target road section is replaced by the local optimal path to update the planned path. In this way, when the target vehicle travels according to the planned route, the planned route can be updated according to the traffic service level of the target section to be driven, thereby improving the accuracy of the planned route.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本发明实施例提供的一种行驶路径的规划方法的流程图;FIG. 1 is a flow chart of a planning method for a driving route provided by an embodiment of the present invention;

图2是本发明实施例提供的一种路径规划示意图;Fig. 2 is a schematic diagram of path planning provided by an embodiment of the present invention;

图3是本发明实施例提供的一种实例的示意图Fig. 3 is a schematic diagram of an example provided by an embodiment of the present invention

图4是本发明实施例提供的另一种路径规划示意图;FIG. 4 is a schematic diagram of another path planning provided by an embodiment of the present invention;

图5是发明实施例提供的另一种路径规划示意图;Fig. 5 is another schematic diagram of path planning provided by the embodiment of the invention;

图6是发明实施例提供的另一种路径规划示意图;Fig. 6 is another schematic diagram of path planning provided by the embodiment of the invention;

图7是本发明实施例提供的一种行驶路径的规划装置的结构图;Fig. 7 is a structural diagram of a device for planning a driving route provided by an embodiment of the present invention;

图8是本发明实施例提供的另一种行驶路径的规划装置的结构图。Fig. 8 is a structural diagram of another driving route planning device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

参见图1,图1是本发明实施例提供的一种行驶路径的规划方法的流程图,如图1所示,包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of a planning method for a driving route provided by an embodiment of the present invention. As shown in FIG. 1, it includes the following steps:

步骤101、采用预设算法规划目标车辆从起始位置至目的位置的行驶路径,得到规划路径,其中,所述规划路径包括多个路段。Step 101. Using a preset algorithm to plan a driving route of a target vehicle from a starting position to a destination position to obtain a planned route, wherein the planned route includes a plurality of road sections.

其中,所述预设算法可以是各种搜索算法,该搜索算法包括但不限于宽度优先搜索算法、深度优先算法、迪杰斯特拉算法、弗洛伊德算法和贝尔曼福特算法。而优选的,所述目标车辆可以是用于运送危险化学品的车辆;当然,也可以是其他车辆,对此并不做限制。此外,所述起始位置和所述目的位置,均可以是指任意一个定位位置,例如,所述起始位置可以是某石油有限公司,而所述目的位置可以是某加油站。Wherein, the preset algorithm may be various search algorithms, including but not limited to breadth-first search algorithm, depth-first algorithm, Dijkstra algorithm, Floyd algorithm and Bellman-Ford algorithm. Preferably, the target vehicle may be a vehicle for transporting hazardous chemicals; of course, it may also be other vehicles, which are not limited. In addition, both the starting location and the destination location may refer to any positioning location, for example, the starting location may be a certain petroleum company, and the destination location may be a certain gas station.

所述规划路径包括多个路段,可以是指所述规划路径由多个位置节点和路段组成,所述多个位置节点包括所述起始位置和目的位置;其中,每两个位置节点间连接有一个路段。例如,起始位置为A节点,目的位置为B节点,规划路径具体为A、B、C、D,其中,每两个节点之间都连接有一个路段。The planned path includes a plurality of road sections, which may mean that the planned path is composed of a plurality of location nodes and road sections, and the plurality of location nodes include the starting location and the destination location; wherein, every two location nodes are connected There is a section. For example, the starting location is node A, the destination location is node B, and the planned paths are specifically A, B, C, D, wherein there is a road section connected between every two nodes.

可选的,所述预设算法为迪杰斯特拉算法。Optionally, the preset algorithm is the Dijkstra algorithm.

本实施方式中,所述迪杰斯特拉算法即Dijkstra算法,是一种单源最短路径算法;其主要用于计算一个节点到其他所有节点的最短路径。主要特点是以起始点为中心向外层层扩展,直到扩展到终点为止。例如,可以给定一个带权有向图G=(V,E),采用迪杰斯特拉算法搜索目的位置Vn到起始位置V0之间的最短路径,此时的最短路径的队列为Path,且存储有所述迪杰斯特拉算法在目的位置Vn到起始位置V0之间的最短路径的搜索过程中,目的位置到中间节点的最短路径队列和队列长度(li,Pathi),li表示规划路径时得到的从节点Vi到终点Vn的最短路径的长度,Pathi表示规划路径时得到的从节点Vi到终点Vn的最短路径队列,参与路径规划的所有节点的集合为Ud,所述Ud包含起始位置V0In this embodiment, the Dijkstra algorithm is the Dijkstra algorithm, which is a single-source shortest path algorithm; it is mainly used to calculate the shortest path from one node to all other nodes. The main feature is that the starting point is the center and expands outward layer by layer until it reaches the end point. For example, a weighted directed graph G=(V, E) can be given, and the Dijkstra algorithm is used to search for the shortest path between the destination location V n and the starting location V 0 , the queue of the shortest path at this time Be Path, and store the shortest path queue and queue length (l i , Path i ), l i represents the length of the shortest path from node V i to terminal Vn obtained during path planning, Path i represents the shortest path queue from node V i to terminal Vn obtained during path planning, and the participants in path planning The set of all nodes is U d , which contains the starting position V 0 .

这样,通过迪杰斯特拉算法搜索最短路径,具有较高的成功率。In this way, searching for the shortest path through Dijkstra's algorithm has a high success rate.

步骤102、在所述目标车辆按照所述规划路径行驶的情况下,查询所述目标车辆待驶入的目标路段的交通服务水平等级。Step 102 , in the case that the target vehicle is traveling according to the planned route, inquire about the traffic service level grade of the target section that the target vehicle is to drive into.

其中,所述交通服务水平等级主要是指公路的服务水平等级,其主要用来表示车辆或者行人在道路上的通行状况。例如,美国把交通服务水平等级分为A、B、C、D、E和F六级,具体如下:Wherein, the traffic service level grade mainly refers to the road service level grade, which is mainly used to indicate the traffic status of vehicles or pedestrians on the road. For example, the United States divides the traffic service level into six levels: A, B, C, D, E and F, as follows:

A级:交通流是自由流,驾驶员能够保持自己期望的速度;Class A: The traffic flow is free flow, and the driver can maintain his desired speed;

B级:交通流是稳定流,驾驶员受到一定影响,但仍能够自由的选择驾驶速度与车道;Level B: The traffic flow is a steady flow, the driver is affected to a certain extent, but can still freely choose the driving speed and lane;

C级:交通流是稳定流,但由于交通量较大,驾驶员不能够比较自主的选择驾驶速度和变更车道;Class C: The traffic flow is a steady flow, but due to the large traffic volume, the driver cannot choose the driving speed and change the lane independently;

D级:交通流是近似于稳定流,车辆运行受到极大的影响,驾驶员基本上对于自己驾驶速度的没有自由选择的权利;Class D: The traffic flow is similar to a steady flow, the operation of the vehicle is greatly affected, and the driver basically has no right to freely choose his own driving speed;

E级:交通流是非稳定流,此时道路上车辆行驶速度低,而且会发生停车现象,道路接近甚至等于道路的交通容量,对于驾驶员来说,会感到很不舒服;Class E: The traffic flow is an unsteady flow. At this time, the speed of vehicles on the road is low, and parking will occur. The road is close to or even equal to the traffic capacity of the road. For the driver, it will feel very uncomfortable;

F级:交通流是束缚流,此时会出现长时间停车或者堵塞现象。Class F: The traffic flow is a bound flow, and there will be long-term parking or congestion at this time.

目前,我们通常可以将交通服务水平分为一、二、三和四级四个级别,且与美国的六级分级标准相对应,其中A级相当于一级,B级相当于二级,C、D级相当于三级,E、F级相当于四级。At present, we can usually divide the traffic service level into four levels: 1st, 2nd, 3rd and 4th, and correspond to the six-level grading standard in the United States, where A level is equivalent to level 1, B level is equivalent to level 2, and C level is equivalent to level 2. , D level is equivalent to three levels, E, F level is equivalent to four levels.

而所述目标车辆待驶入的目标路段,可以是指与所述目标车当前处于的路段相邻的下一个路段。例如,目标车辆在按照从A、B、C、D的规划路径行驶的情况下,当前正处于AB路段,即A与B之间的路段,那么待驶入的目标路段即就是BC路段,即B与C之间的路段。此外,所述目标车辆待驶入的目标路段的交通服务水平等级,可以通过在互联网或服务器的数据库中进行查询;例如,服务器可以通过对交通参与者的数量进行统计,进而换算得到该路段的交通量,再通过交通量得到的饱和度换算成对应的交通服务水平等级。The target road section to be entered by the target vehicle may refer to the next road section adjacent to the road section where the target vehicle is currently located. For example, when the target vehicle is traveling according to the planned path from A, B, C, D, and is currently in the AB road section, that is, the road section between A and B, then the target road section to be driven is the BC road section, namely The section between B and C. In addition, the traffic service level grade of the target road section to be driven by the target vehicle can be queried in the database of the Internet or the server; The traffic volume, and then the saturation obtained through the traffic volume is converted into the corresponding traffic service level grade.

可选的,所述在所述目标车辆按照所述规划路径行驶的情况下,查询所述目标车辆待驶入的目标路段的交通服务水平等级的步骤之前,所述方法还包括:Optionally, before the step of inquiring about the traffic service level of the target section to be entered by the target vehicle when the target vehicle is traveling according to the planned route, the method further includes:

获取所述目标路段的通行能力和交通量;Obtain the traffic capacity and traffic volume of the target road section;

根据所述通行能力和所述交通量,计算所述目标路段的道路饱和度;calculating the road saturation of the target section according to the traffic capacity and the traffic volume;

根据预设的道路饱和度和交通服务水平等级的对应关系,确定所述目标路段的道路饱和度对应的交通服务水平等级。According to the preset correspondence between road saturation and traffic service level, the traffic service level corresponding to the road saturation of the target section is determined.

本实施方式中,所述根据所述通行能力和所述交通量,计算所述目标路段的道路饱和度,可以是通过根据公式V/C进行计算的,其中,V是用来表示交通量,C用来表示通行能力。而所述通行能力可以是指在一定的道路和交通条件下,道路上某一路段或某交叉口单位时间内通过某一断面的最大车辆数;当然,也可以根据V/C+K进行计算,V是用来表示交通量,C用来表示通行能力,K可以表示一权值;对根据所述通行能力和所述交通量,计算所述目标路段的道路饱和度的方法并不作限定。通常通行能力通常是固定不变的。而所述通行量可以是指单位时间内,在所观测道路上所通行的运输工作量或通过道路上某一断面的交通参与者(如机动车辆、行人、自行车等)的数量,对于车辆的监测方式主要是采用单位时间内通过某一横截面的交通参与者的数量。In this embodiment, the calculation of the road saturation of the target section according to the traffic capacity and the traffic volume may be calculated according to the formula V/C, where V is used to represent the traffic volume, C is used to represent capacity. The traffic capacity can refer to the maximum number of vehicles passing through a certain section in a certain section of the road or a certain intersection per unit time under certain road and traffic conditions; of course, it can also be calculated according to V/C+K , V is used to represent the traffic volume, C is used to represent the traffic capacity, and K may represent a weight; the method for calculating the road saturation of the target section according to the traffic capacity and the traffic volume is not limited. Usually capacity is usually fixed. The traffic volume can refer to the transport workload passing on the observed road or the number of traffic participants (such as motor vehicles, pedestrians, bicycles, etc.) passing through a certain section on the road per unit time. The monitoring method mainly uses the number of traffic participants passing through a certain cross-section per unit time.

其中,对于交通量的测取是对于单位时间内通过道路某一横截面的交通参与者的数量,交通参与者就车辆而言分为现机动车辆和非机动车辆两种,机动车辆里面又有小汽车、客车、公交车、卡车等,非机动车又有自行车、人力三轮车等,由于车辆种类的不同,虽观测数目相同,但路面车辆行驶状况混乱程度完全不同的局面。Among them, the measurement of traffic volume is the number of traffic participants passing through a certain cross-section of the road per unit time. Traffic participants are divided into two types of motor vehicles and non-motor vehicles in terms of vehicles. Motor vehicles also have Cars, buses, buses, trucks, etc., non-motorized vehicles include bicycles, manpower tricycles, etc. Due to the different types of vehicles, although the number of observations is the same, the chaotic levels of road vehicles are completely different.

为此,我们将小汽车作为计算交通量的标准,其他车辆都换算成小汽车的通行量进行计算,具体如表1。For this reason, we use cars as the standard for calculating the traffic volume, and other vehicles are converted into the traffic volume of cars for calculation, as shown in Table 1.

表1中国以小汽车为基准的换算系数Table 1 Conversion Factors Based on Cars in China

对于道路的通行能力来说,分为理论通行能力与实际通行能力两种。对于理论通行能力来说,是在理想条件下实现的,计算通行能力的公式为:For the traffic capacity of the road, it is divided into theoretical traffic capacity and actual traffic capacity. For theoretical traffic capacity, it is realized under ideal conditions, and the formula for calculating traffic capacity is:

式中C表示理论通行能力,T表示理论状况下的车头时距。In the formula, C represents the theoretical traffic capacity, and T represents the headway under theoretical conditions.

对于实际通行能力的计算来说,主要是对于理论通行能力的修正,道路类型不同,采用不同的修正因素。以我国修正方法为例,不同道路类型的实际通行能力的计算方法不同。For the calculation of the actual traffic capacity, it is mainly the correction of the theoretical traffic capacity, and different correction factors are used for different types of roads. Taking my country's correction method as an example, the calculation methods of the actual traffic capacity of different road types are different.

(1)高速公路路段实际通行能力(1) Actual traffic capacity of expressway sections

对于高速公路路段而言,按公式:For highway sections, according to the formula:

C=C×fHV×fp×fN C real = C × f HV × f p × f N

式中C表示高速公路路段的车道实际通行能力;In the formula, C actually represents the actual traffic capacity of the lane of the expressway section;

C表示高速公路路段的车道理想通行能力;C represents the ideal traffic capacity of the lane of the expressway section;

fp表示驾驶员总体特征系数;f p represents the overall characteristic coefficient of the driver;

fN表示6车道以上的高速公路车道修正系数;f N represents the lane correction coefficient of expressways with more than 6 lanes;

fHV表示交通组成修正系数;f HV represents the traffic composition correction coefficient;

Pi表示大型车、中型车、拖挂车(i)交通量占总交通量的百分比;P i represents the percentage of the traffic volume of large vehicles, medium-sized vehicles, and trailers (i) in the total traffic volume;

Ei表示大型车、中型车、拖挂车(i)车辆折算系数。E i represents the vehicle conversion factor for large vehicles, medium-sized vehicles, and trailers (i).

(2)一级公路路段的实际通行能力(2) The actual traffic capacity of the first-class road section

对于一级公路路段而言,按公式:For the first-class road section, according to the formula:

C=C×fHV×fp×fN×ff C real = C × f HV × f p × f N × f f

式中C表示一级公路路段的车道实际通行能力;In the formula, C actually represents the actual traffic capacity of the lane of the first-class highway section;

C表示一级公路路段的车道理想通行能力;C represents the ideal traffic capacity of the lane of the first-class road section;

fp表示驾驶员总体特征系数;f p represents the overall characteristic coefficient of the driver;

fN表示车道修正系数;f N represents the lane correction coefficient;

fHV表示交通组成修正系数;f HV represents the traffic composition correction coefficient;

ff表示路侧干扰修正系数。f f represents the roadside interference correction factor.

(3)二级公路路段的实际通行能力(3) The actual traffic capacity of the secondary road section

对于二级公路路段而言,按公式:For secondary road sections, according to the formula:

C=C×fHV+fw×fd×ff C real = C × f HV + f w × f d × f f

式中C表示一级公路路段的车道实际通行能力;In the formula, C actually represents the actual traffic capacity of the lane of the first-class highway section;

C表示一级公路路段的车道理想通行能力;C represents the ideal traffic capacity of the lane of the first-class road section;

fHV表示交通组成修正系数;f HV represents the traffic composition correction coefficient;

ff表示路侧干扰修正系数;f f represents the roadside interference correction coefficient;

fd表示方向修正系数;f d represents the direction correction coefficient;

fw表示车道宽度、露肩宽度修正系数。f w represents the correction factor of lane width and shoulder width.

通过上面对于交通量的监测以及对于道路实际通行能力的计算,就可以比较容易的计算出车辆所在道路的道路饱和度。由此,我们便可以根据道路饱和度与交通服务水平等级的对应关系,确定目标路段所归属的交通服务水平等级。Through the above monitoring of traffic volume and calculation of actual road capacity, it is relatively easy to calculate the road saturation of the road where the vehicle is located. From this, we can determine the traffic service level to which the target road section belongs according to the corresponding relationship between road saturation and traffic service level.

这样,通过根据预设的道路饱和度和交通服务水平等级的对应关系,确定所述目标路段的道路饱和度对应的交通服务水平等级,计算比较简单,可以比较快速地确定目标路段归属的交通服务水平等级。In this way, by determining the traffic service level corresponding to the road saturation of the target road segment according to the preset correspondence between road saturation and traffic service level, the calculation is relatively simple, and the traffic service to which the target road segment belongs can be determined relatively quickly. level grade.

可选的,所述交通服务水平等级分为一级、二级、三级和四级,其中,0≤道路饱和度≤0.6的路段为所述一级,0.6<道路饱和度≤0.8的路段为所述二级,0.8<道路饱和度≤1的路段为所述三级,1<道路饱和度的路段为所述四级。Optionally, the traffic service level grades are divided into grades 1, 2, 3 and 4, wherein, the section with 0≤road saturation≤0.6 is the first level, and the section with 0.6<road saturation≤0.8 The road section with 0.8<road saturation≤1 is the third grade, and the road section with 1<road saturation is the fourth grade.

本实施方式中,上述交通服务水平等级的划分方式是经过大量测验后得到的一种较优的划分方式,当然,还可以通过其他方式对交通服务水平等级进行划分。例如,可以将交通服务水平等级分为A、B和C三个等级,其中A级对应0至0.3之间的饱和度,B级对应0.3至0.6之间的饱和度,C级为对应大于0.6的饱和度;对此并不作限制。In this embodiment, the above-mentioned division method of the traffic service level is an optimal division method obtained after a large number of tests. Of course, other ways can also be used to divide the traffic service level. For example, the level of traffic service level can be divided into three grades: A, B and C, where grade A corresponds to a saturation between 0 and 0.3, grade B corresponds to a saturation between 0.3 and 0.6, and grade C corresponds to a saturation greater than 0.6 saturation; there is no limit to this.

这样,通过将所述交通服务水平等级分为一级、二级、三级和四级,可以使交通服务水平等级与道路的实际通行情况更加符合,从而有利于进行路径规划。In this way, by dividing the traffic service level grades into first, second, third and fourth grades, the traffic service level grades can be more consistent with the actual traffic conditions of the road, thereby facilitating route planning.

步骤103、若所述目标路段的交通服务水平等级为预设等级,则采用决策树剪枝算法,对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算,得到局部优化路径。Step 103: If the traffic service level of the target road section is a preset level, then use the decision tree pruning algorithm to calculate the driving path between the starting position and the ending position of the target road section to obtain a local optimization path.

其中,所述预设等级可以是任一个等级,例如,在交通服务水平等级被划分为一级、二级和三级的情况下,所述预设等级可以是一级,也可以是二级或三级,对此并不作限制,以根据用户的需要进行设定即可。此外,所述局部优化路径可以包括多条路段,也可以是一条路段,具体以通过算法所得到的结果为准。Wherein, the preset grade can be any grade, for example, in the case that the traffic service level grade is divided into grade 1, grade 2 and grade 3, the preset grade can be grade 1 or grade 2 Or three levels, there is no limit to this, it can be set according to the needs of users. In addition, the local optimal path may include multiple road sections, or one road section, depending on the result obtained through the algorithm.

而所述决策树(Decision Tree)剪枝算法是在已知各种情况发生概率的基础上,通过构成决策树来求取净现值的期望值大于等于零的概率,评价项目风险,判断其可行性的决策分析方法,是直观运用概率分析的一种图解法。由于这种决策分支画成图形很像一棵树的枝干,故称决策树。决策树是一种倒立的树型结构,从一组无次序、无规则的事例中推理出树状形式表示的分类规则。它采用自顶向下的递归方式,根据一定标准选取属性作为决策树的内部节点,并根据该属性的不同取值构造不同的分支,在树的叶结点得到结论,所以从根节点到叶结点的每一条路径就对应一条规则。决策树是一种自上而下的归纳过程,是一种贪心算法。The decision tree (Decision Tree) pruning algorithm is based on the known probability of occurrence of various situations, by forming a decision tree to obtain the probability that the expected value of the net present value is greater than or equal to zero, evaluate the project risk, and judge its feasibility The decision analysis method is a graphical method that intuitively uses probability analysis. Because this decision-making branch is drawn in a graph that resembles the branches of a tree, it is called a decision tree. Decision tree is an inverted tree structure, which infers classification rules expressed in tree form from a set of unordered and irregular cases. It adopts a top-down recursive method, selects attributes as internal nodes of the decision tree according to certain standards, and constructs different branches according to different values of the attributes, and draws conclusions at the leaf nodes of the tree, so from the root node to the leaf node Each path of a node corresponds to a rule. Decision tree is a top-down inductive process and a greedy algorithm.

所述目标路段的起始位置,可以是指所述目标路段中在行驶方向上的起点位置,而所述目标路段的目的位置,则可以是指所述目标路段中在行驶方向上的终点位置。例如,如图2中所示的A点和B点,A为目标路段的起始位置,B为目标路段的终点位置。The starting position of the target road section may refer to the starting position of the target road section in the direction of travel, and the destination position of the target road section may refer to the end position of the target road section in the direction of travel . For example, point A and point B shown in FIG. 2 , A is the starting position of the target road segment, and B is the end position of the target road segment.

所述采用决策树剪枝算法,对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算,得到局部优化路径,可以是指将所述目标路段的起始位置作为决策树的决策点,将所述目标路段的终止位置作为结果节点,将路段长度作为期望收益,进行剪枝算法运算,将得到的最短路径作为局部优化路径。The use of the decision tree pruning algorithm to calculate the driving path between the starting position and the ending position of the target road section to obtain a local optimal path may refer to using the starting position of the target road section as a decision tree The decision point of the target road section is taken as the result node, the length of the road section is taken as the expected income, and the pruning algorithm operation is performed, and the obtained shortest path is used as the local optimization path.

这样,通过所述决策树剪枝算法只需要对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算,从而得到局部优化路径,大大节省了计算时间。In this way, the decision tree pruning algorithm only needs to calculate the driving path between the starting position and the ending position of the target road section, so as to obtain a local optimal route, which greatly saves calculation time.

可选的,所述采用决策树剪枝算法,对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算的步骤,包括:Optionally, the step of using the decision tree pruning algorithm to calculate the driving path between the starting position and the ending position of the target road section includes:

若所述目标路段的交通服务水平等级为第一预设等级,则增大所述目标路段的长度的权重值,并基于增大后的所述目标路段的长度的权重值,采用决策树剪枝算法,对与所述目标路段的起始节点和终止节点之间的最短运输路径进行计算,得到局部优化路径;和/或If the traffic service level grade of the target road section is the first preset level, then increase the weight value of the length of the target road section, and based on the increased weight value of the length of the target road section, use decision tree pruning A branch algorithm, calculating the shortest transportation path between the start node and the end node of the target road section, to obtain a local optimal path; and/or

若所述目标路段的交通服务水平等级为第二预设等级,则采用决策树剪枝算法,对与所述目标路段的起始节点和终止节点之间的最短运输路径进行计算,得到局部优化路径,其中,采用所述决策树剪枝算法计算行驶路径时的计算参数中不包括所述目标路段的长度。If the traffic service level of the target road section is the second preset level, a decision tree pruning algorithm is used to calculate the shortest transportation path between the start node and the end node of the target road section to obtain a local optimization The route, wherein, the calculation parameters when using the decision tree pruning algorithm to calculate the driving route do not include the length of the target road section.

本实施方式中,所述第一预设等级和所述第二预设等级是不相同的交通服务水平等级。需要说明的是,处在所述第一预设等级的路段,驾驶员不能够比较自主的选择驾驶速度和变更车道,即交通流处于一种介于近似稳定流与稳定流之间的状态,可以理解为第一预设等级的路段的通畅度较低。而处在所述第二预设等级的路段,车辆行驶速度低,而且会发生停车现象;道路接近甚至等于道路的交通容量,对于驾驶员来说,会感到很不舒服,甚至会出现长时间停车或者堵塞现象,即交通流是非稳定流或束缚流,可以理解为所述第二预设等级的路段完全无法行驶。In this embodiment, the first preset level and the second preset level are different traffic service level levels. It should be noted that, in the road section of the first preset level, the driver cannot choose the driving speed and change the lane relatively independently, that is, the traffic flow is in a state between an approximate steady flow and a steady flow, It can be understood that the smoothness of road sections of the first preset level is relatively low. And be in the road section of described second preset level, vehicle traveling speed is low, and parking phenomenon will occur; Stopping or jamming, that is, the traffic flow is an unsteady flow or a bound flow, can be understood as that the road section of the second preset level cannot be driven at all.

此外,采用所述决策树剪枝算法计算行驶路径时的计算参数中不包括所述目标路段的长度,可以是指对不包括所述目标路段的长度的节点求最短路径。In addition, using the decision tree pruning algorithm to calculate the driving route does not include the length of the target road section in the calculation parameters, which may refer to finding the shortest path for nodes that do not include the length of the target road section.

为了更好的说明本实施方式,下面将以一应用实例进行说明:In order to better illustrate this embodiment, an application example will be used below:

设G=(V,E)是带权有向图,首先通过Dijkstra算法,搜索终点vn到初始点v0之间的最短路径,将该最短路径作为规划路径。其中,最短路径的队列为Path,并存储Dijkstra算法在由终点vn到初始点v0搜索过程中终点到中间节点的最短路径队列和队列长度(li,Pathi)(其中li表示初始路径规划时得到的从节点vi到终点vn的最短路径的长度,Pathi表示初始路径规划时得到的从节点vi到终点vn的最短路径队列),并把参与初始规划的所有节点的集合设为Ud(Ud包含初始点v0和终点vn)。假设即将到达点vm时判断出点vm到点vm+1(记作该路段为vmvm+1)路况发生改变,触发局部优化,具体更新步骤如下;Let G=(V,E) be a weighted directed graph. Firstly, through the Dijkstra algorithm, search for the shortest path between the end point v n and the initial point v 0 , and use the shortest path as the planning path. Among them, the queue of the shortest path is Path, and store the shortest path queue and queue length (l i ,Path i ) from the end point to the intermediate node during the search process from the end point v n to the initial point v 0 by Dijkstra algorithm (wherein l i represents the initial The length of the shortest path from node v i to terminal v n obtained during path planning, Path i represents the shortest path queue from node v i to terminal v n obtained during initial path planning), and all nodes participating in the initial planning The collection of is set to U d (U d includes the initial point v 0 and the end point v n ). Assume that when the point v m is about to arrive, it is judged that the road conditions from point v m to point v m+1 (denoted as v m v m+1 ) have changed, and local optimization is triggered. The specific update steps are as follows;

步骤A:更新相关路段的实时路径信息。Step A: Updating the real-time route information of the relevant road segment.

步骤B:设vm到Ud中所有点的已知最短距离数组DT(若vm与某顶点vi有边,DT[i]=length(v,vi);若vi不是vm的出边邻接点,DT[i]=∞,DT[0]=0);根据路径状况判断,如果是三级服务水平,则跳转到Step3;如果是四级服务水平,则跳转到步骤D。Step B: Set the known shortest distance array DT between v m and all points in U d (if v m has an edge with a certain vertex v i , DT[i]=length(v, v i ); if v i is not v m , DT[i]=∞, DT[0]=0); judging according to the path status, if it is a third-level service level, then jump to Step3; if it is a fourth-level service level, then jump to Step D.

步骤C:对与vm节点相连的节点的求min(lj+DT[j]),假设此时最短路径节点vj,得到最小节点规划队列Pathj,转到步骤G。Step C: Calculate min(l j +DT[j]) of nodes connected to node v m , assuming the shortest path node v j at this time, obtain the minimum node planning queue Path j , and go to step G.

步骤D:判断节点M的子节点的最短队列是否都含有路段vmvm+1,是都含有则转到步骤E;否则转到步骤F;Step D: Judging whether the shortest queues of the child nodes of node M contain the road segment v m v m+1 , if they all contain, then go to step E; otherwise, go to step F;

步骤E:把节点M的子节点按DT[i]=length(v,vi)大小依次作为节点M,并转到步骤D;Step E: take the child nodes of node M as node M according to the size of DT[i]=length(v,v i ), and turn to step D;

步骤F:对最短队列不含vmvm+1的节点求min(li+DT[i]),假设此时为节点vi,得到最小节点规划队列Pathi,转到步骤G。Step F: Calculate min(l i +DT[i]) for the node whose shortest queue does not contain v m v m+1 , assuming that it is node v i at this time, obtain the minimum node planning queue Path i , and go to step G.

步骤G:更新Path。Step G: Update Path.

其中,上述流程的具体实例可以参见图3所示,设节点vm到节点vm+1为初始规划路径,且即将到达节点vm时,激活局部优化,更新相关路径信息,判断出现道路服务水平:Among them, the specific example of the above process can be seen in Figure 3. Let the node v m to node v m+1 be the initial planned path, and when the node v m is about to arrive, activate the local optimization, update the relevant path information, and determine the occurrence of road services Level:

1、判断出现三级服务水平,求min((1.6lm+1+DT[m+1]),(lm+2+DT[m+2]),(lm+3+DT[m+3]),(lm+4+DT[m+4])),假设此时最短路径节点vj,得到最小节点规划队列Pathj,算法结束,更新最短路径队列。1. Judging that there is a third-level service level, find min((1.6l m+1 +DT[m+1]), (l m+2 +DT[m+2]), (l m+3 +DT[m +3]), (l m+4 +DT[m+4])), assuming the shortest path node v j at this time, get the minimum node planning queue Path j , the algorithm ends, update the shortest path queue.

2、判断出现四级服务水平。此时节点vm+2的最短队列中含有路段vmvm+1,节点vm+3和节点vm+4的最短队列中则不含vmvm+1,求min((lm+3+DT[m+3]),(lm+4+DT[m+4])),假设此时为节点vi,得到最小节点规划队列Pathi,算法结束,更新队列。2. Judging the emergence of four levels of service. At this time, the shortest queue of node v m+2 contains road section v m v m+1 , and the shortest queue of nodes v m+3 and v m+4 does not contain v m v m+1 , find min((l m+3 +DT[m+3]), (l m+4 +DT[m+4])), assuming that it is node v i at this time, the minimum node planning queue Path i is obtained, the algorithm ends, and the queue is updated.

这样,计算的时间复杂程度为常数阶,极大的节约了时间。In this way, the time complexity of the calculation is a constant order, which greatly saves time.

步骤104、通过所述局部优化路径替换所述目标路段,以更新所述规划路径。Step 104: Replace the target road section with the local optimized route, so as to update the planned route.

需要说明的是,所述规划路径在更新后,可能与原来的路径一致,这是由于通过决策树剪枝算法得到的局部优化路径存在可能与所述目标路段一致。下面以一具体实例进行说明:It should be noted that the planned path may be consistent with the original path after being updated, because the local optimal path obtained through the decision tree pruning algorithm may be consistent with the target road section. Let's take a specific example to illustrate:

在车辆按照如图2所示的规划路径所行驶的过程中,在分别即将进入尚未驶入的c1、c2、c3三段路径时,通过实时监测并计算得到的信息显示,这三段路径的交通服务水平发生改变,其中路段c1的交通服务水平处于四级交通服务水平等级,路段c2和c3则处于三级交通服务水平等级,通过使用路径的局部优化,在即将到达c1路段时的规划图如图4所示,对于路段c2和c3两段的规划图,分别如图5和图6所示。可以看出,路段c1处于四级交通服务水平等级,则通过决策树剪枝算法得到的局部优化路径肯定与原有的路段不同,即图4中虚线所示路段;而c2路段由于处于三级交通服务水平等级,说明该条路段仍然可以处于通行状态,只是需要对该条路段的长度进行加权处理,并在进行加权处理后以决策树剪枝算法进行路径规划,从而得到局部优化路径,而算法仍然认为加权后的该条路段仍然是最短路径,因此以局部优化路径替换后并未发生改变。假设在实际的路径的规划中,在即将驶入的已规划未行驶路径中,只有c1、c2、c3三段的路径信息发生改变较大,出现三级或者四级道路服务水平路况,因此,直到车辆到达终点,如图6所示,在更新后形成最终的路径规划。When the vehicle is traveling according to the planned path shown in Figure 2, when it is about to enter the three sections of path c 1 , c 2 , and c 3 that have not yet entered, the information obtained through real-time monitoring and calculation shows that the three sections The traffic service level of the section path changes, the traffic service level of the road section c 1 is at the fourth-level traffic service level, and the road sections c 2 and c 3 are at the third-level traffic service level. The planning diagram of road section c 1 is shown in Fig. 4, and the planning diagrams of road sections c 2 and c 3 are shown in Fig. 5 and Fig. 6 respectively. It can be seen that the road section c 1 is in the fourth-level traffic service level, and the local optimal path obtained by the decision tree pruning algorithm must be different from the original road section, that is, the road section shown by the dotted line in Figure 4; while the road section c 2 is in the The three-level traffic service level indicates that the road section can still be in the traffic state, but the length of the road section needs to be weighted, and after the weighted processing, the decision tree pruning algorithm is used for path planning to obtain a local optimal path , but the algorithm still thinks that the weighted road section is still the shortest path, so there is no change after replacing it with a local optimal path. Assume that in the actual route planning, only the route information of c 1 , c 2 , and c 3 in the planned untraveled route that is about to enter has a large change, and there is a third-level or fourth-level road service level road condition , so until the vehicle reaches the end point, as shown in Figure 6, the final path plan is formed after updating.

本发明实施例中,上述装置可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In the embodiment of the present invention, the above-mentioned device may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant, PDA for short), a mobile Internet device (Mobile Internet Device, MID ) or wearable devices (Wearable Device), etc.

本发明实施例,采用预设算法规划目标车辆从起始位置至目的位置的行驶路径,得到规划路径,其中,所述规划路径包括多个路段;在所述目标车辆按照所述规划路径行驶的情况下,查询所述目标车辆待驶入的目标路段的交通服务水平等级;若所述目标路段的交通服务水平等级为预设等级,则采用决策树剪枝算法,对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算,得到局部优化路径;通过所述局部优化路径替换所述目标路段,以更新所述规划路径。这样,目标车辆在按照规划路径行驶时,能够根据待驶入的目标路段的交通服务水平等级更新规划路径,从而可以提高规划路径的准确度。In the embodiment of the present invention, a preset algorithm is used to plan the travel path of the target vehicle from the starting position to the destination position to obtain a planned route, wherein the planned route includes a plurality of road sections; when the target vehicle travels according to the planned route case, query the traffic service level grade of the target road section to be entered by the target vehicle; if the traffic service level grade of the target road section is a preset level, then use the decision tree pruning algorithm to The driving route between the starting position and the ending position is calculated to obtain a local optimal route; the target road section is replaced by the local optimal route to update the planned route. In this way, when the target vehicle travels according to the planned route, the planned route can be updated according to the traffic service level of the target section to be driven, thereby improving the accuracy of the planned route.

参见图7,图7是本发明一实施例提供的行驶路径的规划装置的结构图,如图7所示,行驶路径的规划装置700包括规划模块701、查询模块702、计算模块703和更新模块704;其中:Referring to FIG. 7, FIG. 7 is a structural diagram of a planning device for a driving route provided by an embodiment of the present invention. As shown in FIG. 704; where:

规划模块,用于采用预设算法规划目标车辆从起始位置至目的位置的行驶路径,得到规划路径,其中,所述规划路径包括多个路段;The planning module is used to plan the driving path of the target vehicle from the starting position to the destination position by using a preset algorithm to obtain the planned path, wherein the planned path includes a plurality of road sections;

查询模块,用于在所述目标车辆按照所述规划路径行驶的情况下,查询所述目标车辆待驶入的目标路段的交通服务水平等级;An inquiry module, configured to inquire about the traffic service level grade of the target road segment to be entered by the target vehicle when the target vehicle is traveling according to the planned route;

计算模块,用于若所述目标路段的交通服务水平等级为预设等级,则采用决策树剪枝算法,对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算,得到局部优化路径;A calculation module, configured to use a decision tree pruning algorithm to calculate the driving path between the starting position and the ending position of the target road section if the traffic service level of the target road section is a preset level, and obtain local optimization path;

更新模块,用于通过所述局部优化路径替换所述目标路段,以更新所述规划路径。An update module, configured to replace the target road section with the local optimized route, so as to update the planned route.

行驶路径的规划装置700能够实现上述方法实施例中装置实现的各个过程及有益效果,为避免重复,这里不再赘述。The driving route planning device 700 can realize various processes and beneficial effects realized by the devices in the above method embodiments, and to avoid repetition, details are not repeated here.

参见图8,图8为实现本发明各个实施例的一种行驶路径的规划装置的硬件结构示意图,Referring to FIG. 8, FIG. 8 is a schematic diagram of the hardware structure of a planning device for a driving route implementing various embodiments of the present invention.

该装置800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的装置结构并不构成对装置的限定,装置可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,装置包括但不限于手机、平板电脑、台式电脑、笔记本电脑、掌上电脑、车载终端等。The device 800 includes but not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811 and other components. Those skilled in the art can understand that the structure of the device shown in FIG. 8 does not constitute a limitation to the device, and the device may include more or fewer components than shown in the figure, or combine some components, or arrange different components. In the embodiment of the present invention, the device includes, but is not limited to, a mobile phone, a tablet computer, a desktop computer, a notebook computer, a palmtop computer, a vehicle terminal, and the like.

其中,处理器810,用于采用预设算法规划目标车辆从起始位置至目的位置的行驶路径,得到规划路径,其中,所述规划路径包括多个路段;Wherein, the processor 810 is configured to use a preset algorithm to plan the traveling path of the target vehicle from the starting position to the destination position to obtain the planned path, wherein the planned path includes a plurality of road sections;

在所述目标车辆按照所述规划路径行驶的情况下,查询所述目标车辆待驶入的目标路段的交通服务水平等级;In the case that the target vehicle is traveling according to the planned route, inquiring about the traffic service level grade of the target section to be entered by the target vehicle;

若所述目标路段的交通服务水平等级为预设等级,则采用决策树剪枝算法,对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算,得到局部优化路径;If the traffic service level grade of the target road section is a preset level, a decision tree pruning algorithm is used to calculate the driving path between the starting position and the ending position of the target road section to obtain a local optimal path;

通过所述局部优化路径替换所述目标路段,以更新所述规划路径。The target road section is replaced by the local optimized route, so as to update the planned route.

可选的,所述预设算法为迪杰斯特拉算法。Optionally, the preset algorithm is the Dijkstra algorithm.

可选的,所述处理器810还用于获取所述目标路段的通行能力和交通量;Optionally, the processor 810 is also configured to acquire the capacity and traffic volume of the target road section;

根据所述通行能力和所述交通量,计算所述目标路段的道路饱和度;calculating the road saturation of the target section according to the traffic capacity and the traffic volume;

根据预设的道路饱和度和交通服务水平等级的对应关系,确定所述目标路段的道路饱和度对应的交通服务水平等级。According to the preset correspondence between road saturation and traffic service level, the traffic service level corresponding to the road saturation of the target section is determined.

可选的,所述处理器810执行的采用决策树剪枝算法,对与所述目标路段的起始位置和终止位置之间的行驶路径进行计算,包括:Optionally, the decision tree pruning algorithm executed by the processor 810 is used to calculate the driving path between the starting position and the ending position of the target road section, including:

若所述目标路段的交通服务水平等级为第一预设等级,则增大所述目标路段的长度的权重值,并基于增大后的所述目标路段的长度的权重值,采用决策树剪枝算法,对与所述目标路段的起始节点和终止节点之间的最短运输路径进行计算,得到局部优化路径;和/或If the traffic service level grade of the target road section is the first preset level, then increase the weight value of the length of the target road section, and based on the increased weight value of the length of the target road section, use decision tree pruning A branch algorithm, calculating the shortest transportation path between the start node and the end node of the target road section, to obtain a local optimal path; and/or

若所述目标路段的交通服务水平等级为第二预设等级,则采用决策树剪枝算法,对与所述目标路段的起始节点和终止节点之间的最短运输路径进行计算,得到局部优化路径,其中,采用所述决策树剪枝算法计算行驶路径时的计算参数中不包括所述目标路段的长度。If the traffic service level of the target road section is the second preset level, a decision tree pruning algorithm is used to calculate the shortest transportation path between the start node and the end node of the target road section to obtain a local optimization The route, wherein, the calculation parameters when using the decision tree pruning algorithm to calculate the driving route do not include the length of the target road section.

可选的,所述交通服务水平等级分为一级、二级、三级和四级,其中,0≤道路饱和度≤0.6的路段为所述一级,0.6<道路饱和度≤0.8的路段为所述二级,0.8<道路饱和度≤1的路段为所述三级,1<道路饱和度的路段为所述四级。Optionally, the traffic service level grades are divided into grades 1, 2, 3 and 4, wherein, the section with 0≤road saturation≤0.6 is the first level, and the section with 0.6<road saturation≤0.8 The road section with 0.8<road saturation≤1 is the third grade, and the road section with 1<road saturation is the fourth grade.

装置800能够实现前述实施例中装置实现的各个过程及有益效果,为避免重复,这里不再赘述。The device 800 can realize various processes and beneficial effects realized by the devices in the foregoing embodiments, and to avoid repetition, details are not repeated here.

应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, the processor 810 processes it; Uplink data is sent to the base station. Generally, the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.

装置通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The device provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive emails, browse web pages, and access streaming media.

音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与装置800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the device 800 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.

输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。The input unit 804 is used for receiving audio or video signals. The input unit 804 may include a graphics processing unit (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processing unit 8041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 806 . The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage media) or sent via the radio frequency unit 801 or the network module 802 . The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 801 for output in the case of a phone call mode.

装置800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在装置800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别装置姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。Apparatus 800 also includes at least one sensor 805, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 8061 and/or when the device 800 is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the device (such as horizontal and vertical screen switching, related games, Magnetometer posture calibration), vibration recognition related functions (such as pedometer, knocking), etc.; sensor 805 can also include fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared ray Sensors, etc., will not be described in detail here.

显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板8061。The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入单元807可用于接收输入的数字或字符信息,以及产生与装置的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 807 can be used to receive input number or character information, and generate key signal input related to user settings and function control of the device. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072 . The touch panel 8071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 8071 or near the touch panel 8071). operate). The touch panel 8071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 810, receive the command sent by the processor 810 and execute it. In addition, the touch panel 8071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 8071 , the user input unit 807 may also include other input devices 8072 . Specifically, other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图8中,触控面板8071与显示面板8061是作为两个独立的部件来实现装置的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现装置的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 8071 can be covered on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near it, it will be sent to the processor 810 to determine the type of the touch event, and then the processor 810 will The type of event provides a corresponding visual output on the display panel 8061. Although in FIG. 8, the touch panel 8071 and the display panel 8061 are used as two independent components to realize the input and output functions of the device, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated to form a Realize the input and output functions of the device, which is not limited here.

接口单元808为外部装置与装置800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到装置800内的一个或多个元件或者可以用于在装置800和外部装置之间传输数据。The interface unit 808 is an interface for connecting an external device to the device 800 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. Interface unit 808 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within device 800 or may be used to transfer data between.

存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 809 can be used to store software programs as well as various data. The memory 809 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 809 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器810是装置的控制中心,利用各种接口和线路连接整个装置的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行装置的各种功能和处理数据,从而对装置进行整体监控。处理器810可包括一个或多个处理单元;优选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 is the control center of the device. It uses various interfaces and lines to connect various parts of the entire device. By running or executing software programs and/or modules stored in the memory 809, and calling data stored in the memory 809, execution Various functions and processing data of the device, so as to monitor the device as a whole. The processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810 .

装置800还可以包括给各个部件供电的电源811(比如电池),优选的,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The device 800 may also include a power supply 811 (such as a battery) for supplying power to various components. Preferably, the power supply 811 may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. Function.

另外,装置800包括一些未示出的功能模块,在此不再赘述。In addition, the device 800 includes some unshown functional modules, which will not be repeated here.

优选的,本发明实施例还提供一种行驶路径的规划装置,包括处理器810,存储器809,存储在存储器809上并可在所述处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述行驶路径的规划方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a driving route planning device, including a processor 810, a memory 809, and a computer program stored in the memory 809 and operable on the processor 810, the computer program being programmed by the processor When executing 810, each process of the above embodiment of the driving route planning method can be realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述行驶路径的规划方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned embodiment of the method for planning a driving route can be realized, and the same can be achieved. To avoid repetition, the technical effects will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive. Those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, all of which belong to the protection of the present invention.

Claims (8)

1. a kind of planing method of driving path, which is characterized in that including:
Driving path using preset algorithm object of planning vehicle from initial position to destination locations, obtains planning path, wherein The planning path includes multiple sections;
In the case where the target vehicle is travelled according to the planning path, target vehicle target road to be driven into is inquired The level of service grade of section;
If the level of service grade of the target road section be predetermined level, use decision tree pruning algorithms, pair with it is described Driving path between the initial position and final position of target road section is calculated, and local optimum path is obtained;
By target road section described in the local optimum path replacement, to update the planning path.
2. according to the method described in claim 1, it is characterized in that, the preset algorithm is Dijkstra's algorithm.
3. according to the method described in claim 1, it is characterized in that, it is described in the target vehicle according to the planning path row It is described before the step of inquiring the level of service grade of target vehicle target road section to be driven into the case of sailing Method further includes:
Obtain the traffic capacity and the volume of traffic of the target road section;
According to the traffic capacity and the volume of traffic, the road saturation degree of the target road section is calculated;
According to the correspondence of preset road saturation degree and level of service grade, determine that the road of the target road section is full The corresponding level of service grade with degree.
4. according to the method described in claim 3, it is characterized in that, it is described use decision tree pruning algorithms, pair with the target The step of driving path between the initial position and final position in section is calculated, including:
If the level of service grade of the target road section is the first predetermined level, increase the length of the target road section Weighted value, and the weighted value of the length based on the target road section after increase, using decision tree pruning algorithms, pair with the mesh The most short transportation route marked between the start node and terminal node in section is calculated, and local optimum path is obtained;And/or
If the level of service grade of the target road section be the second predetermined level, use decision tree pruning algorithms, pair with Most short transportation route between the start node and terminal node of the target road section is calculated, and local optimum path is obtained, Wherein, the length of the target road section is not included in calculating parameter when calculating driving path using the decision tree pruning algorithms Degree.
5. according to the method described in claim 3, it is characterized in that, the level of service grade is divided into level-one, two level, three Grade and level Four, wherein the section of 0≤road saturation degree≤0.6 be the level-one, 0.6<The section of road saturation degree≤0.8 is The two level, 0.8<The section of road saturation degree≤1 be the three-level, 1<The section of road saturation degree is the level Four.
6. a kind of device for planning of driving path, which is characterized in that including:
Planning module is obtained for using driving path of the preset algorithm object of planning vehicle from initial position to destination locations Planning path, wherein the planning path includes multiple sections;
Enquiry module, in the case where the target vehicle is travelled according to the planning path, inquiring the target vehicle The level of service grade of target road section to be driven into;
Computing module uses decision tree beta pruning if the level of service grade for the target road section is predetermined level Algorithm, the driving path pair between the initial position and final position of the target road section calculate, and obtain local optimum Path;
Update module is used for by target road section described in the local optimum path replacement, to update the planning path.
7. a kind of device for planning of driving path, which is characterized in that including:Memory, processor and it is stored in the memory Computer program that is upper and can running on the processor, the processor realize such as right when executing the computer program It is required that the step in the planing method of driving path described in any one of 1-5.
8. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the rule of the driving path as described in any one of claim 1-5 when the computer program is executed by processor Step in the method for drawing.
CN201810489707.1A 2018-05-21 2018-05-21 A kind of method and device for planning of driving path Pending CN108562301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810489707.1A CN108562301A (en) 2018-05-21 2018-05-21 A kind of method and device for planning of driving path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810489707.1A CN108562301A (en) 2018-05-21 2018-05-21 A kind of method and device for planning of driving path

Publications (1)

Publication Number Publication Date
CN108562301A true CN108562301A (en) 2018-09-21

Family

ID=63539337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810489707.1A Pending CN108562301A (en) 2018-05-21 2018-05-21 A kind of method and device for planning of driving path

Country Status (1)

Country Link
CN (1) CN108562301A (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109682375A (en) * 2019-01-21 2019-04-26 重庆邮电大学 A kind of UWB supplementary inertial localization method based on fault-tolerant decision tree
CN109708656A (en) * 2019-01-24 2019-05-03 爱驰汽车有限公司 Route planning method, system, equipment and storage medium based on real-time road
CN109740974A (en) * 2019-03-08 2019-05-10 电子科技大学 Matching method of electric vehicle charging and feeding in driving mode
CN109840685A (en) * 2018-12-24 2019-06-04 上海成生科技有限公司 A kind of method and apparatus of refuse collection
CN110466527A (en) * 2019-08-22 2019-11-19 广州小鹏汽车科技有限公司 A kind of travel control method of vehicle, system and vehicle
CN110530389A (en) * 2019-09-06 2019-12-03 禾多科技(北京)有限公司 Crossing mode identification method and identifying system based on high-precision map of navigation electronic
CN110836675A (en) * 2019-10-25 2020-02-25 北京航空航天大学 Decision tree-based automatic driving search decision method
CN111798015A (en) * 2019-04-08 2020-10-20 北京嘀嘀无限科技发展有限公司 Planned route adjusting method and device, electronic equipment and storage medium
CN111947676A (en) * 2020-08-11 2020-11-17 上海寻梦信息技术有限公司 Express delivery path planning method and device, electronic equipment and storage medium
CN112347216A (en) * 2020-11-06 2021-02-09 思创数码科技股份有限公司 Initial route searching method based on dynamic road network
CN113298443A (en) * 2019-11-14 2021-08-24 广东科学技术职业学院 Route planning method
CN113295177A (en) * 2021-04-30 2021-08-24 长安大学 Dynamic path planning method and system based on real-time road condition information
CN113701771A (en) * 2021-07-29 2021-11-26 东风悦享科技有限公司 Parking path planning method and device, electronic equipment and storage medium
CN113724486A (en) * 2021-07-12 2021-11-30 重庆市市政设计研究院有限公司 Dynamic sensing algorithm and device for cross-section traffic volume of RFID-DAS
CN114018277A (en) * 2021-11-09 2022-02-08 车主邦(北京)科技有限公司 Travel route determination method, travel route determination device, travel route determination equipment and storage medium
CN114137973A (en) * 2021-11-26 2022-03-04 湖北亿纬动力有限公司 A method, device, device and storage medium for path planning
CN114237265A (en) * 2022-02-25 2022-03-25 深圳市城市交通规划设计研究中心股份有限公司 Planning method, system, computer and storage medium for optimal daily routing inspection route
CN114253265A (en) * 2021-12-17 2022-03-29 成都朴为科技有限公司 On-time arrival probability maximum path planning algorithm and system based on fourth-order moment
CN114413923A (en) * 2022-01-25 2022-04-29 中国第一汽车股份有限公司 Driving route recommendation method, device, storage medium and system
CN115409256A (en) * 2022-08-24 2022-11-29 吉林化工学院 Route recommendation method for congestion area avoidance based on travel time prediction

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150211867A1 (en) * 2012-10-09 2015-07-30 Bayerische Motoren Werke Aktiengesellschaft Estimating a Street Type Using Sensor-Based Surroundings Data
CN106052701A (en) * 2016-05-23 2016-10-26 山东大学 Vehicle route selection method under traffic overflow state
CN106197424A (en) * 2016-06-28 2016-12-07 哈尔滨工业大学 The unmanned plane during flying state identification method that telemetry drives

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150211867A1 (en) * 2012-10-09 2015-07-30 Bayerische Motoren Werke Aktiengesellschaft Estimating a Street Type Using Sensor-Based Surroundings Data
CN106052701A (en) * 2016-05-23 2016-10-26 山东大学 Vehicle route selection method under traffic overflow state
CN106197424A (en) * 2016-06-28 2016-12-07 哈尔滨工业大学 The unmanned plane during flying state identification method that telemetry drives

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐文星 等: ""基于交通服务水平的危化品运输实时路径规划"", 《化工学报》 *
杜明博: ""基于人类驾驶行为的无人驾驶车辆行为决策与运动规划方法研究"", 《中国博士学位论文全文数据库 工程科技Ⅱ辑》 *

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109840685A (en) * 2018-12-24 2019-06-04 上海成生科技有限公司 A kind of method and apparatus of refuse collection
CN109682375A (en) * 2019-01-21 2019-04-26 重庆邮电大学 A kind of UWB supplementary inertial localization method based on fault-tolerant decision tree
CN109708656A (en) * 2019-01-24 2019-05-03 爱驰汽车有限公司 Route planning method, system, equipment and storage medium based on real-time road
CN109740974A (en) * 2019-03-08 2019-05-10 电子科技大学 Matching method of electric vehicle charging and feeding in driving mode
CN109740974B (en) * 2019-03-08 2021-01-12 电子科技大学 Matching method of electric vehicle charging and feeding in driving mode
CN111798015A (en) * 2019-04-08 2020-10-20 北京嘀嘀无限科技发展有限公司 Planned route adjusting method and device, electronic equipment and storage medium
CN111798015B (en) * 2019-04-08 2024-05-07 北京嘀嘀无限科技发展有限公司 Planned route adjustment method and device, electronic equipment and storage medium
CN110466527A (en) * 2019-08-22 2019-11-19 广州小鹏汽车科技有限公司 A kind of travel control method of vehicle, system and vehicle
CN110530389A (en) * 2019-09-06 2019-12-03 禾多科技(北京)有限公司 Crossing mode identification method and identifying system based on high-precision map of navigation electronic
CN110836675A (en) * 2019-10-25 2020-02-25 北京航空航天大学 Decision tree-based automatic driving search decision method
CN113298443A (en) * 2019-11-14 2021-08-24 广东科学技术职业学院 Route planning method
CN111947676B (en) * 2020-08-11 2021-04-30 上海寻梦信息技术有限公司 Express delivery path planning method and device, electronic equipment and storage medium
CN111947676A (en) * 2020-08-11 2020-11-17 上海寻梦信息技术有限公司 Express delivery path planning method and device, electronic equipment and storage medium
CN112347216B (en) * 2020-11-06 2023-10-31 思创数码科技股份有限公司 Initial line searching method based on dynamic road network
CN112347216A (en) * 2020-11-06 2021-02-09 思创数码科技股份有限公司 Initial route searching method based on dynamic road network
CN113295177A (en) * 2021-04-30 2021-08-24 长安大学 Dynamic path planning method and system based on real-time road condition information
CN113724486A (en) * 2021-07-12 2021-11-30 重庆市市政设计研究院有限公司 Dynamic sensing algorithm and device for cross-section traffic volume of RFID-DAS
CN113701771A (en) * 2021-07-29 2021-11-26 东风悦享科技有限公司 Parking path planning method and device, electronic equipment and storage medium
CN113701771B (en) * 2021-07-29 2023-08-01 东风悦享科技有限公司 Parking path planning method and device, electronic equipment and storage medium
CN114018277A (en) * 2021-11-09 2022-02-08 车主邦(北京)科技有限公司 Travel route determination method, travel route determination device, travel route determination equipment and storage medium
CN114137973A (en) * 2021-11-26 2022-03-04 湖北亿纬动力有限公司 A method, device, device and storage medium for path planning
CN114137973B (en) * 2021-11-26 2024-05-07 湖北亿纬动力有限公司 Path planning method, device, equipment and storage medium
CN114253265A (en) * 2021-12-17 2022-03-29 成都朴为科技有限公司 On-time arrival probability maximum path planning algorithm and system based on fourth-order moment
CN114253265B (en) * 2021-12-17 2023-10-20 成都朴为科技有限公司 On-time arrival probability maximum path planning algorithm and system based on fourth-order moment
CN114413923A (en) * 2022-01-25 2022-04-29 中国第一汽车股份有限公司 Driving route recommendation method, device, storage medium and system
CN114413923B (en) * 2022-01-25 2024-03-15 中国第一汽车股份有限公司 Driving route recommendation method, device, storage medium and system
CN114237265A (en) * 2022-02-25 2022-03-25 深圳市城市交通规划设计研究中心股份有限公司 Planning method, system, computer and storage medium for optimal daily routing inspection route
CN114237265B (en) * 2022-02-25 2022-07-12 深圳市城市交通规划设计研究中心股份有限公司 Optimal routine inspection route planning method, system, computer and storage medium
CN115409256A (en) * 2022-08-24 2022-11-29 吉林化工学院 Route recommendation method for congestion area avoidance based on travel time prediction

Similar Documents

Publication Publication Date Title
CN108562301A (en) A kind of method and device for planning of driving path
CN108932331B (en) Map data updating method, device and system
CN107750375B (en) Determining pickup and destination locations for autonomous vehicles
CN109556621B (en) Route planning method and related equipment
KR101144388B1 (en) Traffic information providing system and apparatus and method thereof
CN110573837B (en) Navigation method, navigation device, storage medium and server
CN109493592B (en) Path recommendation method and device
US11162793B2 (en) Method and apparatus for autonomous navigation speed at intersections
CN108088453A (en) A kind of generation method of navigation routine, terminal and computer readable storage medium
CN106355923A (en) Smart navigation system and method based on real-time traffic information in internet-of-vehicles environment
CN108332764A (en) A kind of route recommendation method and mobile terminal
CN109726871A (en) Net about truck position recommended method, device, mobile terminal and storage medium
CN113923775B (en) Method, device, equipment and storage medium for evaluating quality of positioning information
US20220180214A1 (en) Method, apparatus, and system for providing semantic categorization of an arbitrarily granular location
CN112414420A (en) Navigation method based on traffic flow and related device
US20230406325A1 (en) Apparatus and methods for predicting events in which drivers render aggressive behaviors while maneuvering vehicles
CN110490393B (en) Taxi passenger-searching route planning method, system and medium combining experience and direction
CN112256006B (en) Data processing method and device and electronic equipment
CN108986528A (en) A kind of traveling guidance method, information indicating method, terminal device and server
CN107677277A (en) A kind of determining method of path based on dijkstra&#39;s algorithm
KR20130011351A (en) System for driving car using smart information, terminal, service apparatus and method thereof
CN115169711A (en) Route planning method and related device
CN107895502A (en) A kind of smart city intelligent transportation guides system
US11346683B2 (en) Method and apparatus for providing argumentative navigation routing
CN111275300A (en) Road network data processing method, device, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180921