Path planning auxiliary method, path planning method, device, equipment and medium

By determining whether the location belongs to the same area and using the Manhattan distance to calculate the distance, and combining the map service to obtain the cross-regional distance, the problem of the increase in the size of the distance calculation matrix between multiple points is solved, and the dual optimization of accuracy and cost is achieved.

CN118706141APending Publication Date: 2024-09-27THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310341785.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When calculating the distance or travel time between multiple points, the existing technology faces the problem of rapid growth in matrix size, resulting in high service costs and inaccurate calculation results in long distance situations.

Method used

By determining whether the location belongs to the same area, use the Manhattan distance calculation formula or spherical Manhattan distance to calculate the distance, and call the map service to obtain the distance between different areas, reducing the number of service calls and improving the accuracy of the calculation results.

Benefits of technology

It effectively reduces the square-level increase in the number of map service calls, improves the accuracy of calculation results, reduces service costs, and at the same time ensures the accuracy of calculation results in the same area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118706141A
    Figure CN118706141A
Patent Text Reader

Abstract

The invention relates to a path planning auxiliary method, a path planning method, a device, equipment and a medium. Judging whether the first position and the second position belong to the same area; if the first position and the second position belong to different areas, calculating a first distance from the first position to the first target position, calculating a second distance from the second position to the second target position, and obtaining a third distance from the first target position to the second target position through map service; adding the first distance, the second distance and the third distance to obtain a fourth distance from the first position to the second position; and if the first position and the second position belong to the same area, calculating a fourth distance from the first position to the second position. Therefore, the number of times of calling the graph provider service can be reduced to a certain extent, and the phenomenon that the number of times of calling the graph provider service is increased in a square level along with the increase of points is avoided. In addition, the accuracy of the calculation result can be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of path planning, and in particular to a path planning auxiliary method, a path planning method, a device, a equipment and a medium. Background Art

[0002] Typically, in many vehicle driving planning problems, it is necessary to rely on a distance matrix dist[u][v] or a driving time matrix time[u][v] to represent the distance or time from a current point u to a target point v.

[0003] Generally speaking, you can use the services provided by map vendors (referred to as map vendors) to directly obtain the distance or travel time between two points. However, when there are n points, the matrix size is n^2. Therefore, when the number of points increases, the required matrix size will also increase quadratically, which places high demands on the quota and concurrency of the services provided by the map vendors. To meet actual needs, it is often necessary to purchase customized configurations from the map vendors, which will incur higher service fees.

[0004] In addition, the distance between two points or the predicted travel time can also be calculated using a calculation method. However, this method is mainly applicable to short-distance scenarios. When the distance between two points is long, the distance between the two points or the predicted travel time obtained using the calculation method will be significantly different from the actual result.

[0005] Therefore, a new solution for obtaining the distance or travel time between two points is needed to overcome the shortcomings of the existing solutions. Summary of the invention

[0006] A technical problem to be solved by the present disclosure is how to provide a new solution for obtaining the distance or travel time between two points to overcome the shortcomings of existing solutions.

[0007] According to a first aspect of the present disclosure, a path planning assistance method is provided, including: determining whether a first position and a second position belong to the same area; if the first position and the second position belong to different areas, calculating a first distance from the first position to a first target position, calculating a second distance from the second position to a second target position, and obtaining a third distance from the first target position to the second target position through a map service, the first target position being a position in the area to which the first position belongs, and the second target position being a position in the area to which the second position belongs; adding the first distance, the second distance and the third distance to obtain a fourth distance from the first position to the second position; and if the first position and the second position belong to the same area, calculating the fourth distance from the first position to the second position.

[0008] Optionally, any one of the areas corresponds to a street.

[0009] Optionally, the method further comprises: performing cluster analysis on the multiple locations to obtain multiple categories, each of the categories corresponding to one of the regions.

[0010] Optionally, calculating the first distance from the first position to the first target position includes: using a Manhattan distance calculation formula or a spherical Manhattan distance calculation formula to calculate the first distance from the first position to the first target position; calculating the second distance from the second position to the second target position includes: using a Manhattan distance calculation formula or a spherical Manhattan distance calculation formula to calculate the second distance from the second position to the second target position; calculating the fourth distance from the first position to the second position includes: using a Manhattan distance calculation formula or a spherical Manhattan distance calculation formula to calculate the fourth distance from the first position to the second position.

