Path planning method and device, equipment and storage medium

By splitting the steering capability into the shortest straight-line driving distance and the maximum steering angle, optimizing the path planning sampling algorithm and performing path smoothing, the problem of performance degradation of the path planning algorithm under the turning radius constraint in high-dimensional space is solved, and efficient path planning is achieved.

CN118730139APending Publication Date: 2024-10-01THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In path planning in high-dimensional space, the performance of the path planning algorithm based on graph search decreases when solving the turning radius constraint, and the path planning sampling algorithm needs to be optimized to maintain efficiency.

Method used

By splitting the steering ability of the moving object into the shortest straight-line driving distance and the maximum steering angle, the path planning sampling algorithm is optimized, nodes that do not meet these constraints are ignored, and nodes that do not meet the constraints are deleted in the path smoothing step to ensure that the path meets Steering capability limitations.

Benefits of technology

Taking into account the steering capability constraints, the performance of the optimized algorithm does not decrease significantly and can generate effective paths that conform to actual scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730139A_ABST
    Figure CN118730139A_ABST
Patent Text Reader

Abstract

The invention relates to a path planning method and device, equipment and a storage medium. The shortest linear driving distance and the maximum steering angle are set based on the steering capacity of the moving object, the shortest linear driving distance is used for representing the shortest driving linear distance needed by the moving object to achieve steering, and the maximum steering angle is used for representing the maximum steering angle capable of being completed by the moving object under the shortest linear driving distance; optimizing a path planning sampling algorithm based on the shortest straight driving distance and the maximum steering angle; and determining the motion path of the moving object from the starting position to the final position based on the optimized path planning sampling algorithm. Therefore, the path planning sampling algorithm is optimized based on the two constraint conditions of the shortest straight line driving distance and the maximum steering angle, so that the optimized algorithm does not significantly reduce the algorithm performance while performing path planning by considering the steering capability constraint of the moving object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] When the nodes of path planning are known (when a graph theory model can be built), the path planning algorithm based on search is often used to solve the problem. In this scenario, we need to find the shortest path between a single starting point and several end points at the same time. The algorithm that solves this type of problem is called a single-source shortest path algorithm. Common single-source shortest path algorithms based on search include Dijkstra algorithm and SPFA algorithm. If the shortest path problem with a single starting point and a single end point is to be solved, common algorithms include A* algorithm, D* algorithm, Theta* algorithm, etc.

[0003] However, in the path planning problem in high-dimensional space, the path planning algorithm based on graph search will have problems such as poor solution speed and high difficulty in map modeling. In order to ensure efficiency, path planning algorithms based on sampling methods such as RRT* and BIT* are often used. This type of algorithm selects appropriate samples from the search space to reduce the search space to only the selected samples, and can perform planning on the sampled search space at the same time.

[0004] However, in many actual scenarios where sampling-based path planning algorithms are required, moving objects are subject to certain turning radius constraints when turning. In order to use sampling-based path planning algorithms to solve the problem of turning radius constraints, the performance of the algorithm is often reduced.

[0005] Therefore, it is necessary to optimize the path planning sampling algorithm (such as the RRT* algorithm and the BIT* algorithm) so as to solve the problem of turning radius constraint without significantly reducing the algorithm performance. Summary of the invention

[0006] A technical problem to be solved by the present disclosure is how to optimize the path planning sampling algorithm so as to solve the turning radius constraint problem while not significantly reducing the algorithm performance.

[0007] According to a first aspect of the present disclosure, a path planning method is provided, comprising: setting a minimum straight-line driving distance and a maximum steering angle based on the steering ability of a moving object, the shortest straight-line driving distance being used to characterize the shortest straight-line distance that the moving object needs to travel to achieve steering, and the maximum steering angle being used to characterize the maximum steering angle that the moving object can complete under the shortest straight-line driving distance; optimizing a path planning sampling algorithm based on the shortest straight-line driving distance and the maximum steering angle; and determining the motion path of the moving object from a starting position to an end position based on the optimized path planning sampling algorithm.

