Second Path Planning for Unmanned Surface Vehicle Considering the Constraint of Motion Performance

When utilizing the traditional path planning method for unmanned surface vehicles (USVs), ‘planning-failure’ is a common phenomenon caused by the inflection points of large curvatures in the planned path, which exceed the performances of USVs. This paper presents a second path planning method (SPP), which is an initial planning path optimization method based on the geometric relationship of the three-point path. First, to describe the motion performance of a USV in conjunction with the limited test data, a method of integral nonlinear least squares identification is proposed to rapidly obtain the motion constraint of the USV merely by employing a zig zag test. It is different from maneuverability identification, which is performed in combination with various tests. Second, the curvature of the planned path is limited according to the motion performance of the USV based on the traditional path planning, and SPP is proposed to make the maximum curvature radius of the optimized path smaller than the rotation curvature radius of the USV. Finally, based on the ‘Dolphin 1’ prototype USV, comparative simulation experiments were carried out. In the experiment, the path directly obtained by the initial path planning and the path optimized by the SPP method were considered as the tracking target path. The artificial potential field method was used as an example for the initial path planning. The experimental results demonstrate that the tracking accuracy of the USV significantly improved after the path optimization using the SPP method.


Introduction
Unmanned surface vehicle (USV), which has attracted significant research attention in recent years, is used for dangerous and inhospitable missions [1,2].At present, a USV mainly consists of a motion control system [3], sensor system, and communication system.
Path planning [4,5], as the core of USV research, represents the intelligence level of the USV to a certain extent.The path planning method can be used to determine an optimal path from the starting point to the end point, which mainly includes the A* algorithm [6][7][8], genetic algorithm [9], artificial potential field method [10], ant colony algorithm [11], and particle swarm algorithm [12,13].However, all the abovementioned methods of USV path planning present several drawbacks.The optimal set of path planning is solved based on the shortest distance standard, mostly on the premise that the USV is regarded as a mass point, while ignoring its maneuvering and turning performances.This results in the inability of the underactuated USV to track path nodes with large curvatures beyond the limitations of its own motion performance.In practical engineering applications, planning failures, such as the The USV motion equation of six degrees of freedom can be expressed as follows: where the first three equations are the expressions of the motion theorem of the mass center in the body coordinate system, and the last three equations are the Euler dynamics equations of the rotation of a rigid body around a fixed point.
Only considering the horizontal motion, = = = 0 p q w , the linear Equation ( 2) of the vehicular heading response can be obtained through the transformation of Equation ( 1): In 1957, Nomoto [23] suggested that the first order linear differential equation can be approximately substituted for the second order equation, in the case wherein steering is infrequent, as shown in Equation (3): The first order nonlinear Equation ( 4) is obtained by adding the nonlinear term to the motion of the large rudder angle, low speed, and the study of small ships: The mini-type USV evaluated in this study uses two electric propellers as the power device, with a maximum voltage of 12 V.Different voltage values correspond to different speed values.In combination with the model of thrust and velocity in [24], and with reference to the rudder and heading model, the corresponding relationship between the speed and voltage of the USV was established.The speed model of the USV can be expressed as follows: where u is the longitudinal speed of the USV, n is the propeller voltage, and 1 2 3 , , k k k represent the system parameters.The transverse speed can be neglected due to the low speed of the USV evaluated in this study.
In summary, the maneuverability model of the USV can be expressed as follows: The USV motion equation of six degrees of freedom can be expressed as follows: where the first three equations are the expressions of the motion theorem of the mass center in the body coordinate system, and the last three equations are the Euler dynamics equations of the rotation of a rigid body around a fixed point.
Only considering the horizontal motion, p = q = w = 0, the linear Equation ( 2) of the vehicular heading response can be obtained through the transformation of Equation (1): In 1957, Nomoto [23] suggested that the first order linear differential equation can be approximately substituted for the second order equation, in the case wherein steering is infrequent, as shown in Equation (3): The first order nonlinear Equation ( 4) is obtained by adding the nonlinear term to the motion of the large rudder angle, low speed, and the study of small ships: The mini-type USV evaluated in this study uses two electric propellers as the power device, with a maximum voltage of 12 V.Different voltage values correspond to different speed values.In combination with the model of thrust and velocity in [24], and with reference to the rudder and heading model, the corresponding relationship between the speed and voltage of the USV was established.The speed model of the USV can be expressed as follows: where u is the longitudinal speed of the USV, n is the propeller voltage, and k 1 , k 2 , k 3 represent the system parameters.The transverse speed can be neglected due to the low speed of the USV evaluated in this study.
In summary, the maneuverability model of the USV can be expressed as follows:

Integral Nonlinear Least Squares Method
The least squares method [25] is one of the most commonly used motion parameter identification methods.However, this method was typically used to identify the nonlinear motion equation by a combination of experiments, i.e., the zig zag test and the turning circle test.In this paper, an integral nonlinear least squares method is proposed.The nonlinear parameters of the motion equation are transformed and processed.Using a set of zig zag test data, the nonlinear motion equation can be rapidly identified.Based on the identification results, the course control parameters can be predicted, and the motion ability can be analyzed.
Based on the 'Dolphin 1' prototype USV, the integral nonlinear least square method was adopted to identify the parameters of the first-order nonlinear control model using the zig zag test data.According to the identified parameters, the corresponding zig zag test manipulation simulation model was established using MATLAB, and the reliability of the method was confirmed by the error between the simulation and actual case.The experimental data were derived from the zig zag test in the Songhua River in Harbin, Heilongjiang, China.Figure 2

