A method, client and server for unmanned vehicle path planning

The improved A* algorithm is used for path planning in the three-dimensional map, combined with the elevation value and curvature cost function, to solve the shortcomings of the A* algorithm in path planning in the mountain road environment, and generate the optimal path considering vehicle kinematics, and pass it through the GPU Accelerated calculations improve efficiency and enable smooth driving on undulating roads.

CN113865613BInactive Publication Date: 2024-09-06SEGUANG (XIAMEN) INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111282223.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-03-29
Filing Date
2021-11-01
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing A* algorithm is difficult to adapt to mountain road environments or undulating roads when planning unmanned vehicle paths, resulting in path planning that may have sudden changes in road height and become impassable.

Method used

The improved A* algorithm is used for path planning in the three-dimensional map. By calculating the average elevation value and curvature cost function of each grid node, it is judged whether the unmanned vehicle can enter the next node from one grid node, and called through CUDA GPU accelerates multi-thread calculation of the path cost function to obtain the optimal path.

Benefits of technology

In mountain road environments or undulating roads, it can generate optimal paths that take into account vehicle kinematic constraints, making vehicle movement more stable, improving the calculation efficiency of path planning, and reducing planning time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113865613B_ABST
    Figure CN113865613B_ABST
Patent Text Reader

Abstract

The present invention provides a method for unmanned vehicle path planning, comprising the following steps: S1, importing a map into an unmanned vehicle system and rasterizing the map; S2, setting a start node and a target node in the rasterized map, and traversing the grid nodes between the start node and the target node step by step based on an improved A* algorithm; S3, step by step traversing the average elevation values ​​between adjacent grid nodes to obtain multiple planned paths that meet vehicle kinematics; S4, calculating the path cost function values ​​of the multiple planned paths, and obtaining the planned path corresponding to the minimum path cost function value as the optimal path. The present invention combines the improved A* algorithm, takes into account the change in road height, and has high calculation efficiency and high path planning accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to Chinese patent application No. 202110332643.6 filed on March 29, 2021, entitled “A method, client and server for path planning of unmanned vehicles”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the technical field of path-finding algorithms, and in particular to an unmanned vehicle path planning method, a client, a server and a computer-readable storage medium. Background Art

[0003] An unmanned vehicle is an intelligent vehicle that senses the road environment through an onboard sensor system, automatically plans a driving route, and controls the vehicle to reach a predetermined destination. Path planning technology is one of the key technologies in unmanned vehicles, which mainly enables unmanned vehicles to reach the destination quickly and smoothly. It is necessary to consider how the unmanned vehicle will reach the set destination, whether it can take the optimal path, whether it can comply with traffic rules, and whether it can cross obstacles.

[0004] In the path planning of unmanned vehicles, the A* algorithm is a commonly used unmanned vehicle path planning algorithm. The A* algorithm requires given map information, rasterizes the map information, and traverses the surrounding nodes to find the optimal path. However, the A* algorithm is suitable for path planning in flat areas, that is, it is necessary to assume that the ground height is constant. For mountain roads or undulating road environments, the path planned by the conventional A* algorithm may have sudden changes in road height, making it impossible for the unmanned vehicle to pass. Summary of the invention

[0005] The present invention provides an unmanned vehicle path planning method, a client, a server and a computer-readable storage medium, which can effectively solve the above problems.

[0006] The present invention is achieved in that:

[0007] The present invention provides a method for unmanned vehicle path planning, comprising the following steps:

[0008] S1, importing a map into the unmanned vehicle system and rasterizing the map;

[0009] S2, setting a starting node and a target node in the grid map, and performing a step-by-step traversal in the grid nodes between the starting node and the target node based on an improved A* algorithm;

[0010] S3, gradually traversing the average elevation values ​​between adjacent grid nodes to obtain multiple planned paths that meet the vehicle kinematics;

[0011] S4. Calculate the path cost function values of the multiple planned paths, and obtain the planned path corresponding to the minimum path cost function value as the optimal path.

[0012] As a further improvement, in step S1, the map is a three-dimensional map model, and after rasterizing the map, the size and average elevation value of each grid node are obtained.

