1. Introduction
In recent years, with the development of science and technology and the traction of marine resource exploitation demand, marine robots, such as ocean unmanned aerial vehicles (UAVs) [
1], unmanned surface vehicles (USVs) [
2], ocean buoys (OBs) [
3], and unmanned underwater vehicles (UUVs) [
4], have been rapidly developed and achieved great success. This technology is increasingly playing an important role in marine surveillance, offshore rescue, resource exploration, and even military operations. As research results on diverse marine robots continue to emerge, researchers are beginning to think of and design new robots for seemingly impractical amphibious tasks. The hybrid aerial–underwater vehicle (HAUV), which is capable of performing air and water amphibious missions, belongs to a new concept of amphibious vehicles. The concept of amphibious vehicles can even be traced back to the 1930s, when the United States Navy and the Soviet Union, respectively, conceived of flying submarines and underwater aircraft [
5] and carried out a series of studies [
6,
7], but early research was not smooth. After decades of silence, with the progress of marine robotics technology and the increasingly urgent demand for amphibious missions, the development and testing of prototype HAUVs and the pre-research of related technologies have attracted more and more scholars’ research interest.
There are two main ways to implement HAUVs: flying submarines and diving aircraft. At this stage, the most mature scheme mainly refers to existing aviation UAV design schemes, such as fixed-wing structure forms, multi-rotor forms, and bionic design forms [
8]. Of course, there are also composite wing HUAVs designed by combining the advantages of various configurations [
9,
10]. In addition, schemes to realize cross-media motion are mainly divided into fast and slow water surface crossing [
10]. The main means of rapid water exiting are compressed gas injection [
11] and combustible gas explosion [
12,
13], while slow water exit processes are mainly achieved with propeller propulsion. In particular, HAUVs with a multi-rotor configuration can achieve vertical take-off and landing (VTOL), which has won the attention of many researchers and achieved many research results. In 2014, the authors of [
14] first proposed the double-layer quadrotor configuration HAUV, and the researchers designed a simple proportion derivation (PD) controller for it. Researchers at Rutgers University designed a variable parameter based on a sensor readings proportion integration derivation (PID) controller for their HAUV (Navigator) [
15]. At the same time, the team established the attitude model for Navigator by using the quaternion method and successfully carried out high-maneuverability operation testing [
16]. In 2019, researchers designed a classical PD flight controller for an HAUV (Loon Copter) equipped with a buoyancy regulation system and successfully achieved take-off and landing on the water surface [
17]. For the purpose of further improving the working characteristics of classical linear controllers, the improved PID control strategy is gradually derived. In [
18], the researchers proposed an active disturbance rejection control (ADRC) strategy to achieve attitude stability control for a double-layer HAUV and conducted experimental tests near the water. Fuzzy P+ID [
19] has also been applied to HAUV systems. In addition, the authors of [
20] proposed an improved PID controller, which combines an intelligent genetic algorithm (GA) and radial basis function (RBFNN) to deal with the height control problem of cross-domain processes. The limitation of poor robustness of linear controllers can not be completely overcome by the above improvements. With the progress of control technology, some nonlinear control strategies that have been widely used in quadrotor control have been applied in the HAUV field. For a class of underactuated systems dependent on model parameters, a robust interconnection and damping assignment–passivity-based control (IDA-PBC) strategy was designed [
21]. The superiority of the proposed control scheme is verified by the simulation of the quadrotor system with an unknown load. Furthermore, an improved IDA-PBC strategy based on filter observer is proposed to solve the interference and model uncertainty in quadrotor trajectory tracking control. The proposed algorithm can deal with measurement noise and model uncertainty [
22]. In particular, sliding mode control (SMC) is widely used in the controller designs of various robot systems due to its insensitivity to model perturbation and strong robustness. The authors of [
23] designed a classic SMC controller for a tilting HAUV to verify the effectiveness of the SMC method in altitude and attitude control. Bi et al. [
24] designed a second-order SMC controller for a Nezha series multi-rotor. In order to improve the response speed of the control system, the author also designed an adaptive nonsingular fast terminal sliding mode controller for a coaxial HAUV in previous work [
25].
Although the above research has fruitfully explored HAUVs to achieve cross-media motion, in practice, the key difficulty is that the additional variables, such as added mass, damping, and the restoring force, change dramatically with the operating state of HAUVs in the trans-medium process. In addition, the combined disturbance of wind and wave load at the water–air interface brings further challenges to the controller design [
26]. In [
27], it is mentioned that the support arm structure of multi-rotor HAUVs will cause great interference to the dynamics of the vehicle when it breaks through the water surface. Compared to multi-rotor HAUV systems, coaxial HAUV systems have attractive advantages such as a compact structure, excellent hover performance, and so on [
28]. Coaxial HAUVs do not require arm structures, which reduces the forward projection area. Therefore, coaxial HAUVs have attracted the interest of researchers in recent years [
29,
30]. It turns out that this new type of coaxial HAUV has great potential for future development. Inspired by the above research and referring to existing coaxial aircraft, the author developed a coaxial HAUV system in [
25].
Figure 1 shows the operation flow chart of the designed coaxial HAUV. As can be seen in
Figure 1, coaxial HAUV can use two operating modes according to different tasks.
In the initial phase of controller design, the mathematical model of an HAUV should be established first. However, most existing HAUVs mainly adopt the modeling idea of quadrotor UAV, that is, modeling based on the small-angle assumption. This limits the model description of HAUV in the large-angle state. Mainstream methods for describing attitude parameters include the rotation matrix, Euler angle, Rodriguez parameters (RPs), modified Rodriguez parameters (MRPs), quaternion, etc. [
4]. Because it is relatively easy to understand in terms of physical interpretation, most UUV and UAV control schemes are based on the Euler angle representation for attitude control. However, the use of the Euler angle to represent the attitude may cause a singularity when the vehicle approaches a singular direction. In most UAV and AUV scenarios, this is usually not a serious problem, as the vehicle only needs to operate at angles close to the equilibrium point and away from the singularity [
31]. For the sake of effectively overcoming the large drag, the propulsion force needs to be more distributed in the forward direction, which requires a large inclination angle. To study the stability of HAUVs under a large angle of inclination under harsh sea conditions, it is a valuable option to choose the attitude resolution method based on quaternion representation [
32]. The quaternion unit has been widely used in spacecraft attitude control or satellite attitude control [
33,
34], but spacecraft attitude control does not consider translational motion. Both translational and rotational motion should be considered for the trans-medium motion control problem of HAUVs. Therefore, these control schemes cannot be directly applied to the motion control of HAUVs. In [
35], the quaternion-based PD attitude control method was applied to the motion control of a six-degrees of freedom (DOF) AUV, but it lacks measures to further enhance its robustness. In [
16], the PD algorithm based on quaternion is also adopted in the attitude control of HAUV. This solves the problem of large-angle maneuvering but also lacks sufficient consideration of the robustness of the controller.
Motivated by the above discussion, an appropriate strategy must be proposed to solve this singular constraint to improve HAUV mobility. According to the underactuated characteristics of a coaxial HAUV system, it was divided into inner (attitude) and outer (position) loops [
36], and controllers were designed, respectively. In the outer loop trajectory tracking control loop, the adaptive sliding mode control (ASMC) technology enhanced by disturbance observer (DO) [
37] was used to calculate the thrust and the expected attitude angle. The disturbance observer was combined with an adaptive technique to compensate for the lumped uncertainty, which effectively weakens the inherent chattering phenomenon of sliding mode control. The calculated attitude angle was converted into a desired quaternion, and a DO-enhanced robust feedforward PD control algorithm was used to track the target quaternion. Finally, a variable parameter design scheme based on the learning rate was introduced into the cascaded SMC-PD controller, and the error convergence speed of the system was further improved by adaptively changing the controller parameters [
38]. In order to realize fast and stable cross-domain tracking control of coaxial HAUV systems, a DO-based SMC-PD control strategy is proposed in this paper. The contributions of this paper are as follows:
- (1)
Removing the limitation of the small-angle assumption, a six-DOF cross-domain dynamic model that can perform large-angle maneuvering is established. The quaternion attitude modeling scheme is adopted to avoid the singularity problem of HAUV.
- (2)
In the hierarchical cascade SMC-PD controller, the control gain parameters are adaptively changed by using the learning rate method, which improves the error convergence speed of the system.
- (3)
A DO with a simple structure is adopted to supplement the uncertainty in the dynamic model and enhance the robustness of the system.
The arrangement of the rest of this manuscript is outlined as follows: in
Section 2, the dynamics model of the cross-domain process of a coaxial HAUV is analyzed and established. The attitude dynamics model based on quaternion representation is introduced. In
Section 3, the design process of the control strategy is given, and the stability of the proposed control scheme is proved by using the Lyapunov theory. The control performance of the designed controller is analyzed by using the numerical simulation study in
Section 4. Finally,
Section 5 presents some conclusions and perspectives as well as an outlook for future work.
2. Dynamic Modeling
In this paper, the studied object is the coaxial HAUV, as shown in
Figure 2. In order to accurately describe the motion of the vehicle and the dynamics model, two coordinate systems should be given first: the inertial coordinate system
and the body-fixed coordinate system
will be defined. The origin of the body-fixed coordinate system is set at the position of the heavy center of the vehicle. The inertial co-ordinate system is fixed at sea level, plane
coincides with a calm water surface, and
points in the direction of the sky. The position and linear velocity vector of the HAUV are defined as
,
, and the attitude angle and angular velocity of the vehicle are denoted as
,
.
Here, is the transformation matrix from the body coordinate system to the inertial coordinate system.
The kinematic equation of the coaxial HAUV is expressed as follows:
The meanings of each variable and symbol in the equation are as follows:
Assumption 1. To facilitate the controller design, we simplify the HAUV model and make the following basic assumption. The main mass of the HAUV is uniformly distributed on the cylindrically shaped watertight hull, and its geometric structure is symmetric about three coordinate planes. High-order hydrodynamic coefficients will not be considered.
Since the main structure of the HAUV is uniform, it can be approximately considered that variables such as additional mass, buoyancy, and drag are linearly related to the height of the submerged part of the vehicle [
23,
39]. Therefore, a switching coefficient is adopted to approximate the change trend of additional variables in the trans-medium process in the trans-medium stage. The existing switching coefficients mainly have a step form
[
14] and a linearized form
[
25,
39]. The two switching functions are discontinuous and easily cause controller instability. This paper proposes a switching function,
, based on the hyperbolic tangent function, which makes the model switching smoother and more stable.
where
is the altitude of the vehicle,
represents the height value of the vehicle in the inertial coordinate system, and
is the parameter to be designed.
represents the approximate change in the hydrodynamics in the transmedia process;
indicates the switching coefficient of the aerodynamics, which describes the trend of the influencing factors in the air.
Next, the cross-media dynamic evolution process of parameters and variables in the model will be analyzed.
2.1. Added Mass
Considering the approximate symmetry of the HAUV, the mass matrix and moment of inertia matrix are both main diagonal matrices [
23,
24], which can be expressed as follows:
where
is the mass matrix,
and
are the nominal (when the body is drying) mass matrix and additional mass matrix, respectively. A coaxial HAUV will carry a part of the water (near its body) with it during underwater maneuvering, which is the cause of additional mass. The added mass matrix can be approximated in the form of a principal diagonal matrix,
.
is a diagonal matrix, which can be expressed as a partitioned matrix
.
2.2. Coriolis Force
The Coriolis force comes from the inertia of an object’s motion. From the definition of the Coriolis force, it can be seen that this is an inherent property of moving objects. The Coriolis force is also time-varying, which can be expressed as follows:
where
represents Coriolis matrices, and
and
are the nominal and additional Coriolis force matrices, respectively. Obviously, matrix
is related to the added mass of the HAUV and the current motion state, and when the added mass disappears,
also returns to 0.
2.3. Resistance and Moment of Resistance
Drag and torque are generally considered to be proportional to the square of the linear and angular velocities of underwater (aerial) motion [
40].
Here, and are the drag coefficient matrices of the coaxial HAUV in water and air, respectively; is the combined drag coefficient.
2.4. Restoring Force and Restoring Moment
In the inertial coordinate system, the direction of the HAUV subjected to gravity in the water is opposite to the positive direction of the axis, but the direction of buoyancy is the same as the positive direction of the axis. Buoyancy is obtained by using Archimedes’ principle, where gravity and buoyancy are, respectively, as follows:
Here,
,
, and
are defined as the density of water, the volume of the HAUV watertight chamber, and the gravitational acceleration, respectively. Since the origin of the coordinate system is chosen to be located at the center of gravity of the HAUV, no torque is generated by gravity. The center of buoyancy is
. Based on the above analysis, the restoring force is expressed as a vector:
Remark 1. It is worth noting that, according to the basics of ship principles, the stability of a floating body is closely related to the relative position of the center of buoyancy to the center of gravity, which changes dynamically. The special elongated structure of the coaxial HAUV leads to a minimal change in the horizontal position of the center of buoyancy during its trans-domain motion. The simplified rule of change in the vertical position of the center of action of the wind force and the center of buoyancy is given here:
where
is the vertical coordinate value of the center of buoyancy in the body-fixed coordinate system under fully submerged HAUV conditions.
The position of the center of action of the wind force and the center of buoyancy in the body-fixed coordinate system can be approximated by using mathematical calculations.
2.5. Control Forces and Moments
The two propellers of the coaxial HAUV are fixed on the vector tilting device, and the vector platform controls the output of force and torque by controlling the tilt angle. The control force and torque generated by them can be expressed as follows [
36,
41]:
where
and
are the lift coefficients of the upper and lower propellers, respectively,
is the lift loss coefficient of the lower propeller, and
is the distance from the lift center of the propeller to the center of mass.
represents the mapping transformation matrix from the propeller thrust to body coordinate system;
and
represent the deflection angle of the vector tilt device.
Remark 2 ([41,42]). From a practical flight control point of view, considering that the tilting platform angles are all small, we can obtain , , , and . The control model can be simplified, where and are very small compared to each other, , and the effect of this and can be ignored. For convenience of presentation, is redefined as . The control force generated in the body coordinate system is rewritten as
Remark 3. and are the actual control inputs of the position subsystem and attitude subsystem, respectively. It is obvious that the position subsystem has only one control input to control the 3-DOF translational motion, which is a typical underdriven system.
2.6. Analysis of the Interference Mathematical Model
In this section, the interference of wind, waves, and currents is reasonably modeled, and the proposed interference mathematical model is used to simulate the external environment, which makes the simulation experiment closer to the actual situation.
2.6.1. Sea Breeze Interference
Sea breeze disturbances can be divided into average (steady) wind disturbances and pulsating wind disturbances. The equation of additional disturbance force,
, and torque,
, caused by average wind disturbance to the HAUV is as follows [
40,
43]:
Assuming that the constant wind has a constant inertial reference speed,
, the relative speed of the HAUV moving in the wind is ; the geometric center of the HAUV body exposed to the air is the center of the wind pressure, and its position in the vehicle body is denoted by ; represents the wind damping coefficient.
2.6.2. Ocean Current Interference
The influence of ocean currents is similar to the influence of sea wind, and its magnitude is proportional to the square of the relative velocity. The force
and moment
generated by ocean currents can be expressed by the following expression:
In the simulation, the ocean current is generally considered constant and uniform, and it is assumed that the ocean current has a constant inertial reference velocity, ; is the relative velocity of the HAUV in the ocean current, and represents the water damping coefficient.
2.6.3. Wave Interference
In order to simplify the problem, wave interference caused by single-frequency micro-amplitude-long peak waves with a fixed direction is considered [
40,
44]. It is assumed that these waves are regular waves concentrated in the x-axis and y-axis directions.
The corresponding velocity potential functions
and
re expressed as
where
,
,
,
, and
(
) are the total number of waves, wave amplitude, wave frequency, wave number, and wave phase, respectively. A simple dispersion relation is satisfied between the wave number and the circular frequency of a wave, i.e.,
.
The transverse and vertical velocities of the wave in the x- and y-axis directions and the corresponding accelerations are given by the following equation:
The effect of the HAUV on the incident wave pressure field can be neglected. Therefore, the wave loads encountered by the vehicle at the water surface can be calculated according to the following equation [
24]
where
is the body radius of the coaxial HAUV and
and
are the inertia and drag coefficients of the watertight hull of the coaxial HAUV, respectively.
denotes the integral length of the cabin subjected to wave action, which is expressed as
where
is the body height of the coaxial HAUV, and
is the value of the altitude in the inertial frame.
The above marine environmental parameters applied in the simulation are detailed in
Appendix A,
Table A1.
Remark 4. Based on the detailed analysis of the various external forces and moments applied to the system in the previous subsection, they can be classified. The first category is the active control forces that need to be regulated by the controller, i.e., control forces and control moments, ; the second category consists of external forces that can be measured or approximated, such as the Coriolis forces matrix, , restoring forces, , damping matrix,, etc.; and the third category consists of terms that are not practically measurable or are extremely expensive to model accurately, such as wind-disturbing forces (, ), wave-disturbing forces (, ), current-disturbing forces (, ), and so on. The third type of external forces can be approximated using empirical equations, but it is very difficult to obtain real-time information about the marine environment, which has limited accuracy.
2.7. Dynamic Modeling of Coaxial HAUV
Referring to the relevant experience with underwater robots, the coaxial HAUV dynamics can be expressed in Newton–Euler equation form as
where
is lumped uncertainty, which includes modeling uncertainty, model approximation error, and generalized external disturbance.
To simplify the presentation, referring to the relevant experience with underwater robots, the above model (23) is translated into an inertial coordinate system [
45]:
where the transformed variables satisfy the following relationship:
,
,
,
,
.
In order to facilitate the subsequent controller design, the translational motion and the rotational motion in the dynamic model of Equation (24) are separated into two subsystems, as shown in Equation (25):
where subsystem A is the displacement subsystem. Subsystem B is the rotation subsystem.
,
,
are the linear and angular velocities under the inertial frame, respectively. Each element in Equation (25) satisfies the following relation:
is the mass matrix; is the mass matrix in the inertial frame; is the control input under the inertial frame; , . , and are, respectively, the uncertainty of the position and attitude loop under the inertial frame; and is the nonlinear function of the hydrodynamic composition expressed under the inertial frame, .
2.8. Attitude Dynamics Modeling Based on Unit Quaternion
According to the control logic of a coaxial twin-rotor UAV, the coaxial HAUV dynamic system is divided into two subsystems, position and attitude, and the controllers are designed for the two systems, respectively, to form a cascade control system.
In this section, the modeling scheme of the attitude loop subsystem B in Equation (25) is abandoned, and quaternion-based modeling analysis is carried out for the coaxial HAUV attitude subsystem.
The attitude vector form of the quaternion is defined as ,. Quaternion satisfies the relation ; is the real number part, and , , represent the imaginary number part.
The attitude dynamics equation in quaternion form can be defined as
where
is the angular velocity of the HAUV in the body-fixed coordinate system,
is the identity matrix, and
in the above equation is defined as
Since the three attitude angles and quaternions correspond to each other, the tracking and convergence of attitude angles can be realized if the unit quaternions are stably tracked by an appropriate control law. The Euler angle and quaternion unit can be transformed into each other when describing the attitude motion, and their transformation mapping relationship is shown as follows:
Considering the external disturbance and the uncertainty of the system parameters, the attitude rigid body dynamics equation of the coaxial HAUV can be expressed as
where
represents the inertia matrix (its properties are given in the added mass matrix),
represents the control moment,
represents the relative torque generated by hydrodynamic forces, and
represents the lumped uncertainty.
Assumption 2 ([25]). The lumped uncertainty of the system is bounded; that is, there is a positive real number,, that satisfies the upper bound of the lumped uncertainty, and .
Lemma 1 ([46,47]). Consider a system where if exists and if the Lyapunov function is selected for this system state, the following inequalities are satisfied: where
,
,
; then, if the system converges in finite time, the required settling time is
.
Lemma 2 ([48]). Consider a system where if the Lyapunov function is selected for this system state, the following inequalities are satisfied:
where
,
; then, the convergence of the system to the origin is asymptotic–convergence reachable.
3. Controller Design
The coaxial HAUV is an underactuated 6-DOF motion system with four control inputs:
,
,
. According to the control logic of the coaxial twin-rotor UAV, the controllers are designed for the two systems, respectively, to form a cascade control system. The control scheme frame is shown in
Figure 3. A disturbance observer-enhanced adaptive sliding mode controller (DOASMC) was designed for the outer loop to achieve accurate position tracking. The inner loop, which is a feedforward proportion differentiation (PD) controller enhanced by a disturbance observer, was designed.
After the dynamic equation is converted into the inertial coordinate system, the control input of the position subsystem under the inertial system is , where . In order to simplify the design of the control system, is defined as a virtual control law. The variation in the attitude angle of the coaxial HAUV causes the total lift to produce a horizontal component in the inertial coordinate system, which allows the coaxial HAUV to produce a horizontal maneuver. is the reason for the horizontal maneuver of the coaxial HAUV.
If the desired
value is given, the total lift force and the expected attitude angle of the attitude subsystem can be obtained.
3.1. Position Controller Design
3.1.1. The Basic Sliding Mode Controller Frame Design
Define the desired location as ; then, the tracking error of the position can be expressed as .
First, the finite-time terminal sliding surface based on the learning rate is designed as follows [
49]:
where
,
is the parameter matrix of the sliding mode manifold.
is the designed parameter based on the learning rate.
where
is a positive number and
is the learning rate, and its expression is
, satisfying
,
.
Remark 5 ([50]). A variable coefficient is introduced to adjust the speed at which the tracking error converges to zero. The tracking error in the initial stage is large, and the change rate of the tracking error caused by the controller is also large. The learning rate changes with the error at an exponential rate, which makes the coefficien rise rapidly so that the tracking error converges at a faster rate. However, when the error reaches the sliding mode surface at high speed and the tracking error repeatedly crosses the sliding mode surface, this leads to the system chattering problem. The learning rate will change with the decrease in the tracking error rate so that the coefficient adaptively becomes a small number. The tracking error approaches the surface of the sliding mode at a low speed and effectively inhibits the chattering of the system. The derivative of the sliding mode variable is calculated as
where
.
By setting the derivative of the sliding mode variable to 0, the basic finite-time sliding mode controller can be obtained, expressed as follows:
where
is a positive constant, and
is a sufficiently large constant.
According to the design principle of the sliding mode controller, the main source of its robustness is the switching term with a sign function. If is too large, it will lead to serious chattering of the control signal. In order to ensure the robustness of the controller, a composite robust controller design combining adaptive technology and disturbance observer technology is adopted here.
Remark 6. The hyperbolic tangent function is used to substitute sign function to weak chattering. It is worth noting that the smaller the value of is, the closer the properties of the hyperbolic tangent function are to the sign function.
3.1.2. Disturbance Observer Design
A disturbance observer is designed to compensate for lumped uncertainties.
For a classical second-order nonlinear disturbed system,
where
,
, and
are, respectively, model-related nonlinear functions, control inputs, and uncertainty disturbances.
By introducing the research results of [
37], the following disturbance observer can be designed to obtain the observed estimate of uncertainty.
where
is the estimate of
and
is the estimate of
;
and
represent observer gain.
The Lyapunov function for stability analysis is selected as follows:
where
.
By taking the derivative of the designed Lyapunov function and considering Assumption 2,
Substituting Equation (38) into Equation (41) yields
When , the following relationship holds: , , . According to LaSalle’s invariance theorem, , . The above derivation proves that the term can be effectively observed by the disturbance observer.
Through the above analysis, the disturbance observer designed for the position subsystem of Equation (25) is as follows:
where
is the estimate of the
items, and
is the estimate of
. It is worth noting that the observation
obtained by the observer above is the observation value of uncertainty
under the inertial frame. According to the relation
in Equation (25),
should be obtained via mathematical transformation.
Similarly, the disturbance observer designed for the attitude subsystem of Equation (29) is as follows:
where
is the estimate of the
items, and
is the estimate of
.
3.1.3. Adaptive Law Design
By introducing DO into the controller to compensate the system uncertainty, the robustness of the controller is improved. In addition, the introduction of DO greatly alleviates the requirement of switching gain in traditional sliding mode control. Further, an adaptive law is designed to compensate the observation error of the DO. The combination of the observer and the adaptive technique can effectively reduce the chattering of the system.
where
is the estimation value of
. The function of
is designed to compensate for the observation error, and
,
represents the adaptive law adjusting parameters.
3.1.4. Synthesis of Composite Robust Controller
Finally, the position composite robust controller can be designed as
where
is a positive number.
Considering that the control inputs
are under the inertial system, then the actual control input can be calculated as follows:
3.2. Attitude Controller Design Based on Quaternion
3.2.1. Transformation of the Euler Angle to the Quaternion Control Target
The relationship between and can be derived from Equations (30) and (31), and the relationship between and can be derived from Equation (29). Therefore, the control problem for the Euler angle and angular velocity can be transformed into the control problem for and .
The desired attitude angle is expressed as ; then, we can obtain and , .
According to the rules of quaternions, we satisfy the following relationships:
Let us define a new quaternion error equation:
; the control objective can be modified as follows:
That is, , , .
3.2.2. Design of Fast and Robust Feedforward PD Controller Based on the Learning Rate
According to the analysis in the previous section, the effect of controlling the quaternion and Euler angle in the attitude system can be converted equally. Generally speaking, the response speed of the inner loop of the cascade control system is faster than that of the outer loop, so the PD control frame with a simple structure and fast response is used to design the attitude quaternion controller. The PD control algorithm is a very classical linear control algorithm; the function of the proportion (P) term is to promote the control error to converge quickly to zero; the function of the differentiation (D) term is similar to the “brake”, for which the hysteresis error overshoot fluctuation is around 0. A basic feedforward PD control law is designed as follows [
16,
33]:
In order to further improve the convergence speed of control errors, the design idea of the learning rate is introduced into the design of the P-term parameters. At the same time, a disturbance observer is introduced to estimate the uncertainty of the attitude subsystem, which further improves the robustness of the feedforward PD algorithm.
Based on the idea of the learning rate, the design of the P term is as follows:
where
is the value of the basic P item,
is the learning rate, and its expression is
, which satisfies
,
.
3.3. Controller Stability Analysis
Theorem 1. Consider the position of subsystem (25) A, where an observer enhanced adaptive composite finite-time terminal sliding mode controller (45) is employed. Then, the sliding mode surface will reach the neighborhood of 0 in finite time, . Once the sliding mode surface is satisfied, the error also converges to 0 in a finite time, .
Proof of Theorem 1. The proof process has the following two steps: the first step proves that the arrival stage sliding surface can be reached, , in a finite time, . The second step proves that the tracking error in the sliding stage can converge to the neighborhood of 0 in finite time, . □
The Lyapunov function is designed as follows:
By taking the derivative of the Lyapunov function, we obtain
By substituting the derivative of the sliding mode variable (38) and the controller (45) into the above equation, one obtains
In the previous discussion, we discussed that a coaxial HAUV suffers from more complex perturbations and parameter perturbations than traditional UUVs and UAVs. The use of observer observation to compensate for external perturbations is not enough to completely offset the effect of complex perturbations. Therefore, adaptive technology is adopted to further compensate for the remaining residual terms , and is redefined as .
By substituting the adaptive law (44) into Equation (54),
According to Young’s inequality, the term
satisfies the following relation:
A further simplified representation can be obtained:
where
,
.
According to the Lyapunov stability criterion and Lemma 2, the above proof process only verifies the asymptotic stability of the system in a strict sense; then, and are uniformly and terminally bounded.
The actual finite time stability of the closed-loop system will be proved next. In order to prove the finite time convergence of error variables more precisely, the new Lyapunov function is chosen as
Taking the derivative of the Lyapunov function, we obtain
By substituting the derivative of the sliding mode variable and the controller into the above equation, we can obtain
Since it has been proved that the estimation error
and the sliding mode surface
are bounded, then
is also bounded. The above inequality can be further rewritten as
where
,
. According to (61), by using the Lyapunov stability criterion and Lemma 1, it can be concluded that the sliding mode manifold converges to zero in finite time. Once the end of the phase is reached, the error variable will converge to zero in a finite time along the sliding mode surface. The above proves the error convergence characteristic of the position subsystem in finite time.
Theorem 2. Consider the attitude subsystem (32), where the quaternion-based feedforward PD controller (50) is used. Then, the quaternion error and angular velocity error converge to 0 progressively, which also ensures that the transformed Euler angle tracking error converge to 0 asymptotically.
Proof of Theorem 2. The Lyapunov function is designed as
where
,
.□
According to the cross-product rule, , and as a result, , . Let ; then, , and .
By taking the derivative of
and
separately, we obtain
According to the above calculation, the derivative of the Lyapunov function can be obtained. Then, the controller (50) is substituted into (63) to obtain the following equation:
Because of
,
,
. According to Lassale’s theorem, if we verify
, then
; thus,
. We can further obtain
. When
,
,
,
; this also ensures that the Euler angle tracking error
gradually converges to 0 [
35,
51,
52].
4. Simulation and Discussion
Based on the above theoretical analysis, we theoretically analyze the effectiveness of the observer enhanced cascade SMC-PD algorithm. In this section, some simulation results are given to prove the performance of the proposed control method. Next, we conducted simulations of HAUV motion control and selected the two most typical working conditions (3D spiral water exit and vertical climb water exit) to verify the robustness of the proposed control strategy in dealing with coaxial HAUV cross-media motion with environmental disturbance and parameter perturbation. The controller parameters used in our simulation are given in
Table 1.
The wind, wave, and current interference parameters used in the simulation are given in
Appendix A. At the same time, the lumped uncertainty is described in advance as the form of a random function:
The initial status is set as , considering the constraint rule condition of quaternion ; take the initial state of the quaternion as . Because of the transformation relationship, the initial value of the defined quaternion is equivalent to the initial value of the defined Euler angle. The initial value of the angular velocity is set as .
In order to conduct a comparative study, the basic controller in [
16] was selected as the control group to verify the superiority of the designed DO-enhanced SMC-PD controller. The basic controller adopts the PID-PD control algorithm, that is, the position loop and the attitude loop adopt the gain-adjustment PID algorithm and PD algorithm, respectively. The following two classical cases (spiral cross-domain maneuver and vertical cross-domain maneuver) were simulated comprehensively to explain the superiority of our proposed controller and compare which cross-domain maneuver trajectory is better.
4.1. Working Case 1 (Spiral Climbing Trajectory)
The trajectory of selected working case 1 is shown in the following equation:
The main purpose of the trajectory design is to test the ability of the controller to track the trajectory in 3D space.
Figure 4 and
Figure 5 show the tracking response of the position loop with the proposed controller and basic controller. It can be clearly seen that the proposed composite robust controller performs well under time-varying system model parameters and external disturbances.
Figure 4 shows the tracking evolution results of the three channels of translation motion over time. Although a good tracking effect can be obtained for each channel under the action of two controllers, it can be seen from local magnification that the HAUV can track the desired trajectory more accurately under the proposed controller. It can be seen in
Figure 5 that the HAUV trajectory starts from underwater through the wave surface and spirals up into the air, showing a good 3D tracking effect in the whole process.
Figure 6 shows the effect diagram of the proposed observer’s observation results for the unknown disturbance and the set value comparison. It can be seen in the estimation results that although the initial value of the observer is quite different from the observed disturbance value, and the accurate observation value is quickly obtained. The estimation error can be quickly reduced, which proves that the proposed observer can provide reliable disturbance estimation values for the controller design. In the local magnification image, the observer produces large fluctuations in the initial stage, and the actual observation error is not strictly 0 in the steady state stage. Here, the adaptive parameter evolution results after removing DO are also tested.
Figure 7 shows the time evolution of the designed adaptive law, and it can be observed that the adaptive parameters of the position loop converge to a bounded constant after initial growth. When the adaptive law and the disturbance observer work together, the uncertainty compensation in the controller is assumed by the observer, the adaptive law plays an auxiliary role, and the adaptive parameter estimation is small. When the observer is removed, the adaptive law plays the main role, the estimated value is large, and obvious chattering phenomena may occur.
Figure 8 and
Figure 9 show the attitude-tracking effect of the proposed inner loop controller. It can be observed in
Figure 8 that the controller can drive the HAUV to accurately track the desired attitude angle. It can be seen in the locally enlarged image that the attitude angle tracking curve fluctuates more obviously under the action of the controller in reference [
16].
Figure 9 shows that the four parameters of the quaternion can accurately track the expected quaternion value.
Figure 10 shows the tracking error of the quaternion. When the inner loop subsystem is disturbed, the DO-enhanced quaternion PD controller can obtain a better tracking effect in both convergence speed and steady-state performance under the DO compensation effect.
Figure 11 shows the evolution process of the learning rate parameter. It can be observed that the learning rate parameter increases rapidly in the initial stage, which is also the reason for the faster convergence rate of error. The analysis-based reason is that the error is the largest in the initial stage, and the error change rate is also large under the drive of the controller, which puts the learning rate parameter in a large state. With the rapid reduction in the control error, the learning rate parameter also rapidly decreases to the steady-state value, which indicates the excellent robustness and control accuracy of the controller from the side. Only when the error and error change rate are low does the learning rate parameter not experience large fluctuations.
Figure 12 shows the evolutionary effects of position and attitude-tracking errors. Obviously, the error of the position loop and the attitude loop converge near 0. This also shows that the controller that we designed has excellent robustness and low error fluctuation. However, [
16] only adopts the classical linear controller, which lacks sufficient robustness, resulting in the control error always fluctuating greatly.
Figure 13 shows the change process of the control signal. It can be seen that in the simulation process, the control signal variation trend calculated by the two controllers is similar. The first 20 s of the control inputs
are obviously smaller than the last 30 s because the first stage is underwater maneuvering, where the HAUV achieves buoyancy compensation, and the lift output
is small. In the latter stage, the HAUV enters the air from the water, the buoyancy disappears, and the total lift force has to overcome the influence of gravity, so the output value increases. Combined with the performance of the control error, the two controllers can change the output in real time according to the working state of the HAUV, but the proposed controller with superimposed DO obtains a more precise control signal.
4.2. Working Case 2 (Vertical Climbing Trajectory)
In the previous section, we tested the performance comparison between the designed controller and controller in [
16]. The performance of the controller after the disturbance observer is removed is tested here, and other control parameters are the same as the controller designed in this paper. The trajectory of working case 2 is shown in the following equation. The vertical trajectory was chosen to test the ability of the coaxial HAUV to perform the fastest transmedium maneuvering in a disturbed environment.
Some simulation results for case 2 are provided in
Figure 14,
Figure 15,
Figure 16,
Figure 17,
Figure 18,
Figure 19,
Figure 20,
Figure 21,
Figure 22 and
Figure 23. Considering that the water surface of the real ocean environment is undulating, the spiral ascent under the wave water condition may cause the body to hit the wave and lead to the failure of take-off. Therefore, a cross-domain maneuver strategy of vertical climbing is adopted for condition 2.
Figure 14 shows the tracking evolution results of fixed-point climbing, which shows that the translation subsystem can still obtain better tracking results with DO enhancement. It can be seen in
Figure 15 that the HAUV starts from underwater and passes through the wave surface vertically, showing a good 3D tracking effect.
Figure 16 illustrates the rendering of the proposed observer for the unknown disturbance compared with the set value. In the results of disturbance estimation, the designed observer can quickly obtain the exact observation values. In particular, compared with the position loop, the observation value of the attitude loop observer fluctuates greatly in the initial stage. In future work, the optimal design should be carried out to avoid such situations.
Figure 17 shows the time evolution results of the designed adaptive law, and the adaptive parameter estimates are stable and bounded. At the same time, the adaptive parameter values of the two controllers are obviously different, which means that the position controller adopted in this study can reduce chattering.
Figure 18 and
Figure 19 show the attitude-tracking effect of the proposed inner loop controller; it can be observed that the HAUV tracks the desired Euler angle quickly, and the four parameters of the quaternions can accurately track the expected quaternions. At the same time,
Figure 20 shows the tracking error of the quaternion and the fluctuation of the error in a small neighborhood of 0. The above results show that the controller based on observer enhancement technology can obtain a better tracking effect in both steady-state error and convergence characteristics.
Figure 21 shows the change process of the learning rate parameter under working case 2. In addition to the rapid increase in parameters in the initial stage, the learning rate parameters in the whole process are stable near the initial value, indicating that the control error of the controller is very small.
Figure 22 shows the evolutionary effects of position and attitude-tracking errors. It is obvious that the controller with DO has better error convergence characteristics.
Figure 23 shows the change process of the control signal after calculation. It can be seen that in the process of cross-media simulation, the changes in the four control inputs are stable and can be changed in real time according to the control target, and the control signal output of the adopted controller is more accurate.
In general, vertical cross-domain maneuvering is a more conservative and robust strategy, which can be realized with a small attitude change. The horizontal maneuvering ability can be abandoned in bad ocean conditions to prioritize the successful completion of cross-domain processes.