Unmanned boat track planning and anti-interference control method and system
Through the Bessel polynomial function and nonlinear interference observer, the real-time and large calculation amount of unmanned ship trajectory planning is solved, and the back-stepping control law is designed to achieve smooth trajectory planning and anti-interference control, and enhance the The robustness and control performance of the unmanned boat eliminate the buffeting phenomenon.
Patent Information
- Application Number
- CN202410136544.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-01-31
AI Technical Summary
Existing unmanned boat trajectory planning has poor real-time performance and a large amount of calculations, and discontinuous switching of the anti-interference controller causes chattering, making it unable to effectively handle harmful interference.
Bessel polynomial functions are used to parameterize the trajectory planning of the unmanned vehicle, which is transformed into a parametric solution problem. The objective function and constraint conditions are designed to generate the optimal trajectory. The lumped interference is estimated through the nonlinear interference observer and the back-stepping control is designed. Law to achieve anti-interference control.
Generates a smooth and continuous optimal reference track, can independently plan and have local obstacle avoidance function, selectively utilizes favorable interference, enhances robustness, and suppresses buffeting.
Smart Images

Figure CN118012059B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of unmanned boat track planning and anti-interference control, and in particular to an unmanned boat track planning and anti-interference control method and system. Background Art
[0002] Autonomous trajectory planning is of great significance for the application of unmanned boat systems, such as marine exploration, military reconnaissance, etc. Early research methods on unmanned boat trajectory planning mainly include A* algorithm, RRT* algorithm, Dijkstra algorithm, etc. However, these algorithms only care about the position information of the unmanned boat, and do not consider the change of the posture parameters of the unmanned boat over time and the dynamic constraints. The generated trajectory is not smooth enough and is not suitable for the rapid navigation of the unmanned boat. In addition, the traditional unmanned boat trajectory autonomous planning is based on the high-dimensional optimization problem of the state space. Considering the nonlinear characteristics of the unmanned boat, the calculation amount of the traditional trajectory planning is very large, and even affects the real-time performance of the trajectory planning. On the other hand, since most of the constraints of the unmanned boat (such as obstacle avoidance, etc.) act in the output space, and the dimension of the output space of the unmanned boat is lower than the dimension of the state space.
[0003] As a typical complex engineering system in the process of ocean exploration, unmanned boats operate in a complex and changeable marine environment. The unmanned boat system is extremely susceptible to external interference caused by complex sea conditions such as strong waves and strong sea winds. Traditional unmanned boat anti-interference control methods are usually divided into two categories: interference suppression and interference compensation. Common interference suppression control methods include H∞-based control algorithms, PID control algorithms, and model predictive control algorithms, but interference suppression methods are not enough to deal with the impact of strong interference, so interference compensation methods have become the mainstream direction of anti-interference control. At present, the main method is to use interference observers to estimate interference, and then combine feedforward technology to compensate for interference. Common interference compensation methods include sliding film control methods based on nonlinear interference observers, backstepping control methods based on nonlinear interference observers, and so on.
[0004] The existing anti-interference control methods for unmanned boats always assume that the interference to the system is completely harmful. However, interference is often a time-varying signal, and its impact on the control system is not fixed. Some interference may have a beneficial effect on the unmanned boat control system within a certain period of time. If the beneficial interference can be reasonably utilized, it will help improve the control performance and enhance the robustness. At present, a few scholars have proposed some control methods for conditional interference suppression and compensation, quantitatively analyzed the impact of interference on the system, and conditionally handled the interference. However, the existing conditional interference suppression control method has discontinuous switching of the controller, resulting in jitter, or the controller is conservative in handling harmful strong interference. Summary of the invention
[0005] To this end, the technical problem to be solved by the present invention is to overcome the problems of poor real-time performance and large amount of calculation in the unmanned boat trajectory planning in the prior art; and also to overcome the problem of discontinuous switching of the unmanned boat interference suppression controller, causing jitter phenomenon or unreasonable processing of harmful strong interference.
[0006] In order to solve the above technical problems, the present invention provides a method for unmanned boat track planning and anti-interference control, comprising:
[0007] Step S1: establishing a mathematical model of the planar motion of the unmanned boat, selecting the flat output of the unmanned boat from the mathematical model, and establishing a differential flat system of the unmanned boat;
[0008] Step S2: parameterizing the flat output of the unmanned boat using a Bessel polynomial function to obtain a track planning problem of the unmanned boat, and converting the track planning problem into a parameter solving problem;
[0009] Step S3: Design the objective function and constraints of the unmanned boat trajectory planning problem, solve the problem by combining the parameters, and generate the optimal trajectory of the unmanned boat;
[0010] Step S4: based on the differential flat system of the unmanned boat, converting the under-actuated system of the unmanned boat into a fully-actuated system;
[0011] Step S5: designing a nonlinear disturbance observer according to the full drive system, and estimating the aggregate disturbance suffered by the unmanned watercraft system through the nonlinear disturbance observer;
[0012] Step S6: The backstepping control law of the unmanned boat is obtained in combination with the full drive system, and a new control law is designed according to the lumped disturbance and the backstepping control law, and the anti-interference control of the unmanned boat is realized by the new control law.
[0013] In one embodiment of the present invention, in step S1, a mathematical model of the planar motion of the unmanned boat is established, a flat output of the unmanned boat is selected from the mathematical model, and a differential flat system of the unmanned boat is established. The method includes:
[0014] According to the Newton-Euler equation, a three-degree-of-freedom mathematical model of the unmanned boat's planar motion is established:
[0015]
[0016] Among them, m and I z represents the mass and inertia moment of the unmanned boat, x, y, ψ represent the position and yaw angle of the unmanned boat in the inertial coordinate system, u, v, r represent the speed and yaw angular velocity of the unmanned boat in the body coordinate system, X u ,Y v ,N r represents the damping coefficient, τ u ,τr represents the input force and moment of the unmanned boat;
[0017] According to the mathematical model of formula (1), the unmanned boat flat output F1 = x, F2 = y is selected, and all the state variables and input variables of the unmanned boat are represented by the unmanned boat flat output and its finite-order derivative. Then the unmanned boat differential flat system is established as follows:
[0018] Assume the state variable is:
[0019]
[0020]
[0021]
[0022]
[0023] Assume the input variables are:
[0024]
[0025] In one embodiment of the present invention, the step S2: parameterizing the flat output of the unmanned boat using a Bessel polynomial function to obtain a track planning problem of the unmanned boat, and converting the track planning problem into a parameter solving problem, the method includes:
[0026] Select the 6th-order Bessel polynomial function to represent the first-order derivative of the unmanned boat track:
[0027]
[0028] Where ε represents the Bezier curve parameter, represents the coefficients of the polynomial function, B i (ε) represents the Bernstein basis function and satisfies:
[0029]
[0030] Introducing the rolling time domain t h To simplify the calculation of the flat output variables of the unmanned boat, ε and t h The relationship is expressed as ε = t / t h , t represents time, and the derivatives of the flat output variables of the unmanned boat are obtained by further derivation of formula (7):
[0031]
[0032]
[0033]
[0034] Since the Bessel polynomial is still a Bessel polynomial after derivation, each segment of the rolling time domain track is discretized into n steps within ε∈(0,1). The variables of each step meet the objective function and constraints of the unmanned boat track planning problem. The Bernstein basis function is also discretized into n steps. The discrete matrix of the Bernstein basis function is designed in advance as follows:
[0035]
[0036] The trajectory curve in the output space is expressed as the product of the polynomial function coefficient vector and the discrete matrix of the Bernstein basis function, so as to transform the trajectory planning problem into the polynomial function coefficient solution problem:
[0037]
[0038] In the formula, B int The basis function matrix representing the position curve is expressed as:
[0039]
[0040]
[0041] In one embodiment of the present invention, the step S3: designing the objective function and constraint conditions of the unmanned boat trajectory planning problem, combining the parameter solving problem, and generating the optimal trajectory of the unmanned boat, the method includes:
[0042] According to the requirements of global trajectory tracking, the objective function is designed:
[0043]
[0044] In the formula, λ position and λ speed represents the weight coefficient, Represents the local track (x a ,y a ) and the global track (x g ,y g )’s position error indicator, Represents the speed error index between the local track and the global track;
[0045] Considering the initial position speed constraint, input limit constraint and obstacle avoidance constraint of the unmanned boat, the constraint conditions of the unmanned boat trajectory planning problem are designed as follows:
[0046]
[0047] In the formula, (x0, y0) represents the initial position of the unmanned boat, (v x0 ,v y0) represents the initial speed of the unmanned boat, τ umin , τ umax represents the minimum and maximum values of the input force, τ rmin , τ rmax represents the minimum and maximum values of the input torque. The obstacle is ideally a circle. represents the center position of the ith obstacle, represents the radius of the ith obstacle, D safe Represents the safe distance from obstacles;
[0048] By solving a set of polynomial function coefficients that satisfy the objective function of formula (16) and the constraints of formula (17), an optimal trajectory (x r ,y r ).
[0049] In one embodiment of the present invention, the step S4: based on the differential flat system of the unmanned boat, converting the under-actuated system of the unmanned boat into a fully-actuated system, the method comprises:
[0050] Introducing external environmental interference τ d =[d1,d2,d3] T , rewrite formula (1) as:
[0051]
[0052] In the formula,
[0053] The essence of unmanned boat motion control is to control the input force τ u and input torque τ r , so that the position (x, y) and yaw angle ψ of the unmanned boat track the expected value, and based on the unmanned boat differential flat system, the underactuated system of formula (18) is transformed into a fully driven system, including: according to the unmanned boat differential flat system of formula (2) to formula (6), all state variables and input variables of the unmanned boat system are represented by output variables x, y and their finite order, and the control of other variables is realized by controlling the two variables of position (x, y), so as to realize the transformation of the unmanned boat system from an underactuated system to a fully driven system;
[0054] From formula (6), we can see that the fourth-order derivative of the output variable can make the flat output x, y fully represent the control input τ u , τ r Therefore, the following full drive system of the unmanned boat system is established:
[0055]
[0056]
[0057]
[0058]
[0059]
[0060] in, represents the complex nonlinear term, D x , D y It includes internal parameter variations and external disturbances and their derivatives, which are treated as lumped disturbances.
[0061] In one embodiment of the present invention, the step S5: designing a nonlinear disturbance observer according to the full drive system, and estimating the lumped disturbance of the unmanned watercraft system by the nonlinear disturbance observer, the method comprises:
[0062] Define the generalized input U1, U2 as:
[0063]
[0064] Rewrite formula (19) as:
[0065]
[0066] in,
[0067]
[0068]
[0069]
[0070] According to formula (25), the nonlinear disturbance observer is designed:
[0071]
[0072] in, is the estimated value of the aggregate interference D, Z is the internal state vector of the interference observer, and L = diag{l1,l2} represents the interference observer gain matrix;
[0073] The total disturbance to the unmanned vehicle system is estimated by the nonlinear disturbance observer of formula (29):
[0074] In one embodiment of the present invention, the step S6: combining the full drive system to obtain the backstepping control law of the unmanned boat, and designing a new control law according to the lumped interference and the backstepping control law, and realizing anti-interference control of the unmanned boat through the new control law, the method includes:
[0075] Assume x1 = [x, y] T , x4=[x (3) ,y (3) ] T , rewrite the full drive system of formula (19) as:
[0076]
[0077] Based on the backstepping control law, a new control law is designed, including:
[0078] Define the tracking error of x1 as z1=x1-x 1d , x 1d =[x d ,y d ] T is the expected track; taking the derivative of the tracking error z1, we get:
[0079]
[0080] Design virtual control quantity x 2v :
[0081]
[0082] Wherein, k1>0 is an adjustable first positive constant;
[0083] Define the virtual control error z2 as:
[0084] z2=x2-x 2v (33)
[0085] Derivative the virtual control error z2, we get:
[0086]
[0087] Design virtual control quantity x 3v :
[0088]
[0089] Wherein, k2>0 is an adjustable second normal constant;
[0090] Define the virtual control error z3 as:
[0091] z3=x3-x 3v (36)
[0092] Derivative the virtual control error z3, we get:
[0093]
[0094] Design virtual control quantity x 4v :
[0095]
[0096] Wherein, k3>0 is an adjustable third positive constant;
[0097] Define the virtual control error z4 as:
[0098] z4=x4-x 4v (39)
[0099] Derivative the virtual control error z4, we get:
[0100]
[0101] Finally, the backstepping control law is obtained as:
[0102]
[0103] Wherein, k4>0 is an adjustable fourth normal constant;
[0104] Substituting formulas (32), (35), (38), and (41) into formulas (31), (34), (37), and (40), we obtain the closed-loop error dynamic system:
[0105]
[0106] Ignoring the compensation of the control law for disturbance, in order to analyze the impact of disturbance D on the unmanned boat system, the Lyapunov function is defined as:
[0107]
[0108] By taking the derivative of formula (43), we get:
[0109]
[0110] Substituting formula (42) into formula (44), we obtain:
[0111]
[0112] From formula (45), we can see that Whether it is negative, that is, whether the system is asymptotically stable depends on Positive and negative: If It can guarantee It indicates that interference D is beneficial to the system and should be retained; if but If the positive or negative value of cannot be determined, it means that the interference D is detrimental to the system and should be eliminated;
[0113] According to z4 and interference D in formula (45), the interference characteristic index is defined as:
[0114] γ=z4⊙D(46)
[0115] Among them, ⊙ represents the dot product, γ=[γ1,γ2] T , γ i represents the i-th element of γ, and D is estimated by replace;
[0116] The interference compensation gain E(γ)=diag{E(γ1),E(γ2)} is defined as:
[0117]
[0118] Among them, κ i >0, i=1, 2 indicates critical value;
[0119] Based on the backstepping control law of formula (41), the backstepping control law based on "interference utilization" is designed as:
[0120]
[0121] Through the backstepping control law based on "interference utilization" in formula (48), favorable interference is utilized, harmful interference is compensated, and anti-interference control of the unmanned boat is achieved.
[0122] In order to solve the above technical problems, the present invention provides an unmanned boat track planning and anti-interference control system, comprising:
[0123] Construction module: used to establish a mathematical model of the planar motion of the unmanned boat, select the flat output of the unmanned boat from the mathematical model, and establish a differential flat system of the unmanned boat;
[0124] The first conversion module is used to parameterize the flat output of the unmanned boat using a Bessel polynomial function to obtain a track planning problem of the unmanned boat, and convert the track planning problem into a parameter solving problem;
[0125] Generation module: used to design the objective function and constraints of the unmanned boat trajectory planning problem, solve the problem by combining parameters, and generate the optimal trajectory of the unmanned boat;
[0126] A second conversion module: used for converting the under-actuated system of the unmanned boat into a fully-actuated system based on the differential flat system of the unmanned boat;
[0127] An estimation module is used to design a nonlinear disturbance observer according to the full drive system, and estimate the aggregate disturbance suffered by the unmanned boat system through the nonlinear disturbance observer;
[0128] Control module: used to obtain the backstepping control law of the unmanned boat in combination with the full drive system, and to design a new control law according to the lumped interference and the backstepping control law, so as to realize the anti-interference control of the unmanned boat through the new control law.
[0129] In order to solve the above technical problems, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned unmanned boat trajectory planning and anti-interference control method are implemented.
[0130] In order to solve the above technical problems, the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned unmanned boat trajectory planning and anti-interference control method are implemented.
[0131] The above technical solution of the present invention has the following advantages compared with the prior art:
[0132] The present invention can generate a smooth and continuous optimal reference track for the unmanned boat, which can not only complete the autonomous planning of the unmanned boat track, but also has the function of local obstacle avoidance;
[0133] The control law designed in the present invention selectively utilizes favorable interference, offsets harmful interference, and enhances the robustness of the unmanned boat system under high sea conditions;
[0134] The Disturbance Characteristic Index (DCI) proposed in the present invention can enable continuous switching of control laws, effectively suppressing or even eliminating chattering phenomena. BRIEF DESCRIPTION OF THE DRAWINGS
[0135] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments of the present invention in conjunction with the accompanying drawings.
[0136] Figure 1 is a flow chart of the method of the present invention;
[0137] Figure 2 It is a schematic diagram of a traditional interference characteristic indicator DCI and an interference characteristic indicator DCI proposed in the present invention;
[0138] Figure 3 is a schematic diagram of the obstacle avoidance track planning result of the unmanned boat in an embodiment of the present invention;
[0139] Figure 4 is a schematic diagram of position and yaw angle response curves of an unmanned boat in an embodiment of the present invention;
[0140] Figure 5 is a schematic diagram of a linear speed response curve of an unmanned boat in an embodiment of the present invention;
[0141] Figure 6 Schematic diagram of input force and moment response curve of the unmanned boat in an embodiment of the present invention;
[0142] Figure 7 Schematic diagram of the estimation effect of the nonlinear disturbance observer on the lumped disturbance in an embodiment of the present invention;
[0143] Figure 8 1 is a schematic diagram of a track tracking response curve of an unmanned boat under a control method in an embodiment of the present invention;
[0144] Fig. 9 Schematic diagram of position and yaw angle tracking response curves of the unmanned boat under three control methods in the embodiments of the present invention;
[0145] Fig.10 Schematic diagram of track tracking error response curves of unmanned boats under three control methods in embodiments of the present invention;
[0146] Fig.11 It is a schematic diagram of controller input response curves based on traditional DCI and the proposed continuous DCI in an embodiment of the present invention. DETAILED DESCRIPTION
[0147] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0148] Embodiment 1
[0149] Reference Figure 1 As shown, the present invention relates to an unmanned boat track planning and anti-interference control method, comprising:
[0150] Step S1: establishing a mathematical model of the planar motion of the unmanned boat, selecting the flat output of the unmanned boat from the mathematical model, and establishing a differential flat system of the unmanned boat;
[0151] Step S2: parameterizing the flat output of the unmanned boat using a Bessel polynomial function to obtain a track planning problem of the unmanned boat, and converting the track planning problem into a parameter solving problem;
[0152] Step S3: Design the objective function and constraints of the unmanned boat trajectory planning problem, solve the problem by combining the parameters, and generate the optimal trajectory of the unmanned boat;
[0153] Step S4: based on the differential flat system of the unmanned boat, converting the under-actuated system of the unmanned boat into a fully-actuated system;
[0154] Step S5: designing a nonlinear disturbance observer according to the full drive system, and estimating the aggregate disturbance suffered by the unmanned watercraft system through the nonlinear disturbance observer;
[0155] Step S6: The backstepping control law of the unmanned boat is obtained in combination with the full drive system, and a new control law is designed according to the lumped disturbance and the backstepping control law, and the anti-interference control of the unmanned boat is realized by the new control law.
[0156] In the unmanned boat track planning technology, the present invention adopts the planning ideas of global track tracking and local obstacle avoidance optimization, performs track planning in low-dimensional output space based on differential flatness theory, and uses Bessel polynomials to parameterize the flat output track; establishes a nonlinear optimization problem, designs the objective function, considers constraints such as limiting and obstacle avoidance, and plans an optimal reference track that can track the preset global track and achieve the local obstacle avoidance function. In the unmanned boat anti-interference control technology, the present invention proposes a backstepping control method based on "interference utilization" and designs a continuous DC I, so that the system control can conditionally utilize and eliminate interference, enhances the robustness of the unmanned boat system, and improves the control performance; and effectively suppresses or even eliminates the jitter phenomenon caused by the discontinuous switching of the traditional control law.
[0157] The following is a detailed introduction to this embodiment:
[0158] This embodiment adopts the idea of trajectory planning that combines global trajectory tracking and local obstacle avoidance optimization: a global trajectory is specified in advance, and the global trajectory is a curve that only contains position and speed information. When there are no obstacles on the global trajectory, the unmanned boat sails along the global trajectory; when the unmanned boat encounters an obstacle, local trajectory optimization is implemented, and the optimization problem is solved according to the inequality constraints required by the obstacle avoidance, and a new trajectory is locally planned. After avoiding the obstacle, the unmanned boat will sail along the global trajectory again. The design steps of the unmanned boat autonomous trajectory planning technology are as follows:
[0159] Step 1: Establish a mathematical model of the planar motion of the unmanned boat, select the flat output of the unmanned boat, and establish the differential flat system of the unmanned boat.
[0160] According to the Newton-Euler equation, the following three-degree-of-freedom mathematical model of the planar motion of the unmanned boat is established:
[0161]
[0162] Among them, m and I z represents the mass and inertia moment of the unmanned boat, x, y, ψ represent the position and yaw angle of the unmanned boat in the inertial coordinate system, u, v, r represent the speed and yaw angular velocity of the unmanned boat in the body coordinate system, X u ,Y v ,N r represents the damping coefficient, τ u ,τ r Represents the input force and moment of the unmanned boat.
[0163] For the mathematical model of formula (1), the unmanned boat flat output F1 = x, F2 = y is selected. According to the definition of differential flatness, all states and inputs of the system can be represented by the unmanned boat flat output and its finite-order derivative, so the unmanned boat differential flat system is established as follows:
[0164] State variables:
[0165]
[0166]
[0167]
[0168]
[0169] Input variables:
[0170]
[0171] This proves that the established unmanned boat differential flat system satisfies the differential characteristics. There is a mapping relationship between the flat output space of the unmanned boat differential flat system and the state and input space. Therefore, planning can be performed in the output space and then mapped back to the state and input space.
[0172] Step 2: Use Bessel polynomial function to parameterize the flat output, use Bessel polynomial function to represent the track, and transform the track planning problem into the problem of solving the output space parameters.
[0173] This embodiment selects a 6th-order Bessel polynomial function to represent the first-order derivative of the track:
[0174]
[0175] Where ε represents the Bezier curve parameter, represents the coefficients of the polynomial function, B i (ε) represents the Bernstein basis function:
[0176]
[0177] Introducing the rolling time domain t h To simplify the calculation of the flat output variables of the unmanned boat, ε and t h The relationship is expressed as ε = t / t h , t represents time, and the derivatives of the flat output variables of the unmanned boat can be obtained by further derivation of formula (7):
[0178]
[0179]
[0180]
[0181] It can be seen from the above formula that the Bessel polynomial is still a Bessel polynomial after differentiation. In order to facilitate the solution of the subsequent optimization process, each segment of the rolling time domain track is discretized into n steps within ε∈(0,1), and the variables of each step satisfy the objective function of the following formula (16) and the constraints of formula (17). The Bernstei n basis function is also discretized into n steps, and the discrete matrix of the Bernstei n basis function can be designed in advance as:
[0182]
[0183] Therefore, the trajectory curve in the output space can be expressed as the product of the polynomial function coefficient vector and the discrete matrix of the Bernstein basis function, realizing the transformation of the trajectory planning problem into the polynomial function coefficient solution problem:
[0184]
[0185] In the formula, B int The basis function matrix representing the position curve is specifically expressed as:
[0186]
[0187]
[0188] Step 3: Establish a nonlinear optimization problem in the output space. According to the requirements of global track tracking, design the objective function, consider constraints such as obstacles and limits, solve the optimization problem, determine the coefficients of the polynomial function, and generate the optimal trajectory of the unmanned boat, which can not only complete autonomous track planning, but also has obstacle avoidance function.
[0189] According to the requirements of global trajectory tracking, the following objective function is designed:
[0190]
[0191] In the formula, λ position and λ speed represents the weight coefficient, Represents the local track (x a ,y a ) and the global track (x g ,y g )’s position error indicator, represents the speed error index between the local track and the global track. The goal of track optimization is to minimize the value of (16).
[0192] Considering the initial position speed constraint, input limit constraint and obstacle avoidance constraint of the unmanned boat, the constraint conditions of the unmanned boat trajectory optimization problem are designed as follows:
[0193]
[0194] In the formula, (x0, y0) represents the initial position of the unmanned boat, (v x0 ,v y0 ) represents the initial speed of the unmanned boat. τ umin , τ umax represents the minimum and maximum values of the input force, τ rmin , τ rmax represents the minimum and maximum values of the input torque. The obstacle is ideally circular. represents the center position of the ith obstacle, represents the radius of the ith obstacle, D safe Represents the safe distance from obstacles.
[0195] By solving the above nonlinear optimization problem, a set of polynomial function coefficients that satisfy the objective function of formula (16) and the constraints of formula (17) are obtained, and then an optimal reference trajectory (x r ,y r ).
[0196] Unmanned boat anti-interference control technology
[0197] Based on the backstepping control algorithm, a backstepping control method based on "interference utilization" is proposed. A continuous "interference characteristic factor" is designed to quantitatively analyze the impact of interference on the performance of the unmanned boat system, so that the controller (the controller is used to implement the control law) can selectively utilize favorable interference, offset harmful interference, and enhance the robustness of the unmanned boat system under high sea conditions; and the control law is designed to continuously switch ideas to effectively suppress or even eliminate the vibration phenomenon. The design steps of the unmanned boat anti-interference technology are as follows:
[0198] Step 4: Based on the differential flatness of the unmanned boat system, the under-actuated system of the unmanned boat is converted into a fully-actuated system.
[0199] Introducing external environmental interference τ d =[d1,d2,d3] T , rewrite formula (1) into the following form:
[0200]
[0201] In the formula,
[0202] The essence of unmanned boat motion control is to control the input force τ uand input torque τ r , so that the position (x, y) and yaw angle ψ of the unmanned boat track the expected value. It can be seen from formula (18) that the unmanned boat is an under-actuated system with two inputs and three outputs, which makes the control input design of the unmanned boat complicated, while the design of the control input of the full-drive system is already very mature, so this embodiment converts the under-actuated system of the unmanned boat in formula (18) into a full-drive system to simplify the design of the control law. The differential flatness theory is a common method for converting an under-actuated system into a full-drive system. According to the differential flat system of the unmanned boat of the above formulas (2)-(6), all state variables and input variables of the unmanned boat system can be represented by the output variables x, y and their finite order, so only the two variables of position (x, y) need to be controlled to complete the control of other variables, thus realizing the transformation of the unmanned boat system from an under-actuated system to a full-drive system.
[0203] From formula (6), we can see that the fourth-order derivative of the output variable can make the flat output x, y fully represent the control input τ u , τ r , so the following full drive system of the unmanned boat system is established (the following formula 19 is obtained based on formula 2-6 and formula 18):
[0204]
[0205]
[0206]
[0207]
[0208]
[0209] in, represents the complex nonlinear term, D x , D y It includes internal parameter changes and external disturbances and their derivatives, which can be regarded as lumped disturbances.
[0210] Step 5: Design a nonlinear disturbance observer to estimate the aggregate disturbance to the UAV system.
[0211] Define the generalized input U1, U2 as:
[0212]
[0213] Rewrite formula (19) as:
[0214]
[0215] in,
[0216]
[0217]
[0218]
[0219] According to formula (25), the following nonlinear disturbance observer is designed:
[0220]
[0221] in, is the estimated value of the concentrated interference D, Z is the internal state vector of the interference observer, and L = diag{l1,l2} represents the interference observer gain matrix;
[0222] The total disturbance to the unmanned vehicle system is estimated by the nonlinear disturbance observer of formula (29):
[0223] Step 6: Based on the backstepping control algorithm, a backstepping control law based on "interference utilization" is proposed, and a "continuous interference factor" is designed to quantitatively analyze the impact of interference on the performance of the unmanned boat system, so that the control law can selectively utilize favorable interference, offset harmful interference, and enhance the robustness of the unmanned boat system under high sea conditions; and a continuous switching idea of the control law is designed to effectively suppress or even eliminate the vibration phenomenon.
[0224] Assume x1 = [x, y] T , x4=[x (3) ,y (3) ] T , rewrite the full drive system of formula (19) as:
[0225]
[0226] Based on the traditional backstepping control method, a new control law is designed (i.e., the backstepping control law based on "interference utilization"), which specifically includes:
[0227] Define the tracking error of x1 as z1=x1-x 1d , x 1d =[x d ,y d ] T The expected trajectory.
[0228] By taking the derivative of the tracking error z1, we can get:
[0229]
[0230] Design virtual control quantity x 2v :
[0231]
[0232] Wherein, k1>0 is an adjustable first positive constant.
[0233] Define the virtual control error z2 as:
[0234] z2=x2-x 2v (33)
[0235] By taking the derivative of the virtual control error z2, we can get:
[0236]
[0237] Design virtual control quantity x 3v :
[0238]
[0239] Wherein, k2>0 is an adjustable second positive constant.
[0240] Define the virtual control error z3 as:
[0241] z3=x3-x 3v (36)
[0242] By taking the derivative of the virtual control error z3, we can get:
[0243]
[0244] Design virtual control quantity x 4v :
[0245]
[0246] Wherein, k3>0 is an adjustable third positive constant.
[0247] Define the virtual control error z4 as:
[0248] z4=x4-x 4v (39)
[0249] By taking the derivative of the virtual control error z4, we can get:
[0250]
[0251] Finally, the traditional backstepping control law is designed as:
[0252]
[0253] Wherein, k4>0 is an adjustable fourth normal constant. The traditional backstepping control law regards the disturbance as all harmful and performs full disturbance compensation.
[0254] Substituting formulas (32), (35), (38), and (41) into formulas (31), (34), (37), and (40), we can obtain the closed-loop error dynamic system:
[0255]
[0256] Ignoring the compensation of the control law for disturbance, in order to analyze the impact of disturbance D on the unmanned boat system, the following Lyapunov function is defined:
[0257]
[0258] By taking the derivative of formula (43), we can obtain:
[0259]
[0260] Substituting formula (42) into formula (44), we can obtain:
[0261]
[0262] From formula (45), we can see that Whether it is negative, that is, whether the system is asymptotically stable depends on Positive and negative: If It can guarantee This also implies that interference D is beneficial to the system and can be retained; if but The positive or negative value of cannot be determined, which implies that the interference D is detrimental to the system and should be eliminated.
[0263] In summary, the present invention designs a continuous "interference characteristic index (DCI)", which is used to judge whether the interference is beneficial to the unmanned boat system, and proposes a backstepping control method based on "interference utilization". On the other hand, compared with the traditional DCI, the proposed continuous DCI can make the control law switch continuously, effectively suppressing or even eliminating the chattering phenomenon.
[0264] The conventional DCI and the DCI of this embodiment are as follows: Figure 2 As shown, Figure 2 (a) is the traditional DCI, Figure 2 (b) is the DCI of this embodiment.
[0265] The proposed DCI defined according to z4 and interference D in formula (45) is:
[0266] γ=z4⊙D(46)
[0267] Among them, ⊙ represents the dot product, γ=[γ1,γ2] T , γ irepresents the i-th element of γ. D can be estimated by replace.
[0268] The interference compensation gain E(γ)=diag{E(γ1),E(γ2)} is defined as:
[0269]
[0270] Among them, κ i >0,i=1,2 indicates the critical value.
[0271] Therefore, based on the traditional backstepping control law of formula (41), a backstepping control law based on "interference utilization" (i.e., a new control law) is designed as follows:
[0272]
[0273] The actual control input τ of the unmanned boat u , τ r It can be further obtained by inverting formula (24). In the control law of formula (48), the control law can utilize favorable interference and compensate for harmful interference, so that the unmanned boat can accurately track the reference track.
[0274] The specific implementation is as follows:
[0275] The present invention aims at unmanned boat track planning and anti-interference control, and designs a backstepping control method for unmanned boat track planning and interference utilization based on differential flatness. The following is an implementation case for unmanned boat system track planning and control.
[0276] The effectiveness of the present invention is verified by using Matlab / simu link simulation software. Assuming m = 2900 kg, I z =4200kg·m 2 , X u =-848kg·s -1 , Y v =-10161kg·s -1 , N r =-22719kg·m 2 ·s -1 ;t horizon =100s, x0=0m, y0=0m; minimum and maximum thrust are: τ umin =-1.1×10 4 N, τ umax =1.1×10 4 N; the minimum and maximum input torques are: τ rmin =-1.5×10 3 Nm, τ rmax =1.5×10 3Nm. The global trajectory is set to a constant speed of 6m·s -1 ,course The horizontal line of weight coefficient λ position =9,λ speed = 10. The obstacle is selected as an ideal circle, the coordinates of the obstacle center and the radius are x obs =[1100,1600,1800,2000]m,y obs =[1100,1500,1800,2200]m,R obs =[100,100,110,140]m, safety distance D safe =10m.
[0277] The external environmental interferences to the unmanned boat system are d1=2×10 5 sin(0.01t)+1×10 5 sin(0.03t)N,d2=8×10 4 sin(0.01t)+1×10 4 sin(0.03t)N,d3=6×10 5 sin(0.01t)+2×10 5 sin(0.03t)Nm. The aggregate disturbance can be determined by equations (22) and (23). The disturbance observer gain matrix and controller gain matrix are L = diag{20,20}, k1 = diag{1,1}, k2 = diag{6,6}, k3 = diag{20,20}, k4 = diag{27,27}, and the critical value is κ i =5000,i=1,2.
[0278] Simulation analysis:
[0279] like Figure 3 As shown in the figure, the autonomous trajectory planning scheme of the unmanned boat based on differential flatness proposed in the present invention can plan a trajectory that can achieve local obstacle avoidance. When the unmanned boat does not encounter an obstacle, it sails along the global trajectory; when it encounters an obstacle, it satisfies the obstacle avoidance constraint and optimizes the local trajectory to avoid the obstacle. After the obstacle avoidance is completed, the unmanned boat can sail along the global trajectory again. Figure 4 , Figure 5 Represents the state variables of the planned unmanned boat. Figure 6 It indicates that the input force and moment of the planned unmanned boat are strictly constrained within the specified range.
[0280] Figure 7 It shows the estimation effect of the aggregate interference, which verifies that the nonlinear interference observer designed in this invention has a good interference estimation effect. Figure 8As shown in Figure 2, the track tracking effects of the controller (i.e., control law) proposed in the present invention and the other two control methods are compared. Fig. 9 As shown in the figure, the position and yaw angle tracking effects of the control method proposed by the present invention and the other two control methods are compared respectively. The traditional backstepping control law, without any interference compensation, is not enough to suppress the influence of strong interference on the unmanned boat, so that the unmanned boat cannot accurately track the reference track, and even causes the unmanned boat to collide with obstacles. The backstepping control method that fully compensates for the interference and the invented control method both have good anti-interference ability, so that the unmanned boat can accurately track the reference track. However, according to Fig.10 The track tracking error response curve shown in the figure shows that the control method of the present invention is superior to the backstepping control method that fully compensates for the interference. For example, in the time period (0, 20s), the control method of the present invention can make use of favorable interference, so that the track tracking error curve of the unmanned boat has faster convergence and smaller tracking error; it can be more intuitively seen from the following Table 1 that the tracking error of the control method of the present invention is smaller than that of the comparison method. In addition, Figure 2 and Fig.11 As shown, the control law designed based on the traditional DCI only has two switching modes: interference utilization and interference full compensation. When the value of γ changes in a small range near the zero point, the control law will frequently jump and switch, causing jitter. In contrast, the control law designed based on the continuous DCI of the present invention has a transition mode of partial interference utilization (or compensation) between interference utilization and interference full compensation, so that the control law switches continuously, effectively suppressing or even eliminating jitter.
[0281] Table 1 Comparison of the root mean square (RMS) of the track tracking error of the unmanned boat under three control methods
[0282] Control Methods <![CDATA[(e x ) RMS ]]> <![CDATA[(e y ) RMS ]]> <![CDATA[(e ψ ) RMS ]]> Backstepping control without compensation disturbance 4.3888m 3.3967m 0.3061rad Backstepping control with full disturbance compensation 0.2732m 0.2406m 0.2290rad This patented method 0.1048m 0.0712m 0.0470rad
[0283] Embodiment 2
[0284] This embodiment provides an unmanned boat track planning and anti-interference control system, including:
[0285] Construction module: used to establish a mathematical model of the planar motion of the unmanned boat, select the flat output of the unmanned boat from the mathematical model, and establish a differential flat system of the unmanned boat;
[0286] The first conversion module is used to parameterize the flat output of the unmanned boat using a Bessel polynomial function to obtain a track planning problem of the unmanned boat, and convert the track planning problem into a parameter solving problem;
[0287] Generation module: used to design the objective function and constraints of the unmanned boat trajectory planning problem, solve the problem by combining parameters, and generate the optimal trajectory of the unmanned boat;
[0288] A second conversion module: used for converting the under-actuated system of the unmanned boat into a fully-actuated system based on the differential flat system of the unmanned boat;
[0289] An estimation module is used to design a nonlinear disturbance observer according to the full drive system, and estimate the aggregate disturbance suffered by the unmanned boat system through the nonlinear disturbance observer;
[0290] Control module: used to obtain the backstepping control law of the unmanned boat in combination with the full drive system, and to design a new control law according to the lumped interference and the backstepping control law, so as to realize the anti-interference control of the unmanned boat through the new control law.
[0291] Embodiment 3
[0292] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the unmanned boat track planning and anti-interference control method described in Embodiment 1 are implemented.
[0293] Embodiment 4
[0294] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the unmanned boat track planning and anti-interference control method described in Example 1 are implemented.
[0295] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the application can adopt the form of complete hardware embodiment, complete software embodiment, or the embodiment in combination with software and hardware. Moreover, the application can adopt the form of the computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiment of the present application can be realized in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0296] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0297] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0298] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0299] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0300] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.
Claims
1. A method for unmanned boat track planning and anti-interference control, characterized in that: include: Step S1: establishing a mathematical model of the planar motion of the unmanned boat, selecting the flat output of the unmanned boat from the mathematical model, and establishing a differential flat system of the unmanned boat; In step S1, a mathematical model of the planar motion of the unmanned boat is established, a flat output of the unmanned boat is selected from the mathematical model, and a differential flat system of the unmanned boat is established. The method includes: According to the Newton-Euler equation, a three-degree-of-freedom mathematical model of the unmanned boat's planar motion is established: Among them, m and I z represents the mass and inertia moment of the unmanned boat, x, y, ψ represent the position and yaw angle of the unmanned boat in the inertial coordinate system, u, v, r represent the speed and yaw angular velocity of the unmanned boat in the body coordinate system, X u ,Y v ,N r represents the damping coefficient, τ u ,τ r represents the input force and moment of the unmanned boat; According to the mathematical model of formula (1), the unmanned boat flat output F1 = x, F2 = y is selected, and all the state variables and input variables of the unmanned boat are represented by the unmanned boat flat output and its finite-order derivative. Then the unmanned boat differential flat system is established as follows: Assume the state variable is: Assume the input variables are: Step S2: parameterizing the flat output of the unmanned boat using a Bessel polynomial function to obtain a track planning problem of the unmanned boat, and converting the track planning problem into a parameter solving problem; Step S3: Design the objective function and constraints of the unmanned boat trajectory planning problem, solve the problem by combining the parameters, and generate the optimal trajectory of the unmanned boat; Step S4: based on the differential flat system of the unmanned boat, converting the under-actuated system of the unmanned boat into a fully-actuated system; The step S4: based on the differential flat system of the unmanned boat, converting the under-actuated system of the unmanned boat into a fully-actuated system, the method includes: Introducing external environmental interference τ d =[d1,d2,d3] T , rewrite formula (1) as: In the formula, The essence of unmanned boat motion control is to control the input force τ u and input torque τ r , so that the position (x, y) and yaw angle ψ of the unmanned boat track the expected value, and based on the unmanned boat differential flat system, the underactuated system of formula (18) is transformed into a fully driven system, including: according to the unmanned boat differential flat system of formula (2) to formula (6), all state variables and input variables of the unmanned boat system are represented by output variables x, y and their finite order, and the control of other variables is realized by controlling the two variables of position (x, y), so as to realize the transformation of the unmanned boat system from an underactuated system to a fully driven system; From formula (6), we can see that the fourth-order derivative of the output variable can make the flat output x, y fully represent the control input τ u , τ r Therefore, the following full drive system of the unmanned boat system is established: in, represents the complex nonlinear term, D x , D y It includes internal parameter changes and external disturbances and their derivatives, which are treated as lumped disturbances; Step S5: designing a nonlinear disturbance observer according to the full drive system, and estimating the aggregate disturbance suffered by the unmanned watercraft system through the nonlinear disturbance observer; Step S6: combining the full drive system to obtain the backstepping control law of the unmanned boat, and designing a new control law according to the lumped disturbance and the backstepping control law, and realizing anti-disturbance control of the unmanned boat through the new control law; The step S6: combining the full drive system to obtain the backstepping control law of the unmanned boat, and designing a new control law according to the lumped interference and the backstepping control law, and realizing anti-interference control of the unmanned boat through the new control law, the method includes: Assume x1 = [x, y] T , x4=[x (3) ,y (3) ] T , rewrite the full drive system of formula (19) as: Based on the backstepping control law, a new control law is designed, including: Define the tracking error of x1 as z1=x1-x 1d , x 1d =[x d ,y d ] T is the expected track; taking the derivative of the tracking error z1, we get: Design virtual control quantity x 2v : Wherein, k1>0 is an adjustable first positive constant; Define the virtual control error z2 as: Derivative the virtual control error z2, we get: Design virtual control quantity x 3v : Wherein, k2>0 is an adjustable second normal constant; Define the virtual control error z3 as: Derivative the virtual control error z3, we get: Design virtual control quantity x 4v : Wherein, k3>0 is an adjustable third positive constant; Define the virtual control error z4 as: z4=x4-x 4v (39) Derivative the virtual control error z4, we get: Finally, the backstepping control law is obtained as: Wherein, k4>0 is an adjustable fourth normal constant; Substituting formulas (32), (35), (38), and (41) into formulas (31), (34), (37), and (40), we obtain the closed-loop error dynamic system: Ignoring the compensation of the control law for disturbance, in order to analyze the impact of disturbance D on the unmanned boat system, the Lyapunov function is defined as: By taking the derivative of formula (43), we get: Substituting formula (42) into formula (44), we obtain: From formula (45), we can see that Whether it is negative, that is, whether the system is asymptotically stable depends on Positive and negative: If It can guarantee It indicates that interference D is beneficial to the system and should be retained; if but If the positive or negative value of cannot be determined, it means that the interference D is detrimental to the system and should be eliminated; According to z4 and interference D in formula (45), the interference characteristic index is defined as: Among them, ⊙ represents the dot product, γ=[γ1,γ2] T , γ i represents the i-th element of γ, and D is estimated by replace; The interference compensation gain E(γ)=diag{E(γ1),E(γ2)} is defined as: Among them, κ i >0, i=1, 2 indicates critical value; Based on the backstepping control law of formula (41), the backstepping control law based on interference utilization is designed as: The interference utilization-based backstepping control law of formula (48) is used to utilize favorable interference, compensate for harmful interference, and realize anti-interference control of the unmanned boat.
2. The unmanned boat track planning and anti-interference control method according to claim 1 is characterized in that: The step S2: parameterizing the flat output of the unmanned boat using a Bessel polynomial function to obtain a track planning problem of the unmanned boat, and converting the track planning problem into a parameter solving problem, the method comprising: Select the 6th-order Bessel polynomial function to represent the first-order derivative of the unmanned boat track: Where ε represents the Bezier curve parameter, represents the coefficients of the polynomial function, B i (ε) represents the Bernstein basis function and satisfies: Introducing the rolling time domain t h To simplify the calculation of the flat output variables of the unmanned boat, ε and t h The relationship is expressed as ε = t / t h , t represents time, and the derivatives of the flat output variables of the unmanned boat are obtained by further derivation of formula (7): Since the Bessel polynomial is still a Bessel polynomial after derivation, each segment of the rolling time domain track is discretized into n steps within ε∈(0,1). The variables of each step meet the objective function and constraints of the unmanned boat track planning problem. The Bernstein basis function is also discretized into n steps. The discrete matrix of the Bernstein basis function is designed in advance as follows: The trajectory curve in the output space is expressed as the product of the polynomial function coefficient vector and the discrete matrix of the Bernstein basis function, so as to transform the trajectory planning problem into the polynomial function coefficient solution problem: In the formula, B int The basis function matrix representing the position curve is expressed as:
3. The unmanned boat track planning and anti-interference control method according to claim 1 is characterized in that: The step S3: designing the objective function and constraint conditions of the unmanned boat trajectory planning problem, solving the problem in combination with the parameters, and generating the optimal trajectory of the unmanned boat, the method includes: According to the requirements of global trajectory tracking, the objective function is designed: In the formula, λ position and λ speed represents the weight coefficient, Represents the local track (x a ,y a ) and the global track (x g ,y g )’s position error indicator, Represents the speed error index between the local track and the global track; Considering the initial position speed constraint, input limit constraint and obstacle avoidance constraint of the unmanned boat, the constraint conditions of the unmanned boat trajectory planning problem are designed as follows: In the formula, (x0, y0) represents the initial position of the unmanned boat, (v x0 ,v y0 ) represents the initial speed of the unmanned boat, τ umin , τ umax represents the minimum and maximum values of the input force, τ rmin , τ rmax represents the minimum and maximum values of the input torque. The obstacle is ideally a circle. represents the center position of the ith obstacle, represents the radius of the ith obstacle, D safe Represents the safe distance from obstacles; By solving a set of polynomial function coefficients that satisfy the objective function of formula (16) and the constraints of formula (17), an optimal trajectory (x r ,y r ).
4. The unmanned boat track planning and anti-interference control method according to claim 1, characterized in that: The step S5: designing a nonlinear disturbance observer according to the full drive system, and estimating the aggregate disturbance suffered by the unmanned watercraft system by using the nonlinear disturbance observer, the method comprising: Define the generalized input U1, U2 as: Rewrite formula (19) as: in, According to formula (25), the nonlinear disturbance observer is designed: in, is the estimated value of the aggregate interference D, Z is the internal state vector of the interference observer, and L = diag{l1,l2} represents the interference observer gain matrix; The total disturbance to the unmanned vehicle system is estimated by the nonlinear disturbance observer of formula (29):
5. An unmanned boat track planning and anti-interference control system, characterized in that: include: Construction module: used to establish a mathematical model of the planar motion of the unmanned boat, select the flat output of the unmanned boat from the mathematical model, and establish a differential flat system of the unmanned boat; The mathematical model of the planar motion of the unmanned boat is established in the construction module, the flat output of the unmanned boat is selected from the mathematical model, and the differential flat system of the unmanned boat is established, including: According to the Newton-Euler equation, a three-degree-of-freedom mathematical model of the unmanned boat's planar motion is established: Among them, m and I z represents the mass and inertia moment of the unmanned boat, x, y, ψ represent the position and yaw angle of the unmanned boat in the inertial coordinate system, u, v, r represent the speed and yaw angular velocity of the unmanned boat in the body coordinate system, X u ,Y v ,N r represents the damping coefficient, τ u ,τ r represents the input force and moment of the unmanned boat; According to the mathematical model of formula (1), the unmanned boat flat output F1 = x, F2 = y is selected, and all the state variables and input variables of the unmanned boat are represented by the unmanned boat flat output and its finite-order derivative. Then the unmanned boat differential flat system is established as follows: Assume the state variable is: Assume the input variables are: The first conversion module is used to parameterize the flat output of the unmanned boat using a Bessel polynomial function to obtain a track planning problem of the unmanned boat, and convert the track planning problem into a parameter solving problem; Generation module: used to design the objective function and constraints of the unmanned boat trajectory planning problem, solve the problem by combining parameters, and generate the optimal trajectory of the unmanned boat; A second conversion module: used for converting the under-actuated system of the unmanned boat into a fully-actuated system based on the differential flat system of the unmanned boat; The second conversion module: based on the differential flat system of the unmanned boat, converts the under-actuated system of the unmanned boat into a fully-actuated system, including: Introducing external environmental interference τ d =[d1,d2,d3] T , rewrite formula (1) as: In the formula, The essence of unmanned boat motion control is to control the input force τ u and input torque τ r , so that the position (x, y) and yaw angle ψ of the unmanned boat track the expected value, and based on the unmanned boat differential flat system, the underactuated system of formula (18) is transformed into a fully driven system, including: according to the unmanned boat differential flat system of formula (2) to formula (6), all state variables and input variables of the unmanned boat system are represented by output variables x, y and their finite order, and the control of other variables is realized by controlling the two variables of position (x, y), so as to realize the transformation of the unmanned boat system from an underactuated system to a fully driven system; From formula (6), we can see that the fourth-order derivative of the output variable can make the flat output x, y fully represent the control input τ u , τ r Therefore, the following full drive system of the unmanned boat system is established: in, represents the complex nonlinear term, D x , D y It includes internal parameter changes and external disturbances and their derivatives, which are considered as lumped disturbances; An estimation module is used to design a nonlinear disturbance observer according to the full drive system, and estimate the aggregate disturbance suffered by the unmanned boat system through the nonlinear disturbance observer; Control module: used to obtain the backstepping control law of the unmanned boat in combination with the full drive system, and to design a new control law according to the lumped disturbance and the backstepping control law, so as to realize the anti-disturbance control of the unmanned boat through the new control law; The control module: combines the full drive system to obtain the backstepping control law of the unmanned boat, and designs a new control law according to the lumped interference and the backstepping control law, and realizes the anti-interference control of the unmanned boat through the new control law, including: Assume x1 = [x, y] T , x4=[x (3) ,y (3) ] T , rewrite the full drive system of formula (19) as: Based on the backstepping control law, a new control law is designed, including: Define the tracking error of x1 as z1=x1-x 1d , x 1d =[x d ,y d ] T is the expected track; Derivative the tracking error z1, we get: Design virtual control quantity x 2v : Wherein, k1>0 is an adjustable first positive constant; Define the virtual control error z2 as: z2=x2-x 2v (33) Derivative the virtual control error z2, we get: Design virtual control quantity x 3v : Wherein, k2>0 is an adjustable second positive constant; Define the virtual control error z3 as: z3=x3-x 3v (36) Derivative the virtual control error z3, we get: Design virtual control quantity x 4v : Wherein, k3>0 is an adjustable third positive constant; Define the virtual control error z4 as: z4=x4-x 4v (39) Derivative the virtual control error z4, we get: Finally, the backstepping control law is obtained as: Wherein, k4>0 is an adjustable fourth positive constant; Substituting formulas (32), (35), (38), and (41) into formulas (31), (34), (37), and (40), we obtain the closed-loop error dynamic system: Ignoring the compensation of the control law for disturbance, in order to analyze the impact of disturbance D on the unmanned boat system, the Lyapunov function is defined as: By taking the derivative of formula (43), we get: Substituting formula (42) into formula (44), we obtain: From formula (45), we can see that Whether it is negative, that is, whether the system is asymptotically stable depends on Positive and negative: If It can guarantee It indicates that interference D is beneficial to the system and should be retained; if but If the positive or negative value of cannot be determined, it means that the interference D is detrimental to the system and should be eliminated; According to z4 and interference D in formula (45), the interference characteristic index is defined as: γ=z4⊙D(46) Among them, ⊙ represents the dot product, γ=[γ1,γ2] T , γ i represents the i-th element of γ, and D is estimated by replace; The interference compensation gain E(γ)=diag{E(γ1),E(γ2)} is defined as: Among them, κ i >0, i=1, 2 indicates critical value; Based on the backstepping control law of formula (41), the backstepping control law based on interference utilization is designed as: The interference utilization-based backstepping control law of formula (48) is used to utilize favorable interference, compensate for harmful interference, and realize anti-interference control of the unmanned boat.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the unmanned boat trajectory planning and anti-interference control method as described in any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the unmanned boat track planning and anti-interference control method as described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Unmanned vehicle path planning and tracking control method based on differential flatness and active-disturbance rejection
CN107272692A
Unmanned surface vehicle path tracking guidance strategy and disturbance compensation method
CN111045332A
Interference processing method and device for manned submersible system and storage medium
CN112198798A
Fault-tolerant control method and system for manned submersible and electronic equipment
CN116663148A
Method and system for planning path of unmanned surface vehicle based on forward / reverse data-driven linear parameter-varying genetic algorithm
WO2021035911A1