[0011] Optionally, the method further includes: calculating an expected driving speed based on the fourth distance; and calculating an expected driving duration based on the expected driving speed and the fourth distance.

[0012] Optionally, the value of the expected driving speed is positively correlated with the fourth distance.

[0013] According to a second aspect of the present disclosure, a path planning assistance method is provided, including: determining whether a first position and a second position belong to the same area; if the first position and the second position belong to different areas, calculating a first distance from the first position to a first target position, calculating a second distance from the second position to a second target position, and obtaining a first driving time from the first target position to the second target position through a map service, wherein the first target position is a position in the area to which the first position belongs, and the second target position is a position in the area to which the second position belongs; based on the first distance, the second distance and the first driving time, obtaining an expected driving time from the first position to the second position; and if the first position and the second position belong to the same area, calculating a fourth distance from the first position to the second position; and obtaining an expected driving time from the first position to the second position based on the fourth distance.

[0014] According to a third aspect of the present disclosure, a path planning method is provided, comprising: using the method described in the first aspect or the second aspect above to obtain a distance matrix or a driving time matrix for multiple positions, the distance matrix is ​​used to characterize the distance between any two positions in the multiple positions, and the driving time matrix is ​​used to characterize the expected driving time between any two positions in the multiple positions; based on the distance set distance matrix or the driving time matrix, using a path planning algorithm to solve the driving path from the starting position to the end position.

[0015] Optionally, the path planning algorithm is a sampling-based path planning algorithm or a search-based path planning algorithm.

[0016] According to a fourth aspect of the present disclosure, a path planning assistance device is provided, including: a judgment module, used to judge whether a first position and a second position belong to the same area; a first processing module, used to calculate a first distance from the first position to a first target position, calculate a second distance from the second position to a second target position, and obtain a third distance from the first target position to the second target position through a map service if the first position and the second position belong to different areas, the first target position being a position in the area to which the first position belongs, and the second target position being a position in the area to which the second position belongs; adding the first distance, the second distance and the third distance to obtain a fourth distance from the first position to the second position; and a second processing module, used to calculate the fourth distance from the first position to the second position if the first position and the second position belong to the same area.

[0017] Optionally, any one of the areas corresponds to a street.

[0018] Optionally, the method further comprises: a clustering module, configured to perform cluster analysis on the plurality of locations to obtain a plurality of categories, each of the categories corresponding to one of the regions.

[0019] Optionally, the first processing module uses the Manhattan distance calculation formula or the spherical Manhattan distance calculation formula to calculate the first distance from the first position to the first target position, the first processing module uses the Manhattan distance calculation formula or the spherical Manhattan distance calculation formula to calculate the second distance from the second position to the second target position, and the second processing module uses the Manhattan distance calculation formula or the spherical Manhattan distance calculation formula to calculate the fourth distance from the first position to the second position.

[0020] Optionally, the method further includes: a first calculation module, used for calculating an expected driving speed based on the fourth distance; and a second calculation module, used for calculating an expected driving duration based on the expected driving speed and the fourth distance.

[0021] Optionally, the value of the expected driving speed is positively correlated with the fourth distance.

[0022] According to a fifth aspect of the present disclosure, a path planning assistance device is provided, including: a judgment module, used to judge whether a first position and a second position belong to the same area; a first processing module, used to calculate a first distance from the first position to a first target position, calculate a second distance from the second position to a second target position, and obtain a first driving time from the first target position to the second target position through a map service if the first position and the second position belong to different areas, the first target position being a position in the area to which the first position belongs, and the second target position being a position in the area to which the second position belongs; based on the first distance, the second distance and the first driving time, obtaining an expected driving time from the first position to the second position; and a second processing module, used to calculate a fourth distance from the first position to the second position if the first position and the second position belong to the same area; and obtaining an expected driving time from the first position to the second position based on the fourth distance.

[0023] According to the sixth aspect of the present disclosure, a path planning device is provided, comprising: an acquisition module, used to use the device described in the fourth aspect or the fifth aspect above to obtain a distance matrix or a driving time matrix for multiple positions, the distance matrix is ​​used to characterize the distance between any two positions among the multiple positions, and the driving time matrix is ​​used to characterize the expected driving time between any two positions among the multiple positions; a path planning module, used to use a path planning algorithm to solve the driving path from the starting position to the end position based on the distance matrix or the driving time matrix.

