A decentralized motion planning method for heterogeneous drone swarms

Through the decentralized parameter sharing TD3 algorithm and two-way communication connection, the problem of UAV cluster planning relying on central nodes is solved, and flexible adaptability and efficient planning of UAV clusters are achieved when the number and type of UAV clusters change.

CN117215331BActive Publication Date: 2024-09-13ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311355818.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-19
Publication Date
2024-09-13
Estimated Expiration
2043-10-19

AI Technical Summary

Technical Problem

Existing drone cluster planning technology relies on central nodes, has a heavy communication load, and needs to retrain the model when the number or type of drones changes, resulting in slow response speed and dimensionality disaster problems.

Method used

The decentralized TD3 algorithm based on parameter sharing agent instructions is used to plan the movement of UAV clusters through neural networks. The two-way communication connection and reward and punishment mechanism are used to enable UAV clusters to independently plan paths and adapt to changes in quantity and type.

Benefits of technology

It enables independent planning of UAV clusters without relying on central nodes, reduces communication requirements, adapts to complex environments, and avoids the need to retrain models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117215331B
    Figure CN117215331B
Patent Text Reader

Abstract

The present invention discloses a decentralized heterogeneous UAV cluster motion planning method, which is a decentralized UAV cluster planning method. At the same time, observations of cluster communication networking and corresponding rewards and penalties are added, so that the UAV cluster can consider the state of a UAV cluster network during planning; in addition, the present invention adopts parameter sharing and proxy indication methods to realize a heterogeneous UAV cluster with a variable number of deployable numbers. When the number and type of UAVs are changed, there is no need to retrain the model again; a heterogeneous multi-UAV cluster can be deployed with a single model. At the same time, each UAV can perform independent motion planning according to its own communication status and perception information. The planning of the UAV cluster can be carried out without relying on the central node. The method has low communication requirements and can adapt to more complex environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a decentralized heterogeneous UAV cluster motion planning method, specifically a UAV cluster motion planning method based on parameter sharing proxy indication TD3 algorithm. Background Art

[0002] Compared to a single drone, multiple drones offer significant advantages when performing missions. Drone swarms can accomplish complex tasks that would be impossible for a single drone through coordinated collaboration and division of labor among drones within the swarm. This collaborative and cooperative approach significantly improves drones' mission-completion capabilities. In a swarm, if one drone malfunctions or becomes damaged, other drones can take over and continue operating without impacting the swarm's mission. This enables the swarm to better handle emergencies and failures, ultimately achieving better mission completion. In heterogeneous drone swarms, tasks are typically allocated and divided based on the specific capabilities and functions of the various drones within the swarm. This division of labor within a heterogeneous swarm can improve the swarm's mission execution efficiency and enable it to accomplish tasks that a homogeneous swarm cannot. Based on these advantages, countries around the world are intensifying their research into drone swarms, striving for breakthroughs in swarm technology.

[0003] Currently, the most common implementation of drone swarms is based on a pilot-follower mechanism. In this mechanism, one or more drones are designated as pilots, while the others are designated as followers. The pilot is responsible for planning the swarm's path and providing path and navigation information to the followers. Followers adjust their heading and speed based on this information to maintain the swarm's formation and maintain self-control. However, the pilot-follower mechanism also has some drawbacks. First, the follower's control actions rely on the navigation information advertised by the pilot, which can slow the swarm's response speed. Furthermore, the entire swarm relies on a central communication node, placing a heavy load on communications.

[0004] With the development of artificial intelligence, more and more unmanned swarm planning technologies based on deep reinforcement learning have been invented and applied. Current drone swarm planning technologies based on deep reinforcement learning rely on specific training environments, and often require retraining a new model when the number of swarms changes. Furthermore, for heterogeneous drone swarms, the mounted sensors and mission payloads may vary, resulting in different action and observation spaces for each drone. These changes often require retraining the model. Because the value network requires input of observation and action vectors for all agents, the curse of dimensionality can occur as the number of agents increases, making convergence difficult or impossible. Summary of the Invention