Integral Nonlinear Least Squares Method
The least squares method [25] is one of the most commonly used motion parameter identification methods.However, this method was typically used to identify the nonlinear motion equation by a combination of experiments, i.e., the zig zag test and the turning circle test.In this paper, an integral nonlinear least squares method is proposed.The nonlinear parameters of the motion equation are transformed and processed.Using a set of zig zag test data, the nonlinear motion equation can be rapidly identified.Based on the identification results, the course control parameters can be predicted, and the motion ability can be analyzed.
Based on the 'Dolphin 1' prototype USV, the integral nonlinear least square method was adopted to identify the parameters of the first-order nonlinear control model using the zig zag test data.According to the identified parameters, the corresponding zig zag test manipulation simulation model was established using MATLAB, and the reliability of the method was confirmed by the error between the simulation and actual case.The experimental data were derived from the zig zag test in the Songhua River in Harbin, Heilongjiang, China.Figure 2

Integral Nonlinear Least Squares Method
The least squares method [25] is one of the most commonly used motion parameter identification methods.However, this method was typically used to identify the nonlinear motion equation by a combination of experiments, i.e., the zig zag test and the turning circle test.In this paper, an integral nonlinear least squares method is proposed.The nonlinear parameters of the motion equation are transformed and processed.Using a set of zig zag test data, the nonlinear motion equation can be rapidly identified.Based on the identification results, the course control parameters can be predicted, and the motion ability can be analyzed.
Based on the 'Dolphin 1' prototype USV, the integral nonlinear least square method was adopted to identify the parameters of the first-order nonlinear control model using the zig zag test data.According to the identified parameters, the corresponding zig zag test manipulation simulation model was established using MATLAB, and the reliability of the method was confirmed by the error between the simulation and actual case.The experimental data were derived from the zig zag test in the Songhua River in Harbin, Heilongjiang, China.At 10.0 volts, the 'Dolphin 1' carried out the zig zag test control experiment at a speed of 1.08 m/s.The variation curve of the heading and rudder angle with respect to time is shown in Figure 3.According to the test, the first order nonlinear K-T Equation (6) was identified using integral nonlinear least squares.Referring to Figure 4, given that the vehicle has no real-time measurement record of angular acceleration, the integral of both sides of Equation ( 6) was carried out based on the time region, [a,b].By means of the integral, the angular acceleration was eliminated, and the heading angle data was introduced to identify the mini-type USV maneuvering model: J. Mar.Sci.Eng.2019, 7, x FOR PEER REVIEW 5 of 20 According to the test, the first order nonlinear K-T Equation (6) was identified using integral nonlinear least squares.Referring to Figure 4, given that the vehicle has no real-time measurement record of angular acceleration, the integral of both sides of Equation ( 6) was carried out based on the time region, [a,b].By means of the integral, the angular acceleration was eliminated, and the heading angle data was introduced to identify the mini-type USV maneuvering model: According to the actual field test data, the operating tempo of the program of the USV control system was 0.15 s.Hence, the N equal interval was adopted, and the equal spacing value was 0.15.For the i-th interval, the linear terms were integrated and then discrete: For the nonlinear term, r dt, given that r is a function of t, the integral of 3 ( ) r t with respect to the time, t, is complex and difficult to solve.When the experimental data is discrete, the Newton-Cotes quadrature equation is adopted to calculate the product, as shown in Equation (9).
x b, and given the value of the function, ( ) f x , on these nodes, the Lagrangian interpolation polynomial, ( ) n L x , is applied; thus: where 9) is referred to as the interpolation formula.The remainder of the interpolation formula is shown in Equation ( 10): According to the actual field test data, the operating tempo of the program of the USV control system was 0.15 s.Hence, the N equal interval was adopted, and the equal spacing value was 0.15.For the i-th interval, the linear terms were integrated and then discrete: For the nonlinear term, c i = i a r 3 dt, given that r is a function of t, the integral of r 3 (t) with respect to the time, t, is complex and difficult to solve.When the experimental data is discrete, the Newton-Cotes quadrature equation is adopted to calculate the product, as shown in Equation (9).
given a set of nodes, a ≤ x 0 < x 1 < . . .< x n ≤ b, and given the value of the function, f (x), on these nodes, the Lagrangian interpolation polynomial, L n (x), is applied; thus: where A k = b a l k (x)dx.Equation ( 9) is referred to as the interpolation formula.The remainder of the interpolation formula is shown in Equation ( 10): The quadrature coefficient, A k , is independent of f (x), and it is related to the equidistant nodes, x k , and integral interval, [a, b].The integral formula of the Newton-Cotes ( 11) can be obtained by transforming A k : where C (n) k is referred to as the cotes coefficient.The coefficient of cotes is shown in Table 1.Based on the actual test data, h = 0.15, the method takes n = 1.0, divides the interval, [a, i], into m equal parts, counts c = 1.0, and uses a composite integral formula to reduce the remaining terms.
According to Equation (10), the remainder of the composite newton-cotes interpolation can be obtained: When n = 1.0, the composite function, g(x) = r 3 (x), can be considered as g(r) = r 3 .Moreover, by considering the concavity and convexity of the function, the right side of the equation is divided into two parts in the process of the composite Newton-Cotes quadrature, i.e., the exact solution and the approximate solution.In addition, the gain coefficient is introduced to reduce the interpolation remainder, and c i is shown in Equation ( 14): where α = 0.5.
Utilizing the least square method, the left and right sides of Equation ( 15) are respectively considered as functions, and the square of their difference can be minimized to obtain the values of K, T, α: The same method can also be used to solve the parameters of the velocity model.Given that the data from the zig zag test conducted in the Songhua River had wild values, the outliers were primarily deleted by data fitting.The curve fitting heading angle was a 7th order Fourier function [27], and the curve fitting heading angular velocity was the piecewise cubic polynomial function.The fitting curves of the heading angle and heading angular velocity are shown in Figure 5a-d.
The same method can also be used to solve the parameters of the velocity model.

