A method for tracking and avoiding obstacles in unmanned boat formation
By improving the artificial potential field method and formation transformation strategy, combined with the RBF neural network and back-stepping method, the tracking and obstacle avoidance problems of the unmanned boat formation in multiple obstacles and different water environments have been solved, and the system in compliance with international maritime rules has been achieved. Collision avoidance and formation adjustments improve the formation's adaptability and mission efficiency.
Patent Information
- Application Number
- CN202410732541.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-07
AI Technical Summary
Existing obstacle avoidance and tracking control methods for unmanned boat formations are ineffective when facing a variety of unknown obstacles and different water environments. They also fail to fully comply with international maritime collision avoidance rules and are difficult to achieve flexibility in open and narrow waters. Formation changes and efficient tracking control.
Using the improved artificial potential field method combined with the formation transformation strategy, by obtaining the motion status of the unmanned boat and environmental obstacle information, the maneuvering motion model is established, the attraction and repulsion functions are calculated, the feasible path is planned, and the RBF neural network and back-stepping are used It can generate control instructions to achieve adaptive tracking and obstacle avoidance of the formation.
It achieves effective tracking and obstacle avoidance of unmanned boat formations in complex water environments, prioritizes collision avoidance with dynamic obstacles, complies with international maritime collision avoidance rules, and flexibly adjusts the formation in narrow waters, improving the formation's adaptability and tasks. Complete efficiency.
Smart Images

