Avoidance algorithm based on collision avoidance angle and repulsive force field
Patent Information
- Application Number
- CN202410679094.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-08-30
Smart Images

Figure CN118568955A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of ship avoidance, in particular to an avoidance algorithm based on an avoidance angle and a repulsive force field. Background Art
[0002] At present, the existing research on avoidance algorithms is still limited. In actual ship avoidance at sea, drivers usually prefer to change course rather than change speed. Due to the large inertia of the ship, reducing the propeller speed cannot effectively reduce the ship's speed. When the ship encounters an obstacle, it is more important to make the ship bypass the obstacle smoothly rather than stop or reverse the ship. On the other hand, how to balance the ship's collision avoidance ability and the limited performance of the actuator is an interesting and challenging problem in formal control.
[0003] Therefore, from a practical point of view, it is more important to study the unmanned ship formation control with input amplitude saturation and rate saturation. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide an avoidance algorithm based on avoidance angle and repulsive field, which can realize collision avoidance and obstacle avoidance control of underdriven ship formation under actuator amplitude and rate saturation.
[0005] The technical problem to be solved by the present invention is achieved by the following technical solution. The present invention is an avoidance algorithm based on the avoidance angle and the repulsive field, which includes
[0006] (1) Actuator amplitude limitation and rate limitation:
[0007] The actuator with amplitude and rate limits is represented by a nested saturation system, which consists of two saturation functions SAT m and SAT r , SAT m is the amplitude saturation function, is the diagonal matrix of actuator control gains, k 11 ,k 12 ,k 13 is a positive constant; To allow for a diagonal matrix representing saturation at different locations, k 21 ,k 22 ,k 23 is a positive constant;
[0008] SAT m It is expressed as:
[0009]
[0010] Where: i,max and are the maximum and minimum values of the vector containing the force and torque, respectively, SAT r Similar to SAT m ; The time response of the combined actuator group is given by:
[0011]
[0012] In the formula, SAT r is the saturation function of the actuator rate;
[0013] (2) Collision avoidance algorithm:
[0014] The repulsive field is introduced to perform collision-free formation control between unmanned underwater vehicles, as follows:
[0015]
[0016] Where: α c is a normal number, is the collision avoidance radius of the jth USV;
[0017] Define ρ ij is the relative distance between the i-th following ship and the pilot ship j, and its equation and differential equation are as follows:
[0018]
[0019]
[0020] λ ij is the relative angle between the ith USV and the pilot ship, expressed as follows:
[0021] λ ij =arctan2(y j -y i ,x j -x i )
[0022] The differential equation is as follows:
[0023]
[0024] Drive the i-th following ship into a formation mode with relative positions so that:
[0025]
[0026] Where: ij,d and λ ij,d are the expected distance and expected angle respectively, c1 and c2 are sufficiently small positive constants;
[0027] Given the following constraints:
[0028]
[0029] Where: u i 、v i 、r i the boundaries of; u j , v j , r j the boundaries of;
[0030] (3) Observer design:
[0031] Will Rewrite as
[0032]
[0033] Where ζ i,js is the vector ζ i =[ζ i,1 ,ζ i,2 ,ζ i,3 ] T A variable of , js = 1, 2 or 3;
[0034] The error dynamics of the observer is expressed as:
[0035]
[0036] In the formula
[0037] is the estimation error;
[0038] (4) Obstacle avoidance algorithm:
[0039] The expected ship obstacle avoidance trajectory model is designed as follows:
[0040]
[0041] Where: represents the heading angle of the edge of the expanded field of view cone;
[0042]
[0043] The field of view cone expands by an angle α in both the positive and negative directions. o , the candidate obstacle avoidance heading reference is defined as
[0044]
[0045] When the kth obstacle or the jth USV is moving, each edge of the extended field of view cone rotates around the center of the kth obstacle to ensure that the field of view always remains around the obstacle or USV and accurately perceives its direction of movement.
[0046] The technical problem to be solved by the present invention can also be further achieved by the following technical solutions. For the avoidance algorithm based on the collision avoidance angle and the repulsive field described above, in the algorithm, the dynamics and kinematics model of the i-th unmanned ship is designed as follows:
[0047]
[0048] Where: η i =[x i ,y i ,ψ i ] T Indicates that in the geocentric coordinate system X E O E Y E The position vector in x i is the vertical position, y i is the lateral position, ψ i is the yaw angle;
[0049] v i =[u i ,v i ,r i ] T In the rigid body coordinate system X B O B Y B The position vector in i ,v i ,r i are surge angular velocity, swing angular velocity and yaw angular velocity respectively;
[0050] Matrix J i (ψ i ) is expressed as:
[0051]
[0052] M i =diag[m i,11 ,m i,22 ,m i,33 ] is the inertia matrix, m i,11 ,m i,22 ,m i,33 is the inertial mass; the unknown uncertainty ζ i Including hydrodynamic damping parameters and time-varying disturbances; τ i =[τ i,u ,0,τ i,r ]T , where τ i,u and τ i,r is the input signal.
[0053] The technical problem to be solved by the present invention can be further achieved by the following technical solutions. For the avoidance algorithm based on the avoidance angle and the repulsive field described above, the algorithm also includes a controller design:
[0054] Step 1: Define the formation position error vector as follows
[0055] P ij =[ρ ij,e ,λ ij,e ] T
[0056] In the formula, ρ ij,e =ρ ij -ρ ij,d ,λ ij,e =λ ij -λ ij,d ;
[0057] Step 2: Define the heading angle error as follows
[0058]
[0059] The filter The derived signal; ψ fdca is the switching signal, and its expression is as follows:
[0060]
[0061] Where: i,a =arctan[g(i1),g(i2)]tanh[g(i3)],
[0062] g(i1)=p ij sin(λ ij )-p ij,d sin(λ ij,d )
[0063] g(i2)=p ij cos(λ ij )-p ij,d cos(λ ij,d )
[0064] g(i3)=[(p ij,d -p ij ) 2 +(λ ij,d -λ ij ) 2 ]
[0065] In order to stabilize ψ i,e , virtual control law β i3 Designed as follows
[0066]
[0067] k i2 is a positive constant;
[0068] Step 3: Define the speed error as follows
[0069]
[0070] Where: The filter The derived signal, l i,fh >0 is a constant; α i1 ,α i2 ,α i3 It is a parameter of the auxiliary dynamic system, used to deal with the problem of input saturation and under-drive, and Υ1 is a positive constant;
[0071] Step 4: The actuator force and torque errors are as follows:
[0072]
[0073] Where α i,τu and α i,τr Designed to:
[0074]
[0075] In the formula, k i,3 ,k i,5 is a positive constant; θ1 and θ2 are correction terms used to enhance the anti-interference ability of the system and are designed as follows:
[0076]
[0077] In the formula, k r1 ,k r2 is a positive constant;
[0078] consider and The dynamic performance is designed as follows:
[0079]
[0080] Additional Controls and The update law is designed as:
[0081]
[0082] For stability and The control law is designed as follows:
[0083]
[0084] In the formula, k i,6 ,k i,7 is a normal number.
[0085] Compared with the prior art, the present invention has the following beneficial effects:
[0086] 1. The present invention can handle formation collision avoidance and obstacle avoidance under actuator amplitude and rate saturation;
[0087] 2. The control law proposed in the present invention is combined with the artificial potential energy function and the obstacle avoidance reference angle, which is more reasonable and more suitable for engineering applications. The artificial potential energy function acts on the formation to generate repulsion, so that the ships in the formation stay away from each other to ensure navigation safety. The obstacle avoidance reference angle acts between the formation and the obstacle, so that the formation can bypass the obstacle with the smoothest possible trajectory instead of generating repulsion to cause the formation to stop. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] Figure 1 is the amplitude and rate saturation diagram of the actuator of the present invention;
[0089] Figure 2 This is a structural diagram of a pilot ship and a follower ship of the present invention;
[0090] Figure 3 It is the field of view cone diagram from the i-th USV to the k-th obstacle of the present invention. DETAILED DESCRIPTION
[0091] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments 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.
[0092] An avoidance algorithm based on collision avoidance angle and repulsive field is used to design a control system that can achieve collision and obstacle avoidance of underdriven ship formation under actuator amplitude and rate saturation. Specifically:
[0093] First, the dynamics and kinematics model of the i-th unmanned ship is introduced:
[0094]
[0095] Where: ηi =[x i ,y i ,ψ i ] T Indicates that in the geocentric coordinate system X E O E Y E The position vector in x i is the vertical position, y i is the lateral position, ψ i is the yaw angle; v i =[u i ,v i ,r i ] T In the rigid body coordinate system X B O B Y B The position vector in i ,v i ,r i are surge angular velocity, swing angular velocity and yaw angular velocity respectively; matrix J i (ψ i ) is expressed as:
[0096]
[0097] M i =diag[m i,11 ,m i,22 ,m i,33 ] is the inertia matrix, m i,11 ,m i,22 ,m i,33 is the inertial mass; the unknown uncertainty ζ i Includes hydrodynamic damping parameters and time-varying disturbances. τ i =[τ i,u ,0,τ i,r ] T , where τ i,u and τ i,r is the input signal.
[0098] It also includes:
[0099] (1) Actuator amplitude limitation and rate limitation
[0100] Actuators with amplitude and rate limits are represented by nested saturation systems, such as Figure 1 As shown, it contains two saturation functions SAT m and SAT r , SAT m is the amplitude saturation function, is the diagonal matrix of actuator control gains, k 11 ,k12 ,k 13 Is a normal number. To allow for a diagonal matrix representing saturation at different locations, k 21 ,k 22 ,k 23 is a positive constant;
[0101] SAT m It is expressed as:
[0102]
[0103] Where: i,max and are the maximum and minimum values of the vector containing the force and torque, respectively, SAT r Similar to SAT m The time response of the combined actuator group is given by:
[0104]
[0105] In the formula, SAT r is the saturation function of the actuator rate;
[0106] (2) Collision Avoidance Algorithm
[0107] In order to achieve collision-free formation control between unmanned underwater vehicles, a repulsive field is introduced as follows:
[0108]
[0109] Where: α c is a normal number, is the collision avoidance radius of the jth USV;
[0110] like Figure 2 As shown, define ρ ij is the relative distance between the i-th following ship and the pilot ship j, and its equation and differential equation are as follows:
[0111]
[0112] λ ij is the relative angle between the ith USV and the pilot ship, expressed as follows:
[0113] λ ij =arctan2(y j -y i ,x j -x i )
[0114] The differential equation is as follows:
[0115]
[0116] The control objective is to achieve the following goal: drive the i-th following ship into a formation mode with relative positions so that:
[0117]
[0118] Where: ij,d and λ ij,d are the expected distance and expected angle respectively, c1 and c2 are sufficiently small positive constants;
[0119] For the actual USV, due to the electromechanical constraints, the linear velocity and angular velocity are bounded, so the following constraints are given:
[0120]
[0121] Where: u i 、v i 、r i the border. u j , v j , r j the boundaries of;
[0122] (3) Observer design
[0123] To model a USV with actuator amplitude and rate limitations, Rewrite as
[0124]
[0125] Where ζ i,js (js=1, 2, 3) is the vector ζ i =[ζ i,1 ,ζ i,2 ,ζ i,3 ] T A variable of
[0126] The error dynamics of the observer can be expressed as:
[0127]
[0128] In the formula
[0129] is the estimation error; (4) Obstacle Avoidance Algorithm
[0130] An obstacle avoidance method for creating an obstacle avoidance yaw reference, which can create a smooth obstacle avoidance trajectory. The expected ship obstacle avoidance trajectory model is designed as follows:
[0131]
[0132] Where: Indicates the heading angle of the edge of the expanded field of view
[0133]
[0134] like Figure 3 , the field of view cone expands by an angle α in both the positive and negative directions o , the candidate obstacle avoidance heading reference is defined as
[0135]
[0136] When the kth obstacle or jth USV is moving, each edge of the extended field of view cone rotates around the center of the kth obstacle, which ensures that the field of view always remains around the obstacle or USV and accurately perceives its direction of movement;
[0137] (5) Controller design
[0138] Step 1: Define the formation position error vector as follows
[0139] P ij =[ρ ij,e ,λ ij,e ] T
[0140] In the formula, ρ ij,e =ρ ij -ρ ij,d ,λ ij,e =λ ij -λ ij,d
[0141] Step 2: Define the heading angle error as follows
[0142]
[0143] The filter The derived signal; ψ fdca is the switching signal, and its expression is as follows:
[0144]
[0145] Where: i,a =arctan[g(i1),g(i2)]tanh[g(i3)],
[0146] g(i1)=p ij sin(λ ij )-pij,d sin(λ ij,d )
[0147] g(i2)=p ij cos(λ ij )-p ij,d cos(λ ij,d )
[0148] g(i3)=[(p ij,d -p ij ) 2 +(λ ij,d -λ ij ) 2 ]
[0149] In order to stabilize ψ i,e , virtual control law β i3 Designed as follows
[0150]
[0151] k i2 is a positive constant;
[0152] Step 3: Define the speed error as follows
[0153]
[0154] Where: The filter The derived signal, l i,fh >0 is a constant; α i1 ,α i2 ,α i3 To assist the parameters of the dynamic system, they are used to deal with the problems of input saturation and under-drive. Υ1 is a positive constant;
[0155] Step 4: The actuator force and torque errors are as follows:
[0156]
[0157] Where α i,τu and α i,τr Designed to:
[0158]
[0159] In the formula, k i,3 ,k i,5 is a positive constant. θ1 and θ2 are correction terms used to enhance the anti-interference ability of the system and are designed as follows:
[0160]
[0161] In the formula, k r1 ,k r2 is a positive constant;
[0162] consider and The dynamic performance is designed as follows:
[0163]
[0164] Additional Controls and The update law is designed as:
[0165]
[0166] For stability and The control law is designed as follows:
[0167]
[0168] In the formula, k i,6 ,k i,7 is a normal number.
[0169] The avoidance algorithm based on the collision avoidance angle and the repulsive field proposed in the present invention can handle the formation collision avoidance and obstacle avoidance under the saturation of the actuator amplitude and rate. Secondly, the control law proposed in the present invention is combined with the artificial potential energy function and the obstacle avoidance reference angle, which is more reasonable and more suitable for engineering applications. The artificial potential energy function acts on the formation to generate repulsion, so that the ships in the formation stay away from each other to ensure navigation safety. The obstacle avoidance reference angle acts between the formation and the obstacle, so that the formation bypasses the obstacle with the smoothest possible trajectory instead of generating repulsion to cause the formation to stop.
Claims
1. An avoidance algorithm based on an avoidance angle and a repulsive field, characterized in that: The algorithm includes (1) Actuator amplitude limitation and rate limitation: The actuator with amplitude and rate limits is represented by a nested saturation system, which consists of two saturation functions SAT m and SAT r , SAT m is the amplitude saturation function, is the diagonal matrix of actuator control gains, k 11 ,k 12 ,k 13 is a positive constant; To allow for a diagonal matrix representing saturation at different locations, k 21 ,k 22 ,k 23 is a positive constant; SAT m It is expressed as: Where: i,max and are the maximum and minimum values of the vector containing the force and torque, respectively, SAT r Similar to SAT m ; The time response of the combined actuator group is given by: In the formula, SAT r is the saturation function of the actuator rate; (2) Collision avoidance algorithm: The repulsive field is introduced to perform collision-free formation control between unmanned underwater vehicles, as follows: Where: α c is a normal number, is the collision avoidance radius of the jth USV; Define ρ ij is the relative distance between the i-th following ship and the pilot ship j, and its equation and differential equation are as follows: λ ij is the relative angle between the ith USV and the pilot ship, expressed as follows: λ ij =arctan2(y j -y i ,x j -x i ) The differential equation is as follows: Drive the i-th following ship into a formation mode with relative positions so that: Where: ij,d and λ ij,d are the expected distance and expected angle respectively, c1 and c2 are sufficiently small positive constants; Given the following constraints: Where: u i 、v i 、r i the boundaries of; u j , v j , r j the boundaries of; (3) Observer design: Will Rewrite as Where ζ i,js is the vector ζ i =[ζ i,1 ,ζ i,2 ,ζ i,3 ] T A variable of , js = 1, 2 or 3; The error dynamics of the observer is expressed as: In the formula is the estimation error; (4) Obstacle avoidance algorithm: The expected ship obstacle avoidance trajectory model is designed as follows: Where: represents the heading angle of the edge of the expanded field of view cone; The field of view cone expands by an angle α in both the positive and negative directions. o , the candidate obstacle avoidance heading reference is defined as When the kth obstacle or the jth USV is moving, each edge of the expanded field of view cone rotates around the center of the kth obstacle to ensure that the field of view always remains around the obstacle or USV and accurately perceives its direction of movement.
2. The avoidance algorithm based on the avoidance angle and the repulsive field according to claim 1, characterized in that: In this algorithm, the dynamic and kinematic models of the i-th unmanned ship are designed as follows: Where: η i =[x i ,y i ,ψ i ] T Indicates that in the geocentric coordinate system X E O E Y E The position vector in x i is the vertical position, y i is the lateral position, ψ i is the yaw angle; v i =[u i ,v i ,r i ] T In the rigid body coordinate system X B O B Y B The position vector in i ,v i ,r i are surge angular velocity, swing angular velocity and yaw angular velocity respectively; Matrix J i (ψ i ) is expressed as: M i =diag[m i,11 ,m i,22 ,m i,33 ] is the inertia matrix, m i,11 ,m i,22 ,m i,33 is the inertial mass; the unknown uncertainty ζ i Including hydrodynamic damping parameters and time-varying disturbances; τ i =[τ i,u ,0,τ i,r ] T , where τ i,u and τ i,r is the input signal.
3. The avoidance algorithm based on the avoidance angle and the repulsive field according to claim 1, characterized in that: The algorithm also includes controller design: Step 1: Define the formation position error vector as follows P ij =[ρ ij,e ,l ij,e ] T where ρ ij,e = ρ ij - ρ ij,d , λ ij,e = λ ij - λ ij,d ; Step 2: Define the heading angle error as follows The filter The derived signal; ψ fdca is the switching signal, and its expression is as follows: Where: i,a =arctan[g(i1),g(i2)]tanh[g(i3)], g(i1)=p ij sin(λ ij )-p ij,d sin(λ ij,d ) g(i2)=p ij cos(λ ij )-p ij,d cos(λ ij,d ) g(i3)=[(p ij,d -p ij ) 2 +(λ ij,d -λ ij ) 2 ] In order to stabilize ψ i,e , virtual control law β i3 Designed as follows k i2 is a positive constant; Step 3: Define the speed error as follows Where: The filter The derived signal, l i,fh >0 is a constant; α i1 ,α i2 ,α i3 It is a parameter of the auxiliary dynamic system, used to deal with the problem of input saturation and under-drive, and Υ1 is a positive constant; Step 4: The actuator force and torque errors are as follows: Where α i,τu and α i,τr Designed to: In the formula, k i,3 ,k i,5 is a positive constant; θ1 and θ2 are correction terms used to enhance the anti-interference ability of the system and are designed as follows: In the formula, k r1 ,k r2 is a positive constant; consider and The dynamic performance is designed as follows: Additional Controls and The update law is designed as: For stability and The control law is designed as follows: In the formula, k i,6 ,k i,7 is a normal number.
