Next Article in Journal
Two-Stage Multiarmed Bandit for Reconfigurable Intelligent Surface Aided Millimeter Wave Communications
Next Article in Special Issue
A Local Planner for Accurate Positioning for a Multiple Steer-and-Drive Unit Vehicle Using Non-Linear Optimization
Previous Article in Journal
Combined Use of Cointegration Analysis and Robust Outlier Statistics to Improve Damage Detection in Real-World Structures
Previous Article in Special Issue
Bernstein Polynomial-Based Method for Solving Optimal Trajectory Generation Problems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Chemical Spill Encircling Using a Quadrotor and Autonomous Surface Vehicles: A Distributed Cooperative Approach

Laboratory of Robotics and Systems in Engineering and Science (LARSyS), Instituto Superior Técnico, University of Lisbon, 1049-001 Lisboa, Portugal
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(6), 2178; https://doi.org/10.3390/s22062178
Submission received: 4 February 2022 / Revised: 3 March 2022 / Accepted: 7 March 2022 / Published: 10 March 2022

Abstract

:
This article addresses the problem of formation control of a quadrotor and one (or more) marine vehicles operating at the surface of the water with the end goal of encircling the boundary of a chemical spill, enabling such vehicles to carry and release chemical dispersants used during ocean cleanup missions to break up oil molecules. Firstly, the mathematical models of the Medusa class of marine robots and quadrotor aircrafts are introduced, followed by the design of single vehicle motion controllers that allow these vehicles to follow a parameterised path individually using Lyapunov-based techniques. At a second stage, a distributed controller using event-triggered communications is introduced, enabling the vehicles to perform cooperative path following missions according to a pre-defined geometric formation. In the next step, a real-time path planning algorithm is developed that makes use of a camera sensor, installed on-board the quadrotor. This sensor enables the detection in the image of which pixels encode parts of a chemical spill boundary and use them to generate and update, in real time, a set of smooth B-spline-based paths for all the vehicles to follow cooperatively. The performance of the complete system is evaluated by resorting to 3-D simulation software, making it possible to visually simulate a chemical spill. Results from real water trials are also provided for parts of the system, where two Medusa vehicles are required to perform a static lawn-mowing path following mission cooperatively at the surface of the water.

1. Introduction

The problems of perimeter detection, boundary searching, and encircling have been widely researched topics with a variety of practical applications, ranging from the monitoring of wildfire spread in forests [1], to the control and encircling of oil spills [2] and harmful invasive algae blooms [3] at the surface of the ocean. In this paper, we will focus on the problem of chemical spill encircling.
The two main phenomena that contribute to the transportation and spread of hazardous chemicals over water, such as oil, are advection and diffusion. In the first, the chemical is transported due to the flow of water, while the second refers to the motion of the fluid caused by the existence of concentration gradients. One way of modelling the flow field of the incompressible fluid is by solving iteratively the convection–diffusion equations [4]. In the literature, many works address the problem of dynamic boundary tracking at the surface of the ocean by proposing control schemes which require (at least one) surface vessel to measure the concentration gradient of a hazardous contaminant. These measurements of the chemical plume are used by potential field controllers with the end goal of steering the robots to the boundary of the plume [5,6]. A completely different approach, adopted by Saldaña et al. [7], is to consider that a general environmental boundary can be approximated by a closed curve that is slowly varying over time and that can be described by a general parametric equation. In his research, the author proposes a model for the curve described spatially by a truncated Fourier series that changes its shape smoothly over time. To achieve this, it is assumed that a team of Autonomous Surface Vehicles (ASVs) are distributed equally around the chemical spill, and every vehicle is capable of taking local measurements of the boundary as it moves around it. These local measurements are then used to update the shape of the closed curve using recursive least squares. Although this is a very general solution to the problem, it can be argued that the use of a truncated Fourier series to represent a path for underactuated vehicles to follow is a rather poor choice of function, as the resulting curve can self-intersect and exhibit substantial oscillations. Moreover, it does not take into consideration the physical constraints imposed by the vehicles. In order to lift the limitations imposed by this method, more stable parametric curves could be considered, such as Bernstein polynomials or B-splines [8].
In recent years, there has been a massive development of and demand for Autonomous Underwater Vehicles (AUVs), due not only to their agility when it comes to the execution of scientific and comercial missions, but also to their low cost when compared to traditional ships, which require an on-board crew to be operated. Additionally, there has also been an exponential growth in demand for Unmanned Aerial Vehicles (UAVs), with a special emphasis on multirotor systems, which usually offer high-quality camera sensors at low market prices. Aerial vehicles can have a top-down view of the environment, making them the tool par excellence for surveillance and maintenance missions. On the other hand, AUVs and ASVs can be used to carry and release chemical dispersants used in cleanup missions to break oil molecules [9]. Together, these unmanned vehicles have huge potential to automate and reduce the cost of ocean cleanup operations.
In this paper, we address the problem of chemical spill encircling and focus on the development of a set of control and path planning tools that allow a team of robots constituted of a quadrotor (equipped with an onboard camera) and ASVs to detect and encircle the dynamical boundary of a chemical spill closely, as depicted in Figure 1. In our proposal, the quadrotor is responsible for detecting in real time the boundary of a chemical spill in the image stream produced by its onboard camera, and producing a path that itself and one or more ASVs are required to follow cooperatively. To achieve this, we start by proposing a set of single-vehicle motion control laws based on non-linear Lyapunov techniques that allow individual ASVs to follow a pre-defined parametric curve, based on previous works by Aguiar et al. [10,11,12]. These control techniques are then extended to the case of quadrotor vehicles. Borrowing from the work of N. Hung and F. Rego [13], a distributed controller using event-triggered communications is presented, allowing the vehicles to perform Cooperative Path Following (CPF) missions, according to a pre-defined geometric formation. Finally, a new real-time path planning framework that uses growing unclamped (and uniform) cubic B-splines is proposed, which fits a 2-D point cloud generated from the drone’s image stream.
A set of real experiments are performed with the Medusa class of marine vehicles [14] (property of ISR-DSOR) to access the real-life performance of the proposed path following and CPF algorithms. Additionally, the complete path planning solution is evaluated by resorting to the Gazebo 3-D simulator, PX4-SITL [15], and UUVSimulator [16], using a dynamic model of a Medusa vehicle and an Iris quadrotor equipped with a virtual RGB camera.

2. Preliminaries

2.1. Notation

The unit vector e 3 is defined as e 3 = [ 0 , 0 , 1 ] T . For a vector x R n , the symbol x i denotes the ith element of the vector. We shall use x = x T x to denote the Euclidean norm of a vector. The notation K 0 is used to denote a matrix K R n × n that is positive semi-definite. The symbol I is used to denote the identity matrix and 1 is a vector with all elements equal to one. The symbols x , x R denote the x nearest integer, x denotes the floor of x, and x denotes the ceiling of x. The symbol R ( . ) is used to denote a rotation matrix with properties R T = R 1 and d e t ( R ) = 1 . The map S ( · ) : R n R n × n , n = 2 , 3 yields a skew-symmetric matrix S ( x ) y = x × y , x , y R n . When considering an estimator for an unknown variable x, we use the hat nomenclature x ^ to denote its estimate and x ^ when referring to the estimation error.

2.2. Graph Theory

A weighted digraph G = G ( V , E , A ) consists of a set of N vertices V = [ V 1 , . . . , V N ] T , a set of directed edges E V × V , and a weighted adjacency matrix A = [ a i j ] R N × N , such that a i j > 0 if the edge that connects vertex i to j belongs to the graph, and 0 otherwise. The set of in-neighbours of a vertex i is given by N i i n = { j V : ( j , i ) E } , and the set of out-neighbours by N i o u t = { j V : ( i , j ) E } . The in- and out-degree matrices D i n and D o u t are a set of diagonal matrices defined by:
D i n / o u t = d i a g ( d i i n / o u t ) , with d i i n = j N i i n a i j and d i o u t = j N i o u t a j i .
A graph G is undirected if communication links are unidirectional. If G is an undirected graph, then G is also balanced, i.e., D i n = D o u t : = D , and its Laplacian matrix L is symmetric, positive semi-definite, and defined according to L : = ( D A ) . In these conditions, it is well known that L has a simple eigenvalue at zero associated with eigen vector 1 , with the remaining eigen values being positive. Moreover, L 1 = 0 .
Remark: With the graph definition given above, we adopt the convention that an agent i can receive information from its neighbors in N i i n and send information to its neighbors in N i o u t .

2.3. Uniform B-Spline Curves

A 2-D B-spline curve of degree k + 1 in R 2 is a piecewise polynomial function formed by several components of degree k, defined as:
C ( γ ) = i = 0 n B i , k ( γ ) P i ,
where P = { P i R 2 , i = 0 , . . . , n } are a set of control points and B i , k ( γ ) are the B-spline basis functions. It follows from the Cox–De Boor’s recursive algorithm, according to L. Piegl and W. Tiller ([8], Chapter 2.2), that:
B i , 0 ( γ ) = 1 , if γ i γ γ i + 1 0 , otherwise ,
B i , j ( γ ) = γ γ i γ i + j γ i B i , j 1 ( γ ) + γ i + j + 1 γ γ i + j + 1 γ i + 1 B i + 1 , j 1 ( γ ) ,
where the index j = 0 , . . . , k and the values γ i belong to the m-dimensional knot vector U = { γ i } i = 0 m , with the number of knots related to the degree of the curve and the number of control points by m = k + 1 + n .
For the particular case of 2-D, uniform, non-clamped cubic B-splines with n k + 1 segments, each segment’s x- and y-coordinates of the parametric curve can be described according to the vectorial notation [17] as follows:
C i ( γ ) : = C i x ( γ ) C i y ( γ ) T ,
with C i x ( γ ) and C i y ( γ ) computed according to:
C i x / y ( γ ) : = 1 6 ( γ i ) 3 ( γ i ) 2 ( γ i ) 1 1 3 3 1 3 6 3 0 3 0 3 0 1 4 1 0 B i , 3 ( γ ) B i + 1 , 3 ( γ ) B i + 2 , 3 ( γ ) B i + 3 , 3 ( γ ) P i x / y P i + 1 x / y P i + 2 x / y P i + 3 x / y ,
where γ [ 0 , n k + 1 ] and i : = γ , such that γ i [ 0 , 1 ] and each curve segment is only defined by four distinct control points. Defining a unidimensional vector with all control points P = [ P 0 x , . . . , P n x , P 0 y , . . . , P n y ] T R 2 ( n + 1 ) , where both x- and y-coordinates are concatenated, and a vector of distinct curve parameters γ = [ γ 0 , . . . , γ q ] R q + 1 at which we wish to evaluate our curve, C ( γ ) R 2 ( q + 1 ) is given by:
C ( γ ) = B ( γ ) · P ,
where B ( γ ) R 2 ( q + 1 ) × 2 ( n + 1 ) is a diagonal by blocks matrix, and for each line of B, only four basis functions are different then zero and computed according to (6).