[0013] As a further improvement, in step S2, the step of gradually traversing the grid nodes between the start node and the target node based on the improved A* algorithm includes:

[0014] Based on the path cost function: F(n) = G(n) + H(n) + C(n), gradually traverse the grid nodes between the start node and the target node; where G(n) is the actual cost of the driverless vehicle from the start node to the current node in the rasterized map; H(n) is the estimated cost of the driverless vehicle from the current node to the target node in the rasterized map; C(n) is the curvature cost function used to calculate the curvature cost between adjacent grid nodes in the rasterized map.

[0015] As a further improvement, the curvature cost is obtained by the formula where Z k is the elevation value of the k-th grid node.

[0016] As a further improvement, define the elevation value threshold H that the driverless vehicle with vehicle kinematic constraints can pass through, and in step S3, the step of gradually traversing the average elevation value between adjacent grid nodes includes:

[0017] When |Z k - Z k-1 | < H, it is determined that the average elevation value between adjacent grid nodes satisfies the vehicle kinematic constraints, that is, the driverless vehicle can enter the k-th grid node from the (k - 1)-th grid node.

[0018] As a further improvement, in step S4, the step of calculating the path cost function values of the multiple planned paths includes:

[0019] Call the GPU to accelerate multi-threading through CUDA, calculate the path cost function of each grid node, and thus obtain the path cost function values of each planned path.

[0020] The present invention further provides a client, which includes a memory and a processor. A data processing program that can run on the processor is stored on the memory. When the data processing program is executed by the processor, the following steps are implemented:

[0021] S1, importing a map into the unmanned vehicle system and rasterizing the map;

[0022] S2, setting a starting node and a target node in the grid map, and performing a step-by-step traversal in the grid nodes between the starting node and the target node based on an improved A* algorithm;

[0023] S3, gradually traversing the average elevation values ​​between adjacent grid nodes to obtain multiple planned paths that meet the vehicle kinematics;

[0024] S4, calculating the path cost function values ​​of the multiple planned paths, and obtaining the planned path corresponding to the minimum path cost function value as the optimal path.

[0025] The present invention further provides a server, the server comprising a memory and a processor, the memory storing a data processing program that can be run on the processor, and the data processing program, when executed by the processor, implements the following steps:

[0026] S1, importing a map into the unmanned vehicle system and rasterizing the map;

[0027] S2, setting a starting node and a target node in the grid map, and performing a step-by-step traversal in the grid nodes between the starting node and the target node based on an improved A* algorithm;

[0028] S3, gradually traversing the average elevation values ​​between adjacent grid nodes to obtain multiple planned paths that meet the vehicle kinematics;

[0029] S4, calculating the path cost function values ​​of the multiple planned paths, and obtaining the planned path corresponding to the minimum path cost function value as the optimal path.

[0030] The present invention further provides a computer-readable storage medium, on which a data processing program is stored. The data processing program can be executed by one or more processors to implement the steps of the unmanned vehicle path planning method described above.

[0031] The beneficial effects of the present invention are:

[0032] First: The present invention provides an unmanned vehicle path planning method, client, server and computer-readable storage medium, which imports a three-dimensional map model into the unmanned vehicle system, rasterizes the map, confirms the starting node and the target node in the rasterized map, and gradually traverses the grid nodes between the starting node and the target node based on the improved A* algorithm; wherein, the elevation difference between each adjacent grid node is considered, and based on the vehicle kinematic constraints, it is judged whether the unmanned vehicle can enter the next grid node from one grid node, and finally a plurality of passable planned paths are obtained, and the path cost function value of each planned path is calculated, wherein the path cost function value is the smallest is the optimal path; the path planning method can take into account the mountain road environment or the ups and downs road environment, and obtain an optimal path that takes into account the vehicle kinematic constraints, so that the vehicle movement is smoother.

[0033] Second, the present invention uses CUDA to call GPU to accelerate multi-threaded calculations to calculate the path cost function of each grid node, thereby obtaining the path cost function value of each planned path; this effectively improves the calculation efficiency of the path cost function value, reduces the path planning time, and can quickly obtain the optimal path planning that takes into account the ups and downs of the road surface. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 It is a flow chart of an unmanned vehicle path planning method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention.