[0024] Optionally, the path planning algorithm is a sampling-based path planning algorithm or a search-based path planning algorithm.

[0025] According to the seventh aspect of the present disclosure, a computing device is provided, comprising: a processor; and a memory on which executable code is stored, and when the executable code is executed by the processor, the processor executes the method described in any one of the first to third aspects above.

[0026] According to an eighth aspect of the present disclosure, a computer program product is provided, comprising an executable code, which, when executed by a processor of an electronic device, enables the processor to execute the method described in any one of the first to third aspects above.

[0027] According to the ninth aspect of the present disclosure, a non-temporary machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the method described in any one of the first to third aspects above.

[0028] The present disclosure determines whether the first position and the second position belong to the same area, and when the first position and the second position belong to different areas, calculates the first distance from the first position to the first target position, calculates the second distance from the second position to the second target position, and obtains the third distance from the first target position to the second target position through the map service, and adds the first distance, the second distance and the third distance to obtain the fourth distance from the first position to the second position; when the first position and the second position belong to the same area, the fourth distance from the first position to the second position is calculated. In this way, the number of times the map service is called can be reduced to a certain extent, and the phenomenon of the number of map service calls increasing quadratically with the increase in the number of points will not occur. In addition, since the calculation is for two positions in the same area, the accuracy of the calculation result can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.

[0030] Figure 1 A schematic flowchart of a path planning assistance method according to an embodiment of the present disclosure is shown.

[0031] Figure 2 A schematic flowchart of a path planning assistance method according to another embodiment of the present disclosure is shown.

[0032] Figure 3 A schematic diagram of the data preprocessing process is shown.

[0033] Figure 4 A flow chart of the travel time prediction algorithm is shown.

[0034] Figure 5 A schematic structural diagram of a path planning assistance device according to an embodiment of the present disclosure is shown.

[0035] Figure 6 A schematic structural diagram of a path planning device according to an embodiment of the present disclosure is shown.

[0036] Figure 7 A schematic diagram of the structure of a computing device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0037] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0038] Map vendor services refer to services provided by map vendors. The method of determining the distance or travel time between two points by calling the map vendor service has high accuracy but requires a certain service fee. The method of determining the distance or travel time between two points by calculation does not incur service fees, but the accuracy of the calculation result is not high when the distance between the two points is long. To this end, the present disclosure proposes to organically combine these two methods to reduce the number of map vendor service calls while taking into account accuracy.

[0039] Specifically, for multiple locations, these multiple locations can be divided into a limited number of regions through cluster analysis, map service, etc., and each location belongs to one of the regions. Each region has a target location. The target location can be flexibly set according to the situation. For example, the center position of the region can be used as the target location of the region, or the center point of all locations in the region can be used as the target location of the region.

[0040] For location 1 and location 2 that cross regions, the path from location 1 to location 2 can be divided into three segments, namely, from location 1 to target location 1 in region 1 to which location 1 belongs, from target location 1 to target location 2 in region 2 to which location 2 belongs, and from target location 2 to location 2. The distance between two locations in the same region is generally not too far, so the distance between two locations in the same region can be calculated using calculation methods, such as the distance from location 1 to target location 1 and the distance from target location 2 to location 2. The distance between two locations in cross regions is far, and it is no longer suitable to use calculation methods, so the distance from target location 1 to target location 2 can be obtained using map service.

[0041] For position 3 and position 4 belonging to the same area, since the distance between two positions in the same area is generally not too far, the distance from position 3 to position 4 can be determined by calculation.

[0042] Therefore, the number of times the map service is called is related to the number of divided areas, and the number of divided areas (such as the number of streets) is limited and much smaller than the number of points (i.e. the number of locations). Therefore, the number of times the map service is called can be reduced to a certain extent, and the phenomenon of the number of map service calls increasing quadratically with the increase in the number of points will not occur. In addition, since the calculation is for two locations in the same area, the accuracy of the calculation results can be guaranteed.

[0043] Figure 1 A schematic flowchart of a path planning assistance method according to an embodiment of the present disclosure is shown.

[0044] See also Figure 1 In step S110, it is determined whether the first position and the second position belong to the same area.

[0045] Each region may correspond to a geographical range. Multiple regions may be determined by cluster analysis, artificial division, etc. Each street may also be regarded as a region based on map data. For example, multiple locations may be clustered to obtain multiple categories, each category corresponding to a region. The clustering analysis method may include but is not limited to K-means. Multiple locations may refer to all locations in a distance matrix or a travel time matrix that needs to be relied upon when solving a path planning problem. Multiple locations include a first location and a second location.

