1. Introduction
Recently, as the continuous development of technology, USVs have been extensive used in various fields. However, due to the disturbances from the sea wind, wave and current, the trajectory tracking control is one of the widespread concern topics. There are many researches about the control for the trajectory tracking technologies of USVs, including PID controller [
1,
2,
3,
4], sliding mode control [
5,
6,
7,
8], backstepping control [
9,
10,
11,
12], MPC [
13,
14,
15,
16], adaptive control [
17,
18,
19,
20] and intelligent control [
21,
22,
23,
24].
MPC has been developed as an advanced optimization control algorithm based on the superiorities of feedback correction and rolling optimization. Therefore, MPC can solve constrained and multivariable problems. Adaptive line-of-sight algorithm was developed to get the expected heading angle. And MPC was applied to reduce the lateral error, where the sideslip angle compensation was considered in [
25]. In addition, in order to get accurate state variables in real time, a linear extended state observer was designed to overcome the influence of environment disturbances and the nonlinearity of the model. However, the linearization still caused certain deviation to the model disturbance estimation. In [
26], to adjust the controller parameters, the MPC controller was used to carry out both control allocation and trajectory tracking in real-time. In addition, it concurrently optimized the closed loop performance with reinforcement learning-based and system identification methods. In [
27], to convert the chance constraints into deterministic convex constraints, a convex conditional value at risk approximation was introduced. And the converted constraints were further transformed into the second order cone constraints. Then, to decline the external disturbances and fulfill the physical constraints, a stochastic model predictive control (SMPC) scheme was used to design the controller. In [
28], the path planning and controller of the USVs was designed simultaneously to overcome the disadvantage of the “first planning then tracking” structure, and the artificial potential field and MPC was combined to solve the planning and tracking problem. In [
29], finite control set model predictive control (FCS-MPC) was proposed. The more practical control commands formed a limited set of control: the thruster propulsion angle and speed about the USV. And a fast and safe collision avoidance system was designed according to the basic of FCS-MPC, which was applicable for varying environment.
The controllers are usually poorly tuned for the USV motion system and the disturbance rejection performance of controllers is not satisfactory due to the disturbances from the ocean wave, wind and current. Therefore, an improved NDO based MPC method for trajectory tracking control of USV is proposed in this paper. Firstly, the model predictive controller is designed for the USV trajectory tracking. Then, NDO is designed to estimate the disturbance of ocean wind, wave and current, which has less parameters. And, the Lyapunov stability is analyzed for the overall system. Finally, the proposed method is verified by simulation experiments. The main contributions of this work can be summarized as follows: the disturbances are compensated with an improved NDO, and better trajectory tracking performance are obtained for the USVs; also, with the improved NDO, the calculation time is saved compared with the traditional NDO.
The following of the paper is structured as follows:
Section 2 introduces the USV kinematics model and dynamic model. In
Section 3, the improved NDO based MPC is designed for the USV and Lyapunov stability is analyzed for the overall system. Comparison experiments and results discussion are performed in
Section 4.
Section 5 presents the conclusions.
2. State Space Model of Unmanned Surface Vehicle
In general, the kinematics modeling of USV is represented in the North East Down coordinate system, while the dynamics model is built in the ship coordinate system. Among them, the North East Down coordinate system is also called the geodetic coordinate system or the inertial coordinate system. It is usually used as the reference system, and any point on the sea can be used as the origin of the geodetic coordinate system. The ship coordinate system changes with the motion of the ship and can describe the force, moment, linear velocity, and angular velocity of the unmanned ship in various degrees of freedom.
In order to simplify the model, a USV model is utilized with three degrees of freedom for trajectory tracking control. The motions of yaw, surge and sway are the most important for the trajectory tracking of the USVs, so the roll, pitch, and heave of the USVs are ignored. Thus, the USV model can be represented, in the ship coordinate system and the geodetic coordinate system, and it is shown in
Figure 1.
In
Figure 1, it can be seen the North East Down coordinate system is represented by
, and the coordinate system for the ship is described by
. The kinematics and dynamics model of the ship can be obtained as:
where
represents the
,
position and heading angle vector of USV in the inertial coordinate system;
and
represent the position of the ship with regard to the North East Down coordinate system,
represents the yaw angle information of USV;
is the vector of the velocity and angular velocity for USV in the ship coordinate system,
,
and
are the surge velocity, sway velocity and yaw angular velocity of USV, respectively;
,
and
represent the surge thrust, sway thrust and yaw moment, which are the control inputs of the system;
is corresponding thrust and moment caused by the time-varying external disturbances.
is the rotation matrix with the relationship of
;
represents the inertial matrix of USV, where
;
represents the Coriolis centripetal force matrix, and
;
is the nonlinear hydrodynamic damping matrix. The detailed information for the matrixes is shown as follows:
According to equation (3) and (4), the reduced kinematics and dynamics equations can be obtained as:
For the USVs, there are constraints for the actuators and the outputs. And they are described as follows.
The increment constraints for inputs can be represented as:
where
denotes the control horizon.
The upper and lower limits constraints for inputs can be represented as:
The outputs of speed increment constraints can be represented as:
The outputs of speed upper and lower limit constraints can be represented as:
The terminal equality constraint can be represented as:
where
denotes the vector to be controlled,
denotes the reference trajectory.
3. Nonlinear Disturbance Observer based Model Predictive Control
In this section, NDO based MPC is designed for the three degree of freedom kinematics and dynamics of USV with state space model. The design schematic diagram of NDO based MPC is shown in
Figure 2.
According to equation (1) and (2), the state space equation for the ship is rewritten as as:
3.1. Model Predictive Control Design of Unmanned Surface Vehicle
3.1.1. Discrete Linearization of Unmanned Surface Vehicle Model
In this paper, the NDO is designed to compensate the disturbance. Hence, a linear model of the USV is sufficient for the MPC design, where the uncertainty from the linearization of the USV model can be solved with NDO. So, the model is linearized firstly and then discretized. Finally, the optimal control sequence is obtained according to the linear model predictive control.
The linearization of a nonlinear system can be divided into approximate linearization and exact linearization. Among them, the approximate linearization method is relatively simple with lofty applicability, however low accuracy. The precision of the accurate linearization method is lofty, but it is essential that a special case analysis of a single system, which is tough and has poor universality.
The reference trajectory is represented in equation (13) with environmental disturbances. The first order Taylor expansion can be obtained at any point
, then approximate linearization is achieved by leaving the higher order terms, it can be seen in equation (14).
Subtract equation (13) from (14), the equation can be achieved.
and
,
,
,
.
The discrete form for equation (15) is shown as follows:
where,
,
,
,
is the discretization step.
3.1.2. Objective Function Design
In order to ensure that the surface unmanned ship can track the trajectory smoothly and quickly. The cost function shown in equation (17) is applied, which is about the increments of the control variables and the errors of the system states.
where,
, and
are the weight matrixes for tracking errors and increments of the control variables, respectively; and
is the prediction horizon.
is the variable about the increments of the control variables, so it can be obtained as:
The new state space equation is represented as:
where
,
,
,
denotes the number of control variables,
denotes the number of state variables.
Hence, the system prediction outputs can be calculated as:
where
,
,
,
.
3.2. Nonlinear Disturbance Observer Design of Unmanned Surface Vehicle
In order to make the MPC for the USV much more applicable, a nonlinear disturbance observer is designed. It can estimate and compensate the external environmental disturbance received by USV, so the stability and anti-disturbance performance is improved for the USV, while the rollover and unnecessary navigation accidents are avoided for the USV.
According to the mathematical model of the USV, the state equation is designed:
where
is a three-dimensional positive definite matrix; the estimated disturbance values
can be specifically written as
, which are the estimated values of surge disturbance, sway disturbance and yaw direction disturbance.
It can be seen from equation (12) that
of USV can be obtained directly, but the derivative term of the speed state variable
can not be obtained directly. Therefore, it is necessary to improve the disturbance observer. The variable
can be selected as the intermediate assignment variable of the observer, which is expressed as:
So, the new equation of the improved NDO is:
The improved new equation avoids the calculation of and simplifies the calculation process. Therefore, it can improve calculation efficiency and save calculation time.
The equation (24) is in a continuous form, and it can not be directly used for the MPC design, hence it is discretized with approximate discretization method:
and
,
, and
.
3.3. Stability Analysis of Unmanned Surface Vehicle
3.3.1. Stability Analysis of Model Predictive Control of Unmanned Surface Vehicle
In order to verify the stability of the USV control system under MPC, the Lyapunov function defined as
is selected:
If the control horizon is defined to be equal the prediction horizon, the above equation can be simplified as:
The quadratic function is always greater than 0, so its positive definiteness is proved:
Then, we only need to prove the
is decreasing, then its stability is proved.
The terminal equation constraint is:
Therefore , and the stability of MPC is proved.
3.3.2. Stability Analysis of Nonlinear Disturbance Observer of Unmanned Surface Vehicle
In order to verify the stability of NDO and ensure that it can be applied to the trajectory tracking control system. Firstly, it is necessary to define the variable of the difference between the observer's estimated value and the actual value of the external disturbance to USV:
Considering the kinematic equation (2), (24) and (33) of USV, then calculating the derivative of time on both sides of equation (27), the formula is represented as:
From the equation (34), calculate the derivative of both sides of equation (33) with respect to time, and simplify it to get:
The Lyapunov method is used to verify the stability of the disturbance observer, and the appropriate Lyapunov function is selected as:
According to equation (35), the derivative of both sides of equation (36) with respect to time can be obtained as:
According to Young's inequality theory, so:
and
,
is the limit of disturbance change rate.
From equation (37) and (38), it can be written as inequality:
Equation (39) can be abbreviated as:
The result can be obtained as:
According to equation (42), it shows that the Lyapunov function stays in a closed ball of some radius whose origin is the center of the sphere. And it is uniformly ultimately bounded. In addition, the radius of the sphere is . According to equation (36), it can be obtained that the disturbance estimation error variable also converges to the sphere radius with the origin as the center of the sphere. At the same time, it can also be known that if the external environmental disturbance value of USV is an arbitrary unknown constant value, the constant limit is zero. According to equation (39), the observer estimation error value can converge to the origin.
According to equation (40), as long as the appropriate observer parameters and can be selected, an arbitrarily small error convergence radius can be obtained. In other words, NDO can estimate the external environmental disturbance suffered by the unmanned ship according to an arbitrarily small error, and the estimation accuracy depends on the selected parameters.
4. Results and Discussions
In order to verify the influence of the improved NDO based MPC, it is applied for trajectory tracking control of USV called CyberShip II. The tracking errors and performance of USV is shown in this part. In addition, the computational efficiency of the improved NDO is verified.
4.1. Model Parameters of Unmanned Surface Vehicle
In equations (3) and (4), ,. In (16), . In (17), , .
In the simulation,
which is set as the initial state of USV;
which is set as the initial speed of USV. And the reference trajectories of USV are shown as follows:
which is set as the simulation sampling time; which is set as the number of states; which is set as the number of control variables, which is set as the prediction horizon, which is set as the control horizon.
4.2. Experiments results and Analysis
NDO based MPC for trajectory tracking control of USV is compared with MPC without observer. Experiments with different disturbances are performed to verify the anti-disturbance and robustness performance. The performance of the improved NDO is discussed.
The composite model of external disturbances meets the requirements of Level 3 sea conditions. The specific external wind, wave, and current disturbances settings are:
where wave transfer function
,
,
,
and
represent wave frequency, wave strength gain, and damping constant respectively;
,
.
,
and
represent random white noise disturbances, then the noise power is set to 0.01, 0.005, and 0.1 respectively.
The experiments result of improved NDO based MPC for trajectory tracking control and traditional MPC with disturbances are shown in
Figure 3. The tracking errors of the two control methods are shown in
Figure 4. The calculation time between the two NDO methods with disturbances are shown in
Figure 5. The trajectory tracking errors of three methods trajectory tracking with different parameters are shown in
Figure 6.
In
Figure 3, it shows that improved NDO based MPC has better disturbance rejection performance than MPC without observer. It also can be seen from the experiment that both methods can track the reference trajectory. But the former can track the reference trajectory stably, while the latter fluctuates a lot. In
Figure 4, it shows the comparisons of the two trajectory tracking errors with disturbances. And the improved NDO based MPC has lower tracking errors than MPC without observer. The surge position error range of MPC without observer for trajectory tracking control is -0.1 to 0.1 meters, the sway position error range is -0.1 to 0.1 meters and the yaw angle error range is -0.05 to 0.05. While the surge position error range of NDO based MPC is -0.005 to 0.005 meters, the sway position error range is -0.005 to 0.005 meters and the yaw angle error range is -0.005 to 0.005. In
Figure 5, it shows that the improved NDO has better performance than unimproved NDO about the calculation time with disturbances.
The USV model has uncertainty, so three methods were used for trajectory tracking for the USV with different model parameters. The three methods are unimproved NDO based MPC, improved NDO based MPC and MPC without NDO. In
Figure 6, it shows that the improved NDO and unimproved NDO effectively reduce the instability caused by model uncertainty. And the unimproved NDO has similar perfomance of tracking errors with improved NDO based MPC.
In addition, the comparison of the calculation time of two NDOs with disturbances are shown in
Table 1. It shows the average calculation time and maximum single calculation time of the two NDOs.
and
are used to evaluate the tracking effect and steady state performance. The smaller values of IAE and RMSE, the better control performance of the scheme applied. And the comprehensive performance comparisons of the position and speed tracking errors of two methods are shown in
Table 2. It shows the
and
of the two methods.
From
Table 1, the calculation time of improved NDO is much lower than that of traditional NDO. The average calculation time of improved NDO is 0.0020, while it is 0.0024 of traditional NDO. The maximum single calculation time of improved NDO is 0.0046, while it is 0.0064 of the traditional NDO. The results show that compared with traditional NDO, the average calculation time of improved NDO is decreased by 16.67%, and the maximum individual calculation time is decreased by 28.13%.
From
Table 2, the
and
of NDO based MPC are lower than the MPC without observer. NDO based MPC effectively enhances the anti-disturbances performance of the system. MPC without observer trajectory tracking control has the characteristics of predictive model, rolling optimization and feedback correction, which can resist external disturbances and model mismatch to some extent.
With the data which are shown in
Table 1 and
Table 2, NDO based MPC is superior to MPC without observer for trajectory tracking control in terms of position and speed tracking errors.
NDO is designed to estimate the external disturbances suffered, to improve the anti-disturbance performance of the USV. Thus, the comparison of estimated values of NDO and actual disturbances are shown in
Figure 7.
In
Figure 7, it shows the relationship between the estimated values of NDO and the actual values of the disturbances. NDO has good estimate performance about the disturbances, including surge disturbance force, sway disturbing force and yaw disturbance force.
5. Conclusions
An improved NDO based MPC for trajectory tracking is proposed to guarantee the stable motion of USV in this paper, which suffers various disturbances from the ocean wind, wave and current. The MPC is used to optimize the system torque based the measured position and speed state variables. Then, the NDO is designed to estimate the disturbances, and the estimated torque is compensated in the controller. The estimation errors can converge to zero in finite time. The experimental results show that NDO based MPC can effectively compensate external disturbances and obtain good tracking and disturbance rejection performance. The proposed method has similar tracking performance of the USVs with the MPC based on unimproved NDO, however, the improved NDO based MPC is much more time-saving.
Author Contributions
Conceptualization, H.F.; methodology, H.F. and S.Z.; software, Y.W.; validation, Y.W., R.C. and S.Z.; writing—original draft preparation, W.Y. and S.Z.; writing—review and editing, H.F., R.C. and S.Z. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by National Natural Science Foundation of China, grant number 52271313; Innovative Research Foundation of Ship General Performance, grant number 21822216; Fundamental Research Funds for the Central Universities, grant number XK2040021004025.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Conflicts of Interest
The authors declare no conflict of interest. The funders had no role in the design of the study.
References
- Miao, R.; Dong, Z.; Wan, L.; Zeng, J. Heading control system design for a micro-USV based on an adaptive expert S-PID algorithm. Polish Maritime Research 2018. [Google Scholar] [CrossRef]
- Li, W.; Ge, Y.; Guan, Z.; Ye, G. Synchronized Motion-Based UAV–USV Cooperative Autonomous Landing. Journal of Marine Science and Engineering 2022, 10, 1214. [Google Scholar] [CrossRef]
- Liao, Y.; Jia, Z.; Zhang, W.; Jia, Q.; Li, Y. Layered berthing method and experiment of unmanned surface vehicle based on multiple constraints analysis. Applied Ocean Research 2019, 86, 47–60. [Google Scholar] [CrossRef]
- Jin, J.; Liu, D.; Wang, D.; Ma, Y. A Practical Trajectory Tracking Scheme for a Twin-Propeller Twin-Hull Unmanned Surface Vehicle. Journal of Marine Science and Engineering 2021, 9, 1070. [Google Scholar] [CrossRef]
- Jiang, X.; Xia, G.; Feng, Z.; Wu, Z.G. Nonfragile Formation Seeking of Unmanned Surface Vehicles: A Sliding Mode Control Approach. IEEE Transactions on Network Science and Engineering 2021, 9, 431–444. [Google Scholar] [CrossRef]
- Jiang, X.; Xia, G. Sliding mode formation control of leaderless unmanned surface vehicles with environmental disturbances. Ocean Engineering 2022, 244, 110301. [Google Scholar] [CrossRef]
- Velueta, M.J.; Rullan, J.L.; Ruz-Hernandez, J.A.; Alazki, H. A Strategy of Robust Control for the Dynamics of an Unmanned Surface Vehicle under Marine Waves and Currents. Mathematical Problems in Engineering 2019, 2019. [Google Scholar] [CrossRef]
- Wu, Y.; Yang, S.; Li, W.; Liu, D.; Hou, K. Dynamic Analysis and Motion Control of an Underactuated Unmanned Surface Vehicle (WL-II). Marine Technology Society Journal 2017, 51. [Google Scholar] [CrossRef]
- Zhou, W.; Wang, Y.; Ahn, C.K.; Cheng, J.; Chen, C. Adaptive fuzzy backstepping-based formation control of unmanned surface vehicles with unknown model nonlinearity and actuator saturation. IEEE Transactions on Vehicular Technology 2020, 69, 14749–14764. [Google Scholar] [CrossRef]
- Wang, C.; Xie, S.; Chen, H.; Peng, Y.; Zhang, D. A decoupling controller by hierarchical backstepping method for straight-line tracking of unmanned surface vehicle. Systems Science & Control Engineering 2019, 7, 379–388. [Google Scholar]
- Jin, J.; Zhang, J.; Liu, D. Design and verification of heading and velocity coupled nonlinear controller for unmanned surface vehicle. Sensors 2018, 18, 3427. [Google Scholar] [CrossRef]
- Weng, Y.; Wang, N. Data-driven robust backstepping control of unmanned surface vehicles. International Journal of Robust and Nonlinear Control 2020, 30, 3624–3638. [Google Scholar] [CrossRef]
- Zhao, S.; Wang, S.; Cajo, R.; Ren, W.; Li, B. Power Tracking Control of Marine Boiler-Turbine System Based on Fractional Order Model Predictive Control Algorithm. Journal of Marine Science and Engineering 2022, 10, 1307. [Google Scholar] [CrossRef]
- Feng, N.; Wu, D.; Yu, H.; Yamashita, A.S.; Huang, Y. Predictive compensator based event-triggered model predictive control with nonlinear disturbance observer for unmanned surface vehicle under cyber-attacks. Ocean Engineering 2022, 259, 111868. [Google Scholar] [CrossRef]
- Zhao, S.; Cajo, R.; De Keyser, R.; Ionescu, C.M. The potential of fractional order distributed MPC applied to steam/water loop in large scale ships. Processes 2020, 8, 451. [Google Scholar] [CrossRef]
- Han, X.; Zhang, X. Tracking control of ship at sea based on MPC with virtual ship bunch under Frenet frame. Ocean Engineering 2022, 247, 110737. [Google Scholar] [CrossRef]
- Liu, Z.; Zhang, Y.; Yuan, C.; Luo, J. Adaptive path following control of unmanned surface vehicles considering environmental disturbances and system constraints. IEEE Transactions on Systems, Man, and Cybernetics: Systems 2018, 51, 339–353. [Google Scholar] [CrossRef]
- Liao, Y.; Du, T.; Jiang, Q. Model-free adaptive control method with variable forgetting factor for unmanned surface vehicle control. Applied Ocean Research 2019, 93, 101945. [Google Scholar] [CrossRef]
- Liao, Y.; Jiang, Q.; Du, T.; Jiang, W. Redefined output model-free adaptive control method and unmanned surface vehicle heading control. IEEE Journal of Oceanic Engineering 2019, 45, 714–723. [Google Scholar] [CrossRef]
- Li, Y.; Wang, L.; Liao, Y.; Jiang, Q.; Pan, K. Heading MFA control for unmanned surface vehicle with angular velocity guidance. Applied Ocean Research 2018, 80, 57–65. [Google Scholar] [CrossRef]
- Huang, Z.; Liu, X.; Wen, J.; Zhang, G.; Liu, Y. Adaptive navigating control based on the parallel action-network ADHDP method for unmanned surface vessel. Advances in Materials Science and Engineering 2019, 2019. [Google Scholar] [CrossRef]
- Wen, Y.; Tao, W.; Zhu, M.; Zhou, J.; Xiao, C. Characteristic model-based path following controller design for the unmanned surface vessel. Applied Ocean Research 2020, 101, 102293. [Google Scholar] [CrossRef]
- Wang, R.; Li, D.; Miao, K. Optimized radial basis function neural network based intelligent control algorithm of unmanned surface vehicles. Journal of Marine Science and Engineering 2020, 8, 210. [Google Scholar] [CrossRef]
- Zhou, Y.; Wu, N.; Yuan, H.; Pan, F.; Shan, Z.; Wu, C. PDE Formation and Iterative Docking Control of USVs for the Straight-Line-Shaped Mission. Journal of Marine Science and Engineering 2022, 10, 478. [Google Scholar] [CrossRef]
- Liu, Z.; Song, S.; Yuan, S.; Ma, Y.; Yao, Z. ALOS-Based USV Path-Following Control with Obstacle Avoidance Strategy. Journal of Marine Science and Engineering 2022, 10, 1203. [Google Scholar] [CrossRef]
- Martinsen, A.B.; Lekkas, A.M.; Gros, S. Reinforcement learning-based NMPC for tracking control of ASVs: Theory and experiments. Control Engineering Practice 2022, 120, 105024. [Google Scholar] [CrossRef]
- Tan, Y.; Cai, G.; Li, B.; Teo, K.L.; Wang, S. Stochastic model predictive control for the set point tracking of unmanned surface vehicles. IEEE Access 2019, 8, 579–588. [Google Scholar] [CrossRef]
- Wang, X.; Liu, J.; Peng, H.; Qie, X.; Zhao, X.; Lu, C. A Simultaneous Planning and Control Method Integrating APF and MPC to Solve Autonomous Navigation for USVs in Unknown Environments. Journal of Intelligent & Robotic Systems 2022, 105, 1–16. [Google Scholar]
- Sun, X.; Wang, G.; Fan, Y.; Mu, D.; Qiu, B. Collision avoidance using finite control set model predictive control for unmanned surface vehicle. Applied Sciences 2018, 8, 926. [Google Scholar] [CrossRef]
|
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. |
© 2024 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/).