Path planning method and apparatus
By using the preset cost estimation function and obstacle screening mechanism in the A* algorithm, the path planning of unmanned vehicles is optimized, which solves the problems of low efficiency and insufficient safety of path planning in unstructured environments, and achieves more accurate and efficient Path calculation.
Patent Information
- Application Number
- PCT/CN2023/129531
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-06
- Filing Date
- 2023-11-03
- Publication Date
- 2024-09-12
AI Technical Summary
In an unstructured environment, when the A* algorithm is used for unmanned vehicle path planning, calculating the f value of each path node in the Openlist leads to inefficiency, and the traditional algorithm fails to fully consider obstacles such as grass, trees and stones on the path. impact on driving safety and comfort.
Calculate the cost estimate of path nodes based on obstacle information and elevation information through the preset cost estimation function, filter and add qualified nodes to the open list, determine jump points along the straight and diagonal directions, and combine the elevation and obstacle weight coefficients Optimize cost estimates and improve the accuracy and efficiency of path planning.
It improves the accuracy and efficiency of path planning, enhances the driving safety and comfort of unmanned vehicles, reduces redundant calculations, and optimizes adaptability to unstructured environments.
Smart Images

Figure CN2023129531_12092024_PF_FP_ABST
Abstract
Description
Path planning method and device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese invention patent application No. 202310246297.9 filed on March 6, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of computer technology, and in particular to a path planning method and device. Background Art
[0004] In related technologies, unmanned vehicles typically use the A* (A-star algorithm) for path planning. The A* algorithm combines the advantages of the Dijkstra algorithm and the BFS algorithm (breadth-first search algorithm), which can both improve efficiency and optimize the planned path. However, in unstructured environments, the Openlist includes all path nodes between the starting point and the end point. This path planning algorithm needs to calculate the f value (minimum cost estimate) for each path node. This results in low path planning efficiency.
[0005] Summary of the Invention
[0006] The present disclosure provides a path planning method and device. The technical solution of the present disclosure is as follows:
[0007] According to a first aspect of an embodiment of the present disclosure, a path planning method is provided, including:
[0008] Acquire first path nodes and environmental information between a starting point and an end point; wherein the environmental information includes obstacle information on each first path node;
[0009] Calculating a cost estimation value of each first path node based on obstacle information of each first path node using a preset cost estimation function;
[0010] A planned path is determined based on the cost estimate value of each first path node, the starting point, and the end point.
[0011] In one or more embodiments, the environmental information further includes elevation information of each of the first path nodes;
[0012] The calculating the cost estimation value of each first path node based on the obstacle information of the first path node by using a preset cost estimation function includes:
[0013] The cost estimation value of each first path node is calculated based on the obstacle information and elevation information of the first path node using the preset cost estimation function.
[0014] In one or more embodiments, before calculating the cost estimate value of each first path node based on the obstacle information and elevation information of the first path node using the preset cost estimation function, the method further includes:
[0015] Adding a second path node among the first path nodes that meets a preset screening rule to an open list;
[0016] The calculating the cost estimation value of each first path node based on the obstacle information and elevation information of the first path node by using the preset cost estimation function includes:
[0017] The cost estimation value of each second path node is calculated based on the elevation information and the obstacle information of each second path node in the open list by using the preset cost estimation function.
[0018] In one or more implementations, adding the second path node in the first path node that meets a preset screening rule to an open list includes:
[0019] For the i-th first path node, determining whether the end point is in the closed list; where i belongs to [1, n], and n is the total number of the first path nodes;
[0020] If the end point is not in the closed list, taking the i-th node of the first path as the parent node, and determining the jump point along the straight line direction and the diagonal direction;
[0021] The hop is determined as a second path node, and the second path node is added to the open list.
[0022] In one or more implementations, taking the i-th first path node as a parent node and determining a jump point along a straight line direction and a diagonal line direction includes:
[0023] Taking the i-th first path node as a parent node, determine a jump point that is not in the closed list along a first direction of a straight line of the i-th first path node; wherein the first direction includes the left front and left of the i-th first path node, the current direction of the i-th first path node, and the right front and right of the i-th first path node;
[0024] Taking the i-th first path node as the parent node, determine the jump point that does not exist in the closed list along the second direction of the diagonal direction of the i-th first path node; wherein the second direction includes the horizontal component direction of the current direction of the i-th first path node, the current direction of the i-th first path node, and the vertical component direction of the i-th first path node.
[0025] In one or more implementations, determining the planned path based on the cost estimate of each first path node, the starting point, and the end point includes:
[0026] Determining the second path node corresponding to the minimum cost estimation value as the third path node;
[0027] Each of the third path nodes, the starting point, and the end point is added to a closed list to obtain a planned path.
[0028] In one or more embodiments, calculating the cost estimate value of each second path node in the open list based on the elevation information and obstacle information of each second path node using a preset cost estimation function includes:
[0029] For the i-th second path node, calculating a first estimated cost based on the elevation information of the i-th second path node and an elevation information weight coefficient;
[0030] Calculating a second estimated cost based on the obstacle information and obstacle weight coefficient of the i-th second path node;
[0031] Calculating a third estimated cost from the starting point to the i-th second path node, and calculating a fourth estimated cost from the i-th second path node to the end point;
[0032] A cost estimate value of the i-th second path node is calculated based on the first estimated cost, the second estimated cost, the third estimated cost, and the fourth estimated cost.
[0033] In one or more implementations, calculating the first estimated cost based on the elevation information and the elevation information weight coefficient of the i-th second path node includes:
[0034] Obtaining the first coordinate and first elevation value of the i-th second path node, and the second coordinate and second elevation value of the node to be expanded of the i-th second path node;
[0035] Calculating an elevation cost item based on the first coordinate and the first elevation value, the second coordinate and the second elevation value;
[0036] The first estimated cost is calculated based on the elevation cost item and the elevation information weight coefficient.
[0037] In one or more embodiments, the obstacles include rocks and plants, the obstacle information includes rock particle size and plant height, and the obstacle weight coefficients include a rock weight coefficient, a rock influence coefficient, a plant weight coefficient, a plant influence coefficient, a plant height influence coefficient, a damping coefficient, a plant area deformation variable, and a continuous grid number of plant semantic information.
[0038] The calculating the second estimated cost based on the obstacle information and the obstacle weight coefficient of the i-th second path node includes:
[0039] Calculating a stone cost term based on the stone particle size of the i-th second path node, the stone influence coefficient, and the grid side length;
[0040] Calculating a first sub-estimated cost based on the stone cost item and the stone weight coefficient;
[0041] Calculating a vegetation cost item based on the vegetation height of the i-th second path node, the vegetation influence coefficient, the vegetation height influence coefficient, the damping coefficient, the vegetation area deformation, and the number of grids of continuous vegetation semantic information;
[0042] Calculating a second sub-estimated cost based on the vegetation cost item and the vegetation weight coefficient;
[0043] The second estimated cost is calculated based on the first sub-estimated cost and the second sub-estimated cost.
[0044] In one or more implementations, the formula of the preset cost estimation function is: f(i)=g(i)+h(i)+k1·h step (i)+k2free hard (i)+k3free soft (i)
[0045] Among them, f(i) represents the cost estimate, g(i) represents the third estimated cost, h(i) represents the fourth estimated cost, k1 represents the height information weight coefficient, h step (i) represents the first estimated cost, k2 represents the stone weight coefficient, free hard (i) represents the first estimated cost, k3 represents the grass weight coefficient, free soft (i) represents the second estimated cost, i belongs to [1, n], and n is the total number of the second path nodes.
[0046] According to a second aspect of an embodiment of the present disclosure, a path planning device is provided, including:
[0047] An acquisition module, configured to acquire first path nodes and environmental information between a starting point and an end point; wherein the environmental information includes obstacle information on each first path node;
[0048] a calculation module, configured to calculate a cost estimation value of each first path node based on the obstacle information of the first path node using a preset cost estimation function;
[0049] A planning module is used to determine a planned path based on the cost estimate value of each first path node, the starting point and the end point.
[0050] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0051] processor;
[0052] a memory for storing instructions executable by the processor;
[0053] The processor is configured to execute the instructions to implement the path planning method as described in any one of the first aspects.
[0054] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the path planning method as described in any one of the first aspects.
[0055] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the path planning method as described in any one of the first aspects.
[0056] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0058] Fig. 1 is a flow chart showing a path planning method according to an exemplary embodiment.
[0059] Fig. 2 is a schematic diagram showing forced neighbor nodes in a straight line direction according to an exemplary embodiment.
[0060] Fig. 3 is a schematic diagram showing a forced neighbor node in a diagonal direction according to an exemplary embodiment.
[0061] FIG4 is a schematic diagram showing a Monte Carlo preprocessing result according to an exemplary embodiment.
[0062] Fig. 5 is a schematic diagram showing a slope model of elevation information according to an exemplary embodiment.
[0063] Fig. 6 is a flow chart showing another path planning method according to an exemplary embodiment.
[0064] Fig. 7 is a block diagram showing a path planning device according to an exemplary embodiment.
[0065] Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0066] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0067] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.
[0068] Among related technologies, autonomous driving technology is a comprehensive system that integrates radar, cameras, navigation and positioning, and artificial intelligence. Path planning is key to autonomous driving technology. Global path planning is equivalent to pre-planning before the autonomous vehicle officially starts, providing a roughly reasonable path from the starting point to the end point. Currently, commonly used global path planning algorithms include Dijkstra's algorithm, Astar (A*) algorithm, and simulated annealing algorithm. The A* algorithm is a typical heuristic search algorithm. It combines the advantages of the Dijkstra algorithm and the BFS (breadth-first search algorithm) algorithm to improve efficiency while ensuring that the planned path is optimal. However, although the path planning results obtained by the A* algorithm are better than those of other grid graph search algorithms, it still has the following defects in unstructured environments: 1. In terms of planning efficiency, the A* algorithm calculates the f value (cost estimate) of each node in the Openlist (development list) during the search process, resulting in high time complexity and a large number of unnecessary node calculations; 2. In terms of security, in complex unstructured environments, in the traditional A* algorithm, the planned path is formed by connecting the center points between the grids to form a line segment, and in order to obtain the global optimal path, the turning points of the planned path are often far from obstacles. Being too close to or crossing a grid vertex makes the lateral volume of the unmanned vehicle more likely to collide with an obstacle; 3. In terms of comfort, there are always potholes and slopes on roads in unstructured environments. The traditional A* algorithm does not consider the influencing factors in the z-axis direction, which will affect the comfort of the unmanned vehicle when passing through such roads; 4. In terms of environmental characteristics, environmental factors that are easily overlooked in unstructured environments mainly include grass and stones. Because these two factors are generally not regarded as insurmountable obstacles at the perception level, they will have different degrees of impact on the unmanned vehicle's travel speed, body and perception system layout during actual driving.
[0069] Based on this, the embodiments of the present disclosure provide a path planning method, device, electronic device and storage medium. The path planning method, device, electronic device and storage medium provided by the embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0070] Figure 1 is a flow chart of a path planning method according to an exemplary embodiment, which can be applied to an unmanned vehicle. As shown in Figure 1 , the path planning method may include the following steps.
[0071] In step S101 , the first path node and environment information between the starting point and the end point are obtained.
[0072] The environmental information includes obstacle information on each first path node.
[0073] In the disclosed embodiments, when planning a path for an unmanned vehicle, path nodes (i.e., first path nodes) and environmental information between the starting point and the end point of the unmanned vehicle may be obtained. It is understood that there are typically multiple first path nodes, and the environmental information may be environmental information for each first path node. For example, all first path nodes between the starting point and the end point of the unmanned vehicle, as well as obstacle information for each first path node, may be obtained.
[0074] In step S102 , a cost estimation value of each first path node is calculated based on the obstacle information of each first path node using a preset cost estimation function.
[0075] In the disclosed embodiment, after obtaining obstacle information for each first path node, a cost estimate for each first path node can be calculated using a preset cost estimation function. For example, the cost estimate for each first path node can be calculated using the preset cost estimation function based on the obstacle information for each first path node. This ensures that the cost estimate for each first path node incorporates obstacle information, making the cost estimate more accurate and realistic, and improving the accuracy and applicability of the cost estimate.
[0076] In step S103 , a planned path is determined based on the cost estimate value, the start point, and the end point of each first path node.
[0077] In the disclosed embodiment, after calculating the cost estimate for each first path node, a planned path can be determined based on the cost estimate for each first path node, the starting point, and the end point. For example, the first path node, the starting point, and the end point with the smallest cost estimate can be determined as the planned path for the unmanned vehicle's current travel.
[0078] In the disclosed embodiments, first path nodes and environmental information between a starting point and a destination are obtained, including obstacle information at each first path node. A cost estimate is calculated for each first path node based on the obstacle information using a preset cost estimation function. A planned path is determined based on the cost estimate for each first path node, the starting point, and the destination. This comprehensively considers obstacle information at the path nodes, making the calculated cost estimate more accurate and more in line with actual needs. This improves the accuracy and applicability of the planned path, and thus effectively enhances the safety and comfort of the autonomous vehicle.
[0079] In one or more embodiments, the environmental information further includes elevation information of each first path node. Accordingly, the above step of calculating the cost estimate value of each first path node based on the obstacle information of each first path node using a preset cost estimation function may be specifically implemented as follows:
[0080] The cost estimation value of each first path node is calculated based on the obstacle information and elevation information of the first path node through a preset cost estimation function.
[0081] In an embodiment of the present disclosure, the environmental information may also include the elevation information of each first path node, that is, when obtaining the first path node between the starting point and the end point, and the environmental information of each first path node, it is necessary not only to obtain the obstacle information of each first path node, but also to obtain the elevation information of each first path node, wherein the elevation information may be, for example, an elevation value. Then, when calculating the cost estimate of each first path node, the cost estimate of each first path node may be calculated based on the obstacle information and elevation information of the first path node using a preset cost estimation function. In this way, the cost estimate can be calculated based on the obstacle information and the elevation information of each first path node, thereby further improving the accuracy of the cost estimate, thereby further improving the accuracy and applicability of the planned path, and improving the driving safety and comfort of the unmanned vehicle.
[0082] In one or more embodiments, before calculating the cost estimate value of each first path node based on the obstacle information and elevation information of the first path node using a preset cost estimation function, the following processing may be performed:
[0083] The second path node in the first path node that meets the preset screening rule is added to the open list.
[0084] At this time, the above step of calculating the cost estimation value of each first path node based on the obstacle information and elevation information of the first path node by using a preset cost estimation function may be specifically implemented as follows:
[0085] The cost estimation value of each second path node is calculated based on the elevation information and obstacle information of each second path node in the open list through a preset cost estimation function.
[0086] In an embodiment of the present disclosure, after obtaining the first path nodes and environmental information between the starting point and the end point, and before calculating the cost estimate for each first path node, the first path nodes can be screened to select path nodes that meet preset screening rules, i.e., second path nodes. The preset screening rules can be screening conditions for selecting second path nodes to be added to an open list, such as rules for selecting hops. The second path nodes can then be added to an open list, i.e., an open list. This ensures that the nodes in the open list do not include all path nodes between the starting point and the end point. Subsequently, the cost estimate is calculated. Instead of calculating the cost estimate for each first path node, the cost estimate can be calculated for each second path node in the open list. By screening the path nodes, the path nodes in the open list do not include all first path nodes, eliminating the need to calculate cost estimates for all first path nodes. This reduces the amount of cost estimate calculations, increases calculation speed, and effectively improves path planning efficiency.
[0087] In one or more embodiments, the adding of the first path node that satisfies a preset screening rule to the open list includes:
[0088] For the i-th first path node, determine whether the endpoint is in the closed list; where i belongs to [1, n], and n is the total number of first path nodes;
[0089] If the end point is not in the closed list, take the first path node of i as the parent node and determine the jump point along the straight line and diagonal direction;
[0090] The hop point is determined as a second path node, and the second path node is added to the open list.
[0091] In an embodiment of the present disclosure, for the i-th first path node, it is first determined whether the destination already exists in the closed list (i.e., the closelist). It is understood that i belongs to [1, n], where n is the total number of first path nodes, and i can be incremented from 1 to n. If the destination is already in the closelist, the path planning process ends. If the destination is not in the closelist, the i-th first path node can be used as the parent node to perform an X-direction determination. For example, determination can be performed along straight and diagonal directions to determine a jump point. The jump point can then be determined as the second path node, and the second path node can be added to the open list.
[0092] In one or more further embodiments, the above-mentioned method of determining the jump point along the straight line direction and the diagonal direction with the i-th first path node as the parent node includes:
[0093] Taking the i-th first path node as the parent node, determine a jump point that is not in the closed list along a first direction of the straight line of the i-th first path node; wherein the first direction includes the left front and left of the i-th first path node, the current direction of the i-th first path node, and the right front and right of the i-th first path node;
[0094] Taking the i-th first path node as the parent node, determine the jump point that does not exist in the closed list along the second direction of the diagonal direction of the i-th first path node; wherein the second direction includes the horizontal component direction of the current direction of the i-th first path node, the current direction of the i-th first path node, and the vertical component direction of the i-th first path node.
[0095] In an embodiment of the present disclosure, when determining jump points along a straight line with the i-th first path node as the parent node, jump points not in the closed list may be determined along a first direction of the straight line of the i-th first path node. Exemplarily, the first direction may include the left front and left of the i-th first path node, the current direction of the i-th first path node, and the right front and right of the i-th first path node. For example, when determining a jump point that does not exist in the closed list in the first direction of the straight line direction of the i-th first path node (hereinafter represented by node X), it is possible to determine whether the rear and left sides of node X are traversable. If the rear side of node X is not traversable and the left side is traversable, then a path node that does not exist in the closelist can be searched for along the left front and left sides of node X as a jump point; it is possible to determine whether the current direction of node X is traversable. If the current direction of node X is traversable, then a path node that does not exist in the closelist can be searched for along the current direction of node X as a jump point; it is also possible to determine whether the rear and right sides of node X are traversable. If the rear side of node X is not traversable and the right side is traversable, then a path node that does not exist in the closelist can be searched for along the right front and right sides of node X as a jump point.
[0096] When determining jump points along a diagonal direction with the i-th first path node as the parent node, jump points not in the closed list can be determined along a second direction of the diagonal direction of the i-th first path node. Exemplarily, the second direction can include the horizontal component direction of the current direction of the i-th first path node, the current direction of the i-th first path node, and the vertical component direction of the i-th first path node. For example, when determining jump points not in the closed list along the second direction of the diagonal direction of the i-th first path node (hereinafter referred to as node X), it can be determined whether the horizontal component direction of the current direction of node X is traversable. If the horizontal component direction of the current direction of node X is traversable, a path node not in the closed list can be searched for along the horizontal component direction of the current direction of node X as a jump point. It can also be determined whether the current direction of node X is traversable. If the current direction of node X is traversable, a path node not in the closed list can be searched for along the current direction of node X as a jump point. It can also be determined whether the vertical component direction of node X is traversable. If the vertical component direction of node X is traversable, a path node not in the closed list can be searched for along the vertical component direction of node X as a jump point.
[0097] It is understandable that the determination of the jump point is similar to the jump point search algorithm in the related art. For example, a mandatory neighbor node can be defined. A mandatory neighbor node refers to a node that has obstacles near the 8 neighbor nodes of the current search node X and the parent node X parent After passing through node X, it reaches its neighboring node X n The distance cost is no greater than reaching X without passing through node X n The distance cost of any path is X n is the mandatory neighbor node of X, and its screening rules are divided into straight-line direction and diagonal direction. Among them, for the straight-line direction screening rule, it is mainly based on whether there are obstacle nodes in the area of node X. If the current moving direction is horizontally to the right as an example, as shown in Figure 2, in Figure 2, B2 and B7 are obstacle grids, A is the current node, and the rightmost grid is the target point. If there is an obstacle node above the current node X, and the next node to be reached and the node to the upper right of the current node are non-obstacle nodes, then the node to the upper right is the mandatory neighbor node. For the diagonal direction screening rule, it is mainly based on the parent node X. parent The neighborhood is screened for obstacles. For example, if the current moving direction is the lower right, as shown in Figure 3, B2 and B4 are obstacle grids, A is the current node, B1 is the passable node, the rightmost grid is the target point, and B1 is the forced neighbor node. If the parent node X parent When there is an obstacle node below, and both the bottom and bottom left of the current node X are available nodes, the forced neighboring node is its bottom left node B6.
[0098] You can also define jump point screening rules. The main definition of jump point screening rules is: if the current node is the starting point or the end point, then the node is a jump point; if the current node has a mandatory neighbor node, then the node is a jump point; if the movement method from the parent node of a node to this node is diagonal movement, and other jump points can be reached by moving in a straight line, then this node is also a jump point. Among them, the jump rule can be defined as: under the same conditions, the priority order of search direction during planning is horizontal > vertical > diagonal, and the openlist only stores jump points used to change the walking direction. Let l parent→n For the parent node x parent Do not pass through the current node x and reach x through other moving paths n The path length, l parent→x→ n For the parent node x parent Go through the current node to reach x n The path length, when the parent node x parent The movement to the current node x is a straight line and l parent→n ≤lparent→x→n, then after passing x, it will not move to x. When the parent node x parent The movement to the current node x is diagonal and l parent→n <l parent →x→n When it passes through x, it will not move to x. n At the same time, to further improve search efficiency and reduce the ineffective calculation of redundant points, first, we can perform jump point determination on each node in the map based on the jump point definition to find all major jump points. Second, we establish a memory space to store distance values in the eight directions of each non-obstructed grid. Using the Monte Carlo search tree as the framework, we use a Monte Carlo-based preprocessing method to assign pre-stored information in the eight directions to each grid in the map. The linear and diagonal reachability of each jump point is calculated. If the step length of each movement is 1, the preprocessing results can be shown in Figure 4. Moreover, based on the Monte Carlo preprocessing results, the search process is divided into two types during the formal path search: oblique search and linear search. For the three distance conditions, three cases are divided into three types: for distance n, the node obtained after n steps from the jump point is pushed into the openlist (this method reduces the number of iterations when selecting the jump point); for distance 0, the search in that direction needs to be terminated; for negative distances, the jump point situation of the node n steps away needs to be determined. In this way, invalid calculations on redundant nodes can be reduced; virtual jump points are set near reasonable turning points to ensure the lateral safety of the unmanned vehicle.
[0099] It should be noted that, according to the Monte Carlo preprocessing results, the virtual jump point method can also be used to improve the search strategy A *The algorithm performs safety optimization. If a node's distance value reserve contains two zero distances and the remaining slant distance is n, it indicates that there is an obstacle among the current node's neighbors. The algorithm then determines whether there are mandatory neighbors. If so, the next node in the current node's search direction is directly added to the closelist, eliminating the need to calculate the f-value. This further reduces computational effort and improves path planning efficiency.
[0100] In one or more further embodiments, the above steps may be implemented as follows to determine the planned path based on the cost estimate, the starting point, and the end point of each first path node:
[0101] Determine the second path node corresponding to the minimum cost estimate as the third path node;
[0102] Add each third path node, start point, and end point to the closed list to obtain the planned path.
[0103] In the embodiment of the present disclosure, after obtaining the cost estimate of each second path node, the minimum cost estimate (i.e., f value) can be selected from the cost estimates, and the second path node corresponding to the minimum cost estimate can be determined as the third path node. Considering that there are usually multiple second path nodes, there may also be one or more third path nodes. Then, the third path node can be added to the closed list (i.e., closelist) as a parent node, and the starting point and end point of the unmanned vehicle can be added to the closelist. At this time, the closelist includes the starting point, end point, and the third path node corresponding to the minimum cost estimate. These path nodes in the closelist can be considered as the planned path of the unmanned vehicle's current travel.
[0104] In one or more embodiments, calculating the cost estimate of each second path node based on the elevation information and obstacle information of each second path node in the open list using a preset cost estimation function includes:
[0105] For the i-th second path node, calculating a first estimated cost based on the elevation information of the i-th second path node and the elevation information weight coefficient;
[0106] Calculating a second estimated cost based on the obstacle information and obstacle weight coefficient of the i-th second path node;
[0107] Calculating a third estimated cost from the starting point to the i-th second path node, and calculating a fourth estimated cost from the i-th second path node to the end point;
[0108] A cost estimate value of the i-th second path node is calculated based on the first estimated cost, the second estimated cost, the third estimated cost, and the fourth estimated cost.
[0109] In an embodiment of the present disclosure, when calculating the cost estimate of each second path node, for the i-th second path node, the elevation information weight coefficient can be obtained, and based on the elevation information (e.g., elevation value) of the i-th second path node and the elevation information weight coefficient, the estimated cost value of the i-th second path node in the z-axis direction, i.e., the first estimated cost, can be calculated. The obstacle weight coefficient can be obtained, and based on the obstacle information of the i-th second path node and the obstacle weight coefficient, the estimated cost value of the i-th second path node in the obstacle factor, i.e., the second estimated cost, can be calculated. The estimated cost from the starting point to the i-th second path node, i.e., the third estimated cost, i.e., the g(n) term in the A* algorithm heuristic function, can also be calculated, as can the estimated cost from the i-th second path node to the end point, i.e., the fourth estimated cost, i.e., the h(n) term in the A* algorithm heuristic function. Then, based on the aforementioned first estimated cost, second estimated cost, third estimated cost, and fourth estimated cost, an estimated cost value for the i-th second path node can be calculated. For example, the sum of the first estimated cost, second estimated cost, third estimated cost, and fourth estimated cost can be determined as the estimated cost value for the i-th second path node. In this way, the cost estimate can be calculated by combining the influencing factors in the z-axis direction and the influencing factors of obstacles. This can further improve the accuracy of the cost estimate value, provide a more accurate data basis for determining the planned path, and thus further improve the matching degree between the planned path and the actual situation, thereby improving driving safety and comfort.
[0110] In one or more further embodiments, the calculation of the first estimated cost based on the elevation information and the elevation information weight coefficient of the i-th second path node includes:
[0111] Obtain the first coordinate and first elevation value of the i-th second path node, and the second coordinate and second elevation value of the node to be expanded of the i-th second path node;
[0112] Calculating an elevation cost item based on the first coordinate and the first elevation value, the second coordinate and the second elevation value;
[0113] Based on the elevation cost term and the elevation information weight coefficient, a first estimated cost is calculated.
[0114] In an embodiment of the present disclosure, when calculating the first estimated cost, the horizontal and vertical coordinates (i.e., the first coordinates) and the elevation value (i.e., the first elevation value) of the i-th second path node can be obtained first, the node to be expanded of the i-th second path node can be determined, and the horizontal and vertical coordinates (i.e., the second coordinates) and the elevation value (i.e., the second elevation value) of the node to be expanded of the i-th second path node can be obtained. Then, the elevation cost item can be calculated based on the first coordinate and the first elevation value of the i-th second path node and the second coordinate and the second elevation value of the node to be expanded of the i-th second path node. Afterwards, the first estimated cost is calculated based on the elevation cost item and the elevation information weight coefficient. Exemplarily, the embodiment of the present disclosure adds a new cost item, i.e., the elevation cost item h, to the A* algorithm heuristic function. step , that is, when calculating the first estimated cost, the influence of the road height value in the elevation layer is also taken into account, and the influence of the elevation information in the unstructured environment is fully considered. The elevation cost term h step The calculation formula of can be shown as formula (1), and the calculation formula of the first estimated cost can be: k1·h step , where k1 represents the elevation information weight coefficient, h step The slope model of elevation information can be shown in FIG5 , where h is the elevation difference between two nodes (i.e., the i-th second path node and the node to be expanded of the i-th second path node), and l is the Euclidean distance between the two nodes.
[0115] Among them, h step represents the elevation cost term, n z Indicates the elevation value of the parent node (the second path node of the i-th node), n x 、n y are the horizontal and vertical coordinates of the parent node, respectively, h z Indicates the elevation value of the node to be expanded, h x 、h y are the horizontal and vertical coordinates of the node to be expanded.
[0116] In one or more further embodiments, the obstacles may include rocks and plants, and accordingly, the obstacle information may include the rock particle size and the plant height, and the obstacle weight coefficient may include a rock weight coefficient, a rock influence coefficient, a plant weight coefficient, a plant influence coefficient, a plant height influence coefficient, a damping coefficient, a plant area deformation variable, and a continuous grid number of plant semantic information;
[0117] Calculating a second estimated cost based on the obstacle information and the obstacle weight coefficient of the i-th second path node includes:
[0118] Calculate the stone cost term based on the stone particle size, stone influence coefficient and grid edge length of the i-th second path node;
[0119] Calculate the first sub-estimation cost based on the stone cost item and the stone weight coefficient;
[0120] Calculate the vegetation cost item based on the vegetation height, vegetation influence coefficient, vegetation height influence coefficient, damping coefficient, vegetation area deformation amount, and the number of grids of continuous vegetation semantic information of the i-th second path node;
[0121] Calculate the second sub-estimation cost based on the vegetation cost item and the vegetation weight coefficient;
[0122] Calculate the second estimation cost based on the first sub-estimation cost and the second sub-estimation cost.
[0123] In the embodiments of the present disclosure, the obstacles on the path node may include stones and vegetation. Correspondingly, the obstacle information may include the stone particle size and the vegetation height, and the obstacle weight coefficient may include the stone weight coefficient, the stone influence coefficient, the vegetation weight coefficient, the vegetation influence coefficient, the vegetation height influence coefficient, the damping coefficient, the vegetation area deformation amount, and the number of grids of continuous vegetation semantic information, etc.; the second estimation cost may include the estimation cost at the stone level (i.e., the first sub-estimation cost) and the estimation cost at the vegetation level (i.e., the second sub-estimation cost). At this time, when calculating the second estimation cost, the estimation cost at the stone level can be calculated. When considering unstructured factors, it can be considered that all stones are regular, that is, the shape and size of the stones will not be such as bluestone slabs, stone pillars, etc. Project the stones onto the map. If the projected area does not form a complete grid, it will be automatically filled. Classify the stones according to their particle size as follows: If the particle size r of the stone ≥ 0.12m, it is regarded as an impassable area; when r ≤ 0.04m, it is regarded as a passable area; when 0.04 < r < 0.12m, although the unmanned vehicle can pass, it will have different degrees of impact on the vehicle body and driving stability, and such stones are regarded as passable areas with costs. When the stone particle size is between 0.04 and 0.08m, the impact area is below the critical angle of 30°, and the damage to the vehicle body is small; when the stone particle size is between 0.08 and 0.12m, the impact area is above the critical angle of 30°, and it will collide with the layout of the sensing layer, causing greater damage to the vehicle body. Therefore, when calculating the estimation cost at the stone level, the stone particle size, the stone influence coefficient, and the grid side length of the i-th second path node can be obtained, and then based on the stone particle size, the stone influence coefficient, and the grid side length of the second path node, the stone cost item can be calculated. Obtain the stone weight coefficient, and calculate the first sub-estimation cost based on the stone cost item and the stone weight coefficient. Exemplarily, the calculation formula of the stone cost item can be shown as formula (2), and the first sub-estimation cost can be calculated as k2·free hard (i), where k2 represents the stone weight coefficient.
[0124] Among them, free hard represents the stone cost term, i belongs to [1, n], n is the total number of first path nodes, μ1 is the stone influence coefficient, r is the stone particle size, and l is the grid edge length. As can be understood, the stone weight coefficient can be obtained by collecting a large number of training samples and building a neural network to obtain more effective and accurate values.
[0125] The estimated cost of grass and trees can also be calculated. All grass and trees are considered to grow uniformly. The height collected during judgment is the uniform height h in a certain area. The ground clearance h1 of the unmanned vehicle is equal to twice the vehicle height h v As a judgment benchmark, the grass and trees that cannot be crossed, such as bushes and trees, are regarded as obstacle areas. If the grass and trees are crossed, they are divided into three categories: when the uniform height of the grass is h>h v When the grass uniform height h is less than the wheel ground clearance h1, it is considered as a passable area; when h1<h<h v When , the grass within this threshold is given semantic information. The impact of grass and tree information on the driving of the unmanned vehicle may include: first, interference in the perception part. The existence of such grass and trees greatly affects the acquisition of perception information by the radar and camera, and the impact will become greater and greater as increases; second, it is an obstacle to progress. The contact model between the unmanned vehicle and the grass and trees is simplified to a parallel spring model. The two parts of the cost are added and normalized to obtain the impact cost of the grass and tree area. However, the impact of grass and trees on the unmanned vehicle usually does not cause actual damage. Therefore, the impact cost of the grass and tree area is much smaller than the impact cost of the stone area. When calculating the estimated cost at the grass level, the grass height, grass influence coefficient, grass height influence coefficient, damping coefficient, grass area deformation and the number of continuous grass semantic information grids of the second path node i can be obtained to calculate the grass cost term. For example, the calculation formula of the grass cost term can be shown in formula (3). The second sub-estimated cost can be k3·free soft (i), where k3 represents the grass weight coefficient. soft (i) = μ2(k soft-h h 2 +k soft-s δ n ) (3)
[0126] Among them, free soft (i) represents the vegetation cost term, μ2 represents the vegetation impact coefficient, k soft-h 、k soft-swhere δ represents the height influence coefficient of the vegetation area and the damping coefficient, respectively. δ and n represent the vegetation area shape and the number of grid cells containing continuous vegetation semantic information, respectively. As can be seen, the vegetation weight coefficient can be trained using a large number of training samples and then used to construct a neural network to generate more effective and accurate values.
[0127] Afterwards, the second estimated cost can be calculated based on the first sub-estimated cost and the second sub-estimated cost. For example, the sum of the first sub-estimated cost and the second sub-estimated cost is calculated as the second estimated cost, i.e., k2·free hard (i)+k3·free soft (i).
[0128] In one or more further embodiments, in order to avoid the estimated cost of a certain item from accounting for too large a proportion due to its own parameters, the estimated cost needs to be normalized before calculation. Exemplarily, the formula of the above-mentioned preset cost estimation function can be shown as formula (4). In this way, the heuristic function can be optimized to better process elevation information and semantic information, and finally obtain a path planning method suitable for unstructured environments. That is, the method provided by the embodiment of the present disclosure can optimize the search efficiency, safety, elevation information and grass and stone information of the A* algorithm in an unstructured environment, and obtain a path planning method that takes comprehensive factors into consideration and is suitable for unstructured environments. f(i)=g(i)+h(i)+k1·h step (i)+k2free hard (i)+k3free soft (i) (4)
[0129] Among them, f(i) represents the cost estimate, g(i) represents the third estimated cost, h(i) represents the fourth estimated cost, k1 represents the height information weight coefficient, h step (i) represents the first estimated cost, k2 represents the stone weight coefficient, free hard (i) represents the first estimated cost, k3 represents the grass weight coefficient, free soft (i) represents the second estimated cost, i belongs to [1, n], and n is the total number of nodes on the second path.
[0130] To clarify the method provided by the embodiments of the present disclosure, the path planning method provided by the embodiments of the present disclosure is described below with reference to FIG6 . As shown in FIG6 , when planning a path from a starting point to a destination, the starting point can be first added to the closelist as a parent node to determine whether the destination is in the closelist. If the destination is already in the closelist, node X can be used as the parent node and the X-direction of node X can be determined. Node X can be any first path node. In a straight line, the method can determine whether the direction behind and to the left of node X is navigable. If the direction behind node X is not navigable but the direction to the left is navigable, a path node not in the closelist can be searched for along the left front and left of node X as a jump point. The method can also determine whether the current direction of node X is navigable. If the current direction of node X is navigable, a path node not in the closelist can be searched for along the current direction of node X as a jump point. The method can also determine whether the direction behind and to the right of node X is navigable. If the direction behind node X is not navigable but the direction to the right is navigable, a path node not in the closelist can be searched for along the right front and right of node X as a jump point. In the diagonal direction, it is determined whether the horizontal component of the current direction of node X is traversable. If so, a path node not in the closelist can be searched along the horizontal component of the current direction of node X as a jump point. It is also determined whether the current direction of node X is traversable. If so, a path node not in the closelist can be searched along the vertical component of node X as a jump point. It is also determined whether the vertical component of node X is traversable. If so, a path node not in the closelist can be searched along the vertical component of node X as a jump point. It is then determined whether the jump point is in the openlist. If not, it can be added to the openlist. If it is already in the openlist, the openlist can be updated based on the jump point's G value and parent node. Subsequently, the f-value (i.e., cost estimate) of the nodes in the openlist can be calculated using a preset cost estimation function, and the node with the smallest f-value can be added to the closelist as the parent node. Repeat the above process until the end point exists in the closelist, then the path node in the closelist with the end point can be used as the path planning between the starting point and the end point.
[0131] FIG7 is a block diagram of a path planning device according to an exemplary embodiment. Referring to FIG7 , the path planning device 700 may include:
[0132] An acquisition module 710 is configured to acquire first path nodes and environmental information between a starting point and an end point; wherein the environmental information includes obstacle information on each first path node;
[0133] a calculation module 720, configured to calculate a cost estimation value of each first path node based on the obstacle information of the first path node using a preset cost estimation function;
[0134] The planning module 730 is configured to determine a planned path based on the cost estimate of each of the first path nodes, the starting point, and the end point.
[0135] In one or more implementations, the calculation module 720 is further configured to:
[0136] The cost estimation value of each first path node is calculated based on the obstacle information and elevation information of the first path node using the preset cost estimation function.
[0137] In one or more embodiments, the apparatus 700 further includes:
[0138] a screening module, configured to add second path nodes among the first path nodes that meet preset screening rules to an open list;
[0139] The calculation module 720 is further configured to:
[0140] The cost estimation value of each second path node is calculated based on the elevation information and the obstacle information of each second path node in the open list by using the preset cost estimation function.
[0141] In one or more embodiments, the screening module includes:
[0142] A first determining unit is configured to determine, for an i-th first path node, whether the end point is in the closed list; wherein i belongs to [1, n], and n is the total number of the first path nodes;
[0143] a second determining unit, configured to determine a jump point along a straight line direction and a diagonal direction by taking the i-th first path node as a parent node if the end point is not in the closed list;
[0144] A node adding unit is configured to determine the hop as a second path node and add the second path node to the open list.
[0145] In one or more implementation manners, the second determining unit includes:
[0146] a first determining subunit, configured to determine, with the i-th first path node as a parent node, a jump point that is not present in the closed list along a first direction of a straight line of the i-th first path node; wherein the first direction includes a left front and left direction of the i-th first path node, a current direction of the i-th first path node, and a right front and right direction of the i-th first path node;
[0147] A second determining subunit is configured to determine, with the i-th first path node as a parent node, a jump point that does not exist in the closed list along a second direction in a diagonal direction of the i-th first path node; wherein the second direction includes a horizontal component direction of a current direction of the i-th first path node, a current direction of the i-th first path node, and a vertical component direction of the i-th first path node.
[0148] In one or more implementations, the planning module 730 includes:
[0149] a third determining unit, configured to determine the second path node corresponding to the minimum cost estimation value as a third path node;
[0150] The planning unit is configured to add each of the third path nodes, the starting point, and the end point to a closed list to obtain a planned path.
[0151] In one or more implementations, the calculation module 720 includes:
[0152] A first calculation unit is configured to calculate, for an i-th second path node, a first estimated cost based on the elevation information and the elevation information weight coefficient of the i-th second path node;
[0153] a second calculating unit, configured to calculate a second estimated cost based on the obstacle information and the obstacle weight coefficient of the i-th second path node;
[0154] a third calculating unit, configured to calculate a third estimated cost from the starting point to the i-th second path node, and calculate a fourth estimated cost from the i-th second path node to the end point;
[0155] A fourth calculation unit is configured to calculate a cost estimate of the i-th second path node based on the first estimated cost, the second estimated cost, the third estimated cost, and the fourth estimated cost.
[0156] In one or more implementations, the first computing unit includes:
[0157] An information acquisition subunit, configured to acquire a first coordinate and a first elevation value of an i-th second path node, and a second coordinate and a second elevation value of a node to be expanded of the i-th second path node;
[0158] A first calculation subunit is configured to calculate an elevation cost item based on the first coordinate and the first elevation value, the second coordinate and the second elevation value;
[0159] The second calculation subunit is configured to calculate the first estimated cost based on the elevation cost item and the elevation information weight coefficient.
[0160] In one or more embodiments, the obstacles include rocks and plants, the obstacle information includes rock particle size and plant height, and the obstacle weight coefficients include a rock weight coefficient, a rock influence coefficient, a plant weight coefficient, a plant influence coefficient, a plant height influence coefficient, a damping coefficient, a plant area deformation variable, and a continuous grid number of plant semantic information.
[0161] The second computing unit includes:
[0162] a third calculation subunit, configured to calculate a stone cost term based on the stone particle size of the i-th second path node, the stone influence coefficient, and the grid side length;
[0163] a fourth calculation subunit, configured to calculate a first sub-estimated cost based on the stone cost item and the stone weight coefficient;
[0164] a fifth calculation subunit, configured to calculate a vegetation cost item based on the vegetation height of the i-th second path node, the vegetation influence coefficient, the vegetation height influence coefficient, the damping coefficient, the vegetation area deformation, and the number of grids of continuous vegetation semantic information;
[0165] a sixth calculation subunit, configured to calculate a second sub-estimated cost based on the vegetation cost item and the vegetation weight coefficient;
[0166] A seventh calculation subunit is configured to calculate the second estimated cost based on the first sub-estimated cost and the second sub-estimated cost.
[0167] In one or more implementations, the formula of the preset cost estimation function is: f(i)=g(i)+h(i)+k1·h step (i)+k2free hard (i)+k3free soft (i)
[0168] Among them, f(i) represents the cost estimate, g(i) represents the third estimated cost, h(i) represents the fourth estimated cost, k1 represents the height information weight coefficient, hstep (i) represents the first estimated cost, k2 represents the stone weight coefficient, free hard (i) represents the first estimated cost, k3 represents the grass weight coefficient, free soft (i) represents the second estimated cost, i belongs to [1, n], and n is the total number of the second path nodes.
[0169] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0170] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a storage medium, and a computer program product.
[0171] FIG8 shows a schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure. The electronic device 800 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0172] As shown in Figure 8, electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In RAM 803, various programs and data required for the operation of device 800 can also be stored. Computing unit 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to bus 804.
[0173] Multiple components in the electronic device 800 are connected to the I / O interface 805, including an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0174] The computing unit 801 can be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as the path planning method. For example, in some embodiments, the path planning method can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the path planning method described above can be performed. Alternatively, in other embodiments, the computing unit 801 can be configured to perform the path planning method by any other appropriate means (e.g., by means of firmware).
[0175] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0176] The program code of the computer program for implementing the method of the present disclosure can be written in any combination of one or more programming languages. Such program code can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0177] In the context of the present disclosure, a storage medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A storage medium can be a machine-readable signal medium or a machine-readable storage medium. A storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0178] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0179] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0180] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact via a communication network. This client-server relationship is established by computer programs running on the respective computers, establishing a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosts and VPS services ("Virtual Private Servers" or simply "VPS"). The server may also be a server in a distributed system or a server integrated with blockchain.
[0181] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not a limitation herein.
[0182] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.
Claims
1. A path planning method, comprising: Acquire the first path node and environmental information between the starting point and the end point; wherein the environmental information includes obstacle information on each of the first path nodes; Calculating a cost estimation value of each first path node based on obstacle information of each first path node by using a preset cost estimation function; A planned path is determined based on the estimated cost value of each of the first path nodes, the starting point and the end point.
2. The path planning method according to claim 1, wherein: The environmental information also includes elevation information of each of the first path nodes; The calculating the cost estimation value of each first path node based on the obstacle information of the first path node by using a preset cost estimation function includes: The preset cost estimation function is used to calculate the cost estimation value of each first path node based on the obstacle information and elevation information of the first path node.
3. The path planning method according to claim 2, wherein: Before calculating the cost estimation value of each first path node based on the obstacle information and elevation information of the first path node by using the preset cost estimation function, the method further includes: Adding a second path node among the first path nodes that meets a preset screening rule to an open list; The calculating the cost estimation value of each first path node based on the obstacle information and elevation information of the first path node by using the preset cost estimation function includes: The cost estimation value of each second path node is calculated based on the elevation information and the obstacle information of each second path node in the open list by using the preset cost estimation function.
4. The path planning method according to claim 3, wherein: The adding the second path node in the first path node that meets the preset screening rule to the open list includes: For the i-th first path node, determining whether the end point is in the closed list; wherein i belongs to [1, n], and n is the total number of the first path nodes; If the end point is not in the closed list, taking the i-th node of the first path as the parent node, and determining the jump point along the straight line direction and the diagonal direction; The hop is determined as a second path node, and the second path node is added to the open list.
5. The path planning method according to claim 4, wherein: The step of taking the i-th first path node as a parent node and determining a jump point along a straight line direction and a diagonal line direction includes: Taking the ith first path node as a parent node, determine a jump point that does not exist in the closed list along a first direction of the straight line direction of the ith first path node; wherein the first direction includes the left front and left of the ith first path node, the current direction of the ith first path node, and the right front and right of the ith first path node; Taking the i-th first path node as the parent node, determine the jump point that does not exist in the closed list along the second direction of the diagonal direction of the i-th first path node; wherein the second direction includes the horizontal component direction of the current direction of the i-th first path node, the current direction of the i-th first path node, and the vertical component direction of the i-th first path node.
6. The path planning method according to claim 3, wherein: The step of determining a planned path based on the estimated cost value of each of the first path nodes, the starting point, and the end point includes: Determine the second path node corresponding to the minimum cost estimation value as the third path node; Add each of the third path nodes, the start point, and the end point to the closed list table to obtain the planned path.
7. The path planning method according to claim 3, wherein: The calculating the cost estimation value of each second path node based on the elevation information and obstacle information of each second path node in the open list by using the preset cost estimation function includes: For the i-th second path node, calculating a first estimated cost based on the elevation information of the i-th second path node and the elevation information weight coefficient; Calculating a second estimated cost based on the obstacle information and obstacle weight coefficient of the i-th second path node; Calculating a third estimated cost from the starting point to the i-th second path node, and calculating a fourth estimated cost from the i-th second path node to the end point; Based on the first estimated cost, the second estimated cost, the third estimated cost and the fourth estimated cost, a cost estimate value of the i-th second path node is calculated.
8. The path planning method according to claim 7, wherein: The calculating the first estimated cost based on the elevation information and the elevation information weight coefficient of the i-th second path node includes: Obtaining the first coordinate and the first elevation value of the i-th second path node, and the second coordinate and the second elevation value of the node to be expanded of the i-th second path node; Calculate an elevation cost item based on the first coordinate and the first elevation value, the second coordinate and the second elevation value; The first estimated cost is calculated based on the elevation cost item and the elevation information weight coefficient.
9. The path planning method according to claim 7, wherein: The obstacles include stones and plants, the obstacle information includes stone particle size and plant height, and the obstacle weight coefficient includes stone weight coefficient, stone influence coefficient, plant weight coefficient, plant influence coefficient, plant height influence coefficient, damping coefficient, plant area deformation and continuous plant semantic information grid number; The calculating the second estimated cost based on the obstacle information and the obstacle weight coefficient of the i-th second path node includes: Calculate a stone cost term based on the stone particle size of the i-th second path node, the stone influence coefficient and the grid side length; Calculating a first sub-estimated cost based on the stone cost term and the stone weight coefficient; Calculate the vegetation cost item based on the vegetation height of the i-th second path node, the vegetation influence coefficient, the vegetation height influence coefficient, the damping coefficient, the vegetation area deformation amount and the number of grids of continuous vegetation semantic information; Calculating a second sub-estimated cost based on the vegetation cost item and the vegetation weight coefficient; The second estimated cost is calculated based on the first sub-estimated cost and the second sub-estimated cost.
10. The path planning method according to any one of claims 1 to 9, wherein: The formula of the preset cost estimation function is: f(i)=g(i)+h(i)+k 1. h step (i)+k2free hard (i)+k3free soft (i) Among them, f(i) represents the cost estimate, g(i) represents the third estimated cost, h(i) represents the fourth estimated cost, k1 represents the elevation information weight coefficient, and h step (i) represents the first estimated cost, k2 represents the stone weight coefficient, free hard (i) represents the first estimated cost, k3 represents the grass weight coefficient, free soft (i) represents the second estimated cost, i belongs to [1, n], and n is the total number of the second path nodes.
11. A path planning device, comprising: An acquisition module, used to acquire first path nodes and environmental information between a starting point and an end point; wherein the environmental information includes obstacle information on each of the first path nodes; A calculation module, configured to calculate a cost estimation value of each of the first path nodes based on the obstacle information of the first path nodes by using a preset cost estimation function; A planning module is used to calculate the cost estimate of each first path node, the The starting point and the end point are determined to determine the planned path.
12. The path planning device according to claim 11, wherein the environmental information further comprises elevation information of each of the first path nodes; The computing module is further used for: The preset cost estimation function is used to calculate the cost estimation value of each first path node based on the obstacle information and elevation information of the first path node.
13. The path planning device according to claim 12, further comprising: A screening module, used for adding second path nodes among the first path nodes that meet a preset screening rule to an open list; The computing module is further used for: The cost estimation value of each second path node is calculated based on the elevation information and the obstacle information of each second path node in the open list by using the preset cost estimation function.
14. An electronic device comprising: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the path planning method as described in any one of claims 1 to 10. 15 . A storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the path planning method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Mobile robot path planning and obstacle avoidance method and system
CN105955280A
Unmanned ship track planning method based on deep optimization
CN110006429A
Global path planning method based on weighted A * algorithm for expanding search neighborhood
CN111504325A
Path planning method and device and computer readable storage medium
CN112783169A
Robot passing planning method and device, robot and storage medium
CN113432610A
Cited By
Transportation route recommendation method, system and equipment based on satellite positioning
CN119394325A
Multi-scene path planning method and system based on mobile terminal offline navigation
CN119803497A
Robot path planning method and system, medium, product and computer equipment
CN120029302A
Method and system for searching passage space of unmanned vehicle
CN120506961A
