Underwater vehicle path tracking control method and device

Through the target sight navigation strategy and nonlinear model predictive controller, the joint offset parameters and swing frequency of the underwater vehicle are optimized, which solves the problem of low tracking efficiency of the underwater vehicle and achieves efficient and accurate path tracking control.

CN118584948APending Publication Date: 2024-09-03INST OF AUTOMATION CHINESE ACAD OF SCI
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410478418.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-19
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In the existing technology, underwater vehicles have under-actuated and input coupling characteristics, which lead to low underwater tracking efficiency and affect the efficiency of underwater operations.

Method used

The target line of sight navigation strategy is used to process the reference path and position data, and the optimal value is solved through a nonlinear model predictive controller with switching capabilities to obtain the optimal joint offset parameters and optimal joint swing frequency of the underwater vehicle to achieve motion. Mode switching to optimize the aircraft's path tracking control.

Benefits of technology

It improves the efficiency and accuracy of path tracking control of underwater vehicles, gives full play to the maneuverability of the vehicle, and achieves efficient tracking of different target paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118584948A
    Figure CN118584948A
Patent Text Reader

Abstract

The invention provides an underwater vehicle path tracking control method and device. The method comprises the following steps: acquiring position data and speed data of an underwater vehicle; processing the reference path and the position data according to a navigation strategy to obtain a target course angle; according to the target course angle, the position data and the speed data, optimal value solving is carried out on the nonlinear model prediction controller with the switching capacity, and the optimal joint offset parameter and the optimal joint swing frequency of the underwater vehicle are obtained; and switching the motion modes of the underwater vehicle according to the course angle error, the optimal joint offset parameter and the optimal joint swing frequency. According to the method, tracking control tasks of different target paths of the underwater vehicle can be realized, and the accuracy and efficiency of path tracking control of the underwater vehicle are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of motion control technology, and in particular to a path tracking control method and device for an underwater vehicle. Background Art

[0002] At present, the problem of path tracking control in underwater environment has been studied for a long time and has important application significance for mission scenarios such as rapid search and rescue in marine environment.

[0003] In the related technologies, for underwater vehicles with high maneuverability and high propulsion performance, such as robotic fish, the current research focuses on how to optimize and further improve the swimming performance of the system. There is still little research on path tracking control in highly maneuverable underwater environments. At the same time, robotic fish have the characteristics of under-actuation and input coupling, which leads to low efficiency in underwater tracking of robotic fish and affects underwater operations. Summary of the invention

[0004] The present invention provides an underwater vehicle path tracking control method and device, which are used to solve the defects of underwater vehicles in the prior art, that is, the underwater vehicles have under-driven and input coupled characteristics, resulting in low efficiency of underwater tracking of underwater vehicles, thereby improving the efficiency and accuracy of underwater tracking of underwater vehicles.

[0005] The present invention provides a path tracking control method for an underwater vehicle, comprising:

[0006] Collecting position and speed data of underwater vehicles;

[0007] The reference path and the position data are processed according to the target sight line navigation strategy to obtain a target heading angle; the optimal value of a nonlinear model predictive controller with switching capability is solved according to the target heading angle, the position data and the speed data to obtain the optimal joint offset parameters and the optimal joint swing frequency of the underwater vehicle;

[0008] The optimization goal of the nonlinear model predictive controller with switching capability is to realize a planar high-maneuverability path following control task based on multiple motion modes of the underwater vehicle, and the cost function of the nonlinear model predictive controller with switching capability is determined based on a state error weight matrix, a control input weight matrix and an interrupt state error weight matrix;

[0009] The motion mode of the underwater vehicle is switched according to the target heading angle, the optimal joint offset parameter and the optimal joint swing frequency.

[0010] According to a method for underwater vehicle path tracking control provided by the present invention, the processing of the reference path and the position data according to the target sight line navigation strategy to obtain the target heading angle includes:

[0011] determining a forward-looking intersection point of the underwater vehicle based on the reference path and the position data;

[0012] The tracking error of the underwater vehicle is determined according to the foresight intersection point and the position data, and the target heading angle corresponding to the tracking error is calculated using the following formula:

[0013]

[0014] Among them, ψ d is the target heading angle, (X e , Y e ) is the coordinate corresponding to the tracking error; sgn is the sign function.

[0015] According to a path tracking control method for an underwater vehicle provided by the present invention, the cost function is expressed by the following formula:

[0016]

[0017] The constraints of the nonlinear model predictive controller with switching capability are expressed as:

[0018] subjectto:x i+1 =f(x i ,u i ),i=0,I,N p -1;

[0019] u i =u Nc ,i=N c ,I,N p ;

[0020] x i ∈X,u i ∈U;

[0021] Among them, x d,i Represents the target state at the i-th prediction cycle; x i is the actual state at the i-th prediction period, x i+1 is the actual state at the i+1th prediction period, u i is the control input in the i-th prediction period, x d,Np is the actual state at the Npth prediction period, i represents the i-th prediction period; f(x i ,u i ) is the dynamic model of the underwater vehicle; N p and N c Represent the prediction time domain and control time domain respectively; X is the state constraint set, U is the control constraint set, l is the state cost function, l TTerminal cost function.

[0022] According to a path tracking control method for an underwater vehicle provided by the present invention, the collecting of position data and speed data of the underwater vehicle comprises:

[0023] Acquire the position data through a kinematic model of the underwater vehicle; acquire the speed data through a dynamic model of the underwater vehicle;

[0024] The kinematic model is expressed as follows:

[0025]

[0026]

[0027]

[0028] The kinetic model is represented by the following formula:

[0029]

[0030]

[0031]

[0032] V bx is the system forward velocity, V by is the system lateral velocity, ψ is the heading angle, is the system's horizontal position derivative, is the ordinate derivative of the system, is the system heading angle derivative; M x ,M y ,Λ z Respectively represent the fish body mass and moment of inertia, including the original mass and additional mass, K x ,K y ,K τ They represent the nonlinear damping terms respectively; K t =1 / 2m t L 2 represents the tail fin thrust coefficient, m t =1 / 4ρd 2 is the virtual mass per unit length of the tail fin, L is the length of the tail fin, ρ is the water density, d is the height of the tail fin section, K force and K moment Represented as the scale factors of force and moment respectively; K force is a constant, K moment is a linear function of the offset angle α0, r bt Represents the distance from the center of mass to the force center of the tail fin.

[0033] According to a method provided by the present invention, the switching of the motion mode of the underwater vehicle according to the target heading angle, the optimal joint offset parameter and the optimal joint swing frequency includes:

[0034] Obtaining a heading angle error according to a difference between the target heading angle and an actual heading angle of the underwater vehicle;

[0035] When the heading angle error is greater than the error threshold, the optimal joint swing frequency is used as the swing frequency of the underwater vehicle, the optimal joint bias parameters are used as the joint bias parameters of the underwater vehicle, and the position mode is used to control the underwater vehicle to output a sinusoidal law with bias parameters until the heading angle error is lower than the error threshold.

[0036] According to a method provided by the present invention, after obtaining the heading angle error according to the difference between the target heading angle and the actual heading angle of the underwater vehicle, the method further includes:

[0037] When the heading angle error is less than the error threshold, the speed mode is used to control the underwater vehicle to output a sinusoidal law without bias parameters, and the underwater vehicle is controlled to execute a straight-line swimming mode until the heading angle error is higher than the error threshold.

[0038] The present invention also provides a path tracking control device for an underwater vehicle, comprising:

[0039] A data acquisition module, used to collect position data and speed data of the underwater vehicle;

[0040] A calculation module processes the reference path and the position data according to the target sight navigation strategy to obtain a target heading angle; solves the optimal value of a nonlinear model predictive controller with switching capability according to the target heading angle, the position data and the speed data to obtain the optimal joint bias parameters and the optimal joint swing frequency of the underwater vehicle; wherein the optimization goal of the nonlinear model predictive controller with switching capability is to achieve a planar high-maneuverability path following control task based on multiple motion modes of the underwater vehicle, and the cost function of the nonlinear model predictive controller with switching capability is determined based on a state error weight matrix, a control input weight matrix and an interrupt state error weight matrix

[0041] A motion control module is used to switch the motion mode of the underwater vehicle according to the target heading angle, the optimal joint offset parameter and the optimal joint swing frequency.

[0042] The present invention also provides 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 program, the underwater vehicle path tracking control method as described in any one of the above is implemented.

[0043] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the underwater vehicle path tracking control method as described in any one of the above is implemented.

[0044] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the underwater vehicle path tracking control method as described in any one of the above is implemented.

[0045] The underwater vehicle path tracking control method and device provided by the present invention process the reference path and position data through a navigation strategy to obtain a target heading angle; solve the optimal value of a nonlinear model predictive controller with switching capability according to the target heading angle, position data and speed data to obtain the optimal joint offset parameters and the optimal joint swing frequency of the underwater vehicle; finally, the motion mode of the underwater vehicle is switched according to the target heading angle, the optimal joint offset parameters and the optimal joint swing frequency, so as to realize the tracking control task of different target paths of the underwater vehicle and improve the accuracy and efficiency of the underwater vehicle path tracking control. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 It is one of the flow charts of the underwater vehicle path tracking control method provided by the present invention;

[0048] Figure 2 This is the second flow chart of the underwater vehicle path tracking control method provided by the present invention;

[0049] Figure 3 It is a structural schematic diagram of the underwater vehicle path tracking control device provided by the present invention;

[0050] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] Combine the following Figure 1-Figure 3 The present invention describes an underwater vehicle path tracking control method and device.

[0053] Figure 1 FIG. 1 is one of the flow charts of the underwater vehicle path tracking control method provided by the present invention, such as Figure 1 As shown, the underwater vehicle path tracking control method comprises the following steps:

[0054] Step 110: Collect the position data and speed data of the underwater vehicle.

[0055] In this step, the underwater vehicle includes a bionic device that performs underwater operations, such as a robotic fish.

[0056] In this embodiment, the position data includes a vector representation of the robot fish position in the world coordinate system, and the position data is represented by η = [X, Y, ψ] T ∈R 3 .

[0057] In this embodiment, the velocity data includes a velocity vector representation in the coordinate system of the robot fish. For example, the position data is v=[V bx ,V by ,Ω bz ] T ∈R 3 .

[0058] Step 120: Process the reference path and position data according to the navigation strategy to obtain the target heading angle; solve the optimal value of the nonlinear model predictive controller with switching capability according to the target heading angle, position data and speed data to obtain the optimal joint bias parameters and optimal joint swing frequency of the underwater vehicle; wherein, the optimization goal of the nonlinear model predictive controller with switching capability is to achieve a planar high-maneuverability path following control task based on multiple motion modes of the underwater vehicle, and the cost function of the nonlinear model predictive controller with switching capability is determined based on the state error weight matrix, the control input weight matrix and the interrupt state error weight matrix.

[0059] In this step, the navigation strategy includes a line-of-sight guidance algorithm (LOS) and a path tracking line-of-sight method.

[0060] In this embodiment, the forward-looking intersection point of the underwater vehicle can be calculated by referring to the coordinate data corresponding to the path and the above-mentioned position data, and then the tracking error of the underwater vehicle in the current field of view is calculated, and finally the target heading angle corresponding to the tracking error is determined.

[0061] In this embodiment, the nonlinear model predictive controller with switching capability is a predictive controller of a switchable nonlinear model. By designing a nonlinear model predictive controller with switching capability to solve nonlinear optimization problems, it is possible to generate optimal control quantities including swing frequency and phase, which are used for subsequent adjustment of joint swing and joint offset of the underwater vehicle.

[0062] In this embodiment, to construct a nonlinear model predictive control task, the system state vector and control input of the nonlinear model predictive controller with switching capability can be expressed as x=[X, Y, ψ, V bx ,V by ,Ω bz ] T and u=[u1,u2] T .

[0063] Correspondingly, the cost function is expressed as follows:

[0064]

[0065] The constraints of the nonlinear model predictive controller with switching capability are expressed as:

[0066] subjectto:x i+1 =f(x i ,u i ),i=0,U,N p -1;

[0067] u i =u Nc ,i=N c ,I,N p ;

[0068] x i ∈X,u i ∈U;

[0069] Among them, x d,i Represents the target state at the i-th prediction cycle; x d,i Represents the target state at the i-th prediction cycle; x i is the actual state at the i-th prediction period, xi+1 is the actual state at the i+1th prediction period, u i is the control input in the i-th prediction period, x d,Np is the actual state at the Npth prediction period, i represents the i-th prediction period; f(x i ,u i ) is the dynamic model of the underwater vehicle; N p and N c Represent the prediction time domain and control time domain respectively; X is the state constraint set, U is the control constraint set, l is the state cost function, l T Terminal cost function.

[0070] In this embodiment, the target state is represented as:

[0071] x d,i =[X d,i ,Y d,i ,ψ d,i ,V d,bx ,V d,by ,Ω d,bz ] T ;

[0072] It should be noted that since the line of sight navigation method will be the target front view point position coordinates (X d,i ,Y d,i ) is converted into the system's heading angle ψ for the target d,i Tracking, so X d,i ,Y d,i Set to 0, ψ d,i The target forward speed V is obtained by solving the forward intersection point by predicting the state and the line of sight navigation method. d,bx Set to 1.5m / s, target lateral velocity V d,by and the target steering angular velocity V d,bz Set to 0.

[0073] In this embodiment, l and l T are the state cost function and the terminal cost function, which are expressed as follows:

[0074] l(x i , x d,i ,u i )=(x i -x d,i ) T Q(x i -x d,i )+u i T Ru i

[0075] l T (xNp , x d,Np )=(x Np -x d,Np ) T P(x Np -x d,Np )

[0076] Among them, Q, R and P represent the state error weight matrix, the control input weight matrix and the terminal state error weight matrix respectively, Q = diag(0,0,q1,q2,q3,q4), where the weight coefficient relationship is: q1>>q2=q3=q4, Q and P are semi-positive definite matrices, and R is a positive definite matrix.

[0077] In this embodiment, by setting a weight strategy with switching capability for a nonlinear model predictive controller with switching capability, multimodal motion is scheduled through a yaw error threshold and an angular velocity threshold, so that tracking control tasks for different target paths can be completed. The state constraints and control input constraints of the robot fish system are fully considered, and overshoot is significantly reduced in the control task, thereby improving the path tracking control quality.

[0078] In this embodiment, the adjustment strategy of the motion mode of the underwater vehicle can be divided into the following scenarios:

[0079] (1) The first strategy is that when the heading angle error is large and exceeds the set threshold, A low-frequency swing steering strategy is adopted, and the error weight is set as: q1>>q2=q3=q4, so as to quickly reduce the heading error, so that the robot fish moves towards the target front view point;

[0080] (2) The second strategy is that when the heading angle error is lower than the threshold The error weight is set as: q1<<q2=q3=q4, and the robot fish increases its swimming speed to track the target speed.

[0081] Step 130: Switch the motion mode of the underwater vehicle according to the target heading angle, the optimal joint offset parameters and the optimal joint swing frequency.

[0082] In this step, the motion modes of the underwater vehicle include a low-speed turning mode, a fast straight swimming mode, and a gliding turning mode.

[0083] In this embodiment, switching the motion mode of the underwater vehicle includes the following scenarios:

[0084] (1) Switching the motion mode of the underwater vehicle according to the target heading angle, the optimal joint offset parameter and the optimal joint swing frequency includes: obtaining a heading angle error according to the difference between the target heading angle and the actual heading angle of the underwater vehicle; when the heading angle error is greater than an error threshold, using the optimal joint swing frequency as the swing frequency of the underwater vehicle, using the optimal joint offset parameter as the joint offset parameter of the underwater vehicle, and using the position mode to control the underwater vehicle to output a sinusoidal law with the offset parameter until the heading angle error is lower than the error threshold;

[0085] (2) In this embodiment, after obtaining the heading angle error according to the difference between the target heading angle and the actual heading angle of the underwater vehicle, the method further includes:

[0086] When the heading angle error is less than the error threshold, the speed mode is used to control the underwater vehicle to output a sinusoidal law without bias parameters, and the underwater vehicle is controlled to execute a straight-line swimming mode until the heading angle error is higher than the error threshold.

[0087] In this embodiment, after the underwater vehicle is controlled to execute a straight-line swimming mode until the heading angle error is higher than the error threshold, the switching strategy of the motion mode of the underwater vehicle is switched to the first control strategy, and the two control strategies are autonomously switched until the control task is completed, thereby realizing autonomous switching of multiple motion modes of the underwater vehicle and giving full play to the advantages of the excellent maneuverability of the underwater vehicle in control tasks.

[0088] An underwater vehicle path tracking control method provided by an embodiment of the present invention processes a reference path and position data through a navigation strategy to obtain a target heading angle; solves the optimal value of a nonlinear model predictive controller with switching capability according to the target heading angle, position data and speed data to obtain optimal joint offset parameters and optimal joint swing frequency of the underwater vehicle; finally, the motion mode of the underwater vehicle is switched according to the target heading angle, optimal joint offset parameters and optimal joint swing frequency, thereby realizing tracking control tasks of different target paths of the underwater vehicle and improving the accuracy and efficiency of the underwater vehicle path tracking control.

[0089] In some embodiments, processing the reference path and position data according to the navigation strategy to obtain the target heading angle includes: determining the foresight intersection point of the underwater vehicle according to the reference path and the position data; determining the tracking error of the underwater vehicle according to the foresight intersection point and the position data, and calculating the target heading angle corresponding to the tracking error using the following formula:

[0090]

[0091] Among them, ψ d is the target heading angle, (X e , Ye ) is the coordinate corresponding to the tracking error; sgn is the sign function.

[0092] Taking the underwater vehicle as a robotic fish, we first set the sight area of ​​the robotic fish system to be fixed at the origin [X, Y] of the robotic fish coordinate system with a radius γ. Then, we can solve the forward intersection point p of the sight area and the target path through geometric relationships. los and the backsight intersection point p′ los , where the foresight intersection point p los =[X d ,Y d ] is regarded as the target path point of the robotic fish; finally, the tracking error of the robotic fish is calculated by the following formula:

[0093] X e =XX d ;

[0094] Y e =YY d ;

[0095] ψ e =ψ-ψ d ;

[0096] Among them, ψ d is the target heading angle, ψ e is the heading angle error.

[0097] An underwater vehicle path tracking control method provided by an embodiment of the present invention determines the forward-looking intersection point of the underwater vehicle based on a reference path and position data; determines the tracking error of the underwater vehicle based on the forward-looking intersection point and the position data, and then calculates the target heading angle corresponding to the tracking error. The method has high reliability and provides data support for the subsequent solution of a nonlinear model predictive controller with switching capability.

[0098] In some embodiments, collecting the position data and speed data of the underwater vehicle includes: obtaining the position data through a kinematic model of the underwater vehicle; obtaining the speed data through a dynamic model of the underwater vehicle; wherein the kinematic model is represented by the following formula:

[0099]

[0100]

[0101]

[0102] The kinetic model is expressed by the following formula:

[0103]

[0104]

[0105]

[0106] Among them, V bx is the system forward velocity, V by is the system lateral velocity, ψ is the heading angle, is the system's horizontal position derivative, is the ordinate derivative of the system, is the system heading angle derivative; M x ,M y ,Λ z Respectively represent the fish body mass and moment of inertia, including the original mass and additional mass, K x ,K y ,K τ They represent the nonlinear damping terms respectively; K t =1 / 2m t L 2 represents the tail fin thrust coefficient, m t =1 / 4ρd 2 is the virtual mass per unit length of the tail fin, L is the length of the tail fin, ρ is the water density, d is the height of the tail fin section, K force and K moment Represented as the scale factors of force and moment respectively; K force is a constant, K moment is a linear function of the offset angle α0, r bt Represents the distance from the center of mass to the force center of the tail fin.

[0107] In this embodiment, the kinematic model of the robot fish can be designed by using the robot fish position vector representation in the world coordinate system and the velocity vector representation in the robot fish body coordinate system and designing the joint motion law using the sinusoidal bias signal shown in the following formula:

[0108] α(t)=α0+α a sin(2πft);

[0109] Among them, α represents the active joint deflection angle, α0, α a , f represent the offset angle, active joint swing amplitude and frequency respectively.

[0110] In this embodiment, a tail fin hydrodynamic model is established based on Lighthill's large-amplitude slender body theory. At the same time, the hydrodynamic force applied to the fish body can be regarded as viscous resistance and additional mass force, and then the corresponding dynamic model of the robotic fish system is designed.

[0111] In this embodiment, the control input of the fish-control system is expressed as:

[0112]

[0113]

[0114] Among them, u1 and u2 are output control quantities, ω α is the joint angular velocity.

[0115] In this embodiment, after the controller outputs the control quantities u1 and u2, the corresponding equations can be solved to obtain the swing frequency f and the phase parameter value α0 of the robotic fish.

[0116] An underwater vehicle path tracking control method provided by an embodiment of the present invention obtains position data through a kinematic model of the underwater vehicle, and obtains speed data through a dynamic model of the underwater vehicle, thereby providing data support for subsequent acquisition of a target heading angle and solving the optimal value of a nonlinear model predictive controller with switching capability.

[0117] Figure 2 FIG. 2 is a flow chart of the underwater vehicle path tracking control method provided by the present invention. Figure 2 In the embodiment shown, the position data [X, Y, ψ] and speed data [V bx ,V by ,Ω bz ], corresponding to Figure 2 In: Position and IMU; Use the navigation algorithm based on LOS to calculate the position parameters corresponding to the reference path [X d , Y d ] and [X,Y] in the position data to obtain the target heading angle ψ d , and then ψ d , [X, Y, ψ] and [V bx ,V by ,Ω bz ] is input into a nonlinear model predictive controller with switching capability (corresponding to an adaptive nonlinear model predictive controller) to optimize the cost function and obtain the optimal joint bias parameter α0 and the optimal joint swing frequency f, thereby realizing the switching of the robot fish motion mode; wherein, the nonlinear model predictive controller with switching capability is determined based on constraints and a weight matrix with switching capability.

[0118] The underwater vehicle path tracking control device provided by the present invention is described below. The underwater vehicle path tracking control device described below and the underwater vehicle path tracking control method described above can be referenced to each other.

[0119] Figure 3 FIG. 1 is a schematic diagram of the structure of the underwater vehicle path tracking control device provided by the present invention. Figure 3As shown, the underwater vehicle path tracking control device includes: a data acquisition module 310, a calculation module 320, and a motion control module 330.

[0120] The data acquisition module 310 is used to collect the position data and speed data of the underwater vehicle;

[0121] The calculation module 320 processes the reference path and position data according to the navigation strategy to obtain the target heading angle; solves the optimal value of the nonlinear model predictive controller with switching capability according to the target heading angle, position data and speed data to obtain the optimal joint bias parameters and optimal joint swing frequency of the underwater vehicle; wherein the optimization goal of the nonlinear model predictive controller with switching capability is to realize the planar high-maneuverability path following control task based on multiple motion modes of the underwater vehicle, and the cost function of the nonlinear model predictive controller with switching capability is determined based on the state error weight matrix, the control input weight matrix and the interrupt state error weight matrix

[0122] The motion control module 330 is used to switch the motion mode of the underwater vehicle according to the target heading angle, the optimal joint offset parameters and the optimal joint swing frequency.

[0123] An underwater vehicle path tracking control device provided by an embodiment of the present invention processes a reference path and position data through a navigation strategy to obtain a target heading angle; solves the optimal value of a nonlinear model predictive controller with switching capability according to the target heading angle, position data and speed data to obtain optimal joint offset parameters and optimal joint swing frequency of the underwater vehicle; finally, the motion mode of the underwater vehicle is switched according to the target heading angle, optimal joint offset parameters and optimal joint swing frequency, thereby realizing tracking control tasks of different target paths of the underwater vehicle and improving the accuracy and efficiency of the underwater vehicle path tracking control.