[0046] If the first position and the second position belong to different areas, the fourth distance from the first position to the second position can be obtained by executing step S120 and step S130.

[0047] In step S120, a first distance from the first position to the first target position is calculated, a second distance from the second position to the second target position is calculated, and a third distance from the first target position to the second target position is obtained through a map service.

[0048] In step S130 , the first distance, the second distance and the third distance are added to obtain a fourth distance from the first position to the second position.

[0049] The first target position is a position in the area to which the first position belongs, and the second target position is a position in the area to which the second position belongs. The target position in each area may be pre-set. For example, the center position of each area may be used as the target position. Taking the area as a street as an example, the first target position may be the center position of the street to which the first position belongs (i.e., the center point of the street), and the second target position may be the center position of the street to which the second position belongs. For another example, the center position of all positions in each area may be used as the target position of the area.

[0050] For the first position and the second position across regions, the distance from the first position to the second position (i.e., the fourth distance described below) can be divided into the first distance from the first position to the first target position, the second distance from the first target position to the second target position, and the third distance from the second target position to the second position. The second distance can be obtained by calling the map service, which is the service provided by the map manufacturer. The first distance and the third distance can be obtained by calculation.

[0051] As an example, the first distance from the first position to the first target position can be calculated using the Manhattan distance calculation formula or the spherical Manhattan distance calculation formula; accordingly, the second distance from the second position to the second target position can be calculated using the Manhattan distance calculation formula or the spherical Manhattan distance calculation formula. Thus, the first distance and the second distance can be the Manhattan distance or the spherical Manhattan distance. The distance calculated using the spherical Manhattan distance method has a smaller error than the traditional Manhattan distance, so preferably, the first distance and the second distance can be the spherical Manhattan distance.

[0052] Manhattan distance refers to the distance between two points in the north-south direction plus the distance in the east-west direction. For a town with regular streets in the south-north, east-west directions, the Manhattan distance from one point to another is the distance traveled in the north-south direction plus the distance traveled in the east-west direction. Therefore, Manhattan distance is also called taxi distance or city block distance. The formula for calculating Manhattan distance can be expressed as:

[0053] d(i, j) = |x i -x j |+|y i -y j |

[0054] Where d(i, j) represents the Manhattan distance between point i and point j, x i is the x-axis coordinate of point i, y i is the y-axis coordinate of point i, x j is the x-axis coordinate of point j, y j For point j y The above Manhattan distance calculation formula means that the x-coordinates of the two points are subtracted and the absolute value is obtained. y Subtract the coordinates, take the absolute value, and then add them.

[0055] Set lng u ,lat u are the latitude and longitude of point u, Ing v ,lat v are the latitude and longitude of point v, and the latitude and longitude of point u′ are lng u ,lat v, the spherical Euclidean distance from point u to point u′ is dis u,u′ , the spherical Euclidean distance from point u′ to point v is dis u′,v , then the spherical Manhattan distance calculation formula from point u to point v can be expressed as:

[0056] Distman u,v =dis u,u′ +dis u′,v

[0057] That is, the spherical Manhattan distance from point u to point v is equal to the sum of the spherical Euclidean distance from point u to point u′ and the spherical Euclidean distance from point u′ to point v.

[0058] in,

[0059]

[0060] x = lat u -lat v , y = lng u -lng u =0; x′=lat v -lat v =0, y′=lng u -lng v .

[0061] If the first position and the second position belong to the same area, step S140 may be performed to calculate a fourth distance from the first position to the second position. The fourth distance from the first position to the second position may be calculated using a Manhattan distance calculation formula or a spherical Manhattan distance calculation formula. The specific calculation principle may refer to the above description.

[0062] If it is necessary to further determine the expected driving time from the first position to the second position, the expected driving time can be calculated based on the fourth distance and the expected driving speed after obtaining the fourth distance from the first position to the second position. For example, the result obtained by dividing the fourth distance by the expected driving speed can be used as the expected driving time. The expected driving speed is used to characterize the average driving speed of the target object (such as a vehicle) from the first position to the second position. The expected driving time is used to characterize the time required for the target object to move from the first position to the second position. The expected driving time can also be called the expected driving time.