[0037] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0038] Reference Figure 1 As shown, an embodiment of the present invention provides a method for unmanned vehicle path planning, comprising:

[0039] S1, importing a map into the unmanned vehicle system and rasterizing the map;

[0040] S2, setting a starting node and a target node in the grid map, and performing a step-by-step traversal in the grid nodes between the starting node and the target node based on an improved A* algorithm;

[0041] S3, gradually traversing the average elevation values ​​between adjacent grid nodes to obtain multiple planned paths that meet the vehicle kinematics;

[0042] S4, calculating the path cost function values ​​of the multiple planned paths, and obtaining the planned path corresponding to the minimum path cost function value as the optimal path.

[0043] As a further improvement, in step S1, the map is a three-dimensional map model, and the map is rasterized to obtain the size and average elevation value of each grid node. Specifically, in this embodiment, the three-dimensional map model is imported and then rasterized, wherein the side length of the grid node is not less than 10 cm, and the elevation value of each grid node is the average elevation value of the four corner points of the grid node.

[0044] As a further improvement, in step S2, the step of traversing the grid nodes between the start node and the target node based on the improved A* algorithm comprises:

[0045] Based on the path cost function: F(n)=G(n)+H(n)+C(n), a step-by-step traversal is performed in the grid nodes between the starting node and the target node; wherein G(n) is the actual cost of the unmanned vehicle from the starting node to the current node in the gridded map; H(n) is the estimated cost of the unmanned vehicle from the current node to the target node in the gridded map; and C(n) is a curvature cost function used to calculate the curvature cost of adjacent grid nodes in the gridded map.

[0046] Specifically, H(n) in this embodiment is calculated using the Euclidean distance, that is, the driverless vehicle can drive in any direction on the map. The Euclidean distance refers to the straight-line distance between two grid nodes. At this time, the elevation value of the grid node is considered in this embodiment, and its calculation formula is:

[0047]

[0048] As a further improvement, the curvature cost is obtained through the formula where Z k is the elevation value of the k-th grid node.

[0049] Specifically,

[0050] As a further improvement, it is defined that the elevation value threshold for the driverless vehicle with vehicle kinematic constraints is H, and in step S3, the step of gradually traversing the average elevation value between adjacent grid nodes includes:

[0051] When |Z k -Z k-1 |<H, it is determined that the average elevation value between adjacent grid nodes satisfies the vehicle kinematic constraints, that is, the driverless vehicle can enter the k-th grid node from the (k - 1)-th grid node.

[0052] Specifically, the influencing factors of the vehicle kinematic constraints are the tire diameter of the driverless vehicle, the body size of the driverless vehicle, and the turning radius of the driverless vehicle, etc. In this embodiment, the elevation value threshold for the driverless vehicle to pass is defined as H, and the elevation value threshold H is related to the tire diameter of the driverless vehicle, the body size of the driverless vehicle, and the turning radius of the driverless vehicle, etc., to avoid the vehicle body bumping up and down unevenly when the driverless vehicle passes through the planned path. When the elevation difference between adjacent grid nodes exceeds the elevation value threshold H, at this time, the driverless vehicle can pass through other adjacent grid nodes that do not exceed the elevation value threshold H and continue to traverse to the target node.

[0053] As a further improvement, in step S4, the step of calculating the path cost function values of the multiple planned paths includes:

[0054] Call the GPU to accelerate multi-threading through CUDA to calculate the path cost function of each grid node, so as to obtain the path cost function values of each planned path.

[0055] In this embodiment, CUDA is used to call GPU to accelerate multi-threading to calculate the path cost function formula, that is, the formula F(n) = G(n) + H(n) + C(n). It effectively improves the calculation efficiency of the unmanned vehicle path planning, reduces the path-finding time of the optimal path, and can quickly obtain the optimal path planning that takes into account the ups and downs of the road surface. In the rasterized map, after the path planning based on the improved A* algorithm, multiple passable planned paths can be obtained, but not every planned path is the optimal path. Among them, the path cost function F(n) with the smallest value among all planned paths is the optimal path. When the value of F(n) of one of the planned paths is larger than that of F(n) of other planned paths, it means that the unmanned vehicle is more bumpy and unstable when driving along the planned path. The path cost function F(n) values ​​of multiple planned paths are obtained by calling GPU to accelerate multi-threading through CUDA, and the planned path with the smallest F(n) is obtained, which is the optimal path.

