Abstract
The method of a designed trajectory tracking for an underactuated unmanned surface vehicle (USV) in the presence of ocean disturbances is addressed in this paper; the differential flatness theory is applied to get the reference inputs and speed states at the reference position trajectory. Second, a transition process is arranged for the reference trajectory to reduce the overshoot of the actuator, which caused by the large deviation in the initial tracking. Third, the nonlinear disturbance observer is designed to obtain the estimated values of unknown disturbances in the ocean. Then, a controller-based model predictive control (MPC) and terminal cost function is designed for the nominal system. The inherent robustness of the controller and estimates of the observer are used to resist and compensate disturbances. Finally, the simulation experiments of linear trajectory and sinusoidal trajectories are carried out to prove the effectiveness and reliability of the control algorithm designed.
Keywords
Introduction
A huge amount of research in the field of unmanned surface vessel (USV) motion control has been witnessed in the recent decades. Trajectory tracking is a crucial part of USV motion control, and the meaning is to follow a time-varying trajectory. There are two types of tracking methods generally used by researchers.
One is to build a virtual ship with the same dynamic model and achieve the purpose of trajectory tracking by tracking the virtual ship. In the last few years, considerable research efforts have been devoted to this strategy. A trajectory-tracking controller for the USV (Li et al., 2021) is present subjected to the full-state constraints. A novel of dynamic surface control-based trajectory-tracking control scheme (Wang et al., 2018b) is proposed for an USV. And a strategy (Wang et al., 2017) is proposed with finite-time trajectory-tracking control scheme for an USV. A semi-global output-feedback controller (Park, 2017) for USVs with actuator saturation is proposed. Besides, a controller for USV trajectory tracking based on backstepping and dynamic slide model control (Liao et al., 2016) is proposed, and a novel model-based backstepping controller (Dong et al., 2015) with relax persistent exciting (PE) conditions of yaw velocity for trajectory tracking is designed. The other is to control the USV to track the trajectory directly. There are some research works have been done. The tracking methods based on sliding mode are used (Qiu et al., 2019; Sun et al., 2020). Besides, an approach including nonlinear tracking differentiators and a new guidance law (Huang et al., 2019) is proposed. An adaptive trajectory-tracking control scheme (Wang et al., 2018a) for a fully actuated USV is proposed.
MPC can deal with two kinds of tasks by generate two reference trajectories. Moreover, MPC can solve the constraints of states that cannot be solved by some algorithms such as sliding mode control and backstepping method, so combining with MPC and trajectory tracking has a remarkable application research prospect. Quasi-infinite horizon MPC (Chen and Allgöwer, 1998) is first proposed with terminal penalty which is designed to ensure the stability of controller. Inherent robustness properties of quasi-infinite horizon MPC (Yu et al., 2014) are certified; thus, the algorithm is valuable to engineering application. Stability of finite horizon MPC with incremental input constraints (Yu et al., 2017) is proved, which is more practical for the gently inputs requirement in the field of motion control.
Thus, MPC have received great attention in the field of ship motion control. A novel disturbance compensating MPC algorithm (Li and Sun, 2012) has been proposed. An approach of linear matrix inequality (LMI)-based MPC to stabilization for USV (Liu et al., 2014) is proposed. An ideal method with line-of-sight (LOS) path generation and path following using MPC (Oh and Sun, 2010) is proposed. And a computationally efficient observer-based MPC controller (Liu et al., 2020) is proposed. Besides, a control method combining MPC and neural network to track trajectory by tracking the virtual ship (Yan and Wang, 2012) is proposed. A novel Lyapunov-based MPC algorithm (Shen et al., 2018) for the trajectory tracking of an autonomous underwater vehicle is presented. In addition, an USV trajectory-tracking controller based on MPC is proposed (Liu et al., 2015), and the controller can tolerate small disturbance. Two different MPC approaches are compared and analyzed (Zheng et al., 2014) to deal with the tracking problem of the USV. For the case of actuators’ fault scenarios, a Fault Tolerant MPC policy (Luca and Gianluca, 2018) has been proposed. And an approach is proposed (Shen and Shi, 2020) to alleviate the computational burden for the trajectory tracking of an autonomous underwater vehicle.
By analyzing the existing research results described above, we can found that, at present, when the controller is directly designed to approximate the USV to a given position trajectory, the absence of corresponding reference velocity states and reference input states may result in convergence of only position states and non-convergence of other states. In addition, the distance is usually existed between the initial position of the USV and reference trajectory, and the overshoot of actuators will be large. When the learning model predictive control (LMPC) algorithm is applied to the trajectory tracking of USV, the stability of the controller cannot be guaranteed. Because the optimality of LMPC algorithm is not equal to stability. Moreover, the problem of trajectory tracking with underactuation USV against 3-degree-of-freedom (3-DOF) disturbances is still a difficult question. The contribution of this paper is as follows. (1) A method based on differential flatness is proposed to generate the reference velocity and reference inputs of the corresponding position states, and then the convergence of velocity and position states can be guaranteed. (2) A switching strategy-based differential tracker aims to reduce the overshot oscillations of the actuators in the initial tracking. (3) A controller with inherent robustness of trajectory tracking for USV-based quasi-infinite horizon MPC is proposed and the stability of the controller is guaranteed. In addition, the convergence rate of the controller is faster and the robustness is stronger. (4) A way associating disturbance observer compensation and inherent robustness of the controller is pointed out to resist ocean disturbances. Simulation results show that the error caused by lateral disturbance is smaller.
This paper is organized as follows. The USV modeling and the trajectory-tracking problem-based MPC are formulated in section “Problem formulation,” the method of reference trajectory preprocessing is presented in section “Reference trajectory preprocessing,” the control laws are designed in section “Controller design,” while stability of the control laws designed is proved in section “Stability analysis,” and some simulation experiments are carried out to verify the effectiveness of the controller in section “Simulation experiments.” Finally, in section “Conclusion,” some conclusions are summarized.
Problem formulation
In this section, the USV modeling and the trajectory-tracking problem of an USV are formulated, meanwhile the trajectory-tracking control system is transformed into the stabilization of the trajectory-tracking error system.
USV modeling
The problem of trajectory tracking of an USV in the presence of ocean disturbances can be formulated as follows: assuming that trajectory

