An obstacle avoidance method for dual-vessel cooperative system based on artificial potential field

Through the obstacle avoidance method of the dual-vessel cooperative system based on the artificial potential field, using the virtual pilot and safe compensation distance, combined with the improved simulated annealing method, the obstacle collision, target inaccessibility and local minima in the path planning of the unmanned ship are solved. problem, achieving safe and efficient oil spill recovery by unmanned boats.

CN117270522BActive Publication Date: 2024-08-23HARBIN ENG UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310977887.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-04
Publication Date
2024-08-23
Estimated Expiration
2043-08-04

AI Technical Summary

Technical Problem

Existing obstacle avoidance methods for unmanned boats cannot simultaneously solve the problems of unmanned boats easily colliding with obstacles, unreachable targets, and local minima, resulting in path planning that does not meet actual needs.

Method used

The obstacle avoidance method of the two-boat collaborative system based on the artificial potential field is adopted. By setting up a virtual pilot, obtaining its coordinates, heading and speed, adjusting the heading to avoid obstacles, introducing safety compensation distance and improved simulated annealing method, and selecting the virtual pilot The next position is to avoid oscillation and ensure that the unmanned boat reaches the target point safely.

Benefits of technology

It effectively avoids the problems of the unmanned boat colliding with obstacles, being unable to reach the target point and falling into a local minimum, ensuring that the unmanned boat can safely and efficiently complete the oil spill recovery mission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117270522B
    Figure CN117270522B
Patent Text Reader

Abstract

A dual-boat cooperative system obstacle avoidance method based on artificial potential field relates to the technical field of unmanned boat obstacle avoidance. The present invention is to solve the problem that the unmanned boat obstacle avoidance method still cannot solve the problem that the unmanned boat is easy to collide with obstacles, the target is unreachable, and the local minimum value at the same time. The present invention comprises: setting the center position of the dual unmanned boat formation as a virtual navigator, and obtaining the virtual navigator information; obtaining the resultant force F exerted on the virtual navigator, and the virtual navigator sails along the F direction; judging whether the virtual navigator is in a defect at the current position, if the virtual navigator is in a defect, adjusting the heading of the virtual navigator; if the virtual navigator is not in a defect at the current position, the virtual navigator sails along the F direction; the virtual navigator advances to the next position, updates the current position of the virtual navigator, and judges whether the virtual navigator has reached the target point according to the updated current position of the virtual navigator, and ends if it reaches the target point. The present invention is used for unmanned boat obstacle avoidance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of unmanned boat obstacle avoidance, and in particular to an obstacle avoidance method for a dual-boat cooperative system based on an artificial potential field. Background Art

[0002] Oil spill accidents at sea are characterized by long-term harm and great impact, which will cause serious harm to the marine environment and biological health. Manned ships carry oil booms to capture and recover oil spills, which will not only consume a lot of manpower and material resources, but also cause serious harm to the crew on board. There are many advantages to using unmanned boats for offshore oil spill recovery tasks, including avoiding human participation, reducing recovery costs, improving the efficiency of task execution, and avoiding long recovery time that leads to further volatilization and expansion of oil spills. The dual-boat oil spill recovery system consists of two unmanned boats towing an oil boom, and is often used to deal with offshore oil spill accidents. Reasonable planning of the path of unmanned boats in the process of recovering oil spills can ensure that the unmanned boats complete their tasks safely and efficiently, and has practical application value.

[0003] At present, the artificial potential field method is widely used in path planning because of its advantages of simple calculation and easy implementation. The traditional artificial potential field method is a virtual force method proposed by Khatib to simulate the natural field. This method treats obstacles, target points, robots, etc. as one point for processing, and the robot moves in a virtual force field composed of gravitational potential field and repulsive potential field. Among them, there is a gravitational potential field around the target point that has a gravitational effect on the robot, and there is a repulsive potential field around the obstacle that has a repulsive effect on the robot. This method is simple in principle, convenient in calculation and easy to implement, so it is widely used. However, there are also some defects: 1. When the robot is close to the obstacle and the target point is far away, the gravitational force on the robot is much greater than the repulsive force, and it is possible to collide with the obstacle; 2. When the target point is within the influence distance of the obstacle and is close to the obstacle, the repulsive force of the obstacle on the robot is greater than the gravitational force on the robot, and the robot cannot reach the target point at this time; 3. At a certain position, the combined force of the repulsive force and the gravitational force on the robot is zero, and it will fall into a local minimum point and stop moving.

