Content area

Abstract

An adaptive sliding mode controller (SMC) design with a reinforcement-learning parameter optimization method is proposed for variable-speed trajectory tracking control of underactuated vessels under scenarios involving model uncertainties and external environmental disturbances. First, considering the flexible control requirements of the vessel’s propulsion system, the desired navigation speed is designed to satisfy an S-curve acceleration and deceleration process. The rate of change of the trajectory parameters is derived. Second, to address the model uncertainties and external disturbances, an extended state observer (ESO) is designed to estimate the unknown bounded disturbances and to provide feedforward compensation. Moreover, an adaptive law is designed to estimate the upper bound of the unknown disturbances, ensuring system stability even in the presence of asymptotic observation errors. Finally, the Twin-Delayed Deep Deterministic Policy Gradient (TD3) algorithm is employed for real-time controller parameter tuning. Numerical simulation results demonstrate that the proposed method significantly improves the trajectory tracking accuracy and dynamic response speed of the underactuated vessel. Specifically, for a sinusoidal trajectory with an amplitude of 200 m and a frequency of 0.01, numerical results show that the proposed method achieves convergence of the longitudinal tracking error to zero, while the lateral tracking error remains stable within 1 m. For the circular trajectory with a radius of 300 m, the numerical results indicate that both the longitudinal and lateral tracking errors are stabilized within 1 m. Compared with the fixed-value sliding mode controller, the proposed method demonstrates superior trajectory tracking accuracy and smoother control performance.

Full text

Turn on search term navigation

1. Introduction

Driven by the significant advancements in artificial intelligence (AI) and machine learning (ML) technologies, underactuated vessels have shown considerable potential in applications such as marine surveying, hydro-meteorological observation, and transportation [1]. Compared with traditional fully actuated vessels, underactuated vessels are gaining attention due to their simplified structure, reduced energy consumption, and cost advantages. However, the reduction in the number of actuators (propellers or rudders) results in a decrease in the system’s controllable degrees of freedom (DOF), which makes motion control in complex marine environments more challenging. The motion control of underactuated vessels primarily includes trajectory tracking, dynamic positioning, and automatic berthing. Typically, these control methods are implemented on embedded system platforms; for example, the Robot Operating System (ROS). By executing control algorithms in real time on an embedded controller, both a fast response and high-precision control should be satisfied. Furthermore, the compact size and low power consumption of embedded devices provide optimal hardware support for the deployment of vessel control systems. With the rapid development and application of unmanned vessels, trajectory tracking control has become critical for enhancing the safety and efficiency of unmanned vessel operations in marine environments. Trajectory tracking requires the vessel to precisely follow a predetermined path and to reach the target position within the specified time frame. In practice, the vessel must adjust its rudder torque and propeller thrust to correct its position and heading in real time, compensating for deviations between the desired trajectory and actual trajectory caused by external disturbances such as wind, waves, and currents. Due to the nonlinear characteristics, large inertia effects, and model uncertainties of the underactuated vessel, the development of robust trajectory tracking control algorithms with a fast response, high accuracy, and effective disturbance rejection has become crucial for solving the motion control problems of underactuated vessels.

Many scholars have conducted studies on the control of trajectory tracking. Classical linear control methods, such as PID controllers [2,3,4,5,6] and the Linear Quadratic Regulator (LQR) [7,8,9,10], have proven effective in enhancing the tracking accuracy as well as in improving system stability and robustness. However, these methods exhibit limited adaptability for complex systems and typically rely on precise system models. In contrast, SMC exhibits superior robustness and adaptability in environments with severe nonlinearities and high disturbances [11,12,13,14,15]. Consequently, SMC has become an effective approach for achieving precise control of trajectory tracking.

Despite the numerous advantages of SMC, it also has certain limitations. For instance, high-frequency switching inherent in SMC can lead to sharp fluctuations in the control signal, which may negatively impact the actuators. Additionally, designing an appropriate sliding surface for complex systems often requires substantial theoretical and empirical foundations. Moreover, when the system state has not yet reached the sliding surface, the initial performance of SMC may be suboptimal, leading to less effective control. To address these challenges, extensive research has been dedicated to enhancing the performance and expanding the applicability of SMC. Mao et al. [16] addressed the challenges of input distribution uncertainty and system uncertainties in nonlinear systems by designing an observer to estimate and compensate for these uncertainties. They proposed an adaptive SMC to achieve stable control of nonlinear systems. Zhou et al. [17] focused on second-order nonlinear systems and designed a periodic delayed sliding mode surface, introducing a non-singular SMC to ensure that the system states converge to zero within a predetermined time. Wang et al. [18] tackled issues related to switching mechanisms, nonlinearity, and uncertainties in systems by proposing a switching fuzzy integral sliding mode surface. The effectiveness of this approach was demonstrated through theoretical analysis and numerical validation. Gandikota et al. [19] addressed nonlinearities and model mismatches by integrating adaptive mechanisms with super-twisting SMC, thereby enhancing system robustness and tracking performance. Numerous researchers have made significant improvements to SMC in complex nonlinear environments, leading to their widespread application in various engineering problems [20,21]. Similarly, SMC has also gained broad recognition in the field of vessel trajectory tracking control. Herman [22] addressed the trajectory tracking control problem for underactuated marine vehicles by designing a first-order integral sliding mode surface combined with a constant-speed reaching law. He proposed an adaptive integral SMC, achieving trajectory tracking for vehicles with symmetric inertia matrices. Zhu et al. [23] developed an exponential terminal SMC for underactuated unmanned surface vessels (USVs). Simulation results demonstrated that compared with a global integral SMC, the proposed exponential SMC exhibited superior convergence and robustness. Wang et al. [24] focused on the trajectory tracking problem in the horizontal plane of underactuated autonomous underwater vehicles (AUVs) and proposed a non-singular fast terminal SMC incorporating an exponential reaching law, which improved tracking speed and was validated through simulations. Xu et al. [25] introduced a non-singular terminal SMC for underactuated USVs. They designed a nonlinear ESO to estimate complex environmental disturbances, effectively addressing input saturation and enabling trajectory tracking control under unknown external disturbances. Wu et al. [26] proposed a dual-loop control structure for the three-dimensional trajectory tracking of underactuated AUVs. The inner-loop controller, based on non-singular integral terminal SMC, ensured rapid trajectory tracking and finite-time convergence. Lei et al. [27] presented an adaptive fast non-singular terminal SMC for underactuated vessel trajectory tracking, accelerating error convergence and avoiding singularity issues. They employed the dynamic surface control method to address the “differentiation explosion” problem, used an adaptive law to estimate the upper bound of unknown disturbances, and mitigated chattering by substituting the conventional sign function with a hyperbolic tangent function. Sun et al. [28] designed a dual-loop control system for trajectory tracking of underactuated USVs equipped with vector propulsion systems. They introduced a non-singular integral terminal SMC approach and approximated unknown disturbances using the minimal learning parameter theory, achieving precise control of the USVs. Zhang et al. [29] addressed finite-time trajectory tracking control for surface vessels affected by dynamic uncertainties and unknown time-varying disturbances. They used adaptive neural networks to approximate dynamic uncertainties and estimated error bounds through adaptive laws. Zhang et al. [30] tackled the trajectory tracking control problem for underactuated autonomous surface vessels subject to dynamic uncertainties and nonlinear external disturbances. They employed neural networks and low-frequency learning techniques to estimate and approximate system uncertainties effectively.

