A path tracking control method for unmanned ship

By using dense discrete point sets and MPC controllers in unmanned ship path tracking control, combined with the ALOS method, the problem of low accuracy in curve path tracking is solved, fast and accurate tracking of any path is achieved, and the ship maneuvering characteristics are satisfied. constraint.

CN114610023BActive Publication Date: 2024-09-20WUHAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210155077.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-21
Publication Date
2024-09-20
Estimated Expiration
2042-02-21

AI Technical Summary

Technical Problem

Existing unmanned ship path tracking control methods are difficult to deal with constraint issues, especially when tracking curved paths, with low accuracy, and traditional LOS guidance has low tracking accuracy for curved paths.

Method used

An unmanned ship path tracking control method is used to obtain a dense discrete point set and cut out points that violate the laws of ship motion. Combined with the MPC controller and the ALOS method, the calculation satisfies the ship dynamics model constraints, rudder angle constraints, and rudder angle increment. The optimal rudder angle sequence with quantitative constraints enables tracking of any path.

Benefits of technology

It achieves fast and accurate tracking of any path, avoids the problem of non-unique understanding, meets the constraints of ship maneuvering characteristics, and improves the tracking accuracy of curved paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114610023B
    Figure CN114610023B
Patent Text Reader

Abstract

The present invention discloses an unmanned ship path tracking control method, comprising the following steps: first, a given path to be tracked is discretized into a site set, and the set is clipped; second, a new guidance algorithm is used to determine the reference point set tracked in the next time window according to the model prediction window size and the current unmanned ship longitudinal speed; then, the reference point is used as the reference quantity of the next prediction window of the model prediction control, and the optimization objective function is constructed to calculate the optimal rudder angle sequence that satisfies the ship dynamics model constraint, the rudder angle constraint, and the rudder angle increment constraint; finally, the first value of the calculated rudder angle sequence is applied to the ship motion system to realize path tracking. The present invention can realize the tracking of any path by tracking the discrete site set, and can ensure the smooth change of the rudder angle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of unmanned ship path tracking, and in particular to an unmanned ship path tracking control method. Background Art

[0002] The development and intelligentization of unmanned watercraft is accelerating. Compared to ordinary ships, unmanned vessels are highly automated and intelligent, representing a key research direction for intelligent ships and water transportation, with enormous potential for future development in both military and civilian fields.

[0003] Path tracking is one of the core tasks of unmanned vessels. However, due to the limitations of ship maneuverability, existing control methods, such as backstepping, sliding mode control, and neural network control, are unable to directly address the constraints.

[0004] Model predictive control (MPC) can not only handle control problems with constraints, but also has the characteristics of diversity of prediction models, time-varying nature of rolling optimization, and robustness of feedback correction, which enables it to have better control performance for the motion of unmanned ships with large inertia and strong time lag under environments such as uncertainty and interference.

[0005] However, MPC needs to construct an optimization problem based on the reference points within the prediction window at each moment and solve it online. In related technologies, LOS guidance is combined with MPC to continuously obtain new reference points as MPC rolling optimization progresses. However, traditional LOS guidance is a linear guidance algorithm with low tracking accuracy for curved paths. Summary of the Invention

[0006] In view of the deficiencies of the prior art, the object of the present invention is to provide a path tracking control method for an unmanned ship, which can track any type of path and meet the constraints of the ship's maneuvering characteristics.

[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0008] A path tracking control method for an unmanned ship, comprising:

[0009] Step 1: Obtain a first dense discrete point set in the path that the unmanned vessel needs to track, where the first dense discrete point set includes multiple points;

[0010] Step 2: trimming the first dense discrete site set, deleting the leading sites that violate the ship's motion law in the first dense discrete site set, and obtaining a second dense discrete site set;

[0011] Step 3: Combined with the MPC controller, the ALOS method is used to determine the reference point set to be tracked in the next time window according to the prediction window size of the model predictive control and the current longitudinal speed of the unmanned ship;

[0012] Step 4: Calculate the optimal rudder angle sequence that satisfies the ship dynamics model constraints, rudder angle constraints, and rudder angle increment constraints based on the reference point set;