[0008] Optionally, based on the shortest straight-line driving distance and the maximum turning angle, the path planning sampling algorithm is optimized, including: based on the shortest straight-line driving distance and the maximum turning angle, the expansion tree search step in the path planning sampling algorithm is optimized, and the optimized expansion tree search step is configured to, when searching for the parent node with the lowest cost of the sampling point in the expansion tree, ignore the nodes in the expansion tree whose distance to the sampling point is less than the shortest straight-line driving distance or whose turning angle is greater than the maximum turning angle.

[0009] Optionally, the cost from the node in the expansion tree to the sampling point is positively correlated with a first cost and a second cost, respectively, the first cost is used to represent the minimum cost to reach the node, and the second cost is used to represent the distance between the node and the sampling point.

[0010] Optionally, the optimized expansion tree search step is configured to use the node in the expansion tree that satisfies the following formula as the parent node of the sampling point,

[0011]

[0012] Where i represents the sampling point, dist[i][dir] represents the shortest path length to the sampling point i and the entry direction is dir, j represents the node in the expansion tree, and dir k Indicates the entry direction of node j, dist[j][dir k ] indicates direction dir k The shortest path length to node j, edge[j][i] represents the distance between node i and node j, R represents the maximum turning angle, and D represents the shortest straight-line driving distance.

[0013] Optionally, based on the shortest straight-line driving distance and the maximum steering angle, the path planning sampling algorithm is optimized, including: based on the shortest straight-line driving distance and the maximum steering angle, the path smoothing step in the path planning sampling algorithm is optimized, and the optimized path smoothing step is configured to traverse each node in the motion path, determine whether the node meets the constraint conditions, and if the constraint conditions are met, delete the node from the motion path, and connect the previous node of the node in the motion path with the next node of the node, wherein the constraint conditions include: the distance between the previous node of the node and the next node of the node in the motion path is greater than or equal to the shortest straight-line driving distance; and / or the steering angle of the moving object moving from the previous node of the node to the next node of the node is less than or equal to the maximum steering angle.

[0014] Optionally, the method further includes: mapping the entry direction of the moving object at each node to one of a plurality of pre-set directions.

[0015] According to a second aspect of the present disclosure, a path planning method is provided, comprising: adding a starting position to an expansion tree; determining whether an end condition is met; if the end condition is not met, iteratively executing the following process until the end condition is met: randomly sampling in a map to obtain a sampling point; searching in the expansion tree for a parent node with the minimum cost for the sampling point; determining a growth point based on the parent node and the sampling point, and adding the growth point to the expansion tree; and obtaining a motion path from the starting position to the end position based on the expansion tree.

[0016] Optionally, searching the expansion tree for the parent node with the minimum cost to the sampling point includes: ignoring nodes in the expansion tree whose distance to the sampling point is less than the shortest straight-line driving distance or whose turning angle is greater than the maximum turning angle.

[0017] Optionally, the method also includes: traversing each node in the motion path to determine whether the node meets the constraint conditions, and if so, deleting the node from the motion path, and connecting the previous node of the node in the motion path with the next node of the node, wherein the constraint conditions include: the distance between the previous node of the node and the next node of the node in the motion path is greater than or equal to the shortest straight-line driving distance; and / or the turning angle of the moving object moving from the previous node of the node to the next node of the node is less than or equal to the maximum turning angle.

[0018] According to a third aspect of the present disclosure, a path planning device is provided, comprising: a setting module for setting a minimum straight-line driving distance and a maximum steering angle based on the steering ability of a moving object, the shortest straight-line driving distance being used to characterize the shortest straight-line distance that the moving object needs to travel to achieve steering, and the maximum steering angle being used to characterize the maximum steering angle that the moving object can complete under the shortest straight-line driving distance; an optimization module for optimizing a path planning sampling algorithm based on the shortest straight-line driving distance and the maximum steering angle; and a path planning module for determining the motion path of the moving object from a starting position to an end position based on the optimized path planning sampling algorithm.

[0019] Optionally, the optimization module optimizes the expansion tree search step in the path planning sampling algorithm based on the shortest straight-line driving distance and the maximum turning angle, and the optimized expansion tree search step is configured to ignore the nodes in the expansion tree whose distance to the sampling point is less than the shortest straight-line driving distance or whose turning angle is greater than the maximum turning angle when searching for the parent node with the lowest cost of the sampling point in the expansion tree.