3. Vehicle Modelling

Let { U } denote an inertial reference frame and { B } a body-fixed reference frame attached to the geometric center of mass of each vehicle, according to Figure 2.

3.1. ASV Model

The ASV vehicle is modeled as a rigid body whose motion is restricted to a 2-D plane at the surface of the water, such that the roll and pitch angles are zero, i.e., ϕ = θ = 0 . Let the kinematic equations of the vehicle be given by:
x ˙ y ˙ p ˙ = c o s ( ψ ) s i n ( ψ ) s i n ( ψ ) c o s ( ψ ) B U R ( ψ ) u v v + v c x v c y v c ,
ψ ˙ = r ,
where p : = [ x , y ] T denotes the ASV position expressed in { U } , v : = [ u , v ] T denotes the body-velocity vector, B U R ( ψ ) R 2 × 2 denotes the rotation matrix, and v : = [ v c x , v c y ] T denotes the ocean current, expressed in { U } and assumed to be constant, irrotational, and bounded. The ASV model is considered to be underactuated, with the input of the system being given by u = [ u , r ] T R 2 .

3.2. Quadrotor Model

The kinematic equations that describe the motion of a rigid body in 3-D space can be described by a double integrator model, according to:
p ¨ : = g e 3 1 m B U R ( θ ) T e 3 u + d ,
where p : = [ x , y , z ] T denotes the quadrotor’s position expressed in { U } , θ : = [ ϕ , θ , ψ ] T denotes the orientation vector of { B } expressed in { U } , and u R 3 can be regarded as the input of the system, comprising both the attitude of the vehicle and the total thrust T. The vector d R 3 represents unmeasured external disturbances, such as wind, acting on the vehicle, assumed to be constant and bounded such that d d m a x . The 3-D rotation matrix adopted for the quadrotor model follows the Z-Y-X convention, and is given by:
B U R ( θ ) = R z ( ψ ) R y ( θ ) R x ( ϕ ) .

4. Path Following

The path following (PF) problem concerns the problem of making a vehicle move along a desired path p d ( γ ) parameterised by a variable γ (for example, the arc-length of the curve). The key idea is that each vehicle must approach a virtual target that moves along the path with a desired speed profile v d ( γ ) , according to Figure 3. Since the end goal is to have more than one vehicle performing path following with a pre-defined inter-vehicle formation, this speed profile is given as the sum of another single-vehicle speed profile and an inter-vehicle coordination term, according to:
v d ( γ ) : = v L ( γ ) + v c o o r d , with | v L ( γ ) | v L m a x ,
where v L ( γ ) is a desired speed profile defined only as a function of the path, v L m a x is a pre-defined speed upper-bound, and v c o o r d is the speed coordination term that will be used in Section 5 to enable the CPF behaviour. It is important to notice that the desired speed profile v L ( γ ) should be the same for all the vehicles, enabling them to follow a given path at the same rate. On the other hand, the speed coordination term v c o o r d will not be the same for all vehicles and will be used to adjust the progression speed of each individual robot based on how aligned they are with each other.
Remark 1.
Speed profile v d ( γ ) might not correspond directly to an inertial speed, especially if the curve is not parameterised in terms of the arc-length. Nonetheless, a relation between the inertial speed and the desired speed profile is addressed in detail in Section 6.4.
Problem 1.
Given a generic vehicle (ASV or quadrotor), consider the geometric path p d ( γ ) : [ 0 , ] R 2 / R 3 for the ASV/quadrotor respectively, parameterised by a continuous variable γ R and v d ( γ , t ) R a desired speed profile for a virtual target moving along the desired path. Furthermore, consider p d ( γ ) to be C 2 and have its first and second derivatives with respect to γ bounded. Assume the vehicle is equipped with inner-loop controllers allowing it to track a desired control reference u d R 2 / R 3 , assumed to be bounded, by recruiting the appropriate forces and torques to apply to the vehicle. Design a feedback control law for the system input u d and virtual target γ ¨ such that:
  • the vehicle’s position converges to a tube around the desired position that can be made arbitrarily small, i.e., p ( t ) p d ( γ ) converges to a neighbourhood of the origin;
  • the speed of the virtual target moving along the path converges to the desired speed profile, i.e., | γ ˙ v d ( γ , t ) | 0 as t .

4.1. ASV Path Following

Following the approach proposed by Aguiar et al. [10,11,12], consider the global diffeomorphic coordinate transformation which expresses the position error defined in the body-frame of the vehicle { B } as:
e p ( t ) : = U B R ( ψ ) ( p ( t ) p d ( γ ) ) ,
and let the speed-tracking error be defined as:
e γ : = γ ˙ v d ( γ , t ) .
With these definitions, the body-fixed position error dynamics are given by:
e ˙ p ( t ) = U B R ˙ ( ψ ) ( p ( t ) p d ( γ ) ) + U B R ( ψ ) ( p ˙ ( t ) p ˙ d ( γ ) ) .
We recall that the derivative of a rotation matrix can be expressed as the product of a skew-symmetric matrix with the transposed rotation matrix, that is:
U B R ˙ ( ψ ) = S ( r ) U B R ( ψ ) .
Replacing (16) in (15) yields the position error dynamics expressed in the body-fixed frame as:
e ˙ p ( t ) = S ( r ) U B R ( ψ ) ( p ( t ) p d ( γ ) ) e p ( t ) + v + U B R ( ψ ) v c v c U B R ( ψ ) p d ( γ ) γ γ ˙ .
Since there is no direct control in the sway motion, the goal is to generate surge speed and heading rate control references. Therefore, we must make these references appear explicitly in the error expression. By introducing an offset δ = [ 0 , δ ] T R 2 (with δ < 0 ) in the standard position error, it is possible to re-write (17) as:
e ˙ p ( t ) = S ( r ) ( e p δ ) + 1 0 0 δ Δ u r u + 0 v + v c U B R ( ψ ) p d ( γ ) γ γ ˙ .
Consider that each ASV is equipped with a Doppler Velocity Logger (DVL) capable of providing the vehicle’s relative velocity with respect to the water v , expressed in { B } , and a Global Positioning System (GPS) unit which provides measurements of the position of the vehicle p , expressed in { U } . To estimate the ocean current, Pascoal et al. [18] and Sanches et al. [19] propose the use of a complementary filter. Consider the process model given by (8) and the candidate complementary filter model described by:
F : = p ^ ˙ = k 1 ( p p ^ ) + B U R ( ψ ) v + v ^ c v ^ ˙ c = k 2 ( p p ^ ) ,
with k 1 and k 2 positive constants. The proposed complementary filter is asymptotically stable. For a formal stability analysis of this complementary filter, refer to Pascoal et al. [18].
At this point, it is important to notice that the current velocity v c and the requested input u d that are to be applied to a vehicle’s kinematic model cannot be estimated and tracked, respectively, with infinite precision. For this reason, we define the current estimation error and the inner-loop tracking error given by:
v ˜ c : = v c v ^ c , u ˜ : = u u d .
Consider the Proposition 1 introduced below, in which a solution to Problem 1, applied to an ASV, is provided along with convergence guarantees in the presence of bounded estimation and tracking errors.
Proposition 1.
Consider the system described by the kinematics in (8), with the outer-loop control laws given by:
u d : = Δ 1 K p σ ( e p δ ) 0 v v ^ c + U B R ( ψ ) p d ( γ ) γ v d ( γ , t ) ,
γ ¨ : = k γ e γ + v ˙ d ( γ , t ) + ( e p δ ) T U B R ( ψ ) p d ( γ ) γ ,
where K p 0 , k γ > 0 , and σ ( e p ) = t a n h ( e p ) e p e p is a saturation function. The closed-loop system is input-to-state stable (ISS) with respect to Δ u ˜ + v ˜ c , and the proposed control law solves Problem 1 for the ASV vehicle.
Proof. 
Appendix A.    □

4.2. Quadrotor Path Following

Given that the quadrotor system is modelled by a double integrator in the inertial frame { U } , as stated in (10), consider the position and velocity errors defined in { U } as:
e p : = p ( t ) p d ( γ ) ,
e v : = p ˙ p d γ v d ( γ , t ) ,
and a virtual target speed tracking error defined by (14). Consider also a new auxiliary error z , defined as:
z : = e v + K 1 e p ,
where K 1 0 is a gain matrix. The position and velocity error dynamics can be written as:
e ˙ p = p ˙ p d γ γ ˙ ,
e ˙ v = p ¨ d d t p d γ v d ( γ , t ) .
Furthermore, consider the time derivative introduced in (27), the desired virtual target speed function (12), and the virtual target speed tracking error function (14). Then, the time derivative term introduced in (27) can be expanded as:
d d t p d γ v d ( γ , t ) = 2 p d γ 2 v d ( γ , t ) + p d γ v L ( γ ) γ h ( γ ) ( e γ + v d ( γ , t ) ) + p d γ v ˙ c o o r d ( t ) .
Replacing (10) and (28) in (27) yields:
e ˙ v = u + d h ( γ ) ( e γ + v d ( γ , t ) ) p d γ v ˙ c o o r d ( t ) .
Unlike the case of the ASVs where current estimates are given by a complementary filter, in the case of a quadrotor, a different direction is taken towards estimating disturbances such as wind. According to Xie and Cabecinhas et al. [20,21], straightforward implementations of estimators can lead to windup and result in unbounded growth of an external disturbance estimate. To avoid such problems, Xie and Cabecinhas propose the use of a sufficiently smooth projection operator in the estimator design. Consider the disturbance observer given by:
d ^ ˙ : = K d Proj ( z , d ^ ) = z η 1 η 2 2 ( β 2 + 2 β d m a x ) n + 1 d m a x 2 d ^ ,
where K d denotes a diagonal gain matrix and:
η 1 = ( d ^ T d ^ d m a x 2 ) n + 1 , if ( d ^ T d ^ d m a x 2 ) > 0 0 , otherwise ,
and:
η 2 = d ^ T z + ( d ^ T z ) 2 + ς 2 ,
where ς , β > 0 are arbitrary constants. This projection operator, first proposed in Cai et al. [22], enjoys the useful properties:
d ˜ T P r o j ( z , d ^ ) d ˜ T z ,
and:
d ^ d m a x + β , t 0 .
Once again, consider the inner-loop tracking error and disturbance estimation error given by:
u ˜ : = u u d ,
d ˜ : = d d ^ .
Proposition 2.
Consider the system described by (10), the disturbance estimator dynamics given by (30), and the inner-loop tracking error given by (35). Furthermore, consider the control law given by:
u d : = d ^ + h ( γ ) v d ( γ , t ) + p d γ v ˙ c o o r d ( t ) e v K v e p K p ,
γ ¨ : = k γ e γ + v ˙ d ( γ , t ) + e p T p d γ + z T h ( γ ) + K 1 p d γ ,
where K p , K v 0 , and k γ is a positive gain. For sufficiently small initial position and velocity errors ( e p , e v ), and a sufficiently large separation between the time-scales of the inner and outer loop systems, it can be guaranteed that the system error converges to a neighbourhood of zero. The proposed control law solves Problem 1 for the quadrotor vehicle.
Remark 2.
In-depth and quantitative overall stability analysis can be conducted for the inner–outer loop control system, but this will be dependent directly on the type of inner loop adopted. This results from the fact that the desired accelerations u d must be decoupled in a set of desired thrust and attitude for the quadrotor to track. Given that this analysis is out of the scope of this work, we assume that the quadrotor is equipped with a generic inner loop that is capable of keeping the tracking error u ˜ small and bounded.
Proof. 
Appendix B.    □