Identification of USV Maneuverability by Field Test Data
Given that the data from the zig zag test conducted in the Songhua River had wild values, the outliers were primarily deleted by data fitting.The curve fitting heading angle was a 7th order Fourier function [27], and the curve fitting heading angular velocity was the piecewise cubic polynomial function.The fitting curves of the heading angle and heading angular velocity are shown in Figure 5a-d.According to the fitting curve, the wild values (data points with large deviation) were eliminated.
, as obtained from Equation (16).A zig zag test manipulation experimental simulation model was established in MATLAB.Based on the solved values of K, T, α, the predicted heading angle obtained by the simulation under the same rudder angle input was compared with the actual test data.The results are presented in Figures 6 and 7.According to Figure 7, at the same input rudder angle, the heading angle error was in the 5 ± 。 interval.Considering the communication delay, inertia of the USV, accuracy of the rudder angle feedback, and that of the heading angle sensor, the fitting curve was consistent with the actual data.
Based on the velocity and voltage data, the least squares identification method was used to obtain 1 k = −0.006, 2 k = 0.159, and 3 k = 0.004.The comparison results are presented in Figures 8 and   9.According to Figure 7, at the same input rudder angle, the heading angle error was in the 5 ± 。 interval.Considering the communication delay, inertia of the USV, accuracy of the rudder angle feedback, and that of the heading angle sensor, the fitting curve was consistent with the actual data.
Based on the velocity and voltage data, the least squares identification method was used to obtain 1 k = −0.006, 2 k = 0.159, and 3 k = 0.004.The comparison results are presented in Figures 8 and   9.According to Figure 7, at the same input rudder angle, the heading angle error was in the ±5 • interval.Considering the communication delay, inertia of the USV, accuracy of the rudder angle feedback, and that of the heading angle sensor, the fitting curve was consistent with the actual data.
Based on the velocity and voltage data, the least squares identification method was used to obtain k 1 = −0.006,k 2 = 0.159, and k 3 = 0.004.The comparison results are presented in Figures 8 and 9.According to Figure 7, at the same input rudder angle, the heading angle error was in the 5   interval.Considering the communication delay, inertia of the USV, accuracy of the rudder angle feedback, and that of the heading angle sensor, the fitting curve was consistent with the actual data.
Based on the velocity and voltage data, the least squares identification method was used to obtain 1 k = −0.006, 2 k = 0.159, and 3 k = 0.004.The comparison results are presented in Figures 8   and 9.

Simulation and Analysis of USV Motion
When the USV is sailing in a straight line, the vehicle deviates from the original route and makes a turning movement at a certain rudder angle.The radius of the circle formed by the trajectory of the USV center of gravity is referred to as the radius of steady rotation.K is the

Simulation and Analysis of USV Motion
When the USV is sailing in a straight line, the vehicle deviates from the original route and makes a turning movement at a certain rudder angle.The radius of the circle formed by the trajectory of the USV center of gravity is referred to as the radius of steady rotation.K is the constant rotation angular velocity due to the unit rudder angle, which is directly proportional to the radius of rotation, and inversely proportional to the curvature of steady rotation.Therefore, the maximum rotational curvature can be considered as an evaluation index of the USV motion ability.
Using Equation ( 16), the dynamic model of the 'Dolphin 1' USV was solved, and the turning circle simulation model was established based on MATALB software.Moreover, a proportional-integralderivative (PID) control method was adopted to establish the control law [28], as shown in Equation ( 17): where u is the output of the controller, and e is the deviation between the given expected value and the actual output value.The simulated steady rotation trajectory is presented in Figure 10.The initial position coordinate of the USV was (0,0), the rudder angle was constant at 30.0 • , and the iterative step length and control cycle were 0.15 s.
Figure 9. Description of the speed error curve.

Simulation and Analysis of USV Motion
When the USV is sailing in a straight line, the vehicle deviates from the original route and makes a turning movement at a certain rudder angle.The radius of the circle formed by the trajectory of the USV center of gravity is referred to as the radius of steady rotation.K is the constant rotation angular velocity due to the unit rudder angle, which is directly proportional to the radius of rotation, and inversely proportional to the curvature of steady rotation.Therefore, the maximum rotational curvature can be considered as an evaluation index of the USV motion ability.
Using Equation ( 16), the dynamic model of the 'Dolphin 1' USV was solved, and the turning circle simulation model was established based on MATALB software.Moreover, a proportional-integral-derivative (PID) control method was adopted to establish the control law [27], as shown in Equation ( 17): where u is the output of the controller, and e is the deviation between the given expected value and the actual output value.The simulated steady rotation trajectory is presented in Figure 10.The initial position coordinate of the USV was the rudder angle was constant at 30.0°, and the iterative step length and control cycle were 0.15 s.To confirm the reliability of the motion analysis, the field steady turning test data of 'Dolphin 1′ were used for comparison.The data were collected and recorded at a rudder angle with a fixed value of 30.0°.The trajectory of the USV is shown in Figure 11.To confirm the reliability of the motion analysis, the field steady turning test data of 'Dolphin 1 were used for comparison.The data were collected and recorded at a rudder angle with a fixed value of 30.0 • .The trajectory of the USV is shown in Figure 11.

