1 Introduction

Over the last two decades, research on control of autonomous underwater vehicles (AUVs) has become an important topic due to their wide applications in security patrols, search and rescue in hazardous environments, etc.[13]. In military missions, a group of AUVs are required to maintain a specific formation for an area coverage and reconnaissance. Remotely operated vehicles (ROVs) and AUVs are directly involved in exploitation of resources located at deep oceanic environment[4]. AUVs are also used in risky and hazardous operations such as bathymetric surveys, oceanographic observations, recovery of lost man-made objects and ocean floor analysis.

The trajectory planning and tracking of an AUV is an important research topic. During traversing in a computed path, an AUV provides real-time data to be compared with the designed model[5]. The path is planned by considering two points such as start point and a destination point with a velocity field, where the path is to be traversed within a minimum time[6, 7]. The optimum path is efficiently generated using path parameterization, cost function techniques and minimum expenditure of energy[8]. The coordinated path following problem of marine craft was proposed in [9], where the path following situation was discussed based on the convergence of geometric errors at the origin of each vehicle. The problem of path planning was solved based on fast marching algorithm in [10], where the path tracking algorithm was designed by assuming the AUV to maneuver on a fixed depth. The AUVs were given a task of mine counter measure (MCM) based on synthetic aperture sonar (SAS) data collected at sea[11]. The path following problem was solved by getting inspiration from biological agents in [12]. This bio-inspired model in horizontal plane was capable of generating real time smooth forward and angular velocities. The path following and trajectory tracking problems were solved by a backstepping approach using a special type of kinematics which was developed by Lyapunov’s direct method, and then it was extended to solve the dynamic problem in [13]. The problem of trajectory planning and tracking control was solved by using error dynamics of AUV in the horizontal plane in [14], in which the closed loop tracking controller was developed using backstepping techniques. An adaptive controller was also developed for controlling the nonholonomic mobile robot in [15, 16], where the learning method on neutral network is used to design the robust adaptive controller. In [17], a fuzzy adaptive linearized controller with backstepping-like feedback was used to control the wheeled mobile robot for tracking of the desired trajectories. An adaptive sliding mode controller was used to control the uncertainties accompanied by the camera mounted on the nonholonomic dynamic mobile robot in [18]. A nonlinear iterative sliding mode incremental feedback controller that was developed to track an AUV along the desired trajectories in the horizontal plane is described in [19]. An adaptive neural network controller based on dynamic surface control (DSC) and minimal learning parameters (MLP) was proposed in [20]. The problem of trajectory tracking of AUV was solved in [21] by using sliding mode controller combined with line of sight (LOS) and cross track error methods. The adaptive controller along with radial basis function neural network (RBF-NN) was employed for controlling AUVs to follow the desired trajectories in [22]. A static output feedback controller was proposed in [23] for controlling an AUV to track along the desired trajectory. A virtual vehicle concept that is used to develop the backstepping controller for controlling unmanned underwater vehicle (UUV) to track along the desired trajectory was presented in [24]. A feedback controller based on LOS in the presence of oceanic current disturbances was developed in [25] to control the AUVs for tracking the desired trajectories. A region boundary adaptive controller developed for trajectory tracking of AUV was presented in [26], where the entire boundary was united by the use of multiplicative potential energy functions. In [27], a backstepping controller with a LOS guidance system was used to control an AUV to track the desired trajectory in the presence of ocean current, in which the unknown parameters were estimated by using parameter rejection techniques. A new frame work for object detection and tracking method of an AUV was presented in [28]. This controller was designed for a vision-based AUV which carries a forward looking sonar. In [29], a backstepping adapting controller was developed for an AUV to track the desired path. The stability of the developed controller was proved by using a Lyapunov’s criterion.

Path planning of different autonomous agents such as marine crafts, mobile robots and AUVs has been reported in literature. Tracking of an AUV along a desired trajectory is an important task. It is difficult to develop a controller for an AUV in the dynamic environment where hydrodynamic uncertainties exist. Under these difficulties, the focus of this paper is to develop a trajectory tracking control law of the AUV. The contribution of this paper lies in the development of an adaptive controller such that the AUV can track the desired trajectory in the dynamic environment in the presence of uncertainties owing to hydrodynamic parameters.

In this work, we assume that while moving in a horizontal plane, the dynamic behavior of an AUV is similar to that of an under-actuated surface vessel. Also the orientation of the AUV is similar to that of the surface vessel. It is intended to design a control law such that the AUV can track a desired trajectory accordingly.

In the development of the controller for an under-actuated AUV, we consider four degrees of freedom (DOF) for simplicity. We propose an adaptive controller using a regressor matrix consisting of unknown parameters. The stability of the developed control law is verified using Lyapunov’s stability criterion. From the numerical simulations presented, it can be seen that the proposed controller is efficient in providing appropriate adaptive control action to force the AUV to follow the desired trajectory in the presence of hydrodynamic parameter uncertainties.

Some challenges involved with this approach, as compared to some existing approaches[14, 19], are as follows. The dynamics of the AUV is nonlinear and uncertain, and the effects of Coriolis, gravitational and damping factors in six degrees of freedom increase the mathematical complexity. Thus, designing an adaptive control law and its implementation are challenging. To ensure the stability of the proposed controller by choosing the Lyapunovs function is also difficult.

The rest of the paper is organized as follows. Section 2 presents the problem statement. AUV kinematics and dynamics are discussed in Section 3. The development of a new adaptive control law based on regressor approach for the AUV to achieve tracking of a desired trajectory is developed in Section 4. In this section, the stability of the developed adaptive control law is verified by using Lyapunov’s stability criterion. To verify the efficiency of the proposed control law, simulation studies are made and results analyses are provided in Section 5. Conclusions are presented in Section 6.

2 Problem statement

Starting from any arbitrary point in the space, the AUV must asymptotically converge to the desired trajectory after a certain time. In other words, the actual trajectory travelled by the AUV should coincide with the desired one, i.e., the tracking errors between the positions of the desired and actual trajectories should be zero, namely

$$\mathop {\lim }\limits_{t \to \infty } \left| {\eta - {\eta _d}} \right| = 0$$
(1)

where η = [x, y, z, φ, θ, ψ]T is the position and orientation vector in the inertial frame; x, y, z are the coordinates of position, and φ, θ, ψ are orientations in the longitudinal, transversal and vertical axes, respectively. η d = [x d , y d , z d , φ d , θ d , ψ d ]T is the position and orientation vector of the desired trajectory; x d , y d , z d are the coordinates of the desired position, and φd, θ d , ψ d are orientations in the desired longitudinal, transversal and vertical axes, respectively.

3 AUV kinematics and dynamics

The AUV dynamics contains highly nonlinear and coupled terms which make the mathematical modeling difficult. The forces and moments of a simple AUV in three dimensions is presented in Fig. 1.

Fig. 1
figure 1

Schematic presentation of an AUV with different frame of references

Consider the motion of an AUV in 6-DOF. Define the following vector[30]:

$$\matrix{{\nu = {{\left[ {u,v,w,p,q,r} \right]}^{\rm{T}}}} \cr {\tau = {{\left[ {X,Y,Z,K,M,N} \right]}^{\rm{T}}}} \cr }$$
(2)

where ν is the velocity vector in the body-fixed frame, u, v and w denote linear velocities; p, q, r are angular velocities; X, Y, Z are forces; K, M, N denote moments. τ is the vector of forces and moments acting on the AUV in the body-fixed frame.

The dynamic equation of motion can be expressed as

$$M(\eta )\ddot \eta + C(\eta, \dot \eta )\dot \eta + D(\eta, \dot \eta )\dot \eta + g(\eta ) = \tau.$$
(3)