[0020] Optionally, the cost from the node in the expansion tree to the sampling point is positively correlated with a first cost and a second cost, respectively, the first cost is used to represent the minimum cost to reach the node, and the second cost is used to represent the distance between the node and the sampling point.

[0021] Optionally, the optimized expansion tree search step is configured to use the node in the expansion tree that satisfies the following formula as the parent node of the sampling point,

[0022]

[0023] Where i represents the sampling point, dist[i][dir] represents the shortest path length to the sampling point i and the entry direction is dir, j represents the node in the expansion tree, and dir k Indicates the entry direction of node j, dist[j][dir k ] indicates direction dir k The shortest path length to node j, edge[j][i] represents the distance between node i and node j, R represents the maximum turning angle, and D represents the shortest straight-line driving distance.

[0024] Optionally, the optimization module optimizes the path smoothing step in the path planning sampling algorithm based on the shortest straight-line driving distance and the maximum steering angle, and the optimized path smoothing step is configured to traverse each node in the motion path and determine whether the node meets the constraint conditions. If the constraint conditions are met, the node is deleted from the motion path, and the previous node of the node in the motion path is connected to the next node of the node, wherein the constraint conditions include: the distance between the previous node of the node and the next node of the node in the motion path is greater than or equal to the shortest straight-line driving distance; and / or the steering angle of the moving object moving from the previous node of the node to the next node of the node is less than or equal to the maximum steering angle.

[0025] Optionally, the device further comprises: a discrete module, configured to map the entry direction of the moving object at each node to one of a plurality of preset directions.

[0026] According to a fourth aspect of the present disclosure, a path planning device is provided, comprising: an adding module, used to add a starting position to an expansion tree; a judging module, used to judge whether an end condition is met; an iterative processing module, used to iteratively execute the following process until the end condition is met if the end condition is not met: randomly sampling in a map to obtain a sampling point; searching for the parent node of the sampling point with the minimum cost in the expansion tree; determining a growth point based on the parent node and the sampling point, and adding the growth point to the expansion tree; a determining module, used to obtain a motion path from the starting position to the end position based on the expansion tree.

[0027] Optionally, the iterative processing module ignores nodes in the expansion tree whose distance to the sampling point is less than the shortest straight-line driving distance or whose turning angle is greater than the maximum turning angle.

[0028] Optionally, the device also includes: a path smoothing module, used to traverse each node in the motion path, determine whether the node meets the constraint conditions, and if so, delete the node from the motion path, and connect the previous node of the node in the motion path with the next node of the node, wherein the constraint conditions include: the distance between the previous node of the node and the next node of the node in the motion path is greater than or equal to the shortest straight-line driving distance; and / or the turning angle of the moving object from the previous node of the node to the next node of the node is less than or equal to the maximum turning angle.

[0029] According to a fifth 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 the first aspect or the second aspect above.

[0030] According to a sixth 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 the first aspect or the second aspect above.

[0031] According to the seventh 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 the first aspect or the second aspect above.

[0032] Therefore, the present invention splits the steering ability constraint of the moving object into two constraints, namely the shortest straight-line driving distance and the maximum steering angle, and optimizes the path planning sampling algorithm based on these two constraints, so that the optimized algorithm will not significantly reduce the algorithm performance while considering the steering ability constraint of the moving object to perform path planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] 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.

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

[0035] Figure 2 A schematic diagram showing the division of directions is shown.

[0036] Figure 3 A schematic diagram of a path planning process according to an embodiment of the present disclosure is shown.

[0037] Figure 4 A basic flow chart of smoothing a motion path is shown.

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

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

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

[0041] 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.

[0042] The present disclosure proposes to split the steering capability (such as turning radius) constraint of a moving object (such as a vehicle, a boat, a robot, etc.) into two constraints: the shortest straight-line driving distance and the maximum steering angle, so as to consider the constraint relationship. By optimizing the path planning sampling algorithm based on these two constraints, the optimized algorithm will not significantly reduce the algorithm performance while considering the steering capability constraint of the moving object to perform path planning.

[0043] The shortest straight-line driving distance is used to characterize the shortest straight-line distance that a moving object needs to travel to achieve a turn. The maximum steering angle is used to characterize the maximum steering angle that a moving object can achieve under the shortest straight-line driving distance.