In summary, various improvements have been proposed by scholars to mitigate the chattering problem in SMC. These include the use of saturation functions, exponential approaching laws, and second-order sliding mode control, which effectively reduce the impact on actuators by smoothing the switching process. In terms of the sliding surface design, researchers typically combine Lyapunov stability theory with practical engineering experience to optimize the parameter settings of the sliding surface, thereby adapting it to the dynamic characteristics of different systems. Moreover, to enhance the performance of SMC during the initial approaching phase, some studies have integrated SMC with other control methods, such as adaptive control, fuzzy control, or deep reinforcement-learning algorithms. These hybrid control strategies significantly improve the response performance of SMC in complex environments. Therefore, this paper proposes a TD3-tuned SMC integrated with an ESO to estimate and feedforward compensate for unknown disturbances. Furthermore, existing research has mostly focused on constant-speed trajectory tracking. However, in practical vessel motion, the vessel’s speed often undergoes significant variations, especially during the automatic berthing process, where the speed changes are particularly pronounced. Endo [31] designed a corresponding berthing controller based on the typical steps of berthing (e.g., “full speed—half speed—slow speed—stop”) and established the relationship between vessel speed and propeller speed through a questionnaire survey. This approach was successfully applied in the controller design. In this context, this paper proposes a variable-speed trajectory tracking controller that meets the maneuvering requirements for port entry and exit, with the desired speed designed to follow an S-curve acceleration/deceleration profile.

This paper investigates the variable-speed trajectory tracking control problem for underactuated vessels, with the following main contributions: (1) In response to the maneuvering requirements during port entry and exit, a desired speed profile based on an S-curve acceleration/deceleration process is designed, and a variable-speed trajectory tracking controller is developed to address practical requirements; (2) An ESO is designed to estimate and compensate for unknown disturbances via feedforward control, and global system stability is analyzed using Lyapunov functions; (3) The TD3 algorithm is proposed to optimize the SMC parameters. By employing multiple networks and selecting the minimum value, the issue of value overestimation in reinforcement learning is addressed. Additionally, the delayed update strategy improves the stability of the actuator network, resulting in smoother parameter outputs from the SMC.

The remainder of this paper is organized as follows. Section 2 establishes a 3-DOF vessel model and defines the trajectory tracking problem. Section 3 utilizes an ESO to estimate and compensate for unknown disturbances through feedforward control and designs a SMC with TD3 algorithm optimization. Section 4 introduces the overall structure of the control system. Section 5 validates the effectiveness of the proposed algorithm through simulation results. Finally, Section 6 presents the conclusions.

2. Problem Formulation and Preliminaries

2.1. Problem Formulation

Before designing the trajectory tracking controller, this paper establishes an underactuated vessel’s 3-DOF control model. The model considers surge, sway, and yaw motions, providing the foundation for the subsequent control system design. The body-fixed coordinate system {b} and the inertial coordinate system {n} are shown in Figure 1, denoted as Obxbybzb and Onxnynzn, respectively. The body-fixed coordinate system {b} typically has its origin at the vessel’s center of gravity, with Obxb pointing along the vessel’s heading direction on the horizontal plane, Obyb pointing to the vessel’s starboard side, perpendicular to the vessel’s longitudinal profile, and Obzb pointing vertically upwards. The inertial coordinate system {n} typically has its origin at the earth’s center, with Onxn pointing toward the north, Onyn pointing toward the east, and Onzn pointing toward the center of the Earth. The vessel’s control model is then given by Equations (1) and (2):

(1)x˙=ucosψvsinψy˙=usinψ+vcosψψ˙=r

(2)u˙=fuu,v,rm11+m22m11vr+τum11+τwum11v˙=fvu,v,rm22m11m22ur+τwvm22r˙=fru,v,rm33+τrm33+τwrm33

Here, u, v, and r denote the longitudinal linear velocity, lateral linear velocity, and yaw angular velocity, respectively, of the vessel in the {b} coordinate system. x, y, and ψ denote the longitudinal coordinate, lateral coordinate, and yaw angle, respectively, of the vessel in the {n} coordinate system. τu and τr denote the longitudinal thrust from the vessel’s propeller and the rudder torque in the {b} coordinate system, respectively. τwu, τwv, and τwr denote the longitudinal interference force, lateral interference force, and yaw interference moment, respectively, acting on the vessel in the {b} coordinate system. fuu,v,r, fvu,v,r, and fru,v,r denote the respective viscous forces acting on the vessel due to the fluid in the {b} coordinate system. m11, m22, and m33 denote the total mass of the vessel, including the additional mass and inertia generated by the fluid’s inertial forces, respectively. Equation (1) denotes the kinematic model of the vessel, describing the relationship between the body-fixed coordinate system {b} and the inertial coordinate system {n}. Equation (2) denotes the dynamic model of the vessel, describing the forces acting on the vessel in the body-fixed coordinate system {b}.

Typically, underactuated vessels often use podded propulsion systems as their power devices. The forces generated by the pod system primarily consist of the propeller thrust Tpod and the lateral force FN, and their calculation formulas are given by Equation (3):

(3)Tpod=ρn2Dp4KTJpFN=0.5ρApodfΛUp2sinαpod

Here, ρ denotes the seawater density. n denotes the propeller rotational speed. Dp denotes the propeller diameter. KT denotes the propeller thrust coefficient. Jp denotes the propeller advance ratio. Apod denotes the effective area of the podded propulsor. fΛ is a function of the pod pillar aspect ratio, where Λ typically takes a value between 0.5 and 3.0. Up denotes the effective incoming flow speed at the pod. αpod denotes the effective angle of attack at the pod. xp denotes the X-axis coordinate of the position of the pod propeller. When the pod rotation angle is δ, the resulting longitudinal thrust and rudder torque are given by Equation (4):

(4)τu=1tpTpodcosδ1tRFNsinδτr=1tpTpodsinδ+1+aHpodFNcosδLpod

Here, Lpod denotes the distance from the pod to the vessel’s center. tp denotes the thrust deduction coefficient. tR denotes the lateral deduction coefficient. αHpod denotes the correction coefficient for calculating the induced lateral force generated by the hull when the pod is steered.

Based on the control model, a sliding mode controller for trajectory tracking of the underactuated vessel is designed. Without loss of generality, the following assumptions are made:

Assumption 1. 

The vessel’s parameterized tracking trajectory xdω,ydω is smooth and has first and second derivatives. Here, ω is a function of time t, and its variation law ω˙t determines the desired speed for trajectory tracking.

Assumption 2. 

The external disturbances τwu, τwv, and τwr acting on the underactuated vessel are time-varying and bounded, with unknown upper bounds, and satisfy the following inequality:

(5)τwuτwu*, τwvτwv*, τwrτwr*

Here, τwu*>0, τwv*>0, and τwr*>0 denote the unknown upper bounds of the disturbances.

Therefore, the control objective of this paper is as follows: For the underactuated vessel control model, considering the unknown bounded disturbances from wind and waves, a trajectory tracking sliding mode controller is designed based on the LOS guidance law and an S-curve desired speed. This controller ensures that the vessel’s closed-loop system maintains ultimately uniformly bounded observation errors. Furthermore, the TD3 algorithm is employed for the online optimization of the SMC parameters, thereby enhancing the trajectory tracking performance.

2.2. Preliminaries

In the trajectory tracking control of underactuated vessels, the control objective is to adjust the propeller thrust and rudder torque to gradually bring the vessel closer to the desired trajectory and, ultimately, guide it along the predetermined path. The LOS guidance method, as a simple and efficient trajectory tracking strategy, has been widely applied in the field of vessel control. The core idea of the LOS guidance method is to steer the vessel’s heading toward the target, guiding it progressively along the predefined path. Among the various LOS methods, the look-ahead distance LOS (LADLOS) method is particularly favored for its strong adaptability and low requirements for path smoothness, making it widely used in trajectory tracking for vessels, vehicles, robots, and other mobile platforms. In the LADLOS method, the system dynamically calculates a look-ahead point on the target path based on the current position. The look-ahead point is located on the target path at a fixed look-ahead distance from the vessel’s current position.

This paper uses the LADLOS method to design the desired heading angle, as shown in Figure 2. The current position of the underactuated vessel is denoted as x,y, and the desired point is denoted as xdω,ydω, where ω is the parameter of the desired trajectory. The look-ahead point xlos,ylos lies on the tangent to the desired trajectory, and the distance between the look-ahead point and the desired point is Δ. Based on the navigation principles of the LADLOS method, the desired heading angle of the vessel is given by Equation (6):

(6)χlos=ψd+arctanyeΔ

