#### Abstract

This paper addresses the problem of accurate path following control for an underactuated unmanned underwater vehicle (UUV) in the horizontal plane. For an underactuated UUV, the line-of-sight (LOS) guidance method is adopted to map 2D reference trajectory into a desired orientation, and through the tracking of heading to achieve path following, where the sideslip is introduced to modify the desired orientation. In this paper, we propose a method called dynamic surface and active disturbance rejection control (DS-ADRC) to solve the path following control problem. This controller can effectively avoid the phenomenon of explosion of terms in the conventional backstepping method, reduce the dependence on the UUV controller mathematical model, and enhance the antijamming ability. Simulation is carried out to verify the effectiveness of the proposed control method for an underactuated UUV. The results show that, even for this controller with disturbance, the cross-track error of UUV is gradually converged to zero and has some certain robustness.

#### 1. Introduction

The high accuracy path following mission is a typical behavior of UUVs, and it is an important method for UUVs to complete other tasks (such as topography examination and long distance navigation) [1]. Under the influences of some uncertain disturbance such as the ocean current, the UUV’s movements are very complicated with six degrees of freedom (DOF).

At present, the research on UUV’s tracking control mainly focuses on the following three aspects: way-point tracking [2–4], path following [5], and trajectory tracking [6]. For the path following, many scholars at home and abroad have further studies and proposed some mature control technologies in those fields of unmanned aerial vehicle (UAV), unmanned boat, the surface ship, the autonomous underwater vehicle (AUV), and so on. The path following of UUVs is usually simplified as the horizontal and vertical planes, and the controllers are designed, respectively. This paper mainly studies the problem of horizontal path following. Lapierre and Soetanto [7] designed an AUV tracking controller based on the Lyapunov method and the backstepping technique, and the AUV tracking error is gradually converged to zero. But it did not take the disturbance of the marine environment into account. Shi et al. [8] used the same method as Lapierre and Soetanto [7] and ensured the tracking error in the global asymptotic stability under the influence of the constant current. But there is a phenomenon called “explosion of terms” which may exist when we use the backstepping technique to obtain the repeated derivative of virtual control variation. Swaroop et al. [9] proposed a dynamic surface control (DSC) strategy for a class of nonlinear systems, which let the virtual control pass through a low-pass filter, where a new value was obtained to calculate the approximate derivation. This technique can avoid the phenomenon of “explosion of terms.” However, even a simple dynamic surface controller design requires the accurate mathematical model of controlled object. Li et al. [10] used the active disturbance rejection control (ADRC) technology to design a path following controller for an underactuated surface ship. It could deal with the problem of the transverse drift of the ship caused by the constant wind disturbance, but the path following responds slowly with the use of a linear PD control rate.

Usually, the accurate mathematical model of an UUV is difficult to obtain. Even with a precise mathematical model, it is also so complex that it needs to do some simplification when doing control system design, which eventually leads to model error. Based on the DS-ADRC technique, this paper designs a horizontal path following controller for an underactuated UUV, which effectively avoids the “explosion of terms” phenomenon when using backstepping method and also reduces the high requirements of the dynamic surface control technology to the accurate mathematical model. It does real-time estimation to the internal and external disturbance in the loop and eventually compensates the estimation into the control system, which improves the control accuracy and has high stability.

#### 2. Mathematical Models for MKII

This paper selects Minesniper MkII as a simulation object, which is shown in Figure 1 and based on [11]. The length of the UUV is 1.929 m and weight is 40 Kg. There are propellers equipped, respectively, on the left and right sides of the UUV, whose maximum speed is 2000 rpm, providing maximum thrust between ±80 N. Through the left and right speed difference, it achieves the steering movement. Between the two longitudinal propellers, there is a vertical propeller, whose maximum speed is 100 rpm providing a maximum thrust for ±20 N.

Here, we assume that the position vector of the UUV is, velocity vector of the UUV isand the ocean current speed is, the UUV’s relative speed isand the controlling force and moment are, and, by means of simplifying the 6-DOF model of the UUV, we get its horizontal mathematical model with ocean current as follows: where , , and

According to [11, 12], the relevant parameters and hydrodynamic coefficients in the above equations are shown in Table 1.

#### 3. The Line-of-Sight Guidance System

Considering the underactuated UUV in this paper, we select the LOS guidance as adopted in [11–13], which converts the two-dimensional desired location to the expected heading angle. And through tracking the expected heading angle, it achieves the path following control of the vehicle.

For the horizontal path following, it can divide the expecting path into a series of points: and , where . Taking the connected two pointson the expecting path and taking the as original points to establish north-east coordination system, these have been shown in Figure 2. is the included angle of the directed line segmentand the north coordinate axis,is the real-time location coordinates of the UUV, is the real-time heading angle of the UUV, is the distance between location and the endpoint of the path, is the selecting foresight vector quantity ( generally is selected 2–6 times long of the UUV [14]), and is the lateral error of path tracking made by the LOS guidance system.is the included angle of current location to path endpoint ligature and the path of the UUV, is the current foresight point, is the expecting angle, is the included angle of foresight vector quantity and the expected path, and is the switching condition of the two expected straight line segments.