The kinematic equation of AUV is given by

$$\dot \eta = J\left( \eta \right)\nu $$
(4)

where M(η) is the inertia matrix including added mass, \(C(\eta, \dot \eta )\) is the matrix of Coriolis and centripetal terms including the added mass. \(D(\eta, \dot \eta )\) denotes the hydrodynamic damping and lift matrix, g(η) is the vector of gravitational forces and moments, and J(η) is the velocity transformation matrix between AUV and earth fixed frames.

This transformation matrix J(η) can be obtained as

$$J(\eta ) = \left[ {\matrix{{{J_1}(\eta )} & {{0_{3 \times 3}}} \cr {{0_{3 \times 3}}} & {{J_2}(\eta )} \cr } } \right]$$
(5)

where

$${J_1}(\eta ) = \left[ {\matrix{{{\rm{c}}\psi {\rm{c}}\theta } \hfill & { - {\rm{s}}\psi {\rm{c}}\phi + {\rm{c}}\psi {\rm{s}}\theta {\rm{s}}\phi } \hfill & {{\rm{s}}\psi {\rm{s}}\phi + {\rm{c}}\psi {\rm{c}}\phi {\rm{s}}\theta } \hfill \cr {{\rm{s}}\psi {\rm{c}}\theta } \hfill & {{\rm{c}}\psi {\rm{c}}\phi + {\rm{s}}\phi {\rm{s}}\theta {\rm{c}}\psi } \hfill & { - {\rm{c}}\psi {\rm{s}}\phi + {\rm{s}}\theta {\rm{s}}\psi {\rm{c}}\phi } \hfill \cr { - {\rm{s}}\theta } \hfill & {{\rm{c}}\theta {\rm{s}}\phi } \hfill & {{\rm{c}}\theta {\rm{c}}\phi } \hfill \cr } } \right]$$
(6)
$${J_2}(\eta ) = \left[ {\matrix{1 \hfill & {{\rm{s}}\phi {\rm{t}}\theta } \hfill & {{\rm{c}}\phi {\rm{t}}\theta } \hfill \cr 0 \hfill & {{\rm{c}}\phi } \hfill & { - {\rm{s}}\phi } \hfill \cr 0 \hfill & {{{{\rm{s}}\phi } \over {{\rm{c}}\theta }}} \hfill & {{{{\rm{c}}\phi } \over {{\rm{c}}\theta }}} \hfill \cr } } \right]$$
(7)

where s(·)=sin(·), c(·) = cos(·), t(·)=tan(·).

Assumption 1. Due to asymmetric body structure of the AUV, deriving a control law is very difficult. For sake of convenience, the following assumptions are made.

  1. 1)

    Center of mass (CM) and center of buoyancy (CB) coincide with each other.

  2. 2)

    Mass distribution all over the body is homogeneous.

  3. 3)

    The hydrodynamic terms of higher order as well as pitch and role motions are negligible.

4 Path following control law

The AUV dynamics given in (3) has parameter uncertainties in damping factors. It is intended to compensate these uncertainties. Therefore, an adaptive control law is developed to obtain consistent performance of the AUV by estimating the uncertain parameters. The adaptation mechanism is used to adjust the parameters in the control law. The proposed adaptive controller is designed such that it forces the AUV to track the desired trajectory in the presence of parameter uncertainties. For this, we define a regressor matrix

$$Y = Y(\eta, \dot \eta, {\dot \eta _d},{\ddot \eta _d})$$

such that

$$M{\ddot \eta _d} + C(\eta, \dot \eta ){\dot \eta _d} + D(\eta, \dot \eta ){\dot \eta _d} + g(\eta ) = Y(\eta, \dot \eta, {\dot \eta _d},{\ddot \eta _d})\alpha $$
(8)

where η d = [x d , y d , z d , φ d , θ d , ψ d ]T is the position and orientation vector of the desired trajectory in the inertial frame. Consider the control law in the following form:

$$\tau = Y\hat \alpha - {K_D}s$$
(9)

where Y \(\hat \alpha \) is the feed forward term, K D s is a simple propositional differential (PD) term. K D is a positive definite gain matrix and the error vector s is defined as

$$\matrix{{s = {e_\nu } + \Lambda {e_p}} \cr {{e_p} = \eta - {\eta _d}} \cr {{e_\nu } = \nu - {\nu _d}} \cr }$$
(10)

Λ = positive definite matrix

$$\dot \hat \alpha = - \Gamma {Y^{\rm{T}}}s$$
(11)

where Γ is the positive definite symmetric matrix. It is chosen in such a way that the tuning law provides convergent characteristics.

It will be shortly proved that, the proposed parameter adaptation law given in (11) is able to drive the AUV in the desired trajectory and the stability of the AUV system is ensured.

The structure of the proposed adaptation control law is shown in Fig. 2.

Fig. 2
figure 2

Structure of the proposed adaptation control law

The stability of the proposed adaptive control law is proved by using Lyapunov’s stability criterion as described below. Choose a Lyapunov candidate function, V(t) satisfies (12) and is given by (13)

$$\left\{ {\matrix{{V(t):{{\bf{R}}^n} \to {\bf{R}}{\rm{such}}{\rm{that}}} \cr {V(t) \geqslant 0,{\rm{if and only if}}\,t = 0({\rm{positive}}\;{\rm{definite}})} \cr {\dot V(t) = {{\rm{d}} \over {{\rm{d}}t}}V(t) \leqslant 0,} \cr {{\rm{if}}\;{\rm{and}}\;{\rm{only}}\;{\rm{if}}\,t = 0{\rm{(negative definite)}}{.}} \cr } } \right.$$
(12)

We will prove that the system is asymptotically stable in the sense of Lyapunov if (12) is satisfied.

Proof (Stability of the proposed control law). Let V(t) be a Lyapunov candidate function and be given by

$$V(t) = {1 \over 2}\left[ {{s^{\rm{T}}}Ms + {{\tilde \alpha }^{\rm{T}}}{\Gamma ^{ - 1}}\tilde \alpha } \right] = {V_1}(t) + {V_2}(t)$$
(13)

where \({V_1}(t) = {1 \over 2}{s^{\rm{T}}}Ms\) Ms and \({V_2}(t) = {1 \over 2}{{\tilde \alpha }^{\rm{T}}}{\Gamma ^{ - 1}}\tilde \alpha \).

Taking derivative of (13) gives

$$\dot V(t) = {\dot V_1}(t) + {\dot V_2}(t).$$
(14)

Analysis of first term of (14):

$${\dot V_1}(t) = {s^{\rm{T}}}M\dot s + {1 \over 2}{s^{\rm{T}}}\dot M.$$
(15)

Substituting (10) into (15) and referring to [31], one can get

$${\dot V_1}(t) = {s^{\rm{T}}}M(\ddot \eta - {\ddot \eta _d}) + {1 \over 2}{s^{\rm{T}}}\dot Ms$$
(16)

where \(s = \dot \eta - {{\dot \eta }_d}\).

Substituting the value of \(M(\eta )\ddot \eta \) from (3) into (15) and solving for \({{\dot V}_1}(t)\), one obtains

$${\dot V_1}(t) = {s^{\rm{T}}}\left( {\tau - C\dot \eta - D\dot \eta - g - M{{\ddot \eta }_d}} \right) + {1 \over 2}{s^{\rm{T}}}\dot Ms.$$
(17)

But \(\dot \eta = s + {{\dot \eta }_d}\),

$$\matrix{{{{\dot V}_1}(t) = {s^{\rm{T}}}\left( {\tau - C{{\dot \eta }_d} - D{{\dot \eta }_d} - g - M{{\ddot \eta }_d} - (C + D)s} \right) + } \cr {{1 \over 2}{s^{\rm{T}}}\dot Ms} \cr }$$
(18)

or

$$\matrix{{{{\dot V}_1}(t) = {s^{\rm{T}}}\left( {\tau - M{{\ddot \eta }_d} - C{{\dot \eta }_d} - D{{\dot \eta }_d} - g} \right) + } \cr {{1 \over 2}{s^{\rm{T}}}\left( {\dot M - 2(C + D)} \right)s.} \cr }$$
(19)

One can easily verify that for an AUV, \(\dot M - 2(C + D)\) is a skew-symmetric matrix. Substituting the system dynamics of AUV given in (3) into (19), one has

$${\dot V_1}(t) = {s^{\rm{T}}}\left( {\tau - M{{\ddot \eta }_d} - C{{\dot \eta }_d} - {D_d}\dot \eta - g} \right).$$
(20)

Analysis of second term of (14):

The second term of (14) can be rewritten as

$${V_2}(t) = {1 \over 2}{\tilde \alpha ^{\rm{T}}}{\Gamma ^{ - 1}}\tilde \alpha, \quad \tilde \alpha = \hat \alpha - \alpha $$
(21)

where \(\dot \tilde \alpha = \dot \hat \alpha \), as α=constant definite vector.

The first derivative of (21) is

$${\dot V_2}(t) = {\dot \tilde \alpha ^{\rm{T}}}{\Gamma ^{ - 1}}\tilde \alpha.$$
(22)

Therefore

$$\matrix{{\dot V(t) = {{\dot V}_1}(t) + {{\dot V}_2}(t) = } \cr {{s^{\rm{T}}}\left( {\tau - M{{\ddot \eta }_d} - C{{\dot \eta }_d} - {D_d}\dot \eta - g} \right) + {{\dot \hat \alpha }^{\rm{T}}}{\Gamma ^{ - 1}}\tilde \alpha.} \cr }$$
(23)

Using (8) in (23) one obtains

$$\dot V(t) = {s^{\rm{T}}}\left( {\tau - Y\tilde \alpha } \right) + {\dot \hat \alpha ^{\rm{T}}}{\Gamma ^{ - 1}}\tilde \alpha.$$
(24)

Substituting the controller input \(\tau = Y\hat \alpha - {K_D}s\) into (24) and solving (24) gives

$$\dot V(t) = {s^{\rm{T}}}Y\tilde \alpha - {s^{\rm{T}}}{K_D}s + {\dot \hat \alpha ^{\rm{T}}}{\Gamma ^{ - 1}}\tilde \alpha.$$
(25)

Substituting \(\dot \hat \alpha = - \Gamma {Y^{\rm{T}}}s\) into (25), we can obtain

$$\dot V(t) = - {s^{\rm{T}}}{K_D}s \leqslant 0.$$
(26)

Equation (26) satisfies the Lyapunov’s stability criterion for AUV dynamics with a stable controller. Hence the proposed adaptive control law (9) yields a stable closed system. □

Considering the model of AUV in 4-DOF for simplicity, (8) can be presented as

$$M{\ddot \eta _d} + D(\eta, \dot \eta ){\dot \eta _d} = \tau $$
(27)

or

(28)

where τ = [τ X , τ y , τ Z , τ R ]T.

Let the reference trajectory of the AUV be defined as

$${\dot x_d} = {u_d},\;{\dot y_d} = {v_d},\;{\dot z_d} = {w_d},\;{\dot \psi _d} = {r_d}.$$
(29)

Equation (28) can be rewritten in a simplified form as

$$\matrix{{{m_{11}}{{\dot u}_d} + {d_{11}}\left| {{u_d}} \right|{u_d} = {\tau _x}} \cr {{m_{22}}{{\dot v}_d} + {d_{22}}\left| {{v_d}} \right|{v_d} = {\tau _y}} \cr {{m_{33}}{{\dot w}_d} + {d_{33}}\left| {{w_d}} \right|{w_d} = {\tau _z}} \cr {{m_{44}}{{\dot r}_d} + {d_{44}}\left| {{r_d}} \right|{r_d} = {\tau _r}.} \cr }$$
(30)

Equations (30) can be expressed in a matrix form as

$$Y({\nu _d},{\dot \nu _d})\alpha = \tau $$
(31)

where

(32)

where \(Y({\nu _d},{{\dot \nu }_d})\) denotes the regressor matrix and α is defined as

$$\alpha = {[{m_{11}},{d_{11}},{m_{22}},{d_{22}},{m_{33}},{d_{33}},{m_{44}},{d_{44}}]^{\rm{T}}}.$$
(33)

Using the regressor matrix \(Y({\nu _d},{{\dot \nu }_d})\), the AUV model (27) can be expressed in a linear parametric form. The derivation of the regressor matrix of a high-DOF is very tedious. Hence, only four DOFs are considered for simplicity. For real-time realization, the regressor matrix is to be computed in each control cycle; also the computation of each parameter of the matrix is performed in each iteration[32]. The regressor matrix is a state dependent matrix. The elements of this matrix contain velocity and acceleration terms which are computed in each iteration of the control cycle.

5 Results and discussions

The proposed adaptive control algorithm was applied to a four DOF AUV model as given in (27) which is rewritten as

$$M{\ddot \eta _d} + D(\eta, \dot \eta ){\dot \eta _d} = \tau $$
(34)
$${\eta _d} = {\left[ {{x_d},{y_d},{z_d},{\psi _d}} \right]^{\rm{T}}}$$
(35)

where

$$\matrix{{M = {\rm{diag}}\left\{ {{m_{11}},{m_{22}},{m_{33}},{m_{44}}} \right\}} \cr {D(\eta, \dot \eta ) = {\rm{diag}}\left\{ {{d_{11}},{d_{22}},{d_{33}},{d_{44}}} \right\}.} \cr }$$

Equation (28) can be rewritten as

$$\tau = Y(\eta, \dot \eta, {\dot \eta _d},{\ddot \eta _d})p$$
(36)

where

(37)
$$p = {[{m_{11}},{d_{11}},{m_{22}},{d_{22}},{m_{33}},{d_{33}},{m_{44}},{d_{44}}]^{\rm{T}}}.$$
(38)

To verify the efficacy of the proposed control law, numerical simulations are carried out. Consider various desired trajectories and conditions as described next.

Case 1. Desired circular path. We consider a desired circular path as

$$\matrix{{{x_d} = 10\sin (0.01t)} \cr {{y_d} = 10\cos (0.01t)} \cr }$$
$${z_d} = 10,\,\,{\psi _d} = {\pi \over 3}.$$
(39)

It is ensured that the derivatives at least second order of (39), i.e., \({{\dot x}_d},{{\dot y}_d},{{\dot z}_d},{{\dot \psi }_d},{{\ddot x}_d},{{\ddot y}_d},{{\ddot z}_d},{{\ddot \psi }_d}\) exist. The parameters of the AUV which are necessary are considered and given in Table 1.

Table 1 Parameters of AUV used for simulation

Next, we present the results obtained as follows.

Figs. 3 (a) and (b) show the planner and spatial views of the actual and reference positions when the AUV intended to track a circular path as given in (39). From these figures, it is observed that after 10 s, the AUV tracked the desired trajectory (Fig. 4(a)).

Fig. 3
figure 3

Circular trajectory tracking of AUV with reference path and actual path: (a) Spatial view; (b) Planner view

Fig. 4
figure 4

Actual position and reference position in circular path for (a) 25 s and (b) 700 s, respectively

The comparison of the desired and actual positions as well as orientations of the AUV in the earth fixed inertial frame of reference is shown in Fig. 4(b). From this figure, it is observed that the actual and desired positions matched with each other in 10 s.

Fig. 5 presents the comparison of the desired and the actual linear velocities as well as angular velocities of the AUV. From this result, it is observed that the desired and the actual velocities matched with each other.

Fig. 5
figure 5

Actual velocity and desired velocity in circular path

Fig. 6 depicts the position errors in the x, y, z, ψ directions. From this result, it is observed that the position errors converged to zero. Thus the proposed controller steered the AUV to track the desired path accurately.

Fig. 6
figure 6

Position errors in circular path

The errors between desired and actual linear velocities as well as angular velocities of the AUV in the body fixed frame of reference are shown in Fig. 7. From this figure, it is found that the velocity errors converged to zero, i.e., the actual and the desired states (both positions and velocities) of the AUV closely matched with each other.

Fig. 7
figure 7

Velocity errors in circular path

Fig. 8 shows the forces and torques applied to the AUV. From this figure, it is observed that in the early period, the AUV required some force and torque to start its initial journey. After 20 s, the forces and torques asymptotically converged to zero, indicating that the linear and angular accelerations became zero, i.e., the linear and angular velocities became constants. Hence, the AUV tracked the desired trajectory smoothly after 20 s.

Fig. 8
figure 8

Forces and torques in circular path

Case 2. Desired spiral path. Next we consider a spiral path in the space as

$$\matrix{{{x_d} = 10\sin (0.01t)} \cr {{y_d} = 10\cos (0.01t)} \cr {{z_d} = t,\,\,{\psi _d} = {\pi \over 3}.} \cr }$$
(40)

As in the case of circular path, for the spiral path the derivatives up to the second order, i.e., \({{\dot x}_d},{{\dot y}_d},{{\dot z}_d},{{\dot \psi }_d},{{\ddot x}_d},{{\ddot y}_d},{{\ddot z}_d},{{\ddot \psi }_d}\) are also necessary. The other parameters such as m 11, m 22, m 33, m 44, d 11, d 22, d 33, d 44, K D , Λ and Γ are given in Table 1.

Fig. 9 shows the spiral path followed by the AUV. From this figure, it is clear that by using the proposed control law, the AUV tracked the desired trajectory. The desired as well as actual positions and velocities are shown in Figs. 10(a), (b) and Fig. 11, respectively. From these figures, it is clear that the desired positions and velocities matched with the actual positions and velocities of the AUV, respectively.

Fig. 9
figure 9

Spiral trajectory tracking of AUV

Fig. 10
figure 10

Actual position and reference position in circular path for (a) 25 s and (b) 1500 s, respectively

Fig. 11
figure 11

Actual velocity and desired velocity in spiral path

Figs. 12 and 13 show the position and velocity errors, respectively. From these figures, it is observed that the position and velocity errors tended to zero in 10 s from the beginning.

Fig. 12
figure 12

Position errors in spiral path

Fig. 13
figure 13

Velocity errors in spiral path

Fig. 14 shows the forces and torques applied to the AUV. From this figure, it is observed that in the beginning stage of motion of the AUV, the forces and torques had some definite values and these were asymptotically tending to zero. This shows that at the early stage the AUV accomplished acceleration, which then gradually tended to zero. So the AUV tracked the desired trajectory with a constant velocity smoothly.

Fig. 14
figure 14

Forces and torques

6 Conclusions

In this paper, a new adaptive control law for trajectory tracking of AUV moving in space is addressed. The adaptive control law is developed with estimation of uncertain parameters associated with the hydrodynamic damping coefficients. This law is used to generate appropriate control for the AUV to track the desired trajectories. The stability of the control law is verified using Lyapunov’s direct method. By comparing the desired positions and velocities with the actual positions and velocities, respectively, it is found that all the errors are converge to zero quickly. From the numerical simulation results, the efficacy and accuracy of the developed control law are verified.