Here, ψd denotes the angle of the desired trajectory, and ye denotes the lateral tracking error for trajectory tracking. Considering the effect of the vessel’s sway motion, a drift angle will be generated. Thus, the reference angle ψr is given by Equation (7):

(7)ψr=χlosβ=ψd+arctanyeΔβ

(8)β=arctanvu

The use of the drift angle β to pre-correct the desired heading angle χlos is a common approach in the LOS guidance law. However, during the simulation of variable-speed trajectory tracking in this paper, it is observed that under low-speed and high-disturbance conditions, the vessel’s longitudinal speed and lateral speed are similar in magnitude. The drift angle β can easily lead to differential peak phenomena with rapid changes, causing the drift angle β to dominate the reference angle ψr, resulting in system instability and making trajectory tracking difficult. The underlying issue lies in the fact that the drift angle β is corrected based on speed rather than displacement. Since speed is the derivative of displacement, ψr becomes highly sensitive to changes in the lateral speed at low speeds. To address this, a first-order inertia element is introduced to filter the drift angle β, with the discrete first-order inertial filter given by Equation (9):

(9)βn+1=TT+Δtβn+ΔtT+Δtβn+1

In this context, βn and βn+1 denote the filtered drift angle at the previous time step and current time step, respectively. βn+1 is the raw drift angle calculated at the current time. T denotes the time constant of the first-order inertia element. Δt denotes the sampling period of the discrete system. By applying the first-order inertial filter to smooth the drift angle, abrupt changes in the yaw angle are avoided, which prevents sharp variations in the rudder angle during heading control, thereby making the approach more consistent with engineering practice.

In the trajectory tracking of an underactuated vessel, as the desired point xdω,ydω continuously advances, the moving speed depends on the rate of change of the parameters ω˙t. The trajectory tracking controller controls the vessel to track the desired point with speed U and yaw angle ψ. Once the vessel reaches the desired trajectory, it remains on the trajectory and moves forward at the desired speed. Therefore, the rate of change of the parameter ω˙t not only determines the magnitude of the reference angle ψr but also determines whether the vessel can track the desired trajectory at the desired speed.

Lemma 1. 

For any smooth parameterized tracking trajectory xdω,ydω, if the trajectory variation rate is chosen as ω˙=U+kωxe/ζ, the vessel’s yaw angle ψ will converge to the reference angle ψr, and the vessel will converge to the desired trajectory at the desired speed. Here, ζ=xd2+yd2, U=u2+v2. xd and yd denote the first-order derivatives of the reference trajectory xdω,ydω with respect to the parameter ω. kω denotes a positive constant, and xe denotes the longitudinal tracking error.

Proof of Lemma 1. 

Let the desired position of the underactuated vessel be denoted as xdω,ydω. The longitudinal tracking error and lateral tracking error for trajectory tracking in the body coordinate system {b} are given by Equation (10):

(10)xeye=cosψdsinψdsinψdcosψdxxdyyd

Here, xe and ye denote the longitudinal tracking error and the lateral tracking error in the {b} coordinate system. ψd denotes the angle of the desire trajectory. Taking the derivatives of xe and ye, we obtain:

(11)x˙ey˙e=cosψdsinψdsinψdcosψdx˙x˙dy˙y˙d+ψ˙dsinψdψ˙dcosψdψ˙dcosψdψ˙dsinψdxxdyyd=ucosψψdvsinψψdω˙xdcosψd+ydsinψd+ψ˙dyeusinψψd+vcosψψd+ω˙xdsinψdydcosψdψ˙dxe=Ucosψψd+βω˙xd2+yd2cosψdψd+ψ˙dyeUsinψψd+β+ω˙xd2+yd2sinψdψdψ˙dxe=Ucosψψd+β+ψ˙dyeω˙ζUsinψψd+βψ˙dxe

Here, ζ=xd2+yd2, U=u2+v2. The trajectory variation rate is defined as ω˙=U+kωxe/ζ, with kω>U/Δ.

Select the Lyapunov function given by Equation (12):

(12)V=12xe2+12ye2

Taking the derivative of Equation (12), we obtain

(13)V˙=xex˙e+yey˙e=xeUcosψψd+β+ψ˙dyeω˙ρ+yeUsinψψd+βψ˙dxe=Uxecosψψd+βUxe+Uyesinψψd+βkωxe2=Uxecosψψd+β1+Uyesinψψd+βkωxe2

Define ψe=ψψr, where the purpose of the heading control is to converge the vessel’s yaw angle ψ to the reference angle ψr; hence, ψe0. Combining with Equation (7), it can be derived that ψψd+βarctanye/Δ. Therefore,

(14)sinψψd+β=yeye2+Δ2

Substituting Equation (14) into Equation (13), we obtain

(15)V˙=Uxecosψψd+β1Uye2+Δ2ye2kωxe2

Due to the properties of trigonometric functions, we obtain cosψψd+β1<sinψψd+β. Thus,

(16)V˙<Uxesinψψd+βUye2+Δ2ye2kωxe2=Uye2+Δ2ye2kωxe2+Uye2+Δ2xeye=12Uye2+Δ2ye212kωxe212Uye2+Δ2ye22Uye2+Δ2xeye+kωxe2

Moreover, since kω>U/Δ, we obtain

(17)V˙<12Uye2+Δ2ye212kωxe212Uye2+Δ2ye22U/Δkωye2/Δ2+1xeye+kωxe212Uye2+Δ2ye212kωxe212kωxeU/Δye2/Δ2+1ye2<0

From the above, it can be concluded that V˙<0, and xe, ye asymptotically converge to 0. □

In the heading control process, as the lateral tracking error ye decreases, the vessel’s yaw angle ψ approaches the reference angle ψr, ultimately aligning the vessel’s yaw angle ψ with the angle of the desired trajectory ψd, thus achieving heading control. In the speed control process, as the longitudinal tracking error decreases, the speed of the desired point on the desired trajectory aligns with the vessel’s motion speed, meaning that the desired point and the vessel move forward at the same speed.

In the speed control process, the selection of the desired speed profile is critical for control performance. In dynamic and complex scenarios, such as in the precise operations of a vessel in port, the flexible working requirements of the motors necessitate smooth speed variations, a fast dynamic response, and system stability. In this context, the seven-segment S-curve acceleration/deceleration process has become the ideal choice [32,33]. By introducing continuous changes in the acceleration and jerk, this method not only effectively avoids the vibration issues caused by abrupt changes in acceleration in traditional methods but also significantly improves the smoothness of trajectory tracking and the control accuracy. Furthermore, the S-curve design provides flexible parameter adjustment capabilities, allowing the system to find the optimal balance between response speed and comfort based on the actual task requirements. This smooth-speed planning approach ensures the system’s robustness against environmental disturbances and mitigates the adverse effects of nonlinear dynamics on control performance. Therefore, the seven-segment S-curve acceleration/deceleration process, with its high dynamic performance, excellent smoothness, and strong engineering feasibility, has become the ideal method for generating the desired velocity in control systems, providing a stable and efficient input foundation for subsequent controller design.

The seven stages of the S-curve acceleration/deceleration process are as follows: jerk acceleration phase (T1), uniform acceleration phase (T2), deceleration acceleration phase (T3), constant velocity phase (T4), acceleration–deceleration phase (T5), uniform deceleration phase (T6), and jerk deceleration phase (T7), as shown in Figure 3. In this paper, the variable J is introduced to represent the rate of change of acceleration.

(18)J=dadtJ>0

Based on the vessel’s propulsion characteristics, the maximum acceleration is denoted as amax, and a variable τk=ttkk=1,,7 is introduced to represent the operating time in the current stage. The operating time for each stage, namely T1, T2, T3, T5, T6, and T7, is T. The calculation formula for the S-curve acceleration process is given by Equation (19):

(19)ud1=12Jτ12, ud2=12JT2+JTτ2, ud3=32JT2+JTτ312Jτ32

The calculation formula for the S-curve deceleration process is given by Equation (20):

(20)ud5=2JT212Jτ52, ud6=32JT2JTτ6, ud7=12JT2JTτ7+12Jτ72