[0005] To address the challenges presented by the aforementioned background technology, the present invention proposes a decentralized heterogeneous drone swarm motion planning method. This method incorporates observations of the cluster's communication network and corresponding rewards and penalties, enabling the planning of a drone swarm to consider the state of a single network. Furthermore, the present invention deploys a variable number of heterogeneous drone swarms, eliminating the need to retrain the model when changing the number and type of drones.

[0006] The present invention is implemented by the following technical solutions:

[0007] A decentralized heterogeneous UAV swarm motion planning method includes the following steps:

[0008] Step 1: Set up the UAV swarm motion planning scenario;

[0009] Set the takeoff and target locations for the drone cluster. The drones take off from their respective starting points, maintain communication and networking, and plan their flight to the target point based on their own sensory information and network status information.

[0010] Assume that the drone cluster contains k types of drones; the maximum acceleration of drone type i is represented by u i A, maximum speed is u i V, maximum angular velocity is u i W;

[0011] Assume that the number of drones of type i in the drone cluster is ni, then the number of drones in the entire drone cluster is The mth drone in the drone cluster is denoted as Um;

[0012] The drone, obstacle, and target position are set as circles, and their radii are represented as r u , r c , r t ;

[0013] The kinematic equation of the drone is:

[0014]

[0015] The state of the drone at time t is [x t ,y t ,v t ,ψ t ], the control variable is the action space [a t ,w t ], where x t ,y t ,v t ,ψ tRespectively represent the x-coordinate, y-coordinate, speed and heading angle of the drone at time t; a t ,w t Represent the acceleration and angular velocity of the UAV at time t respectively; under the action of the control variable, after the time step Δt, according to the kinematic equation of the UAV, the state quantity of the UAV at the next moment [x t+1 ,y t+1 ,v t+1 ,ψ t+1 ], x t+1 ,y t+1 ,v t+1 ,ψ t+1 Represent the x-coordinate, y-coordinate, speed and heading angle of the drone at time t+1 respectively;

[0016] UAVs of type i need to satisfy their own motion constraints, namely:

[0017]

[0018] The communication range of the drone is set to r com During planning, drones consider other drones as obstacles and avoid collisions and maintain clustered communication based on the constantly updated perception information and networking status information.

[0019] Step 2: Build a neural network based on parameter sharing TD3

[0020] Step 2.1 TD3 algorithm neural network weight parameter sharing

[0021] The six neural networks of the TD3 algorithm share parameters and the strategy of the Um-th UAV is π m , then under parameter sharing, π is satisfied m =π z , m≠z; m,z∈[1,N], the policy neural network is uniformly recorded as π;

[0022] Step 2.2 Set the input of the policy neural network

[0023] The input of the policy neural network π is the observation space, which specifically includes the following four parts:

[0024] 1) Agent instructions for drone types

[0025] The agent indication method is used to represent different types of drones in the swarm. The specific method is as follows:

[0026] Encode the k types of drone clusters and create a code of length k to represent the drone type. For the code of drone type i, only the index position corresponding to drone type i is 1, and the other positions are 0.

[0027] 2) Observation space of the drone’s own state

[0028] The observation space of the drone's own state is represented by a vector [x, y, v, w, r u ]; x, y represent the horizontal and vertical coordinates of the drone on the two-dimensional plane; v represents the moving speed of the drone, w is the yaw angle of the drone, r u is the radius of the drone;

[0029] 3) UAV’s Perception and Observation Space

[0030] Assume that the perception of a drone of type i only retains the position information of the UiE objects closest to it, and the set of UiE(i∈[1,k]) is UE; then the length of the perception observation space of all types of drones is 2SL, where SL=max(UE);

[0031] The position information of the qth object in the UAV’s perception observation space is [x q ,y q ],q∈[1,SL]. If SL is greater than UiE, the extra space is filled with 0, and the perception observation space of type i UAV is expressed as:

[0032] [x1,y1,x2,y2,......,x q ,y q ,......,x UiE ,y UiE ,x UiE+1 =0,y UiE+1 =0,......,x SL =0,y SL =0]

[0033] Among them, [x UiE+1 =0,y UiE+1 =0,......,x SL =0,y SL =0] is the extra space where SL is larger than UiE, which is filled with 0;

[0034] 4) Observation space of mission target

[0035] The location coordinates of the mission target are [x t ,y t ], x t ,y t Represents the coordinates of the target position on the two-dimensional plane, and assumes that all drones have obtained this information at the beginning of the planning mission;

[0036] Step 2.3 Set the output of the policy neural network

[0037] The output of the policy neural network π is the action space;

[0038] Step 3: Set the reward function

[0039] The reward function is set so that during the planning process of the drone cluster, each drone can maintain networking, maintain aggregation, avoid collisions, reach the target location, minimize energy consumption and maintain smooth trajectory;

[0040] Step 4: Train the neural network based on parameter sharing TD3

[0041] During the training of the neural network, the takeoff position and target position of the drone cluster are changed, and the weight parameters of the neural network and reward function are adjusted during the training process. When the results meet the requirements, the training is terminated and only the policy neural network is retained. The policy neural network can output the optimal action based on the observation space.

[0042] In the above technical solution, further, the reward function set in step 3 is specifically:

[0043] Set six rewards Rg, Rn, Rt, Rp, Re, and Rs and their corresponding weights Wg, Wn, Wt, Wp, We, and Ws, respectively. The overall reward function is R = Wg × Rg + Wn × Rn + Wt × Rt + Wp × Rp + We × Re + Ws × Rs. The weights are adjusted according to the training situation, and the planning goal of the expected drone cluster is achieved by combining the sizes of the various weights.

[0044] Step 3.1 In order to maintain the networking and aggregation behavior of the drones during movement, set the rewards Rg and Rn

[0045] The drone is initially set to be in networking state and is required to maintain this state during the journey.

[0046] Use a bidirectional graph to model the communication connection between drones. com The other drones in the cluster are considered to have established a two-way communication connection with the drone. Setting the state C to 1 means that the drone cluster is in a normal networking state, and C to 0 means that the drone cluster is not fully networked. The communication node relationship is stored according to the adjacency table of the graph. The communication topology is represented by G N =(U,σ), where U represents the entire drone cluster, N is the number of drones, and σ represents the edges connecting drones as graph nodes; an adjacency table is used to store communication status information;

[0047] The reward Rg is set to give all drones a penalty of -Pg if the drone cluster is not fully networked; and a reward of Pg if all drones are fully networked:

[0048]

[0049] The reward Rn is set to n, where n is the number of drones that the drone is directly connected to. Its value can be obtained from the adjacency table that stores communication status information. When the drone maintains direct communication connections with 4 to 6 surrounding drones, it is given a reward of Ps, and in other cases, a corresponding penalty is given:

[0050]

[0051] Step 3.2 To meet the requirements of preventing collisions between drones, set the reward Rt

[0052] The radius of the drone is expanded with a coefficient of Br. Then when the distance between the geometric center of the drone and the obstacle is R min =Br×r u +r c , it is considered as a collision; set a baseline penalty number Mc, and give the drone a penalty of 1.5Mc for each collision; set R max =1.2R min , when the distance between the drone and the surrounding obstacles is (R min , R max ], a dense penalty is added to guide the drone to maintain a certain safe distance from obstacles; the piecewise function of the reward Rt is as follows:

[0053]

[0054] Where r is the distance between the UAV and the obstacle, [x uav ,y uav ] is the position coordinate of the UAV, [x obs ,y obs ] is the position coordinate of the obstacle;

[0055] Step 3.3 To make the drone approach the target position, set the reward Rp

[0056] Assume that the distance between the current UAV position and the target position is d, and the distance between the UAV and the target position in the previous time step is d t-1 , then the drone is given a dense reward for moving according to the difference between the two distances, which is d t-1 -d; when the drone approaches the target, it will receive a positive reward; at the same time, set a sparse reward, and when the drone reaches the target position, it will give a relatively large reward Tm at one time; the reward Rp is:

[0057]

[0058] The calculation expression of d is: [x uav ,y uav ] is the current position coordinate of the drone, [x tar ,y tar ] is the target position coordinate of the UAV;

