1. Introduction
With the increasing interest of scientific researchers and industries in the underwater world, autonomous underwater vehicle (AUV) systems have gained great importance due to their potential to substantially reduce the possible risks and operational costs of underwater missions. Since the technologies working with the data infrastructure have become widespread, underwater vehicles that can perform data collection and underwater observation tasks without the need for human intervention have become essential devices for both commercial and scientific uses.
A fully autonomous vehicle must include guidance, navigation, and control (GNC) software. GNC software architecture refers to the design and organization of software used for the control and navigation of autonomous systems such as AUVs, robots, and spacecraft. GNC software architecture typically includes modules for trajectory planning, state estimation, guidance and control, and monitoring and fault detection [
1,
2]. Additionally, autonomous vehicles are often capable of performing multiple missions through their multi-mission management software which increases the flexibility and versatility of the system and allows it to perform a wider range of tasks than a single-mission system [
3,
4]. In this study, the main focus will be on designing a novel model-free trajectory tracking controller for AUV systems.
The unpredictable, complex, and disruptive nature of the underwater environment, along with the highly non-linear and cross-coupled system dynamics, causes disturbances and uncertainties that must be considered in the AUV controller design. In order to perform successful autonomous missions in the underwater environment, a trajectory tracking control system must be utilized in the AUV system, with high precision, satisfactory disturbance rejection, fault tolerance, and robustness properties.
The conventional PID controller is frequently employed by AUV applications, including commercial and scientific uses, due to its simple and effective structure [
5,
6,
7,
8]. Despite the cost-effectiveness and implementation simplicity of the PID algorithm, its control performance degradation, especially when the plant is highly non-linear and threatened by the various environmental disturbances, has been reported by numerous studies. Hence, more robust control algorithms are often preferred to guarantee the stable performance and robustness of the controllers. Sliding-mode control has become one of the most favorable non-linear control algorithms for use in the AUV system due to its insensitivity against model uncertainties and external disturbances. Kim et al. [
9] proposed an integral sliding-mode controller to stabilize the AUV suffering from the model uncertainties and unknown environmental disturbances, whereas Garcia et al. [
10] proposed a model-free high order sliding-mode controller with finite-time convergence and compared it to the regular PID controller. Duan et al. [
11] formulated the Hamilton–Jacobi–Isaac equation for the AUV trajectory tracking problem, and designed a reinforcement learning-based model-free controller to obtain optimal trajectory tracking performance. Negahdaripour et al. [
12] introduced a sliding-mode controller based on estimated hydrodynamic coefficients. Santos et al. [
13] used the instantaneous power data provided by the propulsion system to tune the backstepping sliding-mode controller to achieve energy efficiency and robust movement on the vehicle. Liang et al. [
14] designed a novel nonlinear backstepping technique based on the virtual control variables. Gong et al. [
15] designed a cascaded control loop wherein backstepping control is designed for the outer loop and a neural network controller is used in the inner loop to solve optimal trajectory tracking control problems of AUV systems. The model of predictive control has been extensively studied for AUV systems in the literature due to its robustness and good handling of nonlinearities [
16,
17,
18]. Shen et al. [
19] developed a novel Lyapunov-based model predictive controller framework by utilizing online optimization to enhance trajectory tracking performance in the presence of environmental disturbances, and demonstrated the results comparatively. In order to relieve the so-called chattering phenomenon of the control input of the AUV in the presence of the environmental disturbance and the initial tracking error, Liu et al. [
20] proposed a trajectory tracking control strategy based on a virtual closed-loop system. The virtual closed-loop system is used to generate a virtual reference trajectory for the AUV to follow instead of the originally desired trajectory in this study. Additionally, they stated that the new design achieved obvious enhancements in terms of the smoothness of the control input and trajectory tracking precision when measurement noise is considered.
The model-free intelligent-PID control algorithm proposed by Fliess and Coin [
21] uses continuously updated local modeling via the unique knowledge of the input–output behavior in order to contribute to the control law used within. Therefore, it can handle the non-linear, cross-coupled, and unmodeled dynamics of the controlled system without the need for information about the plant parameters. That property makes the model-free control a superior option to utilize on AUV control systems. The idea behind developing the proposed i-PID with PD feedforward controller is improving the model-free i-PID control proposed in [
21] to have better trajectory tracking precision, external disturbance rejections, and initial tracking error compensations and therefore to overcome the disruptive nature of the underwater environment. The model-free i-PID control algorithm has been implemented in various applications in the literature since it was first introduced. Barth et al. [
22] designed a model-free control algorithm based on the model-free control technique proposed by [
21] to stabilize the entire flight envelope, including vertical take-off, landing, transition, and forward flight of hybrid UAVs. Effective control performance of the model-free i-PD controller for the entire flight envelope and excellent disturbance rejections during the critical flight phases are reported in this study. Agee et al. [
23,
24] designed a model-free i-PI controller to solve the trajectory tracking problem of the flexible robot manipulators. Baciu and Lazar [
25] presented a new method for tuning i-PID controllers based on an iterative feedback tuning method, and they experimentally evaluated the performance of an i-PID controller tuned by the presented method. Since the high-fidelity modeling of an AUV is a challenging process due to the complex and unpredictable operating environment, model-free control techniques are expected to become more popular in the underwater robotics field in the near future.
In this paper, a model-free i-PID control approach is developed for AUVs, and an i-PID with a PD feedforward (2 DOF i-PID) controller structure is constructed that utilizes the extra PD feedforward controller on all six motion axes to achieve better disturbance rejections and initial tracking error compensation. However, due to the high cross-coupling in the internal dynamics of the AUV system, utilizing the extra PD feedforward loop on all six motion axes causes trajectory tracking precision loss, especially on the orientation axes. Therefore, a novel hybrid controller is developed by combining the i-PID with PD feedforward and i-PID controllers for AUVs to solve the trajectory tracking problem. The proposed hybrid controller framework utilizes the i-PID with PD feedforward controller on the linear motion axes
(), and the i-PID controller on the angular motion axes (
). Since it does not involve a feedforward loop in the angular motion controllers, it can maintain angular trajectory tracking precision while taking the advantages of the extra feedforward controller in the presence of external disturbances and cross-coupled dynamics. The mathematical derivation of the hybrid controller is presented. A mathematical model involving the ocean current dynamics of an AUV is derived in order to obtain better fidelity when investigating ocean current effects, and a model-based ocean current observer is utilized for improving the control performance of the controller against ocean currents. The thruster identification process is addressed, and a transformation matrix between the thruster space and operational space is derived to achieve optimum thrust generation and distribution on the LIVA AUV system. The tuning parameters of the proposed controllers are optimized as described in [
26] under several constraints by performing constrained optimization using a nonlinear programming solver such as
fmincon in the MATLAB optimization toolbox. The trajectory tracking control performance of the new design is comparatively examined in terms of robustness, tracking precision, disturbance rejection, and energy consumption by conducting computer simulations in the presence of various disturbances and conditions, including worst-case scenario. In order to indicate the maneuvering performance of the new design, a compelling trajectory is also preferred. The proposed hybrid controller performance is compared with the 2 DOF i-PID, i-PID and PID controllers, and the results are discussed. The main contributions of this paper are summarized as follows.
The model-free i-PID control approach is developed for the AUVs in the existing literature.
The 2 DOF i-PID controller framework is constructed for the trajectory tracking control of autonomous vehicles.
A novel model-free hybrid controller design is proposed. The tracking precision, disturbance rejection, and robustness properties of the tracking control are significantly improved, and trajectory tracking stability is guaranteed with the new design.
The paper is organized as follows. In the section “Mathematical Model”, an AUV mathematical model is derived, a model-based ocean current observer is designed and a transformation matrix between the operational space and thruster space is formulated for the LIVA AUV. In the section “Control Strategy”, the control strategy is briefly described, the model-free i-PID controller development is addressed, and a novel hybrid control framework is proposed. In the section “Results and Performance”, the simulation results are discussed in detail. Finally, the conclusions are given in the last section.
3. Control Strategy
The model-free i-PID controller is developed for all six motion axes of the AUV system based on the model-free control technique proposed by [
21], hence it has no information about the AUV plant model (e.g., mass, inertia, hydrodynamic coefficients, etc.). Afterward, the i-PID with PD feedforward (2 DOF i-PID) control framework is constructed by modifying the developed i-PID controller to include an extra PD feedforward loop on all six motion axes in the controller structure. Finally, a novel hybrid controller framework is developed for the AUVs by combining the developed i-PID with PD feedforward and i-PID controllers.
The idea behind developing the novel controller framework is to take the advantages of the disturbance rejection, initial tracking error compensation, and robustness capabilities of the two-DOF control architecture without experiencing loss of precision or instabilities in the cross-coupled and unactuated motion axes. In the novel controller framework, the linear motion axes () of the AUV are controlled by the three i-PID with PD feedforward controllers, and the angular motion axes () are controlled by the three i-PID controllers.
3.1. Model-Free i-PID Controller Design
Writing reliable differential equations for mathematically representing a plant model is always difficult and time-consuming. To summarize the main theoretical idea that the model-free control is based on, the model-free control uses continuously updated local modeling via unique knowledge of the input–output behavior instead of using complex differential equations [
21].
Assuming that the relationship between the inputs and outputs of a given system is represented by an unknown finite order differential equation, in the model-free approach, this mathematical model is represented by a structure called the ultra-local model, which is only valid during very short time intervals [
21].
Parameter
h is the derivation order which is greater than or equal to 1, and
a is the non-physical constant parameter.
F is the quantity representing the real dynamics of the AUV as well as the external disturbances for each axis of six DOF. Hence, the accurate estimation of the
F, defined as
, has great importance for achieving better model-free control performance. The numerical value of
F at any time instant is estimated by using the constant
a, control input
u and the output
. Assuming
h = 2 in (25) yields:
Then, closing the loop via an intelligent PID, we obtain:
where:
y* is the reference trajectory,
e = y − y* is the tracking error, and
KP, KI, KD are the controller tuning gains.
The block diagram representation of the developed i-PID controller structure is given in
Figure 6 to represent the key concepts of the model-free i-PID control approach visually.
In the real-time implementation of the proposed control architecture, the trajectory generation, trajectory tracking control, ocean current observer and thruster model subsystems are on the software level. The force demands obtained by using (21) in the thruster model subsystem are converted into PWM signals using the chart in
Figure 4, and sent directly to ESCs of the thruster motors which are on the hardware level, to produce required torques and moments. The explained relation applies for all controller structures in this paper.
3.2. i-PID with PD Feedforward (2 DOF i-PID) Controller Design
Utilizing an extra feedforward loop in the trajectory tracking controller structure is a very common method in the literature [
26,
32,
33], especially when high external disturbances are present in the operating environment. The main idea of using the feedforward structure in trajectory tracking control is enhancing the strength of the feedback system against external disturbances and model uncertainties using a feedforward controller.
The PD feedforward control law can be derived for a SISO system as follows:
where
and
are the feedforward controller tuning parameters. Combining (27) and (28) yields the complete i-PID with PD feedforward control law. The control law is then extended by defining six SISO controllers for six motion axes of the AUV. Finally, the i-PID with PD feedforward controller is derived as follows for six-DOF AUV motion control.
The developed control structure is summarized in
Figure 7.
3.3. Hybrid Controller Design
An underwater vehicle encounters many different forces and disturbances when operating in the underwater environment; these are generally unexpected and nontrivial to mathematically represent. Therefore, considering these forces and disturbances to achieve robust and stable motions of the AUV becomes a must. However, obtaining these forces experimentally is a difficult and expensive process.
The proposed hybrid controller framework is developed to satisfy the trajectory tracking control requirements of the AUV system in the presence of the disruptive conditions of the underwater environment. Since the proposed control algorithm has no information about the plant and external disturbances, the possible expenses of plant modelling and experimenting with the external forces of the underwater environment are saved. The proposed hybrid i-PID controller structure consists of two subparts as the position
and the orientation (
) controllers. The position controller consists of the three i-PID with PD feedforward controllers which employ the i-PID controller as a feedback controller and the conventional PD controller as a feedforward controller. The feedforward structure provides better disturbance rejections on the axes wherein the motion generation is desired. Additionally, the axes on which the motion generation is undesired must be kept stable on the AUV to avoid the system becoming unstable. The instability avoidance problem becomes more crucial when considering that the Euler transformation used in the kinematic equations involves singular points in its internal mathematics which must be avoided during operations. Hence, the feedforward structure is not employed in the orientation controller of the hybrid design to achieve better overall trajectory tracking precision and to reduce the total tuning parameter number on the system. Consequently, the orientation controller consists of the three i-PID controllers.
Figure 8 shows the main ideas of the proposed hybrid control architecture.
Considering the model-free control algorithms have been developed for single-input–single-output (SISO) systems and the LIVA AUV has been modelled by six inputs (6 thrusters) and six outputs (), the proposed hybrid control architecture comprises six SISO controllers.
The linear motion axes PD feedforward input
can be defined as follows:
where
. Combining (27) and (30) yields the complete i-PID with PD feedforward control law
for the linear motion axes
as follows:
By utilizing (27), the complete i-PID control law for the angular motion axes
can be defined by
:
where
,
and
. The resulting
is the amount representing the sum of the real dynamics of the AUV and external disturbances in each axis of the six DOF. Thus, we can define six-DOF hybrid control law in a vector representation as follows.
4. Results and Performance
To demonstrate control performance improvement achieved by the novel controller and inspect the resulting behavior under the different conditions and disturbances, the computer simulations were conducted for the PID, i-PID, 2 DOF i-PID, and hybrid controllers. The control inputs and trajectory tracking errors for all controllers are shown, and the tabulated results are discussed individually for all simulation cases in this section.
To evaluate and compare the performances of the controllers, some performance metrics were used. These are the integral of absolute error (IAE), the integral of absolute error multiplied by time (ITAE), the integral of the square of the control input (ISCI), and the integral of variance of the control input (IVCI). The control performance indexes are given in Equations (34)–(37).
where
denotes the real tracking error
and
denotes the control input produced by the
thruster. The reference trajectory used in the simulations was designed to be the hardest possible trajectory, and includes several maneuvering sequences to analyze controller performances when the torque demand and speed are transiently approaching the physical limits of the AUV.
In computer simulations, the current speed was generated as a random number with
mean and
variance. The ocean current angle components
and
were also generated as a random number with
mean and
variance. Sampling frequency and simulation times of 1 kHz and 100 s were used, respectively. The additive measurement noise used here was set as zero-mean Gaussian noise, with a maximum amplitude of
in position and
in orientation measurements. The
and
observer gain matrices were chosen as
and
. The thruster limits are defined as
,
, and the thruster coefficient matrix
The non-physical constant parameter
in (25) is found by trial and error by conducting computer simulations. The tuning parameters of the controllers, i.e.,
,
,
,
and
are found by performing optimization, as described in [
26] in the MATLAB optimization toolbox, using a nonlinear programming solver such as the
fmincon function.
4.1. Trajectory Tracking Control Simulation
The reference trajectory used in this simulation was defined by
, where
,
and
. The trajectory tracking simulation was conducted only in the presence of random ocean currents. The measurement noise, external disturbances, thruster malfunction, and model parameter uncertainty were not considered in this case. The simulation results are given in
Figure 9 and
Figure 10.
Considering the six-DOF tracking errors along the trajectory, it can be seen that whenever the vehicle tried to accelerate in X or Y axes, the ocean current affected the vehicle behavior heavily, and the i-PID controller was not able to compensate it sufficiently compared to the hybrid and two-DOF i-PID controllers. Nevertheless, the i-PID controller completed the trajectory without a serious deviation. The two-DOF i-PID and hybrid controllers responded to the ocean current effects very well, and the extra feedforward loop provided excellent ocean current disturbance rejection to the vehicle. Additionally, by looking at the control inputs, it can be observed that the controllers including the feedforward loop responded to the initial tracking errors quickly and provided extra initial tracking error compensation to the AUV system. However, as can be seen from
Table 2 and the IAE values of the two-DOF i-PID controller, the feedforward loop did not provide a better trajectory tracking precision on the angular motion axes. The tracking precision of the Yaw angle (
), which is coupled with the X and Y axes, was significantly corrupted by the extra feedforward loop in the two-DOF i-PID controller. The hybrid controller has the least value in terms of ISCI as can be seen in
Table 3, indicating that in the presence of the random ocean current effects, the hybrid controller consumed less energy compared to the other controllers while providing the best overall trajectory tracking precision.
4.2. Worst-Case Trajectory Tracking Control Simulation
The reference trajectory used in this simulation was redefined by
, where
,
,
and
. The trajectory tracking simulation was conducted in the presence of the measurement noise, random ocean currents, external disturbances, thruster malfunction and model parameter uncertainty. The external disturbances were applied as
impulse disturbance between the 50th and 60th seconds, and
step disturbance at the 75th seconds of the simulation. In addition, the thruster
malfunctioned at the 25th second of the simulation, and its capacity was reduced to 25% of its full range. The 30% model parameter uncertainty was applied, and the measurement noise was also considered. The controller performances are shown in
Figure 11 and
Figure 12 and the performance measures are presented in
Table 4 and
Table 5.
Considering the LIVA AUV platform includes cross-coupled motion axes and it is operating in the highly nonlinear underwater environment, generating a stable motion in one axis also contributes to other motion axes and enhances the overall trajectory tracking performance. The main contribution of the hybrid controller to the model-free i-PID control is taking the disturbance rejection and fast initial tracking error compensation advantage of the extra feedforward loop in the linear motion axes without causing any disruption on the coupled angular motion axes. Therefore, it can be seen that hybrid controller achieved better overall tracking performance as expected, and it has the least values in terms of IAE and ITAE, except for the X-axis. As can be seen that the PID and two-DOF i-PID controllers seriously deviated when the external disturbances were applied. The feedforward loop in the angular motions control law of the two-DOF i-PID caused losses of precision even worse than in the first simulation when the Yaw () motion trajectory tracking is requested. The i-PID controller showed relatively poor continuous tracking precision compared to the other controllers. The two-DOF i-PID controller has the least value in terms of ISCI, meaning that it completed the trajectory with the least energy consumption. Despite the i-PID controller providing smoother control inputs and the two-DOF i-PID consuming less energy than the hybrid controller, the advantages of the hybrid controller in terms of tracking precision and robustness are obvious compared to the other controllers. Additionally, as can be seen in the simulation results, under the cumulative effects of the applied external and internal disturbances to AUV, the hybrid controller achieves much better results. It is important to note that the i-PID control relies heavily on the accurate estimation of , so the performance of the model-free control may degrade when is not predicted with sufficient accuracy.
The presented controller comparison is visualized using MATLAB/Simulink and Unreal Engine 4 environments; the relevant video can be found in [
31].