[0124] Figure 4 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 4As shown, the electronic device may include: a processor (processor) 410, a communication interface (Communications Interface) 420, a memory (memory) 430 and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 can call the logic instructions in the memory 430 to execute the underwater vehicle path tracking control method, which includes: collecting the position data and speed data of the underwater vehicle; processing the reference path and position data according to the navigation strategy to obtain the target heading angle; solving the optimal value of the nonlinear model predictive controller with switching capability according to the target heading angle, position data and speed data to obtain the optimal joint bias parameters and optimal joint swing frequency of the underwater vehicle; wherein, the optimization goal of the nonlinear model predictive controller with switching capability is to realize the planar high-maneuverability path following control task based on multiple motion modes of the underwater vehicle, and the cost function of the nonlinear model predictive controller with switching capability is determined based on the state error weight matrix, the control input weight matrix and the interrupt state error weight matrix; the motion mode of the underwater vehicle is switched according to the target heading angle, the optimal joint bias parameters and the optimal joint swing frequency.

[0125] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0126] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the underwater vehicle path tracking control method provided by the above methods, the method including: collecting position data and speed data of the underwater vehicle; processing the reference path and position data according to the navigation strategy to obtain the target heading angle; solving the optimal value of a nonlinear model predictive controller with switching capability according to the target heading angle, position data and speed data to obtain the optimal joint bias parameters and optimal joint swing frequency of the underwater vehicle; wherein the optimization goal of the nonlinear model predictive controller with switching capability is to realize the planar high-maneuverability path following control task based on multiple motion modes of the underwater vehicle, and the cost function of the nonlinear model predictive controller with switching capability is determined based on the state error weight matrix, the control input weight matrix and the interrupt state error weight matrix; the motion mode of the underwater vehicle is switched according to the target heading angle, the optimal joint bias parameters and the optimal joint swing frequency.

[0127] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the underwater vehicle path tracking control method provided by the above-mentioned methods, the method comprising: collecting position data and speed data of the underwater vehicle; processing the reference path and position data according to the navigation strategy to obtain the target heading angle; solving the optimal value of a nonlinear model predictive controller with switching capability according to the target heading angle, position data and speed data to obtain the optimal joint bias parameters and optimal joint swing frequency of the underwater vehicle; wherein the optimization goal of the nonlinear model predictive controller with switching capability is to realize a planar high-maneuverability path following control task based on multiple motion modes of the underwater vehicle, and the cost function of the nonlinear model predictive controller with switching capability is determined based on a state error weight matrix, a control input weight matrix and an interrupt state error weight matrix; the motion mode of the underwater vehicle is switched according to the target heading angle, the optimal joint bias parameters and the optimal joint swing frequency.

[0128] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A path tracking control method for an underwater vehicle, characterized in that: include: Collecting position and speed data of underwater vehicles; Processing the reference path and the position data according to the target sight line navigation strategy to obtain a target heading angle; Solving the optimal value of a nonlinear model predictive controller with switching capability according to the target heading angle, the position data and the speed data to obtain the optimal joint offset parameters and the optimal joint swing frequency of the underwater vehicle; The optimization goal of the nonlinear model predictive controller with switching capability is to realize a planar high-maneuverability path following control task based on multiple motion modes of the underwater vehicle, and the cost function of the nonlinear model predictive controller with switching capability is determined based on a state error weight matrix, a control input weight matrix and an interrupt state error weight matrix; The motion mode of the underwater vehicle is switched according to the target heading angle, the optimal joint offset parameter and the optimal joint swing frequency.

2. The underwater vehicle path tracking control method according to claim 1, characterized in that: The processing of the reference path and the position data according to the target sight line navigation strategy to obtain the target heading angle includes: determining a forward-looking intersection point of the underwater vehicle based on the reference path and the position data; The tracking error of the underwater vehicle is determined according to the foresight intersection point and the position data, and the target heading angle corresponding to the tracking error is calculated using the following formula: Among them, ψ d is the target heading angle, (X e , Y e ) is the coordinate corresponding to the tracking error; sgn is the sign function.