[0004] The path planning based on the improved artificial potential field method is mainly implemented by the following method. The patent number is CN111176272B, and the name is "A method and system for trajectory planning based on artificial potential field based on motion constraints". It provides a vehicle trajectory planning method based on artificial potential field. This method solves the problem of uneven trajectory of the vehicle by adding motion constraints; at the same time, the minimum gravity is set. When the calculated gravity is less than the minimum gravity, the set minimum gravity is used to solve the problem of unreachable target. However, this method does not solve the problem of robot stopping movement and possible collision with obstacles caused by local minima in the traditional artificial potential field method, and the planned trajectory cannot fully meet the actual needs. The patent number is CN112099501B, and the name is "A method for unmanned boat path planning based on potential field parameter optimization". A method for unmanned boat path planning based on artificial potential field is proposed. This method uses multiple gravitational and repulsive gain coefficients for path planning, and considers the three evaluation coefficients of collision avoidance coefficient, length coefficient and turning angle coefficient at the same time. Drawing on the classic genetic algorithm, the planned path avoids local minima and meets the motion constraints of the unmanned boat. However, this method does not solve the problem of unreachable targets and possible collisions with obstacles in the traditional artificial potential field method, and there is still room for improvement. The patent number is CN113110604B, and the name is "A path dynamic planning method based on artificial potential field", which provides an improved artificial potential field method combined with simulated annealing method. This method optimizes the neighborhood function of the simulated annealing method based on the target position, solves the problem that the path planning task fails after the drone falls into a local optimal state, and improves the overall operation efficiency and success rate of path planning. However, this method only improves the defect of the local minimum value in the traditional artificial potential field method, and the problem that obstacles and unmanned boats are easy to collide and unmanned boats cannot reach the target point is not solved. Therefore, the unmanned boat obstacle avoidance method based on the improved artificial potential field method in the prior art still has the problem that the robot is easy to collide with obstacles when the robot is subjected to much greater gravity than the repulsion, the robot cannot reach the target point when the robot is subjected to much greater repulsion than the gravity, and the robot is easy to fall into the local minimum and stop when the combined force of gravity and repulsion is zero. Summary of the invention

[0005] The purpose of the present invention is to solve the problems that the existing unmanned boat obstacle avoidance methods cannot simultaneously solve the problems of unmanned boats easily colliding with obstacles, unreachable targets, and local minimum values, and proposes an obstacle avoidance method for a dual-boat collaborative system based on an artificial potential field.

[0006] The specific process of an obstacle avoidance method for a dual-boat cooperative system based on an artificial potential field is as follows:

[0007] Step 1: Set the center position of the double unmanned boat formation as the virtual navigator and obtain the virtual navigator information;

[0008] The virtual navigator information includes: the coordinates V(x v ,y v ), heading ψ v and speed v v ;

[0009] Step 2: Obtain the resultant force F exerted on the virtual navigator at the current position, and make the virtual navigator navigate along the direction of the resultant force F;

[0010] Step 3: determine whether the virtual navigator is in a defect at the current position. If the virtual navigator is in a defect, adjust the heading of the virtual navigator using the virtual navigator information and the resultant force on the virtual navigator obtained in step 2, and then execute step 4; if the virtual navigator is not in a defect at the current position, the virtual navigator sails along the direction of the resultant force F, and then execute step 4;

[0011] Step 4: The virtual navigator moves to the next position and updates the current position of the virtual navigator. It is determined whether the virtual navigator has reached the target point based on the updated current position of the virtual navigator. If the virtual navigator has reached the target point, the process ends. If the virtual navigator has not reached the target point, the process returns to step 2.

[0012] Furthermore, the virtual navigator information is obtained in step 1 as follows:

[0013]

[0014] Among them, (x1, y1) and (x2, y2) are the coordinates of the two unmanned surface boats, ψ1 and ψ2 are the headings of the two unmanned surface boats, v1 and v2 are the speeds of the two unmanned surface boats, (x v ,y v ) are the coordinates of the virtual navigator V.