5. Cooperative Path Following

In this section, the problem of CPF is addressed. The end goal is to have an algorithm that allows one quadrotor and multiple ASVs to perform a path following mission cooperatively, using a distributed architecture. The vehicles are required to execute their mission according to a fixed geometric configuration. To cope with limitations imposed by real environments where inter-vehicle communications are discrete, an Event-Triggered Communications (ETC) mechanism is adopted, based on previous work developed by A. Aguiar and A. Pascoal [23] and N. Hung and F. Rego [13].

Synchronisation Problem with Event-Triggered Communications

Consider a group of N R + \ { 1 } autonomous vehicles/agents in a network that can be described mathematically by a digraph G ( V , E , A ) , consisting of N vertices, a set of directed edges E V × V , where the edge ε i j represents the flow of information from agent i to agent j, and a weighted adjacency matrix A = [ a i j ] R N × N . Furthermore, each vehicle i is able to receive information from its neighbours in N i i n and send information to its neighbours in N i o u t , i.e., G is undirected. Moreover, consider that the communication topology of the vehicles is fixed; hence, the Laplacian L associated to G is constant. Let the state vector of the system be composed by the path parameter of each individual vehicle γ = [ γ 1 , . . . , γ N ] T . In addition, each vehicle is equipped with the PF controllers proposed in Section 4, and has an assigned path to follow, appropriately parameterised in order to ensure that a given desired formation between the vehicles is met. The CPF problem consists in designing a distributed control scheme that adjusts the speed of the vehicles such that all path parameters γ reach a consensus. Consider the problem formulation below.
Problem 2.
For each agent i, with i = 1 , . . . , N , derive a consensus protocol for the speed correction term v coord = [ v 1 c o o r d , . . . , v N c o o r d ] T , such that lim t | γ i γ j | = 0 , j N i i n , and the formation of vehicles achieves the desired speed assignment v L ( γ ) = [ v L 1 , . . . , v L N ] T as t .
Note that, according to the previously developed (PF) controllers, for each vehicle i, | γ ˙ i v d ( γ , t ) | = 0 is only guaranteed as t , as the controlled variable is γ ¨ i and not γ ˙ i . Having this fact in mind, and assuming that the vehicles have already converged to their desired paths, i.e., e p 0 (and e v 0 in the case of the quadrotor), then the following simplifying assumption can be made:
Assumption 1.
The speed progression of all the virtual targets along the desired path is always assumed to be modelled by a single integrator system, which can be expressed in vectorial form as:
γ ˙ = v d ( γ , t ) = v L ( γ ) + v coord .
Let the synchronisation error vector be defined as ε = [ ε 1 , . . . , ε N ] T where, for each i:
ε i : = j N i i n a i j ( γ i γ j ) ,
with a i j elements of the weighted adjacency matrix that describes the vehicle network. This error can also be expressed in vectorial form as:
ε : = L γ ,
where ε i denotes the coordination error between vehicle i and its neighbours. With the above notation, the coordination error dynamics of the multi-vehicle system are given by:
ε ˙ : = L γ ˙ .
In the work of N. Hung and F. Rego [13], the authors propose a scheme where each agent i has a set of estimators γ ^ j , j N i i n for the true state of each in-neighbour virtual target γ j . In addition, each agent i has an estimator for its own state γ ^ i , which is reset whenever vehicle i broadcasts its true state γ i . The other estimators are reset whenever agent i receives the true state from its in-neighbours j N i i n . In this work, a time-dependent broadcast condition is adopted.
Proposition 3.
Consider the distributed control law given by:
v i c o o r d : = k ε j N i i n a i j ( γ i γ ^ j ) ,
where k ε > 0 and γ ^ j is vehicle i’s estimate of vehicle j’s real virtual target value. Consider also that the bank of estimators that each vehicle i is running is described by the dynamics equation:
γ ^ ˙ i : = v L ( γ ^ i ) .
At any time instant t, under negligible transmission delays, the vehicle j’s self-state estimate γ ^ j is equal to vehicle i’s estimate of γ ^ j , which allows us to express the estimator dynamics using vectorial notation as:
γ ^ ˙ : = v L ( γ ^ ) ,
where γ ^ = [ γ ^ 1 , . . . , γ ^ N ] T is the self-estimate of the virtual target of each vehicle. Let γ ˜ = [ γ ˜ 1 , . . . , γ ˜ N ] T denote the local estimation errors of each vehicle, such that γ ˜ = γ γ ^ . Then, v coord can also be given in vectorial notation, according to:
v coord : = k ε [ D γ A γ ^ ] = k ε ( ε + A γ ˜ ) ,
where D is a diagonal matrix and A the graph adjacency matrix. Consider also a triggering function used to define when to broadcast the along-path position of the virtual target of each vehicle, defined as:
δ i ( t ) : = | γ ˜ i ( t ) | g i ( t ) γ ˜ i ( t ) = γ ^ i ( t ) γ i ( t ) ,
where γ ˜ i ( t ) is the local estimation error of agent i and g i ( t ) is a time-dependent threshold function, such that if the estimation error exceeds this threshold, i.e., δ i ( t ) 0 , vehicle i broadcasts its state to the out-neighbours N i o u t and resets its local estimator. Furthermore, consider g i ( t ) to belong to a class of non-negative functions, given by:
g i ( t ) = c i + b i e α i t ,
with c i , b i and α i being positive constants and g ( t ) = [ g 1 , . . . , g N ] T being the collection of functions g i for each individual vehicle i. Consider also that v L ( γ ) = v L 1 + v ˜ L , where v ˜ L is a bounded and arbitrarily small term that accounts for a transient period in which the vehicles are on different sections of the path, with slightly different desired speed profiles. Then, under Assumption 1, the system is ISS with respect to the error vector ε and the inputs γ ˜ and v ˜ L .
Proof. 
Appendix C.    □
The proposed control scheme used for achieving CPF using ETC is summarised in Algorithm 1.
Algorithm 1 Event-Triggered Communication for vehicle i (adapted from [24]).
1:
At every time instant t, each vehicle i follows the procedure:
2:
procedure Coordination and Communication
3:
    if  δ i ( t ) 0 where δ i is computed using (47) and (48) then
4:
        Broadcast γ i ( t ) ;
5:
        Reset the estimator γ ^ i ;
6:
    if Receive a new message from agent j N i i n  then
7:
        Reset γ ^ j ( t ) ;
8:
    Run the estimators according to (44);
9:
    Update the first order control protocol u i using (43).
Given the general distributed control scheme, we now elaborate and address a specific formation, in the context of this work, in the sections that follow.

6. Path Planning

This section addresses the problem of generating a set of smooth and planar reference paths for each individual vehicle to follow, with the end goal of encircling the boundary of a chemical spill. In order to make the vehicles follow the dynamic boundary according to a pre-defined formation (such as a triangle) multiple paths should be generated from one reference path that encodes the boundary. Borrowing from the work of Saldaña et al. [7], we start by presenting a rigorous mathematical definition of a dynamic boundary below.
Definition 1.
A dynamic boundary is a set of planar points Ω t , such that z Ω t , and for any ξ > 0 , the open disk centered at point z with radius ξ contains points of Ω t and its complement set Ω t C . Moreover, the dynamic boundary can be approximated by a parametric closed curve (Jordan curve) C ( γ , t ) : [ 0 , ] × [ 0 , ] R 2 , mapped by a parameter γ R 0 + and time t R 0 + . The curve is continuous with no self-intersecting points, and changes smoothly with respect to both time t and parameter γ, as depicted in Figure 4a.
Since the chemical spill boundary is assumed to be dynamic, a path planning problem can be formulated in which a quadrotor is actively re-planning the path that the ASVs should follow at the water surface, as the group of vehicles moves along it and more up-to-date data is acquired by the quadrotor’s vision system. Consider, therefore, Problem 3.
Problem 3.
Consider a quadrotor flying over a body of water at a pre-defined fixed altitude, equipped with a camera sensor pointing downwards with a fixed pitch angle relative to the vehicle’s body reference frame { B } . Consider also that the vehicle is capable of detecting the boundary of a chemical spill in the 2-D image provided by the camera sensor. Furthermore, one or more ASVs at the surface of the water are required to follow a path dictated by the quadrotor, according to a pre-defined vehicle formation. As the quadrotor detects the dynamic boundary in the image:
1
use the data provided by its navigation system to convert the pixels to a 2-D point cloud expressed in the inertial frame { U } ;
2
remove outliers and perform pre-processing on the 2-D point cloud;
3
generate a smooth and planar reference path by formulating an online optimisation problem that fits the data with open uniform B-splines;
4
send the updated path to the vehicle network;
5
make each vehicle generate an unique path for itself, capturing the pre-defined vehicle formation;
6
repeat the process.
In order to solve Problem 3, a few simplifying assumptions are made:
Assumption 2.
The dynamic boundary is located at the ocean’s surface, assumed to be a 2-D plane at Z U = 0 in the inertial frame of reference { U } .
Assumption 3.
The quadrotor has a navigation system that can track the vehicle’s pose with good accuracy.
Assumption 4.
The quadrotor has a limited field of view of the environment, i.e, the camera sensor might not be able to capture the entire chemical spill boundary, but rather sections of it, according to Figure 4b.
Assumption 5.
The detection of the pixels that encode the boundary in the image frame is a sub-system that is assumed to be already available, such as the one proposed in [25].