Simulation and Analysis of USV Motion
When the USV is sailing in a straight line, the vehicle deviates from the original route and makes a turning movement at a certain rudder angle.The radius of the circle formed by the trajectory of the USV center of gravity is referred to as the radius of steady rotation.K is the constant rotation angular velocity due to the unit rudder angle, which is directly proportional to the radius of rotation, and inversely proportional to the curvature of steady rotation.Therefore, the maximum rotational curvature can be considered as an evaluation index of the USV motion ability.
Using Equation ( 16), the dynamic model of the 'Dolphin 1' USV was solved, and the turning circle simulation model was established based on MATALB software.Moreover, a proportional-integral-derivative (PID) control method was adopted to establish the control law [28], as shown in Equation ( 17): where u is the output of the controller, and e is the deviation between the given expected value and the actual output value.The simulated steady rotation trajectory is presented in Figure 10.The initial position coordinate of the USV was (0,0), the rudder angle was constant at 30.0°, and the iterative step length and control cycle were 0.15 s.To confirm the reliability of the motion analysis, the field steady turning test data of 'Dolphin 1′ were used for comparison.The data were collected and recorded at a rudder angle with a fixed value of 30.0°.The trajectory of the USV is shown in Figure 11.In Figure 11, the distance between two course path points at A(126.53852,45.79677)and B(126.53851,45.79691)were calculated.Using Equation (18), the longitude and latitude coordinates can be converted from angular units to metric units: where R globle = 6371.393km is the radius of the earth, and the radius, R tur , of 'Dolphin 1' is 7.8 m.By analyzing and comparing Figures 10 and 11, the two turning trajectories were found to be identical.The integral nonlinear least square method was employed to analyze and determine the performance index of the USV, which was found to demonstrate a high efficiency, convenience, and high accuracy.

SPP of USV
In this paper, a second path planning method (SPP) is presented, which is not restricted by the USV motion ability.The improved artificial potential field method proposed by Huang Xinghua [21] was selected as the first path planning method in this study.On the premise of the existing planning path, the second path optimization was carried out to calculate an optimal path constrained by the motion performance of the vehicle.This method was used to solve the problem and deficiency of the traditional USV path planning.

SPP Model
The SPP of the USV refers to the optimal path constrained by the performance of the USV, which was selected according to the existing optimal path and the three-point geometric relationship.This method preserves the preferred criteria of the traditional path planning.
The SPP model can be described as follows.
Assuming that x, y are the coordinates in the inertial coordinate system, and p i = [x i , y i ] T is defined as the coordinate position of a path point, the set of n path points derived from the traditional path planning can be expressed as p = [p T 1 . . . . . .p T n ] T .The check point at time k can be expressed as where d is the constraint index variable of the motion performance of the vehicle.When ( − d ) < 0, the current check point is maintained and the next path point is discussed.When ( − d ) ≥ 0, the current checkpoint is discarded and the next point of the optimal set of paths is tested until the checkpoint is the endpoint of the path.The schematic diagram of SPP is shown in Figure 12.
The second path planning is applicable to the traditional USV path planning method, which can be used to solve a series of discrete path point Using the improved artificial potential field method proposed by Huang Xinghua [21] as an example, as shown below, the path planning of the USV involved the implementation of the secondary optimization subject to its motion constraint.The second path planning is applicable to the traditional USV path planning method, which can be used to solve a series of discrete path point sets.
Using the improved artificial potential field method proposed by Huang Xinghua [21] as an example, as shown below, the path planning of the USV involved the implementation of the secondary optimization subject to its motion constraint.

An Improved Path Planning for the Artificial Potential Field Method
The artificial potential field method (APF), initially proposed by Khatib, was applied to the obstacle avoidance motion planning of a robot manipulator, which had as its objective the realization of the real-time obstacle avoidance of a mechanical arm.The essence of the APF is to define an abstract potential field artificially for the operating space of the robot, which is the superposition of the gravitational field of the target position and the repulsive force field of the obstacle in the environment.The negative gradient of the force field is the virtual force that acts on the robot, and the resultant force of gravity and repulsion represent the accelerating force of the robot.
Although the path planned by the artificial potential field method is efficient, smooth, and safe, there are several drawbacks related to this method [29][30][31][32][33][34], i.e., (1) the local minimum problem; (2) the inability to navigate through closely-situated obstacles; and (3) oscillations near the obstacle.The main objective of the improved artificial potential field method [21] proposed by Huang Xinghua is the solution of these problems to establish a new potential field function.Hence, during the approach of the target point by the robot, the repulsion field is close to zero and the position of the robot target point is the minimum point of the entire situation field; thus, the target can be reached.The repulsion force potential field function of the improved artificial potential field method can be expressed as shown in Equation ( 21): where 0 ≤ n < 1.
The negative gradient of the potential field function is also considered as the corrected repulsive force of the repulsion field, as follows: where: )

