Cross-country maneuvering path planning method considering traffic safety, medium and equipment
By constructing navigation grid data and optimizing path planning that take into account environmental safety, combined with A* and funnel algorithms, the problem of failure to fully consider traffic safety in the existing technology has been solved, and safer path planning in complex off-road environments has been achieved. Suitable for unmanned ground vehicles and field exploration missions.
Patent Information
- Application Number
- CN202410794122.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-15
AI Technical Summary
Existing off-road maneuver path planning algorithms fail to fully consider traffic safety, especially in terms of natural weather effects and disaster risks, and the modeling method based on the grid environment increases computing and storage costs in off-road environments with high accuracy requirements, making it impossible to Effectively applicable.
By acquiring off-road terrain, vehicle dynamics, weather and hazardous area data, we build navigation grid data that takes into account environmental safety, combine A* and funnel algorithms to optimize path planning, consider vehicle dynamics data for path optimization, and use cubic B-spline Smoothing methods to improve path safety.
It improves the safety of path planning, comprehensively considers geography, obstacles, weather and disaster risk factors, is suitable for complex off-road environments, ensures a relatively safe path from the starting point to the end, and is suitable for unmanned ground vehicles and field exploration tasks.
Smart Images

Figure CN118776580A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of path planning, and more specifically, to an off-road maneuvering path planning method, medium and equipment taking into account traffic safety. Background Art
[0002] Off-road mobility path planning is a complex multidisciplinary problem involving robotics, graph theory, artificial intelligence, optimization theory, geography, etc. It has broad application prospects in battlefield reconnaissance, terrain detection, search and rescue, and unmanned driving.
[0003] Path planning in off-road environments is crucial to ensure the safety of people and vehicles, improve efficiency, and protect the environment. In the study of path planning considering driving safety in off-road environments, most researchers have considered the factors of no standard road network and adjusted the path planning algorithm accordingly; considering vehicle dynamics factors, a path planning algorithm based on driving safety was proposed; however, factors such as natural weather factors and disaster risks were less involved, that is, the problem of traffic safety was not considered, and it remained at the driving safety level. At the same time, most of the above algorithm studies are based on path planning problems in grid environments. Although the grid modeling method is widely applicable, simple and intuitive, and has good visualization effects, for off-road environments with high precision requirements, its modeling method will increase the calculation and storage costs, and is not applicable to off-road environments. Based on the above analysis, the study of off-road mobile path planning considering traffic safety is a research that urgently needs to be carried out in the field of path planning. Summary of the invention
[0004] The purpose of the present invention is to provide an off-road maneuvering path planning method, medium and device that take into account traffic safety, which can effectively improve the safety of path planning.
[0005] The present invention provides an off-road mobile path planning method considering traffic safety, comprising the following steps: S1: acquiring basic data of a to-be-planned area, the basic data comprising off-road terrain data, vehicle dynamics data, weather data, dangerous area data and static obstacle data; S2: constructing off-road navigation grid data considering environmental safety according to the off-road terrain data, weather data, dangerous area data and static obstacle data; S3: obtaining the shortest initial planning path according to the off-road navigation grid data considering environmental safety by using an A* algorithm and a funnel algorithm; S4: optimizing the shortest initial planning path according to the vehicle dynamics data to obtain the best safe passage planning path.
[0006] Furthermore, the off-road terrain data of the above-mentioned off-road maneuvering path planning method considering traffic safety include digital elevation models, topographic maps, slopes, and soil types; vehicle dynamics data include vehicle climbing energy consumption, vehicle wading depth, vehicle chassis height, vehicle obstacle crossing ability, vehicle speed, vehicle turning angle, vehicle control variables, and vehicle wheelbase; vehicle speed includes turning speed, movement speed, longitudinal movement acceleration, front wheel angular velocity, maximum throttle acceleration, maximum braking deceleration, maximum steering wheel rotation angular velocity, maximum front wheel turning angle, and maximum movement speed; vehicle turning angle includes front wheel turning angle and maximum turning angle; weather data collection: obtaining weather information data such as temperature, wind speed, and rainfall; using meteorological forecast services to obtain weather forecast information data for a period of time in the future; dangerous area data include regional data such as landslides, mudslides, and debris flows; static obstacle data include stones, trees, buildings, mountains, rivers, etc.
[0007] Furthermore, step S2 of the above-mentioned off-road maneuvering path planning method considering traffic safety includes: S21: constructing initial navigation grid data according to off-road terrain data; S22: constructing a traffic safety cost function according to off-road terrain data, weather data, dangerous area data and static obstacle data, such as formula:
[0008] g(n)=w1terrain cost(n) +w2obstacle cost(n) +w3weather cost(n) +w4risk cost(n)
[0009] Among them, g(n) is the traffic safety cost function, terrain cost(n) is the total cost of the traffic safety cost of the terrain where node n is located, obstacle cost(n) is the additional travel cost required for node n to pass through the obstacle, weather cost(n) is the additional travel cost when the weather at node n changes, risk cost(n) is the additional travel cost caused by the danger level of the area where node n is located, w1 is the weight of the travel safety cost item of terrain factors, w2 is the weight of the travel safety cost item of obstacle factors, w3 is the weight of the travel safety cost item of weather factors, and w4 is the weight of the travel safety cost item of danger level factors;
[0010] S23: Calculating the traffic safety cost of each grid unit according to the initial navigation grid data and the traffic safety cost function to obtain off-road navigation grid data that takes environmental safety into consideration.
[0011] Furthermore, step S3 of the above-mentioned off-road maneuvering path planning method considering traffic safety includes: S31: using the A* algorithm based on the off-road navigation grid data taking into account environmental safety, obtaining the polygonal area passed by the minimum travel cost path; S32: using the funnel algorithm based on the polygonal area passed by the minimum travel cost path, obtaining the shortest initial planning path.
[0012] Furthermore, step S4 of the above-mentioned off-road maneuvering path planning method considering traffic safety includes: S41: constructing driving safety constraint conditions according to vehicle dynamics data, as shown in the formula:
[0013]
[0014] a i ≤u r ≤a m
[0015] |u w |≤ω m
[0016] |α|≤α m
[0017] 0≤v≤v m
[0018] in, is the horizontal coordinate of the position of the vehicle during the state transition, v is the vehicle speed, θ is the original turning angle, is the ordinate of the position of the vehicle during state transition, is the turning angle of the vehicle during motion, α is the turning angle of the front wheels of the vehicle; S represents the wheelbase of the vehicle; u r is the longitudinal acceleration of the vehicle; u w is the angular velocity of the front wheel of the vehicle, a i is the maximum braking deceleration, a m is the maximum throttle acceleration, ω m is the maximum angular velocity of the steering wheel, α m is the maximum front wheel turning angle, v m is the maximum speed of the vehicle;
[0019] S42: Obtain a complete vehicle motion trajectory according to driving safety constraints and the shortest initial planned path; S43: Smooth the complete vehicle motion trajectory using a smoothing method to obtain an optimal safe passage planning path.
[0020] Furthermore, the smoothing method of the above-mentioned off-road maneuvering path planning method considering traffic safety is a cubic B-spline smoothing method.
[0021] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned off-road maneuvering path planning method considering traffic safety are implemented.
[0022] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the above-mentioned off-road maneuvering path planning method considering traffic safety are implemented.
[0023] The off-road maneuvering path planning method, medium and device considering traffic safety provided by the present invention have the following beneficial effects:
[0024] Aiming at complex off-road environments, the present invention not only considers the impact of geographical factors, obstacle factors, etc. on the safety of the passage path, but also pays attention to the potential impact of weather and disaster risks on passage safety. It comprehensively considers various environmental safety factors, constructs navigation grid data that takes environmental safety into account, and can handle complex terrain and various obstacles.
[0025] At the same time, the present invention also takes into account the driving safety of the vehicle, constructs driving safety constraints based on vehicle dynamics data, takes into account environmental safety and driving safety, and ensures that a relatively safe optimized path from the starting point to the end point is found, thereby improving the safety of the entire path planning. The path planning method of the present invention can also be used for unmanned ground vehicle navigation and field exploration mission path planning. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0027] Figure 1 is a flow chart of an off-road maneuvering path planning method considering traffic safety provided by the present invention;
[0028] Figure 2 It is a schematic diagram of the workflow of the off-road maneuvering path planning method considering traffic safety provided by the present invention;
[0029] Figure 3 This is the overall flow chart of path planning considering traffic safety provided by the present invention;
[0030] Figure 4 This is an example diagram of the A* algorithm in the navigation grid provided by the present invention;
[0031] Figure 5 It is the mapping of polygons to points in the navigation grid provided by the present invention;
[0032] Figure 6 It is the polygonal area through which the A* algorithm searches for the optimal path in the navigation grid model data provided by the present invention;
[0033] Figure 7 This is an example diagram of the result of finding the shortest path using the funnel algorithm provided by the present invention;
[0034] Figure 8 It is a structural block diagram of the computer device provided by the present invention. DETAILED DESCRIPTION
[0035] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.
[0036] Figure 1 A schematic diagram of an off-road maneuvering path planning method considering traffic safety in this embodiment is shown. In this embodiment, the off-road maneuvering path planning method considering traffic safety includes the following steps:
[0037] S1: Obtain basic data of the area to be planned, including off-road terrain data, vehicle dynamics data, weather data, dangerous area data and static obstacle data;
[0038] Specifically, the off-road terrain data of the above-mentioned off-road maneuver path planning method considering traffic safety include digital elevation model, topographic map, slope, soil type; vehicle dynamics data include vehicle climbing energy consumption, vehicle wading depth, vehicle chassis height, vehicle obstacle crossing ability, vehicle speed, vehicle turning angle, vehicle control variables, and vehicle wheelbase; vehicle speed includes turning speed, movement speed, longitudinal movement acceleration, front wheel turning angular velocity, maximum throttle acceleration, maximum braking deceleration, maximum steering wheel turning angular velocity, maximum front wheel turning angle, and maximum movement speed; vehicle turning angle includes front wheel turning angle and maximum turning angle; weather data collection: obtaining weather information data such as temperature and wind speed; using meteorological forecast services to obtain weather forecast information data for a period of time in the future; dangerous area data include regional data such as landslides, mudslides, and debris flows; static obstacle data include stones, trees, buildings, mountains, rivers, etc.
[0039] S2: Construct off-road navigation grid data that takes environmental safety into consideration based on off-road terrain data, weather data, dangerous area data, and static obstacle data;
[0040] Specifically, step S2 of the above-mentioned off-road maneuvering path planning method considering traffic safety includes:
[0041] S21: constructing initial navigation mesh data according to off-road terrain data;
[0042] Specifically, as needed, firstly, an initial navigation grid adapted to a real off-road scene is constructed with reference to existing navigation grid data, and the grid is divided into different regions according to geographic data in the process of generating the navigation grid; this embodiment refers to existing navigation grid data, and uses voxelization technology to perform preliminary spatial discretization processing on the model in the process of generating the navigation grid map, and constructs an entity-based height field representation; convex polygons in space are subdivided according to a predetermined voxel grid size, and a conservative voxelization method is used to effectively integrate spatial entities into the height field; then, the terrain is carefully divided by a regional segmentation algorithm to clarify the boundaries of different regions; based on these divided regions, the algorithm further extracts the boundary contours of each region, and converts these contours into convex polygon structures with height information, and at the same time, the geographic information of each region is added to form a detailed navigation grid;
[0043] S22: Construct a traffic safety cost function based on off-road terrain data, weather data, dangerous area data and static obstacle data, such as the formula:
[0044] g(n)=w1terrain cost(n) +w2obstacle cost(n) +w3weather cost(n) +w4risk cost(n)
[0045] Among them, g(n) is the traffic safety cost function, terrain cost(n) is the total cost of the traffic safety cost of the terrain where node n is located, obstacle cost(n) is the additional travel cost required for node n to pass through the obstacle, weather cost(n) is the additional travel cost when the weather at node n changes, risk cost(n) is the additional travel cost caused by the danger level of the area where node n is located, w1 is the weight of the travel safety cost item of terrain factors, w2 is the weight of the travel safety cost item of obstacle factors, w3 is the weight of the travel safety cost item of weather factors, and w4 is the weight of the travel safety cost item of danger level factors;
[0046] S23: calculating the traffic safety cost of each grid unit according to the initial navigation grid data and the traffic safety cost function, and obtaining off-road navigation grid data that takes environmental safety into consideration;
[0047] S3: Based on the off-road navigation grid data that takes environmental safety into consideration, the A* algorithm and the funnel algorithm are used to obtain the shortest initial planning path;
[0048] Specifically, step S3 of the above-mentioned off-road maneuvering path planning method considering traffic safety includes:
[0049] S31: using the A* algorithm based on the off-road navigation grid data that takes environmental safety into consideration, obtaining the polygonal area that the minimum travel cost path passes through;
[0050] S32: according to the polygonal area passed by the minimum travel cost path, the shortest initial planning path is obtained by using the funnel algorithm;
[0051] S4: Optimize the shortest initial planning path according to the vehicle dynamics data to obtain the best safe passage planning path;
[0052] Specifically, step S4 of the above-mentioned off-road maneuvering path planning method considering traffic safety includes:
[0053] S41: Based on the vehicle dynamics data, construct driving safety constraints, as shown in the formula:
[0054]
[0055] a i ≤u r ≤a m
[0056] |u w |≤ω m
[0057] |α|≤α m
[0058] 0≤v≤v m
[0059] in, is the horizontal coordinate of the position of the vehicle during the state transition, v is the vehicle speed, θ is the original turning angle, is the ordinate of the position of the vehicle during state transition, is the turning angle of the vehicle during motion, α is the turning angle of the front wheels of the vehicle; S represents the wheelbase of the vehicle; u r is the longitudinal acceleration of the vehicle; u w is the angular velocity of the front wheel of the vehicle, a i is the maximum braking deceleration, a m is the maximum throttle acceleration, ω m is the maximum angular velocity of the steering wheel, α m is the maximum front wheel turning angle, v m is the maximum speed of the vehicle;
[0060] S42: Obtain a complete vehicle motion trajectory according to driving safety constraints and the shortest initial planned path;
[0061] S43: Smoothing the complete vehicle motion trajectory using a smoothing method to obtain an optimal safe passage planning path;
[0062] Specifically, the smoothing method of the above-mentioned off-road maneuvering path planning method considering traffic safety is a cubic B-spline smoothing method.
[0063] In some embodiments, the above-mentioned off-road maneuvering path planning method considering traffic safety can also be implemented in the following manner.
[0064] In this embodiment, the workflow of the off-road maneuvering path planning method considering traffic safety is as follows: Figure 2 As shown, the method comprises the following steps:
[0065] Step 1: Data collection: Collect basic data such as geography, obstacles, weather, hazardous areas, and vehicle dynamics, and process them for subsequent path planning; specifically, the following data:
[0066] 1. Off-road terrain data: Obtain off-road terrain data, such as DEM (digital elevation model), topographic map, slope, soil type, etc.;
[0067] 2. Vehicle dynamics data collection: obtain vehicle climbing energy consumption, vehicle wading depth, vehicle chassis height, vehicle obstacle crossing ability, vehicle speed (turning speed, movement speed, longitudinal movement acceleration, front wheel angular velocity, maximum throttle acceleration, maximum braking deceleration, maximum steering wheel rotation angular velocity, maximum front wheel angle, maximum movement speed), vehicle angle (front wheel angle, maximum angle), vehicle control variables, vehicle wheelbase and other data;
[0068] 3. Weather data collection: obtain weather information data such as temperature, wind speed, rainfall, etc.; use weather forecast services to obtain weather forecast information data for a period of time in the future;
[0069] 4. Data collection of dangerous areas: obtain data on areas with high geological disaster risks from geological survey data;
[0070] 5. Static obstacle data collection: Through field surveys and investigations, obtain detailed information about static obstacles, such as rocks, trees, buildings, mountains, rivers, etc.
[0071] Next, we first clean the data to deal with missing values and outliers, and then unify the data formats of different data sources to ensure that the data can be read and processed correctly. Then, we remove duplicate data records and redundant information to reduce the size and complexity of the data set, and then integrate and merge the data, and finally convert the data. According to the actual data situation, if the amount of data is too large, it can also be appropriately filtered, but try to retain the characteristics of the original data. After the data is ready, it can be used for subsequent analysis and path planning tasks.
[0072] Step 2: Construction of off-road navigation grid data model taking environmental safety into account: First, construct the initial navigation grid data based on the collected geographic data; then, analyze the impact of different environmental factors on the traffic safety cost based on the collected geographic, obstacle, weather and dangerous area data, and design a traffic safety cost estimation function and its weight factor based on the vehicle dynamics data and weather data; finally, use the traffic safety cost function to calculate the traffic conditions of each grid in the navigation grid data, so as to obtain the off-road navigation grid model data taking environmental safety into account;
[0073] First, refer to the existing navigation grid data to build an initial navigation grid that adapts to the real off-road scene. In the process of generating the navigation grid, the grid is divided into different areas according to the geographic data. The general process of creating a navigation grid is as follows:
[0074] Voxelization: Creates a Solid Heightfield from the source geometry.
[0075] ●Filter walkable surfaces to further filter walkable surfaces;
[0076] ●Partition walkable surface to simple regions:
[0077] Detect the top surface of the entity's height field and divide it into regions consisting of adjacent spans;
[0078] Contour Generation: Detect the contours of the area and form them into simple polygons.
[0079] ●Convex Polygon Generation: subdivide the outline into convex polygons;
[0080] ● Detailed Mesh Generation: Triangulate the polygonal mesh.
[0081] and add a high degree of detail;
[0082] This embodiment refers to the existing navigation grid data, uses voxelization technology to perform preliminary spatial discretization processing on the model in the process of generating the navigation grid map, and constructs an entity-based height field representation; subdivides the convex polygons in the space according to the predetermined voxel grid size, and uses the conservative voxelization method to effectively integrate the spatial entities into the height field; then, the terrain is carefully divided by the regional segmentation algorithm to clarify the boundaries of different regions; based on these divided regions, the algorithm further extracts the boundary contours of each region, and converts these contours into convex polygon structures with height information, and at the same time, adds the geographic information of each region to form a detailed navigation grid;
[0083] Secondly, based on the vehicle dynamics data and weather data, the travel cost of each factor including but not limited to terrain, slope, soil and other types is defined; this embodiment adopts a scoring method, where ∞ means impassable, and the smaller the score, the better the travel capacity; finally, based on this, the weights of relevant influencing factors and their characteristic factors in off-road path planning are determined using the hierarchical analysis method to provide data support for subsequent path planning algorithms;
[0084] Part 1: Design and process geographical factors: For each terrain type, this embodiment defines a basic movement cost, which reflects the difficulty of passing through the terrain type; for example, the basic movement cost of the plain is set to 1, reflecting its lower difficulty of passing and less impact on traffic safety; the basic movement cost of the mountain is set to 7 due to its higher difficulty of safe passing; considering the impact of obstructed vision and terrain complexity on traffic safety, the basic movement cost of the forest is set to 5; the basic movement cost of the swamp is set to 8 due to its extremely high resistance and potential danger; due to different soil types and terrain slopes, the same terrain may have different traffic safety costs, and the terrain traffic safety cost design needs to be adjusted according to the slope, and the terrain traffic safety cost will increase with the increase of the slope; the traffic safety cost needs to be adjusted according to the softness of the soil, such as clay increasing the cost by 30% and sand increasing the cost by 20%; the specific numerical design is shown in Table 1, Table 2 and Table 3:
[0085] Table 1: Cost of traffic safety due to terrain factors
[0086]
[0087]
[0088] Table 2: Cost of traffic safety due to terrain slope factors
[0089]
[0090] Table 3: Cost table of traffic safety factors based on terrain and soil
[0091]
[0092]
[0093] Then, a method for calculating the safety cost of terrain factors is designed; the core of this step is to accurately estimate the safe movement cost g(n) from the starting point to any node n, especially considering the impact of different terrains on traffic safety; this embodiment uses a recursive calculation method for the safety cost of each node to optimize path selection; the specific calculation steps are as follows:
[0094] ·Start from the starting point: the starting point S of the path start The cost g(S start ) is set to 0;
[0095] Recursive formula: For each node n, its cost g(n) is calculated based on the cost g(S) of its parent node. parent ) and the terrain travel safety cost from the parent node to the node; the calculation formula is:
[0096] g(n)=g(S parent )+terrain_cost(n) ............ (1)
[0097] terrain_cost(n)=terrainbase_cost(n)+k1terrainbase_cost(n)+k2terrainbase_cost(n)............(2)
[0098] Among them, terrain_cost(n) is the total cost of the terrain where node n is located, terrainbase_cost(n) is the basic terrain safety cost, k1 is the weight of the safety cost affected by the terrain slope, and k2 is the weight of the safety cost affected by the terrain soil type;
[0099] The second part is to design and process the obstacle factors: first, define the safe cost of passage. Each obstacle type is associated with a specific additional cost, which reflects the additional time and energy consumption required to pass the obstacle; then assign a cost to it. The system presets the additional cost value for each obstacle type; for example, the cost of passing through small stones may increase by 5, while the cost of passing through large buildings may increase by 9; the specific numerical design is shown in Table 4:
[0100] Table 4: Cost table of traffic safety due to obstacles
[0101]
[0102]
[0103] Then, a method for calculating the safety cost of obstacles is designed: when a path passes through one or more obstacles, the additional cost of each obstacle will be added to the total safety cost, which ensures that the path can avoid or bypass obstacles to minimize the overall safety cost; for each node n, the total safety cost g(n) from the starting point to the node is obtained by accumulating the additional costs of all obstacles on the path from the starting point to the node; the calculation formula is:
[0104] g(n)=g(S parent )+obstacle_cost(n) ............ (3)
[0105] Where, obstacle_cost(n) is the additional travel cost required for node n to pass the obstacle;
[0106] Through this method, the present embodiment can accurately consider different types of obstacles in the path planning process and ensure that the generated path can effectively avoid or bypass these obstacles to provide the best path selection suggestion;
[0107] The third part is to design and deal with weather factors: each weather condition is associated with a specific additional travel cost, which reflects the additional difficulty and risk of moving under different weather conditions; therefore, it is necessary to assign corresponding additional travel safety costs to different weather conditions according to pre-set rules, and to formulate travel safety cost adjustment rules based on the relationship between weather conditions and travel safety costs; for example, it is stipulated that the travel cost increases by 30% when it rains, and the cost increases by 15% when the wind speed exceeds a certain threshold, etc. The specific numerical designs are shown in Tables 5 and 6:
[0108] Table 5: Weather Factor Traffic Safety Cost Table
[0109]
[0110] Table 6: Weather and wind speed factors for traffic safety costs
[0111]
[0112] Then, a method for calculating the traffic safety cost of weather factors is designed: weather data is mapped to corresponding cost adjustment rules to determine the proportion of traffic safety costs that need to be adjusted under different weather conditions, and then the cost in path planning is dynamically adjusted according to real-time weather data to reflect the actual situation in the current environment; when calculating the total traffic safety cost g(n) from the starting point to each node n, the system will consider the additional traffic cost under the current weather conditions and add it to the total traffic safety cost of the path; the calculation formula is:
[0113] g(n)=g(S parent )+weather_cost(n) ............ (4)
[0114] weather_cost(n)=k3terrain_cost(n)+k4terrain_cost(n) ........... (5)
[0115] Among them, weather_cost(n) is the additional travel cost when the weather at node n changes, k3 is the different travel safety weights caused by different weather on different terrains, and k4 is the different travel safety weights caused by different wind speeds on different terrains;
[0116] The fourth part is to design and process the dangerous area factors: based on the evaluation results of geological survey data and combined with geological disaster warning and forecast data, the dangerous areas are divided into high-risk, medium-risk, low-risk and non-risk levels and given different weights, and the comprehensive travel safety cost weight is calculated accordingly; the specific design is shown in Table 7;
[0117] Table 7 Dangerous Area Passage Safety Cost Table
[0118]
[0119] Then, a method for calculating the safety cost of dangerous areas is designed: according to the danger level of the area, a corresponding additional travel cost is assigned to each area to reflect the safety risk when the path passes through the area; in the path planning process, the additional travel cost of the dangerous area is added to the travel safety cost function g(n) to affect the decision of path selection; its calculation formula is:
[0120] g(n)=g(S parent )+risk_cost(n) ............ (6)
[0121] risk_cost(n)=k5terrain_cost(n) ............. (7)
[0122] Among them, risk_cost(n) is the additional travel cost caused by the danger in the area where node n is located, and k5 is the different travel safety weight values caused by the dangerous area on different terrains;
[0123] Through the above method, this embodiment can fully consider the dangerous area factors and provide users with safe path planning services;
[0124] Part 5: Designing a traffic safety cost function: The path planning method of this embodiment comprehensively calculates the traffic safety cost of the path by taking into account multiple environmental safety factors such as geography, obstacles, weather, and dangerous areas to ensure that the generated path has the best performance and reliability in a complex environment; the following is a detailed description of the comprehensive traffic safety cost calculation part:
[0125] First, a traffic safety cost calculation model is designed, and a traffic safety cost function g(n) based on the A* algorithm is designed, including the traffic safety costs generated by multiple environmental safety factors such as terrain, obstacles, weather and dangerous areas; then an appropriate weight is given to each cost item to reflect its importance and influence in path planning; finally, the path traffic safety cost is calculated, and for each node g(n), the total traffic safety cost from the starting point to the node is calculated, covering the traffic safety costs generated by multiple environmental safety factors such as terrain, obstacles, weather and dangerous areas. The calculation method is obtained by accumulating all cost items from the starting point to the target node, reflecting the complexity and difficulty of the entire path; the calculation formula is:
[0126] g(n)=g(S parent )+w1terrain_cost(n)+w2obstacle_cost(n)+w3weather_cost(n)+w4risk_cost(n)(8)
[0127] Among them, w1, w2, w3, and w4 are the weights of the travel safety cost items of terrain factors, obstacle factors, weather factors, and dangerous area factors respectively;
[0128] Step 3: Initial path planning: Using the A* algorithm, combined with the traffic safety cost function that considers safety factors such as terrain, obstacles, weather, and dangerous areas, search for the polygonal area passed by the minimum traffic cost path from the navigation grid model data, and use the funnel algorithm to obtain the shortest initial planning path; the specific process is as follows: Figure 3 As shown, it is the overall flow chart of path planning considering traffic safety;
[0129] First, the A* algorithm is a heuristic search algorithm based on a grid map, which is used to find the starting node S startTo the target node S goal The optimal path; first, the starting node S start Add to the OPEN list, and then start Adjacent grid nodes S belonging to the barrier-free space Sfree near Add to the OPEN list and set S start For S near Next, remove S from the OPEN list. start and add it to the CLOSE list; in the OPEN list, the next node to be processed is determined by the f value, where the f value is composed of g (the actual path cost from S_start to the current node) and h (the actual path cost from the current node to S goal The estimated path cost is composed of: Select the node S with the smallest f value best To ensure the optimality of the path, the estimated cost h must be less than the cost from the current node to S. goal The actual optimal path cost value;
[0130] The off-road environment model used in this embodiment is constructed by navigation mesh, which is a method of using polygons to represent the game world; the polygons on the navigation mesh must be convex; the property of convex polygons can ensure the free walking of a game character as long as such a character stays within the same polygon; triangulation is a special case of navigation mesh, because all polygons on it are triangles; in most cases, the number of sides of the polygons on the navigation mesh ranges from 3 to 6; in fact, the number of sides exceeding 6 may cause a significant increase in memory usage;
[0131] Using the A* algorithm on a navigation mesh is a method for optimizing pathfinding; the following are the basic steps for using the A* algorithm to find a path on a navigation mesh:
[0132] Let G be a graph with P polygons that are traversable and B polygons that are closed, such as Figure 4 As shown;
[0133] First, we need to find a set of polygonal areas C through which the path with the best safety cost will pass; if P s is the polygon where the starting point is, then P s It must be the first polygon in C. If P g is the polygon where the target is located, then P g must be the last polygon in C. To find the rest of C, we need to make some changes in the map; map each polygon in G to a node in G'; for example, P s Mapping to N s , P g Mapping to Ng ;like Figure 5 As shown, each edge shared by two polygons in G is mapped to an edge connecting two nodes in G';
[0134] Then, in G', from N s To N g The optimal safe path can be found using A*; since each node in G' corresponds to a polygon in G, each node in the path corresponds to a polygon in C, such as Figure 6 As shown;
[0135] C is not a real path, but a set of polygons. Next, we need to use the funnel algorithm to find the shortest path in this polygonal area, such as Figure 7 As shown;
[0136] The funnel algorithm is an efficient path search algorithm for map navigation. Its core idea is to transform the path search process into a process of funnel contraction and expansion on the polygon boundary to find the optimal path from the starting point to the end point. Specifically, the implementation steps of the algorithm are as follows:
[0137] ● Initialize the funnel: Starting from the starting point, initialize a funnel structure and set its vertex as the starting point;
[0138] ● Funnel contraction: Move forward along the path, constantly adjusting the shape of the funnel so that it always covers the shortest possible path; at each step, dynamically adjust the boundaries of the funnel based on the polygon boundary and the current shape of the funnel to ensure that the funnel can contain all possible choices of the path;
[0139] ●Funnel expansion: When the funnel encounters a turning point or an end point, the funnel is expanded. During the expansion process, the shape information of the funnel is used to gradually eliminate unnecessary path candidates and retain the optimal path.
[0140] ●Shortest path extraction: When the funnel reaches the end point, the shortest path contained in it is extracted; based on the shape information of the funnel, the shortest path from the starting point to the end point can be easily reconstructed;
[0141] Step 4: Path optimization that takes driving safety into consideration; Constraints are imposed based on vehicle dynamics to ensure driving safety; When planning a path for a moving vehicle, it is necessary to consider the constraints during the vehicle's motion, which are described by equation (9);
[0142]
[0143] Where: m = (x, y, θ) is the vehicle's motion state, including the vehicle's position coordinates and angle; n is the vehicle's control variable, such as throttle opening, brake and steering wheel angle; t is the sampling time interval; during the vehicle's motion, its state transition is subject to the constraints inherent in the vehicle's motion. Specifically, the following state variable differential equation (10-14) can be used to describe the state transition law of the vehicle during motion;
[0144]
[0145] Where: v is the vehicle speed; α is the front wheel turning angle of the vehicle; S is the wheelbase of the vehicle; u r is the longitudinal acceleration of the vehicle; u w is the angular velocity of the front wheel of the vehicle; the range of the input control variables and some state variables are shown in formula (15-18);
[0146] a i ≤u r ≤a m ........... (15)
[0147] |u w |≤ω m ................... (16)
[0148] |α|≤α m ................. (17)
[0149] 0≤v≤v m .................. (18)
[0150] Where: a m is the maximum throttle acceleration; a i is the maximum braking deceleration; ω m is the maximum angular velocity of the steering wheel; α m is the maximum front wheel turning angle; v m is the maximum speed of the vehicle;
[0151] The goal of vehicle path planning is to find a series of road driving points with the lowest travel safety cost within the feasible range of the vehicle, and connect the road points with feasible trajectories under the constraints of formula (10-18) to form a complete vehicle motion trajectory;
[0152] Finally, the generated path is smoothed: this step uses the cubic B-spline smoothing method, which is a parametric curve widely used in computer graphics and geometric modeling. B-spline curves can be divided into two types: approximate fitting and interpolation fitting. Approximate fitting does not pass through feature points, while interpolation fitting ensures that the curve passes through these feature points. Specifically for interpolation fitting, it is necessary to first determine the control points through the inverse calculation process, and then use these control points to construct the B-spline curve equation that can pass through the feature points.
[0153] The overall equation of the B-spline curve is as follows:
[0154]
[0155] Where P i is the characteristic point of the control curve, F i,k (t) is the K-order B-spline basis function;
[0156] The basis function in the cubic B-spline curve equation is:
[0157]
[0158] in To express factorial, we can convert it into a clear formula:
[0159]
[0160] Substitute the basis functions of equations (21-24) into equation (19), namely:
[0161] P(t)=P0*F 0,3 (t)+P1*F 1,3 (t)+P2*F 2,3 (t)+P3*F 3,3 (t) .......... (25)
[0162] Equation (25) is the cubic B-spline curve equation.
[0163] This embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned off-road maneuvering path planning method considering traffic safety are implemented. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0164] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the above-mentioned off-road maneuvering path planning method considering traffic safety are implemented.
[0165] like Figure 8 As shown, the computer device may include: at least one processor 121, such as a CPU (Central Processing Unit), at least one communication interface 123, a memory 124, and at least one communication bus 122. Among them, the communication bus 122 is used to realize the connection and communication between these components. Among them, the communication interface 123 may include a display screen (Display), a keyboard (Keyboard), and the optional communication interface 123 may also include a standard wired interface and a wireless interface. The memory 124 may be a high-speed RAM memory (Random Access Memory, volatile random access memory) or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 124 may also be at least one storage device located away from the aforementioned processor 121. Among them, the memory 124 stores an application program, and the processor 121 calls the program code stored in the memory 124 to perform any of the above method steps. Among them, the communication bus 122 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus 122 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8Only one line is used to represent it, but it does not mean that there is only one bus or one type of bus. Among them, the memory 124 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 124 may also include a combination of the above-mentioned types of memory. Among them, the processor 121 may be a central processing unit (English: central processing unit, abbreviated: CPU), a network processor (English: network processor, abbreviated: NP) or a combination of CPU and NP. Among them, the processor 121 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (English: application-specific integrated circuit, abbreviated: ASIC), a programmable logic device (English: programmable logic device, abbreviated: PLD) or a combination thereof. The PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. Optionally, the memory 124 is also used to store program instructions. The processor 121 can call program instructions to implement the off-road maneuvering path planning method considering traffic safety as in this embodiment.
[0166] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A method for off-road maneuvering path planning considering traffic safety, characterized in that: The following steps are involved: S1: Acquire basic data of the area to be planned, wherein the basic data includes off-road terrain data, vehicle dynamics data, weather data, dangerous area data and static obstacle data; S2: constructing off-road navigation grid data that takes environmental safety into consideration according to the off-road terrain data, weather data, dangerous area data and static obstacle data; S3: according to the off-road navigation grid data taking environmental safety into consideration, using the A* algorithm and the funnel algorithm, obtaining the shortest initial planning path; S4: Optimizing the shortest initial planned path according to the vehicle dynamics data to obtain an optimal safe passage planned path.
2. The off-road maneuvering path planning method considering traffic safety according to claim 1 is characterized in that: The off-road terrain data includes digital elevation model, topographic map, slope, and soil type; the vehicle dynamics data includes vehicle climbing energy consumption, vehicle wading depth, vehicle chassis height, vehicle obstacle crossing ability, vehicle speed, vehicle turning angle, vehicle control variables, and vehicle wheelbase; the vehicle speed includes turning speed, movement speed, longitudinal movement acceleration, front wheel turning angular velocity, maximum throttle acceleration, maximum braking deceleration, maximum steering wheel turning angular velocity, maximum front wheel turning angle, and maximum movement speed; the vehicle turning angle includes front wheel turning angle and maximum turning angle; the weather data collection: obtains weather information data such as temperature, wind speed and rainfall; uses meteorological forecast services to obtain weather forecast information data for a period of time in the future; the dangerous area data includes landslide, mudslide, and debris flow area data; the static obstacle data includes stones, trees, buildings, mountains, and rivers.
3. The off-road maneuvering path planning method considering traffic safety according to claim 1 is characterized in that: Step S2 includes: S21: constructing initial navigation grid data according to the off-road terrain data; S22: Constructing a traffic safety cost function according to the off-road terrain data, weather data, dangerous area data and static obstacle data, such as the formula: g(n)=w1terrain cost(n) +w2obstacle cost(n) +w3weather cost(n) +w4risk cost(n) Among them, g(n) is the traffic safety cost function, terrain cost(n) is the total cost of the traffic safety cost of the terrain where node n is located, obstacle cost(n) is the additional travel cost required for node n to pass through the obstacle, weather cost(n) is the additional travel cost when the weather at node n changes, risk cost(n) is the additional travel cost caused by the danger level of the area where node n is located, w1 is the weight of the travel safety cost item of terrain factors, w2 is the weight of the travel safety cost item of obstacle factors, w3 is the weight of the travel safety cost item of weather factors, and w4 is the weight of the travel safety cost item of danger level factors; S23: Calculating the traffic safety cost of each grid unit according to the initial navigation grid data and the traffic safety cost function to obtain off-road navigation grid data that takes environmental safety into consideration.
4. The off-road maneuvering path planning method considering traffic safety according to claim 1 is characterized in that: Step S3 includes: S31: using the A* algorithm according to the off-road navigation grid data taking environmental safety into consideration, obtaining a polygonal area passed by a minimum travel cost path; S32: According to the polygonal area passed by the minimum travel cost path, a funnel algorithm is used to obtain the shortest initial planning path.
5. The off-road maneuvering path planning method considering traffic safety according to claim 1 is characterized in that: Step S4 includes: S41: Constructing driving safety constraint conditions according to the vehicle dynamics data, as shown in the formula: a i ≤u r ≤a m |in w |≤ω m |α|≤α m 0≤v≤v m in, is the horizontal coordinate of the position of the vehicle during the state transition, v is the vehicle speed, θ is the original turning angle, is the ordinate of the position of the vehicle during state transition, is the turning angle of the vehicle during motion, α is the turning angle of the front wheels of the vehicle; S represents the wheelbase of the vehicle; u r is the longitudinal acceleration of the vehicle; u w is the angular velocity of the front wheel of the vehicle, a i is the maximum braking deceleration, a m is the maximum throttle acceleration, ω m is the maximum angular velocity of the steering wheel, α m is the maximum front wheel turning angle, v m is the maximum speed of the vehicle; S42: Obtaining a complete vehicle motion trajectory according to the driving safety constraint condition and the shortest initial planned path; S43: Smoothing the complete vehicle motion trajectory using a smoothing method to obtain an optimal safe passage planning path.
6. The off-road maneuvering path planning method considering traffic safety according to claim 1 is characterized in that: The smoothing method is a cubic B-spline smoothing method.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the off-road maneuvering path planning method considering traffic safety as described in any one of claims 1-6 are implemented.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the off-road maneuvering path planning method considering traffic safety as described in any one of claims 1-6 are implemented.
Citation Information
Cited By
Wargame deduction path planning method and device based on hexagonal lattice and storage medium
CN120875019A
DOP information fused long-distance maneuvering path planning method and system
CN121475263A
Terrain trafficability dynamic evaluation method and device based on multi-source spatio-temporal data coupling, electronic equipment and storage medium
CN122549805A