6.1. Planar Point Cloud Generation

The camera model adopted is characterised by: (i) a set of extrinsic parameters, which model the conversion between coordinates expressed in the world/inertial reference frame { U } and the camera reference frame { C } ; (ii) intrinsic parameters which describe how a set of points in { C } are represented in the image frame, according to Figure 5.
The intrinsic parameters consist of the focal distance f d , the scale factors ( s x , s y ) in the X- and Y-axis, respectively, and ( c x , c y ), which corresponds to the offset of the focal point in the image plane. These parameters can be obtained a priori by resorting to a camera calibration process, described in detail in [26]. Combining the matrices of intrinsic parameters K, also known as the full-rank calibration matrix, and the matrix of external parameters U C [ R | T ] , and expressing the inertial frame coordinates as homogeneous coordinates, the transformation between inertial frame and camera plane is described by:
λ x y 1 = f d s x 0 c x 0 f d s y c y 0 0 1 1 0 0 0 0 1 0 0 0 0 1 0 K U C R U C T 0 1 × 3 1 U C [ R | T ] X U Y U Z U 1 ,
where x and y denote the coordinates in the image frame and λ is a scale factor. It is important to mention that U C [ R | T ] results from a series of successive rigid-body transformations (rotations and translations) given by:
U C [ R | T ] = B C [ R | T ] U B [ R | T ] ,
where U B [ R | T ] denotes the conversion of coordinates expressed in the inertial frame { U } to the quadrotor’s body frame { B } , provided by its navigation system, and B C [ R | T ] is a matrix known a priori, as the camera attached to the vehicle is assumed to be fixed. The intrinsic and extrinsic parameters can be aggregated in a matrix Ω according to:
Ω = K · U C [ R | T ] .
In order to convert a given set of pixels ( x , y ) that encode the chemical spill boundary in the image frame to a point cloud expressed in the inertial frame, depth information about the scene is required. Taking into consideration Assumption 2, all the points in the inertial frame will lie on the plane described by Z U = 0 , which solves the depth requirement. Moreover, from Assumption 3, it can be concluded that the linear system of Equation (49) is well defined and can be inverted such that for each pixel representing the boundary of the chemical spill, X U and Y U are extracted from:
1 λ X U Y U 1 = Ω 1 Ω 2 Ω 4 Ω 5 Ω 6 Ω 8 Ω 9 Ω 10 Ω 12 1 x y 1 .
Remark 3.
This methodology relies heavily on the assumption that the quadrotor has a good navigation system, since small estimation errors in the altitude of the vehicle can lead to errors of several meters in the generated point cloud.

6.2. Pre-Processing the Planar Point Cloud

Before using the 2-D point cloud to generate a path, it is important to pre-process the information provided in it. Consider, for instance, the example in Figure 6, where the quadrotor produces a 2-D point cloud, representing the boundary, at an arbitrary time-step t k . In the point cloud, some points represent the chemical spill boundary in a region that is close to the vehicle—the region of interest, i.e., where the main cluster of points is expected to be located (in region B). The separation between regions A and B is defined by drawing a normal to the path at the point where the re-planning starts (defined formally in Section 6.3.1). Some points are outliers as a result of either noisy measurements or regions of the boundary that are not entirely captured by the field of view of the camera. The latter can be seen as disconnected from the main cluster and should be disregarded in the path planning process. According to Figure 6, the original path (in purple) obtained at time t k 1 should be re-planned in order to obtain a new one (in red) that better fits the main cluster of points.
Unlike conventional motion planning problems, the main cluster of points does not have an explicit ordering, yielding a sequence of waypoints that the vehicle should visit sequentially in time—this information must be inferred. On the other hand, it is possible to define explicitly where the path re-planning process starts—at a point p s : = C ( γ s ) arbitrarily further ahead of the drone’s position on the current curve C ( γ ) , such that γ d r o n e γ s . Motivated by this example, and inspired by the work of Liu Y. et al. [27], the following pre-processing steps are introduced:
  • Remove unused points that are behind the point p s , i.e., points in region A;
  • Order the remaining set of points and remove outliers in region B.

6.2.1. Removing Unused Points

Consider p s R 2 to be the point at which the path re-planning starts. In order to remove the points that are in region A, consider that ψ s is the tangent angle to the current path at p s . A coordinate transformation can be applied to the 2-D point cloud X : = { X l } l = 1 L R 2 , such that in a new reference frame, points that are behind p s (in region A) have a negative X-coordinate. This coordinate transformation is given by:
X l = R ( ψ s ) · ( X l p s ) , l = 1 , . . . , L ,
where X l = [ X l x , X l y ] T . Each point X l is discarded if X l x < 0 . The points that belong to set X and are not discarded, and should be saved in a new set X : = { X j } j = 1 J R 2 with J L . The pseudo-code is shown in Algorithm 2.
Algorithm 2 Remove points “behind” the re-planning point.
1:
Obtain a new 2-D point cloud X : = { X l } l = 1 L R 2 ;
2:
Define p s as the desired initial point for the re-planning to start;
3:
Define ψ s as the tangent angle to the current path at t k at p s ;
4:
Follow the procedure:
5:
procedureRemove unused points( X , p s , ψ s )
6:
    for  l = 1 , . . . , L  do
7:
        Compute X l according to (53);
8:
        if  X l x < 0  then
9:
           Discard X l ;
10:
    return the new set X : = { X j } j = 1 J R 2 with J L .

6.2.2. Ordering a Set of Points and Removing Outliers

In order to avoid clustering outliers, reduce the point cloud to a curve-like shape, and extract some implicit ordering from the data, Lee I. [28] proposes an algorithm that seeks to extract a structure “as simple as possible” from the data, by resorting to an Euclidean Minimum Spanning Tree (EMST). Consider the unordered set of points X obtained previously and a graph G = ( V , E ) , such that V = { X j = ( x j , y j ) | j = 1 , . . . , J } and E = { ( X i , X j ) | i , j = 1 , . . . , J , i j } . The EMST is a tree that connects all points in G with the weight of its edges corresponding to the Euclidean distance between each pair of points, that can be computed according to the very popular Kruskal’s algorithm. In order to reduce the time complexity of this process, a threshold distance N J can be used to define whether each pair of points is connected and a KDTree [29] can be used to compute a sparse graph G where each point has a limited set of neighbours, as shown in Figure 7.
To remove outliers and define a coarse path to follow, Breadth First Search (BFS) can be applied to the EMST, starting from p s . This removal of outliers from the point cloud is crucial to avoid smaller clusters of points being considered later in the curve fitting problem. The resulting ordered list of points that forms the path with the highest number of points should be saved in a new ordered set X : = { X k } k = 1 K R 2 . The proposed steps are summarised in Algorithm 3.
Algorithm 3 Order a set of 2-D points.
1:
Add the desired initial point for the path p s to X ;
2:
Define a threshold distance for the neighbours N J ;
3:
Follow the procedure:
4:
procedureOrder Points( X , N J )
5:
    Construct a KDTree from X and use N J as a distance threshold;
6:
    Create a graph G with J vertices and no edges;
7:
    for  X j , j = 1 , . . . , J  do
8:
        Query the KDTree for the neighbours of X j and their euclidean distances;
9:
        Add the corresponding edges to the graph G ;
10:
    Compute the MST of the graph G starting from vertex corresponding to p s ;
11:
    Compute the path with the highest number of points, starting at p s using BFS;
12:
    return the new ordered set of points X : = { X k } k = 1 K R 2 .

6.3. Path Generation—Approximating the Point Cloud with a Parametric Curve

In order to have a suitable representation of a path that the proposed controllers can follow, it is a requirement to generate a curve that is smooth and at least C 2 . In order to fulfil this requirement, the ordered set of points produced previously can be approximated by non-clamped uniform cubic B-splines, composed of multiple spline segments, where each segment is paramaterised by γ [ 0 , 1 ) .

6.3.1. Define the Number of Segments to Use

Consider now the ordered sequence of K points obtained via the application of Algorithms 2 and 3 to the original 2-D point cloud. In order to fit the points with a parametric curve, we are required to attribute to each point X k R 2 a corresponding γ k in the target parametric curve. This problem could be formulated as a nonlinear optimisation problem—which is computationally demanding to solve for real-time applications. A non-optimal, but more efficient solution, proposed by Liu M. et al. [30] for Simultaneous Localisation and Mapping (SLAM) applications, is to consider D X to be the total distance between the points, given by:
D X : = k = 2 K X k X k 1 ,
and the corresponding vector of parametric values γ = [ γ 1 , . . . , γ k ] T to be given by:
γ 1 = 0 , γ k = γ k 1 + X k X k 1 D X γ m a x , k = 2 , . . . , K ,
where γ m a x is the maximum parameter value of the parametric curve. For cubic B-splines, this number depends directly on the number of control points N C that the target curve will have, such that γ m a x = N C 3 . The number of control points also dictates how many spline segments are used for the fitting problem. The optimal number of control points can be obtained by solving yet another nonlinear optimisation problem, but due to the real-time nature of the problem, this option is disregarded. Given that a uniform cubic B-spline must have at least four control points to define one segment, and that a low number of sections can under-fit a long set of points whilst a high number leads to over-fitting issues, this number should not be a static constant either. A non-optimal yet dynamic way of defining the number of control points N C is by taking:
N C : = m a x D X ρ , 4 ,
with ( 1 / ρ ) > 0 being a control point’s density (tunning parameter defined a priori). A smaller ρ leads to a higher N C . Applying this method to the previous example, and considering N C = 7 , γ m a x = γ 11 = 4 , the result in Figure 8 is obtained.

6.3.2. Fitting the Points with a Uniform Cubic B-Spline