[0063] In order to reduce the error, the present disclosure proposes an adaptive vehicle speed calculation method to suit different distance scenarios. That is, the expected speed can be determined according to the length of the fourth distance. Among them, the value of the expected speed can be positively correlated with the fourth distance. That is, the longer the fourth distance, the greater the expected speed. The positive correlation mentioned here refers to the overall positive correlation. For example, the relationship between the value of the expected speed and the fourth distance can be set as follows: when the fourth distance is less than or equal to the first threshold, the expected speed is a first linear function with the fourth distance as the independent variable; when the fourth distance is greater than the first threshold and less than or equal to the second threshold, the expected speed can be a second linear function with the fourth distance as the independent variable, and the slope of the second linear function can be greater than the slope of the first linear function; when the fourth distance is greater than the second threshold, the expected speed can be a constant. When the fourth distance is less than the first threshold, it can be regarded as a short distance, when the fourth distance is greater than the first threshold and less than the second threshold, it can be regarded as a medium distance, and when the fourth distance is greater than the second threshold, it can be regarded as a long distance or an ultra-long distance. Therefore, at close and medium distances, speed can be two linear functions with distance as the variable, and at long and ultra-long distances, speed can be a constant.

[0064] Figure 2 A schematic flowchart of a path planning assistance method according to another embodiment of the present disclosure is shown.

[0065] See also Figure 2 In step S210, it is determined whether the first position and the second position belong to the same area.

[0066] For step S210, please refer to the above reference. Figure 1 Description of step S110 in .

[0067] If the first location and the second location belong to different areas, the expected driving time from the first location to the second location can be obtained by executing steps S220 and S230.

[0068] In step S220, a first distance from the first position to the first target position is calculated, a second distance from the second target position to the second position is calculated, and a first driving time from the first target position to the second target position is obtained through a map service.

[0069] Different from step S120, in this embodiment, the first driving time from the first target location to the second target location is obtained through the map service instead of obtaining the third distance from the first target location to the second target location.

[0070] For the calculation method of the first distance and the second distance, please refer to the relevant description above.

[0071] In step S230, based on the first distance, the second distance and the first driving duration, an expected driving duration from the first location to the second location is obtained.

[0072] A first expected driving speed can be calculated based on the first distance, and the first expected driving speed can represent the average driving speed of the target object (such as a vehicle) from the first position to the first target position. Based on the first distance and the first expected driving speed, a second expected driving duration is calculated. The second expected driving duration can represent the expected driving duration of the target object from the first position to the first target position. Accordingly, a second expected driving speed can be calculated based on the second distance, and the second expected driving speed can represent the average driving speed of the target object (such as a vehicle) from the second target position to the second position. Based on the second distance and the second expected driving speed, a third expected driving duration is calculated. The third expected driving duration can represent the expected driving duration of the target object from the second target position to the second position. Thus, by adding the second expected driving duration, the first expected driving duration, and the third expected driving duration, the expected driving duration from the first position to the second position can be obtained.

[0073] There may be a positive correlation between the value of the first expected driving speed and the first distance. That is, the smaller the first distance, the smaller the first expected driving speed; the larger the first distance, the larger the first expected driving speed. The positive correlation mentioned here refers to an overall positive correlation. The specific functional relationship between the value of the first expected driving speed and the distance can be flexibly set. For example, please refer to the above description of the functional relationship between the expected driving speed and the distance.

[0074] There may be a positive correlation between the value of the second expected driving speed and the second distance. That is, the smaller the second distance, the smaller the second expected driving speed; the larger the second distance, the larger the second expected driving speed. The positive correlation mentioned here refers to an overall positive correlation. The specific functional relationship between the value of the second expected driving speed and the distance can be flexibly set. For example, please refer to the above description of the functional relationship between the expected driving speed and the distance.

[0075] In addition, the third expected driving speed can also be calculated based on the first distance and the second distance. The third expected driving speed can characterize the average driving speed of the target object on the two paths from the first position to the first target position and from the second target position to the second position. The value of the third expected driving speed can be positively correlated with the first distance and the second distance. For example, the value of the third expected driving speed can be positively correlated with the sum of the first distance and the second distance, that is, the greater the sum of the first distance and the second distance, the greater the third expected driving speed. Among them, the positive correlation mentioned here refers to the overall positive correlation. The specific functional relationship between the value of the third expected driving speed and the distance (such as the sum of the first distance and the second distance) can be flexibly set. For example, please refer to the description of the functional relationship between the expected driving speed and the distance above. Based on the first distance, the second distance and the third expected driving speed, the fourth expected driving time can be calculated, and the fourth expected driving time can be equal to the sum of the first distance and the second distance divided by the third expected driving speed. Thus, by adding the fourth expected driving time to the first expected driving time, the expected driving time from the first position to the second position can be obtained.

