Full coverage path planning method and system based on image processing
Through a full-coverage path planning method based on image processing, using lidar and image preprocessing technology, combined with A* and TEB algorithms, the problem of high computational complexity of path planning in complex environments in the existing technology is solved, achieving efficient and accurate Full coverage path planning and coverage quality improvement.
Patent Information
- Application Number
- CN202410267320.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-08
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-03-08
AI Technical Summary
The existing full-coverage path planning algorithm has high computational complexity in complex outdoor environments, resulting in insufficient real-time performance and accuracy, which affects the real-time response capability of the robot.
A full-coverage path planning method based on image processing is used to obtain the raster map through lidar, perform image preprocessing and segmentation, determine concave points and waypoints, and combine the A* algorithm for global path planning and the TEB algorithm for local path planning and avoidance. obstacles and calculate the coverage ratio in real time.
It achieves efficient and accurate full-coverage path planning in complex environments, improves the robot's real-time response capability and coverage quality, and can adapt to complex area shapes to ensure coverage and work efficiency.
Smart Images

Figure CN118034308B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robotics technology, and in particular to a full coverage path planning method and system based on image processing. Background Art
[0002] With the rapid development of technology, the application of robots is becoming more and more common. For operating robots in application scenarios such as cleaning and weeding, full coverage path planning is the core capability of the robot. The purpose of full coverage path planning technology is to calculate a collision-free and passable route that can cover all passable areas in a specified area. Full coverage path planning must meet two indicators: traversability and non-repetitiveness, which reflect the work quality and work efficiency of the robot respectively. In the prior art, full coverage path planning and full coverage algorithms are too complex, resulting in large amount of calculation, long time consumption, and insufficient efficiency, which may limit the real-time response capability of the robot. Existing full coverage algorithms perform poorly in complex outdoor environments, especially in the case of complex area shapes. Existing full coverage algorithms have problems with insufficient accuracy or high computational complexity when calculating coverage in real time, which may affect the real-time and accuracy of full coverage path planning. Summary of the invention
[0003] In view of some or all of the problems in the prior art, the present invention provides a full coverage path planning method based on image processing, which comprises the following steps:
[0004] Determine the target area, obtain the grid map of the target area, and store it in the database;
[0005] Extracting the grid map and performing image preprocessing to obtain a preprocessed image;
[0006] Extracting the preprocessed image to obtain extreme point coordinates;
[0007] Extracting the extreme point coordinates, and determining the concave point by a concave point determination rule;
[0008] Segmenting the preprocessed image into convex sub-images according to the concave points;
[0009] Extracting the convex sub-image, performing convex sub-image preprocessing, and obtaining a preprocessed convex sub-image;
[0010] Based on the preprocessed convex sub-image, waypoints are selected to form a sequence of reciprocating paths;
[0011] In a current coverage ratio calculation module, the current coverage ratio of the reciprocating path is calculated; and
[0012] In the path planning module, the A* algorithm is used for global path planning, and the TEB algorithm is used for local path planning and obstacle avoidance.
[0013] Further, the obtaining of the grid map of the target area includes:
[0014] Use laser radar to scan the target area and obtain the distance information of obstacles in the target area;
[0015] The distance information is processed using a gmap ing algorithm to construct a grid map of the target area.
[0016] Further, performing image preprocessing includes:
[0017] Converting the raster map into a grayscale image;
[0018] Binarizing the grayscale image to obtain an image of the passable area, and performing smoothing processing on the image of the passable area using a Gaussian method to obtain a smoothed image of the passable area;
[0019] The smoothed traversable area image is subjected to corrosion processing to obtain a preprocessed image.
[0020] Further, obtaining the extreme point coordinates includes:
[0021] Starting from the leftmost pixel of the preprocessed image, vertical lines are drawn one by one along the horizontal axis, and the number of intersections of each line with the contour of the preprocessed image is recorded. The number of intersections is used as a function of the horizontal axis coordinates, and a graph is drawn to obtain the coordinates of the extreme points of the function.
[0022] Further, the determining of the concave point by the concave point determination rule comprises:
[0023] The concave point is determined according to the formula, which is,
[0024]
[0025] Among them, xi represents the horizontal coordinate of the concave point in the preprocessed image, yi represents the vertical coordinate of the concave point in the preprocessed image, f(yi) represents the contour function, and ω represents the specified range.
[0026] Further, performing convex sub-image preprocessing includes:
[0027] An erosion process is performed on the convex sub-image to obtain a pre-processed convex sub-image.
[0028] Further, the sequence of selecting waypoints to form a reciprocating path includes:
[0029] Based on the inner contour of the preprocessed convex sub-image, waypoints are selected and the waypoints are repeatedly arranged from left to right and from top to bottom to form a sequence of reciprocating paths.
[0030] Further, the calculating the current coverage ratio of the reciprocating path includes:
[0031] Calculate the ratio between the number of covered pixels N′=∑(pi*rw) and the number of all coverable pixels N of the map itself to obtain the current coverage ratio Rc. The calculation formula is:
[0032]
[0033] Among them, pi represents the center of mass position of the robot in the image frame, and rw represents the working radius of the robot.
[0034] Further, the using of the A* algorithm for global path planning and the using of the TEB algorithm for local path planning and obstacle avoidance includes:
[0035] Use the A* algorithm for global path planning to obtain the waypoints that the robot needs to reach in sequence;
[0036] The TEB algorithm is used for local path planning and obstacle avoidance to ensure that the robot can safely pass through complex environments and reach the next waypoint.
[0037] The present invention also provides a full coverage path planning system based on image processing, which includes the following modules:
[0038] A map collection module is configured to obtain a grid map of a target area and store it in a database;
[0039] An image preprocessing module is configured to extract the grid map, perform image preprocessing therein, and obtain a preprocessed image;
[0040] An extreme value search module is configured to extract the preprocessed image and obtain the coordinates of extreme value points therein;
[0041] A concave point determination module is configured to extract the extreme point coordinates and determine the concave point according to a concave point determination rule;
[0042] an image segmentation module, configured to segment the preprocessed image into convex sub-images according to the concave points;
[0043] a convex sub-image preprocessing module, configured to extract the convex sub-image, perform convex sub-image preprocessing therein, and obtain a preprocessed convex sub-image;
[0044] A path selection module is configured to select waypoints in the preprocessed convex sub-image to form a sequence of reciprocating paths;
[0045] a current coverage ratio calculation module, configured to calculate the current coverage ratio of the reciprocating path; and
[0046] The path planning module is configured to use the A* algorithm for global path planning and the TEB algorithm for local path planning and obstacle avoidance.
[0047] Compared with the prior art, the present invention has the following advantages:
[0048] 1. The present invention adopts a reciprocating full coverage method, which determines the waypoint position by performing corrosion operation and contour extraction on the preprocessed image, and adopts the A* algorithm for global path planning and the TEB algorithm for local path planning and obstacle avoidance, so that the robot can reach all waypoints and perform the required operations. This full coverage path planning method can effectively ensure that the robot covers the entire working area.
[0049] 2. The present invention proposes a method for calculating the current coverage ratio that depends on image pixels. By calculating the ratio between the number of covered pixels and the number of all coverable pixels in the map itself, the status of full coverage work is checked in real time to determine the current coverage ratio. This helps to promptly discover problems with the path planning algorithm results and make necessary modifications.
[0050] 3. The walking distance interval and working radius of the robot in the present invention can be appropriately adjusted according to the actual application, and a suitable combination can help achieve a satisfactory coverage of the robot's work. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] To further illustrate the above and other advantages and features of various embodiments of the present invention, a more specific description of various embodiments of the present invention will be presented with reference to the accompanying drawings. It will be understood that these drawings only depict typical embodiments of the present invention and are therefore not to be considered as limiting the scope thereof. In the accompanying drawings, for clarity, identical or corresponding parts will be represented by identical or similar reference numerals.
[0052] Figure 1 A schematic flow chart of a full coverage path planning method based on image processing according to an embodiment of the present invention is shown;
[0053] Figure 2 A schematic diagram showing the operation flow of a full coverage path planning method based on image processing according to an embodiment of the present invention is shown;
[0054] Figure 3 A schematic diagram showing the process of an image segmentation algorithm according to an embodiment of the present invention is shown;
[0055] Figure 4 A schematic diagram showing the relationship between the x-axis and the number of longitudinal intersections according to an embodiment of the present invention is shown;
[0056] Figure 5A schematic diagram of a convex sub-image full coverage algorithm according to an embodiment of the present invention is shown;
[0057] Figure 6 A schematic diagram showing a reciprocating full coverage motion according to an embodiment of the present invention; and
[0058] Figure 7 A schematic diagram of a full coverage path planning system based on image processing according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0059] In the following description, the present invention is described with reference to various embodiments. However, those skilled in the art will recognize that various embodiments may be implemented without one or more specific details or with other replacement and / or additional methods or components. In other cases, well-known structures or operations are not shown or described in detail to avoid obscuring the inventive point of the present invention. Similarly, for the purpose of explanation, specific numbers and configurations are set forth to provide a comprehensive understanding of embodiments of the present invention. However, the present invention is not limited to these specific details.
[0060] In this specification, reference to "one embodiment" or "the embodiment" means that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. The phrase "in one embodiment" appearing in various places in this specification does not necessarily all refer to the same embodiment.
[0061] It should be noted that the embodiments of the present invention describe the method steps in a specific order, but this is only for the purpose of illustrating the specific embodiment, rather than limiting the order of the steps. On the contrary, in different embodiments of the present invention, the order of the steps can be adjusted according to actual needs.
[0062] In the present invention, each module of the system according to the present invention can be implemented using software, hardware, firmware or a combination thereof. When the module is implemented using software, the function of the module can be implemented by a computer program flow, for example, the module can be implemented by a code segment (such as a code segment of a language such as C, C++) stored in a storage device (such as a hard disk, a memory, etc.), wherein the corresponding function of the module can be implemented when the code segment is executed by a processor. When the module is implemented using hardware, the function of the module can be implemented by setting a corresponding hardware structure, for example, the function of the module can be implemented by hardware programming a programmable device such as a field programmable gate array (FPGA), or the function of the module can be implemented by designing an application-specific integrated circuit (ASIC) including electronic devices such as a plurality of transistors, resistors and capacitors. When the module is implemented using firmware, the function of the module can be written into a read-only memory such as an EPROM or EEPROM of the device in the form of a program code, and the corresponding function of the module can be implemented when the program code is executed by a processor. In addition, certain functions of the module may need to be implemented by separate hardware or by collaboration with the hardware, for example, the detection function is implemented by corresponding sensors (such as proximity sensors, acceleration sensors, gyroscopes, etc.), the signal transmission function is implemented by corresponding communication devices (such as Bluetooth devices, infrared communication devices, baseband communication devices, Wi-Fi communication devices, etc.), the output function is implemented by corresponding output devices (such as displays, speakers, etc.), and so on.
[0063] In the prior art, full coverage path planning and full coverage algorithms are too complex, resulting in large amount of calculation, long time consumption, low efficiency, and poor performance in complex outdoor environments, which may limit the real-time response capability of the robot. The present invention provides a full coverage path planning method based on image processing, and proposes an image-based map segmentation method, which regards the map as an image and divides the concave map into convex sub-images. For each convex sub-image, a batch of waypoints are generated for the robot controller. These convex sub-images are connected to achieve full coverage of the entire area. Based on global path planning, local path following and real-time obstacle avoidance methods, full coverage operation is achieved. In addition, the present invention also proposes a coverage ratio calculation method, which can display the coverage rate in real time in a visual interface.
[0064] The technical solutions in the embodiments of the present invention are described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0065] Figure 1 A schematic flow chart of a full coverage path planning method based on image processing according to an embodiment of the present invention is shown. Figure 2 FIG. 1 is a schematic diagram showing the operation flow of a full coverage path planning method based on image processing according to an embodiment of the present invention. Figure 1As shown, the full coverage path planning method based on image processing includes the following steps:
[0066] First, determine the target area, obtain the grid map of the target area, and store it in the database. This step is based on the combination of LiDAR and gmapping algorithm. Figure 2 As shown, the autonomous vehicle (simulated or real robot) uses a laser radar to scan the target area, obtains the distance information of obstacles in the target area by emitting a laser beam and measuring its reflection time, and transmits this information to the gmapping algorithm. The gmapping algorithm is a SLAM (Simultaneous Localization and Mapping) algorithm based on laser radar data, which is used to construct a grid map of the environment in the target area and realize the positioning and navigation of the autonomous vehicle. The gmapping algorithm processes laser radar data and uses technologies such as particle filtering to realize vehicle positioning and map construction. By continuously acquiring and processing laser radar data, the gmapping algorithm can update the grid map in real time and mark obstacles and passable areas in it, thereby providing accurate target area environment information for subsequent path planning and navigation.
[0067] Next, the grid map is extracted and image preprocessing is performed to obtain a preprocessed image. Figure 2 Convert raster maps into preprocessed images. Figure 3 FIG. 1 is a schematic diagram showing the process of an image segmentation algorithm according to an embodiment of the present invention. Figure 3 ac shown:
[0068] First, if Figure 3 As shown in a, the raster map is converted into a grayscale image. Grayscale images are more conducive to computer processing for subsequent image processing and path planning.
[0069] Secondly, if Figure 3 As shown in FIG. 2 , the binarization technique is applied to the grayscale image, and the known and passable areas in the image are defined as white, and the unknown areas and obstacles are defined as black, so as to obtain an image of the passable area; then the Gaussian method is used to perform smoothing on the image of the passable area to obtain a smoothed image of the passable area. Since there may be many noise points at the edge of the map established by the gmap ing algorithm, the image is processed by Gaussian smoothing to more accurately determine the boundaries of the known and passable areas.
[0070] Finally, if Figure 3As shown in Fig. c, the smoothed passable area image is eroded to shrink the outline of the passable area inward by several pixels to obtain a pre-processed image. The purpose is to allow the subsequently selected waypoints to slightly deviate from the actual edge of the map to avoid collision with the boundary.
[0071] Next, extract the preprocessed image to obtain the extreme point coordinates. This step includes: starting from the leftmost pixel of the preprocessed image, draw vertical lines one by one along the horizontal axis, and record the number of intersections between each line and the contour of the preprocessed image, and use the number of intersections as a function of the horizontal axis coordinates to draw a graph to obtain the extreme point coordinates of the function. The graph is as shown in FIG. Figure 4 As shown, the x-axis represents the coordinates of the pixel points in the preprocessed image, and the y-axis represents the vertical line of the current position and the Figure 3 The number of intersection points of the white area contour in c. Find the extreme points of this function and correspond them to the pixel points of the preprocessed image to determine their coordinates, such as Figure 3 As shown in d.
[0072] Next, the extreme point coordinates are extracted and the concave points are determined by the concave point determination rule. To determine the extreme point coordinates, it is necessary to further determine whether each extreme point is a concave point. Once the extreme point is determined to be a concave point, the coordinates of the concave point are recorded, such as Figure 3 The determination of the concave point by the concave point determination rule comprises:
[0073] The concave point is determined according to the following formula:
[0074]
[0075] Among them, x i represents the horizontal coordinate of the concave point in the preprocessed image, y i represents the vertical coordinate of the concave point in the preprocessed image, f(y i ) represents the profile function, and ω represents the specified range.
[0076] It should be noted that f(y i ) is not an exact function, but a collection of contour points obtained through contour search processing. There is no clear range for the specified range ω. If the value of ω is smaller, the selected concave points will contain many noise points selected due to rough boundaries; if the value of ω is too large, the concave points that are expected to be selected will not be selected. In general use, for maps with a resolution of 0.01 (one square centimeter in the real environment represents one pixel in the picture), the value of ω is selected to be within 8-20.
[0077] Next, the preprocessed image is segmented into convex sub-images according to the concave points. Figure 2The segmentation step in . Draw horizontal lines along the y-axis from the concave point to horizontally segment the preprocessed image into convex sub-images, such as Figure 3 f.
[0078] Next, the convex sub-image is extracted and preprocessed to obtain a preprocessed convex sub-image. In order to ensure that the waypoints selected in the subsequent steps are closer to the inside of the convex sub-image and avoid collision with obstacles, the convex sub-image is eroded to obtain a preprocessed convex sub-image, as shown in FIG. Figure 5 a and 5b. The corrosion process helps to ensure that the robot can cover the entire area more effectively and reduce omissions when performing full coverage path planning.
[0079] Next, based on the preprocessed convex sub-image, waypoints are selected to form a sequence of reciprocating paths. Based on the internal contour of the preprocessed convex sub-image, the position of the waypoint is obtained, such as Figure 5 As shown in c.
[0080] Starting from left to right, select points on the contour as target points at a certain pixel interval. In some cases, there may be multiple selectable points. Based on the average value principle, for example Figure 5 The ordinates of the intersections of the eroded image contour and the vertical line parallel to the y-axis in b are averaged, the horizontal coordinate of the vertical line is taken as the horizontal coordinate of the target point, and the average value is the vertical coordinate of the target point.
[0081] After the waypoints are selected, they are repeatedly arranged from left to right and from top to bottom to form a sequence of reciprocating paths, such as Figure 5 As shown in d.
[0082] There are two important parameters when determining the waypoints in a convex sub-image, such as Figure 6 As shown. Among them, the interval d determines the sparseness of the path. The larger the interval, the sparser the generated path. The working radius r depends on the operating mechanism of the robot. The smaller it is, the sparser the path. It is very important to determine the working radius of the robot. For example, for the mining radius of a mining robot or the scanning radius of a search robot, the choice of working radius directly affects the coverage efficiency of the robot and the accuracy of path planning. Using a suitable combination of interval and working radius helps to achieve a satisfactory coverage ratio. The satisfactory coverage ratio here depends on the actual needs. It is generally hoped that the final coverage ratio can reach more than 95%. By adjusting the interval and working radius of the robot's reciprocating motion, a coverage ratio of 100% can be achieved in actual use.
[0083] Next, in the current coverage ratio calculation module, the current coverage ratio of the reciprocating path is calculated. Considering the practical application of the robot's full coverage path planning operation, it is necessary to calculate the coverage ratio in real time to check the status of the full coverage work. The present invention proposes a real-time coverage ratio calculation method that depends on image pixels. First, the current position of the robot is obtained from the robot positioning estimation result. Then it is converted into the image frame to obtain the position p i . Calculate the number of covered pixels N′=∑(p i *r w ) and the number of all coverable pixels N in the map itself to determine the current coverage ratio R c .
[0084]
[0085] Among them, p i represents the center of mass position of the robot in the image frame, r w Indicates the working radius of the robot. c It is an important criterion for evaluating the results of the full coverage path planning algorithm. If the coverage ratio is lower than expected, appropriate modifications may be required, such as reducing the interval or increasing the working radius. This real-time calculation and evaluation process helps ensure that the robot can effectively cover the entire area and adjust the path planning parameters in time to improve coverage efficiency.
[0086] Finally, in the path planning module, the A* algorithm is used for global path planning, and the TEB algorithm is used for local path planning and obstacle avoidance. The A* algorithm is used for global path planning to obtain the waypoints that the robot needs to reach in sequence. The TEB algorithm is used for local path planning and obstacle avoidance to ensure that the robot can safely pass through complex environments and reach the next waypoint. At the same time, real-time calculation of the coverage ratio and display of the coverage area in the visual interface can help monitor the working status of the robot and make timely adjustments. In addition, recording the overall time spent after the operation can be used to judge work efficiency.
[0087] The A* algorithm is used for global path planning. It is a heuristic search algorithm that finds the best path by evaluating the cost function of each node. The TEB algorithm is based on the concept of time-elastic band. It considers the dynamic characteristics and motion constraints of the robot by extending the robot's motion trajectory in time. The algorithm can plan a safe and feasible path in the local environment, and can flexibly respond to the appearance of dynamic obstacles to ensure that the robot can safely reach the target point.
[0088] The present invention provides a full coverage path planning method based on image processing, and proposes an image-based map segmentation method, which regards the map as an image and divides the concave map into convex sub-images. For each convex sub-image, a batch of waypoints are generated for the robot controller. These convex sub-images are connected to achieve full coverage of the entire area. The A* algorithm is used for global path planning, and the TEB algorithm is used for local path planning and obstacle avoidance, so as to achieve full coverage operation. In addition, the present invention also proposes a current coverage ratio calculation method that depends on image pixels, which can display the coverage rate in real time in a visual interface. This helps to promptly discover problems with the results of the path planning algorithm and make necessary modifications. The distance interval and working radius of the robot's walking in the present invention can be appropriately adjusted according to the application in reality, and through a suitable combination, it helps to achieve a satisfactory result in the coverage rate of the robot's work.
[0089] The full coverage path planning method based on image processing provided by the present invention is most suitable for practical application scenarios that require robots to perform full coverage path planning and execution. A preferred example is to use a mining robot to perform mining operations in a mining environment. In this case, the robot needs to cover the entire mining area while avoiding collisions with obstacles to ensure efficient and safe completion of the mining task. Using the method provided by the present invention, any complex shape of the mining area, even the arc-shaped area edge, can be well handled.
[0090] The present invention also provides a full coverage path planning system based on image processing, Figure 7 FIG. 1 is a schematic diagram of a full coverage path planning system based on image processing according to an embodiment of the present invention. Figure 7 As shown, the system includes the following modules:
[0091] A map collection module is configured to obtain a grid map of a target area and store it in a database;
[0092] An image preprocessing module is configured to extract the grid map, perform image preprocessing therein, and obtain a preprocessed image;
[0093] An extreme value search module is configured to extract the preprocessed image and obtain the coordinates of extreme value points therein;
[0094] A concave point determination module is configured to extract the extreme point coordinates and determine the concave point according to a concave point determination rule;
[0095] an image segmentation module, configured to segment the preprocessed image into convex sub-images according to the concave points;
[0096] a convex sub-image preprocessing module, configured to extract the convex sub-image, perform convex sub-image preprocessing therein, and obtain a preprocessed convex sub-image;
[0097] A path selection module is configured to select waypoints in the preprocessed convex sub-image to form a sequence of reciprocating paths;
[0098] a current coverage ratio calculation module, configured to calculate the current coverage ratio of the reciprocating path; and
[0099] The path planning module is configured to use the A* algorithm for global path planning and the TEB algorithm for local path planning and obstacle avoidance.
[0100] Although various embodiments of the present invention are described above, it should be understood that they are presented as examples only and not as limitations. It is obvious to those skilled in the relevant art that various combinations, modifications and changes can be made thereto without departing from the spirit and scope of the present invention. Therefore, the breadth and scope of the present invention disclosed herein should not be limited by the exemplary embodiments disclosed above, but should only be defined according to the attached claims and their equivalents.
Claims
1. A full coverage path planning method based on image processing, characterized in that: The steps include: Determine the target area, obtain the grid map of the target area, and store it in the database; Extracting the grid map and performing image preprocessing to obtain a preprocessed image; Extracting the preprocessed image to obtain extreme point coordinates; Extracting the extreme point coordinates, and determining the concave point by a concave point determination rule; Segmenting the preprocessed image into convex sub-images according to the concave points; Extracting the convex sub-image, performing convex sub-image preprocessing, and obtaining a preprocessed convex sub-image; Based on the preprocessed convex sub-image, waypoints are selected to form a sequence of reciprocating paths; In a current coverage ratio calculation module, the current coverage ratio of the reciprocating path is calculated; as well as In the path planning module, the A* algorithm is used for global path planning, and the TEB algorithm is used for local path planning and obstacle avoidance; The determining of the concave point by the concave point determination rule comprises: The concave point is determined according to the formula, which is, Among them, x i represents the horizontal coordinate of the concave point in the preprocessed image, y i represents the vertical coordinate of the concave point in the preprocessed image, f(y i ) represents the contour function, ω represents the specified range; The calculating the current coverage ratio of the reciprocating path includes: Calculate the number of covered pixels N′=∑(p i *r w ) and the ratio of all the pixels N that can be covered by the map itself, and the current coverage ratio R is obtained c , the calculation formula is, Among them, p i represents the center of mass position of the robot in the image frame, r w Indicates the working radius of the robot.
2. The full coverage path planning method based on image processing according to claim 1 is characterized in that: The obtaining of the grid map of the target area comprises: Use laser radar to scan the target area and obtain the distance information of obstacles in the target area; The distance information is processed using the gmapping algorithm to construct a grid map of the target area.
3. The full coverage path planning method based on image processing according to claim 1, characterized in that: The performing of image preprocessing comprises: Converting the raster map into a grayscale image; Binarizing the grayscale image to obtain an image of the passable area, and performing smoothing processing on the image of the passable area using a Gaussian method to obtain a smoothed image of the passable area; The smoothed traversable area image is subjected to corrosion processing to obtain a preprocessed image.
4. The full coverage path planning method based on image processing according to claim 1, characterized in that: The obtaining of the extreme point coordinates comprises: Starting from the leftmost pixel of the preprocessed image, vertical lines are drawn one by one along the horizontal axis, and the number of intersections of each line with the contour of the preprocessed image is recorded. The number of intersections is used as a function of the horizontal axis coordinates, and a graph is drawn to obtain the coordinates of the extreme points of the function.
5. The full coverage path planning method based on image processing according to claim 1, characterized in that: The performing of convex sub-image preprocessing comprises: An erosion process is performed on the convex sub-image to obtain a pre-processed convex sub-image.
6. The full coverage path planning method based on image processing according to claim 1, characterized in that: The sequence of selecting waypoints to form a reciprocating path includes: Based on the inner contour of the preprocessed convex sub-image, waypoints are selected and the waypoints are repeatedly arranged from left to right and from top to bottom to form a sequence of reciprocating paths.
7. The full coverage path planning method based on image processing according to claim 1, characterized in that: The use of the A* algorithm for global path planning and the use of the TEB algorithm for local path planning and obstacle avoidance includes: Use the A* algorithm for global path planning to obtain the waypoints that the robot needs to reach in sequence; The TEB algorithm is used for local path planning and obstacle avoidance to ensure that the robot can safely pass through complex environments and reach the next waypoint.
8. A full coverage path planning system based on image processing for implementing the full coverage path planning method based on image processing according to claim 1, characterized in that: Includes the following modules: A map collection module is configured to obtain a grid map of a target area and store it in a database; An image preprocessing module is configured to extract the grid map, perform image preprocessing therein, and obtain a preprocessed image; An extreme value search module is configured to extract the preprocessed image and obtain the coordinates of extreme value points therein; A concave point determination module is configured to extract the extreme point coordinates and determine the concave point according to a concave point determination rule; an image segmentation module, configured to segment the preprocessed image into convex sub-images according to the concave points; a convex sub-image preprocessing module, configured to extract the convex sub-image, perform convex sub-image preprocessing therein, and obtain a preprocessed convex sub-image; A path selection module is configured to select waypoints in the preprocessed convex sub-image to form a sequence of reciprocating paths; a current coverage ratio calculation module, configured to calculate the current coverage ratio of the reciprocating path therein; as well as The path planning module is configured to use the A* algorithm for global path planning and the TEB algorithm for local path planning and obstacle avoidance.
Citation Information
Patent Citations
Cleaning robot and method for complete-coverage path planning of cleaning robot under dynamic environment
CN106840168A
Robot path planning method for target searching
CN110135644A
Hybrid path planning method based on FLOYD and Astar
CN112947406A
Robot full-coverage path planning method, device, equipment and medium
CN112985405A
Three-dimensional track planning method based on free space and A* algorithm
CN114740898A