For fitting the ordered set of points X with a non-clamped uniform cubic B-spline C ( γ , P ) , an optimisation problem is formulated. Consider the objective function given by:
f ( P ) : = k = 1 K C ( γ k , P ) X k 2 g o a l + F r ,
with:
F r = λ 0 γ m a x C ( γ , P ) γ 2 d γ + β 0 γ m a x 2 C ( γ , P ) γ 2 2 d γ regularisation term ,
where P = [ P 0 x , . . . , P N c 1 x , P 0 y , . . . , P N c 1 y ] T R 2 N c is the vector of control points that defines the target curve. The first term minimises the distance between the target B-spline curve and the set of points, whilst F r is a regularisation term and α , γ 0 are the regularisation variables. The integral of the L 2 2 norm of the first derivative penalises the total length of the curve, while the integral of the L 2 2 norm of the second derivative penalises bends in the path. This objective function can also be expressed using vector notation, according to:
f ( P ) = B ( γ ) P X 2 g o a l + λ P T R 1 P + β P T R 2 P regularisation term ,
where X = [ X 1 x , . . . , X K x , X 1 y , . . . , X K y ] denotes the points to fit, and R 1 , R 2 are constant matrices that can be computed numerically (see Appendix D).
In order to define the new path, it would not suffice to discard the previously planned curve defined after γ s and minimise the objective function with respect to the control points. To guarantee C 2 continuity between the previous path and the newly planned one, linear equality constraints should be imposed on the values of C n e w ( 0 ) , C n e w ( 0 ) , and C n e w ( 0 ) of the new curve. Moreover, it is a requirement to save the old curve up to γ s , as it may still be in use by other vehicles in the network.
Consider the re-planning point p s introduced previously, chosen such that it corresponds to the transition between the spline segment that the virtual target of the drone is “sitting on”, and the next segment, according to:
p s = C o l d ( γ s ) with γ s = γ d r o n e ,
where γ d r o n e corresponds to the quadrotor’s virtual target at time instant t k . With this choice of γ s , it is possible to take advantage of the local support property of B-splines and simplify the equality constraints of the problem, while at the same time simplifying the storage of the curves in memory.
Considering that p s is dictated by (60), the old curve segments that are described by parametric values such as γ γ s should be discarded and replaced by a newer curve. Since each curve segment is defined by only four control points, discarding those segments is equivalent to removing control points with indexes i γ s + 3 from the old control points vector. This operation results in a vector given by:
P o l d = [ P 0 x , P 1 x , . . . , P γ s x , P γ s + 1 x , P γ s + 2 x , P 0 y , P 1 y , . . . , P γ s y , P γ s + 1 y , P γ s + 2 y ] T .
For the particular example in Figure 9, spline 1 (in green) should be discarded given that γ d r o n e [ 0 , 1 ) ; hence, γ s = 1 and spline 0 are kept. To achieve this, all the control points with indexes i 1 + 3 should be removed from the control points vector P o l d , i.e., P 4 = ( P 4 x , P 4 y ) .
Making use of the local support property once more, it is known that C 2 continuity between two consecutive cubic spline segments is guaranteed, as long as the last three control points of the first segment coincide with the first three control points of the second segment. A trivial way of generating a new B-spline with guarantees of C 2 continuity in the transition with the old curve, without explicitly defining equality constraints on the derivatives of the function, is to solve the following optimisation problem:
P n e w = argmin P n e w f ( P n e w ) subject to P 0 x n e w P 1 x n e w P 2 x n e w P 0 y n e w P 1 y n e w P 2 y n e w = P γ s x P γ s + 1 x P γ s + 2 x P γ s y P γ s + 1 y P γ s + 2 y ,
where P n e w = [ P 0 x n e w , . . . , P N C 1 x n e w , P 0 y n e w , . . . , P N C 1 y n e w ] T is a new control points vector.
To keep track of old and new curves, it is possible to concatenate only the new control points vector P n e w with the old control points vector P o l d , ignoring the first three control points, i.e., P 0 n e w , P 1 n e w , and P 2 n e w , which are repeated as a result of the equality constraints imposed by (62). Applying this methodology to the previous example, the final control points vector is given according to Figure 10.
These series of procedures are summarised in Algorithm 4. For the sake of simplicity, the separation between the X- and Y-coordinates of the control points was omitted.
Algorithm 4 Fitting the points—growing a uniform cubic B-spline
1:
Compute D X , γ and N C according to Equations (54), (55), and (56), respectively;
2:
Consider γ s = γ t k and the original control points vector:
P = P 0 , P 1 , . . . , P γ s , P γ s + 1 , P γ s + 2 , P γ s + 3 , P γ s + 4 . . . , P n T ;
3:
Remove control points (corresponding to splines to be re-planned) from the original control points vector, such that:
P o l d = P 0 , P 1 , . . . , P γ s , P γ s + 1 , P γ s + 2 T ;
4:
Solve the optimisation problem in (62) and obtain a new vector with N C control points:
P n e w = P 0 n e w , P 1 n e w , P 2 n e w , . . . , P N C 1 n e w T , with P 0 n e w = P γ s , P 1 n e w = P γ s + 1 , P 2 n e w = P γ s + 2 ;
5:
Concatenate the new vector with the old vector (ignoring the first three control points, which are repeated):
P f i n a l = P 0 , P 1 , . . . , P γ s , P γ s + 1 , P γ s + 2 , P 3 n e w , . . . , P N C 1 n e w T .

6.4. From 2-D Path to Vehicle Formation

To generate individual paths for each vehicle to follow, we can consider a reference path (obtained via the application of the previous algorithms) and offset each point according to an expression that captures a desired vehicle formation. Start by considering a formation vector denominated μ i R 3 for each vehicle i, with each distance defined in the tangential reference frame { T } to the virtual target’s position in the original curve, according to Figure 11. According to Xie et al. [31], it is possible to define a desired path for each vehicle given by:
p d i ( γ i ) = C ( γ i ) + T U R ( γ i ) μ i ,
where p d i is the desired path for the vehicle i, C ( γ i ) is the planned curve, and T U R ( γ i ) is a rotation matrix computed according to:
T U R ( γ i ) = [ r 1 ( γ i ) , r 3 ( γ i ) × r 1 ( γ i ) , r 3 ( γ i ) ] ,
with:
r 1 ( γ i ) = p d / γ p d / γ , with p d / γ 0 r 3 ( γ i ) = r d ( r d · r 1 ( γ i ) ) r 1 ( γ i ) r d ( r d · r 1 ( γ i ) ) r 1 ( γ i ) ,
such that r 1 is the tangent to the curve. Moreover, since all vehicles will only be required to operate in a 2-D plane, a trivial definition for one of the axis of the tangential frame { T } is r d = [ 0 , 0 , 1 ] T .
A path might not be not parameterised according to the arc length and, for B-splines in particular, each spline segment is such that γ [ 0 , 1 ] . Therefore, it is commonplace to define a constant required speed V V m a x for the vehicle and let the desired speed profile for the virtual targets be given by:
v L ( γ ) = V p d ( γ ) .

7. Implementation Details

To evaluate the performance of the proposed PF and CPF algorithms applied to marine ASVs, real water trials were conducted at Doca dos Olivais (Lisbon, Portugal) using the Medusa class of underactuated marine vehicles [14], shown in Figure 12. The vehicles used in the real trials were equipped with a GPS Astech MB100, a NavQuest600 Micro DVL, and a Vectornav VN-100T Attitude and Heading Reference System (AHRS). The operating system used during development was Ubuntu 18.04LTS along with ROS Melodic.
To analyse the performance of the proposed online path planning algorithm, a realistic simulation environment that closely resembles the Doca dos Olivais site was developed and incorporated into the Gazebo simulator. Given the main goal of having a fleet of vehicles encircling a chemical spill, is was necessary to overlay a red stain mesh on top of the ocean’s surface (Figure 13).
For simulating the Medusa ASVs, a CAD model of the vehicles was incorporated into the simulator (Figure 14a). The virtual vehicle was also equipped with DVL, AHRS, and GPS sensors provided by the UUVSimulator plugin [16]. To simulate the quadrotor, the Iris vehicle provided by the PX4 SITL Gazebo plugin [15] was used; see Figure 14b.
The simulated quadrotor was equipped with a virtual camera mounted 21 mm below the vehicle’s center of mass and with a pitch angle of 45 , pointing downwards, and produced an image with a resolution of 640 × 480 px, according to Figure 15a. Its intrinsic parameters are given by:
( c x , c y ) = ( 320.5 , 240.5 ) ( f d s x , f d s y ) = ( 381.4 , 381.4 ) .
Given assumption 5, the detection of the boundary region between the spill and the ocean surface was out of the scope of this work. Therefore, we resorted to OpenCV library [32] to mask and threshold the red colours in the image feed. After this step, the Canny edge detection algorithm was applied to the binary image to retrieve the pixels corresponding to the boundary, according to Figure 15b. To solve the optimisation problem proposed in Section 6.3.2, we resorted to Scipy’s SQP solver [33].
The entire system architecture is shown in Figure 16. The inner-loop controls adopted for the quadrotor were the ones already provided by PX4, while for the ASV, we resorted to PID inner-loop controllers to steer the vehicles.

8. Experimental and Simulation Results

In this section, we present some real experimental results regarding the PF and CPF controllers applied to two Medusa ASV vehicles. In addition, realistic 3-D simulation results are also presented for the case study where two Medusa vehicles were required to perform a CPF mission on a pre-defined path with a quadrotor, in a leader–follower formation. Finally, a third case study is presented, where a simulated quadrotor had to detect the boundary of a chemical spill, and plan, in real-time, a path for both itself and a Medusa ASV to follow cooperatively. The control gains adopted are available in Appendix E.

8.1. Cpf with ETC between 2 Medusa Vehicles (Real)

For the real trial, performed at Doca dos Olivais (Lisbon, Portugal), two Medusa vehicles were required to perform a lawn-mowing mission cooperatively at the surface of the water, according to Figure 17. The black vehicle (Medusa 1) was required to follow the leader (Medusa 2) according to the formation vector μ = [ 5 , 5 , 0 ] T . Both vehicles were required to follow the path at V = 0.5 m/s and communications were bi-directional.
According to the results in Figure 18a, the along-track error of Medusa 1 increases quickly as the virtual target tries not only to minimise the distance to the vehicle but also its distance to its neighbour’s (Medusa 2) virtual target. As the vehicles start to move, this error starts to decrease, and according to Figure 18b, after approximately 50 s, the vehicles align themselves according to the desired formation, approach the desired speed profile and, as a consequence, the rate of information exchange decreases. This decrease in the rate of communication is due to the bank of estimators for the virtual targets running in each vehicle being able to better predict the evolution of the virtual targets.