[0076] If the first location and the second location belong to the same area, step S240 may be executed to calculate a fourth distance from the first location to the second location; based on the fourth distance, an expected driving time from the first location to the second location is obtained. For the calculation method of the fourth distance and the process of obtaining the expected driving time based on the fourth distance, please refer to the above description.

[0077] Application Examples

[0078] The following is an illustrative explanation using the example of calculating the travel time matrix of n points.

[0079] Figure 3 A schematic diagram of the data preprocessing process is shown.

[0080] See also Figure 3 In step S310, the streets corresponding to all points are queried using the map service.

[0081] In step S320, the location of the street point is defined as the center of all points in the street.

[0082] In step S330, the distance from each point to the corresponding street point is calculated. Preferably, the distance from each point to the corresponding street point can be calculated using a spherical Manhattan distance calculation formula.

[0083] In step S340, the distance between any two street points is calculated using the map service. The distance between any two street points can be directly obtained through the map service.

[0084] Figure 3The data preprocessing process shown may also include calculating the distance between any two points in each street. Preferably, the distance between any two points in each street may be calculated using a spherical Manhattan distance calculation formula.

[0085] exist Figure 3 After the data preprocessing process shown is executed, the distance between any two street points and the distance from any point to the corresponding street point can be obtained. Optionally, the distance between any two points in each street can also be obtained.

[0086] Figure 4 A flow chart of the travel time prediction algorithm is shown.

[0087] See also Figure 4 , the process of calculating the expected travel time between any two points u and v is as follows.

[0088] In step 410, it is determined whether point u and point v belong to the same street.

[0089] If point u and point v do not belong to the same street, jump to step S421 and define the distance between point u and point v (ie, the fourth distance mentioned above) as the spherical Manhattan distance from point u to point v.

[0090] If point u and point v belong to the same street, jump to step S420 and define the distance between point u and point v as the distance from point u and point v to the corresponding street point (i.e. the first distance and the second distance mentioned above) + the distance between the street points (i.e. the third distance mentioned above).

[0091] After obtaining the distance between point u and point v, step S430 may be executed to calculate the expected driving speed according to the distance.

[0092] In step S440, the expected driving time is calculated according to the distance and the expected driving speed.

[0093] For the calculation principle of the expected driving speed and expected driving time, please refer to the relevant description above.

[0094] Application Scenario

[0095] The present disclosure can be used in the process of solving path planning problems (such as vehicle driving planning problems).

[0096] Path planning is one of the main research contents of motion planning. Motion planning consists of path planning and trajectory planning. The sequence of points or curves connecting the starting position and the end position is called a path, and the strategy that constitutes the path is called path planning. The path planning problem can be described as finding an optimal path between the starting position and the end position that meets the constraints.

[0097] In the process of solving the driving path from the starting position to the end position by using the path planning algorithm, it is necessary to rely on a distance matrix or a driving time matrix to represent the distance or time (i.e. driving time) between any two positions in multiple positions (i.e. multiple points). To this end, the present disclosure proposes that the above combined Figures 1 to 4 The described method obtains a distance matrix or a driving time matrix for multiple locations, where the distance matrix is ​​used to characterize the distance between any two locations among the multiple locations, and the driving time matrix is ​​used to characterize the expected driving time between any two locations among the multiple locations; then based on the distance matrix or the driving time matrix, a path planning algorithm can be used to solve the driving path from the starting location to the end location.

[0098] The path planning algorithm can generally be a sampling-based path planning algorithm or a search-based path planning algorithm. Among them, the sampling-based path planning algorithm may include but is not limited to the RRT* algorithm and the BIT* algorithm. The search-based path planning algorithm may include but is not limited to the A* algorithm, the D* algorithm, and the Theta* algorithm. For the solution principle of the path planning algorithm, please refer to the prior art.

