Path planning method and device, electronic equipment, vehicle and storage medium
Through the path planning method, the mathematical model of traffic flow and congestion time is used to select the optimal path, which solves the problem that the existing traffic navigation method cannot meet the traffic demand, achieves the effect of reducing driving time and avoiding traffic congestion, and improves traffic efficiency. .
Patent Information
- Application Number
- CN202410507323.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-08-27
AI Technical Summary
Existing traffic navigation methods cannot meet the growing traffic demand, leading to serious traffic congestion problems, affecting travel efficiency and exacerbating environmental pollution.
A route planning method is proposed. By determining the starting point, end point and departure time, the traffic flow and congestion time of the candidate route are obtained, a mathematical model is constructed to predict the congestion time, and weights are set according to the traffic flow and congestion time, and a comprehensive score is calculated to select optimal path.
This method can select the most reasonable path within a set time period, reduce driving time, avoid traffic congestion, improve traffic efficiency, and alleviate urban traffic congestion problems.
Smart Images

Figure CN118548906A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of path planning, and in particular to a path planning method, device, electronic device, vehicle and storage medium. Background Art
[0002] With the acceleration of urbanization and population growth, urban traffic congestion has become a common problem. Traffic congestion not only affects the travel efficiency of individuals, but also has many negative impacts on the economic, environmental and social development of cities. According to statistics, urban residents around the world waste a lot of time and resources every year due to traffic congestion, and the emissions generated by traffic congestion also aggravate environmental pollution and air quality deterioration. Existing traffic navigation methods can no longer meet the growing traffic needs. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to propose a path planning method, device, electronic device, vehicle and storage medium to improve driving efficiency.
[0004] To achieve the above purpose, an embodiment of the present application provides a path planning method, which includes:
[0005] Determine the starting point, end point and departure time;
[0006] Selecting multiple candidate routes according to the starting point and the end point, and obtaining the first traffic flow of each candidate route at the departure time;
[0007] Inputting each of the first traffic flows into a mathematical model to obtain a first congestion time of each of the candidate paths; wherein the mathematical model is pre-constructed according to the second traffic flow and the second congestion time;
[0008] Setting corresponding weights for the first traffic flow and the first congestion time of each candidate path;
[0009] Calculate a comprehensive score for each of the candidate paths according to the first traffic flow and the first congestion time after setting weights;
[0010] A target path is selected from each of the candidate paths according to the comprehensive score.
[0011] In some embodiments, before obtaining the first traffic flow of each candidate path at the departure time, the method further includes:
[0012] Get the additional conditions set by the user for the driving route;
[0013] A plurality of candidate paths are selected according to the starting point, the end point and the additional conditions.
[0014] In some embodiments, the method further comprises the step of constructing the mathematical model, wherein the step of constructing the mathematical model comprises:
[0015] Acquire the second traffic flow and the second congestion time of the target road in different time periods;
[0016] Establishing a mathematical model between vehicle flow and congestion time according to the second vehicle flow and the second congestion time;
[0017] The mathematical model is:
[0018] Y = β0 + β1·X;
[0019] Among them, Y represents the congestion time, β0 represents the predicted value of the congestion time when the traffic volume is 0, β1 represents the predicted value of the congestion time when the traffic volume increases by 1, and X represents the traffic volume.
[0020] In some embodiments, before selecting a target path from each of the candidate paths according to the comprehensive score, the method further includes:
[0021] The comprehensive score of each candidate path is updated according to the remaining congestion time.
[0022] In some embodiments, the method further comprises:
[0023] The target path information is displayed through the user terminal.
[0024] To achieve the above object, another aspect of an embodiment of the present application provides a path planning device, the device comprising:
[0025] A planning information determination unit, used to determine the starting point, the end point and the departure time;
[0026] A path information acquisition unit, configured to select a plurality of candidate paths according to the starting point and the end point, and acquire a first vehicle flow of each candidate path at the departure time;
[0027] A congestion time determination unit, configured to input each of the first vehicle flows into a mathematical model to obtain a first congestion time of each of the candidate paths; wherein the mathematical model is pre-constructed according to the second vehicle flow and the second congestion time;
[0028] A weight setting unit, used to set corresponding weights for the first traffic flow and the first congestion time of each of the candidate paths;
[0029] A path scoring unit, configured to calculate a comprehensive score of each of the candidate paths according to the first traffic flow and the first congestion time after setting weights;
[0030] A path selection unit is used to select a target path from each of the candidate paths according to the comprehensive score.
[0031] In some embodiments, the apparatus further comprises:
[0032] An additional condition acquisition unit, used to acquire additional conditions set by the user for the driving route;
[0033] The path information acquisition subunit is used to select a plurality of candidate paths according to the starting point, the end point and the additional conditions before acquiring the first traffic flow of each candidate path at the departure time.
[0034] In some embodiments, the apparatus further comprises a unit for constructing the mathematical model, wherein the unit for constructing the mathematical model comprises:
[0035] A historical data acquisition unit, used for acquiring the second traffic flow and the second congestion time of the target road in different time periods;
[0036] A mathematical model building unit, used to build a mathematical model between vehicle flow and congestion time according to the second vehicle flow and the second congestion time;
[0037] The mathematical model is:
[0038] Y = β0 + β1·X;
[0039] Among them, Y represents the congestion time, β0 represents the predicted value of the congestion time when the traffic volume is 0, β1 represents the predicted value of the congestion time when the traffic volume increases by 1, and X represents the traffic volume.
[0040] In some embodiments, the apparatus further comprises:
[0041] A comprehensive score updating unit is used to update the comprehensive score of each candidate path according to the remaining congestion time before selecting the target path from each candidate path according to the comprehensive score.
[0042] In some embodiments, the apparatus further comprises:
[0043] The path display unit is used to display the information of the target path through the user terminal.
[0044] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned path planning method when executing the computer program.
[0045] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides a vehicle, which includes a path planning device as described above, or an electronic device as described above.
[0046] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned path planning method is implemented.
[0047] The embodiments of the present application include at least the following beneficial effects:
[0048] The present application can determine the starting point, the end point and the departure time; select multiple candidate paths according to the starting point and the end point, and obtain the first traffic flow of each candidate path at the departure time; input each first traffic flow into the mathematical model to obtain the first congestion time of each candidate path; wherein the mathematical model is pre-constructed according to the second traffic flow and the second congestion time; set corresponding weights for the first traffic flow and the first congestion time of each candidate path; calculate the comprehensive score of each candidate path according to the first traffic flow and the first congestion time after setting the weights; select the target path from each candidate path according to the comprehensive score. The present application determines the optimal target path according to the traffic flow and the congestion time, and enables the driver to select the most reasonable target path within the set time period to reduce driving time and avoid traffic congestion. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 A schematic diagram of a flow chart of a path planning method provided in an embodiment of the present application;
[0051] Figure 2 A schematic diagram of a process for reselecting a candidate path provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of the steps of building a mathematical model provided in an embodiment of the present application;
[0053] Figure 4 A schematic diagram of a flow chart of a path planning method including dynamic planning provided in an embodiment of the present application;
[0054] Figure 5 A schematic diagram of a flow chart of a path planning method including a displayed path provided in an embodiment of the present application;
[0055] Figure 6 A schematic diagram of the structure of a path planning device provided in an embodiment of the present application;
[0056] Figure 7 A schematic diagram of the structure of a unit for reselecting a candidate path provided in an embodiment of the present application;
[0057] Figure 8 A schematic diagram of the structure of a unit for constructing a mathematical model provided in an embodiment of the present application;
[0058] Fig. 9 A schematic diagram of the structure of another path planning device provided in an embodiment of the present application;
[0059] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0061] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0062] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0064] Before describing the embodiments of the present application in detail, some related technologies that may be involved in the embodiments of the present application are first described as follows:
[0065] The calculation of the optimal route (path planning) refers to determining the best driving route through a suitable algorithm given the starting point and the end point. This route is considered optimal because it can minimize the overall driving time or meet other optimization goals specified by the user, such as minimizing vehicle consumption, minimizing congestion time, minimizing journey length, etc.
[0066] In the embodiment of the present application, the process of calculating the optimal route includes the following steps:
[0067] Map data acquisition: Acquire map data, including road network, road section length, road type, intersection location, etc. These data are the basis for calculating the optimal route.
[0068] Determination of starting and ending points: The user specifies the starting and ending points, which may also include waypoints and special restrictions (such as avoiding highways, avoiding toll booths, etc.).
[0069] Route planning algorithm selection: Select a suitable route planning algorithm. Commonly used algorithms include:
[0070] Dijkstra algorithm: Applicable to the single-source shortest path problem, it continuously expands the node closest to the starting point through a greedy strategy until the end point is reached.
[0071] A* algorithm: A heuristic search algorithm that combines the Dijkstra algorithm and heuristic function to find the shortest path more quickly.
[0072] Bellman-Ford algorithm: Applicable to graphs containing negative weight edges and can solve the single-source shortest path problem.
[0073] Floyd-Warshall algorithm: Applicable to multi-source shortest path problems, can calculate the shortest path between any two points.
[0074] Dynamic programming algorithm: For complex route planning problems, dynamic programming algorithm can be used to solve the optimal route.
[0075] Route calculation: Calculate the optimal route from the starting point to the end point based on the selected route planning algorithm. This process may need to take into account factors such as traffic conditions, road restrictions, and real-time traffic conditions.
[0076] Result presentation: The calculated optimal route is presented to the user, which can be displayed to the user through map navigation software, smartphone applications, etc. It usually displays information such as estimated driving time, route length, and traffic conditions along the way to help users make driving decisions.
[0077] The sample code is as follows:
[0078] from sklearn.linear_model import LinearRegression
[0079] import numpy as np
[0080] #Sample data, X is the traffic volume, Y is the congestion time
[0081] X = np.array([100,200,300,400,500]).reshape(-1,1) #Convert X to a column vector
[0082] Y=np.array([10,20,30,40,50])
[0083] #Create a linear regression model
[0084] model=LinearRegression()
[0085] #Fitting model
[0086] model.fit(X,Y)
[0087] # Get estimates of the intercept and slope
[0088] beta0 = model.intercept_
[0089] beta1 = model.coef_[0]
[0090] # Output results
[0091] print("Intercept(β0):",beta0)
[0092] print("Slope(β1):",beta1)
[0093] In the above example, a set of sample data is first prepared, where X is the traffic volume and Y is the corresponding congestion time. Then, the LinearRegression model in the scikit-learn library is used to fit the data to obtain the linear relationship between congestion time and traffic volume. Finally, the estimated values of the intercept (β0) and slope (β1) obtained by fitting are output.
[0094] The embodiments of the present application provide a path planning method, device, electronic device, vehicle and storage medium. The technical solution of the present application includes: determining the starting point, the end point and the departure time; selecting multiple candidate paths according to the starting point and the end point, and obtaining the first traffic flow of each candidate path at the departure time; inputting each first traffic flow into a mathematical model to obtain the first congestion time of each candidate path; wherein the mathematical model is pre-constructed according to the second traffic flow and the second congestion time; setting corresponding weights for the first traffic flow and the first congestion time of each candidate path; calculating the comprehensive score of each candidate path according to the first traffic flow and the first congestion time after setting the weights; and selecting the target path from each candidate path according to the comprehensive score. The present application determines the optimal target path according to the traffic flow and the congestion time, so that the driver can choose the most reasonable target path within the set time period to reduce driving time and avoid traffic congestion.
[0095] The embodiment of the present application provides a path planning method, which relates to the field of path planning technology. The path planning method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server, or can be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements the path planning method, etc., but is not limited to the above forms.
[0096] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can 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. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0097] Reference Figure 1 , the embodiment of the present application provides a path planning method, which may include but is not limited to S100 to S130, as follows:
[0098] S100: Determine the starting point, the end point and the departure time.
[0099] Exemplarily, this embodiment can determine the starting point, end point, and departure time input by the user.
[0100] S110: A plurality of candidate routes are selected according to the starting point and the end point, and a first traffic flow of each candidate route at the departure time is obtained.
[0101] It is understandable that after selecting the starting point and the end point, multiple paths between the starting point and the end point can be determined as candidate paths, and then this embodiment can obtain the traffic flow of each candidate path at the departure time as the first traffic flow.
[0102] Considering that some users may have certain requirements for the driving path, refer to Figure 2 Before obtaining the first traffic flow of each candidate path at the departure time, the embodiment of the present application may further include S111 to S112:
[0103] S111: Obtaining additional conditions set by the user for the driving route.
[0104] For example, the additional conditions may include passing through designated waypoints and special restrictions, such as avoiding highways, avoiding toll booths, etc.
[0105] S112: A plurality of candidate paths are selected according to the starting point, the end point and the additional conditions.
[0106] After setting the additional conditions, this embodiment can reselect multiple candidate paths.
[0107] S120: Input each of the first traffic flows into a mathematical model to obtain a first congestion time of each of the candidate paths; wherein the mathematical model is pre-constructed according to the second traffic flow and the second congestion time.
[0108] The mathematical model can reflect the mapping relationship between traffic flow and congestion time. The traffic flow of each candidate path at the departure time (i.e., the first traffic flow) is input into the mathematical model, and the congestion time of each candidate path output by the mathematical model can be obtained as the first congestion time.
[0109] Reference Figure 3 Furthermore, the embodiment of the present application may further include a step of constructing a mathematical model, which may include S121 to S122:
[0110] S121: Acquire the second traffic flow and the second congestion time of the target road in different time periods;
[0111] S122: Establishing a mathematical model between vehicle flow and congestion time according to the second vehicle flow and the second congestion time; the mathematical model is:
[0112] Y = β0 + β1·X;
[0113] Among them, Y represents the congestion time, β0 represents the predicted value of the congestion time when the traffic volume is 0, β1 represents the predicted value of the congestion time when the traffic volume increases by 1, and X represents the traffic volume.
[0114] S130: Setting corresponding weights for the first traffic flow and the first congestion time of each of the candidate paths.
[0115] It can be understood that if the user prioritizes congestion time, the weight of the first congestion time can be set greater than the weight of the first traffic flow; if the user prioritizes driving experience, the weight of the first traffic flow can be set greater than the weight of the first congestion time.
[0116] S140: Calculate a comprehensive score of each of the candidate paths according to the first traffic flow and the first congestion time after setting weights.
[0117] It is understandable that after setting the weights, the comprehensive score of the candidate paths that meet the user's preferences will be higher than that of the candidate paths that do not meet the user's preferences.
[0118] Considering that the traffic flow will change dynamically during driving, resulting in changes in congestion time, the embodiment of the present application can also realize dynamic path planning, referring to Figure 4The method of the embodiment of the present application may further include S141 before selecting a target path from each candidate path according to the comprehensive score at S150:
[0119] The comprehensive score of each candidate path is updated according to the remaining congestion time.
[0120] It is understandable that the comprehensive score of each candidate path is updated in real time according to the congestion time. When a new candidate path has a higher comprehensive score than the currently selected path, the user can select the candidate path with a higher comprehensive score as the current target path.
[0121] S150: Selecting a target path from the candidate paths according to the comprehensive score.
[0122] Exemplarily, this embodiment may rank the candidate paths according to the comprehensive scores, for example, rank the candidate paths from high to low according to the comprehensive scores, and then select the candidate paths with the highest ranking as the target paths.
[0123] Reference Figure 5 , the embodiment of the present application may further include S160:
[0124] The target path information is displayed through the user terminal.
[0125] Exemplarily, the user terminal may be a mobile phone, a tablet computer, or a vehicle-mounted smart terminal.
[0126] The embodiments of the present application can adopt a more intelligent and efficient method to solve the path planning problem: by utilizing the traffic volume of the candidate paths and combining it with real-time traffic data and information, the possible congestion duration can be calculated in advance, and the optimal target path can be planned, which can avoid traffic congestion to the greatest extent, improve road traffic efficiency, and improve the urban traffic environment.
[0127] The embodiments of the present application have the following beneficial effects:
[0128] Reduced commute time: By choosing the optimal target route, drivers can reduce the time spent in traffic jams, thereby reducing commute time.
[0129] Improve traffic efficiency: The optimal target path can reduce the overall traffic congestion level, improve road traffic smoothness, improve traffic efficiency, help alleviate urban traffic congestion problems, and improve the travel experience of urban residents.
[0130] Next, the solution of the embodiment of the present application will be described in detail and explained in conjunction with specific application examples:
[0131] This embodiment may include S1 to S3:
[0132] S1: Construct a mathematical model based on the relationship between traffic flow and congestion time.
[0133] The traffic flow and corresponding congestion time at different time periods on a specific road are obtained through traffic monitoring cameras, and the collected traffic flow and congestion time are counted and analyzed. Then, based on the analysis results, a mathematical model between traffic flow and congestion time is established:
[0134] Y = β0 + β1·X;
[0135] Among them, Y represents the congestion time (response variable), β0 represents the predicted value of the congestion time when the traffic volume is 0, β1 represents the predicted value of the congestion time when the traffic volume increases by 1, and X represents the traffic volume (independent variable).
[0136] The mathematical model can represent the linear relationship between traffic flow and congestion time. According to the mathematical model, the corresponding congestion time Y can be predicted by a given traffic flow value X; or the predicted traffic flow can be obtained by inverse calculation of the given congestion time.
[0137] S2: Weighting of traffic volume and congestion time.
[0138] In route planning, traffic flow and congestion time can be weighted to comprehensively consider their impact on route selection. The following is a weighting method:
[0139] Determine weights: Determine the weights of traffic flow and congestion time based on actual needs and priorities. Typically, weights can be determined based on the goals of route selection, such as minimizing travel time or minimizing traffic flow.
[0140] Weighted calculation: Weighted calculation is performed on the traffic volume and congestion time of each route to obtain a comprehensive score. A linear weighted method can be used to give different importances according to the weights.
[0141] Select the best route: Based on the weighted calculation results, select the route with the highest comprehensive score as the best route, taking into account the traffic volume and congestion time, and select the driving route that is most beneficial to the user.
[0142] S3: Dynamic planning of congestion time and traffic flow time.
[0143] Through the weighted sorting in S2, it is associated with the congestion time. The time is associated during the weighted calculation to deduce the congestion time of the subsequent road sections. Then the minimum time can be continuously calculated, and the path is planned according to the minimum time. At this time, it is the shortest path and is recommended to the user.
[0144] This embodiment can provide real-time traffic information, which is crucial for calculating the optimal route. Accurate real-time traffic information can help users avoid congested roads and choose a faster route.
[0145] In this embodiment, different route planning algorithms can be selected. Since the selection of the route planning algorithm directly affects the final route quality, selecting a suitable route planning algorithm can quickly and accurately calculate the optimal route.
[0146] This embodiment may require a full understanding of the user's needs, including travel purpose, preferences, time constraints, etc., in order to provide the user with personalized route recommendations.
[0147] Reference Figure 6 The present application also provides a path planning device, which can implement the above-mentioned path planning method, and the device includes:
[0148] A planning information determination unit, used to determine the starting point, the end point and the departure time;
[0149] A path information acquisition unit, configured to select a plurality of candidate paths according to the starting point and the end point, and acquire a first vehicle flow of each candidate path at the departure time;
[0150] A congestion time determination unit, configured to input each of the first vehicle flows into a mathematical model to obtain a first congestion time of each of the candidate paths; wherein the mathematical model is pre-constructed according to the second vehicle flow and the second congestion time;
[0151] A weight setting unit, used to set corresponding weights for the first traffic flow and the first congestion time of each of the candidate paths;
[0152] A path scoring unit, configured to calculate a comprehensive score of each of the candidate paths according to the first traffic flow and the first congestion time after setting weights;
[0153] A path selection unit is used to select a target path from each of the candidate paths according to the comprehensive score.
[0154] Reference Figure 7 In some embodiments, the device further comprises a unit for reselecting a candidate path, and the unit for reselecting a candidate path comprises:
[0155] An additional condition acquisition unit, used to acquire additional conditions set by the user for the driving route;
[0156] The path information acquisition subunit is used to select a plurality of candidate paths according to the starting point, the end point and the additional conditions before acquiring the first traffic flow of each candidate path at the departure time.
[0157] Reference Figure 8 In some embodiments, the device further comprises a unit for constructing a mathematical model, and the unit for constructing a mathematical model comprises:
[0158] A historical data acquisition unit, used for acquiring the second traffic flow and the second congestion time of the target road in different time periods;
[0159] A mathematical model building unit, used to build a mathematical model between vehicle flow and congestion time according to the second vehicle flow and the second congestion time;
[0160] The mathematical model is:
[0161] Y = β0 + β1·X;
[0162] Among them, Y represents the congestion time, β0 represents the predicted value of the congestion time when the traffic volume is 0, β1 represents the predicted value of the congestion time when the traffic volume increases by 1, and X represents the traffic volume.
[0163] Reference Fig. 9 In some embodiments, the device further comprises:
[0164] A comprehensive score updating unit is used to update the comprehensive score of each candidate path according to the remaining congestion time before selecting the target path from each candidate path according to the comprehensive score.
[0165] In some embodiments, the apparatus further comprises:
[0166] The path display unit is used to display the information of the target path through the user terminal.
[0167] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0168] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned path planning method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0169] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0170] See also Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0171] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0172] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the path planning method of the embodiment of this application;
[0173] Input / output interface 1003, used to implement information input and output;
[0174] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0175] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );
[0176] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .
[0177] The embodiment of the present application also provides a vehicle, which includes a path planning device as described above, or an electronic device as described above. Specifically, the vehicle can be a private car, such as a sedan, SUV, MPV or pickup truck. The vehicle can also be an operating vehicle, such as a van, bus, small truck or large trailer. The vehicle can be a gasoline vehicle or a new energy vehicle. When the vehicle is a new energy vehicle, it can be a hybrid vehicle or a pure electric vehicle.
[0178] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned path planning method is implemented.
[0179] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0180] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0181] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0182] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0183] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0184] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0185] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0186] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0187] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0188] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0189] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0190] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0191] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A path planning method, characterized in that: The method comprises: Determine the starting point, end point and departure time; Selecting multiple candidate routes according to the starting point and the end point, and obtaining the first traffic flow of each candidate route at the departure time; Inputting each of the first traffic flows into a mathematical model to obtain a first congestion time of each of the candidate paths; wherein the mathematical model is pre-constructed according to the second traffic flow and the second congestion time; Setting corresponding weights for the first traffic flow and the first congestion time of each candidate path; Calculate a comprehensive score for each of the candidate paths according to the first traffic flow and the first congestion time after setting weights; A target path is selected from each of the candidate paths according to the comprehensive score.
2. A path planning method according to claim 1, characterized in that: Before obtaining the first traffic flow of each candidate path at the departure time, the method further includes: Get the additional conditions set by the user for the driving route; A plurality of candidate paths are selected according to the starting point, the end point and the additional conditions.
3. A path planning method according to claim 1, characterized in that: The method further comprises the step of constructing the mathematical model, wherein the step of constructing the mathematical model comprises: Acquire the second traffic flow and the second congestion time of the target road in different time periods; Establishing a mathematical model between vehicle flow and congestion time according to the second vehicle flow and the second congestion time; The mathematical model is: Y = β0 + β1·X; Among them, Y represents the congestion time, β0 represents the predicted value of the congestion time when the traffic volume is 0, β1 represents the predicted value of the congestion time when the traffic volume increases by 1, and X represents the traffic volume.
4. A path planning method according to claim 1, characterized in that: Before selecting a target path from each of the candidate paths according to the comprehensive score, the method further includes: The comprehensive score of each candidate path is updated according to the remaining congestion time.
5. A path planning method according to any one of claims 1 to 4, characterized in that: The method further comprises: The target path information is displayed through the user terminal.
6. A path planning device, characterized in that: The device comprises: A planning information determination unit, used to determine the starting point, the end point and the departure time; A path information acquisition unit, configured to select a plurality of candidate paths according to the starting point and the end point, and acquire a first vehicle flow of each candidate path at the departure time; A congestion time determination unit, configured to input each of the first vehicle flows into a mathematical model to obtain a first congestion time of each of the candidate paths; wherein the mathematical model is pre-constructed according to the second vehicle flow and the second congestion time; A weight setting unit, used to set corresponding weights for the first traffic flow and the first congestion time of each of the candidate paths; A path scoring unit, configured to calculate a comprehensive score of each of the candidate paths according to the first traffic flow and the first congestion time after setting weights; A path selection unit is used to select a target path from each of the candidate paths according to the comprehensive score.
7. A path planning device according to claim 6, characterized in that: The device also includes: An additional condition acquisition unit, used to acquire additional conditions set by the user for the driving route; The path information acquisition subunit is used to select a plurality of candidate paths according to the starting point, the end point and the additional conditions before acquiring the first traffic flow of each candidate path at the departure time.
8. A path planning device according to claim 6, characterized in that: The device also includes a unit for constructing the mathematical model, and the unit for constructing the mathematical model includes: A historical data acquisition unit, used for acquiring the second traffic flow and the second congestion time of the target road in different time periods; A mathematical model building unit, used to build a mathematical model between vehicle flow and congestion time according to the second vehicle flow and the second congestion time; The mathematical model is: Y = β0 + β1·X; Among them, Y represents the congestion time, β0 represents the predicted value of the congestion time when the traffic volume is 0, β1 represents the predicted value of the congestion time when the traffic volume increases by 1, and X represents the traffic volume.
9. A path planning device according to claim 6, characterized in that: The device also includes: A comprehensive score updating unit is used to update the comprehensive score of each candidate path according to the remaining congestion time before selecting the target path from each candidate path according to the comprehensive score.
10. A path planning device according to any one of claims 6 to 9, characterized in that: The device also includes: The path display unit is used to display the information of the target path through the user terminal.
11. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements a path planning method as described in any one of claims 1 to 5 when executing the computer program.
12. A vehicle, characterized in that: The vehicle comprises a path planning device as claimed in claim 6, or an electronic device as claimed in claim 11.
13. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, a path planning method according to any one of claims 1 to 5 is implemented.
Citation Information
Cited By
Crowd passing management system and method and computer equipment
CN121483009A
