A multi-objective three-dimensional UAV path planning method based on DDPG
Through the multi-objective three-dimensional UAV path planning method based on DDPG, the time complexity and energy consumption problems of UAV path planning in a three-dimensional obstacle environment are solved, and obstacle-free path planning with the shortest flight time and the least energy consumption is achieved. Improved service quality.
Patent Information
- Application Number
- CN202110889793.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-04
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing UAV path planning algorithms have high time complexity under multiple constraints and large-scale environments, and are difficult to effectively reduce energy consumption and improve service quality. In particular, it is difficult to achieve the shortest flight time and minimum energy consumption in a three-dimensional obstacle environment. Accessible paths.
A multi-objective three-dimensional UAV path planning method based on the Deep Deterministic Policy Gradient Algorithm (DDPG) is adopted to optimize the drone path planning system model, task modeling and analysis, design state space, action space and reward mechanism. Humans and machines find optimal paths in a three-dimensional continuous action space to avoid obstacles and satisfy energy and time constraints.
It achieves efficient path planning for UAVs in a three-dimensional obstacle environment, reduces energy consumption, improves service quality, and can quickly find the obstacle-free path with the shortest time and minimum energy consumption, avoiding local minimum traps and problems of increased time complexity. .
Smart Images

Figure CN113625733B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field related to path planning in unmanned aerial vehicle control, and in particular to a multi-objective three-dimensional unmanned aerial vehicle path planning method based on a deep deterministic policy gradient algorithm (DDPG), and further to a method for a unmanned aerial vehicle to find an obstacle-free path with the shortest flight time and the least energy consumption in a three-dimensional continuous action space. Background Art
[0002] Unmanned Aerial Vehicle (UAV) has gained wide attention due to its small size, low cost, strong environmental adaptability and other advantages. It has been applied in target tracking, communication, monitoring, agriculture, disaster management and other aspects. When a UAV completes a task, autonomous navigation is the key part of controlling the UAV. Therefore, UAV path planning is an important factor in achieving autonomous flight of UAV. Path planning is to determine the path of the UAV from the starting point to the target point. Its purpose is not only to find the best and shortest path, but also to provide a collision-free environment for the UAV and optimize the given cost function under the constraints of motion dynamics.
[0003] In recent years, there has been more and more research on UAV path planning, and many UAV path planning algorithms have been proposed, such as: A* algorithm, artificial potential field, linear programming, random tree and other algorithms. These algorithms have achieved good results to a certain extent, but when UAV path planning has multiple constraints, most of these methods have high time complexity and local minimum traps, and if in a large range of environments, the computational pressure will increase dramatically.
[0004] With the success of deep reinforcement learning algorithms in artificial intelligence, more and more scholars are studying the use of deep reinforcement learning algorithms for drone path planning, so that drones can more intelligently find paths that meet constraints. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a DDPG-based multi-objective UAV path planning method in a three-dimensional obstacle environment. By planning the continuous flight actions of the UAV, it is possible to avoid obstacles and complete the data transmission purpose to users (UEs) while reducing energy consumption and improving the quality of service (QoS).
[0006] To solve the above problems, the present invention adopts the following technical solutions:
[0007] A DDPG-based multi-objective three-dimensional UAV path planning method includes the following steps:
[0008] Step 1: Establish a UAV path planning system model
[0009] The environment is modeled in a three-dimensional coordinate system, the UAV and the user (UE) are equivalent to particles, the ground is modeled as an OXY plane, and the Z axis satisfies the right-hand rule. The dynamic model of the UAV flight can be modeled as:
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016] Among them, (x U ,y U ,z U ) is the three-dimensional position coordinate of the UAV, v is the velocity of the UAV, b is the acceleration of the UAV, α is the pitch angle of the UAV, β is the yaw angle of the UAV, ρ α , β is the angular velocity of the corresponding UAV, represents the derivative of X;
[0017] Step 2: UAV mission modeling and analysis, including the following steps:
[0018] Step 2.1: Task Modeling
[0019] The UAV flight distance and the pitch angle α and yaw angle β are modeled. The distance the UAV needs to fly at time t is and the pitch angle α relative to the target point t With yaw angle β t for:
[0020]
[0021]
[0022]
[0023] in, is the three-dimensional position coordinate of the UAV at time t, For UEP n The location coordinates of
[0024] Step 2.2. Cost function
[0025] Based on the optimization goal, the cost function F is:
[0026]
[0027] Among them, T total is the total flight time of the UAV from the starting position to the target position, E total is the total energy consumption of the UAV from the starting position to the target position, σ P , σ O are the deviations between the UAV and the target position and obstacles, respectively;
[0028] Step 3: Design of UAV path planning based on DDPG
[0029] Combined with the cost function, design the state space, action space and reward value.
[0030] Preferably, the UAV three-dimensional path planning system has 1 UAV and N randomly distributed user UEs and M obstacles OBs. When the UE has a data transmission request, it will broadcast its location information to the entire network, and the UE within the communication range of the UAV will pass the UE location information with the data transmission request it obtained to the UAV. After the UAV obtains the data request information, it uses a deep deterministic algorithm to plan the path, avoid obstacles, move to the target UE and provide services for it. After the UAV service is completed, if there is no new UE data upload request, the UAV will hover here and wait for the new target UE.
[0031] As a preferred method, a three-dimensional deviation is proposed to represent the relative position of the UAV, obstacles and target users. n After the location information is sent to P n During the flight, you need to avoid obstacles and reach P as much as possible. n The data is received from above, so the deviation vector σ is introduced O =(σ ox ,σ oy ) Assist in determining whether the UAV collides with an obstacle:
[0032]
[0033] in, The obstacle O m The center coordinates of is the position coordinate of UAV at time t, σ ox , σ oy are the deviations in the x and y directions respectively.
[0034] To avoid collision between the UAV and obstacles, the deviation vector σ o =(σ Ox ,σ Oy ) must meet the following constraints:
[0035] ·if but:
[0036]
[0037] ·if but:
[0038]
[0039] ·if but:
[0040] Unconstrained (3)
[0041] Above 0<ε<1, The obstacle O m Height, h min 、h max is the minimum and maximum altitude of UAV flight, r U is the UAV radius, The obstacle O m The radius of
[0042] For the judgment of the hovering position of the UAV, the target deviation vector σ is introduced P =(σ Px ,σ Py ),but:
[0043]
[0044] in, For UEP n The position coordinates, σ Px , σ Py are the deviations of the UAV relative to the target position in the x and y directions, respectively.
[0045] When the UAV arrives near the target UE, in order to improve the data transmission efficiency, there is a minimum value ∈(0<∈<1) so that the UAV hovering position satisfies the following constraints:
[0046] σ Px <∈
[0047] σ Py <∈.
[0048] As a preferred method, this method is based on the UAV path planning in continuous space, and introduces the DDPG algorithm suitable for continuous space problems to seek the optimal path that meets the optimization goal:
[0049] State space: including the drone coordinates Drone speed: speed in the x-axis direction Y-axis speed And the speed in the z-axis direction UAV energy consumption at time t e t And the time taken T t , then the state space at time t is:
[0050]
[0051] Action space: The acceleration in the x-axis, y-axis, and z-axis directions at time t. The action value at time t is:
[0052]
[0053] Reward: Reasonable reward setting can train the optimal strategy more quickly. In order to make the UAV reach the destination in the shortest time and with the least energy consumption, avoid obstacles, and get closer to the destination, the reward is divided into the following parts:
[0054] Obstacle Reward obs : If the positional relationship between the UAV and the obstacle satisfies equations (1), (2), and (3), then r obs =0, otherwise And the game ends;
[0055] Path Reward TE : Mainly includes the measurement of time and energy consumption in the path:
[0056] r TE =-(T total +E total )*μ, 0<μ<1
[0057] Destination Point Reward des : Measure whether the UAV has reached the destination and completed the mission,
[0058] Regional Rewards b :The UAV is confined to the experimental area. When the UAV flies out of the research area,
[0059] In summary, the total reward at time t is:
[0060]
[0061] Preferably, the action space of the method is a continuous action space.
[0062] The present invention uses the DDPG algorithm to plan the flight path of the drone by modeling the drone mission and clarifying the drone flight cost function. By analyzing the time, energy consumption and obstacle avoidance of the drone flight process, the cost function of the drone path planning is given, and the DDPG algorithm is used to guide the drone to find a path that meets the cost function.
[0063] In the design of the UAV path planning cost function, the deviation from obstacles and target positions is used to reflect whether the UAV avoids obstacles and reaches the target.
[0064] In the UAV path planning design based on the DDPG algorithm, the action space is designed as a continuous space, which solves the dimensionality curse caused by spatial discretization. In addition, by using step-by-step rewards, the penalties for the UAV exceeding the ideal state and the rewards for reaching the goal are clearly defined, enabling the UAV to learn the path that satisfies the cost function more efficiently. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 is the algorithm flow chart;
[0066] Figure 2 Performance comparison chart of DDPG-UPP algorithm under different learning rates (Reward);
[0067] Figure 3 Performance comparison chart of DDPG-UPP algorithm under different learning rates (Step);
[0068] Figure 4 This is a comparison chart of UAV path planning performance under different algorithms (Reward);
[0069] Figure 5 This is a comparison chart of UAV path planning performance under different algorithms (Step);
[0070] Figure 6 Comparison chart of drone path planning performance in different dimensions (2D and 3D). DETAILED DESCRIPTION
[0071] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0072] The present invention provides a DDPG-based multi-target three-dimensional UAV path planning method, comprising the following steps:
[0073] Step 1: Establish a UAV path planning system model
[0074] Assume that in a certain area of urban space, there are many smart users such as mobile phones and computers. Due to natural disasters, distance and other reasons, users cannot communicate directly with the base station. In order to ensure post-disaster rescue and meet user needs, small-sized drones with low environmental requirements are used as relay communications. The flight mission of the drone must meet the following constraints:
[0075] UEs are randomly distributed and interconnected, and each UE can receive messages from neighboring UEs;
[0076] The UAV’s flight mission is from the end of collecting UE data to the end of collecting the next UE data.
[0077] The UAV has sufficient energy during a mission, and the mission termination due to energy exhaustion is not considered;
[0078] The UAV only serves one UE at a time.
[0079] The present invention includes 1 UAV and N randomly distributed UEs and M obstacles OBs. When a UE has a data transmission request, its location information will be broadcast to the entire network. The UE within the communication range of the UAV will pass the UE location information with the data transmission request it has obtained to the UAV. After the UAV obtains the data request information, it uses a deep deterministic algorithm to plan the path, avoid obstacles, move to the target UE and provide services for it. After the UAV service is completed, if there is no new UE data upload request, the UAV will hover here and wait for a new target UE. In actual situations, due to the small size of the UAV and the limited energy it carries, the UAV needs to serve more UEs under limited energy constraints; at the same time, in order to meet the user's quality of service (QoS), it is necessary to complete the flight mission in the shortest time and avoid collisions with obstacles.
[0080] To simplify the problem, the environment is modeled in a three-dimensional coordinate system, the UAV and UE are equivalent to particles, the ground is modeled as an OXY plane, and the Z axis satisfies the right-hand rule. The following assumptions are made: The position coordinates of the UAV at time t are r U is the radius of UAV, h min 、h max is the minimum and maximum altitude of the UAV flight, E max is the maximum energy carried by the UAV, v is the speed of the UAV, b is the acceleration, and v max It represents the maximum linear velocity that the UAV can reach during flight, α is the pitch angle, β is the yaw angle, and ρ α , β is the corresponding angular velocity; obstacle set O = {O1, O2, ..., O M Randomly distributed in the UAV service area, The obstacle Om The center coordinates of O m Height, O m radius; UEs set P = {P1, P2, …, P N Randomly distributed in the UAV service area, For UEP n The position coordinates of . It is stipulated that one step of UAV training based on DDPG is a time slot t. In three-dimensional space, the dynamic model of UAV flight can be modeled as:
[0081]
[0082]
[0083]
[0084]
[0085]
[0086]
[0087] Step 2: UAV mission modeling and analysis
[0088] Assume that the UAV has completed the P n-1 Data collection is waiting or going directly to P n Collect data, then the drone from P n-1 Fly to P n The following provisions must be met during the process:
[0089] Step 2.1 Task Modeling
[0090] Flight distance:
[0091] The shortest distance a UAV can fly is
[0092]
[0093] In actual situations, the UAV needs to avoid obstacles and collisions. The actual flight distance of the UAV is d U Satisfaction:d U ≥ d min .
[0094] Pitch angle α and yaw angle β:
[0095] The angle between the velocity v of the UAV and the Z axis is the pitch angle α; n Projected on the XOY plane, the angle between the UAV's velocity v and the X-axis is the yaw angle β, then:
[0096]
[0097]
[0098] When the UAV is in flight, α and β change continuously with the change of the UAV speed. The changes of α and β have the following rules:
[0099] α←α0+ρ α t
[0100] β←β0+ρ β t
[0101] Step 2.2 Cost function
[0102] Obstacle avoidance and target arrival:
[0103] The UAV receives P n After the location information is sent to P n During the flight, you need to avoid obstacles and reach P as much as possible. n The data is received from above, so the deviation vector σ is introduced O =(σ ox ,σ oy ) Assist in determining whether the UAV collides with an obstacle:
[0104]
[0105] To avoid collision between the UAV and obstacles, the deviation vector σ o =(σ Ox ,σ Oy ) must meet the following constraints:
[0106] ·if but:
[0107]
[0108] ·if but:
[0109]
[0110] ·if but:
[0111] Unconstrained (3)
[0112] Above 0<ε<1.
[0113] For the judgment of the hovering position of the UAV, the target deviation vector σ is introduced P =(σ Px ,σ Py ),but:
[0114]
[0115] When the UAV arrives near the target UE, in order to improve the data transmission efficiency, there is a minimum value ∈( 0<∈<1) so that the UAV hovering position satisfies the following constraints:
[0116] σ Px <∈
[0117] σ Py <∈
[0118] Mission time:
[0119] The time required for a UAV to complete a mission process consists of three parts: flight time T f , waiting time T w , communication time T com .
[0120] Flight time T f :UAV from P n-1 Departure to ArrivalP n The time consumed, when the UAV flies the minimum distance at the maximum speed, the shortest flight time consumed is:
[0121]
[0122] During flight, the UAV needs to constantly change its flight direction and altitude to avoid obstacles. The flight time T f satisfy:
[0123] T f >T fmin
[0124] Waiting time T w : The time that the UAV waits for the next UE with a data transmission request to appear;
[0125] Communication time T com : The time it takes for the UE to transmit data to the UAV. During this process, the signal-to-noise ratio is S UE,UAV , then the data receiving rate is:
[0126] R=Blog(1+S UE,UAV )
[0127] B is the bandwidth, then the transmission D n The amount of data consumed is:
[0128] T com =D n / R
[0129] In summary, UAV completes the n-1 To Pn The total time spent on the data collection task is:
[0130] T total =T f +T w +T com
[0131] Energy consumption:
[0132] During a data collection process, energy consumption is divided into three types: flight, waiting, and communication. The energy consumption of each stage is as follows:
[0133] Flight energy consumption: Energy consumption per time slot f , time consuming T f , the total energy consumption is:
[0134] E f =e f *T f
[0135] Waiting energy consumption: The energy consumed by the UAV hovering above the UE per time slot w , time consuming T w , then the total hovering energy consumption is:
[0136] E w =e w *T w
[0137] Communication energy consumption: energy consumption per time slot e com , time consuming T com , then the total communication energy consumption is:
[0138] E com =e com *T com
[0139] In summary, the total energy consumption of UAV in a mission is:
[0140] E total =E f +E w +E com , E totak <E max
[0141] The main purpose of this paper is to serve more UEs with minimum energy consumption and shortest time. The optimization objectives of this paper are:
[0142]
[0143] Step 3: Drone path planning based on DDPG
[0144] This paper is based on the UAV path planning in continuous space, and introduces the DDPG algorithm suitable for continuous space problems to seek the optimal path that meets the optimization goal:
[0145] State space: including the drone coordinates Drone speed: speed in the x-axis direction Y-axis speed And the speed in the z-axis direction UAV energy consumption at time t e t And the time taken T t , then the state space at time t is:
[0146]
[0147] Action space: The acceleration in the x-axis, y-axis, and z-axis directions at time t. The action value at time t is:
[0148]
[0149] Reward: Reasonable reward setting can train the optimal strategy more quickly. In order to make the UAV reach the destination in the shortest time and with the least energy consumption, avoid obstacles, and get closer to the destination, the reward is divided into the following parts:
[0150] Obstacle Reward obs : If the positional relationship between the UAV and the obstacle satisfies equations (1), (2), and (3), then r obs =0, otherwise And the game ends.
[0151] Path Reward TE : Mainly includes the measurement of time and energy consumption in the path:
[0152] r TE =-(T total +E total )*μ, 0<μ<1
[0153] Destination Point Reward des : Measure whether the UAV has reached the destination and completed the mission,
[0154] Regional Rewards b :The UAV is confined to the experimental area. When the UAV flies out of the research area, In summary, the total reward at time t is:
[0155]
[0156] Figure 1 It is a flow chart of the algorithm of the present invention, and its specific contents are as follows:
[0157]
[0158]
[0159] The following are the settings of simulation parameters, simulation results and analysis:
[0160] We use Python 3.6 and TensorFlow 1.12 to verify the effectiveness of the algorithm. Obstacles and UEs are randomly distributed in an area of 200m×200m×100m, and the maximum and minimum altitudes of the UAV flight are 90m and 70m, respectively. The performance of the DDPG-UPP algorithm is tested in three aspects: performance comparison of different learning rates, comparison with Actor-Critic, DQN, and DDPG algorithms, and performance comparison of path planning in different dimensions, so as to obtain the optimal learning rate and verify the optimality of the DDPG-UPP algorithm. The parameter settings used in the simulation in this paper are shown in Table 1.
[0161] Table 1 Simulation parameters
[0162]
[0163] Figure 2 The performance evaluation of the algorithm DDPG-UPP under different learning rates is shown. The learning rate determines whether the objective function can converge to the local minimum and when it converges to the minimum. A suitable learning rate can make the objective function converge to the local minimum in a suitable time. Figure 2 It can be seen that when the learning rate of the Actor network is 0.005 and 0.001, and the learning rate of the Critic network is 0.01 and 0.002, as the number of training times increases, the reward obtained by the UAV in the process of trial and error will gradually stabilize, which indicates that the UAV has learned the optimal path to reach the target point and meet the constraints. Figure 3As shown in the figure, the number of steps required for the UAV to reach the same target point gradually decreases and stabilizes to a fixed value. As the number of learning times increases, the UAV can reach the target point more accurately. When the learning rate of the Actor network is 0.0005 and 0.0001, and the learning rate of the Critic network is 0.001 and 0.0002, the reward value and the number of steps required to reach the same target converge to a constant value, but compared with the learning rates of a=0.005, c=0.01 and a=0.001, c=0.002, the performance of the algorithm is not optimal at this time, and the path learned by the UAV is not the optimal path. In addition, when the learning rate is Actor=0.01 and Critic=0.02, the algorithm does not converge, and the UAV cannot learn the optimal path to reach the target. Therefore, the size of the learning rate is crucial to the performance of the algorithm DDPG-UPP, which can guide the UAV to find the optimal path at the right time.
[0164] Figure 4 , Figure 5 The following are comparison charts of the rewards for UAV path planning under different algorithms and the number of steps required to reach the same target. The DDPG algorithm is suitable for continuous action space and is a combination of the Actor-Critic algorithm and the DQN algorithm. The Actor-Critic algorithm is a combination of the value-based algorithm and the policy gradient algorithm. Therefore, the DDPG algorithm, DQN algorithm, Actor-Critic algorithm and Policy Gradient (PG) algorithm are compared in the simulation to verify the optimality of using the DDPG algorithm for UAV path planning. Figure 4 As shown in the figure, the DDPG algorithm for UAV path planning converges faster than the DQN, Actor-Critic, and PG algorithms, and the reward value obtained is also significantly higher than the other three algorithms. This is because firstly, the DQN and PG algorithms are suitable for discrete action spaces, and the UAV needs to discretize the action space before training. For the action space of UAV path planning, in order to achieve more autonomous and efficient actions of UAV, its discretized action space must be complex; secondly, for the Actor-Critic algorithm, the behavior of the Actor depends on the value of the Critic, and the difficulty of the Critic in converging makes it difficult for the Actor-Critic algorithm to converge. Therefore, Figure 4 , Figure 5 As shown in the figure, the algorithm in this paper can enable the UAV to obtain the optimal path to the target faster, obtain a higher reward value, and use fewer steps to reach the same target, achieving the expected effect.
[0165] Figure 6 This is a performance comparison chart of the DDPG algorithm and the DQN algorithm in a two-dimensional environment and a three-dimensional environment. First, Figure 6It shows that the performance of the DDPG algorithm is better than that of the DQN algorithm in both two-dimensional and three-dimensional environments. This is because the DQN algorithm needs to discretize the action space, which increases the difficulty of the drone to explore the best path. Secondly, when using the algorithm of this paper and the DQN algorithm in two-dimensional and three-dimensional space, the reward convergence value of the three-dimensional space is inferior to that of the two-dimensional space. This is because obstacles are considered in three-dimensional space to make the environment closer to the real environment. In addition, for the algorithm of this paper, when obstacles are considered at the same time, the performance of the algorithm of this paper in the three-dimensional environment is also significantly better than that of the two-dimensional environment. In summary, the algorithm of this paper has better performance than other algorithms in the obstacle avoidance path selection in three-dimensional environment.
[0166] The above embodiments are only exemplary embodiments of the present invention and are not intended to limit the present invention. The protection scope of the present invention is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present invention within the essence and protection scope of the present invention, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present invention.
Claims
1. A multi-objective three-dimensional UAV path planning method based on DDPG, Features: The method comprises the following steps: Step 1: Establish a UAV path planning system model The environment is modeled in a three-dimensional coordinate system, the UAV and the user UE are equivalent to particles, the ground is modeled as an OXY plane, and the Z axis satisfies the right-hand rule. The dynamic model of the UAV flight is modeled as: Among them, (x U ,y U ,z U ) is the three-dimensional position coordinate of the UAV, v is the velocity of the UAV, b is the acceleration of the UAV, a is the pitch angle of the UAV, β is the yaw angle of the UAV, ρ α , β is the angular velocity of the corresponding UAV, represents the derivative of X; Step 2: UAV mission modeling and analysis, including the following steps: Step 2.1: Task Modeling The UAV flight distance and the pitch angle α and yaw angle β are modeled. The distance the UAV needs to fly at time t is and the pitch angle α relative to the target point t With yaw angle β t for: in, is the three-dimensional position coordinate of the UAV at time t, For UE P n The location coordinates of Step 2.
2. Cost function Based on the optimization goal, the cost function F is: Among them, T total is the total flight time of the UAV from the starting position to the target position, E total is the total energy consumption of the UAV from the starting position to the target position, σ P , σ O are the deviations between the UAV and the target position and obstacles, respectively; Step 3: Design of UAV path planning based on DDPG Combine the cost function to design the state space, action space and reward value; The UAV three-dimensional path planning system has 1 UAV and N randomly distributed user UEs and M obstacles OBs. When the UE has a data transmission request, it will broadcast its location information to the entire network, and the UE within the communication range of the UAV will pass the UE location information with the data transmission request it has obtained to the UAV. After the UAV obtains the data request information, it plans the path and avoids obstacles using a deep deterministic algorithm, moves to the target UE and provides services for it. After the UAV service is completed, if there is no new UE data upload request, the UAV will hover here and wait for a new target UE. A three-dimensional deviation is proposed to represent the relative position of the UAV, obstacles and target users. n After the location information is sent to P n During the flight, you need to avoid obstacles and reach P as much as possible. n The data is received from above, so the deviation vector σ is introduced O =(σ ox ,σ oy ) Assist in determining whether the UAV collides with an obstacle: in, The obstacle O m The center coordinates of is the position coordinate of UAV at time t, σ ox , σ oy are the deviations in the x and y directions respectively; To avoid collision between the UAV and obstacles, the deviation vector σ O =(σ ox ,σ oy ) must meet the following constraints: if but: if but: if but: Unconstrained (3) Above 0<ε<1, The obstacle O m Height, h min 、h max is the minimum and maximum altitude of UAV flight, r U is the UAV radius, The obstacle O m The radius of For the judgment of the hovering position of the UAV, the target deviation vector σ is introduced P =(σ Px ,σ Py ),but: in, For UE P n The position coordinates, σ Px , σ Py are the deviations of the UAV relative to the target position in the x and y directions, respectively; When the UAV arrives near the target UE, in order to improve the data transmission efficiency, there is a minimum value ∈, 0<∈<1, so that the UAV hovering position satisfies the following constraints: s Px <∈ s Py <∈ In step 3, the UAV path planning is performed in the continuous space, and the DDPG algorithm suitable for continuous space problems is introduced to find the optimal path that meets the optimization goal: State space: including drone coordinates Drone speed: speed in the x-axis direction Y-axis speed And the speed in the z-axis direction UAV energy consumption at time t e t And the time taken T t , then the state space at time t is: Action space: The acceleration in the x-axis, y-axis, and z-axis directions at time t. The action value at time t is: Reward: Reasonable reward setting can train the optimal strategy more quickly. In order to make the UAV reach the destination in the shortest time and with the least energy consumption, avoid obstacles, and get closer to the destination, the reward is divided into the following parts: Obstacle Reward obs :If the positional relationship between the UAV and the obstacle satisfies the constraints (1), (2), and (3), then r obs =0, otherwise And end the path planning; Path Reward TE : Including the measurement of time and energy consumption in the path: r TE =-(T total +E total )*μ,0<μ<1 Destination Point Reward des : Measure whether the UAV has reached the destination and completed the mission, Regional Rewards b :The UAV is confined to the experimental area. When the UAV flies out of the research area, In summary, the total reward at time t is:
