Abstract
Adaptive robust controllers are proposed for trajectory tracking and stabilization of underactuated surface vessels simultaneously in this paper. Hierarchical sliding mode is employed to deal with the underactuation of the model, and neural network is used as a tool for approximating unknown nonlinear function in the system; in this way, the robustness of the proposed controller is strengthened, and the chattering problem of sliding mode technique is relieved. The nonlinear damping terms of ship’s model are considered which are neglected in many studies, and the time-varying disturbances are taken into account to test the robustness of the designed controllers. Stability is guaranteed by Lyapunov theorem, and the proof is given. Numerical simulations are implemented to demonstrate the effectiveness and the robustness of the designed controllers.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
1 Introduction
Control of underactuated surface vessels is a challenging topic due to its practical significance in ship motion control field. Firstly, the common configuration of surface vessels possesses only two actuators, while three-degree-of-freedom (3-DoF) motion needed to be controlled. The other challenge is that the ship motion is of strong nonlinearity, large inertia and time delay. The difficulties of tracking of underactuated surface vessels have stirred vast interests from control community [1].
Papoulias and Oral proposed several linear controllers by linearizing the ship dynamics, where the stability was lost due to the linearization [2, 3]. Godhavn developed a backstepping control law for tracking of underactuated surface vessel under the assumption that the forward velocity of the surface vessel was always positive [4], where uncertainties or environmental disturbances were not taken into account. In [5], a continuous time-invariant state controller was designed to achieve global exponential position tracking where the yaw angle could not be controlled. Lefeber obtained a global tracking result using cascade approach where the stability analysis depended on the linear time-varying theories [6]. The model of underactuated surface vessels cannot directly be transformed into chained form. Through a coordinate transformation, Pettersen and Nijmeijer [7] transformed the model into a triangular-like form which made it possible to use integrator backstepping and developed a tracking control law. Lefeber et al. [8] divided the tracking error dynamics into a cascade of two linear subsystems which could be stabilized independently of each other where a global solution to the tracking of underactuated ship was obtained. Jiang [9] developed two constructive tracking solutions based on Lyapunov’s method and passivity approach which were shown to be robust to the thruster dynamics. However, no other uncertainties or environmental disturbances were considered. All the works mentioned above [5–9] are under a sufficient condition for persistent excitation (PE) which requires that the reference yaw velocity does not converge to zero. This condition is rather restrictive from a practical perspective because it means that it is impossible to track a straight-line reference trajectory. This condition was first removed in [10]. Then, Do et al. [11] designed a universal controller based on Lyapunov’s direct method and backstepping technique to achieve stabilization and tracking simultaneously. They developed multivariable controllers to stabilize ocean surface ships on a linear course and to reduce the roll and pitch based on Lyapunov’s direct method and backstepping technique where the Lipschitz continuous projection algorithm is used in updating the estimation of the unknown parameters to avoid the parameters’ drift due to the time-varying environmental disturbances [12]. However, from [10–12], it can be found that these controllers were complex and dependent on reference signal. Complex control algorithm is not suitable for practical implementation. Smooth time-varying controllers are constructed by Cao and Tian [13] who introduced a time-varying coordinate transformation and used the cascade-design approach. However, no uncertainties or environmental disturbances were considered. A tracking controller for underactuated nonlinear autonomous ship was constructed in [14] using unscented Kalman filter (UKF) to update the estimation of the uncertain parameters online to avoid the parameters’ drift due to time-varying added mass matrices. Ashrafiuon et al. [15] proposed an asymptotically stable trajectory tracking sliding mode control law using two sliding surfaces for calculation of the two propeller forces. This control law was shown to be exponentially convergent for tracking a position while the angular velocity was only BIBO stable as long as the vessel was in motion. The work in [15] was extended to the case where the vessel could start from any initial condition and follow any desired trajectory at a practical desired orientation in [16] where setpoint control is dealt with as a special case. Li et al. [17] presented a novel backstepping design for 2-DoF path following kinematics and used 4-DoF model in simulations. A way-point tracking controller for underactuated surface vessels was obtained based on the combined model predictive control (MPC) scheme and line-of-sight (LOS) method [18]. Chwa [19] proposed a global tracking control method for underactuated ships with input and velocity constraints using the dynamic surface control (DSC) method, where the control structure is formed in a modular way that cascaded kinematic and dynamic linearizations can be achieved similarly as in the backstepping method. Movahhed et al. [20] used two sliding surfaces to determine the two propeller forces based on Lyapunov direct method and sliding mode scheme, where the parameter update laws were used to estimate uncertainties. Siramdasu and Fahimi [21] proposed a nonlinear model predictive controller (NMPC) for trajectory tracking of underactuated surface vessels, where NMPC is applied to calculate the future control inputs based on the present state variable by optimizing a cost function.
It can be seen from the works mentioned above that it is necessary to develop simple controllers for tracking of underactuated surface vessels with less computational burden from practical viewpoint. In addition, the designed controllers should be robust to the uncertainties and external disturbances. Last but not least, the real trajectory should follow desired signal very well no matter what kind of the trajectory is. In this paper, we design controllers for tracking of underactuated surface vessels by incorporating neural networks and hierarchical sliding mode technique [22]. Neural network is used for approximating nonlinear function in the underactuated system. Two sliding mode surfaces are introduced. The first one which contains two levels is for calculation of yaw moments, while the second one is common sliding mode surface for calculation of surge forces. The stability of the closed-loop system is proved by Lyapunov stability theorem. Various simulations are conducted to validate the performance of the proposed controllers.
2 Preliminaries and problem formulation
2.1 Neural network
In this section, RBF neural network is used as a tool for approximating the nonlinear function in the underactuated system [23]. It belongs to a kind of linearly parameterized neural networks and can be described as:
with the input vector Z ∊ Ω z ⊂ R n, weight vector W ∊ R l, weight number l, and basis function vector
Choose RBFs as the Gaussian functions in the following form:
where μ i = [μ i1, μ i2, …, μ in ]T is the center of the receptive field and δ i is the width of the Gaussian function. It has proved that function (1) can approximate any continuous function on a compact set Ω z ⊂ R l to arbitrary accuracy as:
where W* is the ideal constant weights, and ɛ is the approximation error.
The ideal weight vector W* is defined as the value of W that minimizes |ɛ| for all Z ∊ Ω z ⊂ R n
3 Problem formulation
In this section, we consider the ship motion model of three-degree-of-freedom in the horizontal plane with two actuators, i.e., propeller and rudder. The motion model comprises the kinematics model and the dynamics model [24]
where (x, y) denotes the coordinates of the vessel in earth-fixed frame. ψ is the yaw angle; u and v are the velocity of surge and sway, respectively; r is the yaw rate. The surge force τ 1 and yaw moment τ 2 are control inputs. m jj (j = 1, 2, 3) are the ship inertia; d u , d v , d r , d ui , d vi and d ri (i = 2, 3) are the hydrodynamic damping. τ uw , τ vw and τ rw are the external disturbances. Assumption 1 is employed to solve the problem of uncertainties of the model of ship's motion. The model we employed here is only for simulation rather than design procedure, because it is widely used in different works and it could be a good comparison. For our design, due to the merit of neural network, we do not care for the exact form of the model which means that we do not care for the exact form of f u , f v and f r .
Define
We can rewrite system (6) in the following form:
Assumption 1
f u , f v and f r are unknown continuous functions.
Assumption 2
The disturbances are bounded, such that |τ uw | ≤ d 1, |τ vw | ≤ d 2, |τ rw | ≤ d 3.
The desired trajectory is generated by a virtual ship that is described by the following models:
where the symbols have similar meaning as in system (6).
Convert the Eq. 7 into a suitable form as follows [25]:
Transform Eq. 8 into the following form:
The tracking error can be defined as follows:
The objective of this paper is to design a simple controller which makes the real trajectory track the desired trajectory as closely as possible. From the above transformation, the trajectory tracking problem is transformed to stabilizing system (11). Let z 1d = z 2d = z 3d = 0, the tracking problem can be transformed into the stabilization case.
4 Controller design
We design two controllers: one is surge force, the other one is yaw moment. Firstly, we design the yaw moment controller with a hierarchical sliding mode which contains two first-level sliding mode surfaces. Then, we design the surge force with a common sliding mode. The RBF neural network is employed to approximate the unknown functions f u , f v and f r in the underactuated system.
Step 1 Define the first first-level sliding mode surface of the yaw moment as follows:
where c 1 is the positive parameter.
Differentiating Eq. 12, we obtain
Employing RBF neural network to approximate f v and f r ,
where \(\hat{f}_{v}\) and \(\hat{f}_{r}\) are the estimations of f v and f r ; \(\hat{W}_{1}\) and \(\hat{W}_{2}\) are the estimations of \(\hat{W}_{{_{1} }}^{*}\) and \(\hat{W}_{{_{2} }}^{*}\).
Let Eq. 13 equal to zero, then we have
Define the second first-level sliding mode surface of yaw moment as follows:
where c 2 is the positive parameter.
Differentiating Eq. 17, we have
Let Eq. 18 equal to zero. Therefore, we have
Define second level sliding mode surface of yaw moment as follows:
where a and b are the positive controller parameters.
The switched law of yaw moment is
where η 1 and k 1 are the positive parameters.
Above all, the control law of yaw moment is
Step 2 Define the sliding mode surface of surge force as follows:
where c 3 is the positive parameter.
Differentiating Eq. 23, we have
Employing RBF neural network to approximate f u
where \(\hat{f}_{u}\) is the estimation of f u ; \(\hat{W}_{3}\) is the estimation of \(\hat{W}_{{_{3} }}^{*}\).
Let Eq. 24 equal to zero. We have
The switch part of sliding mode for the surge force is
where η 2 and k 2 are the positive parameters.
The control law of surge force is designed as:
Step 3 The adaptive laws are
where γ 1, γ 2 and γ 3 are the positive constants and Z = [u, v, r]T.
5 Stability analysis
Define the following Lyapunov function:
where \(\tilde{W}_{i} = W_{i}^{*} - \hat{W}_{i} \quad(i = 1,2,3)\).
Differentiating Eq. 30, we have
where \(\tilde{f}_{v} = f_{v} - \hat{f}_{v} ,\;\) \(\tilde{f}_{r} = f_{r} - \hat{f}_{r} ,\) \(\tilde{f}_{u} = f_{u} - \hat{f}_{u}\).
Substituting Eqs. 22 and 28 into Eq. 31, we obtain
Substituting Eqs. 14, 15 and 25 into Eq. 32, we have
Substituting Eq. 29 into 33, we obtain
Let η 1 > a(d 2 + |z 1|d 3) + bd 3 + aɛ 2 + |b − a|ɛ 3, η 2 > d 1 + |z 2|d 3 + ɛ 1 + |z 2|ɛ 3, we have
Above all, we can see that the closed-loop system is stable.
Integrating both sides of Eq. 35,
then
we can see
therefore
According to Barbalat’s lemma, we have
Step 1 Substitute Eq. 23 into Eq. 40, we have
then, we have
where C is constant.
Step 2 From Eq. 40, we have
There are two scenarios of solution for Eq. 43, the first one is
Similar to Step 1, then we can have
where C 1 and C 2 are constants.
The second scenario of solution is
However, the σ 1 is related to the ship position, while σ 2 is related to yaw angle. In addition, a and b are positive controller parameters. Therefore, Eq. 46 does not hold in reality when σ 1, σ 2 ≠ 0.
Above all, from Eqs. 42 and 45, we have \(\mathop {\lim }\limits_{t \to \infty } {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} z_{1e} ,z_{2e} ,z_{3e} \to 0\). Therefore, the closed-loop system is stable.
6 Simulation results
Three simulations are conducted to validate the proposed control algorithm. The first case is the ship course control. The second case is trajectory tracking with time-varying disturbances. The third case is stabilization of underactuated surface vessels.
6.1 Case 1: Course control
To illustrate the effectiveness of proposed control algorithm, PD controller is conducted as a comparative study. Reference signal starts at 0°, while the tracking signal starts at 20°. Figure 1 shows that the algorithm which combines sliding mode and neural network can converge to desired signal quickly, while the PD algorithm needs almost one cycle.
The fast convergent speed is only part of reason why we employ sliding mode and neural network. The main reason is to improve robustness of the algorithm, since ship motion is often influenced by wind, wave and current. It is necessary to consider the influence of external disturbances for ship motion control. Keep all the controller parameters the same. Add the time-varying disturbance on the plant. Figure 2 shows that the PD controller almost lose the tracking ability, while the algorithm combining sliding mode and neural network still works well.
6.2 Case 2: Trajectory tracking
The parameters of ship motion model are [24] m 11 = 120 × 103, m 22 = 177.9 × 103, m 33 = 636 × 105, d u = 215 × 102, d v = 147 × 103, d r = 802 × 104, d u2 = 0.2d u , d u3 = 0.1d u , d v2 = 0.2d v , d v3 = 0.1d v , d r2 = 0.2d r , d r3 = 0.1d r . The controller parameters are c 1 = 0.3, c 2 = 0.3, c 3 = 0.3, a 0 = 0.001, b = 100, k 1 = 100, k 2 = 100, η 1 = 0.001, η 2 = 0.001. The neural network parameters are μ i = 0.5, δ i = 5(i = 1, 2, 3).
Remark
The parameters c i (i = 1, 2, 3) are related to the response time to reach the sliding mode surface. The larger the positive value of c i (i = 1, 2, 3), the shorter time is needed. The parameters η i (i = 1, 2) are important which are closely related to the robustness of controllers. However, the larger value of η i (i = 1, 2) would cause chattering problem. Thus, η i (i = 1, 2) should be chosen carefully.
The initial values are x 0 = 5 m, y 0 = 1 m, ψ 0 = 45°; u 0 = v 0 = r 0 = 0, x d0 = 15 m, y d0 = 15 m, ψ d0 = 0, u d0 = v d0 = r d0 = 0. The time-varying external disturbances are τ uw = 11 × 102 (1 + sin (0.01t))/m 11, τ vw = 26 × 102 (1 + sin (0.01t))/m 22, τ rw = 950 × 102 (1 + sin (0.01t))/m 33. Figure 3 depicts the tracking performance of the proposed controllers. It can be seen from Fig. 3 that tracking trajectory fits the desired trajectory quite well. Figure 4 depicts the velocity of surge and sway, respectively. Figure 5 depicts yaw angle and yaw rate. Figure 6 shows the surge force and yaw moment, respectively. From these figures, we can conclude that the proposed controllers are robustness to the external disturbances.
7 Case 3: Stabilization
The initial parameters are (x s0, y s0, ψ s0, u s0, v s0, r s0) = (3 m, 1.6 m, 45°, 0, 0, 0). Figure 7 depicts the stabilization performance of the proposed controllers. It can be seen from this figure that the ability of stabilization of the proposed controllers is quite well under time-varying disturbances. Figure 8 depicts the velocity of surge and sway. Figure 9 shows the yaw angle and yaw rate. Figure 10 shows the surge force and yaw moment.
8 Conclusions
In this paper, we propose adaptive robust controllers for trajectory tracking and stabilization of underactuated surface vessels. Two sliding mode controllers are designed: a common sliding mode controller for the surge force control and a hierarchical controller for the yaw moment control. Neural network is employed to approximate the model uncertainties. Time-varying disturbances are involved to test the performance of the proposed controllers. The closed-loop stability of the system is proved by Lyapunov stability theorem. Simulation results validate the effectiveness of the proposed controllers.
The main motivation of combined neural network and sliding mode is for its robustness. In reality, the disturbance is usually existed. The robustness of the controller algorithm is very important. The proposed algorithm, actually, can be applied into many other applications, such as robot, aircraft, and underwater vehicle, etc.
References
Ashrafiuon H, Musk KR, McNinch LC (2010) Review of nonlinear tracking and setpoint control approaches for autonomous underactuated marine vehicles, 2010 American Control Conference, Baltimore, USA, pp 5203–5211
Papoulias FA (1994) Cross track error and proportional turning rate guidance of marine vehicles. J Ship Res 38(2):123–132
Papoulias FA, Oral ZO (1995) Hopf bifurcations and nonlinear studies of gain margins in path control of marine vehicles. Appl Ocean Res 17(1):21–32
Godhavn JM (1996) Nonlinear tracking of underactuated surface vessels. In: Proceedings of the 35th IEEE Conference on Decision and Control, pp 975–980
Godhavn JM, Fossen TI, Berge SP (1998) Nonlinear and adaptive backstepping designs for tracking control of ships. Int J Adapt Control Signal Process 12(8):649–670
Lefeber E, (2000) Tracking control of nonlinear mechanical systems, Ph. D. thesis, University of Twente
Pettersen KY, Nijmeijer H (2001) Underactuated ship control: theory and experiments. Int J Control 74(14):1435–1446
Lefeber E, Pettersen KY, Nijmeijer H (2003) Tracking control of an underactuated ship. IEEE Trans Control Syst Technol 11(1):52–61
Jiang ZP (2002) Global tracking control of underactuated ships by Lyapunov’s direct method. Automatica 38(1):301–309
Do KD, Jiang ZP, Pan J (2002) Underactuated ship global tracking under relaxed conditions. IEEE Trans Autom Control 47(9):1529–1536
Do KD, Jiang ZP, Pan J (2002) Universal controllers for stabilization and tracking of underactuated ships. Syst Control Lett 47(4):299–317
Do KD, Pan J, Jiang ZP (2003) Robust adaptive control of underactuated ships on a linear course with comfort. Ocean Eng 30(17):2201–2225
Cao KC, Tian YP (2007) A time-varying cascaded design for trajectory tracking control of non-holonomic systems. Int J Control 80(3):416–429
Peng Y, Han J Dand Song Q (2007) Tracking control of underactuated surface ships: using unscented Kalman filter to estimate the uncertain parameters. In: Proceedings of the 2007 IEEE International Conference on Mechatronics and Automation, Harbin, China, pp 1884–1889
Ashrafiuon H, Muske KR, McNinch LC, Soltan RA (2008) Sliding-mode tracking control of surface vessels. IEEE Trans Ind Electron 55(11):4004–4012
Soltan R A, Ashrafiuon H and Muske K R (2009) State-dependent trajectory planning and tracking control of unmanned surface vessels. In: Proceedings of the 2009 American Control Conference, St. Louis, USA, pp 3597–3602
Li Z, Sun J, Oh SR (2009) Design, analysis and experimental validation of a robust nonlinear path following controller for marine surface vessels. Automatica 45(7):1649–1658
Oh SR, Sun J (2010) Path following of underactuated marine surface vessels using line-of-sight based model predictive control. Ocean Eng 37(2–3):289–295
Chwa D (2011) Global tracking control of underactuated ships with input and velocity constraints using dynamic surface control method. IEEE Trans Control Syst Technol 19(6):1357–1370
Movahhed M, Dadashi S and Danesh M (2011) Adaptive sliding mode control for autonomous surface vessel. In: Proceedings of the 2011 IEEE International Conference on Mechatronics, Istanbul, Turkey, pp 522–527
Siramdasu Y, Fahimi F (2012) Incorporating input saturation for underactuated surface vessel trajectory tracking control. In: 2012 American Control Conference, Montréal, Canada, pp 6203–6208
Wang W, Zhao D, Liu D (2004) Design of a stable sliding-mode controller for a class of second-order underactuated systems. IET Control Theory Appl 151(6):683–690
Ge SS, Hang CC, Lee TH, Zhang T (2001) Stable Adaptive Neural Network Control. Kluwer Academic, Norwell
Do KD, Jiang ZP, Pan J (2004) Robust adaptive path following of underactuated ships. Automatica 40(6):929–944
Pettersen K and Egeland O (1996) Exponential stabilization of an underactuated surface vessel. In: Proceedings of 35th Conference of Decision Control, Kobe, Japan, pp 967–971
Acknowledgments
This work was supported by the Special Research Fund of Ministry of Education of China for the Doctoral Program (Grant No.: 20110073110009) and the National Natural Science Foundation of China (Grant No.: 51279106).
Author information
Authors and Affiliations
Corresponding author
About this article
Cite this article
Liu, C., Zou, Z. & Yin, J. Trajectory tracking of underactuated surface vessels based on neural network and hierarchical sliding mode. J Mar Sci Technol 20, 322–330 (2015). https://doi.org/10.1007/s00773-014-0285-y
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00773-014-0285-y