[0099] Taking the A* algorithm as an example, the valuation function of the A* algorithm can be expressed as F=G+H. Among them, G is the actual path cost from the starting point to the current point, and H is the estimated cost from the current point to the end point. G can be represented by the distance from the current point to the end point or the expected driving time, and H can be represented by the distance from the current point to the end point or the expected driving time, and the distance between the two points or the expected driving time can be obtained by looking up the distance matrix or the driving time matrix. Therefore, the distance matrix or the driving time matrix can be calculated using the method described above in the present disclosure, so that in the process of solving the path planning problem using the A* algorithm, the valuation function can be calculated based on the distance matrix or the driving time matrix.

[0100] The path planning assistance method disclosed in the present invention may also be implemented as a path planning assistance device. Figure 5 The schematic diagram of the structure of the path planning assistance device according to one embodiment of the present disclosure is shown. The functional units of the path planning assistance device can be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present disclosure. It can be understood by those skilled in the art that Figure 5 The functional units described can be combined or divided into sub-units to implement the principles of the above invention. Therefore, the description herein can support any possible combination, division, or further limitation of the functional units described herein. The following is a brief description of the functional units that the path planning auxiliary device can have and the operations that each functional unit can perform. For the details involved, please refer to the relevant description above, which will not be repeated here.

[0101] See also Figure 5The path planning assistance device 500 may include a judgment module 510 , a first processing module 520 and a second processing module 530 .

[0102] In one embodiment, the judgment module 510 can be used to determine whether the first position and the second position belong to the same area. The first processing module 520 can be used to calculate the first distance from the first position to the first target position, calculate the second distance from the second position to the second target position, and obtain the third distance from the first target position to the second target position through the map service if the first position and the second position belong to different areas, the first target position is a position in the area to which the first position belongs, and the second target position is a position in the area to which the second position belongs; add the first distance, the second distance and the third distance to obtain the fourth distance from the first position to the second position. The second processing module 530 can be used to calculate the fourth distance from the first position to the second position if the first position and the second position belong to the same area.

[0103] The first processing module 520 may use the Manhattan distance calculation formula or the spherical Manhattan distance calculation formula to calculate the first distance from the first position to the first target position. Accordingly, the first processing module 520 may also use the Manhattan distance calculation formula or the spherical Manhattan distance calculation formula to calculate the second distance from the second position to the second target position. The second processing module 530 may use the Manhattan distance calculation formula or the spherical Manhattan distance calculation formula to calculate the fourth distance from the first position to the second position. The path planning auxiliary device 500 may also include a first calculation module and a second calculation module. The first calculation module is used to calculate the expected driving speed based on the fourth distance; the second calculation module is used to calculate the expected driving time based on the expected driving speed and the fourth distance.

[0104] In another embodiment, the judgment module 510 can be used to determine whether the first position and the second position belong to the same area. The first processing module 520 can be used to calculate the first distance from the first position to the first target position, calculate the second distance from the second position to the second target position, and obtain the first driving time from the first target position to the second target position through the map service if the first position and the second position belong to different areas, the first target position is a position in the area to which the first position belongs, and the second target position is a position in the area to which the second position belongs; based on the first distance, the second distance and the first driving time, the expected driving time from the first position to the second position is obtained. The second processing module 530 can be used to calculate the fourth distance from the first position to the second position if the first position and the second position belong to the same area; based on the fourth distance, the expected driving time from the first position to the second position is obtained.

[0105] The path planning auxiliary device 500 may further include a clustering module for performing cluster analysis on multiple locations to obtain multiple categories, each category corresponding to an area.

[0106] The path planning method disclosed herein may also be implemented as a path planning device. Figure 6 FIG. 1 is a schematic diagram showing the structure of a path planning device according to an embodiment of the present disclosure. The functional units of the path planning device can be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present disclosure. It can be understood by those skilled in the art that Figure 6 The functional units described can be combined or divided into sub-units to implement the principles of the above invention. Therefore, the description herein can support any possible combination, division, or further limitation of the functional units described herein. The following is a brief description of the functional units that the path planning auxiliary device can have and the operations that each functional unit can perform. For the details involved, please refer to the relevant description above, which will not be repeated here.

[0107] See also Figure 6 , the path planning device 600 may include an acquisition module 610 and a path planning module 620 .

[0108] The acquisition module 610 can use the path planning assistance device 500 mentioned above to obtain a distance matrix or a driving time matrix for multiple locations. The distance matrix is ​​used to represent the distance between any two locations among the multiple locations, and the driving time matrix is ​​used to represent the expected driving time between any two locations among the multiple locations.