Figure CN118311968B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of unmanned boat formation motion control, and in particular relates to an unmanned boat formation tracking and obstacle avoidance control method. Background Art
[0002] As a kind of intelligent water equipment capable of autonomous navigation, unmanned boat formations have attracted much attention because of their flexibility, economy and efficiency, and their ability to enhance human initiative in the face of unknown waters and replace humans in performing dangerous water operations. Unmanned boat formations play a role in both military and civilian fields. In the civilian field, unmanned boat formations can be used for hydrological exploration, environmental maintenance, post-disaster search and rescue, etc., which can reduce labor expenses and improve operational efficiency; in the military field, unmanned boat formations can be used for anti-submarine and anti-missile, water blockade, regional patrol, assault operations, etc., which can reduce casualties and improve the cost-effectiveness of military operations.
[0003] At present, the research on obstacle avoidance and tracking control of unmanned boat formations is mainly divided into three parts. In the first part, the optimal control methods such as dynamic window method (DWA) and model predictive control (MPC) are used to set the requirements of safe collision avoidance and high-precision tracking as one of the loss functions, and the optimal control law is solved in real time to achieve formation tracking and collision avoidance. However, both the DWA and MPC methods have the problem of fixed optimization target weights and complex calculations; in the second part, the multi-agent reinforcement learning control method is used to design the requirements of safe collision avoidance and high-precision tracking as reward functions, and the formation maneuver is defined as behavior. After the loss function is iteratively converged, the formation tracking and collision avoidance are achieved. This method works better in structured environments after the loss function is iteratively converged, but it also has the defects of the optimal control method, and in unstructured environments, it is necessary to relearn the characteristics of collision avoidance and tracking requirements, which may result in serious consequences such as tracking failure or even failure to avoid collisions; in the third part, the artificial potential field method is used to characterize the obstacle characteristics with a repulsive potential field, and the repulsive vector of all obstacles is used to design the guidance law or directly participate in the control law calculation. This method is flexible in design and can be improved according to different needs, so it is highly favored by scholars.
[0004] In recent years, scholars have proposed a variety of collision avoidance control methods combined with artificial potential field methods. Some studies only involve static obstacle avoidance. When unmanned boats are sailing in formation, they are easily affected by navigation buoys and other boats outside the formation, so collision avoidance control methods need to be designed for dynamic obstacles; another group of scholars refer to the collision avoidance control methods of other intelligent agents and design artificial potential field methods that consider dynamic obstacles, but do not take into account the International Regulations for Preventing Collisions at Sea (COLREGs), which does not meet navigation regulations; a few scholars consider unmanned boat formation tracking and collision avoidance that complies with COLREGs in open waters with dynamic and static obstacles, but have not yet met the needs of formations to perform tasks in different waters. However, with the complexity and diversification of operational tasks, it is necessary to meet the formation change strategies for navigation in various waters (open waters, narrow waters, etc.) to improve the formation's adaptability to different waters. As far as the author knows, research in this area is still in the basic stage.
[0005] In addition to collision avoidance decisions and formation strategies, the design of the formation tracking controller also has an important impact on the tracking and collision avoidance effects. Some scholars study path planning and collision avoidance decision algorithms without considering the tracking capabilities of unmanned boats and the design of controllers. However, internal and external uncertainties such as unmanned boat model uncertainty, input saturation, and environmental interference may cause the formation to be unable to track the expected state given by the path planning and collision avoidance decision layer. At present, there is little research on unmanned boat formation tracking and obstacle avoidance control solutions that comprehensively consider collision avoidance decisions, formation strategies, and tracking control, and there is insufficient theoretical support. Summary of the invention
[0006] In order to solve the above technical problems, the present invention proposes a robust control method for unmanned boat formation tracking and obstacle avoidance based on an improved artificial potential field method and formation transformation strategy, which is used to solve the problems of unmanned boat formation tracking and obstacle avoidance control in the presence of multiple unknown obstacles and in different waters.
[0007] In a first aspect, the present invention provides a method for tracking and avoiding obstacles of an unmanned boat formation, comprising:
[0008] Step (1) obtaining the motion state information of the unmanned boat and the surrounding obstacle information, and establishing the unmanned boat formation maneuvering motion model;
[0009] Step (2) modeling the attractive force potential field of the unmanned boat according to the current position and speed state of the unmanned boat and the position and speed state of the target point to obtain an attractive force function;
[0010] Step (3) calculating a repulsive force function based on the distance between the dynamic obstacle and the unmanned boat and the state information of the unmanned boat according to the International Regulations for Preventing Collisions at Sea;
[0011] Step (4) planning a feasible path to avoid obstacles based on the starting point and the end point and the resultant force obtained by the improved artificial potential field method, and generating a target waypoint on the path;
[0012] Step (5) using the combined repulsive potential energy generated by the obstacles to calculate the danger evaluation function, and adjusting the formation according to the danger evaluation function;
[0013] Step (6) generates and outputs formation tracking control instructions based on the backstepping method and RBF neural network algorithm.
[0014] Furthermore, the establishment of the unmanned boat formation maneuvering motion model in step (1) includes:
[0015] Establishing an inertial coordinate system vector Indicates The position and heading angle of the unmanned boat are used to establish the attached coordinate system ,vector Indicates The longitudinal, lateral and bow turning speed states of the unmanned boat; the coordinate system of the appendage is established with the center of gravity of the leading unmanned boat as the origin, the longitudinal forward direction as the X-axis, and the vertical direction as the Y-axis. ; Establish the unmanned boat formation maneuvering motion model based on the inertial coordinate system and the appendage coordinate system;
[0016] Establishing the unmanned boat formation maneuvering motion model:
[0017] ;
[0018] ;
[0019] in, is the added mass inertia matrix, is the damping matrix, is the Coriolis force matrix, , , are the nominal model matrices of the unmanned boat’s additional mass inertia matrix, damping matrix, and Coriolis force matrix, respectively. The model is uncertain; For environmental disturbances, is the coordinate system transformation matrix; are the input force and moment matrices.
[0020] Furthermore, step (1) further comprises:
[0021] ;
[0022] ;
[0023] ;
[0024] ;
[0025] The above matrix satisfies the following properties:
[0026] ;
[0027] ;
[0028] Among them, the S matrix is:
[0029] .
[0030] Furthermore, step (2) further comprises:
[0031] First, the attractive force field of the unmanned boat is modeled. The potential energy function is related to the current position and speed state of the unmanned boat and the position and speed state of the target point. and relative speed related; Indicates the position and speed of the unmanned boat itself, and the target position of the waypoint being tracked is , the speed of the waypoint speed tracked is , the attractive potential field formula is composed of the formula of the combined velocity modulus and the Euclidean distance as follows:
[0032] ;
[0033] ;
[0034] ;
[0035] in, and is the artificially adjusted potential field gain coefficient, and are the lateral and longitudinal coordinates of the unmanned boat in the inertial coordinate system, and are the horizontal and vertical coordinates of the target point in the inertial coordinate system, and are the longitudinal speed and transverse speed of the unmanned boat respectively, and are the longitudinal velocity and transverse velocity of the target point, is the combined speed of the unmanned boat, is the target point combined velocity;
[0036] right Finding the gradient gives the attractive potential force:
[0037] ;
[0038] in is the direction unit vector of the attractive vector force generated by the relative position, It is the direction unit vector of the attractive vector force generated by the relative velocity.
[0039] Furthermore, step (3) further comprises:
[0040] The International Regulations for Preventing Collisions at Sea are used to divide the area where dynamic obstacles are located into three parts, namely, the danger avoidance area, the collision avoidance operation area, and the collision detection area. The obstacle repelling potential field is established according to the area where the dynamic obstacles are located. :
[0041] ;
[0042] in, and is the positive coefficient of repulsive potential energy, and the relative distance between the unmanned boat and the obstacle is expressed as ,in is the location of the obstacle, and Represent the radius of the three divided areas respectively. is the collision risk assessment angle, which is composed of the difference between the relative speed angle and relative position angle between the unmanned boat and the obstacle. and The critical angle of the collision avoidance zone, , To calculate vector and Angle, vector and are the relative position vector and relative velocity vector of the unmanned boat and the obstacle respectively;
[0043] right Finding the negative gradient, we can convert the repulsive force It is expressed as:
[0044] ;
[0045] in:
[0046] ;
[0047] ;
[0048] ;
[0049] ;
[0050] ;
[0051] ;
[0052] ;
[0053] in, and are the unit vector of the relative position vector and the unit vector of the relative velocity vector between the obstacle and the unmanned boat, , , and represents the part of the attraction generated by the target point, , , , , Represents the repulsive force generated by an obstacle.
[0054] Furthermore, step (4) further comprises:
[0055] First, based on the starting point and the end point and the resultant force obtained by the improved artificial potential field method, a feasible path from the starting point to the end point that satisfies the collision avoidance of static obstacles is designed, and the target waypoints on the path are generated. :
[0056] ;
[0057] in It is the angle between the vector direction of the resultant force of repulsion and attraction and the X-axis direction. It is The set speed of the unmanned boat;
[0058] Secondly, the target waypoint is smoothed according to the distance between the unmanned boat and the tracked target waypoint. They represent the Euclidean distance between the unmanned boat and the target waypoint and the threshold distance of the unmanned boat using the smooth waypoint respectively;
[0059] if , the calculation formula of the desired path waypoint coordinates and heading angle of the unmanned boat is as follows:
[0060] ;
[0061] if , the calculation formula of the desired path waypoint coordinates and heading angle of the unmanned boat is as follows:
[0062] ;
[0063] Finally, as the unmanned boat approaches the target waypoint, the unmanned boat moves according to the vector direction of the resultant force composed of repulsion and attraction. Adjust the desired longitudinal position of the unmanned boat and horizontal Location coordinates.
[0064] Furthermore, step (5) further comprises:
[0065] The combined repulsive potential energy generated by obstacles is used as input, and the formation transformation coefficient B is calculated by the danger evaluation function. The adaptive formation equation of following unmanned boats:
[0066] ;
[0067] in, Indicates The distance between the following unmanned boat and the leader unmanned boat in the longitudinal direction, Indicates The distance between the following unmanned boat and the leader unmanned boat in the lateral direction, where They represent the unit direction vectors opposite to the longitudinal velocity of the leader unmanned boat, Represents the unit direction vector perpendicular to the longitudinal velocity direction of the leader unmanned boat.
[0068] Furthermore, step (6) further comprises:
[0069] set up For the The desired position and heading angle of the unmanned boat are defined as the position error system , and its derivative is currently:
[0070] ;
[0071] in is the virtual control input vector, in order to stabilize the position error system , define the virtual control vector The intermediate control amount for:
[0072] ;
[0073] in is a positive definite design parameter matrix, defining the error between the velocity vector and the virtual intermediate control quantity , then the current derivative formula can be expressed as:
[0074] ;
[0075] right Derivative and substitute into the motion model formula:
[0076] ;
[0077] Three RBF networks are introduced to approximate and compensate for the unknown dynamics of the unmanned boat and the environmental disturbances it encounters:
[0078] ;
[0079] in is the input vector of the RBF network, is the unknown upper bound of the interference, is the basis function vector, and the ideal constant weight matrix is:
[0080] ;
[0081] in , is the approximate error vector of the unknown dynamics of the unmanned boat and the environmental disturbance, let , respectively The control law is designed as follows:
[0082] ;
[0083] in is a positive constant matrix, and the update law of the neural network weight parameters is designed as:
[0084] ;
[0085] The specific form of the weight matrix estimate is:
[0086] ;
[0087] in and are the positive definite design matrix and design constant respectively.
[0088] In a second aspect of the present invention, the present invention discloses a computer device, characterized in that it includes a memory, a processor, and program instructions stored in the memory and executable by the processor, and the processor executes the program instructions to implement the method described in the first aspect.
[0089] In a third aspect of the present invention, the present invention discloses a computer-readable storage medium storing a computer program, characterized in that when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0090] The invention relates to an unmanned boat formation tracking and obstacle avoidance control method, belonging to the technical field of unmanned boat formation motion control. The invention measures obstacles, unmanned boat formations, channel status information and expected target points sent by sensors and shore bases, plans feasible paths based on the collision avoidance guidance law of an improved artificial potential field method to meet collision avoidance requirements and comply with international maritime collision avoidance regulations, plans an unmanned boat formation plan based on a formation transformation strategy of a hazard evaluation function, finally generates a control law in real time based on an RBF neural network estimator and a backstepping controller and executes it by an actuator, drives the unmanned boat formation to track the expected target point, gives priority to formation collision avoidance when there is a collision avoidance risk, and realizes formation tracking and formation maintenance when there is no collision avoidance risk. BRIEF DESCRIPTION OF THE DRAWINGS
[0091] Figure 1 This is a schematic diagram of the unmanned boat formation;
[0092] Figure 2 It is a schematic diagram of the improved artificial potential field method;
[0093] Figure 3 This is a schematic diagram of the formation change strategy in narrow waters;
[0094] Figure 4 It is a two-dimensional tracking and collision avoidance trajectory diagram of the unmanned boat formation;
[0095] Figure 5 is the change of the position coordinates of the leading unmanned boat in the unmanned boat formation over time;
[0096] Figure 6 is the change of the position coordinates of the unmanned boat 1 following the unmanned boat formation over time;
[0097] Figure 7 is the change of the position coordinates of the unmanned boat 2 following the unmanned boat formation over time;
[0098] Figure 8 is the change of the speed of all unmanned boats in the unmanned boat formation over time;
[0099] Fig. 9 is the change of the speed of the following unmanned boat 1 in the unmanned boat formation over time;
[0100] Fig.10 is the change of the speed of the following unmanned boat 2 in the unmanned boat formation over time;
[0101] Fig.11 is the weight error convergence of the RBF neural network of the leading unmanned boat in the unmanned boat formation;
[0102] Fig.12 is the weight error convergence of the RBF neural network following the unmanned boat 1 in the unmanned boat formation;
[0103] Fig.13 is the weight error convergence of the RBF neural network following the unmanned boat 2 in the unmanned boat formation;
[0104] Fig.14 is the change of the Euclidean distance between the leading unmanned boat and the end point;
[0105] Fig.15 It is the speed comparison between the method of the present invention and the PID method in formation formation;
[0106] Fig.16 It is a flow chart of the unmanned boat formation tracking and obstacle avoidance control method. DETAILED DESCRIPTION
[0107] The following will be combined with the drawings in the embodiments of the present application to further clearly and completely describe the technical solutions in the embodiments of the present application. It should be noted that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application.
[0108] In order to make the invention purpose, technical scheme and advantages of this application clearer, the technical scheme of the present invention is described clearly and completely in conjunction with the accompanying drawings and specific implementation schemes. It should be pointed out that for ordinary technicians in this field, several changes and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of this application.
[0109] In a first embodiment of the present invention, the present invention discloses an unmanned boat formation tracking and obstacle avoidance control method, comprising:
[0110] Step (1) Obtain the motion status information of the unmanned boat and the surrounding obstacle information, and establish the unmanned boat formation maneuvering motion model.
[0111] like Figure 1 , two coordinate systems in a two-dimensional plane are used to describe the mathematical model of the maneuvering motion of the unmanned boat formation. Establish an inertial coordinate system vector Indicates The position and heading angle of the unmanned boat are used to establish the attached coordinate system ,vector Indicates The longitudinal, lateral and bow turning speed states of the unmanned boat; the coordinate system of the appendage is established with the center of gravity of the leading unmanned boat as the origin, the longitudinal forward direction as the X-axis, and the vertical direction as the Y-axis. ; Establish the unmanned boat formation maneuvering motion model based on the inertial coordinate system and the appendage coordinate system;
[0112] Establishing the unmanned boat formation maneuvering motion model:
[0113] ;
[0114] ;
[0115] in, is the added mass inertia matrix, is the damping matrix, is the Coriolis force matrix, , , are the nominal model matrices of the unmanned boat’s additional mass inertia matrix, damping matrix, and Coriolis force matrix, respectively. The model is uncertain; For environmental disturbances, is the coordinate system transformation matrix; are the input force and moment matrices.
[0116] Furthermore, step (1) further comprises:
[0117] ;
[0118] ;
[0119] ;
[0120] ;
[0121] The above matrix satisfies the following properties:
[0122] ;
[0123] ;
[0124] Among them, the S matrix is:
[0125] .
[0126] Step (2) models the attractive force field of the unmanned boat according to the current position and speed state of the unmanned boat and the position and speed state of the target point to obtain the attractive force function.
[0127] First, the attractive force field of the unmanned boat is modeled. The potential energy function is related to the current position and speed state of the unmanned boat and the position and speed state of the target point. and relative speed related; Indicates the position and speed of the unmanned boat itself, and the target position of the waypoint being tracked is , the speed of the waypoint speed tracked is , the attractive potential field formula is composed of the formula of the combined velocity modulus and the Euclidean distance as follows:
[0128] ;
[0129] ;
[0130] ;
[0131] in, and is the artificially adjusted potential field gain coefficient, and are the lateral and longitudinal coordinates of the unmanned boat in the inertial coordinate system, and are the horizontal and vertical coordinates of the target point in the inertial coordinate system, and are the longitudinal speed and transverse speed of the unmanned boat respectively, and are the longitudinal velocity and transverse velocity of the target point, is the combined speed of the unmanned boat, is the target point combined velocity;
[0132] right Finding the gradient gives the attractive potential force:
[0133] ;
[0134] in is the direction unit vector of the attractive vector force generated by the relative position, It is the direction unit vector of the attraction vector force generated by the relative speed. Compared with the traditional artificial potential field method, the attraction potential field of the target point is only related to the relative position of the unmanned boat and the target point. The attraction potential field designed by the present invention is also related to the relative speed of the target point and the unmanned boat. When the unmanned boat tracks the target point, it will adaptively adjust the size of the attraction potential field force according to the relative speed to meet the task of tracking the moving target.
[0135] Step (3) calculates the repulsive force function based on the distance between the dynamic obstacle and the unmanned boat and the state information of the unmanned boat according to the International Regulations for Preventing Collisions at Sea.
[0136] The present invention utilizes COLREGs (International Regulations for Preventing Collisions at Sea) to avoid collisions with dynamic obstacles and modifies the repulsive force function. Figure 2As shown, the unmanned boat and other surrounding obstacles are modeled, assuming that both the obstacle and the target point have a certain speed. The area where the obstacle is located is divided into three parts, namely the dangerous collision avoidance zone, the collision avoidance operation zone, and the collision detection zone. The dangerous collision avoidance zone means that the distance between the unmanned boat and the moving obstacle is too small, and it is necessary to focus on avoiding the obstacle and give up the execution of other target tracking tasks; for the collision operation zone, it is necessary to avoid obstacles according to COLREGs and complete the tracking of the target point; for the collision detection zone, it refers to the mobile obstacle recognition range that the sensor equipment of the unmanned boat can detect. Within this range, the unmanned boat has a small collision risk, and only the obstacle repulsion function is used to avoid collision, and the main task is to track the target. The international regulations for avoiding collisions at sea are used to divide the area where the dynamic obstacles are located into three parts, namely the dangerous collision avoidance zone, the collision avoidance operation zone, and the collision detection zone. An obstacle repulsion potential field is established according to the area where the dynamic obstacles are located. :
[0137] ;
[0138] in, and is the positive coefficient of repulsive potential energy, and the relative distance between the unmanned boat and the obstacle is expressed as ,in is the location of the obstacle, and Represent the radius of the three divided areas respectively. is the collision risk assessment angle, which is composed of the difference between the relative speed angle and relative position angle between the unmanned boat and the obstacle. and The critical angle of the collision avoidance zone, , To calculate vector and Angle, vector and are the relative position vector and relative velocity vector of the unmanned boat and the obstacle respectively;
[0139] The repulsive potential function involved in the present invention is related to the relative position and relative velocity angle of the obstacle and the unmanned boat. For the first item of the dangerous collision avoidance zone formula, the repulsive function of this item is related to the relative position of the unmanned boat and the obstacle, and as the distance between the unmanned boat and the obstacle decreases, the potential energy increases, and the direct collision avoidance of the obstacle is taken as the primary consideration; for the second item of the collision avoidance operation zone formula, in addition to considering the relative position of the unmanned boat domain obstacle in this area, the international maritime collision avoidance regulations also need to be considered, so this item is divided into two parts. If the difference between the angle between the relative position vector and the x-axis direction and the angle between the combined velocity vector of the unmanned boat and the obstacle and the x-axis direction, that is, the collision risk assessment angle is less than the critical angle of collision avoidance in this area, it means that the unmanned boat has a tendency to enter this area, resulting in an increased collision risk, and it is necessary to take the collision avoidance behavior specified by COLREG. For the potential energy value of the first part of the second item of the collision avoidance operation zone formula, as the relative position of the unmanned boat and the target point increases and the relative position value with the obstacle decreases, it increases. The potential energy value of the second part of the second item of the collision avoidance operation area formula is related to the relative speed of the unmanned boat and the obstacle, as well as the collision risk assessment angle and the collision avoidance critical angle. This item takes into account obstacle avoidance, target point tracking, and compliance with COLREGs. The potential energy value of the third item of the collision detection area formula is set similarly to the above. This item takes into account obstacle avoidance and target point tracking.
[0140] right Finding the negative gradient, we can convert the repulsive force It is expressed as:
[0141] ;
[0142] in:
[0143] ;
[0144] ;
[0145] ;
[0146] ;
[0147] ;
[0148] ;
[0149] ;
[0150] in, and are the unit vector of the relative position vector and the unit vector of the relative velocity vector between the obstacle and the unmanned boat, and It is its specific expression. and It represents the attraction force generated by the target point, and the rest represents the repulsion force. The resultant force is the repulsive effect of the obstacle on the unmanned boat. .
[0151] For the dangerous collision avoidance zone formula, the vector force generated by the first item is directly opposite to the direction of the relative position, so as to avoid collision with obstacles to the greatest extent; for the collision avoidance operation zone formula, the second item consists of two parts. The direction of the force generated by the potential function in the first part is related to the relative position of the unmanned boat obstacle and the relative position of the target point in the unmanned boat domain; the direction of the force generated by the second part is related to the direction of the relative position of the obstacle and the relative speed of the obstacle. In other words, the second item of the collision avoidance operation zone formula calculates the gradient of the four independent variables. The same is true for the third item of the collision avoidance operation zone formula. Select As the gain of repulsion is taken into account The monotonically increasing characteristic of the function, select The (·) function takes full account of the principles of implementing COLREGs and adjusts the direction to avoid the dangerous area.
[0152] Step (4) plans a feasible path to avoid obstacles based on the starting point, the end point and the resultant force obtained by the improved artificial potential field method, and generates the target waypoints on the path.
[0153] First, based on the starting point and the end point and the resultant force obtained by the improved artificial potential field method, a feasible path from the starting point to the end point that satisfies the collision avoidance of static obstacles is designed, and the target waypoints on the path are generated. :
[0154] ;
[0155] in It is the angle between the vector direction of the resultant force of repulsion and attraction and the X-axis direction. It is The set speed of the unmanned boat;
[0156] Secondly, the target waypoint is smoothed according to the distance between the unmanned boat and the tracked target waypoint. They represent the Euclidean distance between the unmanned boat and the target waypoint and the threshold distance of the unmanned boat using the smooth waypoint respectively;
[0157] if , the calculation formula of the desired path waypoint coordinates and heading angle of the unmanned boat is as follows:
[0158] ;
[0159] if , the calculation formula of the desired path waypoint coordinates and heading angle of the unmanned boat is as follows:
[0160] ;
[0161] Finally, as the unmanned boat approaches the target waypoint, the unmanned boat moves according to the vector direction of the resultant force composed of repulsion and attraction. Adjust the desired longitudinal position of the unmanned boat and horizontal Location coordinates.
[0162] The above formula refers to the unmanned boat approaching the target waypoint from different directions. If it approaches from the left side of the target waypoint, the expected heading angle of the unmanned boat is the angle between the vector direction of the line connecting the unmanned boat and the target waypoint and the x-axis; if the unmanned boat is on the right side of the target waypoint, the angle between the connecting vector direction and the x-axis is larger. If the unmanned boat is above or below the segmented target point, a similar deduction is performed. The unmanned boat achieves collision avoidance mainly by improving the timely adjustment of the resultant force direction of the artificial potential field method. After passing a designed target waypoint that meets static obstacles, if the unmanned boat encounters other dynamic obstacles in the process of approaching the target waypoint, the unmanned boat will adjust the direction of the resultant force vector calculated in real time. Adjust the desired longitudinal position of the unmanned boat and horizontal The position coordinates are obtained, and the controller is used to control the unmanned boat to approach the coordinates, ultimately meeting the need for collision avoidance with dynamic obstacles.
[0163] Step (5) uses the combined repulsive potential energy generated by the obstacles to calculate the danger evaluation function, and adjusts the formation according to the danger evaluation function.
[0164] The present invention introduces a formation change strategy, which is effectively combined with the improved artificial potential field method, using the combined repulsive potential energy generated by obstacles as input, and calculating the formation change coefficient through the risk evaluation function to affect the formation. It can effectively help unmanned boat formations to navigate restricted narrow waters. There is no similar formation change strategy in the existing solutions. The expected value of the leader unmanned boat has been described in the previous formula, and the expected value of the follower unmanned boat needs to be calculated through the formation equation. The formation equation designs the formation structure, including the formation angle Distance from formation Two parameters. and It represents the direction and distance between the leader unmanned boat and the follower unmanned boat. The formation equation is as follows:
[0165] ;
[0166] in and are the unit direction vectors opposite to and perpendicular to the longitudinal velocity of the leader unmanned boat, respectively. and the location of the leader's unmanned boat Determine the desired position of the unmanned boat following the unmanned boat :
[0167] ;
[0168] However, according to the above formula, the formation cannot be adjusted adaptively according to the surrounding environment. Therefore, in order to enable the formation to perform tracking tasks in restricted waters, it is necessary to design a formation change strategy that can be adaptively adjusted according to the danger of the surrounding environment. As the input of the risk assessment function, the output B of the risk assessment function ranges from 0 to 1.
[0169] ;
[0170] in , Parameters related to potential energy, , ,……, Represent multiple repulsive potential energy values respectively.
[0171] In one embodiment of the present application, The values of are 1 and 0.01 respectively. When there is no risk of collision, the following unmanned boat tracks the relative position of the leader. When encountering an obstacle, the resultant force direction is used to track the actual target point without collision. When the potential energy of the obstacle is greater than a certain value, the formation is changed to track the relative position of the new leader. When the value of the evaluation index function decreases, the risk of the surrounding environment increases, and the formation needs to be adjusted accordingly. Using the resultant repulsive potential energy generated by the obstacle as input, the formation transformation coefficient B is calculated by the risk evaluation function. , calculate the first The adaptive formation equation of following unmanned boats:
[0172] ;
[0173] in, Indicates The distance between the following unmanned boat and the leader unmanned boat in the longitudinal direction, Indicates The distance between the following unmanned boat and the leader unmanned boat in the lateral direction, where They represent the unit direction vectors opposite to the longitudinal velocity of the leader unmanned boat, Represents the unit direction vector perpendicular to the longitudinal velocity direction of the leader unmanned boat.
[0174] For the formation, the risk assessment function is controlled in and The degree of adjustment in direction, Decide the adjustment order of following the unmanned boat. When the number of following unmanned boats in the formation is =2, when the danger is the most serious, the follower unmanned boat and the leader unmanned boat are The minimum distance in the direction is , ensuring that there is a certain amount of space between boats. The schematic diagram of the formation change strategy in narrow waters is as follows Figure 3 shown.
[0175] Formation tracking also needs to consider collision avoidance within the formation. For any following unmanned boat, the expected path point obtained by the formation equation is used as the attracting target point, and the expected heading angle generated by the designed improved artificial potential field method is used. The same method as the leader unmanned boat is used for obstacle avoidance. Other unmanned boats in the unmanned boat formation are regarded as dynamic obstacles in the dangerous area and participate in the resultant force calculation. Finally, the formation is guided to stop at the target end. An unmanned boat cluster with multiple following unmanned boats is realized.
[0176] Step (6) generates and outputs formation tracking control instructions based on the backstepping method and RBF neural network algorithm.
[0177] The present invention combines the backstepping method and the RBF neural network to design a robust adaptive controller for the position error system of the unmanned boat. For the The expected position and heading angle of each unmanned boat. For the convenience of representation, only one unmanned boat is selected to describe the design process, and the subscripts are omitted. :
[0178] Defining the Position Error System , whose derivative is:
[0179] ;
[0180] in is the virtual control input vector,
[0181] To stabilize the position error system , define the virtual control vector The intermediate control amount for:
[0182] ;
[0183] in is a positive definite design parameter matrix, defining the error between the velocity vector and the virtual intermediate control quantity . Then the derivative formula can be expressed as:
[0184] ;
[0185] right Derivative and substitute into the motion model formula:
[0186] ;
[0187] Three RBF networks are introduced to approximate and compensate for the unknown dynamics of the unmanned boat and the environmental disturbances it encounters:
[0188] ;
[0189] in is the input vector of the RBF network, is the unknown upper bound of the interference, is the basis function vector, and the ideal constant weight matrix is:
[0190] ;
[0191] in , is the approximate error vector of the unknown dynamics of the unmanned boat and the environmental disturbance, let , respectively The control law is designed as follows:
[0192] ;
[0193] in is a positive constant matrix, and the update law of the neural network weight parameters is designed as:
[0194] ;
[0195] The specific form of the weight matrix estimate is:
[0196] ;
[0197] in and are the positive definite design matrix and design constant respectively.
[0198] In a second aspect of the present invention, the present invention discloses a computer device, characterized in that it includes a memory, a processor, and program instructions stored in the memory and executable by the processor, and the processor executes the program instructions to implement the method described in the first aspect.
[0199] In a third aspect of the present invention, the present invention discloses a computer-readable storage medium storing a computer program, characterized in that when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0200] Furthermore, the present invention performs a specific experimental design according to the method in the first embodiment, including:
[0201] (1) Experimental design
[0202] A simulation of an unmanned boat formation consisting of three unmanned boats is carried out to demonstrate the effectiveness of the proposed obstacle avoidance and collision avoidance control method. Cybership II is selected as the mathematical model of the maneuvering motion of the unmanned boat.
[0203] In the simulation experiment, in order to demonstrate the effectiveness of the RBF-based robust stabilization controller in dealing with uncertain disturbances, Gaussian white noise interference is set as the time-varying disturbance. . is the coordinate transformation matrix in formula (1), the Gaussian white noise vector It is expressed as: ,in is the vector of bias force and torque, represents a vector of zero-mean Gaussian white noise with a bias time constant of , is a diagonal matrix that controls the amplitude of Gaussian white noise, which simulates the environmental disturbance effects caused by second-order ocean waves, currents, and wind.
[0204] The simulation time is 930s, the simulation state update interval is 10ms, and the formation, initial state and expected state of the unmanned boat formation are set: the final target point of the leading unmanned boat is: [2500,2500], and the initial state vector is [-800,-800, ,0,0,0], the formation is initially set to: [100,3 ], [100,5 ]; the initial states of the two following unmanned boats are set to [-850,-850, ,0,0,0]、[-900,-900, ,0,0,0], the speed required for generating the target waypoint is 5m / s. The obstacles are set to dynamic and static. The static obstacles are set to [0,-300] and [200,600], and the initial values of the dynamic obstacles are set to [1600,1300] and [1000,1500]. The speed is 0.5m / s and the heading angle is fixed to and The length of the rectangular narrow obstacle is set to 800m, the width is set to 200m, and a narrow water area is obtained with the point [1450,1400] as the center.
[0205] The present invention adopts PID controller as a comparison of the control method proposed in the present invention. The control law of PID controller is: , where the control parameter matrix is: .
[0206] The control parameters of all unmanned boats of the present invention are set as follows, and the parameters of the guidance law are set as shown in Table 1.
[0207] ;
[0208] Table 1 Guidance law and neural network parameter settings
[0209] ;
[0210] The neural network parameters of all unmanned boats of the present invention are set as follows: , , the number of neural network nodes is 101, the width of the RBF neural network is 1, and the center is the value of 101 points uniformly distributed in [-5,5]. The distance is updated in real time.
[0211] (2) Results analysis
[0212] The simulation results after setting appropriate control parameters and initial conditions are as follows Figures 4 to 15 The simulation results of tracking and obstacle avoidance are shown in Figure 4 As shown in the figure, it can be seen from the tracking simulation results that the tracking and obstacle avoidance control method of the present invention can realize the tracking and obstacle avoidance of the unmanned boat formation. The unmanned boat formation sails in a complex environment, first passing through the waters containing static obstacles 1 and 2, then passing through the waters containing dynamic obstacles 1 and 2, and finally passing through the narrow and long restricted waters, and finally stops at the set end point. First, at the initial moment, each unmanned boat in the unmanned boat formation realizes the collision avoidance within the unmanned boat formation according to the collision avoidance guidance law. Then, when passing through the waters with dynamic and static obstacles, the unmanned boat formation changes the relative position with the leading unmanned boat according to the size of the dangerous potential energy function to achieve collision avoidance of static and dynamic obstacles; when passing through the restricted waters, according to the formation formation change strategy based on the dangerous collision avoidance function, the unmanned boat formation will switch to straight-line navigation, pass through the narrow and long restricted waters in a straight-line formation, and after leaving the restricted waters, the unmanned boat formation will return to the desired triangular formation formation and finally reach the end point.
[0213] As shown in the figure, Figure 5 , Figure 6 , Figure 7The changes of the position coordinates of the leading unmanned boat, the following unmanned boat 1, and the following unmanned boat 2 in the unmanned boat formation over time are described respectively. Figure 8 , Fig. 9 , Fig.10 These are the speed information changes of the leading unmanned boat, following unmanned boat 1, and following unmanned boat 2 in the unmanned boat formation. When the unmanned boat formation encounters an obstacle, it will determine the impact of the obstacle on itself to change its potential energy, thereby affecting the expected track point of the unmanned boat formation, resulting in a large adjustment in speed. The collision avoidance path points of the unmanned boats in the unmanned boat formation will be adjusted in real time as they encounter obstacles to ensure the safe navigation of the formation. Figure 8 It can be seen that the speed state change of the leader unmanned boat is smoother than that of the other two follower boats. This is because the leader unmanned boat has been executing the collision avoidance guidance law, while the follower unmanned boat, in addition to executing the collision avoidance guidance law, also needs to switch its expected track point according to the dangerous situation of obstacles in the environment.
[0214] Fig.11 , Fig.12 , Fig.13 The weight error convergence of the RBF neural network of the leading unmanned boat, the following unmanned boat 1, and the following unmanned boat 2 is shown respectively. At the initial moment, the neural network estimation errors of the three unmanned boats will quickly converge to near 0. Since the expected path will change dramatically with the influence of obstacles in the environment when sailing in formation, the neural network adaptive law of the unmanned boat shows that the estimation error of the neural network will also change significantly, but the estimation error can converge to near 0 again in a short time, that is, the uncertainty of the unmanned boat formation can be effectively fitted by the RBF neural network.
[0215] Fig.14 The change of the Euclidean distance between the leading unmanned boat and the end point is shown. Finally, the leading unmanned boat stops moving near the set end point. Fig.15 The figure shows the speed comparison between the method of the present invention and the PID method in terms of formation. The figure shows the Euclidean distance between the actual positions of the following unmanned boats 1 and 2 and the expected formation relative position of the leading unmanned boat under the method of the present invention. When the Euclidean distance is 100, it means that the unmanned boat and the leading unmanned boat have formed a formation. At the 640s moment of simulation, the formation changes due to the formation change strategy. The control method used in the present invention can form the corresponding expected formation faster than the PID method.
[0216] In general, the simulation results prove the effectiveness of the unmanned boat formation tracking and obstacle avoidance control method, which can not only realize the unmanned boat formation tracking, but also perform formation maneuvers in complex water environments to avoid dynamic and static obstacles and achieve the mission goal of navigating narrow and restricted waters.
[0217] The invention relates to an unmanned boat formation tracking and obstacle avoidance control method, belonging to the technical field of unmanned boat formation motion control. The invention measures obstacles, unmanned boat formations, channel status information and expected target points sent by sensors and shore bases, plans feasible paths based on the collision avoidance guidance law of an improved artificial potential field method to meet collision avoidance requirements and comply with international maritime collision avoidance regulations, plans an unmanned boat formation plan based on a formation transformation strategy of a hazard evaluation function, finally generates a control law in real time based on an RBF neural network estimator and a backstepping controller and executes it by an actuator, drives the unmanned boat formation to track the expected target point, gives priority to formation collision avoidance when there is a collision avoidance risk, and realizes formation tracking and formation maintenance when there is no collision avoidance risk.
[0218] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.
[0219] Finally, it should be noted that the above specific implementation methods are only used to illustrate the technical solution of this patent rather than to limit it. Although this patent has been described in detail with reference to the preferred embodiments, ordinary technicians in this field should understand that the technical solution of this patent can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of this patent, which should be included in the scope of the claims of this patent.
Claims
1. A method for tracking and avoiding obstacles of an unmanned boat formation. It is characterized in that include: Step (1) obtaining the motion state information of the unmanned boat and the surrounding obstacle information, and establishing the unmanned boat formation maneuvering motion model; The step (1) of establishing the unmanned boat formation maneuvering motion model includes: Establishing an inertial coordinate system vector Indicates The position and heading angle of the unmanned boat are used to establish the attached coordinate system ,vector Indicates The longitudinal, lateral and bow turning speed states of the unmanned boats; the appendage coordinate system takes the center of gravity of the leading unmanned boat as the origin, the longitudinal forward direction as the X-axis, and the vertical direction as the Y-axis; the unmanned boat formation maneuvering motion model is established based on the inertial coordinate system and the appendage coordinate system; Establishing the unmanned boat formation maneuvering motion model: ; ; in, is the added mass inertia matrix, is the damping matrix, is the Coriolis force matrix, , , are the nominal model matrices of the unmanned boat’s additional mass inertia matrix, damping matrix, and Coriolis force matrix, respectively. The model is uncertain; For environmental disturbances, is the coordinate system transformation matrix; is the input force and moment matrix; Step (2) modeling the attractive force potential field of the unmanned boat according to the current position and speed state of the unmanned boat and the position and speed state of the target point to obtain an attractive force function; The step (2) further comprises: First, the attractive force field of the unmanned boat is modeled. The potential energy function is related to the current position and speed state of the unmanned boat and the position and speed state of the target point. and relative speed related; Indicates the position and speed of the unmanned boat itself, and the target position of the waypoint being tracked is , the speed of the waypoint speed tracked is , the attractive potential field formula is composed of the formula of the combined velocity modulus and the Euclidean distance as follows: ; ; ; in, and is the artificially adjusted potential field gain coefficient, and are the lateral and longitudinal coordinates of the unmanned boat in the inertial coordinate system, and are the horizontal and vertical coordinates of the target point in the inertial coordinate system, and are the longitudinal speed and transverse speed of the unmanned boat respectively, and are the longitudinal velocity and transverse velocity of the target point, is the combined speed of the unmanned boat, is the target point combined velocity; right Finding the gradient gives the attractive potential force: ; in is the direction unit vector of the attractive vector force generated by the relative position, is the direction unit vector of the attractive vector force generated by the relative velocity; Step (3) calculates a repulsive force function based on the distance between the dynamic obstacle and the unmanned boat and the state information of the unmanned boat according to the International Regulations for Preventing Collisions at Sea; said step (3) further comprises: The International Regulations for Preventing Collisions at Sea are used to divide the area where dynamic obstacles are located into three parts, namely, the danger avoidance area, the collision avoidance operation area, and the collision detection area. The obstacle repelling potential field is established according to the area where the dynamic obstacles are located. : ; in, and is the positive coefficient of repulsive potential energy, and the relative distance between the unmanned boat and the obstacle is expressed as ,in is the location of the obstacle, and Represent the radius of the three divided areas respectively. is the collision risk assessment angle, which is composed of the difference between the relative speed angle and relative position angle between the unmanned boat and the obstacle. and The critical angle of the collision avoidance zone, , To calculate vector and Angle, vector and are the relative position vector and relative velocity vector of the unmanned boat and the obstacle respectively; right Finding the negative gradient, we can convert the repulsive force It is expressed as: ; in: ; ; ; ; ; ; ; in, and are the unit vector of the relative position vector and the unit vector of the relative velocity vector between the obstacle and the unmanned boat, , , and represents the part of the attraction generated by the target point, , , , , Indicates the repulsive force generated by obstacles; Step (4) planning a feasible path to avoid obstacles based on the starting point and the end point and the resultant force obtained by the improved artificial potential field method, and generating a target waypoint on the path; Step (5) uses the combined repulsive potential energy generated by the obstacles to calculate the danger evaluation function, and adjusts the formation according to the danger evaluation function; the step (5) further includes: The combined repulsive potential energy generated by obstacles is used as input, and the formation transformation coefficient B is calculated through the danger evaluation function. , the formula of the risk assessment function B is: ; in, , Parameters related to potential energy, , ,……, Respectively represent multiple values of repulsive potential energy; Step (6) generates and outputs a formation tracking control instruction based on the backstepping method and the RBF neural network algorithm; the step (6) further comprises: set up For the The desired position and heading angle of the unmanned boat are defined as the position error system , and its derivative is currently: ; in is the virtual control input vector, in order to stabilize the position error system , define the virtual control vector The intermediate control amount for: ; in is a positive definite design parameter matrix, defining the error between the velocity vector and the virtual intermediate control quantity , then the current derivative formula can be expressed as: ; right Derivative and substitute into the motion model formula: ; Three RBF networks are introduced to approximate and compensate for the unknown dynamics of the unmanned boat and the environmental disturbances it encounters: ; in is the input vector of the RBF network, is the unknown upper bound of the interference, is the basis function vector, and the ideal constant weight matrix is: ; in , is the approximate error vector of the unknown dynamics of the unmanned boat and the environmental disturbance, let , respectively The control law is designed as follows: ; in is a positive constant matrix, and the update law of the neural network weight parameters is designed as: ; The specific form of the weight matrix estimate is: ; in and are the positive definite design matrix and design constant respectively.
2. The method according to claim 1, It is characterized in that The step (1) further comprises: ; ; ; ; The above matrix satisfies the following properties: ; ; Among them, the S matrix is: 。 3. The method according to claim 1, It is characterized in that The step (4) further comprises: First, based on the starting point and the end point and the resultant force obtained by the improved artificial potential field method, a feasible path from the starting point to the end point that satisfies the collision avoidance of static obstacles is designed, and the target waypoints on the path are generated. : ; in It is the angle between the vector direction of the resultant force of repulsion and attraction and the X-axis direction. It is The set speed of the unmanned boat; Secondly, the target waypoint is smoothed according to the distance between the unmanned boat and the tracked target waypoint. They represent the Euclidean distance between the unmanned boat and the target waypoint and the threshold distance of the unmanned boat using the smooth waypoint respectively; if , the calculation formula of the desired path waypoint coordinates and heading angle of the unmanned boat is as follows: ; if , the calculation formula of the desired path waypoint coordinates and heading angle of the unmanned boat is as follows: ; Finally, as the unmanned boat approaches the target waypoint, the unmanned boat moves according to the vector direction of the resultant force composed of repulsion and attraction. Adjust the desired longitudinal position of the unmanned boat and horizontal Location coordinates.
4. The method according to claim 1, It is characterized in that The step (5) further comprises: According to the formation transformation coefficient, calculate the The adaptive formation equation of following unmanned boats: ; in, Indicates The distance between the following unmanned boat and the leader unmanned boat in the longitudinal direction, Indicates The distance between the following unmanned boat and the leader unmanned boat in the lateral direction, where They represent the unit direction vectors opposite to the longitudinal velocity of the leader unmanned boat, Represents the unit direction vector perpendicular to the longitudinal velocity direction of the leader unmanned boat.
5. A computer device, It is characterized in that The method comprises a memory, a processor and program instructions stored in the memory and executable by the processor, wherein the processor executes the program instructions to implement the method according to any one of claims 1 to 4.
6. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
