In this paper, a distributed cooperative motion planning method is proposed for quadrotor swarm via flocking behavior framework, which achieves cooperative flight with maintained separation in the considered obstacle areas. The motion planning method consists of 4 parts: cohesion, alignment, separation and follow-motion. Firstly, the cohesion part is designed to gather quadrotors into a proper swarm size. Besides, the alignment part is formulated to achieve velocity consensus among neighboring quadrotors, which is based on the constant acceleration braking model. Then, the safe valley attention field is proposed in the separation part to achieve proactive separation in obstacle environments, which is inspired by the distribution of human attention when driving. In addition, a virtual quadrotor is used to generate the follow-motion part. Finally, a swarm with 4 Iris-quadrotor models is constructed in Gazebo simulation platform, to validate the effectiveness of the proposed method. For practical application, an outdoor experiment with 3 quadrotors is also conducted, in which the swarm follows the virtual leader through ten predefined virtual spherical obstacles; this experiment validates distributed execution and trajectory tracking with known obstacle geometry rather than onboard obstacle perception. The results show that the proposed method achieves cooperative flight with maintained separation in both the simulated and the outdoor scenarios considered here.
● A distributed motion planner for quadrotor swarms is formulated in the flocking behavior framework, which organizes cohesion, alignment, separation and follow-motion into one local velocity command.
● A safe valley attention field is proposed for the separation part, which converts the attention distribution of a human driver into a geometric boundary that reacts before the collision boundary is reached.
● A Gazebo simulation and an outdoor experiment through ten obstacles both show cooperative flight with clearances kept above the collision thresholds.
Recently, quadrotors have been widely applied in various tasks including express delivery [1,2], infrastructure inspection [3,4], agricultural monitoring [5] and aerial photography [6]. Compared to a single quadrotor, a swarm has attracted the concentration of researchers due to their potential advantages on efficiency and flexibility in the above-mentioned large-scale and complex tasks [7,8]. Cooperative flight is one of the key research topics on quadrotor swarms. A cooperative flight method not only enhances the autonomy and robustness of the swarm system, but also significantly improves its adaptability and mission success rate even in complex environments. To achieve this, various methods have been researched and proposed. Most methods are based on distributed architecture, for the superior scalability, fault tolerance, reduced latency and better communication efficiency [9,10]. These methods can be summarized into two categories. For the first category, each quadrotor is assigned with its own target, so it is significant to achieve a suitable target assignment for cooperative flight. While the second category is assignment-free for quadrotors, which divides the cooperative flight into unified-motion layer and adaptive-motion layer.
Several methods have been published to achieve cooperative flight of distributed quadrotor swarm, which are classified as the first category [11–16]. In Ref. [11], a collision-free trajectory planning method is proposed for quadrotor swarms, which combines the visual vector field function with the modified Optimal Reciprocal Collision Avoidance (ORCA) algorithm. In Ref. [12], a gradient-based path planner is proposed for swarm flight, which assigns different passage priorities for quadrotors to avoid collision and improve efficiency. In Ref. [13], Senthil et al. present the Chance-Constrained Optimization (CCO) method, which achieves collision avoidance swarms flight under uncertain state estimation to neighbor quadrotors. In Ref. [16], an innovative approach is proposed based on deep generative model, to generate passable paths for flight shows, where each quadrotor navigates to its target with reactive collision-avoiding algorithm. However, it is usually a complex multi-constraint optimization problem to achieve an effective target assignment in obstacle environments, which is computationally expensive and difficult to solve in real time. Therefore, the methods above need to make great effort in assigning targets or priorities for quadrotors, which fundamentally limits their scalability and adaptability in cooperative flight.
For the foregoing reason, studies on assignment-free cooperative flight have been receiving much attention, which can be classified as the second category [17–21]. For instance, in Ref. [17], a formation motion planning method is proposed to avoid obstacles based on the affine transformation of the swarm shape, without requiring individual replanning for each quadrotor. In Ref. [19], a method is proposed based on the minimizing-energy virtual tube to generate a safe and smooth channel among obstacles, where a quadrotor swarm can flow cooperatively like water flowing in pipe. In Ref. [20], a swarm level collision-avoidance method is published, which introduces an adaption mechanism to divide the swarm adaptively, to achieve cooperative flight. In Ref. [21], a shape assembly method for swarms is proposed based on the idea of mean-shift exploration, which enables the swarm to adapt to different shape of unoccupied regions while passing through obstacle environments. However, the reach-and-wander motion pattern is usually used for collision avoidance in these methods, which may result in the entire swarm being immobilized when certain quadrotors get stuck in confined spaces between obstacles. Therefore, the possibility of getting stuck becomes a critical limitation of the assignment-free methods, particularly in obstacle environments.
Inspired by the attention distribution of drivers in crowded streets, the safe valley attention field is designed to form a novel separation algorithm, which enables proactive and smooth collision avoidance in swarm flight. And then, a distributed motion planning method is proposed for cooperative quadrotor swarm flight in obstacle environments via the flocking behavior framework, which incorporates the separation algorithm to achieve proactive and smooth collision avoidance. Finally, the planning method is respectively validated on a simulation platform and an outdoor experiment platform. The main contributions are summarized as follows:
● A distributed motion planning method is proposed for quadrotor swarms via the flocking behavior framework, which achieves cooperative flight in obstacle environments.
● A novel separation algorithm is presented to achieve proactive and smooth collision avoidance in swarm flight, which is based on the safe valley attention field, inspired by the attention distribution of human driving.
The rest of this paper is introduced as follows: in Section 2, the quadrotor model and the flocking behavior framework are introduced, which divide the cooperative flight problem into three adaptive-motion parts and a follow-motion part. Section 3 presents the proposed method with its 4 parts detailed in sequence, where the safe valley attention field is proposed in Subsection 3.3 to form the separation part. Section 4 presents the system architecture, the simulation and the outdoor experiment of the proposed distributed motion planning method, together with the log processing used for the results and a discussion of the scope and limitations. Section 5 summarizes the main works of the paper.
2 Preliminaries and Problem Formulation
In this section, the model of a quadrotor is defined as a ball with multi-layers. Then, the flocking behavior framework is introduced, which is used to formulate the constitution of the motion planning method.
2.1 Quadrotor model
Each quadrotor of the swarm is regarded as a ball shown in Fig. 1. Here, denotes the collision radius of quadrotors. is the free-distance, which means the minimum distance at which no separation effect is needed. represents the effective perception distance; the three quantities above are distances expressed in meters. Therefore, quadrotor is regarded as a ball centered on , with as the radius. The separation term of quadrotor becomes active when the center distance to an object is less than the free-distance , whereas a collision is considered to occur when this distance falls below the collision distance . The quadrotor can’t find obstacles at a distance greater than from itself, so that distant obstacles have no interaction and effect on it. The clearance between quadrotor and quadrotor is defined as , and the clearance between quadrotor and an obstacle centered at with radius is . Therefore, a collision occurs when the corresponding clearance becomes negative, that is, when the center distance is less than the collision distance , which equals between a pair of quadrotors and between a quadrotor and an obstacle point ( for a spherical obstacle of radius ).
In addition to the proposed ball model of quadrotors, it is essential to incorporate velocity and acceleration constraints in the model, to keep the commanded motions within the platform envelope. For every quadrotor, the maximum velocity and maximum acceleration are respectively defined as and , given in meters per second and meters per second squared. Hence, the desired velocity is constrained within the set below:
where is the current velocity of the quadrotor, denotes the time step of the planning method in seconds, denotes the unit sphere in . For a bound , the saturation operator is defined as
so that a zero vector is mapped to a zero vector rather than to an undefined unit vector. The two constraints of Eq. (1) are enforced through this operator, the velocity increment being limited first and the speed afterwards, as detailed in Subsection 3.4. The bounds of Eq. (1) are therefore applied through the saturation operator, so that the commanded velocity respects the speed and increment limits of the platform. Throughout this paper, positions and distances are expressed in meters, velocities in meters per second, accelerations in meters per second squared, and all gains are dimensionless.
2.2 Flocking swarm framework
According to the flocking behavior framework introduced in Ref. [22], a distributed and cooperative swarm is established and maintained through 3 rules on every member: cohesion, alignment, and separation. The cohesion rule drives individuals toward the swarm center, which promotes the swarm aggregation. The alignment rule encourages to reconcile the velocities of nearby neighbors, promoting consistent motion across the swarm. The separation rule generates repulsive forces to avoid collisions, both among swarm members and with external obstacles, thereby providing the separation mechanism studied in this paper.
Based on the framework, the cooperative flight problem is formulated as a combination of 4 motion parts: the cohesion, alignment and separation parts to keep the swarm and adapt the environment, supplemented by a follow-motion part to track the global path. To proceed, a swarm is established consisting of multiple quadrotors, where every physical quadrotor is guided by the proposed planning method to achieve cooperative flight. And a virtual leader quadrotor is introduced, which ideally follows the predefined global path and broadcasts its velocity as a follow-motion reference. In particular, the desired velocity for quadrotor is
where and represent the desired velocity for cohesion, alignment, separation, and follow-motion respectively, as shown in Fig. 2. All four terms are desired-velocity contributions expressed in m/s, and the gains that scale them are dimensionless; the contributions of all eligible neighbors and objects are accumulated first, so that the intermediate sum may exceed , and the limits are enforced once at the end, as detailed in Subsection 3.4. In particular, acts in the gray region in Fig. 2A, and it gathers the quadrotor into the swarm shape. is used to reconcile the velocities of nearby quadrotors with an orange implicit effective range in Fig. 2B. avoids collision within the green attention region in Fig. 2C while passing through obstacles. And then, all quadrotors in the white sphere like Fig. 2D are requested to move on the base velocity to follow the virtual leader. The follow-motion term is a measured reference velocity, namely the horizontal velocity of the virtual leader together with an altitude regulation term, and it carries no gain.
3 Methods
This section details the proposed motion planning method to achieve cooperative flight of quadrotor swarms in obstacle environments. It is organized into 4 subsections that respectively corresponding to the cohesion, alignment, separation, and follow-motion parts.
3.1 Cohesion
The cohesion region is defined as a sphere centered on the virtual leader . And then, the velocity algorithm is designed for guiding quadrotor to the desired region. That is, guides quadrotor toward the center when it’s out of the region, while do nothing within the region. Besides an inner border to accommodate the swarm, an outer border is considered to confine the effect of cohesion, so that the swarm does not affect distant and isolated quadrotors. Since is strictly positive within the active interval , the unit vector used in the cohesion term is always well defined. In particular,
Here, denotes the distance between quadrotor and the virtual leader (quadrotor 0 in other words), is the unit vector that represents the direction from the leader to the quadrotor. is the dimensionless gain of the cohesion; the square-root factor equals zero at and one at , so that . and are respectively the inner and outer radii of the cohesion-effective region.
Every quadrotor of the swarm will be driven to gather into the cohesion region on radius . So the radius should be specified to accommodate all the quadrotors. To assemble the swarm simply and regularly, the Simple Cubic Packing in Crystallography is referenced as a formation to estimate the proper radius, as shown in Fig. 3. In the figure, every quadrotor is assigned a spherical space of radius . The figure shows a swarm of 27 quadrotors which is arranged into a Simple Cubic. In other words, the cohesion region is voxelated as the Simple Cubic Packing of all quadrotors. Radius of the sphere is calculated as below:
Where is the number of quadrotors of the swarm (the virtual leader is not included), represents the set of natural numbers. denotes the packing radius, which allows every quadrotor to hover without separation effect. is the packing efficiency of the Simple Cubic Packing on space, approximately . means the free-distance between two hovering neighboring quadrotors.
3.2 Alignment
The alignment part is designed to achieve velocity consensus among neighboring quadrotors, promoting cooperative swarm behavior. For a pair of neighboring quadrotors and , it is implemented as a motion algorithm which limits the relative velocity within a range, as follow:
Here, denotes the desired alignment velocity for quadrotor , which is influenced by quadrotor . The relative velocity is defined as , with the norm being the value of the current velocity difference between the two quadrotors, and the corresponding unit vector, which is well defined whenever , that is, whenever the alignment term is active. is the dimensionless gain of the alignment effect, and the sign that reduces the velocity difference is written explicitly in the vector expression above. is the maximum acceptable velocity difference at distance . is the maximum velocity difference between the two quadrotors. Therefore, the desired alignment velocity for quadrotor can be calculated as the sum of alignment effect from other quadrotors: .
A model of the limit braking curve is proposed to formulate , which considers the maximum acceleration of quadrotors as an isotropic constant. The limit braking curve is identified as the function below:
where is the maximum acceptable value between two quadrotors, is the minimum braking distance in need, is half of the maximum relative acceleration of the two quadrotors. Although a larger acceleration can be achieved in some cases, it is considered to cause an unreachable combined acceleration probably, so that the distance is too short to brake. Besides the limit braking curve, a minimum velocity difference is permitted over short distances, which enables rapid separation. So, the limitation of relative velocity is formulated as follow:
Here, is the permitted minimum velocity, is the relative distance between quadrotor and , is the residual distance at which the minimum permitted relative velocity applies. is an implicit border, where the alignment algorithm is effective. It is calculated as follow:
so that the limitation does not affect distant quadrotors farther away than .
The braking curve above is a local design rule, and its validity relies on the following assumptions. (1) Bounded relative deceleration: the closing motion can be reduced by at most along the line of sight, with taken as half of the maximum relative acceleration of the two quadrotors; this is a conservative bound that is assumed to hold throughout the flight. (2) Sampling: the terms of the method are re-evaluated at every control step of duration , and no sample is assumed to be lost. (3) Sensing and communication: the states of the neighbors and of the leader are assumed to be available at the update instant, with the GPS-time clock offset corrected as described in Subsection 4.1; the delay, the packet loss and the jitter of the link were not measured in this work, so this assumption remains unproved. (4) Tracking: the velocity setpoint is assumed to be tracked by the onboard controller within one control step; the trajectories of Section 4 support this approximately in the tested operating range, while the tracking error was not quantified. (5) Neighbor behavior: the closing motion of a pair is bounded by the same rule, and no adversarial behavior of a neighbor is assumed. Accordingly, the braking curve provides a local, velocity-dependent separation geometry rather than a formal proof of collision avoidance, and the safety margin is supported by the experiments reported in Section 4 and discussed in Subsection 4.5.
A visual representation of the velocity limitation can be seen in Fig. 4. In the figure, the X-axis is quantified with relative distance . The Y-axis is quantified with to express the relationship more intuitively, so that the equal slopes mean a same relative acceleration. The green area is the set of all acceptable relative velocities on different distances. The blue polyline is the set border. In the case shown, the relative velocity is over the border, so the alignment equation will reduce it to .
Therefore, the alignment algorithm for quadrotor is simplified as the sum of the individual alignment effect from neighboring quadrotors, given by:
Here, is the desired alignment velocity for quadrotor . denotes the set of neighboring quadrotors within distance around quadrotor .
3.3 Separation based on safe valley attention field
A driver pays different attention to road conditions in different directions:
● The driver focuses most on the direction of velocity, with the farthest care distance.
● The secondary is attention to the left and right sides.
● The opposite direction receives the least attention with the shortest distance, which is not shorter than the distance covered by the car.
● The extent of attention difference also correlates with the car’s speed—the faster it travels, the farther his or her focus extends to the heading direction.
Inspired by the attention distribution of drivers in crowded streets, the safe valley attention field is proposed to construct a novel separation algorithm, which guides the quadrotor to turn proactively around obstacles and other quadrotors. The case in Fig. 5 shows a typical scenario when quadrotor is sandwiched between obstacle and quadrotor , while a swarm passing through obstacle environments. In the case, the separation affects only the perpendicular direction of quadrotor ’s velocity, which forms a valley-shaped guidance field between obstacle point and quadrotor . For the design of separation region is inspired by the attention distribution of human driving, the field is named safe valley attention field.
Therefore, for quadrotor , border of the attention region is designed as an egg, which is the superposition of a rotational ellipsoid and a ball, as seen in Fig. 6.
In Fig. 6, the magnitude of quadrotor ’s velocity equals to , so the smaller green border to obstacles reaches the blue sensing radius at . The other green border to other quadrotors can exceed the sensing boundary, because quadrotors are communicable in a larger distance. But the individuals farther away than the larger border are ignored in the algorithm.
By treating an obstacle as a cloud of points, the separation shape is formulated in a polar coordinate system as follow:
In the separation-region equation, the first part of is a rotational ellipsoid whose focus is . is a specific semi-minor axis of the rotational ellipsoid. is the eccentricity that determined by the value of quadrotor ’s current velocity. The polar axis is aligned with the direction of the velocity. is the relative position vector from quadrotor j to i. And the second part is the ball of radius , to keep the shortest distance from collision. With the focus at the quadrotor center and the polar axis along the velocity direction, the boundary of Eq. (12) is the offset of an ellipse whose semi-major axis, semi-minor axis, focal distance and semi-latus rectum are , , and . The forward, rearward and lateral boundaries of the field are therefore , and , as illustrated in Fig. 6. It is emphasized that is the boundary where the separation term becomes active, whereas is the collision boundary defined in Subsection 2.1. When an obstacle is represented by a sphere of radius instead of a point, the offset radius becomes ; for a point obstacle holds and the expression reduces to the case given in Eq. (14).
In addition, is considered to reach the maximum when quadrotor is moving at , but the free-distance to an obstacle point should not be longer than the effective perception distance . In other words, . Based on the limits, and can be calculated in closed form as follow:
where for an obstacle point and for an obstacle of radius , as given in Eq. (14). The first equation, Eq. (15), is the sensing constraint evaluated at , and Eq. (16) is its closed-form solution, in which the semi-latus rectum is written as . For the low-speed case, the polar axis is taken as the body forward axis (the first column of the rotation matrix reconstructed from the attitude quaternion), and the two constants are set to and in all the experiments reported in Section 4. The eccentricity therefore satisfies , so that the field is defined for every state of the swarm. When the obstacle is a sphere, the forward boundary may exceed the sensing radius by ; such objects lie beyond the sensing range and are therefore not evaluated by the planner.
Therefore, the safe valley effect from object to quadrotor is formulated to guide proactive turning, which is perpendicular to the direction of quadrotor ’s velocity and away from object , as shown below:
Here, is the dimensionless gain of the separation effect. To meet different objects including obstacle points and other quadrotors, the gain is divided into different values, which are and for obstacle points (or spherical obstacles) and for other quadrotors, respectively. is a unit vector to represents the direction that perpendicular to the polar axis and away from the object, in particular,
The escape direction is undefined when the object lies on the velocity axis, that is, when vanishes; this includes the important case of an obstacle directly ahead of quadrotor . Two thresholds are therefore introduced to make the field well defined. For , the polar axis is replaced by the body forward axis and the eccentricity is set to , as given in Eq. (17). For , the escape direction is replaced by the deterministic lateral direction , or by if the former is also ill-conditioned, that is, for vertical motion. Objects whose centers coincide with the quadrotor, namely m, are excluded from the sum. With these rules every term of the field is well defined, and an object directly ahead results in a lateral escape with a reproducible sign convention; the projection threshold is set to m in the experiments reported in Section 4.
Hence, the separation algorithm for quadrotor is sum of the safe valley effect from every object in the attention region:
where, is the desired separation velocity for quadrotor . denotes the set of neighboring objects within distance around quadrotor , including obstacle points, spherical obstacles and other quadrotors, where is evaluated with the direction-dependent expression of Eq. (12). In addition, the sensing radius restricts the obstacle points that are evaluated, so that objects beyond the perception distance have no effect on the quadrotor.
3.4 Follow-motion and verification
In addition to the cohesion, alignment and separation parts that constitute the adaptive-motion layer, every quadrotor is also guided by the virtual node (quadrotor 0) on velocity , to accomplish the follow-motion part. Therefore, the desired velocity for quadrotor is combined as the four-component equation above. Then, to meet the limits from and , the published desired velocity must be verified to prevent the response of autopilot from becoming saturated. Using the saturation operator defined in Eq. (2), the velocity increment is limited first and the speed afterwards:
Here , given by Eq. (21), is the change of the desired velocity during the step time , is a temporary vector whose increment is limited by , and denotes the published desired velocity, whose norm is limited by . Since maps the zero vector to the zero vector, no unit vector has to be formed at this step, and the two limits are applied in the order given above.
The resulting procedure for one control step of quadrotor is summarized below.
Algorithm 1: flocking step of quadrotoriat time
(1) Read the own position , velocity and attitude, together with the leader and neighbor states.
(2) Compute the cohesion term of Eq. (4), which is inactive when or .
(3) Sum the pairwise alignment terms of Eq. (6) over the set .
(4) Set the polar axis and the eccentricity: if , take the body forward axis and ; otherwise take and .
(5) Sum the pairwise separation terms of Eq. (18) over the objects inside their respective free-distance boundaries, applying the rules given in Subsection 3.3 for the degenerate cases.
(6) Compute the follow-motion term from the leader velocity and the altitude regulation.
(7) Accumulate the four contributions as .
(8) Limit the increment and the speed as .
(9) Publish as the velocity setpoint of the quadrotor.
4 Experiment Settings and Results
This section presents the settings and results of the proposed motion planning method in both simulation and outdoor experiment. First, a system architecture for the quadrotor swarm is designed to implement the proposed motion planning method. Subsequently, an obstacle environment is constructed in the Gazebo simulator, where a swarm of 4 Iris-quadrotor models is used to validate the method’s effectiveness. Finally, the method is reimplemented on an outdoor swarm of 3 quadrotors, to achieve cooperative flight under real-world conditions.
4.1 Architecture of the quadrotor swarm
The architecture adopts the flocking behavior framework to enable the cooperative flight of a quadrotor swarm, shown in Fig. 7A. Here, every quadrotor of the swarm is guided by the same proposed motion planning method. It receives the states of the configured neighbors, and broadcasts its own state to the local communication network. It only detects obstacles within the effective perception distance . In addition, none of the quadrotors know the global path. Therefore, a virtual leader quadrotor is introduced, which ideally follows the predefined global path. It broadcasts its position as the swarm center , and the current velocity as a follow-motion reference .
To make the implementation reproducible, the execution specification of the swarm system is summarized as follows.
● Update rate: the planner runs on the onboard computer with Ubuntu 20.04 and executes its control loop at 30 Hz, publishing one command per iteration.
● Inputs: the own state, the own odometry, the odometry of the configured neighbors and the GPS time reference.
● Communication topology: each quadrotor runs its own Robot Operating System (ROS) master, the states of the configured neighbors are exchanged over the local network, and the leader broadcasts its own state to the followers.
● Commands: velocity setpoints during the flocking phase, while position setpoints are used only in the hover and formation phases.
● Mode gating: commands are produced only in the offboard mode with the flocking submode selected.
● Time synchronization: every received state is corrected by a GPS-time clock offset, .
● Frame synchronization: a common ENU origin is published by the leader and adopted by the other quadrotors.
● Localization: RTK GNSS with the common origin.
● The neighbor set is given by the configuration: in the outdoor flight, the two follower quadrotors exchange their states with each other and both receive the state of the leader.
● Not measured: the state-publication rate of the flight stack, the packet-loss rate, the delay distribution, the update jitter and the number of link reconfigurations.
Accordingly, the items above are the confirmed facts of the implementation, whereas no communication guarantee and no latency value are claimed in this paper.
4.2 Simulation
The simulation platform is constructed using the ROS on Ubuntu 20.04, together with PX4 Autopilot Firmware v1.13. The simulation environment and Iris quadrotor model is established in the Gazebo simulator. As shown in Fig. 7B, 10 cylinders on varying radii are randomly distributed in the square area, which create an obstacle environment. The global path is predefined as a circle that repeatedly pass through the obstacle area. An Iris quadrotor flies above the obstacles and tracks the global path, as the virtual leader. There Iris quadrotors equipped with lidars run the proposed method with the same parameters, fly in the environment and follow the virtual leader. The lidars are also provided by plug-ins in Gazebo, to detect nearby obstacles.
With the parameters shown in Table 1, the setups provide a benchmark for testing the method with the sensing and dynamic limits of the platform.
In the table, all values other than the obstacle-separation gain are set to match the size of the real quadrotors and to keep the outdoor flight safe. The separation gain to an obstacle point is the only parameter that is changed because of the obstacle representation, since the simulation evaluates the term for every sensed obstacle point of the point cloud, whereas the outdoor planner evaluates one term for each spherical obstacle. Consequently, the two experiments use different obstacle models, and their results are evidence of feasibility under two deployment conditions rather than a controlled comparison of tuned performance.
The performance of the proposed method in simulation platform is post-processed in MATLAB from the flight logs, as shown in Figs. 8-10. In Fig. 8, the red curve with Quad 0 tag is trajectory of the virtual leader. It is a circle on , where is the flight time, is used to adjust the initial positions. Then, the other curves with Quad 1-3 tags are trajectories of the 3 quadrotors, which are guided by the proposed planning method. Figs. 8A and 8B present the ideal trajectory and 3 actual trajectories while tracking, respectively on 3D and top view. Fig. 8B also shows that the quadrotors choose different branches in path furcation to pass through obstacles in different conditions.
Fig. 9 records the position of quadrotors on 3 axes during the flight in simulation. It can be seen that the quadrotors get together in empty area, and deviate from the circle trajectory as the separation term becomes active in the obstacle area. Besides, according to Fig. 10, the magenta line with Collision Distance tag is the minimum distance for two quadrotors to collide with each other. The other curves are distances between each pair of quadrotors in the swarm. Therefore, the logged pairwise center distances remain above the collision distance throughout the analysed interval, which is the separation evidence reported here.
4.3 Outdoor experiment
The outdoor experiment platform is constructed with 3 quadrotors. Every quadrotor, as shown in Fig. 11, is equipped with a MicoAir743v2 Autopilot for flight control, an RTK (Real-Time Kinematic) module for high-precision localization, and an NVIDIA Jetson Orin NX onboard computer for swarm communication and implementing the proposed method. In the platform, one quadrotor flies above the obstacle area as the leader quadrotor. Its state information is mapped to the corresponding state inside the obstacle area, serving as the virtual leader. The other 2 quadrotors operate as followers in the obstacle area. The followers receive the mapped virtual leader state as the follow-motion reference and receive the states of the other followers. The initial conditions are as follows: the two followers start from the formation offsets m and m relative to the leader, their altitude is regulated to m, and the leader flies a clockwise circle of m radius at m/s at an altitude of m above the obstacle field. The leader state used by the planner is the vertical projection of the physical leader onto the obstacle plane, that is, the followers hold their altitude at the cruise height and take the horizontal position and velocity of the leader as the virtual-leader reference. The interval analysed below starts s after the earliest sample of the recorded logs and lasts s.
The proposed method is implemented as a ROS package in Python, which runs on the Ubuntu 20.04 system installed on the onboard computer. The outdoor experiment environment captured by the camera is shown in Fig. 12. To simplify the system, the quadrotor does not carry an actual environment sensing hardware such as LiDAR, and no onboard camera is used for obstacle detection. Instead, an obstacle area is predefined in the package, with 10 virtual spherical obstacles randomly distributed in the same horizontal plane as the virtual leader, whose centers lie on the cruise plane of the followers. Each obstacle is given by a center and a radius between 0.25 m and m, and these parameters are prior inputs of the planner rather than measurements: they are used directly in the separation part, in place of obstacle point clouds. Therefore, the experiment validates the distributed execution and the trajectory tracking of the planner under known obstacle geometry, and not an online obstacle perception or mapping function. As the obstacle representation differs from the simulation, the gain of separation to an obstacle takes a different value in the two experiments, as reported in Table 1, whereas the remaining parameters are set for the real airframe and for a safe flight. Every follower quadrotor runs the proposed method with the same parameter table.
The performance of the proposed method in outdoor experiment platform is post-processed in MATLAB from the flight logs, as shown in Figs. 13-15. In Fig. 13, trajectories of the virtual leader and the 2 followers present the overall spatial motion of the swarm in the outdoor experiment, together with the predefined obstacle environment. Here, the blue curve with Quad 0 tag is trajectory of the virtual leader. It is a circle on , , where is the flight time, is used to adjust the initial positions.
The other curves with Quad 1 and 2 tags are trajectories of the 2 quadrotors, which are guided by the proposed planning method. Under the guidance of the virtual leader, the 2 followers complete cooperative flight through the obstacle area while maintaining the intended swarm motion. These trajectories indicate that, in the outdoor platform and under the tested conditions, the two followers track the virtual leader while keeping their clearances above the thresholds reported below.
Fig. 14 further shows the position variations of the virtual leader and the 2 followers along the 3 axes during the flight. It can be observed that the followers track the virtual leader continuously. Their positions deviate adaptively in the obstacle region and return to the neighborhood of the virtual leader in the unobstructed region.
Fig. 15 shows the clearances between the 2 followers, together with the clearances from each follower to the obstacles. The inter-vehicle curves are center-to-center distances, for which the collision distance is m, whereas the obstacle curves are surface clearances , for which the collision distance is m; the minimum distance and the collision distance of every subfigure are emphasized in bold lines and labeled. The logged clearances remain above the corresponding thresholds over the analysed window, which is the separation evidence obtained in this experiment. Since the two logs are not sampled at the same instants, the trajectory of one follower is interpolated linearly onto the time base of the other for this comparison.
4.4 Log processing and metric definitions
The outdoor results are obtained by post-processing the flight logs, and the protocol is summarized below so that the reported figures can be reproduced.
(1) Logged signals: the flight-controller logs of the three quadrotors are used, namely the logged local position of each vehicle and its GNSS time reference; the velocity commands and the planned references are not used for the figures.
(2) Time alignment: an absolute UTC axis is reconstructed for every record from its GNSS timestamps, and the three records are aligned to the earliest UTC instant of the three logs.
(3) Coordinate conversion: the logged local positions are converted into a common ENU frame and expressed relative to the navigation start pose of the virtual leader.
(4) Cropping: the analysed interval is – s after the common origin, and it is rebased to – s in the figures.
(5) Interpolation: for the pairwise curves, the trajectory of one follower is interpolated linearly onto the time base of the other one, since the two logs are not sampled at the same instants; this operation is used only for the distance computation.
(6) Filtering and discarded samples: no smoothing, no outlier removal and no gap filling is applied, and the only samples absent from the figures are those outside the cropping interval.
(7) Plotting choices rather than controller operations: the rebasing of the time axis, the ENU conversion together with the choice of the origin, the m downward shift used to draw the leader trajectory in the obstacle plane, the interpolation onto a common time base, the collision-distance reference lines and the axis limits of the figures.
The distances shown in Fig. 15 are the clearances defined in Subsection 2.1, namely the center-to-center distance between the quadrotors and the surface clearance to the obstacles.
4.5 Scope and limitations
The assumptions that support the braking curve are listed in Subsection 3.2, where they are marked as satisfied or unproved. Two further limitations of the reported evaluation should be noted. First, the outdoor experiment involves three quadrotors, namely one physical leader and two followers, and the obstacle geometry is a prior input, so that the results support the distributed execution and the trajectory tracking of the planner under known obstacle conditions; they do not establish a formal safety guarantee. Second, the delay, the packet loss and the jitter of the communication link were not measured, so the corresponding assumptions remain unproved, and the safety margin is supported by the logged clearances rather than by an invariant-set argument over the discrete-time system.
5 Conclusions
In this paper, a distributed motion planning method is proposed for the cooperative flight of quadrotor swarms in obstacle environments, which is based on the flocking behavior framework. A separation algorithm via the safe valley attention field is presented as part of the method, to achieve proactive and smooth separation in the swarm flight. The reported evidence can be summarized at three levels. The simulation supports the planning and separation behavior in the Gazebo scenario. The outdoor experiment supports the distributed execution and the trajectory tracking of three quadrotors with ten predefined virtual spherical obstacles, for which the logged clearances remain above the collision thresholds. The braking curve provides a local, velocity-dependent interpretation of the separation geometry, rather than a formal guarantee of collision avoidance. The assumptions and the limitations of this interpretation are given in Subsections 3.2 and 4.5.
CHANGE HISTORY
A Correction to this paper has been published: https://doi.org
The Retraction Note was updated to reflect reception of statements of disagreement from all authors.
This article has been retracted.Please see the Retraction Notice for more detail: https://doi.org
Hossain N U I, Sakib N, Govindan K. Assessing the performance of unmanned aerial vehicle for logistics and transportation leveraging the Bayesian network approach. Expert Systems with Applications, 2022, 209: 118301
[2]
Lee H W, Lee C S. Research on logistics of intelligent unmanned aerial vehicle integration system. Journal of Industrial Information Integration, 2023, 36: 100534
[3]
Liang J C, Zhong H, Wang Y N. et al. Reference optimization-based compliant control for aerial pipeline inspection using a hexacopter with a robotic contact device. IEEE/ASME Transactions on Mechatronics, 2024, 29(6): 4063–4074
[4]
Zhong H, Liang J C, Chen Y J. et al. Prototype, modeling, and control of aerial robots with physical interaction: a review. IEEE Transactions on Automation Science and Engineering, 2025, 22: 3528–3542
[5]
Mohite J, Sawant S, Agarwal R, et al. Detection of crop water stress in maize using drone based hyperspectral imaging. In: IGARSS 2022−2022 IEEE International Geoscience and Remote Sensing Symposium. Kuala Lumpur, Malaysia, 2022, 5957–5960
[6]
Istiak M A, Syeed M M M, Hossain M S. et al. Adoption of Unmanned Aerial Vehicle (UAV) imagery in agricultural management: a systematic literature review. Ecological Informatics, 2023, 78: 102305
[7]
Cao P, Lei L, Cai S S. et al. Computational intelligence algorithms for UAV swarm networking and collaboration: a comprehensive survey and future directions. IEEE Communications Surveys & Tutorials, 2024, 26(4): 2684–2728
[8]
Javed S, Hassan A, Ahmad R. et al. State-of-the-art and future research challenges in UAV swarms. IEEE Internet of Things Journal, 2024, 11(11): 19023–19045
[9]
Yu D X, Li J C, Wang Z. et al. An overview of swarm coordinated control. IEEE Transactions on Artificial Intelligence, 2024, 5(5): 1918–1938
[10]
Amirkhani A, Barshooi A H. Consensus in multi-agent systems: a review. Artificial Intelligence Review, 2022, 55(5): 3897–3935
[11]
Li R C, Yang Q K, Zhao W P, et al. Collision-free trajectory generation for multiple UAVs with sensing constraints. In: 2021 40th Chinese Control Conference (CCC). Shanghai, China, 2021, 5592–5597
[12]
Zhou X, Zhu J C, Zhou H Y, et al. EGO-Swarm: a fully autonomous and decentralized quadrotor swarm system in cluttered environments. In: 2021 IEEE International Conference on Robotics and Automation (ICRA). Xi’an, China, 2021, 4101–4107
[13]
Arul S H, Manocha D. SwarmCCO: probabilistic reactive collision avoidance for quadrotor swarms under uncertainty. IEEE Robotics and Automation Letters, 2021, 6(2): 2437–2444
[14]
Ourari R, Cui K, Elshamanhory A, et al. Nearest-neighbor-based collision avoidance for quadrotors via reinforcement learning. In: 2022 International Conference on Robotics and Automation (ICRA). Philadelphia, USA, 2022, 293–300.
[15]
Quan L, Yin L J, Zhang T R. et al. Robust and efficient trajectory planning for formation flight in dense environments. IEEE Transactions on Robotics, 2023, 39(6): 4785–4804
[16]
Plou C, Pueyo P, Martinez-Cantin R, et al. Gen-swarms: adapting deep generative models to swarms of drones. In: 2024 International Conference on Computer Vision. Milan, Italy, 2025, 85–101
[17]
Peng P, Dong W, Chen G, et al. Obstacle avoidance of resilient UAV swarm formation with active sensing system in the dense environment. In: 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). Kyoto, Japan, 2022, 10529–10535
[18]
Guo J J, Qi J T, Wang M M. et al. Distributed cooperative obstacle avoidance and formation reconfiguration for multiple quadrotors: theory and experiment. Aerospace Science and Technology, 2023, 136: 108218
[19]
Mao P D, Fu R, Quan Q. Optimal virtual tube planning and control for swarm robotics. The International Journal of Robotics Research, 2024, 43(5): 602–627
[20]
Luo L B, Wang X Y, Ma J F. et al. GrpAvoid: multigroup collision-avoidance control and optimization for UAV swarm. IEEE Transactions on Cybernetics, 2023, 53(3): 1776–1789
[21]
Sun G B, Zhou R, Ma Z. et al. Mean-shift exploration in shape assembly of robot swarms. Nature Communications, 2023, 14(1): 3476
[22]
Reynolds C W. Flocks, herds and schools: a distributed behavioral model. ACM SIGGRAPH Computer Graphics, 1987, 21(4): 25–34
Rights & permissions
The Author(s). This article is published by Higher Education Press.