Simplification of USV trajectory tracking.
In Figure 1,
The state-space model of USV (Perez and Fossen, 2007) is used, and the model of the USV in the presence of ocean disturbance can be described as
with
where
Trajectory-tracking error system
In trajectory tracking, a reference trajectory is usually preset. It is assumed that the USV has passed the reference trajectory and obtained the corresponding reference states and inputs. The trajectory-tracking errors system can be described as
with
When the
Reference trajectory preprocessing
In this section, the differential flatness theory is applied to represent the remaining reference states and inputs with reference position
Differential flatness
When
Lemma 1
If exists a certain function
Then, the system is differentially flat (Fliess et al., 1995).
The reference position
Assumption 1
During sailing, the longitudinal velocity of the USV is one or more orders of magnitude higher than the lateral velocity, so the effect of drift angle can be ignored when describing the heading angle.
Therefore, for the nominal system (5), the remaining states and inputs can be expressed as equation (6)
with
Transition process
The deviations of USV initial position and the reference trajectory often exist in actual project application, while the reference velocities of the USV are got according to the difference of the reference trajectory. Moreover, the deviation of the position and velocity will lead to the overshoot shock for the actuators of USV.
Therefore, a transition process is used at the initial moment to reduce the overshoot of actuators. Differential tracker (Han, 2009) is used for the system to fulfill this requirement. The transition process for common second-order system is designed as
where
where
Since the trajectory is time-varying, the differential tracker will lead to a lag for tracking. Therefore, the switching strategy is adopted. The position information after the transition is used to design the controller in the early tracking. Besides, when the distance between the USV and the reference trajectory is small and trajectory can be tracked stably, the real reference position information is used to reduce the error caused by lag. The specific process is designed as
where
Controller design
The controller is designed to solve the problem of USV trajectory tracking with ocean disturbances. According to the preprocessed reference states and inputs of USV, the quasi-infinite horizon MPC controller for the nominal system is designed. And the ocean disturbance is observed by the nonlinear disturbance observer (NDO) and compensated by actuators and the inherent robustness of the controller. The specific process is shown in Figure 2.

