A hierarchical off-road path planning method based on deep reinforcement learning
Through a hierarchical path planning method that combines deep reinforcement learning and dynamic window methods, it solves the dynamic changes and energy efficiency problems of path planning in off-road environments, achieves efficient and safe off-road path planning, and ensures the stable movement of vehicles in complex environments. .
Patent Information
- Application Number
- CN202410124332.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-01-29
AI Technical Summary
Existing off-road environment path planning methods are difficult to adapt to dynamically changing environments and rely too much on preset parameters, resulting in low path planning efficiency and unoptimized energy consumption, and the speed generated by deep neural networks does not comply with vehicle kinematic constraints.
Using a hierarchical path planning method based on deep reinforcement learning, by designing a global cost function and local path planning, combined with the D*Lite algorithm and dynamic window method, a deep neural network model is constructed to adaptively learn dynamic parameters and utilize dense reward functions Train the network to enable efficient path planning for off-road vehicles in dynamic environments.
It achieves efficient and safe path planning in complex off-road environments, comprehensively considers distance and energy consumption, avoids local optimal solutions, ensures the satisfaction of vehicle kinematic constraints, and improves the adaptability and endurance of path planning.
Smart Images

Figure CN117990119B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of path planning, and in particular relates to a hierarchical off-road path planning method based on deep reinforcement learning. Background Art
[0002] Off-road vehicles are widely used in the fields of field search and rescue, forest fire fighting, and material transportation due to their ability to operate in harsh environments. Compared with road environments, the undulating terrain and complex obstacles in off-road environments pose a major challenge to the stability and safety of vehicle movement. In order to ensure that off-road vehicles can move safely and quickly to the mission area, path planning is required in advance.
[0003] Existing path planning methods for off-road environments have the following problems: on complex terrain, the energy efficiency of the path becomes a key consideration, and many existing methods fail to effectively consider energy consumption, which may lead to non-optimal path planning; many traditional path planning methods are difficult to adapt to the dynamic changes of the environment, especially in unknown or changing off-road environments; some optimization-based methods rely on preset parameters, which need to be adjusted under different environmental conditions, but manual adjustment is complex and inefficient; the speed directly generated by deep neural networks may not comply with the non-holonomic constraints of the vehicle. Summary of the invention
[0004] The purpose of the present invention is to provide a hierarchical off-road path planning method based on deep reinforcement learning, so as to solve the problem that the traditional path planning method in the prior art is difficult to adapt to the dynamic changes of the environment and relies too much on preset parameters.
[0005] To achieve the above object, the present invention provides a hierarchical off-road path planning method based on deep reinforcement learning, comprising the following steps:
[0006] Step 1: Design a global cost function for the distance and energy consumption of the off-road vehicle in the global map, and use the D*Lite algorithm to calculate the global path;
[0007] Step 2: Take path points based on the global path to guide local path planning;
[0008] Step 3: Build a policy-based deep neural network model to adaptively learn the parameters of the dynamic window method, and train the constructed neural network model to maximize the cumulative reward obtained by the off-road vehicle during the driving process from the starting point to the destination;
[0009] Step 4: Taking the global path point as the target, the dynamic window method is used to calculate the control speed, obtain the path that meets the kinematic constraints of the off-road vehicle, and complete the path planning in the off-road environment.
[0010] Preferably, the specific calculation process of the global path in step 1 is as follows:
[0011] S11. Quantify environmental attributes using raster data of digital elevation models, which are discrete mathematical representations of the topography of the Earth’s surface, represented by an elevation matrix consisting of regular grid elements:
[0012] z=dem(x,y)
[0013] Among them, x and y are the coordinates of the location, and z is the elevation;
[0014] S12. Construct a route cost model. If i is a node in the topographic map, then (x i ,y i ,z i ) is the terrain surface coordinate of the node, and the distance cost between any two points i and j is defined as the three-dimensional Euclidean distance:
[0015]
[0016] S13. Building an energy cost model
[0017] Calculate the inclination angle of any two adjacent nodes i and j on the terrain:
[0018]
[0019] Assuming that the off-road vehicle travels at a fixed speed v throughout the entire journey, M is the mass of the off-road vehicle, g is the gravitational constant, μ is the friction coefficient, and the maximum output force to offset gravity and friction is defined as F max =P max / v, where P max is the maximum output power of the off-road vehicle, and calculates the maximum tilt angle of the off-road vehicle:
[0020]
[0021] To avoid loss of traction on steep surfaces, the slope angle must be less than φ s ,φ s The specific calculation formula is as follows, where μ s represents static friction,
[0022] φ s =arctan(μ s -μ)
[0023] Calculate the critical impermissible tilt angle uphill:
[0024] φ up =min(φ f ,φ s )
[0025] When the off-road vehicle is driving downhill, the inclination angle that makes the resultant force of the external force on the off-road vehicle zero is defined as the critical fracture angle, and its calculation formula is:
[0026] φ down = -arctan(μ)
[0027] When φ<φ down When φ is used, the off-road vehicle will accelerate due to its own gravity. In order to maintain a constant speed, the off-road vehicle needs to brake, and the energy consumed by braking is negligible; if φ i,j >φ up , it means that the off-road vehicle cannot travel along the straight line connecting node i and node j, but it is still possible to detour from node i to node j. The energy cost model from node i to node j is defined as:
[0028]
[0029] S14. Calculate the global cost function. Based on additive weighting, the calculation formula for the global cost of moving from node i to node j is as follows:
[0030] c(i,j)=α·d i,j +(1-α)·e i,j
[0031] In the formula, α is the weight factor, which can be set according to user preferences;
[0032] S15. Based on the global cost function, the D*Lite algorithm is used to perform global path planning to obtain the global path with the minimum cost.
[0033] Preferably, the specific process of guiding the local path planning by taking the path points according to the global path in step 2 is as follows:
[0034] S21, select the nodes of the global path (P1, P2, ..., P i , …);
[0035] S22, nodes selected by global path (P1, P2, ..., P i , …) as the path points of local path planning, the effective radius of each path point is radius;
[0036] S23, when the off-road vehicle reaches the current path point P i When the effective radius is within, the next path point P i+1 Will become the next temporary target point;
[0037] S24. Repeat S23 until the destination is reached.
[0038] Preferably, the specific process of step 3 is as follows:
[0039] S31, two-dimensional local elevation map E t 、Off-road vehicle postureθ pitch ,θ roll , obstacle information and target information are the inputs of the deep neural network, where the obstacle information includes the distance d to the nearest obstacle. obst and the angle α between the direction of the off-road vehicle and the direction of the nearest obstacle obst ; Target information includes the distance d to the target goal The angle α between the direction of the off-road vehicle and the direction to the target goal ; Among them, E t ,θ pitch ,θ roll ,d obst , α obst ,d goal , α goal Together they constitute the state space S, and the specific expression is as follows:
[0040] S=[E t ,θ pitch ,θ roll ,d obst ,α obst ,d goal ,α goal ]
[0041] As the off-road vehicle moves forward, the deep neural network model continuously obtains state information as input until its training is completed;
[0042] S32. Perform an action based on the observation of the environment and the deep neural network search strategy. The action space is the parameter of DWA. The action space consists of four actions. The specific expression is as follows:
[0043] A=[β1,β2,β3,T]
[0044] Where β1, β2, β3 represent the weight factors of the sub-functions of DWA, T represents the time period, the weight factor is a continuous value in the range of [0,1], indicating the importance of the corresponding evaluation function; the time period T is a continuous value in the range of [0,2], indicating the duration of the simulated off-road vehicle driving at the sampling speed;
[0045] S33. Designing a dense reward function R for off-road vehicle navigation tot , calculate the reward value obtained by the off-road vehicle after performing an action in the current state, the dense reward function R tot The specific expression is as follows:
[0046] R tot =λ1R succ +λ2R fail +λ3R wayp+λ4R goal +λ5R obst +λ6R grad +λ7R time
[0047] In the formula, λ i (i=1,2,3,4,5,6,7) represents the weight of the sub-reward function, R succ Represents the reward for successfully reaching the destination, R fail Indicates the reward for the off-road vehicle falling into danger and causing navigation failure, R wayp Represents the reward for reaching the temporary target point, R goal Represents the reward for being closer to the destination, R obst Represents the reward for being farther from the obstacle, R grad represents the reward of elevation gradient, R time Reward representing navigation time;
[0048] When the off-road vehicle successfully reaches the destination, the agent will receive a large positive reward r succ ; If the off-road vehicle is in danger, the agent will receive a large negative reward r fail In addition, if the distance between the off-road vehicle and the temporary path point is less than the effective radius radius, the agent will receive a positive reward r wayp , the specific expression is as follows:
[0049]
[0050]
[0051]
[0052] If the off-road vehicle is closer to the destination, the agent will receive a positive reward r goal ; otherwise, it will receive a negative reward -r goal , the specific expression is as follows:
[0053]
[0054] In the formula, Indicates the current position of the off-road vehicle. represents the position of the off-road vehicle at the previous moment, P goal Indicates the location of the destination;
[0055] If the off-road vehicle is closer to the obstacle, the agent will receive a negative reward -r obst ; Otherwise, a positive reward r will be obtained obst , the specific expression is as follows:
[0056]
[0057] In the formula, Indicates the position of the obstacle closest to the off-road vehicle at the current moment. Indicates the position of the obstacle closest to the off-road vehicle at the previous moment;
[0058] R grad The agent is encouraged to learn features that help avoid high altitude gradient areas. The specific expression is as follows:
[0059]
[0060] In the formula, △E t represents the elevation gradient, r grad is a small positive number;
[0061] In addition, the agent receives a small negative reward r at each time step before reaching the final state. time , the specific expression is as follows:
[0062]
[0063] S34. Use the above-mentioned reward function to train the designed deep neural network model to maximize the cumulative reward obtained by the off-road vehicle during the driving process from the starting point to the destination, thereby realizing path planning in the off-road environment.
[0064] Preferably, the specific process of calculating the control speed using the dynamic window method in step 4 is as follows:
[0065] S41. Generate a velocity search space. The dynamic window method limits the trajectory to an arc by directly controlling the velocity pair (v, ω), which is specifically expressed as follows:
[0066] The off-road vehicle is subject to the maximum and minimum linear speeds as well as the maximum and minimum angular speeds, which are specifically expressed as:
[0067] V s ={(v,ω)|v∈[v min ,v max ],ω∈[ω min ,ω max ]}
[0068] In the formula, v represents the linear velocity of the off-road vehicle, ω represents the angular velocity of the off-road vehicle, and v min represents the minimum linear velocity of the off-road vehicle, v max represents the maximum linear speed of the off-road vehicle, ω min represents the minimum angular velocity of the off-road vehicle, ω max represents the maximum angular velocity of the off-road vehicle;
[0069] The dynamic window is defined as follows, which means that the search space is restricted to the actual allowed velocities in a single forward time step subject to the acceleration constraint:
[0070]
[0071] where v c ,ω c is the current linear velocity and angular velocity of the off-road vehicle, is the maximum linear acceleration and angular acceleration, △t is the time step;
[0072] The search space is pruned to ensure that the off-road vehicle can stop in front of the obstacle at the current speed with the maximum acceleration. The specific expression is as follows:
[0073]
[0074] In the formula, the function dist(v,ω) represents the distance to the nearest obstacle;
[0075] Therefore, the final speed search space of the off-road vehicle is defined as:
[0076] V r =V s ∩V d ∩V a ;
[0077] S42, optimize the objective function, calculate the predicted trajectory of each speed in the search space, and select the trajectory corresponding to (v, ω) that maximizes the objective function as the local optimal path, where the expression of the objective function is as follows:
[0078] G(v,ω)=σ[β1·heading(v,ω)+β2·dist(v,ω)+β3·velocity(v,ω)]
[0079] Where σ represents the normalization coefficient, the function heading(v,ω) calculates the angle between the off-road vehicle's forward direction and the target direction at the end of the predicted trajectory; the function dist(v,ω) calculates the distance between the end point of the off-road vehicle's predicted trajectory and the nearest obstacle; the function velocity(v,ω) represents the forward speed of the off-road vehicle.
[0080] Therefore, the present invention adopts the above-mentioned hierarchical off-road path planning method based on deep reinforcement learning, which has the following beneficial effects:
[0081] (1) The present invention comprehensively considers the impact of distance and energy consumption on the mobility of the off-road vehicle. Users can choose different planning schemes according to their personal preferences, which guarantees the cruising range of the off-road vehicle to a certain extent;
[0082] (2) The present invention combines deep reinforcement learning and the dynamic window method to overcome their respective shortcomings, solving the problem that the speed directly generated by the deep reinforcement learning network may not meet the non-holonomic constraints of the vehicle and the dynamic window method is prone to jamming or collision due to manual parameter setting;
[0083] (3) The present invention guides local path planning with the results of global path planning, and designs dense rewards for reinforcement learning during local path planning, thereby avoiding the problem of falling into local optimality during the learning process.
[0084] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1 It is an overall flow chart of a hierarchical off-road path planning method based on deep reinforcement learning of the present invention;
[0086] Figure 2 It is the global path planning guiding the local path planning graph of the present invention;
[0087] Figure 3 It is a network architecture diagram of the deep neural network of the present invention. DETAILED DESCRIPTION
[0088] The following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. 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.
[0089] See also Figure 1-3 , a hierarchical off-road path planning method based on deep reinforcement learning, comprising the following steps:
[0090] Step 1: Design a global cost function for the distance and energy consumption of the off-road vehicle in the global map, and use the D*Lite algorithm to calculate the global path; the specific calculation process of the global path is as follows:
[0091] S11. Use the raster data of the digital elevation model to quantify environmental attributes. In order to facilitate path planning, the grids in these raster data are abstracted as nodes in the graph. Then the study area is transformed into a weighted graph with 8 connected neighborhoods. The edges in the graph represent the global cost between adjacent nodes. The digital elevation model is a discrete mathematical representation of the earth's surface terrain, which is represented by an elevation matrix composed of regular grid elements:
[0092] z=dem(x,y)
[0093] Among them, x and y are the coordinates of the location, and z is the elevation;
[0094] S12. Construct a route cost model. If i is a node in the topographic map, then (x i ,y i ,z i ) is the terrain surface coordinate of the node, and the distance cost between any two points i and j is defined as the three-dimensional Euclidean distance:
[0095]
[0096] S13. Building an energy cost model
[0097] Calculate the inclination angle of any two adjacent nodes i and j on the terrain:
[0098]
[0099] Assuming that the off-road vehicle travels at a fixed speed v throughout the entire journey, M is the mass of the off-road vehicle, g is the gravitational constant, μ is the friction coefficient, and the maximum output force to offset gravity and friction is defined as F max =P max / v, where P max is the maximum output power of the off-road vehicle, and calculates the maximum tilt angle of the off-road vehicle:
[0100]
[0101] To avoid loss of traction on steep surfaces, the slope angle must be less than φ s ,φ s The specific calculation formula is as follows, where μs represents static friction,
[0102] φ s =arctan(μ s -μ)
[0103] Calculate the critical impermissible tilt angle uphill:
[0104] φ up =min(φ f ,φ s )
[0105] When the off-road vehicle is driving downhill, the inclination angle that makes the resultant force of the external force on the off-road vehicle zero is defined as the critical fracture angle, and its calculation formula is:
[0106] φ down = -arctan(μ)
[0107] When φ<φ down When φ is used, the off-road vehicle will accelerate due to its own gravity. In order to maintain a constant speed, the off-road vehicle needs to brake, and the energy consumed by braking is negligible; if φ i,j>φ up , it means that the off-road vehicle cannot travel along the straight line connecting node i and node j, but it is still possible to detour from node i to node j. The energy cost model from node i to node j is defined as:
[0108]
[0109] S14. Calculate the global cost function. Based on additive weighting, the calculation formula for the global cost of moving from node i to node j is as follows:
[0110] c(i,j)=α·d i,j +(1-α)·e i,j
[0111] In the formula, α is the weight factor, which can be set according to user preferences;
[0112] S15. Based on the global cost function, the D*Lite algorithm is used for global path planning to obtain the global path with the lowest cost. The main advantage of the D*Lite algorithm is that it can dynamically update the path in a changing environment without recalculating from scratch, so the search efficiency is higher. When the off-road vehicle receives new environmental information from external communication equipment or map updates (such as landslides, fires, etc. ahead), the D*Lite algorithm has the ability to quickly replan.
[0113] Step 2: Take path points based on the global path to guide local path planning; the specific process is as follows:
[0114] S21, select the nodes of the global path (P1, P2, ..., P i , …);
[0115] S22, nodes selected by global path (P1, P2, ..., P i , …) as the path points of local path planning, the effective radius of each path point is radius;
[0116] S23, when the off-road vehicle reaches the current path point P i When the effective radius is within, the next path point P i+1 Will become the next temporary target point;
[0117] S24. Repeat S23 until the destination is reached.
[0118] By using each node of the global optimal path as a path point to guide local path planning, steep terrain can be bypassed smoothly, avoiding falling into the local optimal solution and ensuring speed consistency.
[0119] Step 3: Build a policy-based deep neural network model to adaptively learn the parameters of the dynamic window method, and train the constructed neural network model to maximize the cumulative reward obtained by the off-road vehicle during the driving process from the starting point to the destination; the specific process is as follows:
[0120] S31, two-dimensional local elevation map E t 、Off-road vehicle postureθ pitch ,θ roll , obstacle information and target information are the inputs of the deep neural network, where the obstacle information includes the distance d to the nearest obstacle. obst and the angle α between the direction of the off-road vehicle and the direction of the nearest obstacle obst ; Target information includes the distance d to the target goal The angle α between the direction of the off-road vehicle and the direction to the target goal ; Among them, E t ,θ pitch ,θ roll ,d obst , α obst ,d goal , α goal Together they constitute the state space S, and the specific expression is as follows:
[0121] S=[E t ,θ pitch ,θ roll ,d obst ,α obst ,d goal ,α goal ]
[0122] As the off-road vehicle moves forward, the deep neural network model continuously obtains state information as input until its training is completed;
[0123] S32. Perform an action based on the observation of the environment and the deep neural network search strategy. The action space is the parameter of DWA. The action space consists of four actions. The specific expression is as follows:
[0124] A=[β1,β2,β3,T]
[0125] Where β1, β2, β3 represent the weight factors of the sub-functions of DWA, T represents the time period, the weight factor is a continuous value in the range of [0,1], indicating the importance of the corresponding evaluation function; the time period T is a continuous value in the range of [0,2], indicating the duration of the simulated off-road vehicle driving at the sampling speed;
[0126] S33. Designing a dense reward function R for off-road vehicle navigation tot, calculate the reward value obtained by the off-road vehicle after performing an action in the current state, the dense reward function R tot The specific expression is as follows:
[0127] R tot =λ1R succ +λ2R fail +λ3R wayp +λ4R goal +λ5R obst +λ6R grad +λ7R time
[0128] In the formula, λ i (i=1,2,3,4,5,6,7) represents the weight of the sub-reward function, R succ Represents the reward for successfully reaching the destination, R fail Indicates the reward for the off-road vehicle falling into danger and causing navigation failure, R wayp Represents the reward for reaching the temporary target point, R goal Represents the reward for being closer to the destination, R obst Represents the reward for being farther from the obstacle, R grad represents the reward of elevation gradient, R time Reward representing navigation time;
[0129] When the off-road vehicle successfully reaches the destination, the agent will receive a large positive reward r succ ; If the off-road vehicle is in danger, the agent will receive a large negative reward r fail In addition, if the distance between the off-road vehicle and the temporary path point is less than the effective radius radius, the agent will receive a positive reward r wayp , the specific expression is as follows:
[0130]
[0131]
[0132]
[0133] If the off-road vehicle is closer to the destination, the agent will receive a positive reward r goal ; otherwise, it will receive a negative reward -r goal , the specific expression is as follows:
[0134]
[0135] In the formula, Indicates the current position of the off-road vehicle. represents the position of the off-road vehicle at the previous moment, P goal Indicates the location of the destination;
[0136] If the off-road vehicle is closer to the obstacle, the agent will receive a negative reward -r obst ; Otherwise, a positive reward r will be obtained obst , the specific expression is as follows:
[0137]
[0138] In the formula, Indicates the position of the obstacle closest to the off-road vehicle at the current moment. Indicates the position of the obstacle closest to the off-road vehicle at the previous moment;
[0139] R grad The agent is encouraged to learn features that help avoid high altitude gradient areas. The specific expression is as follows:
[0140]
[0141] In the formula, △E t represents the elevation gradient, r grad is a small positive number;
[0142] In addition, the agent receives a small negative reward r at each time step before reaching the final state. time , the specific expression is as follows:
[0143]
[0144] S34. Use the above-mentioned reward function to train the designed deep neural network model to maximize the cumulative reward obtained by the off-road vehicle during the driving process from the starting point to the destination, thereby realizing path planning in the off-road environment.
[0145] The DRL network utilizes the local elevation map, SUV pose, target information, and obstacle information as inputs to determine the DWA parameters. The DRL network is divided into two main parts: a feature extraction network shared by the actor and critic that extracts features from high-dimensional observations, and a fully connected network that maps these features to actions and values. In the image branch, we extract features from the input local elevation map using three stacked convolutional layers and map the resulting features to a latent vector representation. In the vector branch, we concatenate the remaining inputs and pass them through two fully connected layers. The outputs of these two branches are then merged as inputs to the policy network and the value network, both of which consist of two fully connected convolutional layers. The value network generates a state value that helps improve future policies, while the policy network generates a 4-dimensional vector, with each dimension representing a DWA parameter.
[0146] If the input is an image, it is processed using a CNN network and then flattened into a latent vector. If the input is not an image, it is processed using a fully connected network to output a latent vector representation. All the previous vectors are concatenated into a long vector and then passed to the policy and value networks. The activation function used in all layers is the rectified linear unit
[0147] Step 4: Taking the global path point as the target, the dynamic window method is used to calculate the control speed, obtain a path that meets the kinematic constraints of the off-road vehicle, and complete the path planning in the off-road environment. The specific process of using the dynamic window method to calculate the control speed is as follows:
[0148] S41. Generate a velocity search space. The dynamic window method limits the trajectory to an arc by directly controlling the velocity pair (v, ω), which is specifically expressed as follows:
[0149] The off-road vehicle is subject to the maximum and minimum linear speeds as well as the maximum and minimum angular speeds, which are specifically expressed as:
[0150] V s ={(v,ω)|v∈[v min ,v max ],ω∈[ω min ,ω max ]}
[0151] In the formula, v represents the linear velocity of the off-road vehicle, ω represents the angular velocity of the off-road vehicle, and v min represents the minimum linear velocity of the off-road vehicle, v max represents the maximum linear speed of the off-road vehicle, ω min represents the minimum angular velocity of the off-road vehicle, ω max represents the maximum angular velocity of the off-road vehicle;
[0152] The dynamic window is defined as follows, which means that the search space is restricted to the actual allowed velocities in a single forward time step subject to the acceleration constraint:
[0153]
[0154] where v c ,ω c is the current linear velocity and angular velocity of the off-road vehicle, is the maximum linear acceleration and angular acceleration, △t is the time step;
[0155] The search space is pruned to ensure that the off-road vehicle can stop in front of the obstacle at the current speed with the maximum acceleration. The specific expression is as follows:
[0156]
[0157] In the formula, the function dist(v,ω) represents the distance to the nearest obstacle;
[0158] Therefore, the final speed search space of the off-road vehicle is defined as:
[0159] V r =V s ∩V d ∩V a ;
[0160] S42, optimize the objective function, calculate the predicted trajectory of each speed in the search space, and select the trajectory corresponding to (v, ω) that maximizes the objective function as the local optimal path, where the expression of the objective function is as follows:
[0161] G(v,ω)=σ[β1·heading(v,ω)+β2·dist(v,ω)+β3·velocity(v,ω)]
[0162] Where σ represents the normalization coefficient, and the function heading(v,ω) calculates the angle between the vehicle's heading and the target direction at the end of the predicted trajectory. This sub-function ensures that the vehicle quickly aligns with the target point during movement. The function dist(v,ω) calculates the distance between the end of the vehicle's predicted trajectory and the nearest obstacle. This sub-function helps keep the vehicle away from obstacles, thereby ensuring safe navigation. The function velocity(v,ω) represents the vehicle's forward speed. It is designed to ensure that the vehicle reaches the target point as quickly as possible.
[0163] Dynamic Window Approach (DWA) DWA samples multiple groups of velocities in velocity space and simulates their motion trajectories within a certain period of time. These velocities are limited to a region called a "dynamic window". By calculating the weighted sum of multiple evaluation functions of these trajectories, the optimal translation and rotation speeds can be directly searched. This method aims to generate collision-free trajectories that meet the dynamic constraints of off-road vehicles.
[0164] Therefore, the present invention adopts the above-mentioned hierarchical off-road path planning method based on deep reinforcement learning, uses global path planning to generate path points to guide local path planning, and combines deep reinforcement learning with the dynamic window method. At the same time, the deep reinforcement learning network is used to adaptively generate the parameters of the dynamic window method, thereby realizing path planning in an off-road environment.
[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A hierarchical off-road path planning method based on deep reinforcement learning, characterized in that: The following steps are involved: Step 1: Design a global cost function for the distance and energy consumption of the off-road vehicle in the global map, and use the D*Lite algorithm to calculate the global path; Step 2: Take path points based on the global path to guide local path planning; Step 3: Build a policy-based deep neural network model to adaptively learn the parameters of the dynamic window method, and train the constructed neural network model to maximize the cumulative reward obtained by the off-road vehicle during the driving process from the starting point to the destination; Step 4: Taking the global path point as the target, the dynamic window method is used to calculate the control speed, obtain the path that meets the kinematic constraints of the off-road vehicle, and complete the path planning in the off-road environment; The specific calculation process of the global path in step 1 is as follows: S11. Quantify environmental attributes using raster data of digital elevation models, which are discrete mathematical representations of the topography of the Earth’s surface, represented by an elevation matrix consisting of regular grid elements: z=dem(x,y) Among them, x and y are the coordinates of the location, and z is the elevation; S12. Construct a route cost model. If i is a node in the topographic map, then (x i ,y i ,z i ) is the terrain surface coordinate of the node, and the distance cost between any two points i and j is defined as the three-dimensional Euclidean distance: S13. Building an energy cost model Calculate the inclination angle of any two adjacent nodes i and j on the terrain: Assuming that the off-road vehicle travels at a fixed speed v throughout the entire journey, M is the mass of the off-road vehicle, g is the gravitational constant, μ is the friction coefficient, and the maximum output force to offset gravity and friction is defined as F max =P max / v, where P max is the maximum output power of the off-road vehicle, and calculates the maximum tilt angle of the off-road vehicle: To avoid loss of traction on steep surfaces, the slope angle must be less than Φ s, Φ s The specific calculation formula is as follows, where μ s is the static friction coefficient, Φ s =arctan(μ s -μ) Calculate the critical impermissible tilt angle uphill: F up =min(Φ f ,F s ) When the off-road vehicle is driving downhill, the inclination angle that makes the resultant force of the external force on the off-road vehicle zero is defined as the critical fracture angle, and its calculation formula is: Φ down =-arctan(μ) When Φ i,j <Φ down When , the off-road vehicle will accelerate due to its own gravity. In order to maintain a constant speed, the off-road vehicle needs to brake, and the energy consumed by braking is negligible; if Φ i,j >Φ up , it means that the off-road vehicle cannot travel along the straight line connecting node i and node j, but it is still possible to detour from node i to node j. The energy cost model from node i to node j is defined as: S14. Calculate the global cost function. Based on additive weighting, the calculation formula for the global cost of moving from node i to node j is as follows: c(i,j)=α·d i,j +(1-a)·e i,j In the formula, α is the weight factor, which can be set according to user preferences; S15. Based on the global cost function, the D*Lite algorithm is used to perform global path planning to obtain a global path with the minimum cost; The specific process of taking path points based on the global path to guide local path planning in step 2 is as follows: S21, select the nodes of the global path (P1, P2, ..., P i , …); S22, nodes selected by global path (P1, P2, ..., P i , …) as the path points of local path planning, the effective radius of each path point is radius; S23, when the off-road vehicle reaches the current path point P i When the effective radius is within, the next path point P i+1 Will become the next temporary target point; S24, repeat S23 until reaching the destination; The specific process of step 3 is as follows: S31, two-dimensional local elevation map E t 、Off-road vehicle postureθ pitch ,θ roll , obstacle information and target information are the inputs of the deep neural network, where the obstacle information includes the distance d to the nearest obstacle. obst and the angle α between the direction of the off-road vehicle and the direction of the nearest obstacle obst ; Target information includes the distance d to the target goal The angle α between the direction of the off-road vehicle and the direction to the target goal ; Among them, E t ,θ pitch ,θ roll d obst , α obst d goal , α goal Together they constitute the state space S, and the specific expression is as follows: S=[E t ,i pitch ,i roll ,d obst ,a obst ,d goal ,a goal ] As the off-road vehicle moves forward, the deep neural network model continuously obtains state information as input until its training is completed; S32. Perform an action based on the observation of the environment and the deep neural network search strategy. The action space is the parameter of the dynamic window method. The action space consists of four actions. The specific expression is as follows: A=[β1,β2,β3,T] Where β1, β2, β3 represent the weight factors of the sub-functions of DWA, T represents the time period, the weight factor is a continuous value in the range of [0,1], indicating the importance of the corresponding evaluation function; the time period T is a continuous value in the range of [0,2], indicating the duration of the simulated off-road vehicle driving at the sampling speed; S33. Designing a dense reward function R for off-road vehicle navigation tot , calculate the reward value obtained by the off-road vehicle after performing an action in the current state, the dense reward function R tot The specific expression is as follows: R tot =λ1R succ +λ2R fail +λ3R wayp +λ4R goal +λ5R obst +λ6R grad +λ7R time In the formula, λ i (i=1,2,3,4,5,6,7) represents the weight of the sub-reward function, R succ Represents the reward for successfully reaching the destination, R fail Indicates the reward for the off-road vehicle falling into danger and causing navigation failure, R wayp Represents the reward for reaching the temporary target point, R goal Represents the reward for being closer to the destination, R obst Represents the reward for being farther from the obstacle, R grad represents the reward of elevation gradient, R time Reward representing navigation time; When the off-road vehicle successfully reaches the destination, the agent will receive a large positive reward r succ ; If the off-road vehicle is in danger, the agent will receive a large negative reward r fail In addition, if the distance between the off-road vehicle and the temporary path point is less than the effective radius radius, the agent will receive a positive reward r wayp , the specific expression is as follows: If the off-road vehicle is closer to the destination, the agent will receive a positive reward r goal ; otherwise, it will receive a negative reward -r goal , the specific expression is as follows: In the formula, Indicates the current position of the off-road vehicle. represents the position of the off-road vehicle at the previous moment, P goal Indicates the location of the destination; If the off-road vehicle is closer to the obstacle, the agent will receive a negative reward -r obst ; Otherwise, a positive reward r will be obtained obst , the specific expression is as follows: In the formula, Indicates the position of the obstacle closest to the off-road vehicle at the current moment. Indicates the position of the obstacle closest to the off-road vehicle at the previous moment; R grad Features that help avoid high altitude gradient areas in encouraging the agent to learn are expressed as follows: In the formula, △E t represents the elevation gradient, r grad is a small positive number; In addition, the agent receives a small negative reward r at each time step before reaching the final state. time , the specific expression is as follows: S34. Use the above-mentioned reward function to train the designed deep neural network model to maximize the cumulative reward obtained by the off-road vehicle during the driving process from the starting point to the destination, thereby realizing path planning in the off-road environment.
2. A hierarchical off-road path planning method based on deep reinforcement learning according to claim 1, characterized in that: The specific process of calculating the control speed using the dynamic window method in step 4 is as follows: S41. Generate a velocity search space. The dynamic window method limits the trajectory to an arc by directly controlling the velocity pair (v, ω), which is specifically expressed as follows: The off-road vehicle is subject to the maximum and minimum linear speeds as well as the maximum and minimum angular speeds, which are specifically expressed as: V s ={(v,ω)|v∈[v min ,v max ],ω∈[ω min ,ω max ]} In the formula, v represents the linear velocity of the off-road vehicle, ω represents the angular velocity of the off-road vehicle, and v min represents the minimum linear velocity of the off-road vehicle, v max represents the maximum linear speed of the off-road vehicle, ω min represents the minimum angular velocity of the off-road vehicle, ω max represents the maximum angular velocity of the off-road vehicle; The dynamic window is defined as follows, which means that the search space is restricted to the actual allowed velocities in a single forward time step subject to the acceleration constraint: where v c ,ω c is the current linear velocity and angular velocity of the off-road vehicle, is the maximum linear acceleration and angular acceleration, △t is the time step; The search space is pruned to ensure that the off-road vehicle can stop in front of the obstacle at the current speed with the maximum acceleration. The specific expression is as follows: In the formula, the function dist(v,ω) represents the distance to the nearest obstacle; Therefore, the final speed search space of the off-road vehicle is defined as: V r =V s ∩V d ∩V a ; S42, optimize the objective function, calculate the predicted trajectory of each speed in the search space, and select the trajectory corresponding to (v, ω) that maximizes the objective function as the local optimal path, where the expression of the objective function is as follows: G(v,ω)=σ[β1·heading(v,ω)+β2·dist(v,ω)+β3·velocity(v,ω)] Where σ represents the normalization coefficient, the function heading(v,ω) calculates the angle between the off-road vehicle's forward direction and the target direction at the end of the predicted trajectory; the function dist(v,ω) calculates the distance between the end point of the off-road vehicle's predicted trajectory and the nearest obstacle; the function velocity(v,ω) represents the forward speed of the off-road vehicle.
Citation Information
Patent Citations
Unmanned ground vehicle path planning method based on improved dynamic window method
CN113156964A
Unmanned vehicle adaptive path planning method based on dynamic window method and near-end strategy
CN116679719A
Special vehicle automatic driving path planning method in unstructured environment
CN117346805A
Deep reinforcement learning-based techniques for end to end robot navigation
US20210325894A1