[0013] Step 5: Select a rudder angle control value from the optimal rudder angle sequence and apply it to the ship motion system, so that the unmanned ship generates a motion response;

[0014] Step 6: Determine whether the unmanned boat has reached the end of the path. If so, the tracking ends. Otherwise, return to step 3 and continue tracking.

[0015] Furthermore, in step 1, the first dense discrete site set is obtained by sampling the path in the path tracking problem, and the first dense discrete site set is denoted as D={P i (x i ,y i ),i=1,2,3…,N}, with i as the index, P N is the last site in the set of densely discrete sites.

[0016] Furthermore, the step 2 includes:

[0017] Step 2.1: In the NED coordinate system, set the current ship position to O s , the initial position coordinates are (x0, y0), and the length is L PP , set the change threshold angle Ship length multiple n′, if the initial heading of the ship is Ψ, then the tangential angle search range is

[0018] For the initial heading Ψ, if -45°<Ψ≤45°, the easting coordinate search range is [-∞,∞], and the northing coordinate search range is [y0,y0+n′L PP cosΨ];

[0019] If -135°<Ψ≤-45°, the easting coordinate search range is [x0+n′L PP sinΨ,x0], the north coordinate search range is [-∞,∞];

[0020] If -180°<Ψ≤-135° or 135°<Ψ≤180°, the search range for easting coordinates is [-∞,∞], and the search range for northing coordinates is [y0+n′L PP cosΨ,y0];

[0021] If 45°<Ψ≤135°, the easting coordinate search range is [x0,x0+n′LPP sinΨ], the north coordinate search range is [-∞,∞];

[0022] Determine the easting coordinate search range and the northing coordinate search range based on the heading Ψ, and start searching from the first element in the first dense discrete site set until a site S is found, where the tangential angle, easting coordinate, and northing coordinate at the site S satisfy the above ranges. Stop the search, and delete the sites before the site S from the first dense discrete site set to obtain the pruned second dense discrete site D′.

[0023] Step 2.2: Set the distance threshold d, cut off the search point index M, create the index identifier variable H, H∈N, and perform a cyclic search on the second dense discrete site D′ to find the site whose straight line distance from the current ship's bow extension line is less than d, until P M , when there is a point (x i ,y i ) to the straight line where the current ship's bow extension line is located is less than d, then jump out of the loop and assign the site index i to the variable H. If it is not until P M If no point that meets the above requirements can be found, the index M is assigned to the variable H. At this point, the variable H has been initialized, which is called the initialized P. H (x H ,y H ) is the entry point of the path tracking task.

[0024] Furthermore, Take 45~70°, and n′ take 2~6.

[0025] Furthermore, the step 3 includes:

[0026] Step 3.1: Assume that the prediction window size of the model predictive control is N P , the initial velocity at the beginning of tracking is u0, the current longitudinal velocity is u, and the loop variable j is defined, and the initial value of j is 0;

[0027] Step 3.2, Make an enveloping circle with radius;

[0028] Step 3.3, let the current time be k, from P H Start searching for points in the second dense discrete site set D′ in sequence until the first site outside the envelope is found. This site is considered to be the reference point at the k+jth moment, that is, the coordinate position expected to be reached at the k+jth moment in path tracking. If and only if j=0, this site is considered to be the reference point P at the current moment. LOS , assign the site index to H, making the site a new P H ;

[0029] Step 3.4: Set j = j + 1 and return to step 3.2 until j = N is obtained. P , complete the search and find the next moment in the prediction window to the Nth moment in the future P The coordinate position you expect to arrive at at a certain moment.

[0030] Furthermore, in step 4, the optimal rudder angle sequence is such that the sum of the squares of the distances between the coordinate position of the unmanned ship at each moment within the prediction window and each reference point, the heading angle difference, and the rudder angle increment is minimized.

[0031] Furthermore, the current moment is denoted as k, and the reference point obtained in step 3 is regarded as the reference quantity in the model predictive control, that is, the desired point to be reached. The optimization objective function is expressed as the weighted sum of the square error of the heading angle, the square error of the position, and the change of the rudder angle at adjacent moments at predicted future moments:

[0032]

[0033] Among them, w1, w2, w3 are the weight coefficients of each objective function term, (x k+j ref ,y k+j ref ) and Ψ k+j ref are the coordinates of the future j-th reference point and its reference tangent angle obtained in the previous step, and δ is the rudder angle.

[0034] Furthermore, the nonlinear Abkowitz model is used in the model predictive control. The optimization calculation formula of the nonlinear model predictive control that meets the ship dynamics model constraints, rudder angle constraints, and rudder angle increment constraints is:

[0035]

[0036]

[0037] Among them, {u, v, r, x, y, Ψ} are the longitudinal velocity, lateral velocity, angular velocity, northing coordinate, easting coordinate, and heading angle of the unmanned ship, Δδ is the rudder angle increment between two adjacent moments, and F1, F2, and F3 are the functions of the motion variables {u, v, r, δ} in the Abkowitz model. is the hydrodynamic derivative of acceleration.

[0038] Furthermore, w1, w2 and w3 are set to 50, 1 and 1000 respectively.

[0039] Furthermore, in step 6, it is determined whether the distance between the current ship position and the set end point is less than a threshold value ζ. If it is less than ζ, it indicates that the tracking is ended. Otherwise, it returns to step 3 to continue the tracking process.

[0040] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0041] The unmanned ship path tracking control method described in the present invention does not require a functional expression of the path. By tracking a set of discrete sites, it can quickly and uniquely select reference points to achieve guidance for any path, avoiding the situation where the solution is not unique during the guidance process. In addition, the ship's maneuvering characteristic constraints are taken into account during the tracking process. The obtained reference points are not used to calculate the lateral error, but are used as dynamically changing position reference quantities in the objective function to calculate the position error and heading angle error between the prediction model and each reference point, and solve the optimal rudder angle problem that meets the ship's dynamic model constraints, rudder angle constraints, and rudder angle increment constraints, so that the ship can quickly and more accurately track the desired path. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is an architecture diagram of an unmanned vessel path tracking control method according to the present invention.

[0043] Figure 2 This is a schematic diagram of step 3 of the present invention, i.e., the guidance algorithm.

[0044] Figure 3 These are the simulation experiment results of the path tracking control method for the first working condition of an embodiment of the present invention.

[0045] Figure 4 These are the simulation experiment results of the path tracking control method for the second working condition of an embodiment of the present invention.

[0046] Figure 5 This is a time history diagram of the optimal rudder angle applied by NMPC in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention.

[0048] A path tracking control method for an unmanned ship, such as Figure 1 As shown, the following steps are included:

[0049] Step 1: Obtain a first dense discrete point set in the path that the unmanned vessel needs to track, where the first dense discrete point set includes multiple points;

[0050] Step 2: trimming the first dense discrete site set, deleting the leading sites that violate the ship's motion law in the first dense discrete site set, and obtaining a second dense discrete site set;

[0051] Step 3: Combined with the MPC controller, the ALOS method is used to determine the reference point set to be tracked in the next time window according to the prediction window size of the model predictive control and the current longitudinal speed of the unmanned ship;

[0052] Step 4: Calculate the optimal rudder angle sequence that satisfies the ship dynamics model constraints, rudder angle constraints, and rudder angle increment constraints based on the reference point set;

[0053] Step 5: Apply the first value of the calculated optimal rudder angle sequence to the ship motion system, and the unmanned ship generates a motion response;

[0054] Step 6: Determine whether the unmanned boat has reached the end of the path. If so, the tracking ends. Otherwise, return to step 3 and continue tracking.

[0055] The ALOS method referred to in the present invention refers to a new guidance method.

[0056] Traditional LOS guidance is a linear guidance algorithm with low tracking accuracy for curved paths. The reference point for each step is obtained by solving a system of equations. Therefore, it has the problems of slow calculation speed, requiring a known path function expression, and non-unique equation solutions when guiding paths with small circles.