[0015] Furthermore, the resultant force F exerted on the virtual navigator at the current position in step 2 is as follows:

[0016] F=F att +F rep

[0017] F att =-k att (VT)

[0018]

[0019] Among them, F att is the gravitational force of the target point on the virtual navigator, F rep is the repulsive force of the obstacle on the virtual navigator, k att is the gravitational gain constant, T is the position of the target point, k repis the repulsion gain constant, ρ obs is the distance between the virtual navigator and the obstacle, and ρ0 is the influence radius of the obstacle.

[0020] Furthermore, in step 3, it is determined whether the virtual navigator is in a defect at the current position, specifically:

[0021] When ot >ρ0 and And l<r obs +r s +Γ, it means that the virtual navigator is trapped in defect 1 at the current position;

[0022] Among them, μ is the angle between VR and F, VR is the line between the virtual navigator and the obstacle, l is the vertical distance from the obstacle to the line where F is located, r obs is the actual radius of the obstacle, Γ is the safety compensation distance for defect 1, r s is the safety compensation radius for the double unmanned boat formation, ρ ot is the distance between the target point and the obstacle;

[0023] When ot <ρ0, it means that the virtual navigator falls into defect 2 at the current position;

[0024] If F=0, it means that the virtual navigator falls into defect 3 at the current position.

[0025] Furthermore, if the virtual navigator falls into a defect in step 3, the heading of the virtual navigator is adjusted using the virtual navigator information and the resultant force on the virtual navigator obtained in step 2, specifically:

[0026] If the virtual pilot falls into defect 1, Make the virtual navigator sail in a direction away from obstacles;

[0027] in, is the angle between the virtual navigator's navigation direction and the x-direction of the geodetic coordinate system, β is the angle between VR and the x-direction of the geodetic coordinate system, γ is the angle between VR and VS, VS is the line connecting the virtual navigator and point S, and S is the equivalent radius r of the obstacle in the vertical direction from the obstacle to the straight line where F is located. o Extend the points obtained by Γ;

[0028] The obstacle equivalent radius r o , as follows:

[0029] r o =r obs +r s

[0030] If the virtual pilot falls into defect 2, then when d ≥ robs +r s +Ω or season When d<r obs +r s +Ω and season

[0031]

[0032] Where η is the angle between VT and the x direction of the geodetic coordinate system, (x t ,y t ) is the position coordinate of the target point T, d is the vertical distance from the obstacle to VT, VT is the line connecting the virtual navigator and the target point, Ω is the safety compensation distance for defect 2, λ is the angle between VR and VT, β is the angle between VR and the x direction of the geodetic coordinate system, γ1 is the angle between VR and VQ, VQ is the line connecting the virtual navigator and Q, and Q is the equivalent radius r of the obstacle along the direction from the obstacle to VT. o Extend the points obtained by Ω;

[0033] If the virtual navigator falls into defect 3, the next position of the virtual navigator is obtained so that the resultant force F received by the virtual navigator at the next position is not zero.

[0034] Furthermore, the vertical distance from the obstacle to the line where F is located is obtained by the following formula:

[0035] l=ρ obs cosε

[0036]

[0037]

[0038] Among them, ε is the angle between VR and RS, RS is the line connecting the obstacle and point S, θ is the angle between the F direction and the x direction of the geodetic coordinate system, (x obs ,y obs ) is the position coordinate of obstacle R, (x o ,y o ) is the origin of the geodetic coordinate system.

[0039] Furthermore, the angle formed by VR and VT is obtained by the following formula:

[0040]

[0041] Among them, ρ vt is the distance from the virtual navigator to the target point.

[0042] Furthermore, the angle formed by VR and VS is obtained by the following formula:

[0043]

[0044] Among them, γ is the angle formed by VR and VS.

[0045] Furthermore, the angle formed by VR and VQ is as follows:

[0046]

[0047]

[0048] Among them, σ is the angle formed by VR and RQ, and RQ is the line between the obstacle and Q.

[0049] Furthermore, if the virtual navigator falls into defect 3, the next position of the virtual navigator is obtained so that the resultant force F received by the virtual navigator at the next position is not 0, specifically:

[0050] S1, initial temperature T0, end temperature T f , random probability threshold ξ, maximum heading change angle of the dual-vessel cooperative system initialization;

[0051]

[0052] Where Δt is the time step, R s is the turning radius of the unmanned boat located on the outer side in the dual-boat cooperative system at the current moment;

[0053] S2, select a random point X1;

[0054] S3, obtain the difference between the potential field U(V) at position V and the potential field U(X1) at position X1. If U(X1)-U(V)<0, execute S4. If U(X1)-U(V)≥0, use T0 and T1 according to the Metropolis criterion. f Calculate the probability P of accepting X1 as the next position of the virtual navigator. If P>ξ, execute S4; if P≤ξ, return to S2 and reselect a random point;

[0055] The potential field U(V) at position V and the potential field U(X1) at position X1 are obtained by the following formula:

[0056] U=U att +U rep

[0057]

[0058]

[0059] Among them, U is the combined potential field, Uatt is the gravitational potential field, U rep is the repulsive potential field;

[0060] S4. Obtain the difference between the current position and the next position of the virtual navigator Will and For comparison, if Then accept X1 as the next position of the virtual navigator; if Return to S2 and reselect a random point;

[0061] S5, after the virtual navigator arrives at position X1, it is determined whether the resultant force of gravity and repulsion at the current position of the virtual navigator is 0. If the resultant force is not 0, it means that the local minimum point has been escaped, and the target point will continue to be tracked; if the resultant force of gravity and repulsion at the current position of the virtual navigator is still 0, it will return to S2 and reselect a random point.

[0062] The beneficial effects of the present invention are:

[0063] Aiming at the existing unmanned boat path planning problem based on the traditional artificial potential field method, the artificial potential field method has the problems of possible collision with obstacles, unreachable target and local minimum value. The present invention introduces a safety compensation distance and improves the simulated annealing method. At the same time, the present invention combines the maximum heading change angle of the dual-boat oil spill recovery system, and screens the next position of the virtual navigator selected by the improved simulated annealing algorithm to ensure that the unmanned boat path will not have large oscillations. The present invention first determines whether there is a risk of falling into three defects, and then proposes solutions to the three defects. The APF-1, APF-2 and APF-3 proposed by the present invention can avoid the unmanned boat being easy to collide with obstacles due to the fact that the gravity on the unmanned aircraft is much greater than the repulsion, the unmanned boat being unable to reach the target point due to the repulsion on the unmanned aircraft being much greater than the gravity, and the robot being easy to fall into the local minimum and stop due to the resultant force of the gravity and repulsion on the unmanned boat being zero. The present invention can safely avoid obstacles and ultimately ensure that the unmanned boat safely tracks the target oil spill. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 It is a flow chart of the present invention;

[0065] Figure 2 This is a schematic diagram of defect 1;

[0066] Figure 3 This is a schematic diagram of defect 2;

[0067] Figure 4 This is a schematic diagram of defect 3;

[0068] Figure 5 A schematic diagram of a virtual navigator in the present invention;

[0069] Figure 6 It is a schematic diagram of obstacles in the present invention;

[0070] Figure 7 Schematic diagram of the improved artificial potential field method for defect 1 in the present invention;

[0071] Figure 8 Schematic diagram of the improved artificial potential field method for defect 2 in the present invention;

[0072] Fig. 9 Flowchart for APF-3 algorithm to escape from local minimum points. DETAILED DESCRIPTION

[0073] Specific implementation method 1: Figure 1 As shown, the specific process of the obstacle avoidance method of the dual-boat cooperative system based on the artificial potential field in this embodiment is as follows:

[0074] Step 1: Set the formation center of the two unmanned boats in the oil spill recovery system as a virtual navigator, and obtain the virtual navigator information;

[0075] The virtual navigator's information includes: the virtual navigator's coordinates V(x v ,y v ), heading ψ v and speed v v :

[0076]

[0077] Among them, (x1, y1) is the coordinate of USV1 (surface unmanned vehicle 1), (x2, y2) is the coordinate of USV1 (surface unmanned vehicle 2), ψ1 is the heading of USV1, ψ2 is the heading of USV2, v1 is the speed of USV1, and v2 is the speed of USV2, such as Figure 5 As shown;