3. The underwater vehicle path tracking control method according to claim 1, characterized in that: The cost function is expressed by the following formula: The constraints of the nonlinear model predictive controller with switching capability are expressed as: subjectto:x i+1 =f(x i ,u i ),i=0,I,N p -1; u i =u Nc ,i=Nc,I,N p ; x i ∈X,u i ∈U; Among them, x d,i Represents the target state at the i-th prediction cycle; x d,i Represents the target state at the i-th prediction cycle; x i is the actual state at the i-th prediction period, x i+1 is the actual state at the i+1th prediction period, u i is the control input in the i-th prediction period, x d,Np is the actual state at the Npth prediction period, i represents the i-th prediction period; f(x i ,u i ) is the dynamic model of the underwater vehicle; N p and N c Represent the prediction time domain and control time domain respectively; X is the state constraint set, U is the control constraint set, l is the state cost function, l T Terminal cost function.

4. The underwater vehicle path tracking control method according to claim 1, characterized in that: The collecting of the position data and speed data of the underwater vehicle comprises: Acquire the position data through a kinematic model of the underwater vehicle; acquire the speed data through a dynamic model of the underwater vehicle; The kinematic model is expressed as follows: The kinetic model is represented by the following formula: V bx is the system forward velocity, V by is the system lateral velocity, ψ is the heading angle, is the system's horizontal position derivative, is the ordinate derivative of the system, is the system heading angle derivative; M x ,M y ,Λ z Respectively represent the fish body mass and moment of inertia, including the original mass and additional mass, K x ,K y ,K τ They represent the nonlinear damping terms respectively; K t =1 / 2m t L 2 represents the tail fin thrust coefficient, m t =1 / 4ρd 2 is the virtual mass per unit length of the tail fin, L is the length of the tail fin, ρ is the water density, d is the height of the tail fin section, K force and K moment Represented as the scale factors of force and moment respectively; K force is a constant, K moment is a linear function of the offset angle α0, r bt Represents the distance from the center of mass to the force center of the tail fin.

5. The underwater vehicle path tracking control method according to claim 1, characterized in that: The switching of the motion mode of the underwater vehicle according to the target heading angle, the optimal joint offset parameter and the optimal joint swing frequency comprises: Obtaining a heading angle error according to a difference between the target heading angle and an actual heading angle of the underwater vehicle; When the heading angle error is greater than the error threshold, the optimal joint swing frequency is used as the swing frequency of the underwater vehicle, the optimal joint bias parameters are used as the joint bias parameters of the underwater vehicle, and the position mode is used to control the underwater vehicle to output a sinusoidal law with bias parameters until the heading angle error is lower than the error threshold.

6. The underwater vehicle path tracking control method according to claim 5, characterized in that: After obtaining the heading angle error according to the difference between the target heading angle and the actual heading angle of the underwater vehicle, the method further includes: When the heading angle error is less than the error threshold, the speed mode is used to control the underwater vehicle to output a sinusoidal law without bias parameters, and the underwater vehicle is controlled to execute a straight-line swimming mode until the heading angle error is higher than the error threshold.

7. A path tracking control device for an underwater vehicle, characterized in that: include: A data acquisition module, used to collect position data and speed data of the underwater vehicle; A calculation module processes the reference path and the position data according to the target sight line navigation strategy to obtain a target heading angle; The optimal value of the nonlinear model predictive controller with switching capability is solved according to the target heading angle, the position data and the speed data to obtain the optimal joint bias parameters and the optimal joint swing frequency of the underwater vehicle; wherein the optimization goal of the nonlinear model predictive controller with switching capability is to realize the planar high-maneuverability path following control task based on the multiple motion modes of the underwater vehicle, and the cost function of the nonlinear model predictive controller with switching capability is determined based on the state error weight matrix, the control input weight matrix and the interrupt state error weight matrix A motion control module is used to switch the motion mode of the underwater vehicle according to the target heading angle, the optimal joint offset parameter and the optimal joint swing frequency.

8. 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 program, the underwater vehicle path tracking control method as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the underwater vehicle path tracking control method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the underwater vehicle path tracking control method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Robot control method, device and equipment and storage medium

    CN119916724A

  • Target tracking method and device and underwater vehicle

    CN121934621A