3. Adaptive Sliding Mode Controller

In Section 2, based on the underactuated vessel’s motion model, this paper employs the LADLOS method to compute the desired heading angle and designs a desired speed profile that follows the S-curve acceleration/deceleration process, laying the foundation for trajectory tracking control. However, in real maritime environments, vessel motion is inevitably affected by complex external disturbances, such as wind, waves, and currents, which exhibit uncertainty and dynamic characteristics. Therefore, in this section, the focus is on addressing the trajectory tracking control problem under the influence of unknown disturbances. To tackle these challenges, an ESO is first used to estimate unknown environmental disturbances. To ensure system stability during the progressive estimation process, even in the presence of observation errors, an adaptive control law is applied to estimate the upper bound of the unknown disturbances. Furthermore, the estimated disturbance results are used as feedforward compensation in the SMC, and an adaptive sliding mode control law based on the hyperbolic tangent function is designed to replace the traditional sign function. This approach smooths the control input and avoids high-frequency chattering. Finally, the TD3 algorithm is introduced for real-time tuning of the SMC parameters. This control strategy significantly enhances the system’s robustness and trajectory tracking performance.

3.1. Extended State Observer (ESO)

In the trajectory tracking of underactuated vessels, traditional control methods struggle to achieve sufficient accuracy in the state estimation and dynamic feedback due to external disturbances in the complex marine environment as well as the nonlinear characteristics and modeling uncertainties inherent in the vessel’s system. This results in degraded control performance. To address this issue, the ESO [34] is introduced as an effective auxiliary tool. The ESO is designed to estimate the system’s state variables and external disturbances in real time, thereby providing more precise feedback signals for the controller. The fundamental idea behind designing the ESO is to model the system’s dynamic characteristics and external disturbances as an “extended state”, which is then estimated by the observer. The uncertainties of the vessel and external environmental disturbances, such as wind and waves, are unified as unknown disturbance terms in the system. An ESO is used to observe the vessel’s states and unknown disturbances. Let x1=υ, υ=u,v,r, x2=M1τw, M1=diag[1/m11,1/m22,1/m33], and τw=[τwu,τwv,τwr]. Considering the underactuated vessel model, the design of the ESO is given by Equation (21):

(21)x^˙1=M1f+x^2+M1τβ1x^1x1x^˙2=β2x^1x1

Here, f=fuu,v,r+m22vr,fvu,v,rm11ur,fru,v,r, and τ=τu,0,τr. x^1 denotes the observed value of speed, and x^2 denotes the observed value of M1τw. βii=1,2 is the design positive constant, and it denotes the gain of the ESO. Typically, β1=2ω0,β2=ω02. ω0 denotes the bandwidth, which is determined by the frequency of the disturbance signal to be observed.

Define the observation error as e=e1,e2T, where e1=x^1x1, and e2=x^2M1τw. Combining Equations (1), (2) and (21), the state equation for the observation error is given by Equation (22):

(22)e˙=Ae+BM1τ˙wA=β11β20, B=01

Clearly, by solving the differential equation in Equation (22), we obtain

(23)et=eAte0+0teAtτM1τ˙wdτB

From Assumption 2, it follows that τ˙wS, where S is a positive design constant. For the matrix A, there exists a Vandermonde matrix N that satisfies the following relationship: A=Ndiagβ1,β2N1. Therefore,

(24)eteAte0+SM10teAtτdτBNdiageω0t,eω0tN1e0+SM10teAtτdτBNN1eω0te0+SNN1M10teω0tτdτBNN1eω0te0+S1ω0M11eω0tB

From B=1, it is known that as t, 1eω0t1. According to Equation (24), the convergence of et is related to the bandwidth value ω0. The larger the bandwidth, the faster the et convergence, and it will ultimately converge to the boundary value S/ω0M1. Therefore, the observation error of the disturbance estimated by the ESO is convergent and will eventually converge to the boundary value.

3.2. Heading and Speed Sliding Mode Control

The core idea of SMC is to design a sliding surface such that the system’s state converges to this surface and remains on it, thereby achieving the desired trajectory tracking. In this paper, the states of the underactuated vessel are defined as the speed error and heading error, with the calculation formulas given by Equation (25):

(25)ue=uud, ψe=ψψr

Design the sliding surfaces given by Equation (26) and Equation (27), respectively.

(26)s1=ue+λ10tuedτ,λ1>0

(27)s2=ψ˙e+λ2ψe=rψ˙r+λ2ψe,λ2>0

Considering the underactuated vessel model and taking the time derivative of Equations (26) and (27), the results are given by Equations (28) and (29).

(28)s˙1=u˙e+λ1ue=fum11+m22m11vr+τwum11+τum11u˙d+λ1ue

(29)s˙2=r˙ψ¨r+λ2ψ˙e=frm33+τwrm33+τrm33ψ¨r+λ2ψ˙e

Based on the SMC concept, the control laws are given by Equations (30) and (31).

(30)τu=m11u˙dλ1m11uefum22vrτ^wuε1tanhs1k1s1

(31)τr=m33ψ¨rλ2m33ψ˙efrτ^wrε2tanhs2k2s2

Here, ε1, k1, ε2, and k2 are positive constants. In the equation, the tanh is used to replace the sign in the traditional SMC.

Theorem 1. 

For the underactuated vessel motion model given by Equations (1) and (2), under the conditions specified in Assumptions 1 and 2, and given the desired trajectory  xdω,ydω and the desired speed profile, the SMC laws for thrust (Equation (30)) and steering torque (Equation (31)) are designed, and the boundary values of external environmental disturbances are estimated. By appropriately selecting the parameters ε1, ε2, k1, k2, λ1, and λ2, it can be guaranteed that the underactuated vessel will track the desired trajectory with the desired speed, and that all states of the trajectory tracking system are ultimately uniformly bounded.

Proof of Theorem 1. 

Construct the Lyapunov function given by Equation (32).

(32)V3=12m11s12+12m33s22+12γ1τ˜wu*2+12γ2τ˜wr*2

Here, τ^wu* and τ^wr* denote the estimated values of τwu* and τwr*, respectively. τ˜wu*=τ^wu*τwu* and τ˜wr*=τ^wr*τwr* denote the observation errors of the disturbance bounds of the vessel’s external disturbances. Taking the derivative of the Lyapunov function yields

(33)V˙3=m11s1s˙1+m33s2s˙2+1γ1τ˜wu*τ˜˙wu*+1γ2τ˜wr*τ˜˙wr*

Substituting Equations (28) and (29), we obtain

(34)V˙3=k1s12ε1s1tanhs1τ˜wus1k2s22ε2s2tanhs2τ˜wrs2+1γ1τ˜wu*τ^˙wu*+1γ2τ˜wr*τ^˙wr*

Here, τ˜wu=τ^wuτwu, and τ˜wr=τ^wrτwr. The adaptive laws for designing τ^wu* and τ^wr* are formulated as follows [35]:

(35)τ^˙wu*=γ1s1ϕs1σ1τ^wu*τwu0τ^˙wr*=γ2s2ϕs2σ2τ^wr*τwr0

In Equation (35), γ1, γ2, σ1, and σ2 are positive design constants, while σ1 and σ2 are small. ϕsi=tanhsi/ςi, i=1,2. ςi is a positive design constant. τwu0 and τwr0 denote the prior estimates of τ^wu* and τ^wr*, respectively. Substituting Equation (35) into Equation (34), we obtain

(36)V˙3=k1s12ε1s1tanhs1τ˜wus1k2s22ε2s2tanhs2τ˜wrs2+τ˜wu*s1ϕs1σ1τ^wu*τwu0+τ˜wr*s2ϕs2σ2τ^wr*τwr0

Moreover, due to the properties of tanh, it can be concluded that

(37)V˙3k1s12k2s22ε1s1ε2s2τ˜wu*s1τ˜wr*s2+τ˜wu*s1ϕs1σ1τ^wu*τwu0+τ˜wr*s2ϕs2σ2τ^wr*τwr0=k1s12k2s22ε1s1ε2s2τ˜wu*s1s1ϕs1τ˜wr*s2s2ϕs2+σ1τwu*τ^wu*τ^wu*τwu0+σ2τwr*τ^wr*τ^wr*τwr0