[0059] Step 3.4 To optimize energy consumption, set the reward Re

[0060] Let the acceleration at time g be a g , angular velocity is recorded as w g The reward Re is set to accumulate the action space input from 1 to time point t and normalize it by dividing by 2t:

[0061]

[0062] Step 3.5 To make the trajectory smooth, set the reward Rs

[0063] The reward function Rs is set to reduce the magnitude of acceleration and angular acceleration, thereby optimizing the trajectory using high-order information of the trajectory:

[0064]

[0065] Furthermore, in step 4, the requirements for the neural network to end training are specifically:

[0066] 1) Avoid collisions and maintain networking while moving;

[0067] 2) Changing the number of drones deployed can still avoid obstacles and reach the target point;

[0068] 3) Heterogeneous drone swarms can gather into groups while moving.

[0069] The inventive principle of the present invention is:

[0070] Because traditional planning relies heavily on central nodes, a parameter-sharing reinforcement learning algorithm is used to establish bidirectional communication links between drones based on a graph, eliminating the need for a central node in the drone swarm. Each drone plans its own path, reducing the amount of information required and the communication requirements for drone swarm planning.

[0071] This approach uses parameter sharing and proxy-directed reinforcement learning. For heterogeneous drone swarm tasks, the action space and observation space are aligned and padded to meet the model's common dimension requirement during training. Furthermore, the type of heterogeneous drone is one-hot encoded as a proxy indicator and placed in the observation space, enabling the neural network to acquire information about the drone type and better learn the policy. During inference, each heterogeneous drone selects the valid data in the observation space for inference. Each drone independently plans its path based solely on information transmitted by its own sensors and communication network information.

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

[0073] 1. Utilizing a parameter-sharing reinforcement learning algorithm, a bidirectional communication link between drones is established based on a graph. Incorporating communication observations and corresponding rewards and penalties allows drone swarm planning to maintain networking. Furthermore, each drone can independently plan its motion based on its own communication status and perception information, eliminating the need for a central node to plan a swarm. This method has low communication requirements and is adaptable to more complex environments.

[0074] 2. By using parameter sharing and proxy instruction methods, heterogeneous multiple drones can be deployed with a single model. It has better adaptability to clusters with variable numbers and heterogeneity. Changing the number of drones and missions does not require retraining. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] like Figure 1 Schematic diagram of the TD3 algorithm with parameter sharing. DETAILED DESCRIPTION

[0076] Step 1: Set up the UAV swarm motion planning scenario

[0077] Set the takeoff and target locations for the drone cluster. The drones take off from their respective starting points, maintain communication and networking, and plan their flight to the target point based on their own sensory information and network status information.

[0078] Assume that the drone cluster contains k types of drones. The maximum acceleration of drone type i is represented by u i A, maximum speed is u i V, maximum angular velocity is u i W.

[0079] Assume that the number of drones of type i in the drone cluster is ni, then the number of drones in the entire drone cluster is The mth drone in the drone cluster is denoted as Um.

[0080] The drone, obstacle, and target position are set as circles, and their radii are represented as r u , r c , r t .

[0081] The kinematic equation of the drone is:

[0082]

[0083] The state of the drone at time t is [x t ,y t ,v t ,ψ t ], the control variable is the action space [a t ,w t ], where x t ,y t ,v t ,ψ t Respectively represent the x-coordinate, y-coordinate, speed and heading angle of the drone at time t; a t ,w t Represent the acceleration and angular velocity of the UAV at time t respectively; under the action of the control variable, after the time step Δt, according to the kinematic equation of the UAV, the state quantity of the UAV at the next moment [x t+1 ,y t+1 ,v t+1 ,ψ t+1 ], x t+1 ,y t+1 ,v t+1 ,ψ t+1 Represent the x-coordinate, y-coordinate, speed and heading angle of the drone at time t+1 respectively;

[0084] UAVs of type i need to satisfy their own motion constraints, namely:

[0085]

[0086] The communication range of the drone is set to r com In planning, drones consider other drones as obstacles and avoid collisions and maintain clustered communication based on the perception information and networking status information that is updated at any time.