Flow chart of controller.
In this section, the controller design process would be divided into two steps: one is to design the NDO and the other is to design the quasi-infinite horizon MPC controller for the nominal system of USV.
Nonlinear disturbance observer
At the real ocean circumstance, USV is subject to unknown marine disturbances during navigation. Therefore, the NDO is designed to observe the unknown disturbances. System dynamics equation of USV can be written as
The NDO (Chen, 2004) can be designed for USV as
where
Quasi-infinite horizon MPC
When the NDO is designed to observe the environmental disturbances, the controller can only be carried out for the nominal system (5), and the estimated disturbances can be directly compensated by the actuators in the longitudinal and heading direction. Besides, the inherent robustness of the controller is used to resist the lateral disturbance.
Linearization and discretization of the USV model
The 3-DOF motion model of USV is a nonlinear system, which needs to be approximately linearized into a linear time-varying system to design the MPC controller. Since this paper aims to track any directly given trajectory, the approximate method (Kuhne et al., 2004) is used to design the controller with the deviation between the USV and the reference system. The reference system has been obtained through reference preprocessing in section “Reference trajectory preprocessing,” and the reference system is shown as
where
The Taylor expansion of the USV system is carried out at the stable point of the error system, that is, at each point
Combining equations (12) and (13), the deviation system can be obtained as
where
Euler’s method is adopted to discretize equation (14), and discretization system can be obtained as
where
Cost function design
Cost function is a minimum function to achieve the control aim. The purpose of the designed controller is to track the designed trajectory gently, and to ensure the stability and robustness of the controller, so as to meet the requirements of practical projects. Therefore, the cost function includes indicators such as states errors, control increment, and terminal penalty function. So, the cost function is designed as
with
Taking
where
Substituting equation (18) into error system (16) yields to
To simplify the operation, it is assumed that in the prediction horizon
The terminal cost function in equation (17) is designed (Yu et al., 2017), and the specific process is as follows:
1. Combining with equation (16), find a linear state feedback gain
2. Pick a parameter
3. Then, solve the Lyapunov equation
a unique positive definite solution
4. There exists
where
5. The terminal cost function can be designed as
Then, combined with equations (17) and (23), the cost function can be rewritten as
with
The model prediction expression of the system can be written as
with
Substituting equation (25) into equation (24) and ignore the constant term which is irrelevant to the minimization function
where
Constraint design
Considering the safety in navigation and the loss of actuator such as paddles and rudders, the states and inputs of USV should be restricted. According to the characteristics of MPC, the constraint of states can be converted into the constraint of inputs. And the constraints on the inputs include the extreme and increment constraints for the surge force and yaw moment. The specific constraints can be designed as
where
Combined with equation (26), the control problem can be transformed into the optimization problem as
with
where
To sum up, the optimal control increment
where
Stability analysis
In this section, the stability of the designed NDO is proved. And the stability of the controller for nominal system is analyzed and proved under the condition of no disturbances. At the same time, the robustness of the designed controller is analyzed to resist the lateral disturbance, which cannot be directly compensated due to the underactuation of the USV.
Stability of the NDO
The errors between the actual disturbances and the estimated value are defined as
Derivation of equation (30) and simultaneous equation (10) can obtain
It is assumed that the actual disturbances are slow-varying which mean
Stability and inherent robustness of controller
The designed controller of quasi-infinite horizon MPC (Yu et al., 2014) is stable as long as the corresponding assumptions are met. Combined with the controller designed in this paper, then analyzing the controller whether it satisfies the expectation or not to ensure the stability.
For the error system equation (14),
Therefore, it can be proved that the controller of quasi-infinite horizon MPC designed in this paper is stable without disturbances. For ocean disturbances existing in USV navigation, the lateral disturbance cannot be compensated directly due to the underactuation of the USV. The theory (Yu et al., 2017) is certified that the quasi-infinite horizon MPC has inherent robustness and could ensure the system would not diverge with the continuous bounded disturbances. Thus, the bounded lateral disturbance can be resisted by the inherent robustness of the controller. So, the USV can fulfill the task of trajectory tracking with high precision.
Simulation experiments
In order to verify the effectiveness and reliability of the trajectory-tracking controller proposed in this paper, simulation experiments of linear trajectory and sinusoidal trajectory are carried out in a marine vehicle model (Do and Pan, 2006). Specific model and controller parameters are selected as shown in Table 1.
Model and controller parameters.
In order to prove the superiority of the proposed controller in this paper, it is compared with a method of quasi-infinite horizon MPC without disturbance observer called Method I, a method of quasi-infinite horizon MPC without reference trajectory preprocessing called Method II, and a method of LMPC with reference trajectory preprocessing and disturbance observer compensation called Method III. Two sets of simulations are performed as follows:
Case I: in this case of simulation experiment, the initial positions, velocities, and inputs of the USV are chosen as
Case II: in this case of simulation experiment, the initial positions, velocities, inputs of the USV, and the ocean disturbances are chosen as same as Case I. The reference sinusoidal trajectory design as:

Trajectory-tracking results.

Velocities of USV.

Control thrust.

Disturbance observer.

Trajectory-tracking results.

Velocities of USV.

Control thrust.

Disturbance observer.
Simulation results in Figures 3 and 7 show that, compared with the algorithm proposed in this paper, the controller-based Method I which only relies on the inherent robustness to resist ocean disturbance can still track the trajectories; moreover, the system is not diverging with the larger biases. Besides, controller-based Method II has larger overshoot and oscillation in the initial tracking. Especially the method proposed in this paper can track the trajectory accurately with little inevitable lateral error due to the underactuation of USV. In addition, compared with the strategy of Method III, the controller can track the trajectory quickly with less overshoot and less lateral error due to the inherent robustness.
From Figures 4 and 8, it is obvious that compared with the algorithms-based Method I and Method II, the velocities’ overshoot of the algorithm proposed in the paper is smaller and gentler, which is conducive to navigation safety. Simulation results in Figures 5 and 9 show that, the algorithm proposed in this paper can ensure the safety of the actuator, and has strikingly application value with the less actuator overshoots in the initial tracking. And the situation NDO can observe the variable disturbance is proved in Figures 7 and 10.
Conclusion
In this paper, a trajectory-tracking method of USV based on quasi-infinite horizon MPC with ocean disturbances is proposed. The reference trajectory preprocessing proposed can get the reference states and inputs with any given position trajectory and reduce the overshoot of USV’s actuators in the initial tracking. Besides, the methods of combing the disturbance observer compensation and inherent robustness of controller is claimed to improve accuracy. According to the simulation results from the straight and sinusoidal trajectory, the effectiveness and superiority of the strategy are certified. In addition, this strategy can also be applied to other fields, such as the trajectory tracking of unmanned ground vehicles and autonomous underwater vehicle. Future work will include sea trials to further validate the control algorithm.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work is supported by the Natural Science Foundation of China (grant numbers 51709214, 51779052, 51809203 and 51879210).