[0057] The ALOS method of the present invention does not require a functional expression of the path. By searching a discrete site sequence, it can quickly and uniquely select reference points to achieve guidance on any path. The set of reference points tracked in the next time window is determined based on the prediction window size of the model predictive control and the current longitudinal speed of the unmanned ship. Multiple reference points corresponding to multiple current and future moments are searched at each prediction time step to form a local reference trajectory. The obtained reference points are not used to calculate the lateral error, but are used as the dynamically changing position reference and heading reference in the objective function. The position error and heading angle error between the prediction model and each reference point are calculated to solve the optimal rudder angle problem that meets the ship dynamics model constraints, rudder angle constraints, and rudder angle increment constraints.

[0058] The present invention converts the unmanned ship path tracking into multi-segment trajectory tracking with reference quantity changing over time, so that the ship can track the desired path quickly and more accurately.

[0059] By cyclically searching a set of discrete locations, multiple reference points are obtained within the next time window and an objective function is constructed. The reference quantity in this objective function is time-varying, converting path tracking into trajectory tracking within each time window. This method achieves better tracking results than the MPC controller combined with the traditional LOS method. During the search process, the line of sight distance varies proportionally with the longitudinal speed of the unmanned vessel. The method is also applicable to scenarios with large path corners and curvature, and has good results.

[0060] Specifically, in step 1, the first dense discrete site set is obtained by sampling the path in the path tracking problem, and the first dense discrete site set is denoted as D = {P i (x i ,y i ),i=1,2,3…,N}, with i as the index, P N is the last site in the set of densely discrete sites.

[0061] To avoid tracking a point that violates the ship's motion law at the beginning of the tracking task and to initialize the index of the current search point of the guidance algorithm, it is necessary to crop the first dense discrete point set D. Step 2 includes:

[0062] Step 2.1: In the NED coordinate system, set the current ship position to O s , the initial position coordinates are (x0, y0), and the length is L PP , set the change threshold angle Ship length multiple n′, if the initial heading of the ship is Ψ, then the tangential angle search range is

[0063] For the initial heading Ψ, if -45°<Ψ≤45°, the easting coordinate search range is [-∞,∞], and the northing coordinate search range is [y0,y0+n′L PP cosΨ];

[0064] If -135°<Ψ≤-45°, the easting coordinate search range is [x0+n′L PP sinΨ,x0], the north coordinate search range is [-∞,∞];

[0065] If -180°<ψ≤-135° or 135°<Ψ≤180°, the search range for easting coordinates is [-∞,∞], and the search range for northing coordinates is [y0+n′L PP cosΨ,y0];

[0066] If 45°<Ψ≤135°, the easting coordinate search range is [x0,x0+n′L PP sinψ], the north coordinate search range is [-∞,∞];

[0067] The second dense discrete site set is denoted as D′. The easting coordinate search range and the northing coordinate search range are determined according to the heading Ψ. The search starts from the first element (x1, y1) in the first dense discrete site set D until a site S is found, where the tangential angle, easting coordinate, and northing coordinate at the site S satisfy the above ranges. The search is stopped, and the sites before the site S are deleted from the first dense discrete site set D to obtain the pruned second dense discrete site D′.

[0068] Step 2.2: Set the distance threshold d, cut off the search point index M, create the index identifier variable H, H∈N, and perform a cyclic search on the second dense discrete site D′ to find the site whose straight line distance from the current ship's bow extension line is less than d, until P M , when there is a point (x i ,y i ) to the straight line where the current ship's bow extension line is located is less than d, then jump out of the loop and assign the site index i to the variable H. If it is not until P M If no point that meets the above requirements can be found, the index M is assigned to the variable H. At this point, the variable H has been initialized, which is called the initialized P. H (x H ,y H ) is the approach waypoint of the path tracking task.

[0069] Among them, the straight line where the current ship's heading extension line is located is set as O s Ψ.

[0070] In step 2, through a large number of simulation experiments, it is found that the threshold angle The angle is preferably 45 to 70° and the multiple n′ of the ship length is preferably 2 to 6 times. This can effectively avoid searching for reference points that violate the laws of ship motion when starting tracking, and also avoid cutting out too many sites.

[0071] Specifically, if Figure 2 As shown, step 3 includes:

[0072] Step 3.1: Assume that the prediction window size of the model predictive control is N P , the initial velocity at the beginning of tracking is u0, the current longitudinal velocity is u, and the loop variable j is defined, and the initial value of j is 0;

[0073] Step 3.2, Make an enveloping circle with radius;

[0074] Step 3.3, let the current time be k, from P H Start searching for points in the second dense discrete site set D′ in sequence until the first site outside the circle is found. This site is considered to be the reference point at the k+jth moment, that is, the coordinate position expected to be reached at the k+jth moment in path tracking. If and only if j=0, this site is considered to be the reference point P at the current moment LOS , assign the site index to H, making the site a new P H ;

[0075] Step 3.4: Set j = j + 1 and return to step 3.2 until j = N is obtained. P, complete the search and find the next moment in the prediction window to the Nth moment in the future P The coordinate position you expect to arrive at at a certain moment.

[0076] In step 4, the optimal rudder angle sequence is such that the sum of the squares of the distances between the coordinate position of the unmanned ship at each moment in the prediction window and each reference point, the heading angle difference, and the rudder angle increment is minimized.

[0077] In step 4, the current moment is recorded as k, and the reference point obtained in step 3 is regarded as the reference quantity in the model predictive control, that is, the expected point to be reached, and the optimization objective function is expressed as the predicted future N P The weighted sum of the square error of heading angle, square error of position and the change of rudder angle at adjacent moments:

[0078]

[0079] Among them, {w1,w2,w3} are the weight coefficients of each objective function term, (x k+j ref ,y k+j ref ) and Ψ k+j ref are the coordinates of the future j-th reference point and its reference tangent angle obtained in the previous step, and δ is the rudder angle;

[0080] The optimal rudder angle sequence that satisfies the ship dynamics model constraints, rudder angle constraints, and rudder angle increment constraints is calculated so that the sum of the squares of the distances between the coordinate position of the unmanned ship at each moment in the prediction window and each reference point, the heading angle difference, and the rudder angle increment is minimized.

[0081] Since the linearized model has low accuracy and cannot accurately predict the ship motion under intense maneuvering motion, this embodiment adopts the Abkowitz nonlinear model, and the three-degree-of-freedom maneuvering motion equation of the unmanned ship is described as:

[0082]

[0083] Where, m is the mass of the ship; I z is the moment of inertia of the hull around the Z axis; x G is the longitudinal coordinate of the ship's center of gravity;

[0084] u、v、r、 and They are longitudinal velocity component, lateral velocity component, heading velocity, acceleration and angular acceleration;

[0085] are all hydrodynamic derivatives; Δu is the change in initial longitudinal velocity;

[0086] Move all acceleration terms in the above equation to the left and write it in the following form:

[0087]

[0088] Among them, F1(u,v,r,δ), F2(u,v,r,δ), and F3(u,v,r,δ) are functions of the motion variables {u,v,r,δ} in the Abkowitz model:

[0089]

[0090] Discretize the acceleration and get the differential form equation:

[0091]

[0092] For the current transverse coordinate, longitudinal coordinate, and heading angle {x, y, Ψ} of the ship at a certain moment, we have:

[0093]

[0094] Construct a nonlinear optimization problem and add the rudder angle constraint and rudder angle increment constraint, then we have:

[0095]

[0096]

[0097] Among them, k represents the current moment, Δδ is the rudder angle increment between two adjacent moments, (x k+j ref ,y k+j ref ) and Ψ k+j ref are the coordinates of the future j-th reference point and its reference tangent angle obtained in step 3, respectively. {w1, w2, w3} are the weight coefficients of each objective function term. In this embodiment, {w1, w2, w3} are 50, 1, and 1000 respectively. Solving the nonlinear optimization problem can obtain N P The rudder angle control quantities correspond to the time from the current moment to the Nth moment in the future. P -Optimal rudder angle at a given moment.

[0098] The above step 4 obtains multiple reference points in the next time window by cyclically searching the discrete site set and constructing an objective function. The reference quantity in the objective function is time-varying, which has a better tracking effect than the traditional LOS method. During the search process, the line of sight distance changes proportionally with the longitudinal speed of the unmanned ship, making the present invention also applicable to scenes with large path corners and curvatures, and has better results.

[0099] Specifically, the traditional LOS method uses the envelope circle method or the projection point preview method to calculate reference points. LOS guidance algorithms using the envelope circle method use a system of simultaneous equations, taking the intersection of a line and an envelope circle as the reference point. This is generally only applicable to diameter paths, with only one reference point per time step. The line of sight distance remains constant, and the target point is switched using an acceptance circle. The ALOS method proposed in this invention, on the other hand, uses the envelope circle method to calculate reference points, sequentially searching for discrete points and selecting points outside the envelope circle. This method is applicable not only to diameter paths but also to curved paths. Furthermore, the number of reference points per time step is N, and the line of sight distance varies with longitudinal velocity, eliminating the need for a target point.

[0100] In step 5, the first value in the calculated optimal rudder angle sequence is applied to the ship motion system, that is, from the current moment to the Nth moment in the future P The first value among the optimal rudder angles at -1 moments is selected and applied to the ship motion system. The unmanned ship generates a motion response, and k increases by 1.

[0101] In step 6, it is determined whether the distance between the current ship position and the set end point is less than a threshold value ζ, which should be related to the ship length. If it is less than ζ, it means that the tracking is ended, otherwise it returns to step 3 and continues the tracking process.

[0102] In steps 5 and 6, the N in step 4 P Of the rudder angle control variables, only the first one is applied to the ship and generates a motion response (i.e., the control window of the model predictive control is set to 1). k is incremented by 1. Determine whether the distance between the current ship position and the set endpoint is less than a threshold ζ. Because the ship's center of mass is considered the current position when modeling ship maneuvering motion, for safety reasons, this threshold should be related to the ship's length. If it is less than ζ, tracking ends. Otherwise, return to step 3 and continue the tracking process.

[0103] The present invention takes a super-large oil tanker KVLCC2 as an example. The specific parameters of the ship are shown in Table 2. The path to be tracked is a discrete site set obtained by the 10° / 10° Z-shaped test simulation of the ship. The starting point coordinates of the first and second working conditions are set to (0, 0) and (-200, -200), respectively. The end point is set to the last site in the set, that is, the coordinate point (203.72, 7969.23). The initial headings are all 0, and the initial velocities {u0, v0, r0} are all {7.98 m / s, 0, 0}.

[0104] Table 2 Main parameters of KVLCC2 ship type

[0105]

[0106] In this embodiment, z is 0.2 times the ship length, i.e. 64 meters.

[0107] For the embodiment of the present invention, the threshold angle is changed Take 60°, the length multiple n′ is 5 times, the distance threshold d is set to 30 meters, the cut-off search point index M is set to 200, and the coordinates of the two tracking conditions cut-in points determined by step 2 are (0,0) and (-184.41, 1259.88), respectively. This point is the first P in the second dense discrete point set D′ after cutting. H The point is also regarded as the expected position that the unmanned ship should arrive at at the current departure time.

[0108] In step 3, the sight distance R LOS It is n times of the ship length, preferably n is 1 to 3, and in this embodiment, n is 1; N P is the prediction window size of the model predictive control, that is, the prediction window size of the future N at each time step P Considering the strong time lag, large inertia and computational complexity of large ship maneuvering, N P Generally, 8 to 20 are appropriate. P The value is 10, that is, each time step predicts the state of the unmanned ship for the next 10 moments. Due to the large inertia and strong time lag of the ship, N P The value should not be too small.

[0109] In this embodiment, Δt is set to 10s, that is, the above nonlinear optimization problem is solved online every 10s, and the interval between each prediction time is also 10s; the prediction window N P is 10, the control window is 1, the maximum rudder angle constraint is ±35°, and the rudder angle increment limit Δδ=[-1° / s,1° / s]. Other set parameters have been explained in the above steps.

[0110] like Figure 3 and Figure 4 In the first and second working conditions, starting from the first and second working conditions with the starting coordinates at (0, 0) and (-200, -200), respectively, the method of the present invention (the legend name is ALOS-NMPC, long dashed line) is compared with the NMPC method combined with the traditional LOS method (the legend name is LOS-NMPC, dotted line). The deviation between the method of the present invention and the original path is smaller during path tracking, especially at corners and places with large curvature, and the performance is obviously better.

[0111] Figure 5The time history curve of the first value of the optimal rudder angle sequence obtained by the method of the present invention at each time step, that is, the time history of the rudder angle input during each moment of the control process, is shown. The solid line and dashed line are the rudder angle time history curves for two operating conditions with starting coordinates at (0, 0) and (-200, -200), respectively. It can be seen that due to the consideration of the maximum rudder angle constraint of -35° ≤ δ ≤ +35° and the rudder angle increment constraint of -1° / s ≤ Δδ ≤ 1° / s, the ship's rudder angle remains within [-35°, +35°] during the simulated navigation, and the rudder angle changes slowly, meeting the requirements of actual navigation.

[0112] In summary, the present invention proposes a path tracking control method for an unmanned vessel. In combination with an MPC controller, a new guidance method, namely the ALOS method, is used. In the ALOS method, the line of sight distance in the guidance link changes proportionally with the longitudinal velocity of the vessel at the current moment. No functional expression for the path is required. By searching a discrete site sequence, reference points can be quickly and uniquely selected to achieve guidance along any path. The set of reference points tracked within the next time window is determined based on the prediction window size of the model predictive control and the current longitudinal velocity of the unmanned vessel. The resulting reference points are not used to calculate lateral errors, but rather serve as dynamically changing position references in the objective function to solve the optimal rudder angle problem that satisfies the constraints of the vessel's dynamics model, rudder angle, and rudder angle increment, allowing the vessel to quickly and more accurately track the desired path.

[0113] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.

Claims

1. A path tracking control method for an unmanned ship, characterized in that: include: Step 1: obtaining a first dense discrete site set in a path that the unmanned ship needs to track, wherein the first dense discrete site set includes a plurality of sites; Step 2: trimming the first dense discrete site set, deleting the leading sites that violate the ship motion law in the first dense discrete site set, and obtaining a second dense discrete site set; Step 3: Combined with the MPC controller, the ALOS method is used to determine the reference point set to be tracked in the next time window according to the prediction window size of the model predictive control and the current longitudinal speed of the unmanned ship; Step 4: Calculate the optimal rudder angle sequence that satisfies the ship dynamics model constraint, rudder angle constraint, and rudder angle increment constraint according to the reference point set; Step 5: Select a rudder angle control value from the optimal rudder angle sequence and apply it to the ship motion system, so that the unmanned ship generates a motion response; Step 6: Determine whether the unmanned boat has reached the end of the path. If so, the tracking ends. Otherwise, return to step 3 and continue tracking.

2. The unmanned ship path tracking control method according to claim 1, characterized in that: In step 1, the first dense discrete site set is obtained by sampling the path in the path tracking problem, and the first dense discrete site set is denoted as D = {P i (x i ,y i ),i=1,2,3…,N}, with i as the index, P N is the last site in the set of densely discrete sites.

