[go: up one dir, main page]

CN112650232B - Reverse speed obstacle method dynamic obstacle avoidance method combined with COLRGES - Google Patents

Reverse speed obstacle method dynamic obstacle avoidance method combined with COLRGES Download PDF

Info

Publication number
CN112650232B
CN112650232B CN202011481430.1A CN202011481430A CN112650232B CN 112650232 B CN112650232 B CN 112650232B CN 202011481430 A CN202011481430 A CN 202011481430A CN 112650232 B CN112650232 B CN 112650232B
Authority
CN
China
Prior art keywords
obstacle
unmanned ship
usv
ship
speed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011481430.1A
Other languages
Chinese (zh)
Other versions
CN112650232A (en
Inventor
赵红
高阳
樊宇
白瑾珺
张金泽
程欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian Maritime University
Original Assignee
Dalian Maritime University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian Maritime University filed Critical Dalian Maritime University
Priority to CN202011481430.1A priority Critical patent/CN112650232B/en
Publication of CN112650232A publication Critical patent/CN112650232A/en
Application granted granted Critical
Publication of CN112650232B publication Critical patent/CN112650232B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/0206Control of position or course in two dimensions specially adapted to water vehicles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Traffic Control Systems (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

The invention provides a dynamic obstacle avoidance method combining with a COLRGES (COLRGES) reverse speed obstacle method, which comprises the steps of realizing local dynamic obstacle avoidance of an unmanned ship based on the reverse speed obstacle method; based on an inverse speed obstacle method, a conflict detection function is introduced to detect whether collision danger exists between the unmanned ship and the obstacle in real time; based on the marine obstacle avoidance rules, an obstacle avoidance strategy is added when the ship is in a dangerous early warning area, and the decision of the ship after the ship is out of the marine rules is defined. The invention applies the reverse speed obstacle method to the local dynamic obstacle avoidance of the unmanned ship, so that the unmanned ship is prevented from error interference caused by self-state detection, and the local obstacle avoidance capability of the unmanned ship is improved; the collision detection function of the unmanned ship enhances the efficiency of the unmanned ship in obstacle avoidance decision, and improves the capability of local obstacle avoidance; the ship can quickly take more efficient countermeasures to the obstacle avoidance in the dangerous early warning area. The reverse speed obstacle method is combined with the improved maritime rule, so that the high efficiency of dynamic obstacle avoidance of the unmanned ship in a local environment is improved, and the safety of the unmanned ship during navigation is ensured.

Description

一种结合COLRGES的逆速度障碍法动态避障方法A Dynamic Obstacle Avoidance Method Based on Inverse Velocity Obstacle Method Combined with COLRGES

技术领域technical field

本发明涉及船舶应用技术领域,具体而言,尤其涉及一种结合COLRGES的逆速度障碍法动态避障方法。The present invention relates to the technical field of ship application, in particular to a dynamic obstacle avoidance method combined with COLRGES inverse speed obstacle method.

背景技术Background technique

速度障碍法是应用于水面无人艇动态避碰的方法,其原理是将障碍物与无人艇进行膨化处理后,建立无人艇-障碍物U-O环境模型,确定碰撞区域。如图3、4所示,建立U-O坐标系,在t时刻,无人艇向障碍物两侧切线方向发射射线L1和L2,形成速度碰撞锥;无人艇A和障碍物B的速度分别为VA和VB,两者相对速度为VAB=VA-VB,若两者的相对速度在速度碰撞锥内,则认为两者在未来的某一时刻会发生碰撞,所以需要改变两者的相对速度,使得VAB脱离速度碰撞锥。The speed obstacle method is a method applied to the dynamic collision avoidance of surface unmanned vehicles. Its principle is to establish an unmanned vehicle-obstacle UO environment model after expanding the obstacles and unmanned vehicles to determine the collision area. As shown in Figures 3 and 4, the UO coordinate system is established. At time t, the unmanned boat emits rays L 1 and L 2 tangentially to both sides of the obstacle to form a velocity collision cone; the speed of the unmanned boat A and obstacle B are V A and V B respectively, and the relative velocity of the two is V AB = VA -V B , if the relative velocity of the two is within the velocity collision cone, it is considered that the two will collide at some point in the future, so we need Change the relative velocity of the two so that V AB breaks away from the velocity collision cone.

速度障碍法在运行时,会一直检测无人艇和动态障碍物本身的速度和相对位置,这就导致当无人艇在进行自状态检测时,会因为装置本身受到的干扰和检测时产生的误差,导致检测到的无人艇速度和位置信息出现错误,从而会使得相对速度的选择出现错误,导致无人艇与动态障碍物在不久的将来会发生碰撞。When the speed obstacle method is running, it will always detect the speed and relative position of the unmanned boat and the dynamic obstacle itself, which leads to the fact that when the unmanned boat is performing self-state detection, it will be affected by the interference and detection of the device itself. The error will lead to errors in the detected speed and position information of the unmanned vehicle, which will cause errors in the selection of the relative speed, resulting in collisions between the unmanned vehicle and dynamic obstacles in the near future.

发明内容Contents of the invention

根据上述提出的技术问题,而提供一种结合COLRGES的逆速度障碍法动态避障方法。According to the above-mentioned technical problems, a dynamic obstacle avoidance method of inverse speed obstacle method combined with COLRGES is provided.

本发明采用的技术手段如下:The technical means adopted in the present invention are as follows:

一种结合COLRGES的逆速度障碍法动态避障方法,包括:A dynamic obstacle avoidance method of inverse speed obstacle method combined with COLRGES, including:

S1、基于逆速度障碍法,实现无人船的局部动态避障;S1. Based on the inverse speed obstacle method, realize the local dynamic obstacle avoidance of the unmanned ship;

S2、基于逆速度障碍法,引入冲突检测函数f(*),实时检测无人船与障碍物是否存在碰撞危险;S2. Based on the inverse speed obstacle method, the collision detection function f(*) is introduced to detect whether there is a collision risk between the unmanned ship and the obstacle in real time;

S3、基于海事避障规则,增加关于船舶在危险预警区域时的避障策略,明确船舶在脱离海事规则后的决策。S3. Based on the maritime obstacle avoidance rules, add the obstacle avoidance strategy when the ship is in the danger warning area, and clarify the decision-making of the ship after breaking away from the maritime rules.

进一步地,所述步骤S1具体包括:Further, the step S1 specifically includes:

S11、假设无人船是静止的,建立以无人船为中心的框架;S11. Assuming that the unmanned ship is stationary, establish a framework centered on the unmanned ship;

S12、将障碍物质点化处理,用A来表示,对无人船进行膨化处理,将无人船膨化成半径为R的圆盘,用B来表示,其中,R为障碍物半径和无人船的半径之和;S12. Turn the obstacle into points, denoted by A, expand the unmanned ship, and expand the unmanned ship into a disc with a radius of R, denoted by B, where R is the radius of the obstacle and the unmanned the sum of the radii of the ship;

S13、从A点发出两条射线与圆盘B相切,形成速度碰撞锥;S13. Two rays are emitted from point A and are tangent to disk B, forming a velocity collision cone;

S14、在无人船行驶过程中,若无人船的常规避障区域内出现障碍物时,假设在瞬时时刻t,障碍物的速度为VA,此时无人船静止,即VB=0,则无人船与障碍物的相对速度VAB=VA-VB=VAS14. During the driving process of the unmanned ship, if there is an obstacle in the conventional obstacle avoidance area of the unmanned ship, assuming that at the instant t, the speed of the obstacle is V A , and the unmanned ship is stationary at this time, that is, V B = 0, then the relative speed V AB of the unmanned ship and the obstacle V AB = V A -V B = V A ;

S15、若VAB位于速度碰撞锥内,则认为无人船会与障碍物发生碰撞,人为给无人船一个速度控制u,令VAB=VA+u,使得相对速度脱离速度碰撞锥外,无人船实现避碰。S15. If V AB is located in the velocity collision cone, it is considered that the unmanned ship will collide with obstacles, and artificially give the unmanned ship a speed control u, so that V AB = V A + u, so that the relative speed is out of the speed collision cone , the unmanned ship realizes collision avoidance.

进一步地,所述步骤S2具体包括:Further, the step S2 specifically includes:

S21、利用方向引导函数f(/),使无人船一直朝着目标点的方向以最优速度前进;S21. Using the direction guidance function f(/), the unmanned ship is always moving towards the direction of the target point at an optimal speed;

S22、在行驶过程中,利用冲突检测函数f(*)检查无人船是否会与障碍物发生碰撞,当f(*)≤0时,则表示无人船会与障碍物发生碰撞;S22. During the driving process, use the conflict detection function f(*) to check whether the unmanned ship will collide with the obstacle. When f(*)≤0, it means that the unmanned ship will collide with the obstacle;

S23、当检测到无人船与障碍物有碰撞危险时,利用冲突解除函数f(·),引导无人船与障碍物的相对速度脱离速度碰撞锥外,使无人船与障碍物避免碰撞。S23. When it is detected that there is a risk of collision between the unmanned ship and the obstacle, use the conflict resolution function f( ) to guide the relative speed of the unmanned ship and the obstacle out of the speed collision cone, so that the unmanned ship and the obstacle avoid collision .

进一步地,所述步骤S21中的方向引导函数f(/),具体为:Further, the direction guidance function f(/) in the step S21 is specifically:

上式中,f(/)表示方向引导函数,Vdesired表示无人船驶向目标点的最优速度,Vr表示无人船的当前速度,λ表示调节无人船速度变换的平滑因子,λ||u||2表示为了控制无人船速度变换的平滑性,使速度变换更加平滑;其中:In the above formula, f(/) represents the direction guidance function, V desired represents the optimal speed of the unmanned ship heading to the target point, V r represents the current speed of the unmanned ship, λ represents the smoothing factor for adjusting the speed transformation of the unmanned ship, λ||u|| 2 means that in order to control the smoothness of the speed change of the unmanned ship, make the speed change smoother; where:

上式中,gr表示在所述框架下以无人船为中心的障碍物的相对位置;|gr|表示相对位置的模长,表示速度的朝向,其结果为+1或-1,+1表示无人船的最优速度应指向y轴正方向,-1表示无人船的最优速度应指向y轴负方向;vmax表示无人船的最大速度,用标量表示;In the above formula, g r represents the relative position of the obstacle centered on the unmanned ship under the frame; |g r | represents the module length of the relative position, Indicates the direction of the speed, and the result is +1 or -1, +1 means that the optimal speed of the unmanned ship should point to the positive direction of the y-axis, -1 means that the optimal speed of the unmanned ship should point to the negative direction of the y-axis; v max Indicates the maximum speed of the unmanned ship, expressed as a scalar;

上式中,u表示在所述框架下人为输入到无人船的瞬时速度;r表示在t时刻,从代理的框架中看到的障碍物的位置,代理位于所述框架中的原点并在瞬时时刻处于静止状态,和/>分别表示所述框架下的障碍物相对于无人船在x轴和y轴的位置;v表示以无人船为坐标原点的障碍物的相对速度,/>和/>分别表示所述框架下的障碍物相对于无人船在x轴和y轴的速度。In the above formula, u represents the instantaneous speed that is artificially input to the unmanned ship under the frame; r represents the position of the obstacle seen from the frame of the agent at time t, and the agent is located at the origin in the frame and at momentarily at rest, and /> Respectively represent the position of the obstacle under the frame relative to the unmanned ship on the x-axis and y-axis; v represents the relative velocity of the obstacle with the unmanned ship as the coordinate origin, /> and /> Respectively represent the speed of the obstacle under the frame relative to the unmanned ship on the x-axis and y-axis.

进一步地,所述步骤S22中的冲突检测函数f(*),具体为:Further, the conflict detection function f(*) in the step S22 is specifically:

上式中,f(*)表示检测无人船是否会有障碍物发生碰撞的函数,r表示在t时刻,无人船与障碍物的距离;R表示将无人船进行膨化处理后,形成的圆的半径,Vr表示无人船与障碍物的相对速度在AB轴上面的投影,Vθ表示无人船与障碍物的相对速度在r轴上面的投影;其中:In the above formula, f(*) represents the function of detecting whether the unmanned ship will collide with obstacles, r represents the distance between the unmanned ship and the obstacle at time t; The radius of the circle, V r represents the projection of the relative speed of the unmanned ship and the obstacle on the AB axis, and V θ represents the projection of the relative speed of the unmanned ship and the obstacle on the r axis; where:

上式中,表示无人船与障碍物的相对速度,用矢量表示,/>表示AB轴上的单位向量,/>为r轴上的单位向量;将无人船的与障碍物的相对速度投影到AB轴和r轴上,分别生成各自的相对速度分量。In the above formula, Indicates the relative speed of the unmanned ship and the obstacle, represented by a vector, /> represents a unit vector on the AB axis, /> is the unit vector on the r axis; project the relative velocity of the unmanned ship and the obstacle onto the AB axis and the r axis to generate their respective relative velocity components.

进一步地,所述步骤S23中的冲突解除函数f(·),具体为:Further, the conflict resolution function f(·) in the step S23 is specifically:

上式中,f(·)表示帮助无人船避免与障碍物发生碰撞的冲突解除函数,当f(·)≤0时,表明无人船与障碍物的相对速度脱离速度碰撞锥外,无人船解除与障碍物的碰撞危险,r表示在t时刻,从代理的框架中看到的障碍物的位置,rT为r的转置,||r||表示无人船与障碍物的距离,v表示在以无人船为中心的框架下的障碍物的相对速度,||v||表示无人船与障碍物的相对速度大小,R为将无人船进行膨化处理后,形成的圆的半径。In the above formula, f(·) represents the conflict resolution function that helps the unmanned ship avoid collision with obstacles. The manned ship removes the risk of collision with the obstacle, r represents the position of the obstacle seen from the frame of the agent at time t, r T is the transpose of r, ||r|| represents the distance between the unmanned ship and the obstacle distance, v represents the relative velocity of the obstacle under the frame centered on the unmanned ship, ||v|| The radius of the circle.

进一步地,所述步骤S2中还包括冲突检测函数f(*)以及冲突解除函数f(·)的推理步骤:Further, the step S2 also includes the reasoning steps of the conflict detection function f(*) and the conflict resolution function f(·):

步骤一:推理突检测函数f(*);Step 1: Deduce the outlier detection function f(*);

根据无人船与障碍物形成的速度碰撞锥,可知:According to the speed collision cone formed by the unmanned ship and the obstacle, it can be known that:

进行处理,得到:right processed to get:

已知将上市化简为:A known Simplifies the listing to:

因为得到:because get:

将上式代入到公式中,得到:Substitute the above into the formula , get:

时,即无人船与障碍物的相对速度在速度碰撞锥内,则表示两者将发生碰撞,所以有/>即,当/>时,无人船将与障碍物发生碰撞;when When , that is, the relative speed of the unmanned ship and the obstacle is within the speed collision cone, it means that the two will collide, so there is /> That is, when /> , the unmanned ship will collide with the obstacle;

定义f(*):为冲突检测条件,当时,无人船与障碍物发生碰撞;Define f(*): As the conflict detection condition, when , the unmanned ship collides with the obstacle;

步骤二:推理冲突解除函数f(·);Step 2: Deduce the conflict resolution function f(·);

由无人船和障碍物形成的三角,可知:The triangle formed by the unmanned ship and the obstacle shows that:

对上式进行处理,得到:Processing the above formula, we get:

又已知得到:also known get:

所以有将其代入到上式,得到:F Substituting it into the above formula, we get:

则有: Then there are:

时,无人船与障碍物将避免发生碰撞;when , the unmanned ship and obstacles will avoid collisions;

定义f(·):为冲突解除条件,当时,无人船与障碍物脱离碰撞危险。Define f(·): is the condition for conflict resolution, when , the unmanned ship and the obstacle are out of the danger of collision.

进一步地,所述步骤S3具体包括:Further, the step S3 specifically includes:

结合无人船的船域划分和会遇态势将避障情况分为6种情形,分别是常规避障区域的对遇情形、交叉相遇情形、追越情形以及危险预警区域的对遇情形、交叉相遇情形、追越情形;Combined with the ship area division and encounter situation of the unmanned ship, the obstacle avoidance situation is divided into six situations, which are the encounter situation, cross encounter situation, overtaking situation in the conventional obstacle avoidance area, and the encounter situation, intersection situation and crossover situation in the danger warning area. encounter situation, overtaking situation;

所述常规避障区域的对遇情形,具体包括:The encounter situation in the conventional obstacle avoidance area specifically includes:

θ∈(0°,15°),USV右侧出现障碍物,USV让行;θ∈(0°,15°), there is an obstacle on the right side of the USV, and the USV gives way;

θ∈(0°,-15°),USV左侧出现障碍物,USV直行;θ∈(0°,-15°), there is an obstacle on the left side of the USV, and the USV goes straight;

COLREGS公约规定,在常规避障区域内,船舶右侧的船只具有优先通过权;即当本船右侧出现船只时,本船作为让路船优先让行,当本船左侧出现船只时,本船作为直行船优先通过。The COLREGS Convention stipulates that in the conventional obstacle avoidance area, the ship on the right side of the ship has the priority to pass; that is, when the ship appears on the right side of the ship, the ship acts as a give-way ship first, and when the ship appears on the left side of the ship, the ship acts as a straight-going ship Priority pass.

所述常规避障区域的交叉相遇情形,具体包括:The intersection encounter situation in the conventional obstacle avoidance area specifically includes:

当障碍物在USV右侧时,则有:When the obstacle is on the right side of the USV, there are:

VUSV>V0,θ∈(15°,90°),USV直行;V USV >V 0 , θ∈(15°,90°), USV goes straight;

VUSV>V0,θ∈(90°,135°),USV直行;V USV >V 0 , θ∈(90°,135°), USV goes straight;

VUSV<V0,θ∈(15°,90°),USV避让;V USV <V 0 , θ∈(15°,90°), USV avoidance;

VUSV<V0,θ∈(90°,135°),USV直行;V USV <V 0 , θ∈(90°,135°), USV goes straight;

当障碍物在USV左侧时,则有:When the obstacle is on the left side of the USV, there are:

无危险情况时,USV直行,障碍物避让;When there is no danger, the USV will go straight and avoid obstacles;

所述常规避障区域的追越情形,具体包括:The situation of overtaking in the conventional obstacle avoidance area specifically includes:

USV无须避让,追越船要避让USV;The USV does not need to avoid, but the overtaking ship must avoid the USV;

所述危险预警区域的对遇情形,具体包括:The encounter situation in the danger warning area specifically includes:

θ∈(-15°,15°),USV前方出现障碍物,USV减速优先向右行驶;θ∈(-15°,15°), there is an obstacle in front of the USV, and the USV decelerates and drives to the right first;

所述危险预警区域的交叉相遇情形,具体包括:The cross-encounter situation in the danger warning area specifically includes:

当障碍物在USV右侧时,则有:When the obstacle is on the right side of the USV, there are:

VUSV>V0,θ∈(15°,90°),USV加速向左行驶;V USV >V 0 , θ∈(15°,90°), the USV accelerates and drives to the left;

VUSV>V0,θ∈(90°,135°),USV加速直行;V USV >V 0 , θ∈(90°,135°), USV accelerates and goes straight;

VUSV<V0,θ∈(15°,90°),USV减速向右行驶;V USV <V 0 , θ∈(15°,90°), USV decelerates and drives to the right;

VUSV<V0,θ∈(90°,135°),USV减速向左行驶;V USV <V 0 , θ∈(90°,135°), the USV decelerates and drives to the left;

当障碍物在USV左侧时,则有:When the obstacle is on the left side of the USV, there are:

VUSV>V0,θ∈(-15°,-90°),USV加速向右行驶;V USV >V 0 , θ∈(-15°,-90°), USV accelerates to the right;

VUSV>V0,θ∈(-90°,-135°),USV加速直行;V USV >V 0 , θ∈(-90°,-135°), USV accelerates and goes straight;

VUSV<V0,θ∈(-15°,-90°),USV减速向左行驶;V USV <V 0 , θ∈(-15°,-90°), USV decelerates and drives to the left;

VUSV<V0,θ∈(-90°,-135°),USV减速向右行驶。V USV <V 0 , θ∈(-90°,-135°), the USV decelerates and travels to the right.

较现有技术相比,本发明具有以下优点:Compared with the prior art, the present invention has the following advantages:

1、本发明提供的结合COLRGES的逆速度障碍法动态避障方法,将逆速度障碍法用于无人船的局部动态避障,与速度障碍法相比,其优点在于能够使无人船避免因自状态检测而受到误差干扰,极大的提高了无人船的局部避障能力。1. The inverse speed obstacle method dynamic obstacle avoidance method combined with COLRGES provided by the present invention uses the inverse speed obstacle method for the local dynamic obstacle avoidance of unmanned ships. Compared with the speed obstacle method, its advantage is that it can make unmanned ships avoid The self-state detection is subject to error interference, which greatly improves the local obstacle avoidance ability of the unmanned ship.

2、本发明提供的结合COLRGES的逆速度障碍法动态避障方法,对原有的逆速度障碍法进行了改进,在原有的公式基础上提出了冲突检测函数,增强了无人船在避障决策时的效率,提高了局部避障的能力。2. The inverse speed obstacle method dynamic obstacle avoidance method combined with COLRGES provided by the present invention improves the original inverse speed obstacle method, and proposes a conflict detection function on the basis of the original formula, which enhances the obstacle avoidance ability of unmanned ships. The efficiency of decision-making improves the ability of local obstacle avoidance.

3、本发明提供的结合COLRGES的逆速度障碍法动态避障方法,在原有海事避障规则的基础上,增加了关于船舶在危险预警区域时的避障策略,明确了船舶在脱离海事规则后的决策,使得船舶能够快速对危险预警区域时的避障作出更高效的应对措施。3. The inverse velocity obstacle method dynamic obstacle avoidance method combined with COLRGES provided by the present invention, on the basis of the original maritime obstacle avoidance rules, increases the obstacle avoidance strategy when the ship is in the danger warning area, and clarifies that the ship will The decision-making enables the ship to quickly take more efficient countermeasures for obstacle avoidance in the danger warning area.

4、本发明提供的结合COLRGES的逆速度障碍法动态避障方法,将逆速度障碍法与改进后的海事规则相结合,极大的提高了无人船在局部环境下的动态避障的高效性,更加保障了无人船航行时的安全。4. The inverse speed obstacle method dynamic obstacle avoidance method combined with COLRGES provided by the present invention combines the inverse speed obstacle method with the improved maritime rules, which greatly improves the efficiency of dynamic obstacle avoidance of unmanned ships in local environments Sex, which further guarantees the safety of unmanned ships when sailing.

基于上述理由本发明可在船舶应用等领域广泛推广。Based on the above reasons, the present invention can be widely promoted in the fields of ship application and the like.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做以简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明方法流程图。Fig. 1 is a flow chart of the method of the present invention.

图2为本发明实施例提供的逆速度障碍法模型图。Fig. 2 is a model diagram of the inverse speed obstacle method provided by the embodiment of the present invention.

图3为实施例提供的速度障碍法模型图。Fig. 3 is a model diagram of the speed obstacle method provided by the embodiment.

图4为实施例提供的速度障碍法原理图。Fig. 4 is a schematic diagram of the speed obstacle method provided by the embodiment.

图5为本发明实施例提供的逆速度障碍法原理图。Fig. 5 is a schematic diagram of the reverse velocity obstacle method provided by the embodiment of the present invention.

图6为本发明实施例提供的逆速度障碍法冲突判断和冲突解除原理图。Fig. 6 is a schematic diagram of the conflict judgment and conflict resolution of the inverse speed obstacle method provided by the embodiment of the present invention.

图7为本发明实施例提供的逆速度障碍法方向引导原理图。Fig. 7 is a schematic diagram of the direction guidance of the reverse speed obstacle method provided by the embodiment of the present invention.

图8为本发明实施例提供的船域与会遇情形判断。Fig. 8 is the judgment of ship area and encounter situation provided by the embodiment of the present invention.

图9为本发明实施例提供的逆速度障碍法结合COLREGS公约仿真结果图。Fig. 9 is a simulation result diagram of the inverse velocity obstacle method combined with the COLREGS convention provided by the embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

如图1所示,本发明提供了一种结合COLRGES的逆速度障碍法动态避障方法,包括:As shown in Figure 1, the present invention provides a dynamic obstacle avoidance method combined with COLRGES inverse speed obstacle method, including:

S1、如图2所示,为逆速度障碍法模型图,基于逆速度障碍法,实现无人船的局部动态避障;S1, as shown in Figure 2, is a model diagram of the inverse velocity obstacle method, based on the inverse velocity obstacle method, the local dynamic obstacle avoidance of the unmanned ship is realized;

具体实施时,作为本发明优选的实施方式,如图5所示,为逆速度障碍法原理图,所述步骤S1具体包括:During specific implementation, as a preferred embodiment of the present invention, as shown in Figure 5, it is a schematic diagram of the reverse velocity obstacle method, and the step S1 specifically includes:

S11、假设无人船是静止的,建立以无人船为中心的框架;S11. Assuming that the unmanned ship is stationary, establish a framework centered on the unmanned ship;

S12、如图5所示,将障碍物质点化处理,用A来表示,对无人船进行膨化处理,将无人船膨化成半径为R的圆盘,用B来表示,其中,R为障碍物半径和无人船的半径之和;S12. As shown in FIG. 5 , treat the obstacle as a point, denoted by A, expand the unmanned ship, and expand the unmanned ship into a disc with a radius of R, denoted by B, where R is The sum of the obstacle radius and the radius of the unmanned ship;

S13、从A点发出两条射线与圆盘B相切,形成速度碰撞锥;S13. Two rays are emitted from point A and are tangent to disk B, forming a velocity collision cone;

S14、在无人船行驶过程中,若无人船的常规避障区域内出现障碍物时,假设在瞬时时刻t,障碍物的速度为VA,此时无人船静止,即VB=0,则无人船与障碍物的相对速度VAB=VA-VB=VAS14. During the driving process of the unmanned ship, if there is an obstacle in the conventional obstacle avoidance area of the unmanned ship, assuming that at the instant t, the speed of the obstacle is V A , and the unmanned ship is stationary at this time, that is, V B = 0, then the relative speed V AB of the unmanned ship and the obstacle V AB = V A -V B = V A ;

S15、若VAB位于速度碰撞锥内,则认为无人船会与障碍物发生碰撞,人为给无人船一个速度控制u,令VAB=VA+u,使得相对速度脱离速度碰撞锥外,无人船实现避碰。S15. If V AB is located in the velocity collision cone, it is considered that the unmanned ship will collide with obstacles, and artificially give the unmanned ship a speed control u, so that V AB = V A + u, so that the relative speed is out of the speed collision cone , the unmanned ship realizes collision avoidance.

S2、基于逆速度障碍法,引入冲突检测函数f(*),实时检测无人船与障碍物是否存在碰撞危险;S2. Based on the inverse speed obstacle method, the collision detection function f(*) is introduced to detect whether there is a collision risk between the unmanned ship and the obstacle in real time;

具体实施时,作为本发明优选的实施方式,所述步骤S2具体包括:During specific implementation, as a preferred embodiment of the present invention, the step S2 specifically includes:

S21、如图7所示,为逆速度障碍法方向引导原理图,利用方向引导函数f(/),使无人船一直朝着目标点的方向以最优速度前进;S21. As shown in FIG. 7 , it is a principle diagram of the direction guidance of the inverse speed obstacle method, and the unmanned ship is always moving towards the direction of the target point at an optimal speed by using the direction guidance function f(/);

步骤S21中的方向引导函数f(/),具体为:The direction guide function f(/) in the step S21 is specifically:

上式中,f(/)表示方向引导函数,Vdesired表示无人船驶向目标点的最优速度,Vr表示无人船的当前速度,λ表示调节无人船速度变换的平滑因子,λ||u||2表示为了控制无人船速度变换的平滑性,使速度变换更加平滑;其中:In the above formula, f(/) represents the direction guidance function, V desired represents the optimal speed of the unmanned ship heading to the target point, V r represents the current speed of the unmanned ship, λ represents the smoothing factor for adjusting the speed transformation of the unmanned ship, λ||u|| 2 means that in order to control the smoothness of the speed change of the unmanned ship, make the speed change smoother; where:

上式中,gr表示在所述框架下以无人船为中心的障碍物的相对位置;|gr|表示相对位置的模长,表示速度的朝向,其结果为+1或-1,+1表示无人船的最优速度应指向y轴正方向,-1表示无人船的最优速度应指向y轴负方向;vmax表示无人船的最大速度,用标量表示;In the above formula, g r represents the relative position of the obstacle centered on the unmanned ship under the frame; |g r | represents the module length of the relative position, Indicates the direction of the speed, and the result is +1 or -1, +1 means that the optimal speed of the unmanned ship should point to the positive direction of the y-axis, -1 means that the optimal speed of the unmanned ship should point to the negative direction of the y-axis; v max Indicates the maximum speed of the unmanned ship, expressed as a scalar;

上式中,u表示在所述框架下人为输入到无人船的瞬时速度;r表示在t时刻,从代理的框架中看到的障碍物的位置,代理位于所述框架中的原点并在瞬时时刻处于静止状态,和/>分别表示所述框架下的障碍物相对于无人船在x轴和y轴的位置;v表示以无人船为坐标原点的障碍物的相对速度,因为在以无人船为中心的框架下默认无人船在瞬时t时刻是静止的,所以无人船的速度在t时刻的速度为0,为了使无人船避免碰撞危险,需要人为在t时刻输入速度控制u,以使得相对速度脱离速度碰撞锥外。所以相对速度用障碍物速度减去人为输入速度表示。其中/>和/>分别表示所述框架下的障碍物相对于无人船在x轴和y轴的速度。In the above formula, u represents the instantaneous speed that is artificially input to the unmanned ship under the frame; r represents the position of the obstacle seen from the frame of the agent at time t, and the agent is located at the origin in the frame and at momentarily at rest, and /> respectively represent the position of the obstacle under the frame relative to the unmanned ship on the x-axis and y-axis; v represents the relative velocity of the obstacle with the unmanned ship as the coordinate origin, because in the frame centered on the unmanned By default, the unmanned ship is stationary at instant t, so the speed of the unmanned ship is 0 at time t. In order to avoid the risk of collision of the unmanned ship, it is necessary to manually input the speed control u at time t to make the relative speed out of Velocity collision outside the cone. Therefore, the relative speed is represented by the speed of the obstacle minus the speed of the human input. where /> and /> Respectively represent the speed of the obstacle under the frame relative to the unmanned ship on the x-axis and y-axis.

S22、如图6所示,为逆速度障碍法冲突判断和冲突解除原理图,在行驶过程中,利用冲突检测函数f(*)检查无人船是否会与障碍物发生碰撞,当f(*)≤0时,则表示无人船会与障碍物发生碰撞;S22. As shown in FIG. 6, it is a schematic diagram of the conflict judgment and conflict resolution of the inverse speed obstacle method. During the driving process, use the conflict detection function f(*) to check whether the unmanned ship will collide with the obstacle. When f(* )≤0, it means that the unmanned ship will collide with obstacles;

步骤S22中的冲突检测函数f(*),具体为:The conflict detection function f(*) in the step S22 is specifically:

上式中,f(*)表示检测无人船是否会有障碍物发生碰撞的函数,r表示在t时刻,无人船与障碍物的距离;R表示将无人船进行膨化处理后,形成的圆的半径,Vr表示无人船与障碍物的相对速度在AB轴上面的投影,Vθ表示无人船与障碍物的相对速度在r轴上面的投影;其中:In the above formula, f(*) represents the function of detecting whether the unmanned ship will collide with obstacles, r represents the distance between the unmanned ship and the obstacle at time t; The radius of the circle, V r represents the projection of the relative speed of the unmanned ship and the obstacle on the AB axis, and V θ represents the projection of the relative speed of the unmanned ship and the obstacle on the r axis; where:

上式中,表示无人船与障碍物的相对速度,用矢量表示,/>表示AB轴上的单位向量,/>为r轴上的单位向量;将无人船的与障碍物的相对速度投影到AB轴和r轴上,分别生成各自的相对速度分量。In the above formula, Indicates the relative speed of the unmanned ship and the obstacle, represented by a vector, /> represents a unit vector on the AB axis, /> is the unit vector on the r axis; project the relative velocity of the unmanned ship and the obstacle onto the AB axis and the r axis to generate their respective relative velocity components.

S23、当检测到无人船与障碍物有碰撞危险时,利用冲突解除函数f(·),引导无人船与障碍物的相对速度脱离速度碰撞锥外,使无人船与障碍物避免碰撞。S23. When it is detected that there is a risk of collision between the unmanned ship and the obstacle, use the conflict resolution function f( ) to guide the relative speed of the unmanned ship and the obstacle out of the speed collision cone, so that the unmanned ship and the obstacle avoid collision .

步骤S23中的冲突解除函数f(·),具体为:The conflict resolution function f(·) in step S23 is specifically:

上式中,f(·)表示帮助无人船避免与障碍物发生碰撞的冲突解除函数,当f(·)≤0时,表明无人船与障碍物的相对速度脱离速度碰撞锥外,无人船解除与障碍物的碰撞危险,r表示在t时刻,从代理的框架中看到的障碍物的位置,rT为r的转置,||r||表示无人船与障碍物的距离,v表示在以无人船为中心的框架下的障碍物的相对速度,||v||表示无人船与障碍物的相对速度大小,R为将无人船进行膨化处理后,形成的圆的半径。In the above formula, f(·) represents the conflict resolution function that helps the unmanned ship avoid collision with obstacles. The manned ship removes the risk of collision with the obstacle, r represents the position of the obstacle seen from the frame of the agent at time t, r T is the transpose of r, ||r|| represents the distance between the unmanned ship and the obstacle distance, v represents the relative velocity of the obstacle under the frame centered on the unmanned ship, ||v|| The radius of the circle.

具体实施时,作为本发明优选的实施方式,所述步骤S2中还包括冲突检测函数f(*)以及冲突解除函数f(·)的推理步骤:During specific implementation, as a preferred embodiment of the present invention, the step S2 also includes a reasoning step of a conflict detection function f(*) and a conflict resolution function f( ):

步骤一:推理突检测函数f(*);Step 1: Deduce the outlier detection function f(*);

如图6所示,根据无人船与障碍物形成的速度碰撞锥,可知:As shown in Figure 6, according to the speed collision cone formed by the unmanned ship and the obstacle, it can be known that:

进行处理,得到:right processed to get:

已知将上市化简为:A known Simplifies the listing to:

因为得到:because get:

将上式代入到公式中,得到:Substitute the above into the formula , get:

时,即无人船与障碍物的相对速度在速度碰撞锥内,则表示两者将发生碰撞,所以有/>即,当/>时,无人船将与障碍物发生碰撞;when When , that is, the relative speed of the unmanned ship and the obstacle is within the speed collision cone, it means that the two will collide, so there is /> That is, when /> , the unmanned ship will collide with the obstacle;

定义f(*):为冲突检测条件,当时,无人船与障碍物发生碰撞;Define f(*): As the conflict detection condition, when , the unmanned ship collides with the obstacle;

步骤二:推理冲突解除函数f(·);Step 2: Deduce the conflict resolution function f(·);

如图6所示,由无人船和障碍物形成的三角,可知:As shown in Figure 6, the triangle formed by the unmanned ship and obstacles shows that:

对上式进行处理,得到:Processing the above formula, we get:

又已知得到:also known get:

所以有将其代入到上式,得到:F Substituting it into the above formula, we get:

则有: Then there are:

时,无人船与障碍物将避免发生碰撞;when , the unmanned ship and obstacles will avoid collisions;

定义f(·):为冲突解除条件,当时,无人船与障碍物脱离碰撞危险。Define f(·): is the condition for conflict resolution, when , the unmanned ship and the obstacle are out of the danger of collision.

S3、基于海事避障规则,增加关于船舶在危险预警区域时的避障策略,明确船舶在脱离海事规则后的决策。S3. Based on the maritime obstacle avoidance rules, add the obstacle avoidance strategy when the ship is in the danger warning area, and clarify the decision-making of the ship after breaking away from the maritime rules.

原国际海事避碰规则规定:The original International Maritime Collision Prevention Regulations stipulated:

1、追越:任何船舶在追越他船时,均应给被追越船让路。1. Overtaking: When any ship is overtaking another ship, it should give way to the overtaken ship.

2、对遇情形:当两艘船舶在相反或接近相反的航向上相遇致有构成碰撞危险时,各应向右转向,从而各从他船的左舷驶过。2. Confrontation situation: When two ships meet on the opposite or nearly opposite course and there is a risk of collision, each should turn to starboard so as to pass the other ship's port side.

3、交叉相遇局面:当船舶交叉相遇构成危险时,有他船在本船右舷的船舶应该给他船让路,当环境许可时,还应避免横越他船的前方。3. Crossing encounter situation: When ships crossing and encountering pose a danger, the ship with another ship on the starboard side of the own ship should give way to the other ship, and when the environment permits, it should also avoid crossing the front of the other ship.

在原有海事规则的基础上,针对在船舶危险领域的无人船避碰行为,依据无人船与障碍物的相对速度大小做了详细描述。On the basis of the original maritime rules, for the collision avoidance behavior of unmanned ships in the dangerous area of ships, a detailed description is made according to the relative speed of unmanned ships and obstacles.

具体实施时,作为本发明优选的实施方式,所述步骤S3具体包括:During specific implementation, as a preferred embodiment of the present invention, the step S3 specifically includes:

如图8所示,结合无人船的船域划分和会遇态势将避障情况分为6种情形,分别是常规避障区域的对遇情形、交叉相遇情形、追越情形以及危险预警区域的对遇情形、交叉相遇情形、追越情形;As shown in Figure 8, combined with the division of the unmanned ship's ship area and the encounter situation, the obstacle avoidance situation is divided into six situations, which are the encounter situation in the conventional obstacle avoidance area, the cross encounter situation, the overtaking situation, and the danger warning area. encounter situations, cross-encounter situations, and overtake situations;

当障碍物进入到无人船的常规避障区域时,无人船开始进行避障措施,如果障碍物进入到无人船的危险预警区域时,单单依靠无人船的常规避障和COLREGS公约是无法脱离危险的,这时需要脱离COLREGS公约的要求并根据实际会遇态势进行自主避障。具体的:When an obstacle enters the routine obstacle avoidance area of the unmanned ship, the unmanned ship starts to take obstacle avoidance measures. If the obstacle enters the danger warning area of the unmanned ship, it only relies on the routine obstacle avoidance of the unmanned ship and the COLREGS convention It is impossible to get out of danger. At this time, it is necessary to break away from the requirements of the COLREGS convention and perform autonomous obstacle avoidance according to the actual encounter situation. specific:

所述常规避障区域的对遇情形,具体包括:The encounter situation in the conventional obstacle avoidance area specifically includes:

θ∈(0°,15°),USV右侧出现障碍物,USV让行;θ∈(0°,15°), there is an obstacle on the right side of the USV, and the USV gives way;

θ∈(0°,-15°),USV左侧出现障碍物,USV直行;θ∈(0°,-15°), there is an obstacle on the left side of the USV, and the USV goes straight;

COLREGS公约规定,在常规避障区域内,船舶右侧的船只具有优先通过权;即当本船右侧出现船只时,本船作为让路船优先让行,当本船左侧出现船只时,本船作为直行船优先通过。The COLREGS Convention stipulates that in the conventional obstacle avoidance area, the ship on the right side of the ship has the priority to pass; that is, when the ship appears on the right side of the ship, the ship acts as a give-way ship first, and when the ship appears on the left side of the ship, the ship acts as a straight-going ship Priority pass.

所述常规避障区域的交叉相遇情形,具体包括:The intersection encounter situation in the conventional obstacle avoidance area specifically includes:

当障碍物在USV右侧时,则有:When the obstacle is on the right side of the USV, there are:

VUSV>V0,θ∈(15°,90°),USV直行;V USV >V 0 , θ∈(15°,90°), USV goes straight;

VUSV>V0,θ∈(90°,135°),USV直行;V USV >V 0 , θ∈(90°,135°), USV goes straight;

VUSV<V0,θ∈(15°,90°),USV避让;V USV <V 0 , θ∈(15°,90°), USV avoidance;

VUSV<V0,θ∈(90°,135°),USV直行;V USV <V 0 , θ∈(90°,135°), USV goes straight;

在常规避障区域内,两船出现交叉会遇情形时,依据两船的方位和相对速度关系,无人船决定是否进行避让;当无人船右侧出现障碍物,且障碍物与无人船所形成的角度θ∈(15°,90°)时,需要考虑两船的速度大小关系;当无人船的速度大于障碍物速度时,无人船优先通过;当无人船速度小于障碍物速度时,无人船优先避让障碍物通过;当障碍物与无人船所形成的角度θ∈(90°,135°)时,不需要考虑两者速度大小关系,无人船都具有优先通过权力;In the conventional obstacle avoidance area, when two ships cross and meet, the unmanned ship decides whether to avoid according to the relationship between the orientation and relative speed of the two ships; when there is an obstacle on the right side of the unmanned ship, and the When the angle θ∈(15°, 90°) formed by the ship, the relationship between the speed of the two ships needs to be considered; when the speed of the unmanned ship is greater than the speed of the obstacle, the unmanned ship will pass first; when the speed of the unmanned ship is less than the speed of the obstacle When the speed of the object is high, the unmanned ship gives priority to avoiding obstacles; when the angle θ∈(90°, 135°) formed by the obstacle and the unmanned ship does not need to consider the relationship between the two speeds, the unmanned ship has priority. through power;

当障碍物在USV左侧时,则有:When the obstacle is on the left side of the USV, there are:

无危险情况时,USV直行,障碍物避让;When there is no danger, the USV will go straight and avoid obstacles;

所述常规避障区域的追越情形,具体包括:The situation of overtaking in the conventional obstacle avoidance area specifically includes:

USV无须避让,追越船要避让USV;The USV does not need to avoid, but the overtaking ship must avoid the USV;

所述危险预警区域的对遇情形,具体包括:The encounter situation in the danger warning area specifically includes:

θ∈(-15°,15°),USV前方出现障碍物,USV减速优先向右行驶;θ∈(-15°,15°), there is an obstacle in front of the USV, and the USV decelerates and drives to the right first;

所述危险预警区域的交叉相遇情形,具体包括:The cross-encounter situation in the danger warning area specifically includes:

当障碍物在USV右侧时,则有:When the obstacle is on the right side of the USV, there are:

VUSV>V0,θ∈(15°,90°),USV加速向左行驶;V USV >V 0 , θ∈(15°,90°), the USV accelerates and drives to the left;

VUSV>V0,θ∈(90°,135°),USV加速直行;V USV >V 0 , θ∈(90°,135°), USV accelerates and goes straight;

VUSV<V0,θ∈(15°,90°),USV减速向右行驶;V USV <V 0 , θ∈(15°,90°), USV decelerates and drives to the right;

VUSV<V0,θ∈(90°,135°),USV减速向左行驶;V USV <V 0 , θ∈(90°,135°), the USV decelerates and drives to the left;

在危险预警区域内,无人船右侧θ∈(15°,90°)区域内出现障碍物,当无人船速度大于障碍物速度时,无人船加速向左侧行驶快速通过;当无人船速度小于障碍物速度时,无人船减速向右侧行驶,让障碍物优先通过;无人船右侧θ∈(90°,135°)区域内出现障碍物,当无人船速度大于障碍物速度时,无人船可以加速向直行快速通过;当无人船速度小于障碍物速度时,无人船需要减速向左侧行驶,让障碍物优先通过;In the danger warning area, if there is an obstacle in the θ∈(15°, 90°) area on the right side of the unmanned ship, when the speed of the unmanned ship is greater than the speed of the obstacle, the unmanned ship will accelerate to the left and pass quickly; When the speed of the manned ship is lower than the speed of the obstacle, the unmanned ship will slow down and drive to the right to let the obstacle pass first; if there is an obstacle in the θ∈(90°,135°) area on the right side of the unmanned ship, when the speed of the unmanned ship is greater than When the speed of the obstacle is high, the unmanned ship can accelerate to go straight and pass quickly; when the speed of the unmanned ship is lower than the speed of the obstacle, the unmanned ship needs to slow down and drive to the left to let the obstacle pass first;

当障碍物在USV左侧时,则有:When the obstacle is on the left side of the USV, there are:

VUSV>V0,θ∈(-15°,-90°),USV加速向右行驶;V USV >V 0 , θ∈(-15°,-90°), USV accelerates to the right;

VUSV>V0,θ∈(-90°,-135°),USV加速直行;V USV >V 0 , θ∈(-90°,-135°), USV accelerates and goes straight;

VUSV<V0,θ∈(-15°,-90°),USV减速向左行驶;V USV <V 0 , θ∈(-15°,-90°), USV decelerates and drives to the left;

VUSV<V0,θ∈(-90°,-135°),USV减速向右行驶。V USV <V 0 , θ∈(-90°,-135°), the USV decelerates and travels to the right.

在危险预警区域内,无人船左侧θ∈(-15°,-90°)区域内出现障碍物,当无人船速度大于障碍物速度时,无人船加速向右侧行驶快速通过;当无人船速度小于障碍物速度时,无人船减速向左侧行驶,让障碍物优先通过;无人船右侧θ∈(-90°,-135°)区域内出现障碍物,当无人船速度大于障碍物速度时,无人船加速向直行快速通过;当无人船速度小于障碍物速度时,无人船减速向右侧行驶,让障碍物优先通过。In the danger warning area, there is an obstacle in the θ∈(-15°, -90°) area on the left side of the unmanned ship. When the speed of the unmanned ship is greater than the speed of the obstacle, the unmanned ship accelerates to the right and passes quickly; When the speed of the unmanned ship is less than the speed of the obstacle, the unmanned ship slows down and drives to the left, allowing the obstacle to pass first; When the speed of the manned ship is greater than the speed of the obstacle, the unmanned ship accelerates to pass straight ahead; when the speed of the unmanned ship is lower than the speed of the obstacle, the unmanned ship slows down and drives to the right to let the obstacle pass first.

为了验证本发明方法的有效性,进行了仿真实验,仿真实验的结果如图9所示。In order to verify the effectiveness of the method of the present invention, a simulation experiment was carried out, and the result of the simulation experiment is shown in FIG. 9 .

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (3)

1. The reverse speed obstacle avoidance method combined with the COLRGES is characterized by comprising the following steps of:
s1, realizing local dynamic obstacle avoidance of an unmanned ship based on a reverse speed obstacle method;
the step S1 specifically includes:
s11, assuming that the unmanned ship is stationary, establishing a frame taking the unmanned ship as a center;
s12, performing dotting treatment on the barrier substance, which is denoted by A, performing puffing treatment on the unmanned ship, puffing the unmanned ship into a disc with a radius of R, and denoted by B, wherein R is the sum of the radius of the barrier and the radius of the unmanned ship;
s13, two rays from the point A are tangent to the disk B to form a speed collision cone;
s14, in the running process of the unmanned ship, if an obstacle appears in a conventional obstacle avoidance area of the unmanned ship, the speed of the obstacle is assumed to be V at the instant t A At this time, the unmanned ship is stationary, i.e. V B =0, then the relative speed V of the unmanned ship and the obstacle AB =V A -V B =V A
S15, if V AB If the speed collision cone is positioned in the speed collision cone, the unmanned ship is considered to collide with the obstacle, and the speed control u is manually controlled for the unmanned ship to enable V to be AB =V A +u, make the relative speed break away from the speed collision awl, the unmanned ship realizes the collision avoidance;
s2, based on an inverse speed obstacle method, introducing a conflict detection function f (x), and detecting whether collision danger exists between the unmanned ship and the obstacle in real time;
the step S2 specifically includes:
s21, utilizing a direction guiding function f (/) to enable the unmanned ship to always advance towards the direction of the target point at an optimal speed;
the direction guide function f (/) in step S21 is specifically:
in the above formula, f (/) represents a direction guide function, V desired Representing the optimal speed of the unmanned ship towards the target point, V r Representing the current speed of the unmanned ship, lambda represents a smoothing factor that adjusts the speed transformation of the unmanned ship, lambda u 2 To control the smoothness of the unmanned ship speed change, the speed change is smoother; wherein:
in the above, g r Representing the relative position of an obstacle centered on the unmanned ship under said frame; g I r The i indicates the modular length of the relative position,indicating the direction of the speed, the result is +1 or-1, +1 indicates that the optimal speed of the unmanned ship should be directed in the positive y-axis direction, and-1 indicates that the optimal speed of the unmanned ship should be directed in the negative y-axis direction; v max Representing the maximum speed of the unmanned ship, and representing the maximum speed by a scalar;
in the above formula, u represents the instantaneous speed of human input to the unmanned ship under the frame; r denotes the position of the obstacle seen from the framework of the agent, at time t, which is located at the origin in said framework and is at rest at the instant,and->Representing the position of the obstacle under the frame in the x-axis and the y-axis, respectively, relative to the unmanned ship; v represents the relative speed of the obstacle with the unmanned ship as origin of coordinates, +.>And->Representing the speed of the obstacle under the frame in the x-axis and the y-axis, respectively, relative to the unmanned ship;
s22, in the driving process, checking whether the unmanned ship collides with the obstacle or not by using a collision detection function f (x), and when f (x) is less than or equal to 0, indicating that the unmanned ship collides with the obstacle;
the collision detection function f (x) in step S22 is specifically:
f(*)≤0:
in the above formula, f (x) represents a function for detecting whether the unmanned ship collides with an obstacle, and r represents a distance between the unmanned ship and the obstacle at time t; r represents the radius of a circle formed after the unmanned ship is puffed, V r Representing the projection of the relative speed of the unmanned ship and the obstacle on the AB-axis, V θ Indicating that the relative speed of the unmanned ship and the obstacle is r Projection on the axis; wherein:
in the above-mentioned method, the step of,representing the relative speed of unmanned ship and obstacle by vectorQuantity representation, ->Representing the unit vector on the AB axis,r is A unit vector on the axis; projecting the relative velocity of the unmanned ship to the obstacle to the AB-axis and r On the shaft, generating respective relative velocity components;
s23, when detecting that the unmanned ship and the obstacle are in collision danger, guiding the relative speed of the unmanned ship and the obstacle to be separated from a speed collision cone by using a collision resolution function f (·) so that the unmanned ship and the obstacle are prevented from collision;
the conflict resolution function f (·) in step S23 is specifically:
f(·)≤0:
in the above formula, f (-) represents a collision resolution function for helping the unmanned ship avoid collision with the obstacle, when f (-) is less than or equal to 0, the relative speed of the unmanned ship and the obstacle is shown to be separated from the speed collision cone, the collision danger of the unmanned ship and the obstacle is relieved, r represents the position of the obstacle seen from the framework of the agent at the moment t, and r is shown as follows T For the transposition of R, R represents the distance between the unmanned ship and the obstacle, v represents the relative speed of the obstacle under the frame taking the unmanned ship as the center, v represents the relative speed of the unmanned ship and the obstacle, and R is the radius of a circle formed after the unmanned ship is puffed;
and S3, based on maritime obstacle avoidance rules, an obstacle avoidance strategy is added when the ship is in a dangerous early warning area, and a decision of the ship after the ship is separated from the maritime rules is made clearly.
2. The reverse speed obstacle avoidance method according to claim 1, wherein said step S2 further comprises the step of reasoning about a collision detection function f (), and a collision resolution function f ():
step one: reasoning the process detection function f ();
from the speed collision cone formed by the unmanned ship and the obstacle, it can be known that:
for a pair ofAnd (3) processing to obtain:
is known to beThe marketing is simplified as follows:
because ofThe method comprises the following steps:
substituting the above formula into the formulaIn (1), the following steps are obtained:
when (when)When the relative speed of the unmanned ship and the obstacle is in the speed collision cone, the collision of the unmanned ship and the obstacle is indicated, so the unmanned ship and the obstacle are in the collision, and the unmanned ship is in the collision>I.e. when +.>When the unmanned ship collides with an obstacle;
definition f ():for collision detection conditions, when f (+.0):when the unmanned ship collides with the obstacle;
step two: reasoning about a conflict resolution function f ();
the triangle formed by the unmanned ship and the obstacle can be known as:
processing the formula to obtain:
and is also knownThe method comprises the following steps:
so there isSubstituting it into the above formula gives:
then there are:
when (when)When the unmanned ship collides with the obstacle, the unmanned ship and the obstacle are prevented from collision;
definition f (·):for conflict resolution conditions, when f (+.) is less than or equal to 0:and when the unmanned ship is separated from the obstacle, the collision risk is avoided.
3. The reverse speed obstacle avoidance method combined with colreges according to claim 1, wherein the step S3 specifically comprises:
dividing the obstacle avoidance situation into 6 situations by combining the ship domain division and meeting situation of the unmanned ship, wherein the situations are the meeting situation, the cross meeting situation, the overtaking situation of the obstacle avoidance area, the meeting situation, the cross meeting situation and the overtaking situation of the dangerous early warning area;
the meeting situation of the conventional obstacle avoidance area specifically comprises the following steps:
θ∈ (0 °,15 °), an obstacle appears on the right side of USV, USV yields;
θ∈ (0 °, -15 °), an obstacle appears on the left side of USV, and USV moves straight;
the COLREGS convention states that in a conventional obstacle avoidance area, vessels on the right side of the vessel have priority to pass; when the ship appears on the right side of the ship, the ship is used as a yielding ship to give way preferentially, and when the ship appears on the left side of the ship, the ship is used as a straight ship to pass preferentially;
the cross-meeting situation of the conventional obstacle avoidance area specifically comprises the following steps:
when the obstacle is on the right side of the USV, then there are:
V USV >V 0 θ∈ (15 °,90 °), USV travels straight;
V USV >V 0 θ∈ (90 °,135 °), USV travels straight;
V USV <V 0 θ∈ (15 °,90 °), USV dodges;
V USV <V 0 θ∈ (90 °,135 °), USV travels straight;
when the obstacle is on the left side of the USV, then there are:
when no dangerous condition exists, USV moves straight, and obstacles are avoided;
the following situation of the conventional obstacle avoidance area specifically comprises the following steps:
USV does not need to be avoided, and the overtaking ship needs to avoid the USV;
the meeting situation of the dangerous early warning area specifically comprises the following steps:
θ ε (-15 °,15 °), obstacles appear in front of USV, and USV is decelerated and runs right preferentially; the crossing situation of the danger early warning area specifically comprises the following steps:
when the obstacle is on the right side of the USV, then there are:
V USV >V 0 θ∈ (15 °,90 °), USV accelerates to the left;
V USV >V 0 θ∈ (90 °,135 °), USV accelerates straight;
V USV <V 0 θ∈ (15 °,90 °), USV decelerates to the right;
V USV <V 0 θ∈ (90 °,135 °), USV decelerates to the left;
when the obstacle is on the left side of the USV, then there are:
V USV >V 0 θ ε (-15 °, -90 °), USV accelerates to the right;
V USV >V 0 θ ε (-90 °, -135 °), USV accelerates straight;
V USV <V 0 θ ε (-15 °, -90 °), USV decelerates to travel to the left;
V USV <V 0 θ ε (-90 °, -135 °), USV decelerates to the right.
CN202011481430.1A 2020-12-15 2020-12-15 Reverse speed obstacle method dynamic obstacle avoidance method combined with COLRGES Active CN112650232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011481430.1A CN112650232B (en) 2020-12-15 2020-12-15 Reverse speed obstacle method dynamic obstacle avoidance method combined with COLRGES

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011481430.1A CN112650232B (en) 2020-12-15 2020-12-15 Reverse speed obstacle method dynamic obstacle avoidance method combined with COLRGES

Publications (2)

Publication Number Publication Date
CN112650232A CN112650232A (en) 2021-04-13
CN112650232B true CN112650232B (en) 2023-08-22

Family

ID=75354154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011481430.1A Active CN112650232B (en) 2020-12-15 2020-12-15 Reverse speed obstacle method dynamic obstacle avoidance method combined with COLRGES

Country Status (1)

Country Link
CN (1) CN112650232B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115407780A (en) * 2022-09-05 2022-11-29 北京理工大学 A local path planning method for unmanned ships based on three-stage obstacle avoidance strategy

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110311A (en) * 2009-12-29 2011-06-29 英特尔公司 A method of computing a collision-free velocity for an agent in a crowd simulation environment
CN110083159A (en) * 2019-05-14 2019-08-02 江苏科技大学 The autonomous dynamic collision prevention method of unmanned boat constrained based on SBG and dynamic window
CN111158361A (en) * 2019-12-12 2020-05-15 天津大学 Ship field model-based collision avoidance method for unmanned surface vehicle
CA3067576A1 (en) * 2019-01-14 2020-07-14 Harbin Engineering University Cooperative autonomous navigation systems and methods for multiple unmanned surface vehicles considering communication

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL196276A (en) * 2008-12-30 2013-04-30 Elbit Systems Ltd Autonomous navigation system and method for a maneuverable platform
US8849483B2 (en) * 2011-04-13 2014-09-30 California Institute Of Technology Target trailing with safe navigation with colregs for maritime autonomous surface vehicles

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110311A (en) * 2009-12-29 2011-06-29 英特尔公司 A method of computing a collision-free velocity for an agent in a crowd simulation environment
CA3067576A1 (en) * 2019-01-14 2020-07-14 Harbin Engineering University Cooperative autonomous navigation systems and methods for multiple unmanned surface vehicles considering communication
CN110083159A (en) * 2019-05-14 2019-08-02 江苏科技大学 The autonomous dynamic collision prevention method of unmanned boat constrained based on SBG and dynamic window
CN111158361A (en) * 2019-12-12 2020-05-15 天津大学 Ship field model-based collision avoidance method for unmanned surface vehicle

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IVO:Inverse Velocity Obstacles for Real Time Navigation;P.S.Naga Jyotish;《arXiv》;全文 *

Also Published As

Publication number Publication date
CN112650232A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN113495556B (en) Ship collision avoidance method and system based on artificial potential field method
CN112327885B (en) A method for adaptive global-local hybrid path planning of unmanned ships
CN105022270B (en) Ship automatic Collision Avoidance method based on velocity coordinate system
CN113671968B (en) Real-time collision prevention method for unmanned surface vessel
CN114387824B (en) A Judgment Method for Avoiding Collision Steering Compliant with the International Rules for Avoiding Collisions at Sea
CN112650232B (en) Reverse speed obstacle method dynamic obstacle avoidance method combined with COLRGES
CN114550499B (en) Ship intelligent collision prevention method and device integrating COLREGs scene knowledge
CN112578793B (en) An obstacle avoidance method for a fast-moving surface craft
Vu et al. Docking assessment algorithm for autonomous underwater vehicles
CN110444046B (en) Method for analyzing cluster situation of non-conflict meeting ship in limited water area
CN116414123A (en) Water surface unmanned ship path planning method based on improved rapid travelling method
CN110618685A (en) Unmanned surface vessel obstacle detection error correction and safe collision avoidance method
Kim et al. Navigable area detection and perception-guided model predictive control for autonomous navigation in narrow waterways
CN116612668A (en) Automatic collision avoidance algorithm for water area ships in lane navigation based on improved APF
CN115407780A (en) A local path planning method for unmanned ships based on three-stage obstacle avoidance strategy
Qi et al. A kelvin wake avoidance scheme for autonomous sailing robots based on orientation-restricted dubins path
Song et al. Interference intention classification of moving obstacles used for USV collision avoidance
KR102690936B1 (en) Apparatus and method of controlling path of unmanned surface vehicle
JPH11125675A (en) Automatic collision prevention assistance device
CN105629975A (en) Method for avoiding moving obstacle in UUV navigation process based on virtual puffing
CN113625709A (en) Obstacle avoidance method for unmanned surface vehicle
Zhang et al. Collision avoidance path planning of open water ships based on velocity obstacle method
KR102314809B1 (en) Anti-collision system of unmanned underwater vehicle by image target analysis
Nunes et al. Trajectory Planning with Obstacle Avoidance using APF and COLREGS for USVs
Depalo et al. Protocol-Driven A* Algorithm for Fast ASV Motion Planning in Dynamic Scenarios

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant