1. Introduction
At present, AUVs are mainly divided into fully actuated and underactuated systems. Due to the limitations of weight and cost, the typical underactuated systems are adopted by most AUVs. The shape of these AUVs is generally streamlined, and most are torpedo-shaped (e.g., the NERC Autosub6000 AUV and REMUS-100 AUV). Different kinds of control systems, such as the X rudder, cross rudder, rudder behind propeller, rudder at front, and vector propulsion systems, have been adopted for use in underactuated AUVs. The problem of these systems is that the steering efficiency is relatively low at low speed [
1,
2]. The steering efficiency at low speed can be improved by exploiting multiple fixed thrusters for some large AUVs, such as CR-01, CR-02. In recent years, some small AUVs have also exploited multiple thrusters. Four fixed thrusters are used in the X4AUV [
3]. The motion of the Fòlaga [
4] is obtained through three jet-pumps. The Sparus II AUV has three thrusters (two horizontal and one vertical) [
5]. The MARTA AUV [
6] is actuated using six fixed propellers (two main propellers on the vehicle tail, two lateral tunnel thrusters and two vertical ones). Seven fixed propellers are adopted by Vu [
7,
8]. The actuation properties of some existing AUVs are shown in
Table 1.
Different from the aforementioned AUVs, we developed a small portable modular AUV, named ZFAUV, with four fixed thrusters arranged at the tail and two tunnel thrusters (one horizontal and the other vertical) set at the front. As shown in
Figure 1, it weights approximately 25 kg. This vehicle can turn around in-situ, move laterally, and move vertically up and down. This is impossible for common propeller-rudder AUVs [
2].
The maneuverability of ZFAUV was analyzed by Wang [
2], and this paper mainly solves the path following problem of ZFAUV.
Path following is one of the typical control scenarios in the control literature, and it pertains to following a predefined path independent of time, i.e., without placing any restrictions on the temporal propagation along the path. This is typical for ships in transit between continents or underwater vehicles used to map the seabed [
9,
10]. The goal of path-following control is to force an AUV to track a desired path and to make the cross-track error converge to zero quickly and smoothly [
11]. For AUVs, tracking a path accurately is an important technical guarantee for their survey tasks (marine mapping, underwater inspection) and their own safety [
12,
13]. Good path-following performance is a basic performance requirement that ensures AUVs are able to succeed in their underwater survey tasks [
14].
There are three kinds of paths in practice: straight line paths among waypoints, dubins and similar paths, and piecewise polynomial and spline paths [
15]. For curved paths, the drawback is that the paths must be parametrized and known in advance. In many cases this is not practical, and the simpler path consisting of waypoints and straight lines must be used [
9]. The desired path is composed of a collection of waypoints in a waypoint table [
16]. AUVs often operate in three-dimensional space underwater. However, it is quite common to assume that altitude/depth is controlled independently such that the path following objective is limited to motion control in the horizontal plane [
17]. Thus, the planar straight-line path is considered in this paper.
There are some important guidance laws that are applicable to AUVs [
18], including Lyapunov-based guidance, Proportional Navigation Guidance (PNG), and Line-of-Sight (LOS) guidance. Optimal path planning for waypoint guidance of an AUV has been considered [
19]. Proportional LOS guidance, proportional-integral LOS guidance [
17], and integral LOS [
20,
21] have been proposed. LOS is the most widely used guidance strategy. In fact, nearly all guidance laws in use today have some form of LOS guidance. In other words, LOS guidance is the key element of most guidance systems [
9,
22,
23,
24,
25,
26,
27,
28,
29].
Two different LOS guidance principles can be used to steer along the LOS vector [
23]: enclosure-based steering and lookahead-based steering. The most frequently used method for path following is lookahead-based steering. The main advantages of lookahead LOS guidance are the simplicity and ease of implementation [
17]. Some researchers have assumed that a constant lookahead distance [
10]. In general, a small lookahead distance will induce more aggressive steering and, thus, the desired path will be reached more quickly, but it might also be the reason for unwanted oscillations around the path. Conversely, a large lookahead distance results in smoother steering, which prevents unwanted oscillations, but the downside is slower convergence to the path [
10,
30]. With regard to this problem, Lekkas and Fossen proposed a time-varying lookahead distance △ dependent on the cross-track error. This approach results in lower values for △ when the vehicle is far from the desired path and greater △ values when the vehicle is closer to the path, and less abrupt behavior is needed to avoid oscillating around the path [
10,
27,
31]. The disadvantage of this method is that the overshoot at corners is large, so the following performance is poor.
For path following, in addition to the importance of the guidance algorithm, the selection of the next waypoint in the waypoint table is also very important. A common criterion is for the vehicle to be within a circle of acceptance of the current waypoint [
9,
16,
32]. This method is relatively simple, but some waypoints may be missed under certain situations [
33].
Based on the maneuverability of ZFAUV and the basic LOS algorithm, a simpler path following algorithm is proposed. The basic idea is to track the desired path with cross-track error and heading error. That is to say, ZFAUV keeps moving toward the current waypoint during survey tasks. If unknown forces (wind, sea currents, wave, et al.) act on common propeller-rudder AUVs, it is impossible (in the general case) to accomplish the motion control task, i.e., to converge to the desired path. Through the lateral movement of ZFAUV, it gradually returns to the desired path and, at the same time, keeps moving toward the waypoint. When following a polygon trajectory, ZFAUV constantly determines whether the current waypoint is reachable or not. If the waypoint is reachable, ZFAUV moves toward this waypoint at survey speed. If the waypoint is unreachable, according to the maneuverability (the faster the speed, the larger the turning radius), ZFAUV decreases the forward speed first and then moves toward the waypoint, without oscillations around the desired path. At the same time, to reduce overshoot after reaching the current waypoint, an arc transiting strategy is adopted. The following performance is greatly improved. The validity of this strategy is verified by simulations and experiments.
The remainder of this paper is organized as follows.
Section 2 presents the mathematical model and the motion of ZFAUV in the horizontal plane. The heading keeping strategy is introduced in
Section 3. The modified path following strategy based on cross-track error and heading error is given in
Section 4. Some experimental results can be found in
Section 5.
Section 6 concludes the paper.
3. Heading Keeping Strategy
In many references, the desired heading is assumed to be tracked perfectly at all times [
10]. However, tracking the desired heading perfectly is the basis of tracking the desired path. Thus, the heading keeping strategy is introduced here. At the same time, a robust control algorithm is necessary.
To solve the problem of the uncertainty of the system parameters and external disturbance, some control algorithms have been used in AUVs, such as robust adaptive control, sliding mode control and neural network control. An adaptive control law was developed for an AUV to track the desired trajectory [
35]. Zhang et al. [
36] proposed an adaptive second order sliding mode controller for the AUV path following control.
Fuzzy control is an important branch of intelligent control. Compared with conventional PID control, fuzzy control does not have to establish a mathematical model of the controlled object, and it has the ability to adapt the characteristics of the controlled object, such as time delays, nonlinearities, and time variations. Therefore, the fuzzy PID controller that combines fuzzy control and PID control is adopted for ZFAUV. The structure of the fuzzy PID controller is shown in
Figure 8. The fuzzy controller adjusts the PID parameters self-adaptively to satisfy the demand with different
and
.
The effects of , , and at different times and the relationships between them must be considered when tuning the PID parameters. The following are the tuning rules with different and .
- (1)
When is large, should be large, and should be small for a good following performance. In order to avoid large overshoot, the effect of integration should be limited. Usually, should be zero.
- (2)
When and are moderate, should be small for a smaller overshoot. In this case, significantly affects the system. Thus, should be small, and should be moderate.
- (3)
When is small, both and should be large for better stability. To avoid system oscillation and to consider the anti-interference ability, should be small when is large, and should be large when is small.
The ranges of
,
,
,
, and
are defined in the form of a fuzzy set.
The fuzzy subset is given as follows.
The membership function is set by a trigonometric function. The membership functions of input and output linguistic variables are shown in
Figure 9.
According to the tuning rules above, the fuzzy rule of
,
and
are shown in
Table 2,
Table 3 and
Table 4.
The parameters can be obtained adaptively by the fuzzy controller as follows.
where
,
and
are the pre-set values of
,
, and
, which are obtained through the conventional tuning method, and
,
, and
are the scale factors of
,
and
, respectively.
In order to obtain a good performance and to make the problem simple, double-loop and closed-loop controls were adopted for heading keeping. The closed-loop control is achieved with a 3D magnetic compass as the feedback and a tunnel thruster as the actuator.
The system includes an inner loop and an outer loop. The heading error and the change rate of error are used as the inputs of the outer loop. The tunnel thruster speed is the output of the outer loop. A motor, a driver and feedback detection elements (an encoder and a hall sensor) constitute the inner tunnel thruster loop by which the high-precision speed control of the tunnel thruster is achieved.
The heading controller is shown in
Figure 10.
4. Path Following Strategy
4.1. Problem of Basic LOS Guidance Algorithm
As mentioned in
Section 1, basic LOS guidance is a well-documented guidance method given its simplicity and efficiency. With the basic LOS guidance algorithm, the vehicle tries to turn itself directly toward the current waypoint and reach it. The problem is that the waypoints are tracked but the path among them is not, as shown by the dashed LOS vector in
Figure 11.
Lookahead-based LOS guidance algorithm is the most frequently used method for path following. With the lookahead-based LOS guidance algorithm, the vehicles try to track the path. Guidance is achieved between two waypoints by inserting a point
that is located on the path between them. The vehicle is then assigned to reach the constantly moving point
, as shown by the solid LOS vector in
Figure 11.
There are some problems for basic LOS and lookahead-based LOS guidance algorithm, as described below, and they should be amended for most practical applications.
1. A common criterion for selecting the next waypoint is for the vehicle to be within a circle of acceptance of the current waypoint [
9,
16,
32]. The radius
is assumed to be equal to two vehicle lengths, i.e.,
, so
However, in certain cases, because the turning radius cannot be smaller than the minimum turning radius (
), it is impossible for underactuated AUVs to accomplish the task of entering the circle of acceptance, as shown in
Figure 12. It will always turn around this waypoint, never stop. This waypoint can only be dropped. Another suitable switching criterion [
9] solely involves the along-track distance
, such that if the total along-track distance between waypoints
and
is denoted as
, a switch is made when
This criterion is similar to Equation (4), but it has the advantage that AUVs do not need to enter the circle of acceptance. The disadvantage is that the current waypoint may be considered has been reached even if the cross-track error is very large, as shown in
Figure 12.
2. Overshoot occurs at corners. As mentioned in
Section 1, lookahead-based LOS guidance algorithm is the most frequently used method for path following. However, the lookahead distance has a great influence on the following performance, the simulation results with lookahead-based LOS guidance algorithm are shown in
Figure 13. The forward speed is controlled through feedback,
. The acceptance radius here is
. The desired path-1 consists of a total of 4 waypoints: {X
1 = 100, Z
1 = 0; X
2 = 100, Z
2 = −100; X
3 = 0, Z
3 = −100; X
4 = 0, Z
4 = 0} (relative to the starting point).
As seen from
Figure 13, the red line is the desired path, a small lookahead distance (△) will induce more aggressive steering, a large lookahead distance results in smoother steering, but the downside is slower convergence to the path. △ is typically expressed as n vehicle lengths [
32]. As seen from
Figure 13, the optimal distance is △ = 10 m, the corresponding simulation result is shown as the blue solid line, there is no unwanted oscillations around the path, and ZFAUV can converge to the desired path. However, no matter △ is large, small, or time-varying, there is large overshoot at corners. The maximum overshoot is approximately 8.9 m. When △ = 10 m, it convergences to the desired path after 40 m. Taking the maximum error of 2 m as the standard, only 75% of the actual trajectory convergences to the desired path, and this number drops to 67% if the first side is not considered (the initial heading angle is the same as that of the first path angle, so there is no error).
The problem becomes more serious when there are sharp corners on the path. So, another desired path-2 consists of a total of 2 waypoints: {X
1 = 100, Z
1 = 0; X
2 = 50, Z
2 = −86.6}, as shown in
Figure 14. The maximum overshoot is approximately 14 m (
). Taking the maximum error of 2 m as the standard, only 61% of the actual trajectory convergences to the desired path if only the oblique line is considered.
3. Poor following performance occurs if ZFAUV deviates from the desired path due to disturbances from wind, waves, current, or other uncertainties. Take the following situation as an example, shown as in
Figure 15. The red line is the desired path, ZFAUV locates at a certain distance (10 m) from the path. The black line is the simulation result of LOS, blue line is the simulation result of lookahead-based LOS (
, △ = 10 m,
). It can be seen from
Figure 15a that, with basic LOS, ZFAUV cannot converge to the desired path completely. With lookahead-based LOS, ZFAUV can converge to the desired path basically. However, as can be seen from
Figure 15b, the heading angle changes violently with lookahead-based LOS. This will prevent AUVs to accomplish the task like mapping the seabed with acoustic sensors (e.g., multibeam sonar, side-scan sonar, etc.).
4.2. Waypoint Selecting Criteria
As mentioned in
Section 4.1, two criteria for selecting the next waypoint have some disadvantages. This paper puts forward a new method. As shown in
Figure 16,
is the minimum turning radius of ZFAUV at survey speed, and the radius of circles
and
is
also. These circles both pass through the center of buoyancy (
B), and they are tangent with the path.
During the survey task, it is impossible to enter the inner area of these circles at survey speed. is the current heading angle. The angle between the line (which passes ZFAUV and the current waypoint ) and the North is defined as . The angle between line and line is defined as . Assuming there is a point on circle or circle and the length of is equal to the length of , the angle between line and line is defined as . The relative coordinates between ZFAUV and point are (x, z).
According to the geometric relationship, the following equation is obtained as.
where
.
When
,
, and during the survey task,
. According to the geometric relationship, the range of
can be determined as
.
is defined as
If the following condition is satisfied, waypoint
is located in circle
or circle
.
If waypoint locates outside circle or circle , in another words, if Equation (8) is not satisfied, it is a reachable point. During the survey task, ZFAUV determines whether the current waypoint is a reachable point or not all the time. If waypoint is a reachable point, ZFAUV will track this point at survey speed continuously. If waypoint is not a reachable point, there are two methods as following.
- (1)
If the path following requirement is not strict, it is not necessary to track each waypoint accurately, but to cruise at a fixed survey speed, then the current waypoint will be dropped and turn to the next waypoint.
- (2)
If the path following requirement is strict, and it is necessary to track each waypoint accurately. According to the maneuverability of ZFAUV, as the forward speed decreases, the turning radius becomes smaller and the vehicle can even turn around in-situ, which is the main difference between common propeller-rudder AUVs and ZFAUV. ZFAUV will decelerate the forward speed, so the turning radius will be small until becomes reachable, the heading angle will be adjusted under a smaller turning radius. Then, ZFAUV returns to survey speed. Whether the current waypoint needs to be tracked at survey speed continuously can be decided by the method above.
4.3. Modified LOS Guidance Algorithm
As shown in
Figure 13 and
Figure 14, when the AUV reaches the current waypoint, it should turn to the next waypoint. Because of the existence of the minimum turning radius, it will inevitably deviate from the path. The larger the turning radius, the larger the deviation. When overshoot occurs, it is the same as ZFAUV deviating from the desired path. A lateral movement can be introduced to reduce the overshoot. As shown in
Figure 17, considering the ideal situation, the turning radius is assumed to be
, forward speed is
, then the angular velocity is
.
Set the time starting to turn to be zero, so the angle at time t is . The velocity is , where .
If there is no lateral velocity, .
If a lateral velocity is introduced, .
where
Then, .
Figure 18 shows the simulation result of
,
. As seen in
Figure 18, the overshoot decreases with the introducing of lateral movement.
The purpose of path following is to make ZFAUV converge to the desired path as far as possible. Therefore, when ZFAUV deviates from the desired path, as shown in
Figure 19, the most direct way is to introduce a lateral movement. Under the condition of keeping the heading angle unchanged, the cross-track error can be eliminated.
Figure 20 shows the simulation result of
,
. It can be seen from
Figure 20 that ZFAUV convergences to the desired path rapidly and the change of heading angle is not so intense.
Therefore, the simpler path following strategy integrating basic LOS and lateral movement is adopted in this paper, as shown in
Figure 11, where, the cross-track error and the heading error are the key factors. The nature is to make the cross-track error and the heading error tend to be zero, and ZFAUV moves along with the desired path continuously.
Figure 18 demonstrates the result of fixed forward speed and lateral speed. During the survey task, according to the value of cross-track error, thrusters can be adjusted in real-time, as shown in
Figure 11,
is the cross-track error,
is the deviation between heading angle and the view direction. ZFAUV is controlled by
and
. The basic idea is to make the trajectory of ZFAUV be close with the desired path as much as possible. The control force is composed of two parts.
where
,
, and
and
are constants,
represent the thruster that moves it laterally (
),
represent the thruster that turns it around (
).
When ZFAUV is far away from the desired path, the first part of Equation (9) plays a major role in bringing ZFAUV close to the desired path. When the cross-track error is smaller than the given error (), the second part of Equation (9) plays a major role in making the heading angle of ZFAUV parallel to the desired path.
During the survey task, the following variables should be computed in real time.
The thruster allocation and control strategy under the survey task is shown in
Table 5. The lateral velocity is controlled indirectly by controlling the rotation speed and direction of
,
and
. According to Equation (9), lateral velocity
is zero when the cross-track error is zero.
The path following controller is shown in
Figure 21.
To test the validity of the modified LOS guidance algorithm presented in this section, the same paths were selected.
Figure 22 shows the results of the modified LOS (
). For path-1, shown in
Figure 22a, the following performance is satisfactory at the beginning, and overshoot occurs at the corners. The maximum overshoot is approximately 5.7 m. Taking the maximum error of 2 m as the standard, approximately 84% of the actual trajectory convergences to the desired path, and this drops to approximately 78% if the first side is not considered. For path-2, shown in
Figure 22b, the maximum overshoot is approximately 7 m. Taking the maximum error of 2 m as the standard, only 69% of the actual trajectory convergences to the desired path if only the oblique line is considered.
Compared with the lookahead-based LOS algorithm, although the overshoot is reduced, it still exists, especially at the corners. The reason is that the turning radius is too large when ZFAUV moves at survey speed. The problem can be solved by the following method.
4.4. Arc Transiting at the Corners
Based on the simulation results above, a larger overshoot exists at the corners still. For the turning radius cannot be smaller than the minimum turning radius. When the acceptance radius is fixed, and if the acceptance radius is too small, overshoot is inevitable. In order to solve this problem, one easy method is to increase the acceptance radius. So, the vehicle will start the curve earlier to avoid the overshoot, as shown in
Figure 23 (
). However, there are still some problems to be solved.
(1) Turning at a large distance from the waypoint, there will be a large arc at corner, and it will stop at a large distance from the last waypoint, so the following performance is getting worse, as shown in
Figure 23.
(2) The optimal acceptance radius is different at different corners, as shown in
Figure 23.
For right angle (90°), as shown in
Figure 23a, the optimal acceptance radius is 12.5 m, the maximum error is approximately 4 m, and 94% of the actual trajectory convergences to the desired path.
For acute angle (60°), as shown in
Figure 23b, the optimal acceptance radius is 15 m, the maximum error is approximately 6 m, and 84% of the actual trajectory convergences to the desired path.
For obtuse angle (150°), as shown in
Figure 23c, the optimal acceptance radius is 5 m, the maximum error is approximately 0.2 m, and almost all the actual trajectory convergences to the desired path.
(3) Even if all corners are right angles, with the different attitude and position of ZFAUV, the optimal acceptance radius is different also.
So, a fixed acceptance radius is not suitable for all situations. According to the maneuverability of ZFAUV, this paper proposes a strategy to transit to the next path with a fixed acceptance radius (5 m) as following.
As shown in
Figure 24, when the current waypoint
is tracked by ZFAUV, ZFAUV will move along an arc which is tangential to line
to the position
at a fixed tunnel speed. Then, it will move toward the next waypoint
.
As shown in
Figure 24,
is the view direction angle between target point
and ZFAUV.
is the direction angle between waypoint
and waypoint
. The distance between the current position of ZFAUV and waypoint
is defined as
,
should be no larger than
. The heading angle is defined as
. According to the geometric relationship, the transiting arc radius is obtained as
(1) If R ≥ R0, where R0 is the minimum turning radius of ZFAUV at survey speed, according to the relationship between the tunnel speed and the turning radius, the tunnel speed n5 is determined.
(2) If R < R0, according to the maneuverability of ZFAUV (as the forward speed decreases, the turning radius becomes smaller and the vehicle can even turn around in-situ), ZFAUV decelerates the forward speed to ensure R ≥ R0. Then, smooth transition can be achieved. This is impossible for most existing propeller-rudder AUVs.
Another simulation was constructed with the modified LOS and arc transiting at the corners (
), and the same paths were selected. For path-1, as seen in
Figure 25a, the maximum error is approximately 3 m, and it also occurs at the corners. Taking the maximum error of 2 m as the standard, almost 97% of the actual trajectory coincides with the desired trajectory, and this drops to approximately 96% if the first side is not considered. For path-2, as seen in
Figure 25b, the maximum error is approximately 3 m. Taking the maximum error of 2 m as the standard, approximately 95% of the actual trajectory convergences to the desired path if only the oblique line is considered.
Simulation results of the proposed method indicate that smooth convergence and small overshoot without oscillations around the desired path are achieved. Moreover, the problem of some waypoints cannot be reached can be solved completely.
6. Conclusions
ZFAUV has four fixed thrusters at the tail and two tunnel thrusters at the front. It can turn around in-situ and move laterally as well as vertically. In contrast to common propeller-rudder AUVs, the turning radius is related to the forward speed. The smaller the forward speed, the smaller the turning radius.
In order to improve the path following performance, based on the maneuverability of ZFAUV, a modified LOS path following strategy is proposed in this paper. The main motivation is to eliminate cross-track error by lateral movement. ZFAUV continues to move toward the current waypoint, while the cross-track error can be eliminated with the lateral movement. A method to determine whether the current waypoint is reachable or not is proposed. Smooth transition to the next waypoint is achieved by arc transiting strategy at corners to reduce overshoot. If the calculated transiting radius is smaller than the turning radius under survey speed, decelerating strategy will be adopted to reduce the turning radius, so overshoot at corners can be reduced. In comparison with basic LOS and lookahead-based LOS strategy, the proposed strategy provides better convergence and smaller overshoot. With this strategy, ZFAUV is able to follow less regular paths, e.g., paths with sharp corners. Finally, the simulation results show a satisfactory path following performance. Moreover, the experimental results are consistent with the simulation results. The research findings will be used for the reference or inspiration for improving development of AUVs.
This strategy is based on the maneuverability of ZFAUV, especially as the lateral moving ability and the turning radius can be reduced with a decelerating strategy. At present, this is not suitable for all AUVs, so we will continue to improve this strategy so that it can be adopted by all kinds of AUVs in the future.