An Improved Path Planning for the Artificial Potential Field Method
The artificial potential field method (APF), initially proposed by Khatib, was applied to the obstacle avoidance motion planning of a robot manipulator, which had as its objective the realization of the real-time obstacle avoidance of a mechanical arm.The essence of the APF is to define an abstract potential field artificially for the operating space of the robot, which is the superposition of the gravitational field of the target position and the repulsive force field of the obstacle in the environment.The negative gradient of the force field is the virtual force that acts on the robot, and the resultant force of gravity and repulsion represent the accelerating force of the robot.
Although the path planned by the artificial potential field method is efficient, smooth, and safe, there are several drawbacks related to this method [29][30][31][32][33][34], i.e., (1) the local minimum problem; (2) the inability to navigate through closely-situated obstacles; and (3) oscillations near the obstacle.The main objective of the improved artificial potential field method [21] proposed by Huang Xinghua is the solution of these problems to establish a new potential field function.Hence, during the approach of the target point by the robot, the repulsion field is close to zero and the position of the robot target point is the minimum point of the entire situation field; thus, the target can be reached.The repulsion force potential field function of the improved artificial potential field method can be expressed as shown in Equation ( 21): where 0 ≤ n < 1.
The negative gradient of the potential field function is also considered as the corrected repulsive force of the repulsion field, as follows: where: where U rep is the repulsive field of the obstacle, ρ is the distance between the robot and the obstacle, ρ 0 is the maximum influencing range of the obstacle, k rep is the constant of the repulsive field, n is positive, X represents the coordinates of the robot, X g represents the coordinates of the target point, and ∇ represents the sign of the gradient.
The gravitational potential field function can be expressed as follows: where U att is the gravitational field generated by the target point, and k is the gain constant.Gravity can be expressed as shown in Equation ( 26):

SPP of the Improved Artificial Potential Field Method
Combined with the improved artificial potential field method, the theoretical block diagram of the second path planning constrained by the motion of the USV is shown in Figure 13.
where rep U is the repulsive field of the obstacle, ρ is the distance between the robot and the obstacle, ρ 0 is the maximum influencing range of the obstacle, rep k is the constant of the repulsive field, n is positive, X represents the coordinates of the robot, g X represents the coordinates of the target point, and ∇ represents the sign of the gradient.
The gravitational potential field function can be expressed as follows: where att U is the gravitational field generated by the target point, and k is the gain constant.
Gravity can be expressed as shown in Equation ( 26):

SPP of the Improved Artificial Potential Field Method
Combined with the improved artificial potential field method, the theoretical block diagram of the second path planning constrained by the motion of the USV is shown in Figure 13.When the vehicle is performing the navigation task, the starting position, target position, and obstacle position are determined according to the mission information and sea chart information.According to the objective function of the artificial potential field method, a set of path points are obtained.The starting position is reserved, and the second planning task function is analyzed from the second point, as shown in Equation ( 27): When the vehicle is performing the navigation task, the starting position, target position, and obstacle position are determined according to the mission information and sea chart information.According to the objective function of the artificial potential field method, a set of path points are obtained.The starting position is reserved, and the second planning task function is analyzed from the second point, as shown in Equation ( 27): where p k represents the location coordinates of the path point that correspond to the current check moment, k; p k+1 , p k−1 are the path points of the current test point forward and backward once, respectively; D i is the distance of the two path points; D is the distance between the path points; and J k is the size of the region across the three path points.The second planning task variable can be expressed as follows: where d is the constraint index variable of the USV motion performance, and its value can be determined by the rotational curvature of the vehicle.Substituting Equations ( 30) and (31) into Equation ( 19), the second optimization can be evaluated.

Simulation Test of Trajectory Tracking of USV by SPP Method
Considering the 'Dolphin 1' mini-type USV as the test object and using the improved artificial potential field method proposed by Huang Xinghua [21] as an example, the path planning optimization method presented in this paper was simulated and verified.The simulation platform was developed using MATLAB software, the PID control method was employed to control the course and speed, and the trajectory tracking method was implemented in conjunction with the PP method.

Comparative Experiment of Small Planning Step
The initial position of the USV was (10 m, 5 m), the target position was (1000 m, 800 m), the length of the vehicle was l = 2.0 m, and the planning step, t p , was t p = 2.0 m.The locations of the obstacles were (200 m, 150 m) and (500 m, 400 m), respectively.The radius of the obstacles, r, corresponded to 10.0 m and 30.0 m, and the influencing radius was defined as r_in = r + t p /l * l, where is the integer sign considered upward.
The results of the comparison between the initial path planning using the improved artificial potential field method and the second path planning under the consideration of the motion performance of the USV are shown in Figure 14a.Figure 14b presents the local magnification of the path planning near the first obstacle.In Figure 14a, the solid line represents the initial planning path, and the dotted line represents the optimized path by the secondary planning.The figure illustrates that the initial planning path near the obstacle produces zig-zag oscillations, and the intensity of the path oscillation is related to the impact of the obstacle on the connectivity of the starting point and the end point, in addition to the size of the obstacle.As shown in Figure 14b, given that the SPP method is optimized based on the initial path; it retains the fitness function standard of the initial planning and reduces the oscillation of the initial planning path through optimization.and the dotted line represents the optimized path by the secondary planning.The figure illustrates that the initial planning path near the obstacle produces zig-zag oscillations, and the intensity of the path oscillation is related to the impact of the obstacle on the connectivity of the starting point and the end point, in addition to the size of the obstacle.As shown in Figure 14b, given that the SPP method is optimized based on the initial path; it retains the fitness function standard of the initial planning and reduces the oscillation of the initial planning path through optimization., and the trajectory tracking adopted the pure tracking (PP) method [35][36][37].In the simulation experiment, when the time exceeded 50.0 s, the target point was replaced, although the vehicle had not reached the distance threshold of the target in the current tracking stage.The simulation results of the USV trajectory tracking of the two methods are respectively shown in Figure 15a,c.The tracking deviation of the two methods is shown in Figure 15b,d.On the Simulink simulation platform, a USV motion model was developed.The iterative step length and control cycle were 0.15 s.The parameters of the course PID controller were set as p = 1.0, i = 0.001, d = 1.0, the parameters of the speed controller were p = 2.0, i = 0.001, d = 0.001, and the trajectory tracking adopted the pure tracking (PP) method [35][36][37].In the simulation experiment, when the time exceeded 50.0 s, the target point was replaced, although the vehicle had not reached the distance threshold of the target in the current tracking stage.The simulation results of the USV trajectory tracking of the two methods are respectively shown in Figure 15a,c.The tracking deviation of the two methods is shown in Figure 15b,d.As can be seen from Figure 15a,c, under the premise of a small planning step length, t p = 2.0 m, the vehicle can track the optimized path after the initial planning using an artificial potential field method and secondary planning method, respectively, and successfully complete the obstacle avoidance task.The comparison and analysis of Figure 15b,d illustrate that although both methods can be used to achieve obstacle avoidance and complete the tracking tasks by SPP, the actual course path of the vehicle was more consistent with the planned path than by APF.This is because secondary programming is an optimization standard of the maneuverability of the USV, which leads to a higher tracking accuracy.