[0044] Taking a moving object as an example, the turning ability of a vehicle can be expressed by a turning radius (i.e., the minimum turning radius of the vehicle). The turning radius refers to the distance from the steering center to the point where the front outer steering wheel contacts the ground during driving. The turning radius can largely characterize the vehicle's ability to pass through narrow curved areas or bypass insurmountable obstacles. As an example, the minimum turning radius of a vehicle can be calculated by the following formula: R = L / 2 (Sinψ). Among them, R represents the minimum turning radius of the vehicle; L represents the length of the vehicle; Ψ represents the maximum turning angle of the vehicle direction. The path of a vehicle when turning is similar to an arc, and the arc can be represented by several connected line segments within a certain error. The two constraints of the shortest straight-line driving distance and the maximum steering angle correspond to the shortest length of a line segment and the angle between line segments.

[0045] The specific values ​​of the shortest straight-line driving distance and the maximum steering angle can be flexibly set according to the steering ability of the moving object. Since the method of using line segments to simulate curves is lossy, the smaller the shortest straight-line driving distance is set, the smaller the maximum steering angle will be, and the simulation will be closer to the real scene, that is, the loss will be smaller.

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

[0047] See also Figure 1In step S110, the shortest straight-line driving distance and the maximum steering angle are set based on the steering ability of the moving object. The shortest straight-line driving distance and the maximum steering angle are set based on the steering ability of the moving object, that is, the steering ability constraint of the moving object is divided into two constraints, namely, the shortest straight-line driving distance and the maximum steering angle.

[0048] For the shortest straight-line driving distance, maximum steering angle and splitting principle, please refer to the relevant description above.

[0049] In step S120, the path planning sampling algorithm is optimized based on the shortest straight-line driving distance and the maximum turning angle.

[0050] Conventional path planning sampling algorithms do not consider the turning ability of a moving object when determining a path from a starting position to a terminal position, so that the resulting motion path may exceed the turning ability of the moving object.

[0051] The purpose of the present invention to optimize the path planning sampling algorithm based on the shortest straight-line driving distance and the maximum steering angle is to enable the optimized path planning sampling algorithm to take into account the steering ability of the moving object in the process of determining the path from the starting position to the end position, so that the determined motion path will not exceed the steering ability limit of the moving object.

[0052] The path planning sampling algorithm can also be called a sampling-based path planning algorithm. The path planning sampling algorithm mainly includes the RRT (Rapidly-exploring Random Tree) algorithm and an improved algorithm based on the RRT algorithm. The improved algorithm based on the RRT algorithm may include but is not limited to the RRT* algorithm and the BIT* algorithm.

[0053] The following uses the RRT algorithm as an example to illustrate the path planning process of the path planning sampling algorithm. For the path planning process using other algorithms (such as an improved algorithm based on the RRT algorithm), reference can be made to the prior art.

[0054] The RRT algorithm is an incremental construction method. During the construction process, the algorithm continuously generates random sampling points in the search space, finds the node closest to the sampling point in the expansion tree as the parent node, and extends from the parent node to the sampling point with a certain step length. If the end point of the extension line is located at a collision-free position, then the position can be added to the expansion tree as a valid node (i.e., a growth point). The growth process of this expansion tree continues until the distance between the end point and the expansion tree is within a certain range. The algorithm then searches for the shortest path connecting the starting point to the end point in the expansion tree.

[0055] Based on the path-finding characteristics of the path planning sampling algorithm, the present disclosure proposes that the expansion tree search step in the path planning sampling algorithm can be optimized, and / or the path smoothing step in the path planning sampling algorithm can also be optimized.

[0056] The optimization process of these two aspects is illustrated below.

[0057] 1. Optimize the expansion tree search step

[0058] The expansion tree search step in the path planning sampling algorithm is used to search the node with the minimum cost from the expansion tree as the parent node. After the parent node is found, a new node can be generated according to the algorithm flow and added to the expansion tree.

[0059] The existing expansion tree search step usually only considers the distance between the node and the sampling point in the expansion tree, and selects the node with the shortest distance as the parent node. The expansion tree search method ignores the steering ability constraint of the moving object.