[0078] Step 2: Figure 6 , set the safety compensation radius r for the double unmanned boat formation s , and obtain the virtual navigator at the current position V(x v ,y v ) The resultant force F = F att +F rep , so that the virtual navigator sails along the direction of the resultant force F;

[0079] F att =-k att (VT)

[0080]

[0081] Among them, F attis the gravitational force of the target point on the virtual navigator, and the direction is from the navigator to the target point, F rep is the repulsive force of the obstacle on the virtual navigator, the direction is from the obstacle to the navigator, k att is the gravitational gain constant, T is the position of the target point, k rep is the repulsion gain constant, ρ obs is the distance between the virtual navigator and the obstacle, and ρ0 is the influence radius of the obstacle.

[0082] Step 3: determine whether the virtual navigator is in a defect at the current position. If the virtual navigator is in a defect, the virtual navigator's heading is adjusted by using the improved artificial potential field method using the virtual navigator information and the resultant force on the virtual navigator obtained in step 2. After adjusting the heading of the virtual navigator, step 4 is executed; if the virtual navigator is not in a defect at the current position, step 4 is executed;

[0083] Step 31: Determine whether the virtual navigator is in a defect at the current position:

[0084] First, determine whether the virtual navigator falls into any of the following defects: defect 1 (the virtual navigator is close to the obstacle but far from the target point, and the gravitational force on the virtual navigator is much greater than the repulsive force, so the virtual navigator will collide with the obstacle), defect 2 (when the target point is within the influence distance of the obstacle and close to the obstacle, the repulsive force of the obstacle on the virtual navigator is greater than the gravitational force on the virtual navigator, and the virtual navigator cannot reach the target point), defect 3 (at a certain position, the combined force of the repulsive force and the gravitational force on the robot is zero, and the virtual navigator falls into a local minimum point and stops moving). If there is no defect, execute step 4; if it falls into defect 1, execute step 32; if it falls into defect 2, execute step 33; if it falls into defect 3, execute step 34; schematic diagrams of the three defects are shown as follows: Figure 2-4 As shown;

[0085] When the target point is outside the influence range of the obstacle (ρ ot >ρ0), and And l<r obs +r s +Γ, it means that it falls into defect 1; if any condition is not met, it means that it does not fall into defect 1. The virtual navigator sails in the direction of the combined force;

[0086] l=ρ obs cosε

[0087] Among them, ρ ot is the distance between the target point and the obstacle, μ is the angle between VR and F, l is the vertical distance from the obstacle to the straight line where F is located, r obsis the actual radius of the obstacle, Γ is the safety compensation distance introduced for defect 1, ε is the angle between VR and RS, and S is the equivalent radius r of the obstacle along the l direction. o Extend the point obtained by Γ, r o =r obs +r s , RS is the line between the obstacle and point S, VR is the line between the virtual navigator and the obstacle, is the angle between the virtual navigator’s navigation direction and the x-axis, and θ is the angle between the F direction and the x-axis;

[0088] When ot <ρ0, it means that the virtual navigator falls into defect 2, otherwise it means that the virtual navigator does not fall into defect 2 and the virtual navigator sails along the direction F;

[0089] If F = 0, it means that the virtual navigator falls into defect 3. If the virtual navigator does not fall into defect 3, the virtual navigator sails in the direction of F;

[0090] Step 32: Use the improved artificial potential field method (APF-1) to adjust the heading of the virtual navigator using the virtual navigator information and the resultant force on the virtual navigator obtained in step 2, and then execute step 4, specifically:

[0091] When it falls into defect 1, let Making the virtual navigator sail in a direction away from obstacles can effectively avoid the occurrence of defect 1;

[0092]

[0093] like Figure 7 As shown, R(x obs ,y obs ) is the position coordinate of the obstacle, r obs is the actual radius of the obstacle, r o =r obs +r s is the equivalent radius of the obstacle, l is the vertical distance from the obstacle to the straight line where F is located, Γ is the safety compensation distance introduced for defect 1, β is the angle between VR and the x-axis, μ is the angle between VR and the F direction, θ is the angle between the F direction and the x-axis, γ is the angle corresponding to the edge RS in ΔVRS (the angle ∠RVS formed by VR and VS, VR is the line between the virtual navigator and the obstacle, and VS is the line between the virtual navigator and point S), ε is the angle corresponding to the edge VS in ΔVRS (the angle between RS and RV ∠VRS, RS is the line between the obstacle and point S), is the angle between the virtual navigator’s navigation direction and the x-axis, (x o ,y o ) is the origin of the geodetic coordinate system;