8.2. Cpf with ETC between a Quadrotor and Medusa Vehicles (Simulation)

For this case study, a CPF mission was performed such that a simulated quadrotor and two Medusa vehicles were required to perform a lawn-mowing mission, according to Figure 19a. In this experiment, the aircraft was required to fly at a fixed altitude of 30 m; the formation vector for Medusa 1 was given by μ 1 = [ 5 , 5 , 0 ] T m, and for Medusa 2, by μ 2 = [ 5 , 5 , 0 ] T m, leading to a triangular formation with 2 ASVs side by side, behind the quadrotor. In this experiment, there was bi-directional communication between the pairs of vehicles: (quadrotor, Medusa 1) and (quadrotor, Medusa 2). From the results in Figure 19b, it is observable that the vehicles converge to their desired formation at around 25 s. After this period of time, the position error converges to a neighbourhood of zero and the virtual target speeds converge to their desired value. As a consequence, the number of communication events between the vehicles drops as the bank of observers in each vehicle can more accurately track the state of the virtual target of their peers.

8.3. Boundary Encircling with a Quadrotor and a Medusa Vehicle (Simulation)

For the last simulated experiment, the quadrotor was required to start the same lawn-mowing that was adopted for the mission with one Medusa ASV. As soon as a chemical spill boundary was detected in the drone’s image stream, the quadrotor was required to start the path planning algorithm at a rate of 1 Hz and send the most up-to-date path to the ASV, according to Figure 20. The drone was required to follow the path at 30 m of altitude with a desired constant speed of 0.5 m/s. Since the quadrotor was equipped with a fixed-mounted camera, it was also required to align its yaw angle with the tangent to the path in order not to lose sight of the boundary being followed.
In order to guarantee that the path further ahead could be generated for the ASV to follow, it was desirable for the marine vehicle to follow the the quadrotor from behind, i.e., with a formation vector μ = [ 5 , 5 , 0 ] T m. In Figure 21a, a top-down view of the executed mission is shown. In Figure 21b, plots of the PF errors are provided along with the norm of the horizontal distance of each vehicle to the real boundary being followed. It is observable that the tracking error only increased in zones where the chemical spill had a crease. This is justified by the fact that the Medusa vehicle, when performing tight turns, was not able to cope with its virtual target speed and slowed down, leading to sudden spikes in the along-track error. These tracking errors were instantly compensated by the adaptive virtual target dynamics, which attempted to minimise the distance between itself and the vehicle. It is also observable that the norm of the distance between the marine vehicle and the chemical spill is much lower than its aerial counterpart, with the Medusa always following the boundary from its outskirts, due to the formation vector adopted.
From Figure 21b, it is also evident that the horizontal distance between the real drone’s position and the boundary is bounded by 6 m . This result is to be expected, as the altitude estimates are mainly provided by the simulated GPS system and small errors in the estimated attitude, especially yaw angle, will lead to errors of several meters in the generated 2-D point cloud. Due to the type of application at hand, and given that it is typical to have errors of several meters in underwater scenarios, these errors are considered within an acceptable range. In addition, the small oscillations in the boundary distance plot result from the simulated chemical spill boundary mesh being a composition of discrete lines which are picked up by the drone’s camera.
In Figure 22, a plot of the point cloud generated by the algorithm is shown at two different time instants (in green), as well as the corresponding planned B-spline paths (in blue). Note that in Figure 22a, some of the green dots further away from the vehicle were discarded by the planning algorithm, as they were too far away from the main cluster of points.

9. Conclusions and Future Work

This paper addressed the problem of encircling an environmental boundary caused by a chemical spill using a team of robots composed of an aerial quadrotor and Medusa marine vehicles. The path following problem was introduced, and a non-linear control law derived for the ASV, exploiting the technique described in P. Aguiar and F. Vanni [10,11,12]. Inspired by this control law, a new one was derived for a quadrotor following the same methodology, with some key differences due to the nature of the aircraft. For the section that followed, the CPF problem was formulated and a proposal to solve the problem was presented, such that the synchronisation controller was distributed and the same for all vehicles (aerial and marine) using event-triggered communications based on previous work by N. Hung and F. Rego [13]. In addition, a new real-time path planning algorithm was developed that made use of the camera sensor onboard of the quadrotor to have a local view of the boundary and generate a point cloud expressed in the inertial frame. This data was then used to solve an optimisation problem which generates a B-spline-based path that grows dynamically as the drone moves along the boundary and acquires more data. The path is then shared with all ASV vehicles in the network in real time. The proposed algorithms were implemented in ROS, and a 3-D virtual scenario was generated, allowing for a mixture of real and simulated results. Future work includes making the height at which the quadrotor operates dynamic and introducing curvature limits as inequality constraints to the path planning problem, as well as obstacle avoidance before carrying out integrated experiments with real vehicles.

Author Contributions

The individual contributions of the authors are as follows: Conceptualisation, software, formal analysis, investigation, writing, review, and editing by M.J.; Conceptualisation, validation, review, editing, project administration, and funding acquisition by A.P. and R.C. All authors have read and agreed to the published version of the manuscript.

Funding

This work was partially funded by the H2020-INFRAIA-2017-1-two-stage EUMarineRobots-Marine Robotics Research Infrastructure Network (Grant agreement ID: 731103), the H2020-FETPROACT-2020-2 RAMONES-Radioactivity Monitoring in Ocean Ecosystems (Grant agreement ID: 101017808), H2020-MSCA-RISE-2018 ECOBOTICS.SEA-Bio-inspired Technologies for a Sustainable Marine Ecosystem (Grant agreement ID: 824043).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The path planning library that implements the algorithms proposed in Section 6 is available at https://github.com/MarceloJacinto/BSplineFit (accessed on 8 March 2022).

Acknowledgments

The authors of this work would like to express a deep gratitude to Nguyen Hung, Francisco Rego, João Quintas, and João Cruz for all the support provided during the preparation of the results presented in this work.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Proof of Preposition 1

Proof. 
Consider the candidate Lyapunov Function given by:
V 1 ( e p ) = 1 2 ( e p δ ) T ( e p δ ) .
Taking the first time derivative of (A1) and replacing in (17) and (14) leads to:
V ˙ 1 ( e p ) = ( e p δ ) T ( S ( r ) ( e p δ ) + Δ u + 0 v + v c U B R ( ψ ) p d ( γ ) γ e γ + v d ( γ , t ) ) .
Taking into account the properties of the skew-symmetric matrix S:
( e p δ ) T S ( r ) ( e p δ ) = 0 .
Replacing (20) and (21) in V ˙ 1 yields:
V ˙ 1 ( e p ) = ( e p δ ) T Δ ( u ˜ + u d ) + 0 v + v ˜ c + v ^ c U B R ( ψ ) p d ( γ ) γ e γ + v d ( γ , t ) = ( e p δ ) T K p σ ( e p δ ) ( e p δ ) T U B R ( ψ ) p d ( γ ) γ e γ + Δ u ˜ + v ˜ c .
By taking a backstepping approach, consider a second candidate Lyapunov function:
V 2 ( e p , e γ ) = V 1 ( e p ) + 1 2 e γ 2 .
Taking the first derivative and replacing in the control law (22) for the virtual target, we obtain:
V ˙ 2 ( e p , e γ ) = V ˙ 1 ( e p ) + e γ ( γ ¨ v ˙ d ( γ , t ) ) = ( e p δ ) T K p σ ( e p δ ) k γ e γ 2 + Δ u ˜ + v ˜ c ( 1 θ ) ( e p δ ) T K p σ ( e p δ ) θ ( e p δ ) T K p σ ( e p δ ) k γ | e γ | 2 + e p δ Δ u ˜ + v ˜ c ,
where 0 < θ < 1 . The term:
θ ( e p δ ) T K p σ ( e p δ ) + e p δ Δ u ˜ + v ˜ c = θ ( e p δ ) T K p e p δ e p δ σ ( e p δ ) + e p δ Δ u ˜ + v ˜ c ,
will be 0 if:
θ λ m i n ( K p ) σ ( e p δ ) Δ u ˜ + v ˜ c ,
which, in turn, implies that:
e p δ σ 1 1 θ λ m i n ( K p ) Δ u ˜ + v ˜ c ,
and:
V ˙ 2 ( 1 θ ) ( e p δ ) T K p σ ( e p δ ) k γ | e γ | 2 ,
as the right side of inequality (A9) can be made arbitrarily small through the choice of the gain matrix K p . It follows directly from H. Khalil ([34], Theorem 4.19) that the controlled system is ISS. □

Appendix B. Proof of Preposition 2

Proof. 
Consider the candidate Lyapunov function given by:
V 1 ( e p ) : = 1 2 e p T e p .
Taking the first derivative of (A11) and replacing in (24)–(26), yields:
V ˙ 1 ( e p ) = e p T K 1 e p + e p T z p d γ e γ .
With a view to applying backstepping techniques, consider:
V 2 ( e p , e v ) : = V 1 ( e p ) + 1 2 z T z .
Replacing (26), (27), and (29) in V ˙ 2 yields:
V ˙ 2 = e p T K 1 e p + e p T z e p T p d γ e γ + z T u + d h ( γ ) ( e γ + v d ( γ , t ) ) p d γ v ˙ c o o r d ( t ) + K 1 e v K 1 p d γ e γ .
By replacing (35)–(37) in the Lyapunov time derivative, it follows that:
V ˙ 2 = e p T K 1 e p z T K 2 z e p T p d γ e γ z T h ( γ ) + K 1 p d γ e γ + z T ( u ˜ + d ˜ ) .
Consider a third candidate Lyapunov, obtained by backstepping, defined as:
V 3 : = V 2 + 1 2 e γ 2 .
Taking its derivative, with respect to time, and replacing in (38), we obtain:
V ˙ 3 = e p T K 1 e p z T K 2 z k γ e γ 2 + z T ( u ˜ + d ˜ ) .
Consider one last backstepping that involves the construction of:
V 4 = V 3 + 1 2 d ˜ T K d 1 d ˜ .
Taking its time derivative, and taking into consideration (33):
V ˙ 4 = e p T K 1 e p z T K 2 z k γ e γ 2 + d ˜ T ( z Proj ( z , d ^ ) ) 0 + z T u ˜ W ( e p , e v , e γ ) + z T u ˜ .
Assuming that the quadrotor is equipped with a generic inner loop that is capable of keeping the tracking error u ˜ small and bounded, the right side of inequality (A19) can be made small enough such that the controlled system is stable. A more in-depth stability analysis can be conducted for the inner–outer loop control system, but this will be dependent directly on the type of inner loop adopted. This results from the fact that the desired accelerations u d must be decoupled in a set of desired thrusts and attitudes for the quadrotor to track.
In order to simplify the designed control law u d , consider the final algebraic manipulation:
u d = d ^ + h ( γ ) v d ( γ , t ) + p d γ v ˙ c o o r d ( t ) K 1 e v e p K 2 z = d ^ + h ( γ ) v d ( γ , t ) + p d γ v ˙ c o o r d ( t ) e v ( K 1 + K 2 ) K v e p ( I + K 1 K 2 ) K p .