[0060] To this end, the present disclosure proposes that the expansion tree search step in the path planning sampling algorithm can be optimized based on the shortest straight-line driving distance and the maximum turning angle, so that the optimized expansion tree search step can ignore the nodes that do not meet the turning ability constraints of the moving object when searching for the parent node from the expansion tree.

[0061] Specifically, the optimized expansion tree search step can be configured to ignore nodes in the expansion tree whose distance to the sampling point is less than the shortest straight-line driving distance or whose turning angle is greater than the maximum turning angle when searching for the parent node with the minimum cost to the sampling point in the expansion tree. The turning angle is used to represent the angle between the direction of the moving object entering the node and the direction of entering the sampling point, that is, the angle required for the moving object to turn from the direction of entering the node to the direction of entering the sampling point. The direction of the moving object entering the sampling point may refer to the direction represented by the line between the node and the sampling point.

[0062] The cost of the nodes and sampling points in the expansion tree may be positively correlated with the first cost and the second cost, respectively, the first cost is used to characterize the shortest path length to the node, and the second cost is used to characterize the distance between the node and the sampling point (such as the Euclidean distance). For example, the cost of the nodes and sampling points in the expansion tree may be equal to the sum of the first cost and the second cost, or may be equal to the weighted sum of the first cost and the second cost.

[0063] As an example, the optimized expansion tree search step can be configured to use the node in the expansion tree that satisfies the following formula as the parent node of the sampling point,

[0064]

[0065] Where i represents the sampling point, dist[i][dir] represents the shortest path length to the sampling point i and the entry direction is dir, j represents the node in the expansion tree, and dir k Indicates the entry direction of node j, dist[j][dir k ] indicates direction dir k The shortest path length to node j, edge[j][i] represents the distance between node i and node j, R represents the maximum turning angle, and D represents the shortest straight-line driving distance. Length(edge[j][i]) represents the distance between node i and node j. Length(edge[j][i]) can also be replaced by edge[j][i].

[0066] According to the above formula, the parent node that meets the constraint condition in the expansion tree is: k -dir|≤R)” and “the distance between the node and the sampling point is greater than or equal to the minimum straight-line driving distance (i.e., Length(edge[j][i])≥D)”. The cost of node j to reach sampling point i is equal to the cost of node j to reach sampling point i in the direction dir k The cost to reach node j is dist[j][dir k ] plus the cost from node j to sampling point i (i.e. the distance edge[j][i]).

[0067] By optimizing the expansion tree search step, on the one hand, the new nodes (i.e., growth points) added to the expansion tree based on the searched parent nodes and sampling points are nodes that meet the steering ability constraints of the moving object; on the other hand, the number of searched nodes can be reduced, thereby reducing the search space and speeding up the search.

[0068] 2. Optimize the path smoothing step

[0069] In order to make the motion path smoother, a path smoothing step can be added to the path planning sampling algorithm. After the motion path from the starting position to the end position is obtained by using the path planning sampling algorithm, the path smoothing step can be executed to smooth the motion path, and the smoothed motion path is used as the final motion path.

[0070] The basic processing flow of the path smoothing step can be described as follows.

[0071] Traverse each node in the motion path, such as traversing from the end position to the starting position in the motion path, and determine whether each node in the motion path can be skipped. If it can be skipped, delete the node from the motion path, and directly connect the previous node of the node in the motion path with the next node of the node.

[0072] Whether a node can be skipped can be determined by judging whether the node meets the constraint conditions.

[0073] The constraint conditions may include but are not limited to: the distance between the node before the node and the node after the node in the motion path is greater than or equal to the shortest straight-line driving distance; and / or the turning angle of the moving object from the node before the node to the node after the node is less than or equal to the maximum turning angle. The turning angle is used to represent the angle required for the moving object to turn from the direction of entering the previous node to the direction of entering the next node.

[0074] In addition, the constraint condition may also include that the moving object will not pass through obstacles when moving from a previous node to a next node.

[0075] For each node, it can be determined that the node can be skipped only when the node satisfies all constraints.

[0076] Therefore, by optimizing the path smoothing step (that is, optimizing the path smoothing algorithm Floyd Smooth) based on the shortest straight-line driving distance and the maximum turning angle, the motion path obtained based on the optimized path smoothing algorithm is more in line with the actual law.

[0077] So far, the process of optimizing the above two aspects in the path planning sampling algorithm based on the shortest straight-line driving distance and the maximum turning angle has been described in detail.