[0094] The coordinate system in the present invention is a geodetic coordinate system. The situation where the center point of the obstacle is located below the line connecting the virtual navigator and the target point is similar to this, so it will not be repeated here.

[0095] Step 3: The improved artificial potential field method (APF-2) for defect 2 is used to adjust the heading of the virtual navigator using the information of the virtual navigator and the resultant force on the virtual navigator obtained in step 2, and then step 4 is executed, such as Figure 8 As shown:

[0096] When d ≥ r obs +r s +Ω or season The virtual navigator moves directly toward the target point along the line connecting the target point; otherwise (d<r obs +r s +Ω and ),make The virtual navigator approaches the target point while avoiding obstacles, which can effectively avoid the occurrence of defect 2.

[0097]

[0098] Where d is the vertical distance from the obstacle to VT, VT is the line between the virtual navigator and the target point, Ω is the safety compensation distance newly introduced for defect 2, λ is the angle between RV and VT, RV is the line between the obstacle and the virtual navigator, and ρ vt is the distance from the virtual navigator to the target point, ρ ot is the distance between the target point and the obstacle; σ is the angle corresponding to the edge VQ in ΔVRQ (the angle ∠VRQ formed by RV and RQ, RV is the line between the obstacle and the virtual navigator, and RQ is the line between the obstacle and Q), Q is the equivalent radius r of the obstacle along the d direction o The point obtained by extending Ω, η is the angle between VT and the x-axis, γ1 is the angle corresponding to the side RQ in ΔVRQ (the angle between RV and VQ is ∠RVQ, VQ is the line connecting the virtual navigator and Q), T(x t ,y t ) is the location of the target point, such as Figure 6 shown.

[0099] The situation where the center point of the obstacle is located below the line connecting the virtual navigator and the target point is similar to this, so it will not be described in detail.

[0100] Step 3 and 4: Use the improved artificial potential field method (APF-3) for defect 3 to adjust the heading of the virtual navigator using the information of the virtual navigator and the resultant force on the virtual navigator obtained in step 2, and then execute step 4, such as Fig. 9 As shown, the details are as follows:

[0101] Step 341. Parameter initialization: determine the initial temperature T0 and the end temperature T f , random probability threshold ξ, maximum heading change angle of the dual-boat oil spill recovery system

[0102]

[0103] in, is the maximum heading change angle of the dual-boat oil spill recovery system, Δt is the time step, and v v is the virtual navigator speed, R s is the turning radius of the unmanned boat located on the outer side of the dual-boat oil spill recovery system at the current moment;

[0104] Step 342: Select a random point X1 near the virtual navigator's position V;

[0105] Step 343: Calculate the potential fields U(V) and U(X1) of position V and position X1. If U(X1)-U(V)<0, the next position of the virtual navigator is X1, and then execute step 344; if U(X1)-U(V)≥0, calculate the probability P of accepting X1 according to the Metropolis criterion. If P>ξ, the next position of the virtual navigator is X1, and then execute step 344; if P≤ξ, return to step 342 and reselect a random point;

[0106] The potential field calculation formula is as follows:

[0107] U=U att +U rep

[0108]

[0109]

[0110] Where U is the resultant potential field, U att is the gravitational potential field, U rep It is a repulsive potential field.

[0111] According to the Metropolis criterion, the probability P of accepting X1 is calculated as follows:

[0112]

[0113] Where T1 is the temperature in the simulated annealing algorithm, which is reduced in a certain way as shown in the following formula:

[0114] T1(t)=αT1(t-1)

[0115] In the formula, α is any positive constant in the interval (0.85, 1), which is selected according to the actual situation, and t is the number of iterations;

[0116] T1(t) starts from T0 and ends at the temperature T f End, if P>ξ is obtained during the iteration, then execute step 344; if T is reached f If P>ξ is not found, return to step 342;