[0087] Step 2: Build a neural network based on parameter sharing TD3

[0088] Step 2.1 TD3 algorithm neural network weight parameter sharing

[0089] The TD3 algorithm has a total of 6 neural networks, namely: a policy network, a target policy network, two value networks, and two target value networks. At the same time, the six networks of the TD3 algorithm share parameters, which can expand the single-agent algorithm into a multi-agent algorithm. The parameter-sharing TD3 algorithm is as follows Figure 1 As shown in the figure, the target strategy network and target value network are omitted in the diagram. m (m∈[1,N]) represents the policy network (actor) of the Um-th drone, Q m θ (m∈[1,N]) and Q m ψ (m∈[1,N]) represent two different value networks (critic).

[0090] The strategy of the Um-th drone is π m , then under parameter sharing, π is satisfied m =π z (m≠z;m,z∈[1,N]), this same policy network is uniformly recorded as π. env is the UAV cluster motion planning scenario, and the parameter-sharing TD3 policy neural network π receives the observation space of the Um-th UAV at time t And output the action space of the Um-th drone at time t Step 2.2 Set the input of the policy neural network

[0091] The input of the policy neural network π is the observation space. The observation space specifically includes the following four parts:

[0092] 1. Agent instructions for drone types

[0093] The agent-indicator method is used to represent the different types of drones in the drone cluster, so that a policy neural network can be used to fit the policies of different types of drones in the heterogeneous drone cluster.

[0094] Encode the k types of drones in the swarm, creating a length k encoding to represent the drone types. For the encoding of drone type i, only the index position corresponding to drone type i is set to 1, and all other positions are set to 0. This encoding method converts drone types into a numerical representation that can be processed by machine learning algorithms.

[0095] 2. Observation space of the drone’s own state

[0096] The observation space of the drone's own state is represented by a vector [x, y, v, w, r u x, y represent the horizontal and vertical coordinates of the drone on the two-dimensional plane. v represents the speed of the drone. w is the yaw angle of the drone, ru is the radius of the drone.

[0097] 3. UAV’s Perception and Observation Space

[0098] Assume that the perception of a drone of type i only retains the location information of the UiE objects closest to it, and let the set of UiE (i∈[1,k]) be UE. Then the length of the perception observation space of all types of drones is 2SL, where SL=max(UE). The location information of the qth object in the perception observation space of the drone is [x q ,y q ],q∈[1,SL]. If SL is greater than UiE, the extra space is filled with 0. Then the perception observation space of type i UAV is expressed as:

[0099] [x1,y1,x2,y2,......,x q ,y q ,......,x UiE ,y UiE ,x UiE+1 =0,y UiE+1 =0,......,x SL =0,y SL =0]

[0100] Among them, [x UiE+1 =0,y UiE+1 =0,......,x SL =0,y SL =0] is the extra space when SL is larger than UiE, which is filled with 0.

[0101] 4. Observation space of mission objectives

[0102] The location coordinates of the mission target are [x t ,y t ], which represents the coordinates of the target position on the two-dimensional plane. It is assumed that all drones have obtained this information at the beginning of the planning mission.

[0103] Step 2.3 Set the output of the policy neural network

[0104] The output of the policy neural network π is the action space.

[0105] Step 3: Set the reward function

[0106] Drone swarm planning requires that each drone can maintain networking and aggregation during planning, avoid collisions, reach the target location, minimize energy consumption and ensure smooth trajectory.

[0107] Set six rewards Rg, Rn, Rt, Rp, Re, Rs and their corresponding weights Wg, Wn, Wt, Wp, We, Ws respectively. The weights are adjusted according to the training situation over a period of time. By combining the size of each weight, the planning goal of the expected drone cluster is achieved. The overall reward function is written as R = Wg × Rg + Wn × Rn + Wt × Rt + Wp × Rp + We × Re + Ws × Rs. Step 3.1 In order to maintain the networking and aggregation behavior of the drones during movement, set the rewards Rg and Rn

[0108] The drone is initially set to be in networking state, and is required to maintain the networking state during the movement.