[0078] The present disclosure can also pre-set (i.e., divide) multiple (predetermined number, such as 16) directions, and map the entry direction of the moving object at each node to one of the pre-set multiple directions. In this way, the orientation of the moving object can be discretized into multiple directions. The number of divided directions can be determined by the sensitivity of the map data and the turning angle requirements. Specifically, the more divided directions there are, the more accurate the simulation of the real scene will be, but the search space will become larger. Therefore, when the sensitivity requirement is low, the number of divided directions can be reduced to reduce the search space.

[0079] Figure 2 FIG. 2 shows a schematic diagram of dividing the direction. Figure 2As shown in the figure, the direction range from 0 to 2π can be divided into 16 discrete directions. According to the direction segmentation result, the direction of the moving object entering the node can be mapped to one of the directions, so as to add a "direction" to the node and restrict its use of the path of the source direction at the node during path planning. Therefore, by discretizing the object's direction into multiple directions, the state space can be reduced while ensuring the accuracy error, and the algorithm solution speed can be accelerated.

[0080] In step S130, a moving path of the moving object from the starting position to the ending position is determined based on the optimized path planning sampling algorithm.

[0081] The starting position can also be called the initial position. The end position can also be called the final position. The direction of the moving object at the starting position can be fixed. The direction of the moving object at the final position can be fixed or not.

[0082] Figure 3 A schematic diagram of a path planning process according to an embodiment of the present disclosure is shown.

[0083] Combine the following Figure 3 The process of determining the motion path based on the optimized path planning sampling algorithm is exemplified, and the details involved can be referred to the mature technology in the field.

[0084] See also Figure 3 , first, step S310 may be executed to add the starting position to the expansion tree.

[0085] The starting position can be used as the root node of the expansion tree and added to the expansion tree. Initially, there is only one root node in the expansion tree. By randomly sampling and adding leaf nodes (i.e., growth points), the expansion tree can be continuously generated (i.e., expanded) until the end condition is met, and the path from the starting position to the end position can be obtained based on the expansion tree.

[0086] In step S320, it is determined whether the end condition is met.

[0087] The end condition can be set to that the distance between the end position and the expansion tree is within a certain range. As an example, it can be determined whether the distance between the new node currently added to the expansion tree (i.e., the growth node) and the end position is less than or equal to a predetermined threshold. If it is less than or equal to the predetermined threshold, it is determined that the end condition is met.

[0088] If the end condition is not met, step S330 to step S350 may be iteratively executed until the end condition is met.

[0089] In step S330, random sampling is performed in the map to obtain sampling points.

[0090] In step S340, the parent node with the minimum cost of the sampling point is searched in the expansion tree.

[0091] When searching for the parent node with the minimum cost to the sampling point, the nodes in the expansion tree whose distance to the sampling point is less than the shortest straight-line driving distance or whose turning angle is greater than the maximum turning angle can be ignored. The search principle for the parent node with the minimum cost to the sampling point can be found in the above description.

[0092] In step S350, a growth point is determined based on the parent node and the sampling point, and the growth point is added to the expansion tree.

[0093] It can be extended from the parent node to the sampling point with a certain step length. If the end point of the extension line is located at a collision-free position, the position can be added to the expansion tree as a growth point.

[0094] When the end condition is met, step S360 may be executed to smooth the motion path.

[0095] Figure 4 A basic flow chart of smoothing a motion path is shown.

[0096] See also Figure 4 , in step S361, the previous state point can be enumerated.

[0097] The nodes in the motion path may be enumerated in the direction from the end position to the start position, that is, the first enumerated state point (i.e., node) may refer to the node connected to the end position.

[0098] In step S362, it is determined whether the point can be skipped.

[0099] The judgment process can refer to the relevant description above.

[0100] If the point can be skipped, step S363 is executed to delete the point and connect the previous state point of the point with the next state point. If the point cannot be skipped, the point is retained and the process goes to step S364.

[0101] In step S364, it is determined whether all points in the motion path have been enumerated.

[0102] If all points in the motion path have been enumerated, the smoothing process ends; if all points in the motion path have not been enumerated, the process returns to step S361 and continues to enumerate the previous state point.