3. The unmanned ship path tracking control method according to claim 1, characterized in that: The step 2 comprises: Step 2.1: In the NED coordinate system, set the current ship position to O s , the initial position coordinates are (x0, y0), and the length is L PP , set the change threshold angle Ship length multiple n', if the initial heading of the ship is Ψ, then the tangent angle search range is For the initial heading Ψ, if -45°<Ψ≤45°, the search range for the easting coordinate is [-∞,∞], and the search range for the northing coordinate is [y0,y0+n′L PP cosΨ]; If -135°<Ψ≤-45°, the easting coordinate search range is [x0+n′L PP sinΨ,x0], the north coordinate search range is [-∞,∞]; If -180°<Ψ≤-135° or 135°<Ψ≤180°, the search range for easting coordinates is [-∞,∞], and the search range for northing coordinates is [y0+n′L PP cosΨ,y0]; If 45°<Ψ≤135°, the easting coordinate search range is [x0,x0+n′L PP sinΨ], the north coordinate search range is [-∞,∞]; Determine the easting coordinate search range and the northing coordinate search range according to the heading Ψ, start searching from the first element in the first dense discrete site set in sequence, until a site S is found, so that the tangent angle, easting coordinate and northing coordinate at the site S respectively meet the above ranges, stop searching, and delete the site before the site S from the first dense discrete site set, and obtain the pruned second dense discrete site D′; Step 2.2, set the distance threshold d, cut off the search point index M, create the index identification variable H, H∈N, and perform a cyclic search for the second dense discrete site D′ to find the site whose straight line distance from the current ship's bow extension line is less than d, until P M , when there is a point (x i ,y i ) to the straight line where the current ship's bow extension line is located is less than d, then the loop is jumped out and the position index i is assigned to the variable H. If until P M If no point that satisfies the above requirements can be found, the index M is assigned to the variable H. At this point, the variable H has been initialized, which is called the initialized P. H (x H ,y H ) is the entry point of the path tracking task.

4. The unmanned ship path tracking control method according to claim 3, characterized in that: Take 45~70°, and n′ take 2~6.

5. The unmanned ship path tracking control method according to claim 1, characterized in that: The step 3 comprises: Step 3.1: Assume the prediction window size of model predictive control is N P , the initial speed at the beginning of tracking is u0, the current longitudinal speed is u, and the loop variable j is defined, and the initial value of j is 0; Step 3.2: Make an enveloping circle with radius; Step 3.3, let the current time be k, from P H Start searching for points in the second dense discrete site set in sequence until the first site outside the envelope circle is found. This site is considered to be the reference point at the k+jth moment, that is, the coordinate position expected to be reached at the k+jth moment in path tracking. If and only if j=0, this site is considered to be the reference point P at the current moment. LOS , assign the site index to H, making the site the new P H ; Step 3.4: Set j = j + 1, and return to step 3.2 until j = N is obtained. P , complete the search to find the next moment in the prediction window to the Nth moment in the future P The coordinate position you expect to arrive at at a certain moment.

6. The unmanned ship path tracking control method according to claim 1, characterized in that: In step 4, the optimal rudder angle sequence makes the sum of the squares of the coordinate position of the unmanned ship at each moment in the prediction window and the distance to each reference point, the heading angle difference, and the rudder angle increment minimized.

7. The unmanned ship path tracking control method according to claim 6, characterized in that: The current moment is denoted as k, and the reference point obtained in step 3 is regarded as the reference quantity in the model predictive control, that is, the expected point to be reached. The optimization objective function is expressed as the weighted sum of the square error of the heading angle, the square error of the position, and the change of the rudder angle at adjacent moments predicted at multiple moments in the future: Among them, w1, w2, w3 are the weight coefficients of each objective function term, (x k+j ref ,y k+j ref ) and Ψ k+j ref are the coordinates of the future j-th reference point and its reference tangent angle obtained in the previous step, and δ is the rudder angle.

8. The unmanned ship path tracking control method according to claim 7, characterized in that: The nonlinear Abkowitz model is used in the model predictive control. The optimization calculation formula of the nonlinear model predictive control that meets the ship dynamics model constraints, rudder angle constraints and rudder angle increment constraints is: Among them, {u, v, r, x, y, Ψ} are the longitudinal velocity, lateral velocity, angular velocity, north coordinate, east coordinate, and heading angle of the unmanned ship, Δδ is the rudder angle increment between two adjacent moments, and F1, F2, and F3 are the functions of the motion variables {u, v, r, δ} in the Abkowitz model. is the hydrodynamic derivative of acceleration.

9. The unmanned ship path tracking control method according to claim 7, characterized in that: The values ​​of w1, w2 and w3 are 50, 1 and 1000 respectively.

10. The unmanned ship path tracking control method according to claim 1, characterized in that: In step 6, it is determined whether the distance between the current ship position and the set end point is less than a threshold value ζ. If it is less than ζ, it indicates that the tracking is finished. Otherwise, it returns to step 3 to continue the tracking process.