A local path planning method and system based on improved VO obstacle avoidance algorithm
By constructing a motion coordinate system and dividing the obstacle avoidance zone, combined with the dynamic constraints of the unmanned boat, the robustness and real-time performance of the VO obstacle avoidance algorithm when considering dynamic obstacles is solved, and efficient detection of multiple obstacles is achieved. Obstacle avoidance improves the safety and efficiency of unmanned boat path planning.
Patent Information
- Application Number
- CN202410985791.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-23
AI Technical Summary
The existing VO obstacle avoidance algorithm does not take into account the dynamic constraints of unmanned boats. The algorithm has poor robustness and real-time performance, and cannot avoid multiple dynamic obstacles at the same time, making it difficult to achieve ideal results in actual navigation.
By constructing a motion coordinate system, calculating the relative speed and position information of the moving body and the dynamic obstacle, establishing a relative motion model, dividing the emergency stop area, VO obstacle avoidance area and safety area, and using dynamic constraints to determine the obstacle avoidance moment and path, realizing Efficient obstacle avoidance of multiple dynamic obstacles.
It significantly improves the efficiency and accuracy of the path planning algorithm, enhances the real-time and applicability of the system, and ensures the safety and navigation efficiency of the unmanned boat.
Smart Images

Figure CN118518117B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of path planning, and in particular relates to a local path planning method and system based on an improved VO obstacle avoidance algorithm. Background Art
[0002] As a flexible and efficient water robot that can complete various tasks autonomously without human operators, surface unmanned boats have attracted much attention in recent years. The intelligence level of unmanned boats plays a key role in the execution of their tasks, directly affecting the efficiency and success rate of unmanned boat mission execution. Path planning aims to plan the optimal path to avoid obstacles and reach the target point based on algorithm optimization criteria and measured information. It is the basis and key technology for unmanned boats to perform various complex tasks. To a certain extent, it determines its working characteristics and advancement, and directly determines the intelligence level of unmanned boats.
[0003] However, unlike traditional robot path planning, when planning the path of an unmanned boat, it is also necessary to consider the interference of the water surface environment and the dynamic constraints of the hull itself. In the actual navigation of an unmanned boat, dynamic obstacles have the characteristics of diverse shapes and scales, and changeable movement rules, which are important factors that cause the unmanned boat to block its movement and then collide. In addition, in the face of the intersection of large ships, the path planning of the unmanned boat needs to consider the impact of COLREGS (International Regulations for Preventing Collisions at Sea). Therefore, in order to avoid obstacles on the navigation path of the unmanned boat and ensure the safe intersection of the unmanned boat and the ship, the planning algorithm needs to have better flexibility and adaptability. Under the premise of meeting the dynamic characteristics of the unmanned boat itself, combined with the smoothness of the path, actual operability and task-oriented requirements, planning the optimal path with the smallest track change, the highest efficiency and the best safety is the main purpose of the local path planning of the unmanned boat. However, most of the single algorithms for local path planning of unmanned boats currently have obvious defects, as shown in Table 1.
[0004] Table 1 Comparison of local path planning algorithms
[0005]
[0006] Among local path planning algorithms, the velocity obstacle method (VO) is often used in combination with other global planning algorithms because of its simple model and easy calculation. It is a dynamic obstacle avoidance method commonly used in surface unmanned boats. The velocity obstacle method defines the velocity collision area according to the speed of the moving body and the obstacle. When the speed of the moving body is within this area, it is considered to have a collision risk. However, the existing velocity obstacle method does not take into account the actual dynamic constraints of the surface unmanned boat, such as the maximum speed, maximum acceleration, and maximum angular velocity; it does not clearly define the start and end times of obstacle avoidance; and it is impossible to avoid multiple dynamic obstacles at the same time. Therefore, it is difficult to achieve ideal results in actual navigation tests.
[0007] Through the above analysis, the problems and defects of the existing VO obstacle avoidance technology are as follows: (1) The dynamic constraints of the moving body are not considered, the algorithm has poor robustness and weak anti-interference ability; (2) The start and end times of obstacle avoidance are not clear, and the real-time performance of the algorithm is poor; (3) There is a lack of the function of avoiding multiple dynamic obstacles at the same time, and the algorithm has poor applicability. Summary of the invention
[0008] In view of the problems existing in the prior art, the present invention provides a local path planning method and system based on an improved VO obstacle avoidance algorithm.
[0009] The present invention is implemented as follows: a local path planning method based on an improved VO obstacle avoidance algorithm includes: constructing a motion coordinate system according to the water environment, determining spatial geometric information and building a relative motion model; determining the next speed and direction according to the collision avoidance recognition function and the unmanned boat dynamics constraints until the unmanned boat reaches the target point.
[0010] Furthermore, the local path planning system based on the improved VO obstacle avoidance algorithm specifically includes the following steps:
[0011] Step 1: Calculate the speed collision area where the collision occurs;
[0012] Step 2: Divide the emergency stop area, VO obstacle avoidance area, and safety area;
[0013] Step 3: Path planning for the moving body to avoid multiple dynamic obstacles.
[0014] Furthermore, the velocity collision area calculated by the improved VO obstacle avoidance algorithm includes:
[0015] First, set The coordinates of the moving body O and the obstacle A at the moment are and , then the relative distance between the two , relative angle .
[0016] Secondly, subtract the velocity vector of the moving body from the velocity vector of the obstacle to get the relative velocity , the dynamic obstacle A is considered to be stationary, and the relative velocity vector of the moving body is considered to be , The set of relative velocity vectors of the moving body is the area ; Assume that the moving body O and the dynamic obstacle A are kept at The velocity vector at the moment, then at least time The rear obstacle and the moving body will collide.
[0017] Assume the radius of the dynamic obstacle is , the radius expansion coefficient is , in the region of the relative velocity vector of the moving body Two relative velocity vectors tangent to the outer contour of the obstacle can be found, the tangent points are set to B and C, and the angles of the two tangents are set to and ,but , , the relative velocity of the moving body in the collision area is the vector area enclosed by the two tangent angle ranges. For dynamic obstacles, when the relative velocity vector of the moving body Not in the relative velocity collision zone of moving bodies When the obstacle is encountered, there is no need to perform collision avoidance processing on the obstacle, and the obstacle will not be included in subsequent calculations.
[0018] Considering the dynamic constraints of the moving body, the maximum acceleration of the moving body is , the maximum angular velocity is ,exist The relative speed at that moment is , the relative speed corresponds to an angle of In unit time After that, the relative speed of the moving body ranges from , the relative angle range is .but = , = . The relative velocity vector area of the moving body considering dynamic constraints Relative speed range Relative angle range The vector area enclosed.
[0019] Considering the dynamic obstacle A as moving, the obstacle velocity vector is , the relative velocity of the moving body in the collision area Each vector and the obstacle velocity vector Perform Minkowski summation to obtain the absolute velocity collision area of the moving body ,but , the absolute speed of the moving body In Indicates a risk of collision.
[0020] Furthermore, the collision avoidance recognition function and area division are as follows:
[0021] First, determine the range of the three areas divided into the emergency stop area, VO obstacle avoidance area, and safety area; when the absolute velocity vector of the moving body In the absolute velocity collision area of moving bodies The maximum distance that the moving body cannot avoid obstacles by using the speed obstacle method The maximum acceleration of the moving body The distance when the movement stops, .
[0022] When considering the relative velocity vector area of the moving body with dynamic constraints The collision area is the relative velocity of the moving body When the subset is , speed obstacle avoidance cannot be performed, i.e. Sometimes, there is and The relative distance between the moving object and the dynamic obstacle Satisfy the expression and .
[0023] In summary, considering the above two situations where obstacles cannot be avoided, , with the geometric center of the obstacle as the center of the circle, The circular area with a radius of is defined as the emergency stop zone of the obstacle. When the moving body enters the emergency stop zone of the obstacle, the moving body stops moving at the maximum acceleration.
[0024] When the absolute velocity vector of the moving body In the absolute velocity collision area of moving bodies The relative velocity vector region of the moving body considering dynamic constraints Relative velocity collision area with moving body When there is an intersection, the speed obstacle method is needed to avoid obstacles, that is, and , the moving body moves at a relative speed At the minimum encounter time Distance of internal movement is the outer radius of the VO obstacle avoidance zone; among them, the minimum encounter time Increases with the relative speed, and of If the power is proportional to , , are all constants.
[0025] Take the geometric center of the obstacle as the center of the circle, is the inner diameter, The annular area with an outer diameter is defined as the VO obstacle avoidance zone of the obstacle. When the moving body enters the VO obstacle avoidance zone of the obstacle, the moving body starts to avoid the obstacle.
[0026] When the absolute velocity vector of the moving body Not in the absolute velocity collision area of the moving body When the moving body is within the range of 0 to 1, it does not need to consider obstacle avoidance. The next moving point of the moving body is determined by the global path planning.
[0027] The remaining area of the map selected by local path planning that does not include the emergency stop zone and VO obstacle avoidance zone is defined as the obstacle safety zone. When the unmanned boat leaves the emergency stop zone and VO obstacle avoidance zone of the obstacle and enters the safety zone, the moving body ends the obstacle avoidance.
[0028] Secondly, the collision avoidance identification function expression includes:
[0029]
[0030] Furthermore, the overall obstacle avoidance process when there are multiple obstacles using the algorithm includes:
[0031] First, the area where the moving body is located is calculated and determined. If the moving body is in the safe zone of all obstacles, the next moving point of the global plan is used as the target; if the moving body is in the emergency stop zone of an obstacle, the moving body stops at the maximum acceleration; if the moving body is in the VO obstacle avoidance zone of one or more obstacles, continue with the following steps;
[0032] Secondly, considering the dynamic constraints of the moving body, the maximum acceleration of the moving body is , the maximum angular velocity is ,exist The absolute velocity at the moment is , the angle is , in unit time After that, the absolute velocity of the moving body ranges from , the angle range is ,but = , = , considering the dynamic constraints of the moving body absolute velocity vector area Speed range With angle range The vector area under the encirclement;
[0033] Again, the absolute velocity collision area of the moving body corresponding to all dynamic obstacles in the VO obstacle avoidance zone The total dangerous collision area is obtained by summing up , the velocity vector area that the moving body can select next The absolute velocity vector area of the moving body considering dynamic constraints Subtract the absolute velocity vector area of the moving body considering dynamic constraints Total collision area with danger The intersection of ;
[0034] Finally, in the velocity vector area where the moving body can choose Find the velocity vector closest to the next moving point in the global plan, and get the coordinates of the next moving point after the minimum iteration.
[0035] Another object of the present invention is to provide a local path planning system for implementing the local path planning method based on the improved VO obstacle avoidance algorithm, comprising:
[0036] A map information acquisition module is used to obtain the coordinates of static obstacles, the coordinates and velocity vectors of dynamic obstacles, the coordinates of the starting point and the ending point, and other map information;
[0037] The area judgment module is used to judge whether the moving body is in the emergency stop area, VO obstacle avoidance area or safety area;
[0038] Emergency stop zone calculation module: if the moving body is in the emergency stop zone, it stops at the maximum acceleration;
[0039] VO obstacle avoidance zone calculation module, if the moving body is in the VO obstacle avoidance zone, the speed obstacle method is used to calculate the next moving point;
[0040] Safety zone calculation module, if the moving body is in the safety zone, the next moving point is obtained according to the global planning goal;
[0041] The moving point judgment module is used to judge whether the moving body reaches the target point. If it reaches the target point, it terminates; if not, it returns to the area judgment module.
[0042] Another object of the present invention is to provide a computer device, the computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the local path planning method based on the improved VO obstacle avoidance algorithm.
[0043] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to execute the steps of the local path planning method based on the improved VO obstacle avoidance algorithm.
[0044] Another object of the present invention is to provide an information data processing terminal, which is used to implement the local path planning system based on the improved VO obstacle avoidance algorithm.
[0045] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:
[0046] First, based on the existing VO obstacle avoidance algorithm, the present invention proposes an efficient modeling scheme to significantly reduce the algorithm's computational burden. The present invention constructs a motion coordinate system based on the water surface environment information, calculates the spatial geometric information such as the relative motion speed and position between the moving body and the dynamic obstacle, and establishes a relative motion model between the moving body and the dynamic obstacle. Among them, the dynamic obstacle is regarded as a perfect circle, and the radius of the dynamic obstacle is increased by setting the expansion coefficient, thereby reducing the risk of collision between the moving body, further simplifying the algorithm calculation, and significantly improving the efficiency of the path planning algorithm.
[0047] The innovation of the present invention is that it fully considers the dynamic constraints of the moving body and the distribution of dynamic obstacles, and accurately divides the relative speed collision area of the moving body in the water environment. Specifically, the present invention regards the area sandwiched by the corresponding angles of the tangent of the dynamic obstacle as the relative speed collision area where the moving body has a collision risk, and considers the collision avoidance problem in this area. By determining the relative speed collision area of the moving body, the present invention excludes irrelevant areas from the collision, thereby simplifying the collision avoidance process and significantly improving the efficiency of the algorithm.
[0048] In addition, the present invention also divides the absolute speed collision area of the moving body in the water environment to address the problems of complex distribution and inconsistent speeds of multiple dynamic obstacles. The present invention obtains the absolute speed collision area of the moving body by the Minkowski summation of the relative speed collision area of the moving body and the obstacle speed. When the absolute speed of the moving body is within the absolute speed collision area of the moving body, it means that the moving body is at risk of colliding with a dynamic obstacle, and the obstacle avoidance problem needs to be considered at this time; otherwise, the moving body can travel normally. By determining the absolute speed collision area of the moving body, the present invention achieves efficient obstacle avoidance of multiple dynamic obstacles at the same time, further improving the applicability of the algorithm.
[0049] The core of the present invention is to propose an innovative collision avoidance identification function, which aims to solve the problems of dynamic constraints of moving bodies, definition of collision avoidance range, and determination of collision avoidance start and end times. Based on dynamic constraints such as the maximum acceleration and maximum angular acceleration of the moving body, the function divides the area near the obstacle into an emergency stop zone, a VO obstacle avoidance zone, and a safe zone. In this way, the function can predict the optimal behavior of the moving body at the next moment, including emergency stop, VO obstacle avoidance, and normal driving. When the VO obstacle avoidance process is preferred, the present invention incorporates the absolute velocity direction and magnitude of the moving body into the calculation, and uses the speed obstacle method to determine the start and end times of collision avoidance. This innovation not only improves the efficiency and accuracy of path planning, but also realizes real-time feedback of the collision avoidance process, enhancing the real-time and accuracy of the system.
[0050] Second, the present invention provides a local path planning system based on an improved VO obstacle avoidance algorithm. Through an improved modeling scheme, the motion model can be constructed more efficiently, significantly reducing the computational burden of the algorithm. At the same time, when dealing with dynamic obstacle avoidance, the system simplifies the obstacle avoidance process by dividing the speed collision area, and can effectively handle the avoidance of multiple dynamic obstacles. In summary, the innovation of the present invention lies in its efficient modeling scheme, accurate collision avoidance identification function, and its real-time feedback collision avoidance process, which makes the system highly practical and innovative in the field of local path planning.
[0051] Third, the technical solution of the present invention takes into account the dynamic constraints of the moving body and proposes a collision avoidance identification function that defines the collision avoidance range: the traditional VO obstacle avoidance algorithm regards all moving body speeds within the moving body speed collision area as having a collision risk. However, in fact, due to its dynamic constraints, the moving body cannot reach all speeds within the speed collision area. Therefore, in order to reduce redundant calculations, the improved VO obstacle avoidance algorithm proposes a collision avoidance identification function that defines the collision avoidance range, and clarifies the actual speed collision area under dynamic constraints. The improved VO obstacle avoidance algorithm is based on the dynamic constraints of the moving body, calculates the range of the moving body's motion angle and motion speed, and makes an inclusion relationship judgment with the speed collision area, and clarifies the emergency stop area where the VO obstacle avoidance algorithm cannot be used to avoid obstacles; the VO obstacle avoidance area and the safe area where obstacle avoidance does not need to be considered are divided according to the calculated shortest encounter time. The collision avoidance requirements of dynamic obstacles are judged based on the three divided areas, effectively eliminating the situation where there is no collision risk and reducing redundant calculations.
[0052] Fourth, the technical solution of the present invention simplifies the cumbersome calculation process of the traditional VO obstacle avoidance algorithm when facing multiple dynamic obstacles, and clarifies the obstacle avoidance process of the moving body: the traditional VO obstacle avoidance algorithm needs to calculate the speed collision area for each dynamic obstacle separately, and then judge the obstacle avoidance process of the moving body after summing the areas. The improved VO obstacle avoidance algorithm can first identify the dynamic obstacles with obstacle avoidance requirements based on the collision avoidance recognition function, and exclude irrelevant dynamic obstacles from the speed collision area calculation, which greatly simplifies the algorithm calculation amount and makes the obstacle avoidance process clearer and more intuitive.
[0053] Fifth, based on the local path planning algorithm of the improved VO obstacle avoidance algorithm, the present invention proposes an innovative obstacle avoidance recognition function and combines the dynamic constraints of the unmanned boat to achieve the planning of the optimal behavior and trajectory path of the unmanned boat. This method has brought significant results in practical engineering applications, which are specifically manifested in the following aspects:
[0054] First, the safety of path planning is improved. By building a motion coordinate system through water environment information and setting and adjusting the expansion coefficient, this method can accurately establish a relative motion model between the moving body and dynamic obstacles, and control the expansion coefficient to reserve the required collision avoidance distance, thereby planning a safer path. This helps reduce the collision risk of the moving body and improves the safety of the unmanned boat.
[0055] Secondly, the efficiency of the path planning algorithm is optimized. By accurately dividing the relative velocity collision area of the moving body in the water environment, this method performs path planning based on this collision area, excludes irrelevant areas from the collision, thereby simplifying the collision avoidance process and significantly improving the efficiency of the path planning algorithm.
[0056] In addition, this method has strong environmental adaptability. By innovatively proposing a collision avoidance identification function, this method can homogeneously divide complex water environments into emergency stop areas, VO obstacle avoidance areas, and safety areas for different water environments, thereby determining the optimal behavior of the moving body for the next step. This innovation helps the moving body adapt to different water environments and flexibly change its behavior, thereby achieving mission objectives efficiently and accurately.
[0057] Finally, this method also has broad application prospects. As an important means of water transportation, unmanned boats have wide application value in autonomous cruising, maritime logistics and other fields. The local path planning algorithm based on the improved VO obstacle avoidance algorithm can provide unmanned boats with efficient obstacle avoidance, stable and safe path planning solutions in complex water environments with multiple dynamic obstacles, which will help promote the development of unmanned boat application fields.
[0058] The local path planning method based on the improved VO obstacle avoidance algorithm has brought significant technical effects, improved the safety of unmanned boat path planning, optimized the efficiency of path planning, and has strong environmental adaptability. This will help promote the further development of unmanned boat technology and bring more convenience and value to the application of unmanned boats and related intelligent equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0060] Figure 1 is a flow chart of a local path planning method based on an improved VO obstacle avoidance algorithm provided by an embodiment of the present invention;
[0061] Figure 2It is a schematic diagram of a local path planning based on an improved VO obstacle avoidance algorithm provided by an embodiment of the present invention;
[0062] Figure 3 is a schematic diagram of a relative speed collision area provided by an embodiment of the present invention;
[0063] Figure 4 is a schematic diagram of an obstacle avoidance area for a moving object provided by an embodiment of the present invention;
[0064] Figure 5 is a flowchart of multiple dynamic obstacle avoidance provided by an embodiment of the present invention;
[0065] Figure 6 is a structural diagram of a local path planning system based on an improved VO obstacle avoidance algorithm provided by an embodiment of the present invention;
[0066] Figure 7 The figure is a statistical schematic diagram of the paths planned by the two algorithms for 22 random maps provided by the embodiment of the present invention. The left figure (a) is the path result of the APF algorithm, the right figure (b) is the path result of the APF-VO coupling algorithm, and the red circular trajectory is the motion trajectory of the dynamic obstacle. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0068] The local path planning system based on the improved VO obstacle avoidance algorithm provided by the embodiment of the present invention has broad application prospects in the fields of autonomous cruising of unmanned boats and marine logistics. Specific application embodiments are listed below:
[0069] Application Example 1: Local Path Planning of Unmanned Boat for Multiple Dynamic Obstacles
[0070] In the autonomous cruising mission of unmanned boats, there are often multiple static and dynamic obstacles in the water environment. The unmanned boats need to autonomously assess the collision risk to avoid collisions and optimize the navigation path as much as possible.
[0071] (1) Water environment identification and coordinate system construction: The unmanned boat uses the sensors it carries (such as lidar, GPS, etc.) to identify water environment information, including the coordinates of static obstacles (such as islands, reefs, buoys, etc.) and the coordinates and velocity vectors of dynamic obstacles (such as other ships, marine life, etc.). The mission objectives are used to confirm the starting point and target point (end point) of the unmanned boat, as well as the initial angle, speed, and angular velocity constraints.
[0072] (2) Determine the motion area and execute the corresponding strategy: Calculate the speed collision area of multiple dynamic obstacles respectively, and use the collision avoidance recognition function to divide and determine whether the unmanned boat is in the emergency stop area, VO obstacle avoidance area or safe area according to the current coordinates and velocity vector of the unmanned boat. If it is in the emergency stop area, the unmanned boat will stop immediately at the maximum acceleration to avoid collision. If it is in the VO obstacle avoidance area, the unmanned boat will use the speed obstacle method to calculate the next motion point to ensure efficient driving while avoiding obstacles. If it is in the safe area, the unmanned boat will obtain the next motion point according to the global planning goal.
[0073] (3) Repeat the planning process until the target is reached: The unmanned boat repeats the above steps, continuously updates its own position and obstacle information, re-evaluates the movement area and plans the path until it finally reaches the target point.
[0074] Application Example 2: Local Path Planning of Unmanned Boats under Maritime Rules
[0075] When unmanned boats are performing maritime logistics tasks, there are multiple static and dynamic obstacles in the water environment, and the navigation path of the unmanned boats must comply with maritime traffic regulations, namely the requirements of maritime rules. The unmanned boats need to avoid other ships based on the requirements of maritime rules and optimize the navigation path as much as possible.
[0076] (1) Water environment identification and coordinate system construction: Use GPS, lidar and other sensors to identify the location of static and dynamic obstacles in the water environment and construct a two-dimensional water coordinate system. At the same time, it is necessary to focus on identifying dynamic obstacles, especially the velocity vectors of other ships, and confirm the starting point and target point of the unmanned boat, as well as the initial angle, speed and angular velocity constraints through the mission objectives.
[0077] (2) Determine the motion area and execute the corresponding strategy: Calculate the speed collision area of multiple dynamic obstacles respectively, and use the collision avoidance recognition function to divide and determine whether the unmanned boat is in the emergency stop area, VO obstacle avoidance area or safety area according to the current coordinates and velocity vector of the unmanned boat. If it is in the emergency stop area, the unmanned boat will stop immediately at the maximum acceleration to avoid collision. If it is in the VO obstacle avoidance area, first consider using the speed obstacle method to calculate the next motion point, and determine whether this motion point is reachable based on the requirements of maritime regulations. If it is not reachable, the unmanned boat needs to adopt the emergency stop area strategy and stop at the maximum acceleration to avoid collision. If it is in the safety area, the unmanned boat obtains the next motion point according to the global planning goal.
[0078] (3) Repeat the planning process until the target is reached: The unmanned boat repeats the above steps, continuously updates its own position and obstacle information, re-evaluates the movement area and plans the path until it finally reaches the target point.
[0079] In view of the problems existing in the prior art, the present invention provides a local path planning method and system based on an improved VO obstacle avoidance algorithm. The present invention is described in detail below in conjunction with the accompanying drawings.
[0080] like Figure 1 As shown, the local path planning system based on the improved VO obstacle avoidance algorithm provided by the embodiment of the present invention includes the following steps:
[0081] S101, obtaining the coordinates of static obstacles, the coordinates and velocity vectors of dynamic obstacles, the coordinates of the starting point and the ending point, and other map information;
[0082] S102, determining whether the moving body is in an emergency stop zone, a VO obstacle avoidance zone, or a safety zone; if in an emergency stop zone, the moving body stops at a maximum acceleration; if in a VO obstacle avoidance zone, the next moving point is calculated using a speed obstacle method; if in a safety zone, the next moving point is obtained according to a global planning target;
[0083] S103, determining whether the moving body has reached the target point, if so, terminating; if not, repeating step S102.
[0084] The local path planning system based on the improved VO (Velocity Obstacle) obstacle avoidance algorithm provided in the embodiment of the present invention is mainly intended to provide an effective local path planning method for mobile platforms such as unmanned boats, so as to achieve automatic obstacle avoidance and safe navigation when encountering dynamic obstacles. The working principle of the system is as follows Figure 2 The detailed description is as follows:
[0085] (1) Information acquisition: The first thing to input into the system is detailed information about the surrounding environment, including the location coordinates of static and dynamic obstacles, the velocity vector of dynamic obstacles, and map information such as the starting and ending coordinates of the unmanned boat. This information can be obtained through sensors, radars, GPS, etc.
[0086] (2) Area judgment: Based on the information obtained, the system divides the surrounding environment into three areas: emergency stop area, VO obstacle avoidance area and safety area.
[0087] 1) Emergency stop zone: If the current moving point of the unmanned boat is in the emergency stop zone, that is, when facing the risk of an imminent collision, the unmanned boat will perform emergency braking at maximum acceleration and stop moving forward to avoid a collision.
[0088] 2) VO obstacle avoidance zone: If the unmanned boat is in the VO obstacle avoidance zone, it means that there is a potential risk of collision between the unmanned boat and the obstacle. At this time, the system will use the speed obstacle method (VO method) to calculate the next movement point of the unmanned boat, that is, to adjust the navigation path of the unmanned boat by calculating a safe speed and direction to avoid collision with obstacles.
[0089] 3) Safety zone: If the unmanned boat is in the safety zone, it means there is no collision risk at present. The unmanned boat can move forward safely according to the global path planning target, calculate the next movement point, and continue to sail towards the target point.
[0090] (3) Target judgment: The system continuously detects whether the unmanned boat has reached the target point. If it has, the path planning task is completed and the unmanned boat stops moving; if it has not, the system repeats the area judgment steps until the unmanned boat safely reaches the target point.
[0091] The local path planning system provided by the embodiment of the present invention effectively improves the obstacle avoidance capability and navigation efficiency of the unmanned boat in complex environments through efficient information processing, intelligent area judgment and flexible obstacle avoidance strategy, and has important practical application value.
[0092] As a preferred embodiment, the local path planning system based on the improved VO obstacle avoidance algorithm provided in the embodiment of the present invention specifically includes the following steps:
[0093] Step 1: Calculate the speed collision area where the collision occurs
[0094] like Figure 3 As shown, located in The coordinates of the moving body O and the obstacle A at the moment are and The relative distance between the two , relative angle .
[0095] Secondly, subtract the velocity vector of the moving body from the velocity vector of the obstacle to get the relative velocity , the dynamic obstacle A is considered to be stationary, and the relative velocity vector of the moving body is considered to be , The set of relative velocity vectors of the moving body is the area .
[0096] Assume the radius of the dynamic obstacle is , the radius expansion coefficient is , in the region of the relative velocity vector of the moving body There are two relative velocity vectors tangent to the outer contour of the obstacle, and the two tangent angles are set to and ,but , , the relative velocity of the moving body in the collision area is the vector area enclosed by the two tangent angle ranges. For dynamic obstacles, when the relative velocity vector of the moving body Not in the relative velocity collision zone of moving bodies When the obstacle is encountered, there is no need to perform collision avoidance processing on the obstacle, and the obstacle will not be included in subsequent calculations.
[0097] Considering the dynamic constraints of the moving body, the maximum acceleration of the moving body is , the maximum angular velocity is ,exist The relative speed at that moment is , the relative speed corresponds to an angle of In unit time After that, the relative speed of the moving body ranges from , the relative angle range is .but = , = . The relative velocity vector area of the moving body considering dynamic constraints Relative speed range Relative angle range The vector area enclosed.
[0098] Relative velocity collision area of moving body Each vector and the obstacle velocity vector Perform Minkowski summation to obtain the absolute velocity collision area of the moving body ,but , the absolute speed of the moving body In Indicates a risk of collision.
[0099] Step 2: Divide the emergency stop area, VO obstacle avoidance area, and safety area
[0100] The area near the obstacle is divided into three areas based on the collision avoidance recognition function. The collision avoidance recognition function is:
[0101]
[0102] (1) Emergency stop area of the inner circle
[0103] When the absolute velocity vector of the moving body In the absolute velocity collision area of moving bodies The maximum distance that the moving body cannot avoid obstacles by using the speed obstacle method is the distance the moving body moves when it stops at maximum acceleration, then .
[0104] When considering the relative velocity vector area of the moving body with dynamic constraints The collision area is the relative velocity of the moving body When the subset is , speed obstacle avoidance cannot be performed, i.e. Sometimes, there is and The relative distance between the moving object and the dynamic obstacle Satisfy the expression and .
[0105] In summary, considering the above two situations where obstacles cannot be avoided, , with the geometric center of the obstacle as the center of the circle, The circular area with a radius of is defined as the emergency stop zone of the obstacle. When the moving body enters the emergency stop zone of the obstacle, the moving body stops moving at the maximum acceleration.
[0106] (2) VO obstacle avoidance zone
[0107] When the absolute velocity vector of the moving body In the absolute velocity collision area of moving bodies The relative velocity vector region of the moving body considering dynamic constraints Relative velocity collision area with moving body When there is an intersection, the speed obstacle method is needed to avoid obstacles, that is, and , the moving body moves at a relative speed At the minimum encounter time Distance of internal movement is the outer radius of the VO obstacle avoidance zone. Among them, the minimum encounter time Increases with the relative speed, and of If the power is proportional to , , are all constants.
[0108] Take the geometric center of the obstacle as the center of the circle, is the inner diameter, The annular area with an outer diameter is defined as the VO obstacle avoidance zone of the obstacle. When the moving body enters the VO obstacle avoidance zone of the obstacle, the moving body starts to avoid the obstacle.
[0109] (3) Outermost safety zone
[0110] When the absolute velocity vector of the moving body Not in the absolute velocity collision area of the moving body When the moving body is within the range of 0 to 1, it does not need to consider obstacle avoidance. The next moving point of the moving body is determined by the global path planning.
[0111] The remaining area of the map selected by local path planning that does not include the emergency stop zone and VO obstacle avoidance zone is defined as the obstacle safety zone. When the unmanned boat leaves the emergency stop zone and VO obstacle avoidance zone of the obstacle and enters the safety zone, the moving body ends the obstacle avoidance.
[0112] Step 3: Path planning for moving bodies to avoid multiple dynamic obstacles
[0113] First, calculate and determine the area where the moving object is located. Figure 4 As shown in (a), if the moving body is in the safe zone of all obstacles, the next moving point of the global plan is used as the target; Figure 4 As shown in (b), if the moving body is in the emergency stop zone of an obstacle, the moving body stops with the maximum acceleration; Figure 4 As shown in (c), if the moving body is in the VO obstacle avoidance zone of one or more obstacles, continue with the following steps.
[0114] Secondly, if Figure 5 As shown, considering the dynamic constraints of the moving body, the maximum acceleration of the moving body is , the maximum angular velocity is ,exist The absolute velocity at the moment is , the angle is In unit time After that, the absolute velocity of the moving body ranges from , the angle range is .but = , = The absolute velocity vector area of the moving body considering dynamic constraints Speed range With angle range The vector area enclosed.
[0115] Again, the absolute velocity collision area of the moving body corresponding to all dynamic obstacles in the VO obstacle avoidance zone The total dangerous collision area is obtained by summing up The velocity vector area that the moving body can select next The absolute velocity vector area of the moving body considering dynamic constraints Subtract the absolute velocity vector area of the moving body considering dynamic constraints Total collision area with danger The intersection of .
[0116] Finally, in the velocity vector area where the moving body can choose Find the velocity vector closest to the next moving point in the global plan, and get the coordinates of the next moving point after the minimum iteration until reaching the target point.
[0117] like Figure 6 As shown, the local path planning system based on the improved VO obstacle avoidance algorithm provided by the embodiment of the present invention includes:
[0118] A map information acquisition module is used to obtain the coordinates of static obstacles, the coordinates and velocity vectors of dynamic obstacles, the coordinates of the starting point and the ending point, and other map information;
[0119] The area judgment module is used to judge whether the moving body is in the emergency stop area, VO obstacle avoidance area or safety area;
[0120] Emergency stop zone calculation module: if the moving body is in the emergency stop zone, it stops at the maximum acceleration;
[0121] VO obstacle avoidance zone calculation module, if the moving body is in the VO obstacle avoidance zone, the speed obstacle method is used to calculate the next moving point;
[0122] Safety zone calculation module, if the moving body is in the safety zone, the next moving point is obtained according to the global planning goal;
[0123] The moving point judgment module is used to judge whether the moving body reaches the target point. If it reaches the target point, it terminates; if not, it returns to the area judgment module.
[0124] An application embodiment of the present invention provides a computer device, which includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of a local path planning method based on an improved VO obstacle avoidance algorithm.
[0125] An application embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of a local path planning method based on an improved VO obstacle avoidance algorithm.
[0126] An application embodiment of the present invention provides an information data processing terminal, which is used to implement a local path planning system based on an improved VO obstacle avoidance algorithm.
[0127] In order to demonstrate the effectiveness of the improved VO obstacle avoidance algorithm in avoiding dynamic obstacles during path planning, the APF algorithm and the APF-VO coupling algorithm are used to plan paths for multiple random maps with both static and dynamic obstacles. The simulation parameters are set as follows:
[0128] (1) Map information setting: Based on the lake map with an image resolution of 500×500 dpi, 10 circular static obstacles and dynamic obstacles were randomly added: the diameter pixels of the static obstacles were randomly set to 20, 30, 40, 50 and 60; the diameter pixels of the dynamic obstacles were randomly set to integer values in the range of [6, 20], and the centers were randomly set in the sector areas with the end point as the center, the direction angle range of the line connecting the end point and the start point being positive or negative 45°, and the radius range being [50, 200].
[0129] (2) If Figure 7 As shown in the figure, 22 random maps are repeatedly set, and the paths are planned using the APF algorithm and the APF-VO coupling algorithm respectively. The left figure (a) is the path result of the APF algorithm, and the right figure (b) is the path result of the APF-VO coupling algorithm. The red circular trajectory is the motion trajectory of the dynamic obstacle.
[0130] (3) The comparison algorithms for the same map set the same repulsion and attraction coefficients, uniformly set the starting point coordinates to [180,100], the end point coordinates to [440,390], the starting point initial angle to 0°, and the starting point initial velocity to 0 m / s.
[0131] According to the data obtained by the above algorithm comparison example, the statistical data of the path results are shown in Table 2. APF-VO coupling algorithm compared with APF algorithm: the success rate increased by 54.55% on average, the path points of the effective path decreased by 6.07% on average, and the absolute cumulative value of each corner change of the effective path decreased by 18.28% on average. Therefore, the improved VO obstacle avoidance algorithm can smoothly avoid dynamic obstacles, effectively reduce the length of the planned path, and improve the smoothness and efficiency of the planned path.
[0132] Table 2 Statistics of the paths planned by two algorithms for 22 random maps provided by the embodiment of the present invention
[0133]
[0134] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. A person of ordinary skill in the art will understand that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0135] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A local path planning method based on an improved VO obstacle avoidance algorithm, characterized in that: include: According to the water surface environment information, a motion coordinate system is constructed and a relative motion model is built; considering the dynamic constraints of the moving body and the distribution of dynamic obstacles, the relative speed collision area of the moving body is divided, and irrelevant areas are excluded from the collision, simplifying the collision avoidance process; a collision avoidance identification function is proposed, which divides the area near the obstacle into an emergency stop area, a VO obstacle avoidance area and a safety area, and accurately predicts the optimal behavior of the moving body at the next moment; in view of the complex distribution and inconsistent speed of multiple dynamic obstacles, by determining the absolute speed collision area of the moving body, efficient obstacle avoidance of multiple dynamic obstacles is achieved at the same time, which improves the applicability of the algorithm; The collision avoidance recognition function and area division are as follows: First, determine the size of the three areas: emergency stop area, VO obstacle avoidance area, and safety area; When the absolute velocity vector of the moving body In the absolute velocity collision area of moving bodies The maximum distance that the moving body cannot avoid obstacles by using the speed obstacle method The maximum acceleration of the moving body The distance when the movement stops, ; Located in The coordinates of the moving body O and the obstacle A at the moment are and , then the relative distance between the two , relative angle ; Assume the radius of the dynamic obstacle is , the radius expansion coefficient is , in the region of the relative velocity vector of the moving body Find two relative velocity vectors tangent to the outer contour of the obstacle, set the tangent points to B and C, and set the angles of the two tangents to and ,but , , the relative velocity of the moving body in the collision area is the vector area enclosed by the two tangent angle ranges; When considering the relative velocity vector area of the moving body with dynamic constraints The collision area is the relative velocity of the moving body When the subset is used, speed obstacle avoidance cannot be performed. Sometimes, there is and ; The maximum angular velocity is ,exist The relative speed at that moment is , the relative speed corresponds to an angle of ; The relative distance between the moving body and the dynamic obstacle Satisfy the expression and ; In summary, considering the above two situations where obstacles cannot be avoided, , with the geometric center of the obstacle as the center of the circle, The circular area with a radius of is defined as the emergency stop zone of the obstacle; when the moving body enters the emergency stop zone of the obstacle, the moving body stops moving at the maximum acceleration; When the absolute velocity vector of the moving body In the absolute velocity collision area of moving bodies The relative velocity vector region of the moving body considering dynamic constraints Relative velocity collision area with moving body When there is an intersection, the speed obstacle method is needed to avoid obstacles. and , the moving body moves at a relative speed At the minimum encounter time Distance of internal movement is the outer radius of the VO obstacle avoidance zone; among them, the minimum encounter time Increases with the relative speed, and of Proportional to the power, then , b≥1, , b≥1, are all constants; Take the geometric center of the obstacle as the center of the circle, is the inner diameter, The annular area with an outer diameter is defined as the VO obstacle avoidance zone of the obstacle; when the moving body enters the VO obstacle avoidance zone of the obstacle, the moving body starts to avoid the obstacle; When the absolute velocity vector of the moving body Not in the absolute velocity collision area of the moving body When the moving body is within, there is no need to consider obstacle avoidance; the next moving point of the moving body is determined by the global path planning; The remaining area of the map selected by the local path planning that does not include the emergency stop zone and the VO obstacle avoidance zone is defined as the obstacle safety zone; when the unmanned boat leaves the emergency stop zone and the VO obstacle avoidance zone and enters the safety zone, the moving body ends the obstacle avoidance; Secondly, the collision avoidance identification function expression includes: 。 2. The local path planning method based on the improved VO obstacle avoidance algorithm as claimed in claim 1, characterized in that: The local path planning system based on the improved VO obstacle avoidance algorithm specifically includes the following steps: Step 1: Calculate the speed collision area where the collision occurs; Step 2: Divide the emergency stop area, VO obstacle avoidance area, and safety area; Step 3: Path planning for the moving body to avoid multiple dynamic obstacles.
3. The local path planning method based on the improved VO obstacle avoidance algorithm as claimed in claim 1, characterized in that: Improved VO obstacle avoidance algorithm calculates the speed collision area including: Subtract the velocity vector of the moving body from the velocity vector of the obstacle to obtain the relative velocity , the dynamic obstacle A is considered to be stationary, and the relative velocity vector of the moving body is considered to be , The set of relative velocity vectors of the moving body is the area ; Assume that the moving body O and the dynamic obstacle A are kept at The velocity vector at the moment, then at least time The rear obstacle and the moving body will collide; For a dynamic obstacle, when the relative velocity vector of the moving body Not in the relative velocity collision area of moving bodies If the obstacle is within the range of 0, there is no need to perform collision avoidance processing on the obstacle, and the obstacle will not be included in subsequent calculations; Considering the dynamic constraints of the moving body, the maximum acceleration of the moving body is , in unit time After that, the relative speed of the moving body ranges from , the relative angle range is ;but = , = ; Relative velocity vector area of moving body considering dynamic constraints Relative speed range Relative angle range The vector area under the encirclement; Considering the dynamic obstacle A as moving, the obstacle velocity vector is , the relative velocity of the moving body in the collision area Each vector and the obstacle velocity vector Perform Minkowski summation to obtain the absolute velocity collision area of the moving body ,but , the absolute speed of the moving body In Indicates a risk of collision.
4. The local path planning method based on the improved VO obstacle avoidance algorithm as claimed in claim 1, characterized in that: The total obstacle avoidance process when there are multiple obstacles using the algorithm calculation includes: First, the area where the moving body is located is calculated and determined. If the moving body is in the safe zone of all obstacles, the next moving point of the global plan is used as the target; if the moving body is in the emergency stop zone of an obstacle, the moving body stops at the maximum acceleration; if the moving body is in the VO obstacle avoidance zone of one or more obstacles, continue with the following steps; Secondly, considering the dynamic constraints of the moving body, the maximum acceleration of the moving body is , the maximum angular velocity is ,exist The absolute velocity at the moment is , the angle is , in unit time After that, the absolute velocity of the moving body ranges from , the angle range is ,but = , = , considering the dynamic constraints of the moving body absolute velocity vector area Speed range With angle range The vector area under the encirclement; Again, the absolute velocity collision area of the moving body corresponding to all dynamic obstacles in the VO obstacle avoidance zone The total dangerous collision area is obtained by summing up , the velocity vector area that the moving body can select next The absolute velocity vector area of the moving body considering dynamic constraints Subtract the absolute velocity vector area of the moving body considering dynamic constraints Total collision area with danger The intersection of ; Finally, in the velocity vector area where the moving body can choose Find the velocity vector closest to the next moving point in the global plan, and get the coordinates of the next moving point after the minimum iteration.
5. A local path planning system for implementing the local path planning method based on the improved VO obstacle avoidance algorithm as claimed in any one of claims 1 to 4, characterized in that: include: A map information acquisition module is used to obtain the coordinates of static obstacles, the coordinates and velocity vectors of dynamic obstacles, the coordinates of the starting point and the ending point, and other map information; The area judgment module is used to judge whether the moving body is in the emergency stop area, VO obstacle avoidance area or safety area; Emergency stop zone calculation module: if the moving body is in the emergency stop zone, it stops at the maximum acceleration; VO obstacle avoidance zone calculation module, if the moving body is in the VO obstacle avoidance zone, the speed obstacle method is used to calculate the next moving point; Safety zone calculation module, if the moving body is in the safety zone, the next moving point is obtained according to the global planning goal; The moving point judgment module is used to judge whether the moving body reaches the target point. If it reaches the target point, it terminates; if not, it returns to the area judgment module.
6. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the local path planning method based on the improved VO obstacle avoidance algorithm as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to perform the steps of the local path planning method based on the improved VO obstacle avoidance algorithm as described in any one of claims 1 to 4.
8. An information data processing terminal, the information data processing terminal is used to implement the local path planning system based on the improved VO obstacle avoidance algorithm as claimed in claim 5.
Citation Information
Patent Citations
Geometric-method-based dynamic obstacle avoidance method and system of unmanned boat
CN109960262A
Obstacle collision avoidance method based on dynamic security domain and collision avoidance rule
CN112965477A