[0103] In summary, the present disclosure considers the steering ability (such as turning radius) constraint of a moving object by splitting it into two constraints: the shortest straight-line driving distance D and the maximum turning angle R, which facilitates the consideration of the constraint relationship; by discretizing the object's orientation into multiple directions, the state space can be reduced while ensuring a certain accuracy error, thereby speeding up the algorithm solution speed; and the optimized path smoothing method (such as the Floyd Smooth method) is used to smooth the path so that the path conforms to the laws of reality.

[0104] The path planning method disclosed herein may also be implemented as a path planning device. Figure 5 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 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.

[0105] See also Figure 5 The path planning device 500 may include a setting module 510 , an optimization module 520 and a path planning module 530 .

[0106] The setting module 510 is used to set the shortest straight-line driving distance and the maximum steering angle based on the steering ability of the moving object. The optimization module 520 is used to optimize the path planning sampling algorithm based on the shortest straight-line driving distance and the maximum steering angle. The path planning module 530 is used to determine the motion path of the moving object from the starting position to the end position based on the optimized path planning sampling algorithm.

[0107] The optimization module 520 can optimize the expansion tree search step in the path planning sampling algorithm based on the shortest straight-line driving distance and the maximum turning angle. The optimized expansion tree search step is configured to ignore the nodes in the expansion tree whose distance to the sampling point is less than the shortest straight-line driving distance or whose turning angle is greater than the maximum turning angle when searching for the parent node with the lowest cost of the sampling point in the expansion tree.

[0108] The cost from a node in the expansion tree to a sampling point is positively correlated with a first cost and a second cost, respectively. The first cost is used to represent the minimum cost to reach the node, and the second cost is used to represent the distance between the node and the sampling point.

[0109] The optimized expansion tree search step can be configured to use the node in the expansion tree that satisfies the following formula as the parent node of the sampling point,

[0110]

[0111] Where i represents the sampling point, dist[i][dir] represents the shortest path length to the sampling point i and the entry direction is dir, j represents the node in the expansion tree, and dir k Indicates the entry direction of node j, dist[j][dir k ] indicates direction dir k The shortest path length to node j, edge[j][i] represents the distance between node i and node j, R represents the maximum turning angle, and D represents the shortest straight-line driving distance.

[0112] The optimization module 520 can also optimize the path smoothing step in the path planning sampling algorithm based on the shortest straight-line driving distance and the maximum turning angle. The optimized path smoothing step is configured to traverse each node in the motion path and determine whether the node meets the constraint conditions. If the constraint conditions are met, the node is deleted from the motion path and the previous node of the node in the motion path is connected to the next node of the node, wherein the constraint conditions include: the distance between the previous node of the node and the next node of the node in the motion path is greater than or equal to the shortest straight-line driving distance; and / or the turning angle of the moving object from the previous node of the node to the next node of the node is less than or equal to the maximum turning angle.

[0113] The path planning device 500 may further include a discrete module. The discrete module is used to map the entry direction of the moving object at each node to one of a plurality of preset directions.

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

[0115] See also Figure 6 The path planning device 600 may include an adding module 610 , a judging module 620 , an iterative processing module 630 and a determining module 640 .

[0116] The adding module 610 is used to add the starting position to the expansion tree. The judging module 620 is used to judge whether the end condition is met. The iterative processing module 630 is used to iteratively execute the following process until the end condition is met if the end condition is not met: randomly sample in the map to obtain sampling points; search for the parent node with the minimum cost of the sampling point in the expansion tree; determine the growth point based on the parent node and the sampling point, and add the growth point to the expansion tree. The determining module 640 is used to obtain the motion path from the starting position to the end position based on the expansion tree.

[0117] The iterative processing module 630 may ignore the nodes in the expansion tree whose distance to the sampling point is less than the shortest straight-line driving distance or whose steering angle is greater than the maximum steering angle.

[0118] The path planning device 600 may also include a path smoothing module. The path smoothing module is used to traverse each node in the motion path, determine whether the node meets the constraint conditions, and if the constraint conditions are met, delete the node from the motion path, and connect the previous node of the node in the motion path with the next node of the node, wherein the constraint conditions include: the distance between the previous node of the node and the next node of the node in the motion path is greater than or equal to the shortest straight-line driving distance; and / or the turning angle of the moving object from the previous node of the node to the next node of the node is less than or equal to the maximum turning angle.

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

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