For any positive constants ςi, ϖi1i=1,2, we obtain [36]

(38)0ϖiϖiϕϖi=ϖitanhϖi/ςi0.2785ςi, i=1,2

Taking into account the inequality given by Equation (39),

(39)σ1τwu*τ^wu*τ^wu*τwu0σ12τ^wu*τwu*2+σ12τwu*τwu02σ2τwr*τ^wr*τ^wr*τwr0σ22τ^wr*τwr*2+σ22τwr*τwr02

Substituting Equation (39) into Equation (37), we obtain

(40)V˙3k1s12k2s22ε1s1ε2s2τ˜wu*s1s1ϕs1τ˜wr*s2s2ϕs2+σ1τwu*τ^wu*τ^wu*τwu0+σ2τwr*τ^wr*τ^wr*τwr0k1s12k2s22ε1s1ε2s20.2785ς1τ˜wu*0.2785ς2τ˜wr*σ12τ^wu*τwu*2+σ12τwu*τwu02σ22τ^wr*τwr*2+σ22τwr*τwr02μ1s12+s22+s1+s2+τ˜wu*+τ˜wr*+τ˜wu*2+τ˜wr*2+C

Here,

(41)μ1=mink1,k2,ε1,ε2,0.2785ς1,0.2785ς2,σ12,σ22C=σ12τwu*τwu02+σ22τwr*τwr0

From the above equation, it can be concluded that V˙3<0 when s12+s22+s1+s2+τ˜wu*+τ˜wr*+τ˜wu*2+τ˜wr*2>C/μ1. Thus, the system achieves stability. Therefore, the signals s1, s2, τ˜wu*, and τ˜wr* in the closed-loop system are uniformly ultimately bounded. It can also be concluded that ue and ψe are bounded. By combining Equation (17), it can be ensured that the vessel’s trajectory tracking error is uniformly ultimately bounded. □

3.3. TD3 Algorithm Parameter Optimization

TD3 is an efficient, policy-gradient-based algorithm in the field of deep reinforcement learning, specifically designed for continuous action space problems. The core of TD3 lies in the use of a deterministic policy and an actor–critic architecture to approximate the optimal policy. The primary objective is to learn the optimal policy through interactions with the environment, thereby maximizing the cumulative reward. The TD3 algorithm is an optimized version of the Deep Deterministic Policy Gradient (DDPG) algorithm. It utilizes two separate critic networks, and when computing the target value, the smaller of the two is chosen, effectively mitigating the overestimation issue found in the DDPG. Additionally, random noise is introduced into the action of the next state during target value computation, enhancing the accuracy of value estimation. Finally, the actor network is updated only after multiple updates to the critic network, ensuring stability in actor network training. The parameter optimization structure based on TD3 is shown in Figure 4.

The TD3 environment constructed in this paper consists of an underactuated vessel model and a sliding mode controller. The state space and action space are defined as follows: s1,s2,s3,s4S|s1=xe,s2=ye,s3=ψe,s4=ue and a1,a2A|a1=λ1,a2=λ2. The state variables reflect the longitudinal tracking error, lateral tracking error, yaw tracking error, and speed tracking error. The action space denotes the parameters of the sliding mode controller that need to be optimized. The objective of trajectory tracking for the underactuated vessel is to minimize the error between the vessel’s state and the desired state. As the trajectory moves toward the target trajectory, the longitudinal tracking error, lateral tracking error, yaw tracking error, and speed tracking error should gradually approach zero. Therefore, the reward function is designed as follows:

(42)r=1s1+s2+s3+s4+ς

ς denotes a small positive constant, which is used to prevent the issue of infinite rewards when the state variables are all zero. The TD3 algorithm includes six neural networks, and the parameters of the neural networks are set as shown in Table 1.

4. System Control Structure

To address the trajectory tracking problem of underactuated vessels, this paper proposes a sliding mode controller optimized by the TD3 algorithm. The overall control structure is shown in Figure 5. The system input is the desired trajectory xω,yω and speed ud, while the outputs are the vessel’s actual state. The method involves constructing two control subsystems to achieve precise control of the speed and the yaw angle, thereby fulfilling the trajectory tracking control objective. The control system takes the speed tracking error and yaw tracking error as control state inputs and designs an integral sliding mode surface for speed control and a differential sliding mode surface for heading control. Based on the sliding mode surface feedback control strategy, the system outputs the longitudinal thrust and steering torque, ensuring that the longitudinal tracking error and the lateral tracking error gradually converge to achieve accurate tracking of the desired trajectory. To handle external and model uncertainties, an ESO is introduced to observe and compensate for the compound disturbances in real time, and an adaptive law is designed to estimate the upper bound of the unknown disturbances, ensuring system stability even in the presence of gradual observation errors. To further optimize the performance of the sliding mode controller, the TD3 algorithm is utilized to optimize the control parameters. The TD3 algorithm is an enhanced version of the DDPG algorithm, mitigating the value overestimation issue present in the DDPG, and employing a delayed update strategy to ensure smoothness of the control parameter outputs and the stability of system dynamic responses.

5. Simulation Results

To verify the effectiveness of the proposed method, a simulation is conducted on a recreational boat from Ningbo FlyShark Power Technology Co., Ltd, located in Ningbo, China. Considering the influence of hydrodynamic factors, the Inoue model [37] is introduced to calculate the viscous forces generated by the system, as shown in Equation (43). Xuu, Xvv, Xvr, Xrr, Yv, Yr, Yvv, Yvr, Yrr, Nv, Nr, Nrr, Nvvr, and Nvrr denote hydrodynamic coefficients, and in practical applications, their dimensionless forms are often calculated using empirical formulas. The Zhou Zhaoming formula [38] is used to calculate the additional inertial forces generated by the system, with the corresponding formula provided in Equation (44). mx, my, and Jzz denote the additional mass in the X and Y directions and additional moment of inertia in the Z direction, respectively. Izz denotes the moment of inertia about the Z-axis. The dimensionless parameters of the model and the hydrodynamic parameters obtained from the calculations are listed in Table 2, where the “dash” data represents the dimensionless data. The parameters for the TD3 algorithm are set as follows: γ=0.99, τ=0.005, ε=0.2, c=0.5, d=2.

(43)fuu,v,r=Xuuu2+Xvvv2+Xvrvr+Xrrr2fvu,v,r=Yvv+Yrr+Yvvvv+Yvrvr+Yrrrrfru,v,r=Nvv+Nrr+Nrrrr+Nvvrv2r+Nvrrvr2

(44) m x = m 100 [ 0.398 + 11.97 C b 1 + 3.73 d B 2.89 C b L B 1 + 1.13 d B + 0.175 C b L B 2 1 + 0.541 d B 1.107 L B d B ] m y = m [ 0.882 0.54 C b 1 1.6 d B 0.156 L B 1 0.673 C b + 0.826 d B L B 1 0.678 d B 0.638 d B L B 1 0.669 d B ] J z z / I z z = 16 33 76.85 C b 1 0.784 C b + 3.43 L B 1 0.63 C b / 100 2

5.1. Maneuverability Analysis

Simulation tests are conducted to evaluate the operability of the constructed model. The impacts of thrust and torque on the vessel’s motion state are tested, as these are key factors for achieving trajectory tracking control of an underactuated vessel.