Through the geometric relation, we can obtain

For the selection of , there are some certain rules. When the current position of the UUV is far away from the desired path, that is, , there are no interaction points between foresight vector and path at this time; thus there is . When the current position of the UUV is near to the desired path, we can select . So we can obtain formula (4) as follows:

There are currents in the case of interference; if we get the desired heading angle as desired input for the UUV control system with the above method, eventually the heading tracking is achieved, but there will be a stable track error. In this paper, in order to eliminate it, we introduce a sideslip angle , the specific expression, as follows:

When (is the allowable maximum error), it can select straightway as desired path.

#### 4. Controller Design

The horizontal movement of the UUV can be divided into two subaspects as follows [15]: one aspect is the geometrical problem, that is, controlling the position of the UUV to the expecting path, and the other one is the dynamics aspect, that is, controlling the UUV’s longitudinal velocity to an expecting one. As for the former, by using the LOS guidance system, it maps the expected position instructions to the expected heading angle instructions; thus we can achieve the UUV’s path following. For the latter, it is mainly to control the longitudinal propellers.

The dynamic surface control (DSC) technique has efficiently avoided the “explosion of terms” phenomenon which is caused by repeatedly instructing on the virtual controlling, but it needs the precise model of the controlled object. The active disturbance rejection control (ADRC) technique does not depend on the precise model of the controlled object, but the feedback efficiency is not high enough, and its control signal may easily have high frequency oscillation. With the help of DSC and ADRC, this paper designs a longitudinal velocity controller and a heading controller, respectively, by using the DS-ADRC method.

##### 4.1. Model Transformation

In order to use the ADRC technique more conveniently, it firstly converts the UUV mathematical model to a standard form according to the ADRC, and then the controllers are designed, respectively.

###### 4.1.1. Model for Heading Control

From the model of (1), it can obtain the UUV heading control mathematical model as follows:

In the above model,is heading angle, is turning heading angular velocity, , , , , and ; the specific parameters are all given in Table 1.

Assume , , and , so that we can simplify the above system as to the standard ADRC form as follows:

Hereinto, , are the system input and output, that is, turning heading torque and heading angle, respectively, is the system nonlinear part, and is the input gain coefficient.

Taking , so the above system can be converted into

###### 4.1.2. Model for the Longitudinal Velocity Control

In the same way, from (1), we can obtain the longitudinal velocity controlling mathematical model as follows:

Here is the UUV’s relative velocity, is the longitudinal thrust, and and are the hydrodynamic coefficients. And the specific numerical values have been given in Table 1.

Supposing that , so the above longitudinal velocity control model can be converted into the standard ADRC form as follows:

Hereinto, ,are the system input and output, that is, the UUV’s longitudinal thrust and the longitudinal relative velocity, respectively, is the nonlinear part, and , . The specific parameters are shown in Table 1.

Taking , so the above system can be converted into

##### 4.2. DSC-ADRC Controller

The ADRC controller is made up of four parts [16], including arranging transition process, extended state observer (ESO) design, nonlinear feedback law design, and dynamic compensation (DC). Compared with ADRC, the DS-ADRC controller replaces the nonlinear feedback law design in ADRC with DSC; thus the specific design process is stated as follows.

*Step 1. *Arrange the transition process of expected signal using the tracking-differentiator (TD). And calculate the signal and its differential from the expected signal.

*Step 2. *Estimate the system total disturbance through the ESO in real time.

*Step 3. *Calculate the part of control input based on DS-ADRC.

*Step 4. *Compensate the estimation using ESO to . Then we can obtain the actual control input for the UUV.

The schematic of the controller is shown in Figure 3.

###### 4.2.1. Heading Controller Design

* (1) TD Design*. Based on the expected heading , we arrange the transition process and calculate its differential signal at the same time. Thus its discrete model is written as follows:
whereis the regulation factor, is the simulation step size, and is the time-optimal feedback function whose specific algorithm is described as follows:

* (2) ESO Design*. The function of the ESO makes use of the vehicle’s input and output to estimate the system’s related states, including the total disturbance which acts on the system. For the heading control, the system input is the turning heading moment and its output is the heading angle; that is, and , respectively. , , and are the estimated values by the observer, which are induced by the heading angle, turning heading angular velocity, and the system total disturbance, respectively. And its discrete algorithm is written as
where , , and are the parameters which need to be designed and is a continuous exponential function with linear segment near the original point, whose specific algorithm is stated as follows:
Hereinto,is the length of the linear segment.

For the stability analysis of ESO, please refer to [16].

