1. Introduction
In the past decades, unmanned aerial vehicle(UAV) has been the subject of much discussion because of promising applications in military and civil fields, such as cooperative operations [
1], electric power inspection [
2], land mapping [
3], and so on. A single UAV has limitations in terms of payload, endurance and mission capability, while a collaborative system composed of multi-UAV has obvious advantages in practicability and scalability [
4]. One of the core problems of UAV group is navigation, i.e., how to reach the destination without colliding with dynamic and static obstacles. Therefore, cooperative obstacle avoidance of multi-UAV is an important direction of UAV development and application.
Many collision avoidance models for UAV have been proposed, which can be divided into two categories, i.e., model-free approaches and model-based approaches. The model-free approaches do not require exploring the model to recover the environments, which consist of sampling method, swarm intelligence, deep reinforcement learning, and so on. Early random road map and fast search tree methods are often used for sampling, but the planning process is very time consuming, and the methods are based on the assumption that the environment is static. These factors make it difficult to apply in practical engineering [
5,
6]. Swarm intelligence algorithms mainly include particle swarm optimization (PSO), ant colony optimization (ACO), artificial bee colony (ABC) algorithm and so on [
7,
8,
9]. When these algorithms are used to deal with a large number of sample data, they will occupy more computer memory, and have a high demand on the running speed of the computer. As a research hotspot in machine learning, deep reinforcement learning can obtain effective control decisions for high-dimensional raw data input by relying on the perception ability of deep learning [
10]. However, this system usually works in specific tasks and is difficult to be extended to other environments.
Model-based methods are designed based on accurate models, such as geometric model, artificial potential field method, velocity obstacle (VO) method and so on. However, due to the limitations of realistic environments and the constraints of UAV itself, many of the existing methods have a large amount of calculation and are not suitable for reactive collision avoidance of multi-vehicle systems [
11]. Fortunately, VO method has the ability to predict the collision in advance, and the calculation requirements are not high, and it is more suitable for multi-obstacle avoidance in complex environments [
12]. VO method was first proposed by Fiorini and Shiller in [
13], which is a commonly used multi-robot local path planning method. The model needs to solve complex nonlinear optimization problems in the relative velocity space, it is difficult to guarantee the real-time performance, and does not solve the problem of safe and non-oscillation navigation among multiple agents in a large and chaotic environment [
14]. Berg proposed the reciprocal velocity obstacles (RVO) based on VO, which solves the oscillation problem of the VO method [
15]. However, the RVO has some limitations, in particular, it often causes agents to end up with a reciprocal dance condition, as they cannot agree on which side to pass through the other [
16]. A selective velocity obstacle (SVO) method is proposed in [
17] for collision avoidance between multiple UAVs on the basis of VO method, and the right hand first principle is added in SVO for collision avoidance decision-making. Although the above approaches have had some success, there are still many limitations. For example, each UAV acts independently and makes decisions according to the local state information obtained by itself, which often fails to achieve the global optimal decision. The communication volume is too large during cooperative obstacle avoidance, resulting in redundancy and a lot of calculation. The kinematics constraints of UAVs in real environments are also not considered.
Based on the above factors, this paper proposes a feasible cooperative obstacle avoidance scheme for multi-UAV. The cooperative obstacle avoidance scheme uses user datagram protoco(UDP) and information completion algorithm to reduce communication traffic and share Heartbeat information of each UAV. Then, a Spline_VO method is used to realize cooperative obstacle avoidance for multiple UAVs and generate smooth flight path for each UAV. The scheme is simple in calculation, high in efficiency, in line with the kinematics law of the UAV, and can ensure that multi-UAV will reach the target smoothly.
The main contributions of our work are summarized as follows:
We present a feasible obstacle avoidance scheme, which can help UAV group to avoid dynamic and static obstacles smoothly and generate smooth flight path. The problems such as easy to fall into local optimization, communication redundancy and kinematics constraint of UAV are solved.
We propose a screening mechanism of UAV Heartbeat information, which can effectively avoid the interference of timeout signal and long-distance communication to UAV’s obstacle avoidance performance, improve the stability of obstacle avoidance and reduce communication volume.
For static obstacles, we also use Spline_VO method to avoid obstacles and smooth the path for polygonal obstacles. It is more in line with the situation that the UAV encounters static obstacles in the real environment.
We verified the effectiveness and performance of the proposed obstacle avoidance scheme by comparing it with other obstacle avoidance schemes in path and time.
The rest of this paper is organized as follows: Cooperative communication mechanism of UAV group is presented in
Section 2.
Section 3 introduces the obstacle avoidance of UAV based on the proposed communication algorithm. The simulation results are given in
Section 4.
Section 5 concludes this paper.
2. Cooperative Communication Mechanism for Multi-UAV
UAV communication is the key to cooperative obstacle avoidance. How to reduce communication time and ensure the accuracy of communication is one of the key points of our research. Transmission control protocol (TCP) requires three handshakes before data transmission, resulting in communication delay, while UDP has no delay in establishing connections and can reduce energy consumption through regular communication [
18]. Therefore, in this study, each UAV communicates with others based on UDP broadcasting its Heartbeat [
19] information. The main information contained in a UAV Heartbeat(HB) is shown in
Table 1.
In the UAV communication system, all UAVs regularly broadcast their HB information at a fixed frequency
, which will be stored in MessageBox. If there are
N UAVs in the system, each UAV will receive
HB messages from other UAVs regularly under normal communication conditions, while MessageBox will receive
HB messages every communication cycle, which will inevitably lead to information redundancy. In addition, due to the decline of long-distance communication or network quality, UAVs may not receive long-distance Heartbeat information, resulting in information loss, or the received signal times out and becomes useless signal, which greatly affects the obstacle avoidance performance of the UAV group. To solve these problems and ensure the real-time and accuracy of communication between UAVs, we proposed a HB information filtering mechanism (HIFM) to screen the Heartbeat signals broadcast by UAVs. The specific process of HIFM is shown in
Figure 1.
HIFM firstly filters out useless information. When conducting collision avoidance, the UAV needs to know the horizontal and vertical distances between itself and other UAVs or obstacles. Set the minimum horizontal safety distance and the minimum vertical safety distance to avoid collision as and , respectively. Once the minimum safety distance is reached, the UAV shall conduct collision avoidance operation. When the horizontal distance between two UAVs is greater than or the vertical distance is more than , the HB of each other is regarded as useless information and will not be received. In addition, due to environmental interference or communication delay, a UAV at time T will refuse to receive the message broadcast before time , which is also considered as useless information. After sifting through the information, the UAV i has the HB of other UAVs in memory. The HB of k other UAVs is fused into a HB information matrix through the ID of UAVs, in which the unreceived HB of UAVs is empty.
In a network of
N UAVs, the
ith UAV will receive HB messages
from other UAVs. In order to ensure the performance of obstacle avoidance, UAV
i needs to check and update the HB from other UAVs in every communication cycle. If the HB
of the
ith UAV contains the HB of other
k UAVs, check the HB
of the first UAV and determine whether it contains the latest HB through GPS time, extract the latest HB and store it in the HB
of the
ith UAV. If the HB of the
kth UAV contained in
is empty or not the HB under the latest GPS time
T, check the HB of the next UAV. Repeat the above process until the HB of other
k UAVs contained in the HB of the
ith UAV is updated. After several cycles, the latest HB needed for obstacle avoidance will be stored in the MessageBox of each UAV. The above steps are achieved through Algorithm 1, and
represents the HB message of the
jth UAV in the
ith UAV.
Algorithm 1 Information completion algorithm |
- 1:
Input: HB of UAV - 2:
, ; - 3:
for to total UAVs do - 4:
if then - 5:
tem = 0 - 6:
for to total UAVs do - 7:
if GPS T of - 8:
then - 9:
store HB[h*total_UAV_Num + j] - 10:
information - 11:
tem = GPS T of HB[h*total_UAV_Num - 12:
+ j] - 13:
end if - 14:
end for - 15:
end if - 16:
end for
|
We can represent the information update of the
ith UAV by:
where
represents the HB of the
jth UAV received by the
ith UAV.
is the weighting of the information fusion, indicating whether there is the latest information of the
kth UAV in the HB of the
jth UAV received in the
ith UAV, given as:
All possible HB received by UAV
from other UAVs can be obtained by Equations (
1) and (
2), which is defined as
,
where
, and
It should be noted that since the UAV only updates and stores the effective obstacle avoidance information when other UAV
is in the obstacle avoidance range, because of the update result, only one number in the weighting set {
} is equal to 1, and others are equal to 0. Otherwise, all elements of the weighting are set 0. The weighting set function
denoted by:
Through the following proof, we can conclude that the information obtained by each UAV through multiple communications is convergent. In UAV communication Equations (
3) and (
4), when time
t tends to
∞:
It can be seen that information completion algorithm can be used to reduce information redundancy, and the weakly connected communication network can be processed through the protocol to realize the cooperation of multiple UAV systems.
3. Uav Obstacle Avoidance
3.1. Velocity Obstacle Method
VO is a common method for robots to avoid moving obstacles, and the detailed principle of VO method is described in [
13], which has the following characteristics:
It is a geometric constraint representation method to avoid obstacles;
It can be used to deal with collision avoidance problems of multiple dynamic obstacles;
Dynamic constraints and maneuvering constraints are considered.
VO can determine the track segment where there is an urgent threat from the distribution of surrounding obstacles perceived by the sensor. At the same time, VO can construct a VO cone according to the obtained speed and position information of the UAV and the intruder, and obtain the feasible velocity set of the UAV. The VO model is shown in
Figure 2.
In
Figure 2, A and B are two UAVs, their current position vectors are
and
, respectively, and their speed vectors are
and
, respectively. The VO cone of B to A can be defined by
The VO cone can be geometrically described as a cone with a vertex at , and represents a ray from in the direction of . If , A and B will collide at some point in the future. Therefore, if the speed of the UAV is within the area of the VO cone, the speed vector outside the area should be selected, so that the UAV can avoid the obstacle and continue moving.
3.2. Spline _VO Method to Avoid Obstacles
During the task execution, the UAV should detect the constantly changing environment around it in real time, perceive the speed and position of other UAVs and dynamic obstacles to make obstacle avoidance judgment, as shown in
Figure 3. There are two UAVs A and B at
and
with radii
and
, respectively. Generally, UAV A is simplified as a particle and UAV B is expanded into a circle with radius
in VO method.
As shown in
Figure 3, the velocity vector of UAV A is
, and that of UAV B is
. The speed of UAV B relative to UAV A is
. UAV B can be regarded as stationary, and UAV A moves relative to B at the speed of
. Assume that the velocity vectors of A and B do not change, and moving at a constant velocity. If the relative velocity is within the blue area, which is called the collision cone, then at some point in the future, UAV A and B will collide. Therefore, the core of the VO method is to determine the blue area.
Assume that the horizontal coordinate of UAV A at the current moment is (
,
), and the coordinate of UAV B is (
,
). Connect
and
, and draw tangent lines
and
to UAV B from point
.
is given by Equation (
8).
where
is the angle between the line OB and the
Y-axis, and
can get from the UAVs coordinates:
The obstacle avoidance angle
and
can be obtained through the above equations.
According to the VO method, the two UAVs A and B will collide if . Therefore, in order to avoid collision, it should be true that . At this point, the UAV selects the feasible speed and generates a new speed according to the lowest cost.
Considering the kinematic constraints of a UAV in the real world, the motion path of a UAV should be smooth. The B-spline curve is a powerful tool for path smoothing, which can generate the desired trajectory for different times and obstacle configurations. The basic principle of B-spline is as follows [
20].
where
n is the number of B-splines, so the cubic uniform B-spline can be written as:
Thus, the cubic uniform B-spline segment
can be described as
where
,
,
and
are historical locus points, current locus points, and next locus points, respectively.
In this paper, cubic B-spline and VO method are used to smooth the path while avoiding obstacles. For UAV, since the historical waypoints are known, and the information of obstacles in the local range can be obtained through the UAV sensor and communication,
is selected according to VO method first. Hence, one or more waypoints that the UAV is about to pass through can be estimated in real time through the UAV’s current position and
. Next, we use the historical trajectory points of the UAV, the trajectory points at the current moment, and the trajectory points at the next moment after the speed changes to generate a set of b-spline curves. Then, a series of curve points satisfying the cubic B-spline can be obtained by Equation (
15), and the path smoothness can be realized when the UAV avoids obstacles.
3.3. Irregular Static Obstacle Collision Avoidance
When encountering a circular obstacle, set
equal to 0. However, when encountering irregular static obstacles, it will cost more to uniformly set obstacles as circular ones. Therefore, the VO method is improved to avoid polygonal obstacles at a lower cost [
21]. Static polygons can generally be divided into two types: convex and non-convex, while a non-convex polygon can be considered to consist of several convex polygons. Therefore, the key to avoid irregular static obstacles is how to avoid convex polygon obstacles.
When the sensor carried by the UAV detects an obstacle, the detected part will be constructed with a convex polygon. When the
m vertices (
,
), (
,
)…, (
,
) of the obstacle are detected, a convex polygon with the centroid denoted as (
,
) is constructed. Their values are calculated by the following formula:
where
S represents the area of the constructed convex polygon, which can be obtained from Equation (
17).
As shown in
Figure 4, two half spaces can be formed by connecting the position
of the UAV with the centroid
of the polygon. From the angle collected in each half space, we can obtain a maximum angle, thus forming the collision cone of polygon. If the UAV’s speed is selected from outside the collision cone, the obstacles will be avoided.
3.4. Cooperative Obstacle Avoidance Algorithm for Multiple UAVs
In this paper, communication between multiple UAVs is firstly achieved through information completion algorithm, and then smooth obstacle avoidance is achieved by Spline_VO method. Specific steps to realize cooperative obstacle avoidance algorithm of multiple UAVs are shown in
Figure 5.
In this paper, is determined by the vector of the current pathpoint and the target point, and is constrained by the maximum velocity and acceleration. When the new speed is selected using the Spline_VO method, the speed with the least deviation from the is selected based on the feasible speed set. Then, the is sent to the UAV’s flight control board to update its position.
4. Simulation Results
In order to verify the effectiveness of our proposed cooperative obstacle avoidance algorithm, we use the communication and obstacle avoidance methods described in this paper to give the simulation results of cooperative obstacle avoidance flight of multiple UAVs, and give the comparison of the simulation results of UAV flight path before and after using B-spline to do path smoothing.
The experimental environment has a circular obstacle and a rectangle (convex polygon). In order to fully test the UAV’s obstacle avoidance performance, a simulation algorithm space with size 300 m × 300 m is set, where the algorithm parameters are
= 5 m/s,
= 10 m,
= 80 m and
= 30 m.
represents the maximum flight speed of a UAV,
is the safe flight distance between a UAV and obstacles,
is the maximum communication range of a UAV, and
represents the flight altitude of all UAVs. The starting and ending points of the UAV group in the horizontal axis are presented in
Table 2.
In the case of the same simulation parameters, the information completion algorithm proposed in this paper is used to compare the communication of multiple UAVs with the direct UDP communication and search algorithm. Three path diagrams were generated showing the situation of five UAVs using different communication methods to avoid each other and reach the target point. In addition, after 10 simulation tests, the total time of 5 UAVs arriving at the target point is counted, and the total time of arriving at the target point is the average of 10 experiments.
According to the comparison of paths generated by different communication methods in
Figure 6 and the comparison of data in
Table 3, it can be seen that the information completion algorithm filters useless heartbeat information and stores the latest heartbeat information more effectively, which improves the communication speed and accuracy of UAVs, thus optimizing the obstacle avoidance path of UAVs and speeding up the arrival time of UAVs.
Figure 7 shows the result of each UAV’s obstacle avoidance performance through cooperative communication and Spline_VO method, and the obstacle avoidance path of multiple UAVs is generated.
Figure 8 shows the flying speed of five UAVs.
Figure 9 is the horizontal distance profile between UAV
i and UAV
j.
As can be seen from
Figure 7,
Figure 8 and
Figure 9, a collision-free path of a multiple UAVs can be generated by using the proposed cooperative obstacle avoidance algorithm, and the distance between UAVs is greater than the safe flight distance. Therefore, we can claim that the cooperative obstacle avoidance method we put forward is effective.
However, the trajectory of single UAV in obstacle avoidance has problems of too large turning angle and uneven path, so the spline_VO method is introduced to solve these problems. To show the effect of the spline_VO method smoothing the path, we zoomed in on the flight paths of two UAVs, and plotted
Figure 10.
Figure 10a shows the simulation part of UAV’s path before smoothing, and
Figure 10b shows the simulation part of UAV’s path after smoothing.
According to the comparison between
Figure 10a,b, the Spline_VO method does solve the problems that UAV’s turning angle is too large and the path of UAV is not smooth.