Under the condition that both the initial velocity and torque are 0, the thrust τu is input as follows: 10 N, 50 N, 100 N, 200 N, 500 N, 1000 N. The simulation results show that as the thrust increases, the vessel’s forward speed u also increases accordingly, as shown in Figure 6a. As the thrust increases, the forward speed of the vessel gradually approaches a stable value. Specifically, with thrust inputs of 10 N, 50 N, 100 N, 200 N, 500 N, and 1000 N, the vessel’s final forward velocities stabilize at 0.15 m/s, 0.25 m/s, 0.5 m/s, 1.1 m/s, and 1.55 m/s, respectively. Under the condition of an initial velocity of 0 and a thrust of 100 N, the thrust inputs are as follows: −100 N, −50 N, 50 N, and 100 N, with the simulation results shown in Figure 6b. Specifically, when the torque is ±50 N, the vessel’s turning radius is approximately 5 m, and when the torque is ±100 N, the turning radius is approximately 14 m. Moreover, the vessel’s rotation direction is opposite to the sign of the applied torque. When the torque is positive, the vessel rotates counterclockwise. When the torque is negative, the vessel rotates clockwise. The simulation results lead to the conclusion that the vessel’s motion control can be achieved by adjusting the magnitude of the thrust and torque. The established vessel model is consistent with the actual operational behavior of vessels, effectively simulating the vessel’s motion state under different control inputs and providing a reliable basis for trajectory tracking control simulations.

5.2. Sine Wave Trajectory Tracking Simulation

This section presents the trajectory tracking control simulations for a sine trajectory. The equation of the sine trajectory to be tracked is y=200sin0.01x. Based on Assumption 2, the disturbance is set as shown in Equation (45):

(45)τwu=100sin0.1tτwv=100sin0.1tτwr=100sin0.1t

Let the initial position of the vessel be x,y,ψ=20m,50m,pi/4rad, and the initial velocity of the vessel be υ=u,v,r=0,0,0. The action space range is set to λ10.1,10 and λ20.1,10, with the other parameters set to k1=k2=ε1=ε2=kω=1. To verify the impact of the drift angle on the vessel’s heading control, a series of simulation experiments are conducted, and the results are shown in Figure 7. In the early stages of the vessel’s operation, the influence of the drift angle on the reference angle is significant. The maximum error between the reference angle calculated through drift angle filtering and the reference angle obtained by removing the drift angle can reach 0.4 rad. Furthermore, it can also be observed that when the trajectory curvature is large, the method of calculating the reference angle by removing the drift angle introduces errors compared with the method that calculates the reference angle through drift angle filtering. Therefore, it is particularly important to use filtering techniques to smooth the drift angle. A low-pass filter is used to smooth the drift angle, and the desired heading angle of the vessel varies smoothly. With the presence of the drift angle, higher control accuracy is achieved. In summary, the drift angle has a significant impact on the trajectory tracking performance of underactuated vessels, especially in the initial heading control phase. Therefore, it is necessary to use appropriate filtering techniques to process the drift angle, improving the vessel’s heading accuracy and trajectory tracking stability. Considering the drift angle filtering, the vessel’s trajectory tracking simulation results are shown in Figure 8, Figure 9, Figure 10, Figure 11 and Figure 12. Figure 8a shows the sliding mode controller parameters obtained through the TD3 algorithm.

When the SMC parameters are set to λ1=1 and λ2=1, the actual operating trajectory of the SMC is shown by the orange curve in Figure 8b. The actual operating trajectory of the sliding mode controller optimized by the TD3 algorithm (SMC-TD3) in real time is shown by the red curve in Figure 8b. Comparing both trajectories with the desired trajectory, the results indicate that the SMC-TD3 performs better in tracking the desired trajectory. It is able to track the desired path more quickly and with smaller tracking errors. Figure 9 presents a comparison of the longitudinal tracking error and the lateral tracking error in the SMC and the SMC-TD3. It can be observed that the longitudinal tracking error of the SMC stabilizes within the range of [−3, 3], while the longitudinal tracking error of the SMC-TD3 converges to 0. This indicates that the SMC-TD3 achieves smaller longitudinal tracking errors. Both methods exhibit bounded lateral tracking errors. The lateral tracking error of the SMC stabilizes within the range of [−15, −12.5], whereas the lateral tracking error of the SMC-TD3 stabilizes within the range of [−1, 1], showing that the SMC-TD3 achieves smaller lateral tracking errors. Figure 10 shows a comparison of the speed tracking error and the yaw tracking error in the SMC and the SMC-TD3. The speed tracking errors of both methods converge to 0. Both methods also exhibit convergence of the yaw tracking error. The SMC’s yaw tracking error converges to −0.8, while the SMC-TD3’s yaw tracking error converges to 0. Comparing the two methods, the SMC-TD3 demonstrates superior overall control performance. Figure 11 illustrates the speed control performance of both the SMC and the SMC-TD3. Both methods are capable of achieving variable-speed tracking control for the underactuated vessel. Figure 12 displays the control force variations for both controllers. While both methods ensure smooth control of the underactuated vessel, the SMC-TD3 exhibits smoother control. Therefore, the SMC-TD3 is better suited to meet the practical engineering control requirements.

5.3. Circular Trajectory Tracking Simulation

This section describes the trajectory tracking control simulation performed for a circular trajectory. The equation of the circular trajectory to be tracked is given by Equation (46), and the external disturbance is set as shown in Equation (45):

(46)xd=300cos0.005tyd=300sin0.005t

Let the initial position of the vessel be x,y,ψ=0m,0m,0rad, and the initial vessel speed be υ=u,v,r=0,0,0 m/s. Set the action space as λ10.1,10 and, λ20.1,10, with the other parameters as k1=k2=ε1=ε2=kω=1. The vessel’s trajectory tracking results are shown in Figure 13, Figure 14, Figure 15, Figure 16 and Figure 17. The SMC parameters obtained through the TD3 algorithm are shown in Figure 13a.

When the sliding mode control parameters are set to λ1=1 and λ2=1, the actual operating trajectory of the SMC is shown by the orange line in Figure 13b. The actual operating trajectory of the SMC-TD3 is shown by the red line in Figure 13b. A comparison of the two trajectories with the desired trajectory shows that SMC-TD3 performs better in trajectory tracking, enabling faster convergence to the desired path. Figure 14 presents the comparison of the longitudinal tracking error and lateral tracking error in the SMC and the SMC-TD3. It can be observed that both methods lead to the longitudinal tracking error and lateral tracking error approaching zero. However, the SMC-TD3 exhibits a smoother tracking performance. Figure 15 shows a comparison of the speed tracking error and yaw tracking error in the SMC and the SMC-TD3. Both methods exhibit bounded speed tracking errors. The SMC’s speed tracking error converges to −0.1, while the SMC-TD3’s speed tracking error converges to 0. Both methods show bounded yaw tracking errors. The SMC’s yaw tracking error converges to 0, while the SMC-TD3’s yaw tracking error converges to −0.1. However, the SMC-TD3 demonstrates a faster dynamic response. Figure 16 illustrates the speed control performance of both the SMC and the SMC-TD3. Both methods are capable of achieving variable-speed tracking control for the underactuated vessel. Figure 17 presents the control force variations for the SMC and the SMC-TD3. It can be observed that the SMC-TD3 exhibits smoother control compared with the SMC method. Furthermore, the control force of the SMC-TD3 is smoother, better meeting the practical engineering control requirements.

6. Conclusions

This paper investigates the problem of variable-speed trajectory tracking control for underactuated vessels. First, considering the hydrodynamic effects on the underactuated ship, a 3-DOF motion model of the underactuated vessel is established. Next, based on the motion model, two sliding mode controllers are designed: a speed sliding mode controller and a heading sliding mode controller. For speed control, the desired speed is designed to follow an S-curve acceleration/deceleration process in accordance with the variable-speed tracking control requirements of the underactuated vessel. For heading control, the LADLOS method is used to dynamically calculate the desired heading angle of the underactuated vessel. To address external composite disturbances, an ESO is designed to observe and compensate for the disturbances in real-time. An adaptive law is also designed to estimate the error bounds, and the global stability of the system is proven using the Lyapunov method. Third, to further optimize the performance of the sliding mode controller, the TD3 algorithm is introduced for parameter tuning. Additionally, due to the dynamic characteristics of the underactuated vessel’s propulsion system, the phenomenon of sudden changes in the drift angle often occurs when the vessel starts, and this drift angle can affect the heading control. To address the drift angle issue, a first-order inertial element filter is introduced to smooth the drift angle data. Numerical simulation results demonstrate that the proposed method significantly improves the trajectory tracking accuracy and dynamic response speed of the underactuated vessel. Specifically, for the sinusoidal trajectory with an amplitude of 200 m and a frequency of 0.01, numerical results show that the proposed method achieves convergence of the longitudinal tracking error to zero, while the lateral tracking error remains stable within 1 m. For the circular trajectory with a radius of 300 m, the numerical results indicate that both the longitudinal and lateral tracking errors are stabilized within 1 m. Compared with the fixed-value sliding mode controller, the proposed method demonstrates superior trajectory tracking accuracy and smoother control performance.