[0109] The path planning module 620 can solve the driving path from the starting position to the end position using a path planning algorithm based on a distance matrix or a driving time matrix, wherein the path planning algorithm is a sampling-based path planning algorithm or a search-based path planning algorithm.

[0110] Figure 7 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned path planning assistance method or path planning method according to an embodiment of the present invention is shown.

[0111] See also Figure 7 , the computing device 700 includes a memory 710 and a processor 720 .

[0112] The processor 720 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 720 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 720 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

[0113] The memory 710 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 720 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 710 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 710 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0114] The memory 710 stores executable codes, and when the executable codes are processed by the processor 720, the processor 720 can execute the path planning assistance method or the path planning method mentioned above.

[0115] The path planning assistance method, path planning method, apparatus and computing device according to the present invention have been described above in detail with reference to the accompanying drawings.

[0116] In addition, the method according to the present invention may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present invention.

[0117] Alternatively, the present invention may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present invention.

[0118] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.

[0119] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0120] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A path planning assistance method, characterized in that: include: Determining whether the first location and the second location belong to the same area; If the first position and the second position belong to different areas, a first distance from the first position to a first target position is calculated, a second distance from the second position to a second target position is calculated, and a third distance from the first target position to the second target position is obtained through a map service, wherein the first target position is a position in the area to which the first position belongs, and the second target position is a position in the area to which the second position belongs; the first distance, the second distance, and the third distance are added together to obtain a fourth distance from the first position to the second position; as well as If the first position and the second position belong to the same area, a fourth distance from the first position to the second position is calculated.

2. The method according to claim 1, characterized in that: Any of the areas corresponds to a street.

3. The method according to claim 1, characterized in that Also includes: Cluster analysis is performed on multiple locations to obtain multiple categories, each of which corresponds to one of the regions.

4. The method according to claim 1, characterized in that: Calculating a first distance from the first position to a first target position includes: using a Manhattan distance calculation formula or a spherical Manhattan distance calculation formula to calculate the first distance from the first position to the first target position, Calculating a second distance from the second position to the second target position includes: using a Manhattan distance calculation formula or a spherical Manhattan distance calculation formula to calculate the second distance from the second position to the second target position, Calculating a fourth distance from the first position to the second position includes: calculating the fourth distance from the first position to the second position using a Manhattan distance calculation formula or a spherical Manhattan distance calculation formula.

5. The method according to claim 1, characterized in that Also includes: calculating an expected travel speed based on the fourth distance; An expected driving duration is calculated based on the expected driving speed and the fourth distance.

6. A path planning assistance method, characterized in that: include: Determining whether the first location and the second location belong to the same area; If the first position and the second position belong to different areas, a first distance from the first position to a first target position is calculated, a second distance from the second position to a second target position is calculated, and a first driving time from the first target position to the second target position is obtained through a map service, wherein the first target position is a position in the area to which the first position belongs, and the second target position is a position in the area to which the second position belongs; based on the first distance, the second distance and the first driving time, an expected driving time from the first position to the second position is obtained; as well as If the first location and the second location belong to the same area, a fourth distance from the first location to the second location is calculated; and an expected driving time from the first location to the second location is obtained based on the fourth distance.

7. A path planning method, characterized in that: include: Using the method described in any one of claims 1 to 6, a distance matrix or a driving time matrix is ​​obtained for a plurality of locations, wherein the distance matrix is ​​used to characterize the distance between any two locations among the plurality of locations, and the driving time matrix is ​​used to characterize the expected driving time between any two locations among the plurality of locations; Based on the distance matrix or the driving time matrix, a path planning algorithm is used to solve the driving path from the starting position to the end position.

8. A path planning auxiliary device, characterized in that: include: A determination module, used to determine whether the first position and the second position belong to the same area; A first processing module is used for calculating a first distance from the first position to a first target position, calculating a second distance from the second position to a second target position, and obtaining a third distance from the first target position to the second target position through a map service if the first position and the second position belong to different regions, wherein the first target position is a position in the region to which the first position belongs, and the second target position is a position in the region to which the second position belongs; and adding the first distance, the second distance, and the third distance to obtain a fourth distance from the first position to the second position; as well as The second processing module is configured to calculate a fourth distance from the first position to the second position if the first position and the second position belong to the same area.

9. A computing device comprising: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 7.

10. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Method and device for acquiring distance matrix in service visit scene

    CN120632179A