[0117] Step 344: Before accepting X1 as the next position of the virtual navigator, calculate the heading difference between the current position of the virtual navigator and the heading of the next position Will and For comparison. Then accept the next position of the virtual navigator as X1; if Return to step 342 and reselect a random point.

[0118] Step 345: After the virtual navigator arrives at position X1, determine whether the resultant force of gravity and repulsion at the current position of the virtual navigator is 0. If the resultant force is not 0, it has escaped the local minimum point and continues to track the target point; if the resultant force of gravity and repulsion at the current position of the virtual navigator is still 0, return to step 342 and reselect a random point.

[0119] Step 4: The virtual navigator moves to the next position and updates the current position of the virtual navigator. It is determined whether the virtual navigator has reached the target point based on the updated current position of the virtual navigator. If the virtual navigator has reached the target point, the process ends. If the virtual navigator has not reached the target point, the process returns to step 2.

Claims

1. An obstacle avoidance method for a dual-vessel cooperative system based on an artificial potential field, characterized in that The specific process of the method is: Step 1: Set the center position of the double unmanned boat formation as the virtual navigator and obtain the virtual navigator information; The virtual navigator information includes: the coordinates V(x v ,y v ), heading ψ v and speed v v ; Step 2: Obtain the resultant force F exerted on the virtual navigator at the current position, and make the virtual navigator navigate along the direction of the resultant force F; Step 3: determine whether the virtual navigator is in a defect at the current position. If the virtual navigator is in a defect, adjust the heading of the virtual navigator using the virtual navigator information and the resultant force on the virtual navigator obtained in step 2, and then execute step 4; if the virtual navigator is not in a defect at the current position, the virtual navigator sails along the direction of the resultant force F, and then execute step 4; Determine whether the virtual navigator is in a defect at the current position, specifically: When ot >ρ0 and And l<r obs +r s +Γ, it means that the virtual navigator is trapped in defect 1 at the current position; Among them, μ is the angle between VR and F, VR is the line between the virtual navigator and the obstacle, l is the vertical distance from the obstacle to the line where F is located, r obs is the actual radius of the obstacle, Γ is the safety compensation distance for defect 1, r s is the safety compensation radius for the double unmanned boat formation, ρ ot is the distance between the target point and the obstacle, ρ0 is the influence radius of the obstacle; When ot <ρ0, it means that the virtual navigator falls into defect 2 at the current position; If F = 0, it means that the virtual navigator is trapped in defect 3 at the current position; If the virtual navigator falls into a defect, the heading of the virtual navigator is adjusted using the virtual navigator information and the resultant force on the virtual navigator obtained in step 2, specifically: If the virtual pilot falls into defect 1, Make the virtual navigator sail in a direction away from obstacles; in, is the angle between the virtual navigator's navigation direction and the x-direction of the geodetic coordinate system, β is the angle between VR and the x-direction of the geodetic coordinate system, γ is the angle between VR and VS, VS is the line connecting the virtual navigator and point S, and S is the equivalent radius r of the obstacle in the vertical direction from the obstacle to the straight line where F is located. o Extend the points obtained by Γ; The obstacle equivalent radius r o , as follows: r o =r obs +r s If the virtual pilot falls into defect 2, then when d ≥ r obs +r s +Ω or season When d<r obs +r s +Ω and season Where η is the angle between VT and the x direction of the geodetic coordinate system, (x t ,y t ) is the position coordinate of the target point T, d is the vertical distance from the obstacle to VT, VT is the line connecting the virtual navigator and the target point, Ω is the safety compensation distance for defect 2, λ is the angle between VR and VT, β is the angle between VR and the x direction of the geodetic coordinate system, γ1 is the angle between VR and VQ, VQ is the line connecting the virtual navigator and Q, and Q is the equivalent radius r of the obstacle along the direction from the obstacle to VT. o Extend the points obtained by Ω; If the virtual navigator falls into defect 3, the next position of the virtual navigator is obtained so that the resultant force F received by the virtual navigator at the next position is not 0; Step 4: The virtual navigator moves to the next position and updates the current position of the virtual navigator. It is determined whether the virtual navigator has reached the target point based on the updated current position of the virtual navigator. If the virtual navigator has reached the target point, the process ends. If the virtual navigator has not reached the target point, the process returns to step 2.