Author Contributions

Conceptualization, S.Z.; Methodology, S.Z.; Software, Z.L.; Resources, Q.W.; Data curation, Q.W.; Writing—original draft, S.Z.; Writing—review & editing, G.Z.; Visualization, Z.L.; Supervision, G.Z. All authors have read and agreed to the published version of the manuscript.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

The authors would like to thank the funder for supporting them and the editor and reviewers for their constructive comments.

Conflicts of Interest

The authors declare no conflicts of interest.

Footnotes

Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Figures and Tables
View Image - Figure 1. The inertial coordinate system and the ship body coordinate system.

Figure 1. The inertial coordinate system and the ship body coordinate system.

View Image - Figure 2. Illustration of the LADLOS guidance law.

Figure 2. Illustration of the LADLOS guidance law.

View Image - Figure 3. S-curve acceleration and deceleration.

Figure 3. S-curve acceleration and deceleration.

View Image - Figure 4. TD3 parameter optimization structure.

Figure 4. TD3 parameter optimization structure.

View Image - Figure 5. Control system structure.

Figure 5. Control system structure.

View Image - Figure 6. Maneuverability validation. (a) Forward speed under different thrusts. (b) Trajectory under different torques.

Figure 6. Maneuverability validation. (a) Forward speed under different thrusts. (b) Trajectory under different torques.

View Image - Figure 7. Effect of the drift angle on the reference angle.

Figure 7. Effect of the drift angle on the reference angle.

View Image - Figure 8. Control parameters and trajectory comparison of the sine trajectory. (a) Control parameters. (b) Trajectory comparison.

Figure 8. Control parameters and trajectory comparison of the sine trajectory. (a) Control parameters. (b) Trajectory comparison.

View Image - Figure 9. Longitudinal tracking error and lateral tracking error of the sine trajectory.

Figure 9. Longitudinal tracking error and lateral tracking error of the sine trajectory.

View Image - Figure 10. Speed tracking error and yaw tracking error of the sine trajectory.

Figure 10. Speed tracking error and yaw tracking error of the sine trajectory.

View Image - Figure 11. Variable speed tracking of the sine trajectory.

Figure 11. Variable speed tracking of the sine trajectory.

View Image - Figure 12. Control force of the sine trajectory.

Figure 12. Control force of the sine trajectory.

View Image - Figure 13. Control parameters and trajectory comparison of the circular trajectory. (a) Control parameters. (b) Trajectory comparison.

Figure 13. Control parameters and trajectory comparison of the circular trajectory. (a) Control parameters. (b) Trajectory comparison.

View Image - Figure 14. Longitudinal tracking error and lateral tracking error of the circular trajectory.

Figure 14. Longitudinal tracking error and lateral tracking error of the circular trajectory.

View Image - Figure 15. Speed tracking error and yaw tracking error of the circular trajectory.

Figure 15. Speed tracking error and yaw tracking error of the circular trajectory.

View Image - Figure 16. Variable speed tracking of the circular trajectory.

Figure 16. Variable speed tracking of the circular trajectory.

View Image - Figure 17. Control force of the circular trajectory.

Figure 17. Control force of the circular trajectory.

Network structure.

Network Hidden Layer Neurons Input Output
Target actor network 3 256 2 4
Target critic network1 3 256 6 1
Target critic network2 3 256 6 1
Actor network 3 256 2 4
Critic network 3 256 6 1
Critic network 3 256 6 1

Main data of the ship model.

Parameter Value Parameter Value Parameter Value Parameter Value
Displacement (m) 1148 kg m 11 1170.58 Y v −0.2316 N r r −0.0496
Length (L) 7.201 m m 22 1865.66 Y r 0.06544 N v v r −0.5987
Width (B) 2.507 m m 33 8472.23 Y v v −0.5490 N v r r −0.0624
Draft (d) 0.3 m X u u −413.58 Y v r −0.2576
Block coefficient (Cb) 0.2068 X v v −5.27 Y r r −0.0377
Wetted surface area (S) 8.07 m2 X v r −834.71 N v −0.0833
Water Density (ρ) 1025 kg/m2 X r r 413.41 N r −0.0380

References

1. Zhang, W.; Liao, Y.L.; Jiang, F.; Zhao, T.J. Development Review and Trend Analysis of Unmanned Surface Vehicles Technology. Unmanned Syst. Technol.; 2019; 2, pp. 1-9.