[0109] Use a bidirectional graph to model the communication connection between drones. com The other drones in the cluster are considered to have established a two-way communication connection with the drone. Setting the state C to 1 means that the drone cluster is in a normal networking state, and C to 0 means that the drone cluster is not fully networked. The communication node relationship is stored according to the adjacency table of the graph. The communication topology is represented by G N =(U,σ). U represents the entire drone cluster, N is the number of drones, and σ represents the edges connecting drones as graph nodes. An adjacency table is used to store communication status information.

[0110] The reward Rg is set to give all drones a penalty of -Pg if the drone cluster is not fully networked; and a reward of Pg if all drones are fully networked:

[0111]

[0112] By observing the number of drones directly connected to each other, we train the action selection of the drone cluster during local movement. Let n be the number of drones directly connected to each other, and its value can be obtained from the adjacency table that stores communication status information. The reward Rn function can be set as follows. Through Rn, we expect the drone cluster to remain clustered while being relatively dispersed to reduce the number of adjacent drones in direct communication. When a drone maintains a direct communication connection with 4 to 6 surrounding drones, it is given a reward of Ps, and in other cases, a corresponding penalty is given:

[0113]

[0114] Step 3.2 To meet the requirements of preventing collisions between drones, set the reward Rt

[0115] The radius of the drone is expanded with a coefficient of Br. Then when the distance between the geometric center of the drone and the obstacle is R min =Br×r u +rc , it is considered a collision. Set a baseline penalty number Mc, and give the drone a penalty of 1.5Mc for each collision. Set R max =1.2R min , when the distance between the drone and the surrounding obstacles is (R min , R max ], a dense penalty is added to guide the drone to maintain a certain safe distance from obstacles. The piecewise function of the reward Rt is as follows:

[0116]

[0117] Where r is the distance between the UAV and the obstacle, [x uav ,y uav ] is the position coordinate of the UAV, [x obs ,y obs ] is the position coordinate of the obstacle.

[0118] Step 3.3 To make the drone approach the target position, set the reward Rp

[0119] Assume that the distance between the current UAV position and the target position is d, and the distance between the UAV and the target position in the previous time step is d t-1 , then the drone is given a dense reward for moving according to the difference between the two distances, which is d t-1 -d. When the drone approaches the target, it will receive a positive reward. At the same time, a sparse reward is set. When the drone reaches the target location, it will be given a large reward Tm at one time.

[0120] The mathematical formula for reaching the target position, where the calculation expression of d is:

[0121] [x uav ,y uav ] is the current position coordinate of the drone, [x tar ,y tar ] is the target position coordinate of the UAV. Then the reward Rp is:

[0122]

[0123] Step 3.4 To optimize energy consumption, set the reward Re

[0124] Let the acceleration at time g be a g , angular velocity is recorded as w gThe penalty function Re that optimizes energy consumption accumulates the action space input from time 1 to time t and normalizes it by dividing it by 2t to avoid the accumulation of penalties over time. This ensures that the upper limit of the penalty for all time points of the drone is consistent. Taking into account previous actions, the drone can reduce the amplitude of its actions at all time steps, thereby reducing energy consumption:

[0125]

[0126] Step 3.5 To make the trajectory smooth, set the reward Rs

[0127] The acceleration at time t is denoted as a t , angular velocity is recorded as w t ; The acceleration at time t-1 is recorded as a t-1 , angular velocity is recorded as w t-1 The reward function Rs is set to reduce the magnitude of the jerk and angular acceleration, thereby optimizing the trajectory using high-order information of the trajectory:

[0128]

[0129] Step 4: Train the neural network based on parameter sharing TD3

[0130] During the training of the neural network, the takeoff and target positions of the drone cluster are changed, and the weight parameters of the neural network and reward function are adjusted during the training process until the results meet the following requirements. The training is terminated and only the policy neural network is retained. The policy neural network can output the optimal action based on the observation space. The requirements for the end of neural network training are:

[0131] 1. Avoid collisions and maintain networking while moving.

[0132] 2. Changing the number of drones deployed can still avoid obstacles and reach the target point.

[0133] 3. Heterogeneous drone swarms can gather into groups while moving.

Claims

1. A decentralized heterogeneous UAV swarm motion planning method, characterized in that: The following steps are involved: Step 1: Set up the UAV swarm motion planning scenario; Set the take-off position and target position of the drone cluster; The drones take off from their respective starting points, maintain communication and networking status, plan based on their own sensed information and networking status information, and gather to fly to the target point; Assume that the drone cluster contains k types of drones; the maximum acceleration of a drone of type i is represented by u i A, maximum speed is u i V, the maximum angular velocity is u i W; Assume that the number of drones of type i in the drone cluster is ni, then the number of drones in the entire drone cluster is The mth drone in the drone cluster is denoted as Um; The drone, obstacle, and target position are set as circles, and their radii are represented by r u , r c , r t ; The kinematic equation of the drone is: The state of the drone at time t is [x t ,y t ,v t ,ψ t ], the control variable is the action space [a t ,w t ], where x t ,y t ,v t ,ψ t Respectively represent the x-coordinate, y-coordinate, speed and heading angle of the drone at time t; a t ,w t Represent the acceleration and angular velocity of the drone at time t respectively; under the action of the control variable, after a time step Δt, according to the kinematic equation of the drone, the state quantity of the drone at the next moment [x t+1 ,y t+1 ,v t+1 ,ψ t+1 ], x t+1 ,y t+1 ,v t+1 ,ψ t+1 Respectively represent the x-coordinate, y-coordinate, speed and heading angle of the drone at time t+1; UAVs of type i need to satisfy their own motion constraints, namely: The communication range of the drone is set to r com ; In planning, drones regard other drones as obstacles, avoid collisions and maintain clustered communication based on the perception information and networking status information that is updated at any time; Step 2: Build a neural network based on parameter sharing TD3 Step 2.1 TD3 algorithm neural network weight parameter sharing The six neural networks of the TD3 algorithm share parameters and the strategy of the Um-th drone is π m , then under parameter sharing, π is satisfied m =π z , m≠z; m,z∈[1,N], the policy neural network is uniformly denoted as π; Step 2.2 Set the input of the policy neural network The input of the policy neural network π is the observation space, which specifically includes the following four parts: 1) Agent instructions for drone types The agent indication method is used to represent different types of drones in the swarm. The specific method is as follows: Encode the k types of drone clusters and create a code with a length of k to represent the drone types. Among them, for the code of drone type i, only the index position corresponding to drone type i is 1, and the other positions are 0; 2) Observation space of the drone’s own state The observation space of the drone’s own state is represented by a vector [x, y, v, w, r u ]; x, y represent the horizontal and vertical coordinates of the drone on the two-dimensional plane; v represents the moving speed of the drone, w is the yaw angle of the drone, r u is the radius of the drone; 3) UAV’s perception and observation space Assume that the perception of a drone of type i only retains the location information of the UiE objects closest to it, and the set of UiE(i∈[1,k]) is UE; then the length of the perception observation space of all types of drones is 2SL, where SL=max(UE); The position information of the qth object in the drone’s perception observation space is [x q ,y q ],q∈[1,SL], if SL is greater than UiE, the extra space is filled with 0, then the perception observation space of type i UAV is expressed as: [x1,y1,x2,y2,......,x q ,and q ,......,x UiE ,and UiE ,x UiE+1 =0,y UiE+1 =0,......,x SL =0,y SL [0] Among them, [x UiE+1 =0,y UiE+1 =0,......,x SL =0,y SL =0] is the extra space when SL is larger than UiE, which is filled with 0; 4) Observation space of mission target The position coordinates of the mission target are [x t ,y t ], x t ,y t Represents the coordinates of the target position on the two-dimensional plane, and assumes that all drones have obtained this information at the beginning of the planned mission; Step 2.3 Set the output of the policy neural network The output of the policy neural network π is the action space; Step 3: Set the reward function The reward function is set so that during the planning process of the drone cluster, each drone can maintain networking, maintain aggregation, avoid collision, reach the target location, minimize energy consumption and smooth trajectory; Step 4: Train the neural network based on parameter sharing TD3 During the training of the neural network, the take-off position and target position of the drone cluster are changed, and the weight parameters of the neural network and the reward function are adjusted during the training process. When the result meets the requirements, the training is terminated and only the policy neural network is retained. The policy neural network can output the optimal action according to the observation space.

2. A decentralized heterogeneous UAV swarm motion planning method according to claim 1, characterized in that: The reward function set in step 3 is specifically: Set six rewards Rg, Rn, Rt, Rp, Re, Rs and their corresponding weights Wg, Wn, Wt, Wp, We, Ws respectively, then the overall reward function is R = Wg × Rg + Wn × Rn + Wt × Rt + Wp × Rp + We × Re + Ws × Rs; The weights are adjusted according to the training situation, and the planning goal of the expected drone cluster is achieved by combining the sizes of various weights; Step 3.1 In order to maintain the networking and aggregation behavior of the drones during movement, set the rewards Rg and Rn The drone is initially set to be in networking state, and is required to maintain the networking state during the journey; The communication connection mode between drones is modeled using a bidirectional graph. com Other drones within the area are deemed to have established a two-way communication link with the drone; Setting the state C to 1 means that the drone cluster is in a normal networking state, and C to 0 means that the drone cluster is not fully in a networking state; the communication node relationship is stored according to the adjacency table of the graph; the communication topology is represented by G N =(U,σ), where U represents the entire drone cluster, N is the number of drones, and σ represents the edges connecting drones as graph nodes; the adjacency table is used to store the communication status information; The reward Rg is set to give all drones a penalty -Pg if the drone cluster is not all in the networking state; If all drones are in a network, a reward Pg is given to all drones: The reward Rn is set to, let n be the number of drones directly connected to the drone, and its value can be obtained through the adjacency table that stores the communication status information; when the drone maintains a direct communication connection with 4 to 6 surrounding drones, a reward of Ps is given, and corresponding penalties are given in other cases: Step 3.2 To meet the requirements of drones to avoid collisions, set the reward Rt The radius of the drone is expanded, and the expansion coefficient is Br; then when the distance between the geometric center of the drone and the obstacle is R min =Br×r u +r c , it is considered a collision; set a baseline penalty number Mc, and give the drone a penalty of 1.5Mc for each collision; set R max =1.2R min , when the distance between the drone and the surrounding obstacles is (R min , R max ], a dense penalty is added to guide the drone to maintain a certain safe distance from obstacles; then the piecewise function of the reward Rt is as follows: Where r is the distance between the drone and the obstacle, [x uav ,y uav ] is the position coordinate of the drone, [x obs ,y obs ] is the position coordinate of the obstacle; Step 3.3 In order to make the drone approach the target position, set the reward Rp Assume that the distance between the current UAV position and the target position is d, and the distance between the UAV and the target position in the previous time step is d t-1 , then according to the difference between the two distances, the drone is given a dense reward while moving, which is d t-1 -d; when the drone moves toward the target, it will receive a positive reward; at the same time, a sparse reward is set, and when the drone reaches the target position, a relatively large reward Tm is given at one time; then the reward Rp is: The calculation expression of d is: [x uav ,y uav ] is the current position coordinate of the drone, [x tar ,y tar ] is the target position coordinate of the UAV; Step 3.4 To optimize energy consumption, set the reward Re Let the acceleration at time g be a g , the angular velocity is recorded as w g ; The reward Re is set to accumulate the action space input from 1 to time point t, and normalize it by dividing by 2t: Step 3.5 To make the trajectory smooth, set the reward Rs The reward function Rs is set to reduce the magnitude of acceleration and angular acceleration, thereby optimizing the trajectory using high-order information of the trajectory:

3. A decentralized heterogeneous UAV swarm motion planning method according to claim 1, characterized in that: In step 4, the requirements for the neural network to end training are as follows: 1) No collision occurs and the network is maintained during movement; 2) Changing the number of drones deployed can still avoid obstacles and reach the target point; 3) Heterogeneous drone swarms can gather into groups while moving.