2. The obstacle avoidance method for a dual-vessel cooperative system based on an artificial potential field according to claim 1, characterized in that: The virtual navigator information is obtained in step 1 as follows: Among them, (x1, y1) and (x2, y2) are the coordinates of the two unmanned surface boats, ψ1 and ψ2 are the headings of the two unmanned surface boats, v1 and v2 are the speeds of the two unmanned surface boats, (x v ,y v ) are the coordinates of the virtual navigator V.

3. The obstacle avoidance method for a dual-vessel cooperative system based on an artificial potential field according to claim 2, characterized in that: The resultant force F exerted on the virtual navigator at the current position in step 2 is as follows: F=F att +F rep F att =-k att (V-T) Among them, F att is the gravitational force of the target point on the virtual navigator, F rep is the repulsive force of the obstacle on the virtual navigator, k att is the gravitational gain constant, T is the position of the target point, k rep is the repulsion gain constant, ρ obs is the distance between the virtual navigator and the obstacle, ρ0 is the influence radius of the obstacle, and V is the position of the virtual navigator.

4. The obstacle avoidance method for a dual-vessel cooperative system based on an artificial potential field according to claim 3 is characterized in that: The vertical distance from the obstacle to the line where F is located is obtained by the following formula: l=ρ obs something Among them, ε is the angle between VR and RS, RS is the line connecting the obstacle and point S, θ is the angle between the F direction and the x direction of the geodetic coordinate system, (x obs ,y obs ) is the position coordinate of obstacle R, (x o ,y o ) is the origin of the geodetic coordinate system.

5. The obstacle avoidance method for a dual-vessel cooperative system based on an artificial potential field according to claim 4, characterized in that: The angle between VR and VT is obtained by the following formula: Among them, ρ vt is the distance from the virtual navigator to the target point.

6. The obstacle avoidance method for a dual-vessel cooperative system based on an artificial potential field according to claim 5, characterized in that: The angle between VR and VS is obtained by the following formula: Among them, γ is the angle formed by VR and VS.

7. The obstacle avoidance method for a dual-vessel cooperative system based on an artificial potential field according to claim 6, characterized in that: The angle between VR and VQ is as follows: Among them, σ is the angle formed by VR and RQ, and RQ is the line between the obstacle and Q.

8. The obstacle avoidance method for a dual-vessel cooperative system based on an artificial potential field according to claim 7, characterized in that: If the virtual navigator falls into defect 3, the next position of the virtual navigator is obtained so that the resultant force F received by the virtual navigator at the next position is not 0, specifically: S1, initial temperature T0, end temperature T f , random probability threshold ξ, maximum heading change angle of the dual-vessel cooperative system initialization; Where Δt is the time step, R s is the turning radius of the unmanned boat located on the outer side in the dual-boat cooperative system at the current moment; S2, select a random point X1; S3, obtain the difference between the potential field U(V) at position V and the potential field U(X1) at position X1. If U(X1)-U(V)<0, execute S4. If U(X1)-U(V)≥0, use T0 and T1 according to the Metropolis criterion. f Calculate the probability P of accepting X1 as the next position of the virtual navigator. If P>ξ, execute S4; if P≤ξ, return to S2 and reselect a random point; The potential field U(V) at position V and the potential field U(X1) at position X1 are obtained by the following formula: U=U att +U rep Among them, U is the combined potential field, U att is the gravitational potential field, U rep is the repulsive potential field; S4. Obtain the difference between the current position and the next position of the virtual navigator Will and For comparison, if Then accept X1 as the next position of the virtual navigator; if Return to S2 and reselect a random point; S5, after the virtual navigator arrives at position X1, it is determined whether the resultant force of gravity and repulsion at the current position of the virtual navigator is 0. If the resultant force is not 0, it means that the local minimum point has been escaped, and the target point will continue to be tracked; if the resultant force of gravity and repulsion at the current position of the virtual navigator is still 0, it will return to S2 and reselect a random point.

Citation Information

Cited By

  • Ocean robot formation adaptive variable weight dynamic window obstacle avoidance method and system fused with COLRGES, and storage medium

    CN121115499A