2. Cong, X.; Zhao, C. PID control of uncertain nonlinear stochastic systems with state observer. Sci. China Inf. Sci.; 2021; 64, 192201. [DOI: https://dx.doi.org/10.1007/s11432-020-2979-0]

3. Liu, Z.Q.; Chi, R.H.; Huang, B.; Hou, Z.S. Finite-time PID control for nonlinear nonaffine systems. Sci. China Inf. Sci.; 2024; 67, 212206. [DOI: https://dx.doi.org/10.1007/s11432-023-4018-5]

4. Lyu, X.J.; Lin, Z.L. PID Control of Planar Nonlinear Uncertain Systems in the Presence of Actuator Saturation. IEEE/CAA J. Autom. Sin.; 2022; 9, pp. 90-98. [DOI: https://dx.doi.org/10.1109/JAS.2021.1004281]

5. Liu, S.W.; Zuo, Y.; Li, T.S.; Wang, H.Q.; Gao, X.Y.; Xiao, Y. Adaptive fixed-time PID-based control of uncertain nonlinear systems and its application to unmanned surface vehicles. Int. J. Syst. Sci.; 2024; 55, pp. 2815-2824. [DOI: https://dx.doi.org/10.1080/00207721.2024.2353844]

6. Zhao, C. Semiglobal stability of PID for uncertain nonaffine systems. Automatica; 2024; 160, 111429. [DOI: https://dx.doi.org/10.1016/j.automatica.2023.111429]

7. Saleem, O.; Iqbal, J. Fuzzy-Immune-Regulated Adaptive Degree-of-Stability LQR for a Self-Balancing Robotic Mechanism: Design and HIL Realization. IEEE Robot. Autom. Lett.; 2023; 8, pp. 4577-4584. [DOI: https://dx.doi.org/10.1109/LRA.2023.3286176]

8. Xin, G.Y.; Xin, S.T.; Cebe, O.; Pollayil, M.J.; Angelini, F.; Garabini, M.; Vijayakumar, S.; Mistry, M. Robust Footstep Planning and LQR Control for Dynamic Quadrupedal Locomotion. IEEE Robot. Autom. Lett.; 2021; 6, pp. 4488-4495. [DOI: https://dx.doi.org/10.1109/LRA.2021.3068695]

9. Ali, N.; Ayaz, Y.; Iqbal, J. Collaborative Position Control of Pantograph Robot Using Particle Swarm Optimization. Int. J. Control Autom. Syst.; 2022; 20, pp. 198-207. [DOI: https://dx.doi.org/10.1007/s12555-019-0931-6]

10. Choubey, C.; Ohri, J. Tuning of LQR-PID controller to control parallel manipulator. Neural Comput. Appl.; 2022; 34, pp. 3283-3297. [DOI: https://dx.doi.org/10.1007/s00521-021-06608-0]

11. Yuan, Y.; Wang, Y.J.; Guo, L. Sliding-Mode-Observer-Based Time-Varying Formation Tracking for Multispacecrafts Subjected to Switching Topologies and Time-Delays. IEEE Trans. Automat. Control; 2021; 66, pp. 3848-3855. [DOI: https://dx.doi.org/10.1109/TAC.2020.3030866]

12. Um, Y.-C.; Choi, H.-L. Integral γ-Sliding Mode Control for a Quadrotor with Uncertain Time-Varying Mass and External Disturbance. J. Electr. Eng. Technol.; 2022; 17, pp. 707-716. [DOI: https://dx.doi.org/10.1007/s42835-021-00929-9]

13. Hou, H.Z.; Yu, X.H.; Fu, Z. Sliding-Mode Control of Uncertain Time-Varying Systems With State Delays: A Non-Negative Constraints Approach. IEEE Trans. Syst. Man Cybern Syst.; 2022; 52, pp. 1516-1524. [DOI: https://dx.doi.org/10.1109/TSMC.2020.3029086]

14. Weng, Y.P.; Wang, N. Finite-time observer-based model-free time-varying sliding-mode control of disturbed surface vessels. Ocean Eng.; 2022; 251, 110866. [DOI: https://dx.doi.org/10.1016/j.oceaneng.2022.110866]

15. Davila, J.; Tranninger, M.; Fridman, L. Finite-Time State Observer for a Class of Linear Time-Varying Systems With Unknown Inputs. IEEE Trans. Autom. Control; 2022; 67, pp. 3149-3156. [DOI: https://dx.doi.org/10.1109/TAC.2021.3096863]

16. Mao, Z.H.; Yan, X.-G.; Jiang, B.; Spurgeon, S.K. Sliding Mode Control of Nonlinear Systems With Input Distribution Uncertainties. IEEE Trans. Autom. Control; 2023; 68, pp. 6208-6215. [DOI: https://dx.doi.org/10.1109/TAC.2022.3227944]

17. Zhou, B.; Ding, Y.; Zhang, K.-K.; Duan, G.-R. Prescribed time control based on the periodic delayed sliding mode surface without singularities. Sci. China Inf. Sci.; 2024; 67, 172204. [DOI: https://dx.doi.org/10.1007/s11432-023-4052-4]

18. Wang, J.; Wang, H.T.; Yan, H.C.; Wang, Y.Y.; Shen, H. Fuzzy H∞ Sliding Mode Control of Persistent Dwell-Time Switched Nonlinear Systems. IEEE Trans. Fuzzy Syst.; 2022; 30, pp. 5143-5151. [DOI: https://dx.doi.org/10.1109/TFUZZ.2022.3169850]

19. Gurumurthy, G.; Das, D.K. Terminal sliding mode disturbance observer based adaptive super twisting sliding mode controller design for a class of nonlinear systems. Eur. J. Control; 2021; 57, pp. 232-241. [DOI: https://dx.doi.org/10.1016/j.ejcon.2020.05.004]

20. Zhao, L.; Li, Z.J.; Li, H.B.; Liu, B. Backstepping integral sliding mode control for pneumatic manipulators via adaptive extended state observers. ISA Trans.; 2024; 144, pp. 374-384. [DOI: https://dx.doi.org/10.1016/j.isatra.2023.10.014] [PubMed: https://www.ncbi.nlm.nih.gov/pubmed/37865589]

21. Ahmadi, K.; Asadi, D.; Merheb, A.; Nabavi-Chashmi, S.-Y.; Tutsoy, O. Active fault-tolerant control of quadrotor UAVs with nonlinear observer-based sliding mode control validated through hardware in the loop experiments. Control Eng. Pract.; 2023; 137, 105557. [DOI: https://dx.doi.org/10.1016/j.conengprac.2023.105557]

22. Herman, P. A Quasi-Velocity-Based Tracking Controller for a Class of Underactuated Marine Vehicles. Appl. Sci.; 2022; 12, 8903. [DOI: https://dx.doi.org/10.3390/app12178903]

23. Zhu, T.B.; Xiao, Y.J.; Zhang, H.; Pan, Y.F. Trajectory Tracking Control of USV Based on Exponential Global Fast Terminal Sliding Mode Control. Proc. Inst. Mech. Eng. Part I J. Syst. Control Eng.; 2024; 238, pp. 47-58. [DOI: https://dx.doi.org/10.21203/rs.3.rs-1234209/v1]

24. Wang, Y.; Du, Z.B. Trajectory Tracking Control for an Underactuated AUV via Nonsingular Fast Terminal Sliding Mode Approach. J. Mar. Sci. Eng.; 2024; 12, 1442. [DOI: https://dx.doi.org/10.3390/jmse12081442]

25. Xu, D.H.; Li, Z.L.; Xin, P.; Zhou, X.Q. The Non-Singular Terminal Sliding Mode Control of Underactuated Unmanned Surface Vessels Using Biologically Inspired Neural Network. J. Mar. Sci. Eng.; 2024; 12, 112. [DOI: https://dx.doi.org/10.3390/jmse12010112]

26. Wu, Z.W.; Peng, H.S.; Hu, B.; Feng, X.D. Trajectory Tracking of a Novel Underactuated AUV via Nonsingular Integral Terminal Sliding Mode Control. IEEE Access; 2021; 9, pp. 103407-103418. [DOI: https://dx.doi.org/10.1109/ACCESS.2021.3098800]

27. Lei, Y.S.; Zhang, X.K. Ship trajectory tracking control based on adaptive fast non-singular integral terminal sliding mode. Ocean Eng.; 2024; 311, 118975. [DOI: https://dx.doi.org/10.1016/j.oceaneng.2024.118975]

28. Sun, X.J.; Wang, G.F.; Fan, Y.S. Model Identification and Trajectory Tracking Control for Vector Propulsion Unmanned Surface Vehicles. Electronics; 2019; 9, 22. [DOI: https://dx.doi.org/10.3390/electronics9010022]

29. Zhang, Q.; Zhang, M.J.; Yang, R.M.; Im, N. Adaptive Neural Finite-time Trajectory Tracking Control of MSVs Subject to Uncertainties. Int. J. Control Autom. Syst.; 2021; 19, pp. 2238-2250. [DOI: https://dx.doi.org/10.1007/s12555-020-0130-5]

30. Zhang, C.J.; Wang, C.; Wei, Y.J.; Wang, J.Q. Neural-Based Command Filtered Backstepping Control for Trajectory Tracking of Underactuated Autonomous Surface Vehicles. IEEE Access; 2020; 8, pp. 42481-42490. [DOI: https://dx.doi.org/10.1109/ACCESS.2020.2975898]

31. Endo, M.; Hsegawa, K. Passage planning system for small inland vessels based on standard paradigms and maneuvers of experts. Proceedings of the International Conference on Marien Simulation and Ship Manoeuvrability; Kanazawa, Japan, 25–28 August 2003.

32. Cai, Z.F. A Fast Realization Method of S-shaped Acceleration and Deceleration Control Curve for Stepper Motor Based on STM32. Inf. Technol. Informatiz.; 2014; 27–29+33

33. Baraldo, S.; Valente, A. Smooth joint motion planning for high precision reconfigurable robot manipulators. In Proceeding of the 2017 IEEE International Conference on Robotics and Automation (ICRA); Singapore, 29 May–3 June 2017; [DOI: https://dx.doi.org/10.1109/ICRA.2017.7989103]

34. Gao, Q.H.; Dong, J.C. Feedforward compensation design for observation error of extended state observer. J. Natl. Univ. Def. Technol.; 2019; 41, pp. 93-102.

35. Sheng, Z.P. Adaptive Sliding Mode Control for Ship Motion; China Science Publishing & Media Ltd.: Beijing, China, 2019.

36. Do, K.D.; Jiang, Z.J.; Pan, J. Robust adaptive path following of underactuated ships. Automatica; 2004; 40, pp. 929-944. [DOI: https://dx.doi.org/10.1016/j.automatica.2004.01.021]

37. Jia, X.L.; Yang, T.S. Mathematical Models of Ship Motion: Mechanistic Modeling and Identification Modeling; Dalian Maritime University Press: Dalian, China, 1997.

38. Zhou, Z.M.; Sheng, Z.Y.; Feng, W.S. Forecasting the Maneuverability of Multi-Purpose Cargo Ships. Ship Eng.; 1983; 6, 21–29+36+4

© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.