[0121] 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).

[0122] 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.

[0123] The memory 710 stores executable codes. When the executable codes are processed by the processor 720, the processor 720 can execute the path planning method, path planning device, and computing equipment mentioned above.

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

[0125] 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.

[0126] 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.

[0127] 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.

[0128] 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.

[0129] 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 method, characterized in that: include: The shortest straight-line driving distance and the maximum steering angle are set based on the steering ability of the moving object, wherein the shortest straight-line driving distance is used to represent the shortest straight-line distance that the moving object needs to travel to achieve steering, and the maximum steering angle is used to represent the maximum steering angle that the moving object can achieve under the shortest straight-line driving distance; Optimizing the path planning sampling algorithm based on the shortest straight-line driving distance and the maximum turning angle; The motion path of the moving object from the starting position to the end position is determined based on the optimized path planning sampling algorithm.

2. The method according to claim 1, characterized in that Based on the shortest straight-line driving distance and the maximum turning angle, the path planning sampling algorithm is optimized, including: Based on the shortest straight-line driving distance and the maximum turning angle, an expansion tree search step in a path planning sampling algorithm is optimized. The optimized expansion tree search step is configured to ignore nodes in the expansion tree whose distance to the sampling point is less than the shortest straight-line driving distance or whose turning angle is greater than the maximum turning angle when searching for the parent node of the sampling point with the minimum cost in the expansion tree.

3. The method according to claim 2, characterized in that The cost from the node in the expansion tree to the sampling point is positively correlated with a first cost and a second cost, respectively. The first cost is used to represent the minimum cost to reach the node, and the second cost is used to represent the distance between the node and the sampling point.

4. The method according to claim 2, characterized in that: The optimized expansion tree search step is configured to use the node in the expansion tree that satisfies the following formula as the parent node of the sampling point, Where i represents the sampling point, dist[i][dir] represents the shortest path length to the sampling point i and the entry direction is dir, j represents the node in the expansion tree, and dir k Indicates the entry direction of node j, dist[j][dir k ] indicates direction dir k The shortest path length to node j, edge[j][i] represents the distance between node i and node j, R represents the maximum turning angle, and D represents the shortest straight-line driving distance.

5. The method according to claim 1, characterized in that Based on the shortest straight-line driving distance and the maximum turning angle, the path planning sampling algorithm is optimized, including: Based on the shortest straight-line driving distance and the maximum steering angle, the path smoothing step in the path planning sampling algorithm is optimized, and the optimized path smoothing step is configured to traverse each node in the motion path and determine whether the node meets the constraint conditions. If the constraint conditions are met, the node is deleted from the motion path, and the previous node of the node in the motion path is connected to the next node of the node, wherein the constraint conditions include: the distance between the previous node of the node and the next node of the node in the motion path is greater than or equal to the shortest straight-line driving distance; and / or the steering angle of the moving object moving from the previous node of the node to the next node of the node is less than or equal to the maximum steering angle.

6. The method according to claim 1, characterized in that Also includes: The entry direction of the moving object at each node is mapped to one of a plurality of pre-set directions.

7. A path planning method, characterized in that: include: Add the starting position to the expansion tree; Determine whether the end condition is met; If the end condition is not met, the following process is iterated until the end condition is met: random sampling is performed in the map to obtain sampling points; Searching for the parent node of the sampling point with the minimum cost in the expansion tree; determining a growth point based on the parent node and the sampling point, and adding the growth point to the expansion tree; A motion path from the starting position to the end position is obtained based on the expansion tree.

8. A path planning device, characterized in that: include: A setting module, used to set a shortest straight-line driving distance and a maximum steering angle based on the steering ability of the moving object, wherein the shortest straight-line driving distance is used to represent the shortest straight-line distance that the moving object needs to travel to achieve steering, and the maximum steering angle is used to represent the maximum steering angle that the moving object can achieve under the shortest straight-line driving distance; An optimization module, used for optimizing a path planning sampling algorithm based on the shortest straight-line driving distance and the maximum turning angle; The path planning module is used to determine the motion path of the moving object from the starting position to the end position based on the optimized path planning sampling algorithm.

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.