Route planning method, device, storage medium and electronic device
By acquiring historical driving data and constructing multiple evaluation indicators in autonomous driving technology, multiple candidate routes are generated, which solves the problem of a single route planning strategy in the existing technology and improves the diversity of autonomous vehicle routes and the improvement of demand satisfaction. .
Patent Information
- Application Number
- CN202210041017.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-14
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-01-14
AI Technical Summary
The route planning strategy in existing autonomous driving technology is relatively single and cannot meet the various needs of autonomous vehicles during driving, especially special needs such as minimizing the number of sudden stops.
By obtaining pre-built road networks and historical driving data, multiple evaluation indicators are determined and multiple candidate routes are generated based on these indicators, thereby improving the diversity of routes and enabling autonomous vehicles to choose appropriate routes according to different needs.
The diversity of route planning in autonomous driving technology has been improved, allowing autonomous vehicles to meet a variety of driving needs and provide more instructive route selection.
Smart Images

Figure CN114485706B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a route planning method, device, storage medium and electronic device. Background Art
[0002] In the field of autonomous driving, before an autonomous driving device (hereinafter referred to as an unmanned vehicle) drives, a driving route is usually planned for the unmanned vehicle so that the unmanned vehicle can drive along the driving route.
[0003] After knowing the starting point and the end point of the unmanned vehicle, a route from the starting point to the end point can be planned for the unmanned vehicle. In the prior art, a route with the shortest driving length from the starting point to the end point is usually planned for the unmanned vehicle.
[0004] Depending on the accuracy of the map used when planning the route, Figure 1A The two-dimensional map of the topological structure shown in FIG. 1 generates a route for navigation based on the Figure 1B When the high-precision map shown in the figure is used for route planning, since the lanes on each road are also planned in the high-precision map, a sequence of lanes can also be generated as the planned route, see Figure 1B , L3, L6, L7, and L11 routes can be generated for the unmanned vehicle to instruct the unmanned vehicle to drive toward the right front.
[0005] However, the driving routes planned by any of the above methods are only generated based on the starting point location, the end point location and traffic information. In this case, the route can only be generated based on the strategy of the shortest route length. The generated route is relatively simple. When the unmanned vehicle has other driving needs (such as the least number of emergency brakes), the driving route generated by this single strategy cannot meet the driving needs of the unmanned vehicle. Summary of the invention
[0006] This specification provides a route planning method, device, storage medium and electronic device to partially solve the above-mentioned problems existing in the prior art.
[0007] This manual adopts the following technical solutions:
[0008] This specification provides a route planning method, including:
[0009] Acquire a pre-built road network, wherein the road network includes location nodes and edges for indicating connectivity between the location nodes;
[0010] Acquire historical driving data, and determine a number of evaluation indicators of the driving data according to the historical driving data, and for each evaluation indicator, determine the cost weight of each edge in the road network under the evaluation indicator based on the connectivity relationship between each position node in the road network, and obtain a directed graph corresponding to the road network under the evaluation indicator as the directed graph corresponding to the evaluation indicator;
[0011] According to the starting node and the end node pre-specified in the road network, for each directed graph, with the goal of minimizing the cost weights of the directed edges connected by the node sequence, a node sequence from the starting node to the end node is determined as a candidate route determined under the evaluation index corresponding to the directed graph, wherein at least one candidate route among the candidate routes is a target route provided to the user.
[0012] Optionally, the starting point node and the ending point node pre-specified in the road network specifically include:
[0013] In response to the target task received from the user, the node where the starting point of the target task is located is used as the starting point node, and the node where the ending point of the target task is located is used as the ending point node.
[0014] Optionally, after determining a node sequence from the starting node to the end node as a candidate route determined under the evaluation index corresponding to the directed graph, the method further includes:
[0015] In response to the target task received from the user, determining a start point and an end point of the target task;
[0016] If the starting point of the target task is located at the starting point node, and the end point of the target task is located at the end point node, a target route is selected from the candidate routes under the determined evaluation indicators.
[0017] Optionally, when the driving object is an automatic driving device, the historical driving data includes the number of times the driving object is taken over from the automatic driving state;
[0018] The at least one determined evaluation index includes: the number of times the driving object is taken over from the automatic driving state when driving along the determined candidate route.
[0019] Optionally, determining a node sequence from the starting node to the end node with the goal of minimizing the cost weight of each directed edge connected by the determined node sequence specifically includes:
[0020] Taking the starting node as the current node, and determining the passable nodes when the target device is located at the current node according to the connectivity relationship between the position nodes in the road network;
[0021] For each traversable node, according to the cost weights of the directed edges in the road network, the cost weights of the directed edges connected from the starting node to the end node when passing through the traversable node are determined as the traversable cost weight of the traversable node;
[0022] According to the determined travel cost weights of each passable node, a target node with the smallest travel cost weight is selected from each passable node, and the target node is updated as the current node;
[0023] According to the updated current node, the target node is continued to be determined until the traversable nodes of the determined target node include the end node. The order in which each target node is determined as the target node is used as the order of each target node in the node sequence to obtain a node sequence including each target node from the starting node to the end node.
[0024] Optionally, according to the cost weights of the directed edges in the road network, determining the cost weights of the directed edges connected from the starting node to the end node when passing through the passable node as the passable cost weight of the passable node, specifically including:
[0025] Determine each directed edge from the starting node to the traversable node connected by the node sequence passing through each selected target node, and determine a first cost weight of the traversable node according to the cost weights of each connected directed edge;
[0026] The pass cost weight of the passable node is determined according to the determined first cost weight of the passable node.
[0027] Optionally, according to the cost weights of the directed edges in the road network, determining the cost weights of the directed edges connected from the starting node to the end node when passing through the passable node as the passable cost weight of the passable node, specifically including:
[0028] Obtaining predetermined standard cost weights;
[0029] According to the position of the passable node and the position of the terminal node, determining the pass length between the passable node and the terminal node as the pass length of the passable node;
[0030] Determine the product of the pass length and the standard cost weight and use it as the second cost weight of the passable node;
[0031] The pass cost weight of the passable node is determined according to the determined second cost weight of the passable node.
[0032] Optionally, determining the travel length between the traversable node and the terminal node specifically includes:
[0033] Based on a pre-specified path-finding algorithm, a predicted path from the traversable node to the terminal node is predicted, and the path length of the predicted path is used as the travel length between the traversable node and the terminal node.
[0034] Optionally, standard cost weights are predetermined, specifically including:
[0035] Determine each designated area divided in advance, and the standard cost weight of passing through each designated area under the evaluation index determined based on historical driving data;
[0036] Determining the product of the travel length of the passable node and the standard cost weight as the second cost weight of the passable node specifically includes:
[0037] Determining each designated area passed by the predicted path;
[0038] For each designated area that the predicted path passes through, the product of the path length of the predicted path in the designated area and the standard cost weight of the designated area is used as the second cost weight of the traversable node in the designated area;
[0039] The sum of the second cost weights of the traversable node in each designated area is used as the second cost weight of the traversable node.
[0040] Optionally, after determining a node sequence from the starting node to the end node as a candidate route determined under the evaluation index corresponding to the directed graph, the method further includes:
[0041] Mapping the topological graphs of the candidate routes under each determined evaluation index in a two-dimensional map, and displaying the topological graphs of each candidate route to a user in the two-dimensional map;
[0042] In response to receiving a candidate route input by the user, the candidate route is selected as a target route.
[0043] Optionally, obtain a pre-built road network, including:
[0044] Acquire a pre-constructed road network, wherein for each location node in the road network, the location node is an intersection or a road section in a target area, wherein the location node includes a plurality of lanes located at the location node determined in a high-precision map;
[0045] The method further comprises:
[0046] Selecting a target route from the candidate routes under each determined evaluation index, and based on each position node in the target route, selecting a corresponding target lane from each lane included in the position node;
[0047] Arrange the target lanes in the target route in the order of the position nodes where the target lanes are located, obtain a lane sequence as a target route, and send the route to the target device.
[0048] This specification provides a route planning device, including:
[0049] A data acquisition module, used to acquire a pre-built road network, wherein the road network includes location nodes and edges used to represent connectivity between location nodes;
[0050] A directed graph construction module is used to obtain historical driving data, and determine a number of evaluation indicators of the driving data according to the historical driving data, and for each evaluation indicator, based on the connectivity relationship between the position nodes in the road network, determine the cost weight of each edge in the road network under the evaluation indicator, and obtain the directed graph corresponding to the road network under the evaluation indicator as the directed graph corresponding to the evaluation indicator;
[0051] The route planning module is used to determine, according to the starting node and the end node specified in the road network, for each directed graph, a node sequence from the starting node to the end node with the goal of minimizing the cost weight of each directed edge connected by the node sequence, as a candidate route determined under the evaluation index corresponding to the directed graph, wherein at least one candidate route among the candidate routes is a target route provided to the user.
[0052] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned route planning method is implemented.
[0053] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above-mentioned route planning method is implemented when the processor executes the program.
[0054] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0055] In the route planning method provided in this specification, several evaluation indicators of driving data are determined based on historical driving data, and based on the connectivity relationship between each location node in the road network, for each evaluation indicator, the cost weight of each directed edge in the road network is determined to obtain a directed graph under the evaluation indicator, and based on the directed graph, candidate routes determined under each evaluation indicator are obtained, that is, candidate routes under multiple evaluation strategies are obtained, which improves the diversity of candidate routes and enables users to select a target route from a variety of candidate routes. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0057] Figure 1A A schematic diagram of a map in this manual;
[0058] Figure 1B A schematic diagram of another type of map in this manual;
[0059] Figure 2 A schematic diagram of a route planning method in this specification;
[0060] Figure 3 A schematic diagram of another map in this manual;
[0061] Figure 4 A schematic diagram of a map planning device provided in this specification;
[0062] Figure 5 This is a schematic diagram of the structure of the electronic device provided in this manual. DETAILED DESCRIPTION
[0063] In fact, in addition to the above-mentioned strategy of generating driving routes based only on the shortest route, in the prior art, it is also possible to estimate the driving time of the unmanned vehicle on each route based on the real-time road conditions when the driving route is generated, and generate the route with the shortest estimated driving time by avoiding traffic jams, etc.
[0064] However, when it is impossible to obtain a priori historical driving data, only the above two routes can be generated based on the above traffic data (such as pre-mapped traffic maps, real-time traffic conditions, etc.) under two evaluation indicators (i.e., shortest route length and shortest estimated driving time), and the driving time of the unmanned vehicle in the route with the shortest estimated driving time is only obtained based on predictions and is not a priori.
[0065] In order to solve the problem that the strategy for generating a route is relatively single and generate a route with more guiding significance, this embodiment of the description provides a route planning method.
[0066] In the embodiments of this specification, the evaluation index of route quality constructed solely based on traffic data is abandoned, and the historical driving data of the driving object is introduced. In this case, the historical driving data is the test data of the driving object on the road, that is, a priori data. In addition, several evaluation indicators are determined based on the historical driving data, and multiple candidate paths are generated based on each evaluation indicator to improve the diversity of the generated paths, so as to meet various driving needs of unmanned vehicles.
[0067] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0068] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0069] Figure 2 The following is a flow chart of a route planning method in this specification, which specifically includes the following steps:
[0070] S200: Acquire a pre-constructed road network, wherein the road network includes location nodes and edges for representing connectivity relationships between location nodes.
[0071] In the embodiments of the present specification, a road network is pre-constructed that uses a topological structure to represent road relationships, wherein the road may include an intersection and a road section divided by two intersections.
[0072] like Figure 1A As shown, the road network includes location nodes and edges for representing the connectivity relationship between the location nodes.
[0073] Among them, a pre-set division method is adopted, and a position node (hereinafter referred to as a node) can indicate a certain position on a real road. In the embodiment of this specification, the following exemplary methods of using a topological structure to represent the road relationship are provided:
[0074] The first method is to use the intersections in the road as nodes in the road network, and the road sections between the two intersections as the edges of the two intersections, such as Figure 1A As shown, Figure 1ANode A and node B in the road network can be two intersections in the real road respectively, and then the section R2 between node A and node B is the edge between node A and node B in the road network.
[0075] The second method is to use the intersections and sections of the road as nodes in the road network, and the edges represent the connectivity between the nodes connected by the edges. Figure 1A When the real road shown is represented by this method, the topological structure represented is as follows Figure 3 As shown, Node A, Node C, Node E, and Node F are road sections, Node B and Node D are intersections, and L1-L5 are edges between the nodes. At this time, the edges in the road network do not correspond to any real positions in the real road, but only represent the connectivity between the nodes.
[0076] For the convenience of description, the second method of determining the road network is used as an example in the following embodiments of this specification. Of course, in the embodiments of this specification, when the acquired road network is constructed by any of the above methods, the connectivity relationship between the nodes in the road network can be a unidirectional connectivity relationship, and the edges in the road network can be directed edges.
[0077] Specifically, for a pair of nodes, when the first node has a connectivity relationship with the second node, it can mean that when the target device is located at the first node, it can travel to the second node, but the connectivity relationship between the first node and the second node does not mean that the second node also has a connectivity relationship with the first node. If the target device is located at the second node and cannot travel to the first node, then the second node does not have a connectivity relationship with the first node. In other words, the connectivity relationship can be unidirectional.
[0078] In this case, in the road network constructed by any method, the edge used to indicate the connectivity relationship between nodes can be a directed edge, and the direction of the edge indicates the direction of the connectivity relationship between the nodes. Figure 3 For example, the connectivity between nodes A and B is a unidirectional connectivity, and the direction of edge L1 between nodes A and B is from node A to node B. Correspondingly, in the high-precision map, it is passable along L7 to L11, but it is not passable along L11 to L7.
[0079] S202: Acquire historical driving data, and determine several evaluation indicators of the driving data based on the historical driving data. For each evaluation indicator, determine the cost weight of each edge in the road network under the evaluation indicator based on the connectivity relationship between the nodes at each location in the road network, and obtain a directed graph corresponding to the road network under the evaluation indicator as the directed graph corresponding to the evaluation indicator.
[0080] As described above, in order to solve the problem that the strategy for generating routes is relatively single, in the embodiment of this specification, several evaluation indicators are constructed to generate candidate routes under each evaluation indicator.
[0081] In an embodiment of this specification, several evaluation indicators of driving data can be determined based on historical driving data. Specifically, the driving data of the driving object can be collected in advance to obtain the historical driving data of the driving object in history. The historical driving data can be collected by the collection equipment carried by the driving object. In an embodiment of this specification, for each node (taking the node including the road section and the route as an example), the historical driving data can include the actual length of the node. When the driving object is an unmanned vehicle, the historical driving data can also include the mileage and time that the driving object has traveled at the node in the automatic driving mode, as well as the average driving speed, emergency braking number, failure number, accident number, etc. at the node. Of course, it can also include the number of times the control is taken over from the automatic driving state at the node, etc. This specification does not elaborate on this.
[0082] Then, several evaluation indicators of driving data can be determined based on the historical driving data. In an embodiment of this specification, a field in the historical driving data can be used as an evaluation indicator of driving data. Furthermore, in an embodiment of this specification, at least one evaluation indicator determined includes: the number of times the driving object is taken over from the automatic driving state when driving along the determined candidate route.
[0083] In the embodiments of this specification, for each evaluation indicator, the cost weight of each edge in the road network under the evaluation indicator can be determined based on the above-mentioned road network, and the directed graph corresponding to the road network under the evaluation indicator can be obtained as the directed graph corresponding to the evaluation indicator.
[0084] Taking the above-mentioned historical data as an example, it may include first-category driving data and second-category driving data.
[0085] Taking the above-mentioned connectivity relationship from the first node to the second node as an example, the first type of driving data may include the mileage, time, and average driving speed traveled by the driving object in the automatic driving mode. When the driving object travels from the first node to the second node in the automatic driving mode, the larger the values of the mileage, time, and average driving speed traveled, the smaller the cost weight of the directed edge from the first node to the second node in the road network can be under the evaluation index of the above-mentioned first type of driving data.
[0086] This is because when the mileage and time are large, it tends to be believed that the driving object has historically chosen the road from the first node to the second node more often, and the larger the average driving speed, the more it is believed that the driving object has historically traveled smoothly along the road from the first node to the second node. Therefore, the larger the above value, the higher the evaluation value under the first type of evaluation index, and the smaller the cost weight of the directed edge from the first node to the second node in the road network can be.
[0087] The second category of driving data may include the number of emergency brakes, breakdowns, accidents and the number of times the driving object is taken over from the automatic driving state when driving in the automatic driving mode. When the driving object is driving from the first node to the second node in the automatic driving mode, the more emergency brakes, breakdowns, accidents and the number of times the driving object is taken over from the automatic driving state in the automatic driving mode at the node, the greater the cost weight of the directed edge connected to the node in the road network can be under the evaluation index of the above second category of driving data.
[0088] It can be seen that under the above-mentioned second type of driving data, the larger the value of the historical driving data, the more difficult it is for the driving object to travel smoothly along the road from the first node to the second node in the history. Therefore, the larger the above-mentioned value, the lower the evaluation value under the second type of evaluation index, and the greater the cost weight of the directed edge from the first node to the second node in the road network can be.
[0089] Of course, several types of driving data can also be used as evaluation indicators for evaluation criteria, and this specification does not limit this. When the determined evaluation indicators use other evaluation criteria, the method of determining the cost weight is also different, but the smaller the cost weight, the higher the evaluation value under the evaluation indicator.
[0090] Through the above method, the cost weight of each edge in the road network is determined, and the directed graph corresponding to the road network under the evaluation index is obtained as the directed graph corresponding to the evaluation index.
[0091] S204: Based on the starting node and the end node specified in the road network, for each directed graph, with the goal of minimizing the cost weight of each directed edge connected by the node sequence, determine a node sequence from the starting node to the end node as a candidate route determined under the evaluation index corresponding to the directed graph.
[0092] In the embodiments of this specification, the planned route is used to guide the target device as an unmanned vehicle to travel, wherein the unmanned vehicle may include an autonomous driving vehicle and a vehicle with an assisted driving function. The unmanned vehicle may be a delivery vehicle used in the delivery field.
[0093] like Figure 2The execution subject of the flowchart of the route planning method shown can be the target device itself or a server. When the execution subject is the target device itself, the execution subject can be the automatic driving device carried by the target device. When the execution subject is a server, the embodiments of this specification do not limit the control device to a distributed server or a cluster service area.
[0094] When receiving the start and end points from the user, the following can be executed: Figure 2 In the route planning method shown, at this time, the starting node and the end node specified in the road network are based on the route planning task (hereinafter referred to as the target task) input, and the node where the starting point of the target task is located is used as the starting node, and the node where the end point of the target task is located is used as the end node. Then, after generating several candidate routes under the evaluation indicators according to the route planning method provided in this specification, one of them can be selected as the target route to instruct the target device to travel along the target route.
[0095] Of course, the route planning method provided in the embodiment of this specification can also be executed in advance, and then, in response to the target task received from the user input, the starting point and the end point of the target task are determined; if the starting point of the target task is located at the starting node, and the end point of the target task is located at the end node, then the target route is selected from the candidate routes under the determined evaluation indicators.
[0096] In one embodiment of the present specification, when the target device is used to perform a delivery task, the starting point of the target task is the delivery site, and the end point of the target task is the receiving point. In this case, since the delivery site usually only covers delivery services within a certain range, each receiving point that provides delivery services for the delivery site in advance can use the route planning method provided in this specification to plan several candidate routes as candidate routes corresponding to the receiving point. When generating the target task, one can be selected as the target route from the candidate routes corresponding to the receiving point based on the receiving point included in the target task.
[0097] After generating a directed graph under each evaluation index by any of the above methods, for each directed graph, with the goal of minimizing the cost weight of each directed edge connected by the node sequence, a node sequence from the starting node to the end node is determined as a candidate route determined under the evaluation index corresponding to the directed graph.
[0098] Next, in an embodiment of the present specification, a method for selecting a target route from candidate routes is provided. Specifically, the topological map of the candidate routes under each determined evaluation index can be mapped in a two-dimensional map, and the topological map of each candidate route can be displayed to the user in the two-dimensional map, and then, in response to the candidate route received from the user input, the candidate route is selected as the target route.
[0099] Based on the above Figure 2 The method determines several evaluation indicators of driving data based on historical driving data, and based on the connectivity between each location node in the road network, determines the cost weight of each directed edge in the road network for each evaluation indicator, obtains a directed graph under the evaluation indicator, and obtains candidate routes determined under each evaluation indicator based on the directed graph, that is, obtains candidate routes under multiple evaluation strategies, thereby improving the diversity of candidate routes.
[0100] In the following, for each directed graph corresponding to an evaluation indicator, an embodiment of the present specification provides a method for determining candidate routes under the evaluation indicator based on the directed graph.
[0101] Specifically, the starting point node can be used as the current node, and the various passable nodes when the target device is located at the current node can be determined according to the connectivity relationship between the various location nodes in the road network. Then, for each passable node, the cost weights of the directed edges connected from the starting point node to the terminal node when passing through the passable node (i.e., the sum of the cost weights of the directed edges connected from the starting point node to the terminal node) can be determined according to the cost weights of the directed edges in the road network, as the passable cost weight of the passable node. Then, according to the determined passable cost weights of the various passable nodes, the target node with the smallest passable cost weight is selected from the various passable nodes, and the target node is updated as the current node. According to the updated current node, the target node is continuously determined until the passable nodes of the determined target node include the terminal node, and the order in which the target nodes are determined as the target nodes is used as the order of the target nodes in the node sequence, and a node sequence containing the target nodes from the starting point node to the terminal node is obtained.
[0102] Of course, it is also possible to continue to determine the next target node when the traversable nodes of the determined target node include the end node, until the end node is determined as the target node, and use the order in which each target node is determined as the target node as the order of each target node in the node sequence, to obtain a node sequence containing each target node from the starting node to the end node, at which time the end node is the last target node in the sequence.
[0103] In the above manner, for each traversable node, the cost weight of the traversable node may be determined according to the first cost weight and / or the second cost weight of the traversable node.
[0104] Among them, the first cost weight can be determined by determining each directed edge from the starting node to the traversable node connected by the node sequence passing through the selected target nodes, and determining the first cost weight of the traversable node based on the cost weights of each connected directed edge.
[0105] The following embodiments of the present specification also provide a method for determining a second cost weight. In order to save computing resources, each path from the traversable node to the terminal node may not be traversed, and the sum of the cost weights along each path from the traversable node to the terminal node is calculated.
[0106] Specifically, a predetermined standard cost weight may be obtained, and then, based on the position of the passable node and the position of the terminal node, the travel length between the passable node and the terminal node is determined as the travel length of the passable node. Next, the product of the travel length and the standard cost weight is determined and used as the second cost weight of the passable node. Exemplarily, the travel length between the passable node and the terminal node may be the length determined by a distance measurement method such as the Manhattan distance, the Euclidean distance, etc. between the passable node and the terminal node.
[0107] Among them, the travel length of the traversable node can be determined according to the following method. Specifically, based on a pre-specified path-finding algorithm, a predicted path from the traversable node to the terminal node is predicted, and the path length of the predicted path is used as the travel length between the traversable node and the terminal node.
[0108] This specification illustrates a method for predetermining standard cost weights. Specifically, each designated area is pre-divided, and the standard cost weight of passing through each designated area under the evaluation index is determined based on historical driving data.
[0109] Then, based on the designated areas passed by the predicted path of the traversable node, for each designated area passed by the predicted path, the product of the path length of the predicted path in the designated area and the standard cost weight of the designated area can be used as the second cost weight of the traversable node in the designated area, and the sum of the second cost weights of the traversable node in each designated area can be used as the second cost weight of the traversable node.
[0110] In one embodiment of the present specification, for each node in the road network, the node is an intersection or road section in the target area, wherein the node includes a number of lanes located on the node determined in the high-precision map, such as Figure 1A , 1B As shown, Figure 1A The road segment R2 in Figure 1B Lanes L4-L7.
[0111] Therefore, after the target route is determined by any of the above methods, the target route can also be selected from the candidate routes under the determined evaluation indicators, and based on each node in the target route, the corresponding target lane is selected from the lanes contained in the node, and the target lanes are arranged in the order of the nodes where the target lanes are located in the target route to obtain a lane sequence as the target route, and the route is sent to the target device so that the target device travels along the target route according to the route.
[0112] In this case, the target route can be used as a template for planning a route for the target device. For different target devices and different environments, a corresponding route can be planned for the target device based on the determined target route to guide the target device to travel.
[0113] The above is a route planning method provided by one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding route planning device, such as Figure 4 shown.
[0114] Figure 4 A schematic diagram of a route planning device provided in this specification, the device comprising:
[0115] The data acquisition module 400 is used to acquire a pre-built road network, wherein the road network includes location nodes and edges for indicating connectivity between the location nodes;
[0116] A directed graph construction module 402 is used to obtain historical driving data, and determine a number of evaluation indicators of the driving data according to the historical driving data, and for each evaluation indicator, based on the connectivity relationship between each position node in the road network, determine the cost weight of each edge in the road network under the evaluation indicator, and obtain a directed graph corresponding to the road network under the evaluation indicator as the directed graph corresponding to the evaluation indicator;
[0117] The route planning module 404 is used to determine, based on the starting node and the end node specified in the road network, for each directed graph, a node sequence from the starting node to the end node with the goal of minimizing the cost weight of each directed edge connected by the node sequence, as a candidate route determined under the evaluation index corresponding to the directed graph, wherein at least one candidate route among the candidate routes is a target route provided to the user.
[0118] Optionally, the route planning module 404 is specifically configured to, in response to a target task received from a user, use a node where the starting point of the target task is located as a starting point node, and use a node where the end point of the target task is located as an end point node.
[0119] Optionally, the route planning module 404 is also used to determine the starting point and end point of the target task in response to the target task received from the user input; if the starting point of the target task is located at the starting node and the end point of the target task is located at the end node, then the target route is selected from the candidate routes under the determined evaluation indicators.
[0120] Optionally, when the driving object is an autonomous driving device, the historical driving data includes the number of times the driving object is taken over from the autonomous driving state; the at least one evaluation indicator determined includes: the number of times the driving object is taken over from the autonomous driving state when driving along the determined candidate route.
[0121] Optionally, the route planning module 404 is specifically used to take the starting point node as the current node, and determine the various traversable nodes when the target device is located at the current node according to the connectivity relationship between the various location nodes in the road network; for each traversable node, determine the cost weights of the directed edges connected from the starting point node to the end point when passing through the traversable node according to the cost weights of the directed edges in the road network, as the traversable cost weight of the traversable node; according to the determined traversable cost weights of each traversable node, select the target node with the smallest traversable cost weight from each traversable node, and update the target node as the current node; according to the updated current node, continue to determine the target node until the traversable nodes of the determined target node include the end point node, and use the order in which the target nodes are determined as the target nodes as the order of the target nodes in the node sequence to obtain a node sequence from the starting point node to the end point containing the target nodes.
[0122] Optionally, the route planning module 404 is specifically used to determine the directed edges from the starting node to the traversable node connected by the node sequence passing through the selected target nodes, and determine the first cost weight of the traversable node based on the cost weights of the connected directed edges; and determine the travel cost weight of the traversable node based on the determined first cost weight of the traversable node.
[0123] Optionally, the route planning module 404 is specifically used to obtain a predetermined standard cost weight; determine the travel length between the traversable node and the terminal node according to the position of the traversable node and the position of the terminal node, as the travel length of the traversable node; determine the product of the travel length and the standard cost weight, and use it as the second cost weight of the traversable node; determine the travel cost weight of the traversable node according to the determined second cost weight of the traversable node.
[0124] Optionally, the route planning module 404 is specifically used to predict a predicted path from the traversable node to the terminal node based on a pre-specified path-finding algorithm, and use the path length of the predicted path as the travel length between the traversable node and the terminal node.
[0125] Optionally, the route planning module 404 is also used to determine the pre-divided designated areas and the standard cost weight of passing through each designated area under the evaluation index determined based on historical driving data; the route planning module 404 is specifically used to determine the designated areas passed by the predicted path; for each designated area passed by the predicted path, the product of the path length of the predicted path in the designated area and the standard cost weight of the designated area is used as the second cost weight of the traversable node in the designated area; the sum of the second cost weights of the traversable node in each designated area is used as the second cost weight of the traversable node.
[0126] Optionally, the route planning module 404 is also used to map the topological map of the candidate routes under each determined evaluation indicator in a two-dimensional map, and display the topological map of each candidate route to the user in the two-dimensional map; in response to the candidate route received from the user input, select the candidate route as the target route.
[0127] Optionally, the data acquisition module 400 is specifically used to obtain a pre-constructed road network, wherein, for each position node in the road network, the position node is an intersection or a road section in the target area, wherein the position node contains a number of lanes located at the position node determined in the high-precision map; the route planning module 404 is also used to select a target route from the candidate routes under each determined evaluation index, and based on each position node in the target route, select a corresponding target lane from each lane contained in the position node; arrange each target lane in the order of the position nodes where each target lane is located in the target route, obtain a lane sequence as a target route, and send the route to the target device.
[0128] This specification also provides a computer-readable storage medium, which stores a computer program, and the computer program can be used to execute the above route planning method.
[0129] This manual also provides Figure 5 The structural diagram of the electronic device shown in FIG. Figure 5 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the above route planning method.
[0130] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0131] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0132] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0133] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0134] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0135] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0136] The present invention is described with reference to the flowchart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0137] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0138] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0139] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0140] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0141] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0142] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0143] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0144] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0145] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0146] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A route planning method, characterized in that: include: Acquire a pre-built road network, wherein the road network includes location nodes and edges for indicating connectivity between the location nodes; Acquire historical driving data, and determine a number of evaluation indicators of the driving data according to the historical driving data, and for each evaluation indicator, determine the cost weight of each edge in the road network under the evaluation indicator based on the connectivity relationship between each position node in the road network, and obtain a directed graph corresponding to the road network under the evaluation indicator as the directed graph corresponding to the evaluation indicator; According to the start node and the end node specified in the road network, for each directed graph, with the goal of minimizing the cost weight of each directed edge connected by the node sequence, determine a node sequence from the start node to the end node as a candidate route determined under the evaluation index corresponding to the directed graph, wherein at least one candidate route among the candidate routes is a target route provided to the user; Wherein, when the driving object is an automatic driving device, the historical driving data includes the number of times the driving object is taken over from the automatic driving state; The at least one determined evaluation index includes: the number of times the driving object is taken over from the automatic driving state when driving along the determined candidate route.
2. The method according to claim 1, characterized in that The starting point node and the end point node specified in the road network specifically include: In response to the target task received from the user, the node where the starting point of the target task is located is used as the starting point node, and the node where the ending point of the target task is located is used as the ending point node.
3. The method according to claim 1, characterized in that After determining a node sequence from the starting node to the end node as a candidate route determined under the evaluation index corresponding to the directed graph, the method further includes: In response to the target task received from the user, determining a start point and an end point of the target task; If the starting point of the target task is located at the starting point node, and the end point of the target task is located at the end point node, a target route is selected from the candidate routes under the determined evaluation indicators.
4. The method according to claim 1, characterized in that With the goal of minimizing the cost weight of each directed edge connected by the node sequence, determining a node sequence from the starting node to the end node, specifically including: Taking the starting node as the current node, and determining the passable nodes when the target device is located at the current node according to the connectivity relationship between the position nodes in the road network; For each traversable node, according to the cost weights of the directed edges in the road network, the cost weights of the directed edges connected from the starting node to the end node when passing through the traversable node are determined as the traversable cost weight of the traversable node; According to the determined travel cost weights of each passable node, a target node with the smallest travel cost weight is selected from each passable node, and the target node is updated as the current node; According to the updated current node, the target node is continued to be determined until the traversable nodes of the determined target node include the end node. The order in which each target node is determined as the target node is used as the order of each target node in the node sequence to obtain a node sequence including each target node from the starting node to the end node.
5. The method according to claim 4, characterized in that According to the cost weights of the directed edges in the road network, the cost weights of the directed edges connected from the starting node to the end node when passing through the passable node are determined as the passable cost weight of the passable node, specifically including: Determine each directed edge from the starting node to the traversable node connected by the node sequence passing through each selected target node, and determine a first cost weight of the traversable node according to the cost weights of each connected directed edge; The pass cost weight of the passable node is determined according to the determined first cost weight of the passable node.
6. The method according to claim 4, characterized in that According to the cost weights of the directed edges in the road network, the cost weights of the directed edges connected from the starting node to the end node when passing through the passable node are determined as the passable cost weight of the passable node, specifically including: Obtaining predetermined standard cost weights; According to the position of the passable node and the position of the terminal node, determining the pass length between the passable node and the terminal node as the pass length of the passable node; Determine the product of the pass length and the standard cost weight and use it as the second cost weight of the passable node; The pass cost weight of the passable node is determined according to the determined second cost weight of the passable node.
7. The method according to claim 6, characterized in that Determining the travel length between the traversable node and the terminal node specifically includes: Based on a pre-specified path-finding algorithm, a predicted path from the traversable node to the terminal node is predicted, and the path length of the predicted path is used as the travel length between the traversable node and the terminal node.
8. The method according to claim 7, characterized in that Predetermine standard cost weights, including: Determine each designated area divided in advance, and the standard cost weight of passing through each designated area under the evaluation index determined based on historical driving data; Determining the product of the travel length of the passable node and the standard cost weight as the second cost weight of the passable node specifically includes: Determining each designated area passed by the predicted path; For each designated area that the predicted path passes through, the product of the path length of the predicted path in the designated area and the standard cost weight of the designated area is used as the second cost weight of the traversable node in the designated area; The sum of the second cost weights of the traversable node in each designated area is used as the second cost weight of the traversable node.
9. The method according to claim 1, characterized in that After determining a node sequence from the starting node to the end node as a candidate route determined under the evaluation index corresponding to the directed graph, the method further includes: Mapping the topological graphs of the candidate routes under each determined evaluation index in a two-dimensional map, and displaying the topological graphs of each candidate route to a user in the two-dimensional map; In response to receiving a candidate route input by the user, the candidate route is selected as a target route.
10. The method according to claim 1, characterized in that Get pre-built road networks, including: Acquire a pre-constructed road network, wherein for each location node in the road network, the location node is an intersection or a road section in a target area, wherein the location node includes a plurality of lanes located at the location node determined in a high-precision map; The method further comprises: Selecting a target route from the candidate routes under each determined evaluation index, and based on each position node in the target route, selecting a corresponding target lane from each lane included in the position node; Arrange the target lanes in the target route in the order of the position nodes where the target lanes are located, obtain a lane sequence as a target route, and send the route to the target device.
11. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 10 is implemented.