* (3) DSC Design*. From the converted heading control model (8), it is shown that the state of the UUV is and the expected state is calculated by TD.

Define the first dynamic surface as as follows: Its first derivative is Consider as a virtual control and design a virtual stabilization function : where is a positive parameter. Based on the dynamic state design method, a first-order low-pass filter can be introduced as follows: where is the time constant of filter.

Define the second dynamic surface as : Its first derivative is

In order to stabilize the system, we choose a variable which satisfies Then (23) can be obtained as follows: is also a positive parameter.

The stabilization analysis of the DSC algorithm is discussed as follows. Defining , then there is . Combining (17)–(22) we obtain (24) and (25), as follows: Then (26) can be obtained as follows: Herein, we define , , and . The derivative of can be calculated as Define a Lyapunov function as follows: Based on the assumption,,, andare all continuous variables. Now assuming then When , which satisfies , it can be concluded that .

Through the above analysis, we can know that the DSC algorithm can guarantee all the states of the closed-loop system final convergence. And with appropriate coefficients and , it can get a good controlling quality.

* (4) DC Design*. Using the estimated value to compensate , which obtained from the DSC. In this way, the final control variable obtained as follows:
where the parameteris an adjustable compensating factor which decides the compensation degree.

Through the above four steps, we can finally obtain the controller as follows:

###### 4.2.2. Longitudinal Velocity Controller Design

Similar to the derivation of heading controller, the longitudinal velocity controller can be deduced based on DS-ADRC as follows:

In (33), the definition of relevant parameters is similar to the definition in the heading controller design.

#### 5. Simulation Results

A numerical example is given to illustrate the proposed path following control algorithm. In the simulation, our objective is to control the UUV to follow the path with speed at, and the sequence of points is (5, 0), (50, 50), (50, 100), (5, 150), (5, 200), (50, 200), (50, 250)}. The UUV can initially rest at a random position with an unspecified attitude, supposing that it is and its velocity is . Under the condition of constant current and other disturbances, we have a simulation comparison between the DSC and the DS-ADRC; the results are shown in Figures 4–11. Under the condition of constant current, the parameters of DSC are selected as , , , and , and with other disturbances the DSC parameters are , , , and , while for the above two conditions the parameters of the DS-ADRC both are selected as follows:, , , , , , , , , , , , , , and .

##### 5.1. Path Following with Constant Current

In the north-east coordinates, we set the current velocity as and the direction as. With the DSC and DS-ADRC, the relationship between UUV’s “actual” path and its expected path is plotted in Figure 4. And Figures 5–7 are the UUV’s cross-track error, its output of force, and moment, respectively.

Figures 4 and 5 show that the control effect of DSC and DS-ADRC is almost the same under the constant ocean current. However, from Figures 6 and 7, we can clearly see that the overshoot of DS-ADRC is smaller than the DSC and the setting time is shorter.

##### 5.2. Path Following with Constant Current and Other Disturbances

Under the above constant current condition, we add a disturbance with which amplitude is 0.2 N·m and period is, and the simulation results are as follows: Figure 8 is “actual” path and expected path under the DSC and DS-ADRC, respectively. And Figures 9–11 are the UUV’s cross-track error, its output of force, and moment, respectively.

In the presence of other disturbances, it is interesting to note that the UUV’s cross-track error of the proposed method in this paper is still gradually converged to zero according to Figures 8 and 9, which show strong antidisturbances ability, while the DSC cannot. When combined with Figures 10 and 11, we can see that the overshoot of DS-ADRC is smaller and its setting time is shorter, too.

Through the above two groups of simulation contrast, it can be seen that the effects of the DSC and the DS-ADRC are similar under the constant current, but when there are other external disturbances, the effect of the DS-ADRC is much better than the simple DSC, which show strong antidisturbance characteristic to the external unknown disturbances.

#### 6. Conclusion

This paper has presented a novel path following control method to UUV; it uses the line-of-sight guidance method to solve the real-time expectations of UUV’s heading and has revised the method heading under the condition of current interference with introducing sideslip at the same time; it eliminates the stable cross-track error which is caused by the normal line-of-sight guidance method with current interference. Combining the advantages of the DSC technique and the ADRC technology, we, respectively, designed the UUV heading controller and the longitudinal velocity controller. This control method avoids the conventional dynamic surface control systems, relies on accurate mathematical models and improved antijamming capability. At the same time, the control method for a class of strict feedback forms is applicable, which makes the design of the controller be in common use and be more conducive to the engineering practice. The simulation results also show that the control method has an excellent performance.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgments

This research work is supported by the National Natural Science Foundation of China (Grant No. 51309067/E091002), the Fundamental Research Funds for the Center Universities (HEUCFX041402), and the National Defense Key Laboratory of Autonomous Underwater Vehicle Technology (9140C270208140C27004).