Appendix C. Proof of Preposition 3

Proof. 
Consider that:
v L ( γ ) = v L 1 + v ˜ L ,
where v ˜ L is a bounded and arbitrarily small term that accounts for a transient period in which the vehicles are on different sections of the path, with slightly different desired speed profiles. Replacing (39), the speed correction term proposed in (46), and (A21) in (42) yields:
Sensors 22 02178 i001
where d is a disturbance that results from combining the terms dependent on v ˜ L and γ ˜ . Consider the Laplacian matrix L, expressed in canonical Jordan form as:
L = V Λ V 1 ,
and the change of variables:
ε ¯ = V 1 ε .
Applying (A24) to (A22) yields:
ε ¯ ˙ = k ε Λ ( ε ¯ + d ¯ ) , with d ¯ = V 1 d .
It is possible to decompose the above equality according to the notation:
ε ¯ ˙ 1 ε ¯ ˙ 2 = 0 k ε Λ 2 ( ε ¯ 2 + d ¯ 2 ) ,
where the first half of the vector denotes the term that depends on the null eigenvalue of the Laplacian, while the second term is a vector that depends only on the positive eigenvalues of the Laplacian. Consider now the candidate Lyapunov function:
V ε ¯ 2 = 1 2 ε ¯ 2 T ε ¯ 2 ,
and its time derivative, given by:
V ˙ ε ¯ 2 = k ε ε ¯ 2 T Λ 2 ( ε ¯ 2 + d ¯ 2 ) = ( 1 θ ) k ε ε ¯ 2 T Λ 2 ε ¯ 2 θ k ε ε ¯ 2 T Λ 2 ε ¯ 2 k ε ε ¯ 2 T Λ 2 d ¯ 2 ,
where 0 < θ < 1 . The term:
θ k ε ε ¯ 2 T Λ 2 ε ¯ 2 k ε ε ¯ 2 T Λ 2 d ¯ 2 ,
will be 0 if:
ε ¯ 2 1 θ d ¯ 2 ,
and, therefore:
V ˙ ε ¯ 2 ( 1 θ ) k ε ε ¯ 2 T Λ 2 ε ¯ 2 .
The term γ ˜ can be made arbitrarily small by controlling the gains that dictate the broadcasting scheme. Moreover, the term v ˜ L can be dominated by a proper choice k ε . Hence, d can be made arbitrarily small and, thus, d ¯ 2 can be as well. It follows directly from H. Khalil ([34], Theorem 4.19) that the controlled system is ISS with respect to the error vector ε and the inputs γ ˜ and v ˜ L . □

Appendix D. Computing the Regularisation Term Using Vectorial Notation

Consider the simplest unclamped uniform cubic B-spline with only one segment, such that γ [ 0 , 1 ] and is described by (6). Then, its first derivative C ( γ ) is given by:
C x / y γ ( γ ) = γ 2 γ 1 0 T ( γ ) 1 6 3 0 0 0 0 2 0 0 0 0 1 0 0 0 0 0 1 3 3 1 3 6 3 0 3 0 3 0 1 4 1 0 M B ( γ ) P 0 x / y P 1 x / y P 2 x / y P 3 x / y P .
Therefore, the term γ C ( γ ) 2 d γ is computed according to:
γ C ( γ ) 2 d γ = γ ( B ( γ ) P ) T ( B ( γ ) P ) d γ = 0 1 P T B ( γ ) T B ( γ ) P d γ = P T M T 0 1 T ( γ ) T T ( γ ) d γ M P .
Further, note that:
T ( γ ) T T ( γ ) = γ 4 γ 3 γ 2 0 γ 3 γ 2 γ 0 γ 2 γ 1 0 0 0 0 0
and, as a consequence:
0 1 T ( γ ) T T ( γ ) d γ = Q = 1 / 5 1 / 4 1 / 3 0 1 / 4 1 / 3 1 / 2 0 1 / 3 1 / 2 1 0 0 0 0 0 .
Hence, for the simplest case of a single B-spline segment, it is known that:
γ C ( γ ) 2 d γ = P T M T Q M R 1 P .
The easiest way to extend this technique to a B-spline with n segments is to consider the modified vector T ( γ ) = [ ( γ i ) 2 , ( γ i ) , 1 , 0 ] T , where i = γ , according to the notation introduced in Section 2.3. Then, since ( γ i ) [ 0 , 1 ] , one can compute individually, for each segment, intermediate matrices R 1 i , according to (A36). Due to the locality property of B-splines, it is possible to “stack” these intermediate matrices to form the final matrix R 1 . An analogous rationale can be applied to compute R 2 .

Appendix E. Controller Gains Adopted

The controller gains used to obtain the results in Section 8 are presented in Table A1.
Table A1. Controller and path planning gains.
Table A1. Controller and path planning gains.
Currents Observer (ASV)Projection Operator (Quadrotor)
k 1 2.0 K d d i a g ( 0.5 , 0.5 , 0.2 )
k 2 0.2 ς and β 10.0
Path Following (ASV)Path Following (Quadrotor)
K p d i a g ( 0.5 , 0.5 ) K p d i a g ( 5.5 , 5.5 , 5.5 )
δ 1.0 K d d i a g ( 4.5 , 4.5 , 4.0 )
k γ 0.5 k γ 0.5
Cooperative Path FollowingPath Planning
k ε 1.0 N J 0.6 m
c 0.001 1 / ρ 4.0
b 5.0 λ 0.05
α 1.0 β 0.01

References

  1. Casbeer, D.W.; Kingston, D.B.; Beard, R.W.; McLain, T.W. Cooperative forest fire surveillance using a team of small unmanned air vehicles. Int. J. Syst. Sci. 2006, 37, 351–360. [Google Scholar] [CrossRef]
  2. Fahad, M.; Saul, N.; Guo, Y.; Bingham, B. Robotic simulation of dynamic plume tracking by Unmanned Surface Vessels. In Proceedings of the 2015 IEEE International Conference on Robotics and Automation (ICRA), Seattle, WA, USA, 26–30 May 2015; pp. 2654–2659. [Google Scholar] [CrossRef]
  3. Pettersson, L.; Pozdnyakov, D. Monitoring of Harmful Algal Blooms, 1st ed.; Springer Science & Business Media: Berlin, Germany, 2013; p. 309. [Google Scholar] [CrossRef]
  4. Sukhinov, A.; Chistyakov, A.; Nikitina, A.; Semenyakina, A.; Korovin, I.; Schaefer, G. Modelling of oil spill spread. In Proceedings of the 2016 5th International Conference on Informatics, Electronics and Vision (ICIEV), Dhaka, Bangladesh, 13–14 May 2016; pp. 1134–1139. [Google Scholar] [CrossRef]
  5. Li, S.; Guo, Y.; Bingham, B. Multi-robot cooperative control for monitoring and tracking dynamic plumes. In Proceedings of the 2014 IEEE International Conference on Robotics and Automation (ICRA), Hong Kong, China, 31 May–7 June 2014; pp. 67–73. [Google Scholar] [CrossRef]
  6. Clark, J.; Fierro, R. Cooperative hybrid control of robotic sensors for perimeter detection and tracking. In Proceedings of the 2005, American Control Conference, Portland, OR, USA, 8–10 June 2005; Volume 5, pp. 3500–3505. [Google Scholar] [CrossRef] [Green Version]
  7. Saldaña, D.; Assunção, R.; Hsieh, M.A.; Campos, M.F.M.; Kumar, V. Cooperative prediction of time-varying boundaries with a team of robots. In Proceedings of the 2017 International Symposium on Multi-Robot and Multi-Agent Systems (MRS), Los Angeles, CA, USA, 4–5 December 2017; pp. 9–16. [Google Scholar] [CrossRef]
  8. Piegl, L.; Tiller, W. The Nurbs Book, 1 ed.; Springer Science & Business Media: Berlin, Germany, 1995; p. 646. [Google Scholar] [CrossRef]
  9. International Petroleum Industry Environmental Conservation Association (IPIECA). Dispersants and Their Role in Oil Spill Response. Volume 5. Available online: https://www.amn.pt/DCPM/Documents/DispersantsII.pdf (accessed on 8 March 2022).
  10. Aguiar, A.P.; Hespanha, J.P. Trajectory-Tracking and Path-Following of Underactuated Autonomous Vehicles with Parametric Modeling Uncertainty. IEEE Trans. Autom. Control. 2007, 52, 1362–1379. [Google Scholar] [CrossRef] [Green Version]
  11. Vanni, F.; Aguiar, A.P.; Pascoal, A.M. Cooperative path-following of underactuated autonomous marine vehicles with logic-based communication. In Proceedings of the 2nd IFAC Workshop on Navigation, Guidance and Control of Underwater Vehicles, Killaloe, Ireland, 8–10 April 2008; Volume 41, pp. 107–112. [Google Scholar] [CrossRef] [Green Version]
  12. Aguiar, A.P.; Ghabcheloo, R.; Pascoal, A.M.; Silvestre, C. Coordinated Path-Following Control of Multiple Autonomous Underwater Vehicles. In Proceedings of the Seventeenth International Offshore and Polar Engineering Conference, Lisbon, Portugal, 1–6 July 2007. ISOPE-I-07-006. [Google Scholar]
  13. Hung, N.T.; Rego, F.C.; Pascoal, A.M. Event-Triggered Communications for the Synchronization of Nonlinear Multi Agent Systems on Weight-Balanced Digraphs. In Proceedings of the 2019 18th European Control Conference (ECC), Naples, Italy, 25–28 June 2019; pp. 2713–2718. [Google Scholar] [CrossRef]
  14. Abreu, P.; Botelho, J.; Góis, P.; Pascoal, A.; Ribeiro, J.; Ribeiro, M.; Rufino, M.; Sebastião, L.; Silva, H. The MEDUSA class of autonomous marine vehicles and their role in EU projects. In Proceedings of the OCEANS Shanghai, Shanghai, China, 10–13 April 2016; pp. 1–10. [Google Scholar] [CrossRef]
  15. Furrer, F.; Burri, M.; Achtelik, M.; Siegwart, R. Robot Operating System (ROS): The Complete Reference (Volume 1); Springer International Publishing: Cham, Switzerland, 2016; pp. 595–625, chapter RotorS—A Modular Gazebo MAV Simulator Framework. [Google Scholar] [CrossRef]
  16. Manhães, M.; Scherer, S.A.; Voss, M.; Douat, L.R.; Rauschenbach, T. UUV Simulator: A Gazebo-based package for underwater intervention and multi-robot simulation. In Proceedings of the OCEANS 2016 MTS/IEEE Monterey, Monterey, CA, USA, 19–23 September 2016; pp. 1–8. [Google Scholar] [CrossRef]
  17. Dey, T.K. Course 784 Notes—The Ohio State University—Lecture 7: Matrix Form for B-Spline Curves. Available online: https://web.cse.ohio-state.edu/~dey.8/course/784/note7.pdf (accessed on 16 January 2022).
  18. Pascoal, A.; Kaminer, I.; Oliveira, P. Navigation system design using time-varying complementary filters. IEEE Trans. Aerosp. Electron. Syst. 2000, 36, 1099–1114. [Google Scholar] [CrossRef]
  19. Sanches, G. Sensor-Based Formation Control of Autonomous Marine Robots. Master’s Thesis, Instituto Superior Técnico, Lisbon, Portugal, 2015. [Google Scholar]
  20. Xie, W.; Cabecinhas, D.; Cunha, R.; Silvestre, C. Robust Motion Control of an Underactuated Hovercraft. IEEE Trans. Control. Syst. Technol. 2019, 27, 2195–2208. [Google Scholar] [CrossRef]
  21. Cabecinhas, D.; Cunha, R.; Silvestre, C. A nonlinear quadrotor trajectory tracking controller with disturbance rejection. Control. Eng. Pract. 2014, 26, 1–10. [Google Scholar] [CrossRef]
  22. Cai, Z.; de Queiroz, M.; Dawson, D. A sufficiently smooth projection operator. IEEE Trans. Autom. Control. 2006, 51, 135–139. [Google Scholar] [CrossRef]
  23. Aguiar, A.P.; Pascoal, A.M. Coordinated path-following control for nonlinear systems with logic-based communication. In Proceedings of the 2007 46th IEEE Conference on Decision and Control, New Orleans, LA, USA, 12–14 December 2007; pp. 1473–1479. [Google Scholar] [CrossRef]
  24. Hung, N.T.; Pascoal, A.M. Consensus/synchronisation of networked nonlinear multiple agent systems with event-triggered communications. Int. J. Control. 2020, 1–10. [Google Scholar] [CrossRef]
  25. Odonkor, P.; Ball, Z.; Chowdhury, S. Distributed operation of collaborating unmanned aerial vehicles for time-sensitive oil spill mapping. Swarm Evol. Comput. 2019, 46, 52–68. [Google Scholar] [CrossRef]
  26. Szeliski, R. Computer Vision: Algorithms and Applications; Springer Science & Business Media: Berlin, Germany, 2011; Volume 5. [Google Scholar] [CrossRef]
  27. Liu, Y.; Yang, H.; Wang, W. Reconstructing B-spline Curves from Point Clouds—A Tangential Flow Approach Using Least Squares Minimization. In Proceedings of the International Conference on Shape Modeling and Applications 2005 (SMI’ 05), Cambridge, MA, USA, 13–17 June 2005; pp. 4–12. [Google Scholar] [CrossRef] [Green Version]
  28. Lee, I.K. Curve reconstruction from unorganized points. Comput. Aided Geom. Des. 2000, 17, 161–177. [Google Scholar] [CrossRef] [Green Version]
  29. Bentley, J.L. Multidimensional Binary Search Trees Used for Associative Searching. Commun. ACM 1975, 18, 509–517. [Google Scholar] [CrossRef]
  30. Liu, M.; Huang, S.; Dissanayake, G.; Kodagoda, S. Towards a consistent SLAM algorithm using B-Splines to represent environments. In Proceedings of the 2010 IEEE/RSJ International Conference on Intelligent Robots and Systems, Taipei, Taiwan, 18–22 October 2010; pp. 2065–2070. [Google Scholar] [CrossRef] [Green Version]
  31. Xie, W.; Cabecinhas, D.; Cunha, R.; Silvestre, C. Cooperative Path Following Control of Multiple Quadcopters with Unknown External Disturbances. IEEE Trans. Syst. Man Cybern. Syst. 2020, 52, 667–679. [Google Scholar] [CrossRef]
  32. Bradski, G. The OpenCV library. Dr. Dobb’s J. Softw. Tools 2000, 120, 122–125. [Google Scholar]
  33. Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J.; et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat. Methods 2020, 17, 261–272. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  34. Khalil, H. Nonlinear Systems, 3rd ed.; Always Learning; Pearson Education Limited: New York, NY, USA, 2013. [Google Scholar]
Figure 1. Cooperative path following along an environmental boundary.
Figure 1. Cooperative path following along an environmental boundary.
Sensors 22 02178 g001
Figure 2. Adopted reference frames for a surface vehicle (left) and a quadrotor (right).
Figure 2. Adopted reference frames for a surface vehicle (left) and a quadrotor (right).
Sensors 22 02178 g002
Figure 3. Path following schematic: (a) ASV path following. (b) Quadrotor path following.
Figure 3. Path following schematic: (a) ASV path following. (b) Quadrotor path following.
Sensors 22 02178 g003
Figure 4. Dynamic Boundary schematic: (a) Boundary formal definition. (b) Drone’s field of view.
Figure 4. Dynamic Boundary schematic: (a) Boundary formal definition. (b) Drone’s field of view.
Sensors 22 02178 g004
Figure 5. Camera model and reference frames.
Figure 5. Camera model and reference frames.
Sensors 22 02178 g005
Figure 6. Pre-processing the point cloud and re-planning schematic.
Figure 6. Pre-processing the point cloud and re-planning schematic.
Sensors 22 02178 g006
Figure 7. From sparse graph to an ordered list of points (example).
Figure 7. From sparse graph to an ordered list of points (example).
Sensors 22 02178 g007
Figure 8. Ordered set of points with parametric values associated to them (example).
Figure 8. Ordered set of points with parametric values associated to them (example).
Sensors 22 02178 g008
Figure 9. Solving the optimisation problem (example).
Figure 9. Solving the optimisation problem (example).
Sensors 22 02178 g009
Figure 10. Final curve with control points concatenated (example).
Figure 10. Final curve with control points concatenated (example).
Sensors 22 02178 g010
Figure 11. Formation vector.
Figure 11. Formation vector.
Sensors 22 02178 g011
Figure 12. Real Medusa vehicles at Doca dos Olivais, Lisbon (Portugal).
Figure 12. Real Medusa vehicles at Doca dos Olivais, Lisbon (Portugal).
Sensors 22 02178 g012
Figure 13. Simulated world of Doca dos Olivais with red chemical spill in Gazebo.
Figure 13. Simulated world of Doca dos Olivais with red chemical spill in Gazebo.
Sensors 22 02178 g013
Figure 14. Simulated vehicles in gazebo: (a) Medusa ASV. (b) Iris quadrotor with a fixed camera.
Figure 14. Simulated vehicles in gazebo: (a) Medusa ASV. (b) Iris quadrotor with a fixed camera.
Sensors 22 02178 g014
Figure 15. Simulated camera feed: (a) Quadrotor’s camera output. (b) Binary image.
Figure 15. Simulated camera feed: (a) Quadrotor’s camera output. (b) Binary image.
Sensors 22 02178 g015
Figure 16. Planning and control architecture.
Figure 16. Planning and control architecture.
Sensors 22 02178 g016
Figure 17. Real CPF mission with 2 Medusa vehicles.
Figure 17. Real CPF mission with 2 Medusa vehicles.
Sensors 22 02178 g017
Figure 18. CPF with 2 real Medusa vehicles: (a) X–Y view. (b) Communication metrics.
Figure 18. CPF with 2 real Medusa vehicles: (a) X–Y view. (b) Communication metrics.
Sensors 22 02178 g018
Figure 19. CPF with simulated Iris and Medusa vehicles: (a) X–Y view. (b). Performance metrics.
Figure 19. CPF with simulated Iris and Medusa vehicles: (a) X–Y view. (b). Performance metrics.
Sensors 22 02178 g019
Figure 20. 3-D view of simulated boundary encircling mission with Iris and Medusa vehicles.
Figure 20. 3-D view of simulated boundary encircling mission with Iris and Medusa vehicles.
Sensors 22 02178 g020
Figure 21. Boundary encircling with simulated Iris and Medusa vehicles: (a) X–Y view. (b) Performance metrics.
Figure 21. Boundary encircling with simulated Iris and Medusa vehicles: (a) X–Y view. (b) Performance metrics.
Sensors 22 02178 g021
Figure 22. Path generation (a) Time = 235 s. (b) Time = 558 s.
Figure 22. Path generation (a) Time = 235 s. (b) Time = 558 s.
Sensors 22 02178 g022
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Jacinto, M.; Cunha, R.; Pascoal, A. Chemical Spill Encircling Using a Quadrotor and Autonomous Surface Vehicles: A Distributed Cooperative Approach. Sensors 2022, 22, 2178. https://doi.org/10.3390/s22062178

AMA Style

Jacinto M, Cunha R, Pascoal A. Chemical Spill Encircling Using a Quadrotor and Autonomous Surface Vehicles: A Distributed Cooperative Approach. Sensors. 2022; 22(6):2178. https://doi.org/10.3390/s22062178

Chicago/Turabian Style

Jacinto, Marcelo, Rita Cunha, and António Pascoal. 2022. "Chemical Spill Encircling Using a Quadrotor and Autonomous Surface Vehicles: A Distributed Cooperative Approach" Sensors 22, no. 6: 2178. https://doi.org/10.3390/s22062178

APA Style

Jacinto, M., Cunha, R., & Pascoal, A. (2022). Chemical Spill Encircling Using a Quadrotor and Autonomous Surface Vehicles: A Distributed Cooperative Approach. Sensors, 22(6), 2178. https://doi.org/10.3390/s22062178

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop