A robot path planning method based on visibility graph

By optimizing the number of obstacle polygons and vertices and combining it with the bidirectional A* algorithm, the path planning method based on the visibility graph solves the efficiency and real-time problems of the robot path planning algorithm in the unknown environment in the existing technology, and realizes the robot's ability to operate in large areas. The ability to quickly avoid obstacles in the scene.

CN118466517BActive Publication Date: 2024-10-15NANJING NORMAL UNIVERSITY
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410911034.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-15
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

Existing robot path planning algorithms have low computational efficiency and poor real-time performance in unknown environments, and are prone to exploring unnecessary spaces, making it difficult to quickly avoid obstacles in large scene environments.

Method used

Using a path planning method based on visibility graph construction, the contour feature points of obstacles are extracted by obtaining environmental point cloud data, a closed polygon is constructed, the number of vertices is optimized, a visibility graph is established, and the bidirectional A* path planning algorithm is used to search for the shortest path.

Benefits of technology

It improves the calculation efficiency and real-time performance of robot path planning, allowing the robot to quickly and smoothly avoid dynamic obstacles in large scene environments, meeting real-time requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118466517B_ABST
    Figure CN118466517B_ABST
Patent Text Reader

Abstract

The present invention discloses a robot path planning method based on visibility graph construction, which obtains point cloud data of the environment, extracts the outline feature points of obstacles in the point cloud data, and constructs a closed polygon of the obstacle; for a closed polygon with a vertex number greater than a threshold, eliminates the edge whose length is less than the threshold to obtain an optimized obstacle polygon; and constructs a visibility graph according to the visual relationship between the vertices of the obstacle polygon; given the robot starting point and end point, searches for the shortest path from the starting point to the end point of the robot on the visibility graph through a bidirectional A* path planning algorithm. By setting a threshold to control the number of vertices of a complex large polygon, the characteristics of too many redundant nodes in the real environment of the mobile robot are fully considered, the calculation efficiency of the path planning of the mobile robot in a large scene environment is improved, and the real-time requirements are met, so that the mobile robot can smoothly and quickly avoid dynamic obstacles, and the application prospect is broad.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to robot visual path planning, and in particular to a robot path planning method based on visibility graph construction. Background Art

[0002] Robot navigation, as an important component of robotics technology, is a prerequisite for many types of robots to perform other complex tasks.

[0003] In order for the robot to avoid obstacles smoothly and quickly and reach the target location during the execution of the task, its path planning technology is indispensable. The current path planning and trajectory optimization algorithms have the following main shortcomings: first, it is impossible to plan the path in an unknown environment, and the algorithm calculation efficiency is low and the real-time performance is poor in a large scene environment. Second, the current mobile robot tends to explore many unnecessary spaces. Summary of the invention

[0004] Purpose of the invention: In view of the above shortcomings, the present invention provides a robot path planning method based on visibility graph with strong real-time performance and high computational efficiency.

[0005] Technical solution: To solve the above problems, the present invention adopts a robot path planning method based on visibility graph, which includes the following steps:

[0006] (1) Obtain point cloud data of the environment, extract contour feature points of obstacles in the point cloud data, and construct closed polygons of obstacles based on the contour feature points;

[0007] (2) For closed polygons whose number of vertices is greater than the threshold, eliminate the edges whose length is less than the threshold to obtain the optimized obstacle polygon;

[0008] (3) The vertices of the optimized obstacle polygons are used as vertices in the visibility graph, and the visibility graph is constructed based on the visual relationship between the vertices;

[0009] (4) Given the starting point and end point of the robot, the shortest path from the starting point to the end point is searched on the visibility graph using the bidirectional A* path planning algorithm.

[0010] Furthermore, the step (1) of obtaining point cloud data of the environment and extracting contour feature points of obstacles in the point cloud data comprises the following steps:

[0011] (11) The point cloud data collected by the lidar is downsampled through a voxel filtering algorithm to obtain a sparse point cloud;

[0012] (12) The sparse point cloud is projected onto a plane to obtain a binary image, and the binary image is filtered using a mean filter to generate a blurred image;

[0013] (13) The blurred image is processed through the contour tracking algorithm and circle extraction method to obtain the contour feature points of the obstacle;

[0014] (14) The obstacles are classified into column obstacles and common obstacles. The contour feature points of the column obstacles are simplified into one point, and the complete contour feature points of the common obstacles are retained to obtain the contour feature points of the processed obstacles.

[0015] Furthermore, the method for classifying obstacles in step (14) is: the perimeter of the polygon enclosed by the contour feature points of the obstacle ,like , then the obstacle is classified as a column obstacle, where is the diameter of the robot.

[0016] Furthermore, in step (1), a closed polygon of the obstacle is constructed according to the contour feature points for the common obstacle, the relationship between the points and the edges on the closed polygon is determined by the vertex and the pointers pointing to the two consecutive vertices before and after the vertex, and the concavity and convexity of each vertex is determined by the direction vector method.

[0017] Furthermore, in step (2), for the closed polygons whose number of vertices is greater than the threshold, the edges whose length is less than the threshold are eliminated to obtain the optimized obstacle polygons. The specific method is:

[0018] For a closed polygon of an obstacle with a vertex number greater than a threshold, calculate the straight-line distance d between each vertex of the closed polygon and the two consecutive vertices before and after the vertex. If the calculated straight-line distance d is less than the threshold, eliminate the vertex and the edge formed by the vertex and the two consecutive vertices before and after the vertex.

[0019] The calculation formula of the straight-line distance d is:

[0020] ;

[0021] in, is the vector of the ith vertex, and is the vector of two consecutive vertices before and after the i-th vertex. The threshold of the straight-line distance is , It is the distance between the shortest two vertices in the closed polygon of the obstacle.

[0022] Furthermore, the method for constructing the visibility graph in step (3) is:

[0023] (31) connecting the optimized vertices of different obstacle polygons to form visibility edges, and connecting the visibility edges to form a visibility graph, wherein the visibility graph includes a local visibility graph of a local layer and a global visibility graph of a global layer;

[0024] (32) Filter out the visibility edges that intersect with the obstacle polygon and the visibility edges that pass through the interior of the obstacle polygon;

[0025] (33) Associating vertices in the local visibility graph with vertices in the global visibility graph when the Euclidean distance between the closest vertices in the local visibility graph and the global visibility graph is less than one tenth of the Euclidean distance between the farthest two vertices; and merging visibility edges in the local visibility graph into the global visibility graph.

[0026] Furthermore, the obstacles include static obstacles and dynamic obstacles. For dynamic obstacles, the visibility edges connected to the dynamic obstacle polygons at the last moment are eliminated, and then the visibility edges are reconnected and merged into the global visibility graph.

[0027] Furthermore, in step (4), the starting position and the end position of the robot are added to the global layer, and the position information of the associated vertices is updated in the global layer using a robust fitting update method during the movement of the robot.

[0028] Furthermore, a heuristic function is used to guide the search when the bidirectional A* path planning algorithm is used to search for the shortest path.

[0029] Beneficial effect: Compared with the prior art, the significant advantage of the present invention is that it controls the number of vertices of complex large polygons by setting thresholds, fully considers the characteristics of too many redundant nodes in the real environment of mobile robots, improves the path planning calculation efficiency of mobile robots in large scene environments, meets real-time requirements, and enables mobile robots to avoid dynamic obstacles smoothly and quickly, and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a schematic diagram of the workflow of the path planning method of the present invention.

[0031] Figure 2 It is a schematic diagram of extracting contour feature points of obstacles in the present invention.

[0032] Figure 3 It is a schematic diagram of the scope of the local layer and the global layer in the present invention.

[0033] Figure 4 It is a schematic diagram of the existence of redundant vertices and unnecessary edges in the present invention.

[0034] Figure 5 It is a schematic diagram of the visibility graph optimization result in the present invention.

[0035] Figure 6 It is a schematic diagram of experimental comparison of different path planning algorithms in indoor environment in a specific embodiment of the present invention.

[0036] Figure 7 It is a schematic diagram comparing the path search time of different path planning algorithms in an indoor environment in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0037] In this embodiment, a robot path planning method based on visibility graph is constructed, which selects the robot's surrounding environment and all environments observed by the robot to divide into local layer and global layer.

[0038] like Figure 1 As shown, in this embodiment, a robot path planning method based on visibility graph construction includes the following steps:

[0039] (1) Obtain point cloud data S of the robot's surrounding environment through lidar, and use the findContours function and approxPolyDP function in OpenCV to extract obstacle feature points; construct a closed polygon of the obstacle based on the contour feature points.

[0040] Specifically:

[0041] (11) The point cloud data S collected by the lidar is downsampled through the voxel filtering algorithm to obtain a sparse point cloud .

[0042] (12) Sparse point cloud Get binary image by plane projection , and the binary image Generate blurred image using mean filtering .

[0043] (13) Blur the image Obtain the contour feature points of the obstacle through the contour tracking algorithm and circle extraction method in image processing .

[0044] (14) According to the contour feature points, the obstacles are classified into column obstacles and common obstacles; the column obstacles are simplified into one point, and the common obstacles retain the complete contour feature points, thereby obtaining the contour feature points of the processed obstacles.

[0045] For each obstacle contour feature point set According to the circumference To classify, is the diameter of the mobile robot, if If the value is less than a certain threshold, it is classified as a column obstacle, otherwise it is classified as a common obstacle. The specific threshold formula is as follows:

[0046] .

[0047] (15) Construct a closed polygon of the obstacle based on the contour feature points.

[0048] In the process of constructing common obstacles, it is necessary to add the relationship between points and edges and the concavity and convexity of vertices. , its contour feature points of front The pointer points to the contour feature point at the end , contour feature points of back The pointer points to the contour feature point , and so on to complete the obstacle polygon The relationship between points and edges.

[0049] The convexity and concavity of the vertex are calculated using the direction vector method. The direction vector formula of the contour feature point is expressed as follows:

[0050] ;

[0051] ;

[0052] In this embodiment, the contour feature points For example, the contour feature points The coordinates of , contour feature points The coordinates of , contour feature points The coordinates of , contour feature points The coordinates of ,vector , , The formula is as follows:

[0053] ;

[0054] ;

[0055] ;

[0056] At the contour feature points along Direction point , check whether the point is located within an obstacle On an edge of , for point The formula is as follows:

[0057] ;

[0058] like If it is less than 0, it means the point In line segment On the right side, if If it is greater than 0, it means that the point In line segment If the point is on the same side of all line segments, then the point exist Internal, called contour feature points For a convex point, the direction vector formula is as follows:

[0059] ;

[0060] If the point is not on the same side of all line segments, the contour feature point is a concave point, and its direction vector formula is as follows:

[0061] ;

[0062] A simplified method is used to handle column obstacles, which are considered as a point in the path planning process. Indicates the center point of the column obstacle. represents the contour feature point of the obstacle, n represents the number of contour feature points of the obstacle, and the position of this point can be calculated in a weighted manner. The formula is as follows:

[0063] ;

[0064] (2) If Figure 4 As shown in the figure, it is easy to form small-angle, short redundant edges in the process of constructing polygons for complex obstacles. Therefore, a filtering method based on edge length and the number of vertices of the obstacle contour is used to eliminate redundant edges in the polygon, and a threshold is set to control the number of vertices of complex large polygons. For closed polygons with a number of vertices greater than the threshold, the edges with a length less than the threshold are eliminated to obtain the optimized obstacle polygon, as shown in Figure 5 shown.

[0065] Use d to represent the vertex Two consecutive vertices before and after this vertex and The distance of the straight line formed is expressed as follows:

[0066] ;

[0067] For each vertex in the obstacle, if the total number of points in the obstacle polygon is greater than the threshold and , then eliminate the vertex and the edge formed by the vertex and the two consecutive vertices before and after it, where is the Euclidean distance between the two nearest vertices in the obstacle polygon.

[0068] (3) The vertices of the optimized obstacle polygons are used as vertices in the visibility graph, and the visibility graph is constructed based on the visual relationship between the vertices.

[0069] (31) The optimized vertices of different obstacle polygons are connected to form visibility edges, and the visibility edges are connected to form a visibility graph, which includes a local visibility graph of a local layer and a global visibility graph of a global layer.

[0070] (32) Filter out the visible edges that intersect with the obstacle polygon and the visible edges that pass through the interior of the obstacle polygon, and retain the edge set that does not enter the obstacle;

[0071] (33) After constructing the local visibility graph at the local layer, the visibility edges of static obstacles are associated with the vertices of the visibility edges in the local layer and the vertices of the visibility edges in the global layer. Only when the Euclidean distance of their nearest vertices is less than one tenth of the distance between the two farthest vertices, the visibility edges in the local layer that overlap with the global layer are updated and the local layer is merged into the global layer. For dynamic obstacles, the visibility edges are directly eliminated and reconnected and then merged into the global layer.

[0072] Dynamic obstacles directly eliminate visibility edges and reconnect visibility edges and merge them into the global layer. Specifically, the obstacle point clouds extracted from the laser point cloud of the current frame and the point cloud data of the previous frame are extracted to obtain a dynamic obstacle point cloud set. The point clouds that overlap with the dynamic obstacle point cloud extracted from the point cloud data of the previous frame are removed to obtain a new obstacle point cloud set for projection to the image. The dynamic obstacle point cloud set is then put into an array, and the array is dynamically maintained according to the program running time. When the obstacle point cloud is extracted in the next cycle, the dynamic obstacle point cloud set in the array is deleted from the new obstacle point cloud set, that is, the new dynamic obstacle contour points and visibility edges are deleted.

[0073] (4) Given the robot's starting point and end point, the shortest path from the starting point to the end point of the robot is searched on the visibility graph by the bidirectional A* path planning algorithm, and the heuristic function is used to guide the search, so that the search for the shortest path can be completed more quickly. Given the robot's starting position and end point, the starting position and the end point are added as two vertices to the global layer, and they are connected to the vertices that do not enter the obstacle polygon edge in the global polygon formed by all obstacles in the global layer. Find the shortest path between the starting position and the end point, and only perform collision checks on the line segments of the shortest path to improve the speed of path search.

[0074] After adding the robot position and the target position to the global layer, the position information of the associated vertices is updated in the global layer. During the update process, the robust fitting update method is used to eliminate outlier associations; the robust fitting update method is an iterative algorithm that first calculates the mean and covariance of all sample points in the global layer and the local layer, and then adjusts the embedded state or external state of the vertex according to the calculation results. If the state of the vertex remains unchanged in two iterations, the iteration terminates; the maximum number of iterations is set to reduce the problem of infinite loops. After the update, the unassociated vertices will be deleted. Finally, the edges stored in the local layer are merged into the global layer. Existing edges will be updated and new edges will be added to the global layer; the target node is embedded in the visibility graph and associated with the existing vertices in the graph. The bidirectional A* search path planning algorithm is used for path search, and the heuristic function is used to guide the search, so that the shortest path can be found faster.

[0075] like Figure 6 , 7 As shown in Table 1:

[0076] Table 1 Comparison of navigation and path planning time of different path planning algorithms

[0077]

[0078] Compared with the path planning methods of FAR algorithm (FARPlanner: Fast, Attemptable Route Planner), FPS algorithm (Fast Path PlannerAlgorithm), and D*Lite algorithm in the prior art, the path planning method OURS adopted in this embodiment can find the shortest path faster, has the shortest navigation time and path planning time, can help the mobile robot select the optimal route faster, and has higher path planning efficiency.

Claims

1. A robot path planning method based on visibility graph, characterized in that: The following steps are involved: (1) Acquiring point cloud data of the environment and extracting contour feature points of obstacles in the point cloud data; and constructing a closed polygon of the obstacle based on the contour feature points; the step of acquiring point cloud data of the environment and extracting contour feature points of obstacles in the point cloud data comprises the following steps: (11) The point cloud data collected by the lidar is downsampled through a voxel filtering algorithm to obtain a sparse point cloud; (12) The sparse point cloud is projected onto a plane to obtain a binary image, and the binary image is filtered using a mean filter to generate a blurred image; (13) The blurred image is processed through the contour tracking algorithm and circle extraction method to obtain the contour feature points of the obstacle; (14) Classify the obstacles into column obstacles and ordinary obstacles, simplify the contour feature points of the column obstacle into one point, and retain the complete contour feature points of the ordinary obstacle to obtain the contour feature points of the processed obstacle; the perimeter of the polygon enclosed by the contour feature points of the obstacle ,like , then the obstacle is classified as a column obstacle, where is the diameter of the robot; (2) For closed polygons whose number of vertices is greater than the threshold, eliminate the edges whose length is less than the threshold to obtain the optimized obstacle polygon; the specific method is: For a closed polygon of an obstacle with a vertex number greater than the threshold, calculate the straight-line distance d between each vertex of the closed polygon and the two consecutive vertices before and after the vertex. If the calculated straight-line distance d is less than , then eliminate the vertex and the edge formed by the vertex and the two consecutive vertices before and after it; is the distance between the shortest two vertices of the closed polygon of the obstacle; The calculation formula of the straight-line distance d is: ; in, is the vector of the ith vertex, and is the vector of two consecutive vertices before and after the i-th vertex; (3) The vertices of the optimized obstacle polygons are used as vertices in the visibility graph, and the visibility graph is constructed based on the visual relationship between the vertices; (4) Given the starting point and end point of the robot, the shortest path from the starting point to the end point is searched on the visibility graph using the bidirectional A* path planning algorithm.

2. The robot path planning method according to claim 1, characterized in that: In the step (1), a closed polygon of the obstacle is constructed according to the contour feature points of the common obstacle, the relationship between the points and the edges on the closed polygon is determined by the vertex and the pointers pointing to the two consecutive vertices before and after the vertex, and the concavity and convexity of each vertex is determined by the direction vector method.

3. The robot path planning method according to claim 1, characterized in that: The method for constructing the visibility graph in step (3) is: (31) connecting the optimized vertices of different obstacle polygons to form visibility edges, and connecting the visibility edges to form a visibility graph, wherein the visibility graph includes a local visibility graph of a local layer and a global visibility graph of a global layer; (32) Filter out the visibility edges that intersect with the obstacle polygon and the visibility edges that pass through the interior of the obstacle polygon; (33) Associating vertices in the local visibility graph with vertices in the global visibility graph when the Euclidean distance between the closest vertices in the local visibility graph and the global visibility graph is less than one tenth of the Euclidean distance between the farthest two vertices; and merging visibility edges in the local visibility graph into the global visibility graph.

4. The robot path planning method according to claim 3, characterized in that: The obstacles include static obstacles and dynamic obstacles. For dynamic obstacles, the visibility edges connected to the dynamic obstacle polygons at the last moment are eliminated, and then the visibility edges are reconnected and merged into the global visibility graph.

5. The robot path planning method according to claim 4, characterized in that: In the step (4), the starting position and the end position of the robot are added to the global layer, and the position information of the associated vertices is updated in the global layer using a robust fitting update method during the movement of the robot.

6. The robot path planning method according to claim 4, characterized in that: When using the bidirectional A* path planning algorithm to search for the shortest path, a heuristic function is used to guide the search.

Citation Information

Patent Citations

  • Rapid robot path planning method based on sparse views

    CN115220448A

  • Rapid path planning method and system for unmanned vehicle in unknown environment

    CN116380082A

  • Robot real-time optimal trajectory planning method based on double-layer data structure

    CN116520849A

  • Rapid path planning method based on improved views and track optimization method based on ESDF (Extensible Software Definition Function) map

    CN117075612A

  • Three-dimensional laser radar navigation method fusing priority exploration and timer mechanism

    CN118068367A