[0056] The present invention further provides a client, the client comprising a memory and a processor, the memory storing a data processing program that can be run on the processor, and the data processing program, when executed by the processor, implements the following steps:

[0057] S1, importing a map into the unmanned vehicle system and rasterizing the map;

[0058] S2, setting a starting node and a target node in the grid map, and performing a step-by-step traversal in the grid nodes between the starting node and the target node based on an improved A* algorithm;

[0059] S3, gradually traversing the average elevation values ​​between adjacent grid nodes to obtain multiple planned paths that meet the vehicle kinematics;

[0060] S4, calculating the path cost function values ​​of the multiple planned paths, and obtaining the planned path corresponding to the minimum path cost function value as the optimal path.

[0061] The client may be a mobile phone, a laptop computer, a tablet computer or other portable electronic devices, etc., which are not limited here.

[0062] The present invention further provides a server, the server comprising a memory and a processor, the memory storing a data processing program that can be run on the processor, and the data processing program, when executed by the processor, implements the following steps:

[0063] S1, importing a map into the unmanned vehicle system and rasterizing the map;

[0064] S2, setting a starting node and a target node in the grid map, and performing a step-by-step traversal in the grid nodes between the starting node and the target node based on an improved A* algorithm;

[0065] S3, gradually traversing the average elevation values ​​between adjacent grid nodes to obtain multiple planned paths that meet the vehicle kinematics;

[0066] S4, calculating the path cost function values ​​of the multiple planned paths, and obtaining the planned path corresponding to the minimum path cost function value as the optimal path.

[0067] The present invention further provides a computer-readable storage medium, on which a data processing program is stored. The data processing program can be executed by one or more processors to implement the steps of the unmanned vehicle path planning method described above.

[0068] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0069] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0070] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0071] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for unmanned vehicle path planning, characterized in that: The steps include: S1, importing a map into the unmanned vehicle system and rasterizing the map; S2, setting a starting node and a target node in the grid map, and performing a step-by-step traversal in the grid nodes between the starting node and the target node based on an improved A* algorithm; S3, gradually traversing the average elevation values ​​between adjacent grid nodes to obtain multiple planning paths that meet the vehicle kinematics; S4, calculating the path cost function values ​​of the multiple planned paths, and obtaining the planned path corresponding to the minimum path cost function value as the optimal path; In step S2, the step of traversing the grid nodes between the start node and the target node based on the improved A* algorithm comprises: Based on the path cost function: F(n)=G(n)+H(n)+C(n), a step-by-step traversal is performed in the grid nodes between the starting node and the target node; wherein G(n) is the actual cost of the unmanned vehicle from the starting node to the current node in the grid map; H(n) is the estimated cost of the unmanned vehicle from the current node to the target node in the grid map; C(n) is a curvature cost function used to calculate the curvature cost of adjacent grid nodes in the grid map; The curvature cost is given by the formula Get, where Z k is the elevation value of the kth grid node; The estimated cost is calculated by the formula have to; In step S4, the step of calculating the path cost function values ​​of the multiple planned paths includes: By calling GPU accelerated multithreading through CUDA, the path cost function of each grid node is calculated, thereby obtaining the path cost function value of each planned path; In step S1, the map is a three-dimensional map model, and the map is rasterized to obtain the size and average elevation value of each grid node; The unmanned vehicle defining the vehicle kinematic constraints may pass through an elevation value threshold of H, and in step S3, the step of gradually traversing the average elevation values ​​between adjacent grid nodes includes: When |Z k -Z k-1 | < H, it is determined that the average elevation value between adjacent grid nodes satisfies the vehicle kinematic constraint, that is, the unmanned vehicle can enter the k-th grid node from the (k-1)-th grid node.

2. A client, characterized in that: The client includes a memory and a processor, the memory stores a data processing program that can be run on the processor, and the data processing program implements the following steps when executed by the processor: S1, importing a map into the unmanned vehicle system and rasterizing the map; S2, setting a starting node and a target node in the grid map, and performing a step-by-step traversal in the grid nodes between the starting node and the target node based on an improved A* algorithm; S3, gradually traversing the average elevation values ​​between adjacent grid nodes to obtain multiple planning paths that meet the vehicle kinematics; S4, calculating the path cost function values ​​of the multiple planned paths, and obtaining the planned path corresponding to the minimum path cost function value as the optimal path; In step S2, the step of traversing the grid nodes between the start node and the target node based on the improved A* algorithm comprises: Based on the path cost function: F(n)=G(n)+H(n)+C(n), a step-by-step traversal is performed in the grid nodes between the starting node and the target node; wherein G(n) is the actual cost of the unmanned vehicle from the starting node to the current node in the grid map; H(n) is the estimated cost of the unmanned vehicle from the current node to the target node in the grid map; C(n) is a curvature cost function used to calculate the curvature cost of adjacent grid nodes in the grid map; The curvature cost is given by the formula Get, where Z k is the elevation value of the kth grid node; The estimated cost is calculated by the formula get; In step S4, the step of calculating the path cost function values ​​of the multiple planned paths includes: By calling GPU accelerated multithreading through CUDA, the path cost function of each grid node is calculated, thereby obtaining the path cost function value of each planned path; In step S1, the map is a three-dimensional map model, and the map is rasterized to obtain the size and average elevation value of each grid node; The unmanned vehicle defining the vehicle kinematic constraints may pass through an elevation value threshold of H, and in step S3, the step of gradually traversing the average elevation values ​​between adjacent grid nodes includes: When |Z k -Z k-1 |<H, it is determined that the average elevation value between adjacent grid nodes satisfies the vehicle kinematic constraint, that is, the driverless vehicle can enter the k-th grid node from the (k-1)-th grid node.

3. A server, characterized in that: The server includes a memory and a processor, wherein the memory stores a data processing program that can be run on the processor, and when the data processing program is executed by the processor, the following steps are implemented: S1, importing a map into the unmanned vehicle system and rasterizing the map; S2, setting a starting node and a target node in the grid map, and performing a step-by-step traversal in the grid nodes between the starting node and the target node based on an improved A* algorithm; S3, gradually traversing the average elevation values ​​between adjacent grid nodes to obtain multiple planning paths that meet the vehicle kinematics; S4, calculating the path cost function values ​​of the multiple planned paths, and obtaining the planned path corresponding to the minimum path cost function value as the optimal path; In step S2, the step of traversing the grid nodes between the start node and the target node based on the improved A* algorithm comprises: Based on the path cost function: F(n)=G(n)+H(n)+C(n), a step-by-step traversal is performed in the grid nodes between the starting node and the target node; wherein G(n) is the actual cost of the unmanned vehicle from the starting node to the current node in the grid map; H(n) is the estimated cost of the unmanned vehicle from the current node to the target node in the grid map; C(n) is a curvature cost function used to calculate the curvature cost of adjacent grid nodes in the grid map; The curvature cost is given by the formula Get, where Z k is the elevation value of the kth grid node; The estimated cost is calculated by the formula get; In step S4, the step of calculating the path cost function values ​​of the multiple planned paths includes: By calling GPU accelerated multithreading through CUDA, the path cost function of each grid node is calculated, thereby obtaining the path cost function value of each planned path; In step S1, the map is a three-dimensional map model, and the map is rasterized to obtain the size and average elevation value of each grid node; The unmanned vehicle defining the vehicle kinematic constraints may pass through an elevation value threshold of H, and in step S3, the step of gradually traversing the average elevation values ​​between adjacent grid nodes includes: When |Z k -Z k-1 | < H, it is determined that the average elevation value between adjacent grid nodes satisfies the vehicle kinematic constraints, that is, the unmanned vehicle can enter the k-th grid node from the (k - 1)-th grid node.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data processing program, which can be executed by one or more processors to implement the steps of the unmanned vehicle path planning method as described in claim 1.