Obstacle parameterization method for robot obstacle avoidance in structured environment

Obstacle information is processed through point cloud and convex hull algorithms, which solves the problem of insufficient accuracy of obstacle parameterization in complex environments in the existing technology, achieves accurate geometric parameterization of obstacles in structured environments, and improves This improves the accuracy and computational efficiency of robot obstacle avoidance.

CN118534900APending Publication Date: 2024-08-23SOUTHWEST JIAOTONG UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410597378.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When using existing technologies to avoid obstacles in a structured environment, the obstacle parameterization method cannot accurately describe the complex and narrow environment, resulting in low computational efficiency and insufficient accuracy.

Method used

By obtaining obstacle information, point clouding and clustering are performed, and the convex hull algorithm is used to fit to obtain the pre-convexization result, and the filling rate is calculated. If the filling rate is greater than the threshold, it is determined to be a convex polygon; otherwise, based on skeleton features and line segment extraction, multiple convex polygons are regenerated to accurately describe the obstacle.

Benefits of technology

It improves the accuracy of obstacle parameterization when robots avoid obstacles in structured environments, can accurately represent the geometric parameters of obstacles in complex structured scenes, and enhances the effectiveness of navigation and obstacle avoidance algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534900A
    Figure CN118534900A
Patent Text Reader

Abstract

The invention relates to an obstacle parameterization method for robot obstacle avoidance in a structured environment. The method comprises the steps that firstly, obstacle information is acquired, and the obstacle information is subjected to point clouding and clustering to obtain a single obstacle point cloud cluster; then, fitting by adopting a convex hull algorithm based on the single obstacle point cloud cluster to obtain a pre-convexity result; then, calculating the filling rate of the pre-convexity result cluster by cluster; and finally, if the filling rate is greater than a preset threshold value, determining that the pre-convexity result is a convex polygon of the obstacle, and if the filling rate is not greater than the preset threshold value, extracting the pre-convexity result of the obstacle based on the skeleton features of the single obstacle after point cloud cluster imaging corresponding to the pre-convexity result and a line segment extraction result. A plurality of convex polygons describing the obstacle are regenerated. Accurate geometric parameterization representation of the obstacle in the complex structured scene is achieved, and the accuracy of obstacle parameterization when the robot avoids the obstacle in the structured environment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous perception technology for mobile robots, and in particular to an obstacle parameterization method for robot obstacle avoidance in a structured environment. Background Art

[0002] In recent years, autonomous mobile robots have become a clear trend in replacing high-intensity manual labor, especially in industrial environments. Given the strict safety requirements of structured industrial sites (such as indoor factories, etc.), mobile robots operating in them must be able to identify obstacles and perform obstacle avoidance operations in real time while moving. At present, mobile robots generally use laser radar to detect obstacles, which are usually described in the form of grid occupancy or point cloud. However, due to the large scale and complex environment of industrial sites, this description method leads to the occupation of a large amount of storage space and memory, and it is also difficult to be effectively compatible with new navigation and obstacle avoidance algorithms that combine methods such as control obstacle functions. To solve this problem, an ideal solution is to parameterize obstacles described by grid occupancy or point cloud to obtain their geometric features. Through parameterization, obstacles can be simplified into refined geometric mathematical models, which not only significantly reduces the demand for storage and memory resources, but also facilitates the development and application of new navigation and obstacle avoidance algorithms for mobile robots.

[0003] In the prior art, one way is to convert it into a minimum enclosing circle representation through a minimum circle covering algorithm, or to convert it into a rectangular axis-aligned bounding box (AABB) and an oriented bounding box (OBB) through the coordinate relationship of the obstacle point cloud. However, these parameterization methods have simple algorithms and can only represent obstacles as circles or rectangles. They cannot tightly wrap the obstacle grid occupancy or point cloud, and thus cannot accurately describe the obstacle geometric parameters. They are not suitable for complex and narrow environments. Another way is to use a convex hull or concave hull algorithm to directly represent the grid occupancy or point cloud of a clustered single obstacle as a convex polygon or concave polygon. However, concave hull generation algorithms are mostly heuristic, require priors, and have low computational efficiency. In addition, concave polygons are more complicated in determining intersections and calculating the minimum distance between two concave polygons, so they are rarely used in practice. In contrast, conversion to a convex hull can be effectively used for path planning and obstacle avoidance without significant computational efficiency issues, but the method of directly converting the grid occupancy or point cloud of a single obstacle obtained by clustering into a convex hull as a whole has shortcomings in accurately describing certain obstacles, such as Figure 1 As shown, continuous and angled walls, for example, will generate unusual convex polygons that are much larger than the area of ​​the obstacle.

[0004] Therefore, in the related technology, there is an urgent need for a method that can improve the accuracy of obstacle parameterization when a robot avoids obstacles in a structured environment. Summary of the invention

[0005] Based on this, it is necessary to provide an obstacle parameterization method for robot obstacle avoidance in a structured environment, which can improve the accuracy of obstacle parameterization when the robot avoids obstacles in a structured environment, in order to address the above technical problems.

[0006] In a first aspect, the present application provides an obstacle parameterization method for robot obstacle avoidance in a structured environment. The method comprises:

[0007] Obtain obstacle information, convert the obstacle information into point clouds and perform clustering to obtain a single obstacle point cloud cluster;

[0008] A convex hull algorithm is used to fit the single obstacle point cloud cluster to obtain a pre-convex result;

[0009] Calculating the filling rate of the pre-convexification result cluster by cluster;

[0010] If the filling rate is greater than a preset threshold, the pre-convexification result is determined to be a parameterized convex hull of the target obstacle. If the filling rate is not greater than the preset threshold, multiple convex polygons describing the obstacle are regenerated based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster imaged corresponding to the pre-convexification result.

[0011] Optionally, in an embodiment of the present application, obtaining obstacle information, converting the obstacle information into point clouds and clustering the obstacle information to obtain a single obstacle point cloud cluster includes:

[0012] If the obstacle information is grid occupancy, the grid occupancy is converted into an obstacle point cloud, and clustering is performed to obtain a single obstacle point cloud cluster.

[0013] Optionally, in one embodiment of the present application, obtaining obstacle information, converting the obstacle information into point clouds and clustering the obstacle information to obtain a single obstacle point cloud cluster further includes:

[0014] If the obstacle information is a point cloud, the point cloud is uniformly downsampled and clustered to obtain a single obstacle point cloud cluster.

[0015] Optionally, in one embodiment of the present application, the calculating the filling rate of the pre-convexification result cluster by cluster includes:

[0016]

[0017] Among them, ρ i is the filling rate, A i is the area of ​​the preconvex result of the i-th cluster, S i is the actual area or an approximation of the actual area of ​​the obstacle represented by the i-th cluster.

[0018] Optionally, in one embodiment of the present application, regenerating a plurality of convex polygons describing the obstacle based on the skeleton features and line segment extraction results of the imaged single obstacle point cloud cluster corresponding to the pre-convexification result comprises:

[0019] Based on the single obstacle point cloud cluster corresponding to the pre-convexification result, point-by-point image plane projection and skeletonization operations are performed to obtain a minimum structure representation point cloud map.

[0020] Optionally, in one embodiment of the present application, regenerating a plurality of convex polygons describing the obstacle based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster imaged corresponding to the pre-convexification result further includes:

[0021] Based on the minimum structure representation point cloud image, line segment extraction and line segment expansion are performed to determine an expansion rectangle, and the expansion rectangles that are nearly parallel and have overlapping areas are merged and re-convexed to determine multiple convex polygons of the obstacle.

[0022] Optionally, in one embodiment of the present application, the method further includes:

[0023] A convex polygon geometric description is generated based on the convex polygon.

[0024] In a second aspect, the present application also provides an obstacle parameterization device for robot obstacle avoidance in a structured environment. The device comprises:

[0025] An environmental obstacle information clustering module is used to obtain obstacle information, convert the obstacle information into point clouds and perform clustering to obtain a single obstacle point cloud cluster;

[0026] A pre-convexification module, used for obtaining a pre-convexification result by fitting the single obstacle point cloud cluster using a convex hull algorithm;

[0027] A filling rate calculation module, used for calculating the filling rate of the pre-convexification result cluster by cluster;

[0028] The adaptive obstacle convex polygonization module is used to determine that the pre-convexification result is a convex polygon of the obstacle if the filling rate is greater than a preset threshold value, and if the filling rate is not greater than the preset threshold value, regenerate multiple convex polygons describing the obstacle based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster imaged corresponding to the pre-convexification result.

[0029] In a third aspect, the present application further provides a robot controller device, wherein the robot controller device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the method described in each of the above embodiments.

[0030] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in each of the above embodiments are implemented.

[0031] The above-mentioned obstacle parameterization method for robot obstacle avoidance in a structured environment first obtains obstacle information, converts the obstacle information into point clouds and clusters them to obtain a single obstacle point cloud cluster; then, a convex hull algorithm is used to fit the single obstacle point cloud cluster to obtain a pre-convexification result; then, the filling rate of the pre-convexification result is calculated cluster by cluster; finally, if the filling rate is greater than a preset threshold, the pre-convexification result is determined to be a convex polygon of the obstacle; if the filling rate is not greater than the preset threshold, based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster corresponding to the pre-convexification result after imaging, multiple convex polygons describing the obstacle are regenerated. That is to say, in complex structured scenes, when performing the robot obstacle avoidance planning algorithm and identifying and parameterizing obstacles, the occupancy grid or point cloud containing single or multiple obstacles can be directly input to automatically identify the obstacle features. For convex obstacles, they are directly converted into convex polygons as a whole, and for continuous and angled obstacles, they are automatically split into multiple angled convex polygons, thereby achieving accurate geometric parameterized representation of obstacles in complex structured scenes and improving the accuracy of obstacle parameterization when the robot avoids obstacles in structured environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of an environment grid occupancy map with continuous and angled obstacles in one embodiment;

[0033] Figure 2 is a flow chart of an obstacle parameterization method for robot obstacle avoidance in a structured environment in one embodiment;

[0034] Figure 3 A schematic diagram of re-convex hulling of a redundant expanded rectangle in one embodiment;

[0035] Figure 4 A schematic diagram of accurate geometric parameterization of obstacles in a structured environment in one embodiment;

[0036] Figure 5 is a flowchart of specific steps of an obstacle parameterization method for robot obstacle avoidance in a structured environment in one embodiment;

[0037] Figure 6 It is a structural block diagram of an obstacle parameterization device for robot obstacle avoidance in a structured environment in one embodiment. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0039] In one embodiment, Figure 2 As shown, an obstacle parameterization method for robot obstacle avoidance in a structured environment is provided, comprising the following steps:

[0040] S201: Obtain obstacle information, convert the obstacle information into point clouds and perform clustering to obtain a single obstacle point cloud cluster.

[0041] In an embodiment of the present application, first, obstacle information is obtained, and the obstacle information refers to an obstacle grid occupancy map. The obstacle grid occupancy map is converted into a uniform point cloud according to information such as a grid origin and a grid resolution, and the DBSCAN point cloud clustering algorithm is used to segment the point cloud containing multiple obstacles to form a single obstacle point cloud cluster, that is, a point cloud cluster representing each obstacle.

[0042] In one embodiment of the present application, obtaining obstacle information, converting the obstacle information into point clouds and clustering the point clouds to obtain a single obstacle point cloud cluster includes:

[0043] If the obstacle information is grid occupancy, the grid occupancy is converted into an obstacle point cloud, and clustering is performed to obtain a single obstacle point cloud cluster.

[0044] In one embodiment of the present application, when the acquired obstacle information is grid occupancy, the grid occupancy is converted into an obstacle point cloud, that is, a uniform point cloud, according to information such as the grid origin and the grid resolution, and a point cloud clustering method is used to segment the point cloud containing single or multiple obstacles to form a single obstacle point cloud cluster, that is, a point cloud cluster representing each obstacle.

[0045] In this embodiment, by converting the obstacle information of the grid occupancy type into grid point cloud and clustering the point cloud, an accurate single obstacle point cloud cluster can be obtained.

[0046] In one embodiment of the present application, obtaining obstacle information, converting the obstacle information into point clouds and clustering the point clouds to obtain a single obstacle point cloud cluster further includes:

[0047] If the obstacle information is a point cloud, the point cloud is uniformly downsampled and clustered to obtain a single obstacle point cloud cluster.

[0048] In one embodiment of the present application, when the obstacle information obtained is a point cloud, the point cloud is uniformly downsampled so that the spacing between each point in the point cloud is uniform, and a point cloud clustering method is used to segment the point cloud containing single or multiple obstacles to form a single obstacle point cloud cluster, that is, a point cloud cluster representing each obstacle.

[0049] In this embodiment, an accurate single obstacle point cloud cluster can be obtained by uniformly down-sampling obstacle information input as a point cloud type and clustering the point cloud.

[0050] S203: A convex hull algorithm is used to fit the single obstacle point cloud cluster to obtain a pre-convexification result.

[0051] In the embodiment of the present application, after obtaining a single obstacle point cloud cluster, for each single obstacle point cloud cluster, a convex polygon is directly fitted using a convex hull algorithm to include all points in the cluster, which is called a pre-convex hull, thereby obtaining a pre-convexed result for all single obstacle point cloud clusters. Optionally, the convex hull algorithm is a Jarvis algorithm.

[0052] S205: Calculate the filling rate of the pre-convexification result cluster by cluster.

[0053] In an embodiment of the present application, after obtaining the pre-convexification results for all individual obstacle point cloud clusters, the effect of the pre-convexification results needs to be verified, and the verification can be performed by calculating the filling rate of the pre-convexification results, where the filling rate refers to the percentage of the area of ​​the pre-convexification results to the actual area of ​​the obstacle. Specifically, in an embodiment of the present application, the calculation of the filling rate of the pre-convexification results cluster by cluster includes:

[0054]

[0055] Among them, ρ i is the filling rate, A i is the area of ​​the preconvex result of the i-th cluster, S i is the actual area or an approximation of the actual area of ​​the obstacle represented by the i-th cluster.

[0056] In one embodiment of the present application, the actual area of ​​the obstacle can be approximated by further calculating the input grid occupation map resolution, and the calculation formula is S i =N i ×R, where N i is the number of points in the i-th point cloud cluster, and R is the map resolution occupied by the input grid, that is, the length and width of each grid.

[0057] S207: If the filling rate is greater than a preset threshold, the pre-convexification result is determined to be a convex polygon of the obstacle. If the filling rate is not greater than the preset threshold, multiple convex polygons describing the obstacle are regenerated based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster imaged corresponding to the pre-convexification result.

[0058] In the embodiment of the present application, the filling rate ρ of each pre-convexification result is calculated. i Afterwards, it is compared with the preset threshold τ. i >τ, that is, the filling rate is greater than the preset threshold, which means that the pre-convexification result is proportional, and the obstacle represented by it can be directly regarded as a convex polygon. Such pre-convexification results can be directly output as the result, that is, the pre-convexification result is determined to be a convex polygon of the obstacle. i ≤τ, that is, the filling rate is not greater than the preset threshold, then it means that the single obstacle point cloud cluster is an abnormal cluster, and the corresponding obstacle may be a continuous and angular type, which requires further processing. Based on the single obstacle point cloud cluster, point cloud imaging, point cloud skeletonization, line segment extraction, line segment expansion into multiple angled rectangles, redundant expansion rectangles are merged, and re-convexification operations are performed to split the single obstacle into multiple convex polygons. Specifically, in one embodiment of the present application, based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster after imaging corresponding to the pre-convexification result, regenerating multiple convex polygons describing the obstacle includes:

[0059] Based on the single obstacle point cloud cluster corresponding to the pre-convexification result, point-by-point image plane projection and skeletonization operations are performed to obtain a minimum structure representation point cloud map.

[0060] In one embodiment of the present application, for the verified abnormal cluster, each point therein is projected onto the image plane, thereby converting the point cloud into a grayscale image, called a point cloud map, and a skeletonization operation is performed on the point cloud map. The skeletonization operation reduces the point cloud map to the minimum structural representation, that is, the minimum structural representation point cloud map.

[0061] In this embodiment, by performing point-by-point image plane projection and skeletonization operations based on a single obstacle point cloud cluster corresponding to the pre-convexification result, a minimum structure representation point cloud image is obtained, which can eliminate redundant pixels.

[0062] In one embodiment of the present application, regenerating a plurality of convex polygons describing the obstacle based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster imaged corresponding to the pre-convexification result further includes:

[0063] Based on the minimum structure representation point cloud image, line segment extraction and line segment expansion are performed to determine an expansion rectangle, and the expansion rectangles that are nearly parallel and have overlapping areas are merged and re-convexed to determine multiple convex polygons of the obstacle.

[0064] In one embodiment of the present application, the probabilistic Hough line transform (PHT) is applied to the skeletonized point cloud image, the skeletons of continuous and angular obstacles are extracted as line segments in multiple images, and the endpoints of the line segments are transformed from the image plane coordinate system back to the point cloud reference coordinate system to obtain a number of line segments in the point cloud reference coordinate system. Figure 3 As shown, for each line segment, the line segment itself is used as the center line, and a rectangle is formed by expanding in the direction perpendicular to the line segment, so that the expanded rectangle formed by the expansion can have the smallest area while completely containing all points in the current cluster that are distributed within the length of the center line. It should be noted that when the line segment is expanded, many nearly parallel and overlapping expanded rectangles may be generated. Therefore, for the set of expanded rectangles generated by each abnormal cluster, the expanded rectangles with central angles within the threshold and overlaps will be merged. While merging the expanded rectangles, the convex hull algorithm is used to re-fit a convex polygon. Specifically, all endpoints of all the expanded rectangles to be merged are used to form a new point set, and the convex hull algorithm is used on the new point set to fit a convex polygon to replace multiple nearly parallel and overlapping redundant expanded rectangles, as shown in FIG. Figure 4 As shown, an accurate parameterized representation of obstacle geometry is finally formed.

[0065] In this embodiment, by performing line segment extraction and line segment expansion based on the minimum structure representation point cloud image, an expansion rectangle is determined, and the expansion rectangles that are nearly parallel and have overlapping areas are merged and re-convexed to determine multiple convex polygons of the obstacle. This can convert an overall wider and less accurate convex hull into multiple angled convex polygon representations.

[0066] In one embodiment of the present application, the method further includes:

[0067] A convex polygon geometric description is generated based on the convex polygon.

[0068] In one embodiment of the present application, for all convex polygons representing obstacles, based on their edges and all endpoints of the edges, for the kth obstacle, they are converted into the following geometric description form:

[0069] O k ={y k |A k y k ≤ b k}

[0070] in, and Define the obstacle convex polygon, n k is the number of sides of the kth obstacle convex polygon.

[0071] In this embodiment, a convex polygonal geometric description is generated based on the parameterized convex hull of the target obstacle, which can be used in a subsequent robot navigation and obstacle avoidance algorithm.

[0072] In the above-mentioned obstacle parameterization method for robot obstacle avoidance in a structured environment, first, obstacle information is obtained, the obstacle information is point clouded and clustered to obtain a single obstacle point cloud cluster; then, a convex hull algorithm is used to fit the single obstacle point cloud cluster to obtain a pre-convexed result; then, the filling rate of the pre-convexed result is calculated cluster by cluster; finally, if the filling rate is greater than a preset threshold, the pre-convexed result is determined to be a convex polygon of the obstacle; if the filling rate is not greater than the preset threshold, based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster corresponding to the pre-convexed result after imaging, multiple convex polygons describing the obstacle are regenerated. That is to say, in complex structured scenes, when performing the robot obstacle avoidance planning algorithm and identifying and parameterizing obstacles, the occupancy grid or point cloud containing single or multiple obstacles can be directly input to automatically identify the obstacle features. For convex obstacles, they are directly converted into convex polygons as a whole, and for continuous and angled obstacles, they are automatically split into multiple angled convex polygons, thereby achieving accurate geometric parameterized representation of obstacles in complex structured scenes and improving the accuracy of obstacle parameterization when the robot avoids obstacles in structured environments.

[0073] The following is a specific example to illustrate the specific implementation steps of the obstacle parameterization method for robot obstacle avoidance in a structured environment of the present application. Figure 5 As shown, first, S301, obtain obstacle information, convert the obstacle information into point cloud and perform clustering to obtain a single obstacle point cloud cluster. Specifically, S303, if the obstacle information is grid occupancy, convert the grid occupancy into obstacle point cloud, perform clustering to obtain a single obstacle point cloud cluster. S305, if the obstacle information is point cloud, uniformly downsample the point cloud, perform clustering to obtain a single obstacle point cloud cluster.

[0074] Then, S307, a convex hull algorithm is used to fit the single obstacle point cloud cluster to obtain a pre-convex result. Then, S309, the filling rate of the pre-convex result is calculated cluster by cluster. Specifically, S311, the filling rate of the pre-convex result is calculated cluster by cluster, including:

[0075]

[0076] Among them, ρ i is the filling rate, A iis the area of ​​the preconvex result of the i-th cluster, S i is the actual area or an approximation of the actual area of ​​the obstacle represented by the i-th cluster.

[0077] Afterwards, S313, if the filling rate is greater than a preset threshold, the pre-convexification result is determined to be a convex polygon of the obstacle. If the filling rate is not greater than the preset threshold, based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster corresponding to the pre-convexification result after imaging, multiple convex polygons describing the obstacle are regenerated. Specifically, S315, point-by-point image plane projection and skeletonization operations are performed based on the single obstacle point cloud cluster corresponding to the pre-convexification result to obtain a minimum structure representation point cloud map. S317, line segment extraction and line segment expansion are performed based on the minimum structure representation point cloud map to determine the expansion rectangle, and the expansion rectangles that are nearly parallel and have overlapping areas are merged and re-convexified to determine multiple convex polygons of the obstacle. S319, a convex polygon geometric description is generated based on the convex polygon.

[0078] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0079] Based on the same inventive concept, the embodiment of the present application also provides an obstacle parameterization device for robot obstacle avoidance in a structured environment for implementing the above-mentioned obstacle parameterization method for robot obstacle avoidance in a structured environment. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more obstacle parameterization devices for robot obstacle avoidance in a structured environment provided below can refer to the limitations of the obstacle parameterization method for robot obstacle avoidance in a structured environment above, and will not be repeated here.

[0080] In one embodiment, Figure 6 As shown, an obstacle parameterization device 600 for robot obstacle avoidance in a structured environment is provided, comprising: an environmental obstacle information clustering module 601, a pre-convexification module 603, a filling rate calculation module 605 and an adaptive obstacle convex polygonization module 607, wherein:

[0081] The environmental obstacle information clustering module 601 is used to obtain obstacle information, convert the obstacle information into point clouds and perform clustering to obtain a single obstacle point cloud cluster.

[0082] The pre-convexification module 603 is used to obtain a pre-convexification result by fitting the single obstacle point cloud cluster using a convex hull algorithm.

[0083] The filling rate calculation module 605 is used to calculate the filling rate of the pre-convexification result cluster by cluster.

[0084] The adaptive obstacle convex polygonization module 607 is used to determine that the pre-convexification result is a convex polygon of the obstacle if the filling rate is greater than a preset threshold value, and if the filling rate is not greater than the preset threshold value, regenerate multiple convex polygons describing the obstacle based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster imaged corresponding to the pre-convexification result.

[0085] In one embodiment of the present application, the environmental obstacle information clustering module is further used to:

[0086] If the obstacle information is grid occupancy, the grid occupancy is converted into an obstacle point cloud, and clustering is performed to obtain a single obstacle point cloud cluster.

[0087] In one embodiment of the present application, the environmental obstacle information clustering module is further used to:

[0088] If the obstacle information is a point cloud, the point cloud is uniformly downsampled and clustered to obtain a single obstacle point cloud cluster.

[0089] In one embodiment of the present application, the calculating the filling rate of the pre-convexification result cluster by cluster includes:

[0090]

[0091] Among them, ρ i is the filling rate, A i is the area of ​​the preconvex result of the i-th cluster, S i is the actual area or an approximation of the actual area of ​​the obstacle represented by the i-th cluster.

[0092] In one embodiment of the present application, the adaptive obstacle convex polygonization module is further used for:

[0093] Based on the single obstacle point cloud cluster corresponding to the pre-convexification result, point-by-point image plane projection and skeletonization operations are performed to obtain a minimum structure representation point cloud map.

[0094] In one embodiment of the present application, the adaptive obstacle convex polygonization module is further used for:

[0095] Based on the minimum structure representation point cloud image, line segment extraction and line segment expansion are performed to determine an expansion rectangle, and the expansion rectangles that are nearly parallel and have overlapping areas are merged and re-convexed to determine multiple convex polygons of the obstacle.

[0096] The obstacle parameterization device for robot obstacle avoidance in a structured environment also includes a geometric description module. In one embodiment of the present application, the geometric description module is used to:

[0097] A convex polygon geometric description is generated based on the convex polygon.

[0098] Each module in the obstacle parameterization device for robot obstacle avoidance in the structured environment can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0099] In one embodiment, a robot controller device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0100] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0101] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0102] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0103] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An obstacle parameterization method for robot obstacle avoidance in a structured environment, characterized in that: The method comprises: Obtain obstacle information, convert the obstacle information into point clouds and perform clustering to obtain a single obstacle point cloud cluster; A convex hull algorithm is used to fit the single obstacle point cloud cluster to obtain a pre-convex result; Calculating the filling rate of the pre-convexification result cluster by cluster; If the filling rate is greater than a preset threshold, the pre-convexification result is determined to be a convex polygon of the obstacle. If the filling rate is not greater than the preset threshold, multiple convex polygons describing the obstacle are regenerated based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster imaged corresponding to the pre-convexification result.

2. The obstacle parameterization method for robot obstacle avoidance in a structured environment according to claim 1, characterized in that: The obtaining of obstacle information, converting the obstacle information into point clouds and clustering the obstacle information to obtain a single obstacle point cloud cluster includes: If the obstacle information is grid occupancy, the grid occupancy is converted into an obstacle point cloud, and clustering is performed to obtain a single obstacle point cloud cluster.

3. The obstacle parameterization method for robot obstacle avoidance in a structured environment according to claim 1, characterized in that: The step of obtaining obstacle information, converting the obstacle information into point clouds and performing clustering to obtain a single obstacle point cloud cluster further includes: If the obstacle information is a point cloud, the point cloud is uniformly downsampled and clustered to obtain a single obstacle point cloud cluster.

4. The obstacle parameterization method for robot obstacle avoidance in a structured environment according to claim 1, characterized in that: The step of calculating the filling rate of the pre-convexification result cluster by cluster includes: Among them, ρ i is the filling rate, A i is the area of ​​the preconvex result of the i-th cluster, S i is the actual area or an approximation of the actual area of ​​the obstacle represented by the i-th cluster.

5. The obstacle parameterization method for robot obstacle avoidance in a structured environment according to claim 1, characterized in that: The regenerating a plurality of convex polygons describing the obstacle based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster imaged corresponding to the pre-convexification result comprises: Based on the single obstacle point cloud cluster corresponding to the pre-convexification result, point-by-point image plane projection and skeletonization operations are performed to obtain a minimum structure representation point cloud map.

6. The obstacle parameterization method for robot obstacle avoidance in a structured environment according to claim 5, characterized in that: The regenerating a plurality of convex polygons describing the obstacle based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster imaged corresponding to the pre-convexification result further comprises: Based on the minimum structure representation point cloud image, line segment extraction and line segment expansion are performed to determine an expansion rectangle, and the expansion rectangles that are nearly parallel and have overlapping areas are merged and re-convexed to determine multiple convex polygons of the obstacle.

7. The obstacle parameterization method for robot obstacle avoidance in a structured environment according to claim 1, characterized in that: The method further comprises: A convex polygon geometric description is generated based on the convex polygon.

8. An obstacle parameterization device for robot obstacle avoidance in a structured environment, characterized in that: The device comprises: An environmental obstacle information clustering module is used to obtain obstacle information, convert the obstacle information into point clouds and perform clustering to obtain a single obstacle point cloud cluster; A pre-convexification module, used for obtaining a pre-convexification result by fitting the single obstacle point cloud cluster using a convex hull algorithm; A filling rate calculation module, used for calculating the filling rate of the pre-convexification result cluster by cluster; The adaptive obstacle convex polygonization module is used to determine that the pre-convexification result is a convex polygon of the obstacle if the filling rate is greater than a preset threshold value, and if the filling rate is not greater than the preset threshold value, regenerate multiple convex polygons describing the obstacle based on the skeleton features and line segment extraction results of the single obstacle point cloud cluster imaged corresponding to the pre-convexification result.

9. A robot controller device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Distance detection method and device for sweeping robot

    CN121498690A