Comparative Experiment of Large Planning Step
With the same simulation environment and control parameters as in the abovementioned experiment, the USV sailed from the same position to the same target, and the planning step, t p , was set greater than the length of the vehicle by a factor of 5 (t p =10.0 m).The results of the comparison between the two methods with respect to the USV trajectory tracking are respectively shown in Figure 16a,b.
As can be seen from Figure 16a, the USV generated roundabout routes when it tracked the planned path points during its approach of the first and second obstacles, which resulted in a failure to complete the obstacle avoidance task (given that the obstacle was a virtual object in the simulation, the task was not interrupted due to collision, and the experiment was continued).Figure 17 presents the tracking deviation of the USV for the duration of the trajectory tracking task.A maximum path deviation of 34 m was generated near the first obstacle, which gradually decreased to a value of approximately 4.0 m, and then remained stable.It should be noted that the distance between the navigation position of the vehicle and the tracking target was reduced to 4.0 m in the simulation; thus, the task was considered as completed.In the vicinity of the second obstacle, the maximum deviation was approximately 77.0 m, and due to its course deviation, the tracking process always sailed in an approximate 3/4 minimum turning circle in the following trajectory tracking process.This resulted in the oscillation of the tracking deviation within the range of 8 m until the target point was reached.leads to a higher tracking accuracy.

Comparative Experiment of Large Planning Step
With the same simulation environment and control parameters as in the abovementioned experiment, the USV sailed from the same position to the same target, and the planning step, p t , was set greater than the length of the vehicle by a factor of 5 ( = As can be seen from Figure 16(a), the USV generated roundabout routes when it tracked the planned path points during its approach of the first and second obstacles, which resulted in a failure to complete the obstacle avoidance task (given that the obstacle was a virtual object in the simulation, the task was not interrupted due to collision, and the experiment was continued).Figure 17 presents the tracking deviation of the USV for the duration of the trajectory tracking task.
A maximum path deviation of 34 m was generated near the first obstacle, which gradually decreased to a value of approximately 4.0 m, and then remained stable.It should be noted that the distance between the navigation position of the vehicle and the tracking target was reduced to 4.0 m in the simulation; thus, the task was considered as completed.In the vicinity of the second obstacle, the maximum deviation was approximately 77.0 m, and due to its course deviation, the tracking process always sailed in an approximate 3/4 minimum turning circle in the following trajectory tracking process.This resulted in the oscillation of the tracking deviation within the range of 8 m until the target point was reached.According to the analysis results in Figures 16b and 18, during the large planning step, the USV tracked the planned path optimized by the secondary planning, and then successfully completed the obstacle avoidance task.The tracking deviation, namely, the along track error, was less than 4 m; thus, the vehicle was considered to reach the target point.As can be seen from Figure 18, the obstacle has no effect on the tracking accuracy, and the tracking deviation was approximately 4 m.Figures 17 and 18 illustrate the decrease in the number of track points after optimization, which reduced the possibility of the occurrence of detour road events.The experimental results indicate that the SPP method improves the tracking accuracy of the USV and reduces the length of the detour route, thus reducing the energy consumption and preventing collisions.According to the analysis results in Figures 16b and 18, during the large planning step, the USV tracked the planned path optimized by the secondary planning, and then successfully completed the obstacle avoidance task.The tracking deviation, namely, the along track error, was less than 4 m; thus, the vehicle was considered to reach the target point.As can be seen from Figure 18, the obstacle has no effect on the tracking accuracy, and the tracking deviation was approximately 4 m.Figures 17 and 18 illustrate the decrease in the number of track points after optimization, which reduced the possibility of the occurrence of detour road events.The experimental results indicate that the SPP method improves the tracking accuracy of the USV and reduces the length of the detour route, thus reducing the energy consumption and preventing collisions.
18, the obstacle has no effect on the tracking accuracy, and the tracking deviation was approximately 4 m.Figures 17 and 18 illustrate the decrease in the number of track points after optimization, which reduced the possibility of the occurrence of detour road events.The experimental results indicate that the SPP method improves the tracking accuracy of the USV and reduces the length of the detour route, thus reducing the energy consumption and preventing collisions.

Comparative Experiment of Multi-Obstacle Path Planning
According to the abovementioned experiment, in the case of two obstacles in the small planning step, the USV successfully tracked the path planned by APF and SPP, and completed the obstacle avoidance task.With an identical simulation environment and control parameters to those of the abovementioned vehicle navigated from the same starting position to the same target point, thus avoiding six obstacles in the course, which had position coordinates of (60 m, 50 m), (200 m, 150 m), (400 m, 300 m), (500 m, 400 m), (600 m, 400 m), and (720 m, 570 m).In addition, the obstacle radius corresponded to 5.0 m, 10.0 m, 30.0 m, 50.0 m, 30.0 m, and 20.0 m, respectively.The results of the comparison between the initial path planning utilizing the improved artificial potential field method and the second path planning under the consideration of the motion performance of the USV are shown in Figure 19a        As can be seen from Figures 19a and 20, using the APF method, the USV successfully completed the obstacle avoidance task of the first three obstacles, and the trajectory tracking deviation was constant at approximately 4 m.However, when sailing near the fourth and fifth obstacles, due to the limitation of the motion performance of the vehicle, the planned path exceeded its minimum turning radius, which resulted in a collision with the fifth obstacle.Moreover, the trajectory tracking deviation was approximately 78 m, and the obstacle avoidance task was not completed.As can be seen from Figures 19a and 20, using the APF method, the USV successfully completed the obstacle avoidance task of the first three obstacles, and the trajectory tracking deviation was constant at approximately 4 m.However, when sailing near the fourth and fifth obstacles, due to the limitation of the motion performance of the vehicle, the planned path exceeded its minimum turning radius, which resulted in a collision with the fifth obstacle.Moreover, the trajectory tracking deviation was approximately 78 m, and the obstacle avoidance task was not completed.As can be seen from Figures 19a and 20, using the APF method, the USV successfully completed the obstacle avoidance task of the first three obstacles, and the trajectory tracking deviation was constant at approximately 4 m.However, when sailing near the fourth and fifth obstacles, due to the limitation of the motion performance of the vehicle, the planned path exceeded its minimum turning radius, which resulted in a collision with the fifth obstacle.Moreover, the trajectory tracking deviation was approximately 78 m, and the obstacle avoidance task was not completed.
Figures 19b and 21 reveal that on the basis of the SPP method, the USV successfully completed the obstacle avoidance task of all six obstacles, and the track tracking deviation was constant at approximately 4.0 m.The optimized path of the second path planning method can therefore effectively ensure the completion efficiency of the obstacle avoidance task and improve the precision of the trajectory tracking control.

Discussion
(1) By the analysis of the path planning theory and the USV control model, the traditional path planning method was found to lead to the 'planning failure' phenomenon when applied to the trajectory tracking field of the USV path planning.(2) In this study, an integral nonlinear least squares method was developed.In the case of limited test data, a nonlinear motion model of USV was rapidly identified by merely conducting a type of maneuvering experiment, which can effectively predict the motion performance indexes, such as the rotatory curvature of the vehicle.(3) The SPP method was presented under the consideration of the USV motion performance, which reduces the influence of the motion performance of the vehicle during the trajectory tracking and helps lower the risk of failing to complete the obstacle avoidance task using the traditional path planning method.The proposed SPP method can effectively prevent the issue of an untraceable USV and improve the USV tracking accuracy.

Conclusions
This paper presented an integral nonlinear least squares method to rapidly and effectively obtain the motion constraint of USVs, and an SPP method was proposed under the consideration of the USV motion performance.
In future work, the path optimization method in a bounded environment, especially an uneven boundary, should be considered.In addition, a field test of the method should be carried out.
presents the layout of the 'Dolphin 1' in the Songhua River, and the test data are shown in Figure 3.The 'Dolphin 1' is a mini unmanned catamaran with a single floating body length of 2.0 m, diameter of 0.25 m, and a two floating body spacing of 1.1 m.It is propelled by two propellers with a rear-mounted rudder plate, and the maximum speed is 1.2 m/s.
presents the layout of the 'Dolphin 1' in the Songhua River, and the test data are shown in Figure 3.The 'Dolphin 1' is a mini unmanned catamaran with a single floating body length of 2.0 m, diameter of 0.25 m, and a two floating body spacing of 1.1 m.It is propelled by two propellers with a rear-mounted rudder plate, and the maximum speed is 1.2 m/s.

Figure 2 .
Figure 2. The 'Dolphin 1' developed by Harbin Engineering University.At 10.0 volts, the 'Dolphin 1' carried out the zig zag test control experiment at a speed of 1.08 m/s.The variation curve of the heading and rudder angle with respect to time is shown in Figure 3.

Figure 2
presents the layout of the 'Dolphin 1' in the Songhua River, and the test data are shown in Figure 3.The 'Dolphin 1' is a mini unmanned catamaran with a single floating body length of 2.0 m, diameter of 0.25 m, and a two floating body spacing of 1.1 m.It is propelled by two propellers with a rear-mounted rudder plate, and the maximum speed is 1.2 m/s.

Figure 4 .
Figure 4. K and T from the zig zag test.

Figure 4 .
Figure 4. K and T from the zig zag test.

2. 3 .
Identification of Maneuverability and Analysis of Motion Ability 2.3.1.Identification of USV Maneuverability by Field Test Data

Figure 5 .
Figure 5. (a) Description of heading angle fitting curve; (b) the distribution of heading angular velocity; (c) the first part of the heading angular velocity's fitting curve; and (d) the second part of the heading angular velocity's fitting curve. .

Figure 5 .
Figure 5. (a) Description of heading angle fitting curve; (b) the distribution of heading angular velocity; (c) the first part of the heading angular velocity's fitting curve; and (d) the second part of the heading angular velocity's fitting curve.

Figure 6 .
Figure 6.Comparison between the actual and predicted Z-type manipulation.

Figure 7 .
Figure 7. Description of the Z-type error curve.

Figure 8 .
Figure 8.Comparison between the actual and predicted speed.

Figure 9 .
Figure 9. Description of the speed error curve.

Figure 6 . 20 Figure 6 .
Figure 6.Comparison between the actual and predicted Z-type manipulation.

Figure 7 .
Figure 7. Description of the Z-type error curve.

Figure 8 .
Figure 8.Comparison between the actual and predicted speed.

Figure 9 .
Figure 9. Description of the speed error curve.

Figure 7 .
Figure 7. Description of the Z-type error curve.
simulation model was established in MATLAB.Based on the solved values of  ,, KT , the predicted heading angle obtained by the simulation under the same rudder angle input was compared with the actual test data.The results are presented in Figures 6 and 7.

Figure 6 .
Figure 6.Comparison between the actual and predicted Z-type manipulation.

Figure 7 .
Figure 7. Description of the Z-type error curve.

Figure 8 .
Figure 8.Comparison between the actual and predicted speed.Figure 8. Comparison between the actual and predicted speed.

Figure 8 . 20 Figure 9 .
Figure 8.Comparison between the actual and predicted speed.Figure 8. Comparison between the actual and predicted speed.J. Mar.Sci.Eng.2019, 7, x FOR PEER REVIEW 9 of 20

Figure 9 .
Figure 9. Description of the speed error curve.

Figure 10 .
Figure 10.Description of the turning circle simulation test.

Figure 10 .
Figure 10.Description of the turning circle simulation test.

Figure 10 .
Figure 10.Description of the turning circle simulation test.

targetFigure 12 .
Figure 12.The schematic diagram of the second path planning.

Figure 12 .
Figure 12.The schematic diagram of the second path planning.

Figure 13 .
Figure 13.The theoretical block diagram of SPP.

Figure 13 .
Figure 13.The theoretical block diagram of SPP.

Figure 14 .
Figure 14.(a) Description of the path planning comparison diagram; and (b) local enlargement of the first obstacle area for path planning.On the Simulink simulation platform, a USV motion model was developed.The iterative step length and control cycle were 0.15 s.The parameters of the course PID controller were set as = = = 1.0, 0.001, 1.0 p i d , the parameters of the speed controller were = = = 2.0, 0.001, 0.001 p i d

Figure 14 .
Figure 14.(a) Description of the path planning comparison diagram; and (b) local enlargement of the first obstacle area for path planning.

Figure 15 .
Figure 15.(a) Description of USV trajectory by APF; (b) local enlargement of the second obstacle area for the USV trajectory by APF; (c) description of the USV trajectory by SPP; and (d) local enlargement of the second obstacle area for the USV trajectory by SPP.

p t 10 .Figure 16 .
Figure 16.(a) Description of the USV trajectory by APF; (b) local enlargement of the second obstacle area for the USV trajectory by APF; (c) description of the USV trajectory by SPP; and (d) local enlargement of the second obstacle area for the USV trajectory by SPP.

Figure 16 .
Figure 16.(a) Description of the USV trajectory by APF; (b) local enlargement of the second obstacle area for the USV trajectory by APF; (c) description of the USV trajectory by SPP; and (d) local enlargement of the second obstacle area for the USV trajectory by SPP.

Figure 17 .
Figure 17.Description of the USV along tracking error by APF.

Figure 17 .
Figure 17.Description of the USV along tracking error by APF.

Figure 18 .
Figure 18.Description of the USV along tracking error by SPP.
,b.The trajectory tracking deviations for the two methods are shown in Figures 20 and 21 .

Figure 18 .
Figure 18.Description of the USV along tracking error by SPP.

4. 3 .Figure 19 .
Figure 19.(a) Description of the USV trajectory by APF; (b) local enlargement for the USV trajectory by APF; (c) description of the USV trajectory by SPP; and (d) local enlargement for the USV trajectory by SPP.

Figure 19 .
Figure 19.(a) Description of the USV trajectory by APF; (b) local enlargement for the USV trajectory by APF; (c) description of the USV trajectory by SPP; and (d) local enlargement for the USV trajectory by SPP.

Figure 19 .
Figure 19.(a) Description of the USV trajectory by APF; (b) local enlargement for the USV trajectory by APF; (c) description of the USV trajectory by SPP; and (d) local enlargement for the USV trajectory by SPP.

Figure 20 .
Figure 20.Description of the USV along tracking error by APF.

Figure 21 .
Figure 21.Description of the USV along tracking error by SPP.

Figure 20 .Figure 19 .Figure
Figure 20.Description of the USV along tracking error by APF.

Figure 21 .
Figure 21.Description of the USV along tracking error by SPP.

Figure 21 .
Figure 21.Description of the USV along tracking error by SPP.