Mobile robot autonomous exploration full-coverage path planning method and system
Through the method based on the arcuate expansion of rectangular frame partitions, the mobile robot can achieve efficient full coverage path planning in an unknown environment, solving the problems of low efficiency and difficult boundary setting in the existing technology, and improving the coverage rate and accuracy of path planning.
Patent Information
- Application Number
- CN202310129923.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2024-08-27
AI Technical Summary
The existing technology has problems in the full coverage path planning of mobile robots in unknown environments, such as low efficiency, inability to be widely applicable, poor dynamic obstacle handling, inability to set exploration boundaries, high path repetition rate, and inability to independently cover the explored area.
The mobile robot autonomously explores the full-coverage path planning method based on the rectangular frame partition arch expansion. It constructs a grid map through the perception module, retrieves the longest side of the obstacle, performs rectangular frame edge exploration and arch expansion, extracts the trajectory outline map in real time, and plans the arch. path, and manually set exploration boundaries to achieve full coverage.
It improves the coverage of unknown areas, realizes coverage while exploring, can explore key areas independently, avoids path duplication, and improves coverage efficiency and accuracy of path planning.
Smart Images

Figure CN118550280A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of robot mapping and processing, and in particular relates to a method and system for autonomous exploration of full-coverage path planning for a mobile robot. Background Art
[0002] In the prior art, path planning is one of the necessary steps in the mapping process of cleaning robots. When performing tasks such as cleaning, sowing, weeding, and spraying, mobile robots need to explore and traverse full coverage in unknown environments. At present, there are three methods for mobile robots to traverse full coverage in unknown environments: random collision method, template method, and path planning method. In the random collision method, the robot is in a certain area in the workspace, and chooses a direction with a random angle to the current direction as the forward direction until it encounters an obstacle and then makes a random turn to continue moving forward. If it is executed for a sufficient time, a certain degree of coverage can be achieved. However, this algorithm will cause a high degree of path repetition, and it takes a long time to achieve sufficient coverage, and the coverage efficiency is low. The template method can maintain a good coverage efficiency in some suitable scenarios, but it is not widely applicable to unknown areas. Another method is path planning, which requires controlling the robot to obtain a complete grid map of the surrounding environment first, and then performing path planning after obtaining the map.
[0003] Therefore, specifically, the defects of the prior art are:
[0004] 1. The random collision method has strong randomness, and the coverage rate is related to the cleaning time, which is less efficient and takes longer time;
[0005] 2. The template method is not widely applicable to unknown areas, and the coverage efficiency is poor in some situations.
[0006] 3. Conventional path planning methods are not effective in dealing with dynamic obstacles. When performing full coverage in a large space, it is easy for the target point to be set on the obstacle due to environmental changes.
[0007] 4. It is impossible to artificially set the boundaries of the exploration coverage area, and the exploration coverage is limited to areas of specific locations, shapes, and sizes.
[0008] 5. It is impossible to explore and fully cover a large space.
[0009] 6. The planned moving path has a high repetition rate and a long execution time.
[0010] 7. It is not possible to cover the area that has already been covered separately.
[0011] In addition, commonly used technical terms in the prior art include:
[0012] 1. Full coverage path planning: A planning method in which the robot traverses all reachable areas within a certain range in the map.
[0013] 2. Autonomous exploration based on rectangular box bow expansion: Autonomously explore unknown areas in the environment by building a rectangular box and expanding it in a bow shape.
[0014] 3. Map construction: Build a raster map of the environment through the distance information obtained by the perception module.
[0015] 4. Region segmentation: refers to the block processing of the grid map constructed by the mobile robot.
[0016] 5. Grid map: With the starting point where the robot starts to build the map as the center, the resolution of the x-axis and y-axis is the size of a single grid, and the resolution of the x-axis and y-axis is 0.05m. Each grid is assigned different values according to its status, whether it is an obstacle or an open space. 0 represents an open space and 1 represents an obstacle. Such a two-dimensional grid map is a grid map.
[0017] 6. Ox-ploughing method: The ox-ploughing unit decomposition method calculates the number of connected segments of the grid map decomposed by obstacles for the target area row by row, and divides the set of free area units that do not contain obstacles according to the number of connected segments. Construct a reciprocating arcuate path in the free area unit. Then connect each unit according to the distance to form a full coverage path of the target area. Summary of the invention
[0018] In order to solve the above problems, the purpose of this application is to propose a mobile robot autonomous exploration full coverage path planning method and system based on rectangular frame partition arc expansion, which can explore and cover in an unknown large space area. This mobile robot autonomous exploration full coverage path planning technology based on rectangular frame partition arc expansion improves the coverage rate of the mobile robot in the unknown area, can achieve exploration and coverage, and can also specify key areas for separate exploration and coverage. The exploration coverage boundary can be manually set so that it can work in a safe area and return to the starting point autonomously at the end of the exploration.
[0019] Specifically, the present invention provides a mobile robot autonomous exploration full coverage path planning method, the method is based on rectangular frame partition arc expansion, and further includes:
[0020] S1, exploration coverage start;
[0021] S2, retrieval of the longest side of obstacles in the map: by setting the initial exploration action, the perception module and the mapping module are used to build a grid map of the current environment within the perception range of the mobile robot; the grid map is converted into a grayscale image, and the longest side of the obstacle in the current map is retrieved from the grayscale image; wherein, the perception module: the laser radar sensor obtains 360-degree distance information of the surrounding environment through laser; the mapping module: maps the laser radar data through the existing mapping algorithm;
[0022] S3, longest obstacle edge coordinate system transformation: calculate the pose transformation matrix between the longest obstacle edge of the cost map and the coordinate axis of the current map coordinate system; construct a new map coordinate system with the longest obstacle edge as the coordinate axis direction of the map coordinate system by rotating the initial coordinate system; make the longest obstacle edge in the environment parallel to the edge of the map, which is convenient for subsequent rectangular frame exploration along the edge and allows viewers to have a better viewing experience;
[0023] S4, rectangular frame exploration along the edge, rectangular frame exploration along the wall: switch between exploring along the wall and exploring along the edge during the rectangular frame exploration to avoid obstacles during the exploration process;
[0024] S5, rectangular frame trajectory contour map segmentation: real-time extraction of the environment map within the rectangular frame exploration trajectory contour;
[0025] S6, full coverage path planning within the rectangular frame trajectory contour map: The planning module involved here plans the path that the robot takes to completely cover the free area in the target space, and performs full coverage path planning by unit decomposing the area within the extracted rectangular frame trajectory contour map;
[0026] S7, target point path navigation planning: selecting the turning point of the arch path as the target point of the arch path traversal navigation;
[0027] S8, rectangular box arch expansion, that is, taking an arch-shaped way to expand the rectangular box for exploration, exploring and fully covering the large space: after achieving full coverage arch path planning in the current rectangular box, extend the starting point of the rectangular box to the vertex of the upper rectangular box, and continue to plan the full coverage path of the next rectangular box; if the maximum longitudinal side length of the extended upper rectangular box is equal to the set side length of the rectangular box, continue to expand upward, otherwise it is regarded as a failure to expand upward, and expand a rectangular box to the left instead. After successfully expanding a rectangular box, start to expand downward. If the downward expansion fails, switch to expansion to the left; repeat this cycle until it is impossible to expand to the left, and then continue to expand to the right direction of the initial expansion of the rectangular box;
[0028] S9, box selection exploration coverage: select any rectangular box area to explore full coverage planning, and repeat the coverage of key areas multiple times; record the index, vertex, and outline of each rectangular box, and the user can choose to specify a rectangular box for separate exploration coverage;
[0029] S10, manually set the exploration coverage area limit boundary: manually set the mobile robot exploration full coverage planning area boundary, limit the working area, and avoid entering the dead zone;
[0030] S11, exploration coverage ends.
[0031] In step S4, the rectangular frame explores along the edge:
[0032] The mobile robot autonomously explores the surrounding environment. If it directly explores the entire room and then covers it, the constructed map and the coverage plan path may not match due to changes in the room layout during the coverage process, or the coverage rate may decrease in a large space, and it is not conducive to covering and traversing part of the area separately. Therefore, a rectangular frame is explored along the edge and then expanded in an arch shape. After the rectangular frame is explored along the edge, the area within the rectangular frame is first covered, and then an arch-shaped expansion exploration and coverage is performed. When exploring along the edge of the rectangular frame, the robot first turns to the edge direction of the rectangular frame, then moves forward to the vertex of the rectangular frame, and then explores the next rectangular frame edge along the edge until the entire rectangular frame is explored along the edge.
[0033] In step S4, the rectangular frame explores along the edge wall:
[0034] During the process of exploring the edge of the rectangular box, you may encounter an obstacle in the middle of the edge of the rectangular box. In this case, you need to switch to exploring along the wall, bypass the obstacle, and then explore along the edge of the rectangular box. After bypassing the obstacle, determine which side of the rectangular box the robot is currently on, and then perform edge exploration on that side.
[0035] The step S4 of exploring the rectangular frame along the edge wall further comprises:
[0036] S4.1, Start,
[0037] S4.2, reach the starting vertex of the rectangular box, i=1;
[0038] S4.3, perform edge exploration along the i-th edge of the rectangular box;
[0039] S4.4, determine whether an obstacle is found ahead? If not, proceed to step S4.6; if yes, proceed to step S4.5;
[0040] S4.5, perform wall exploration along the i-th edge of the rectangular box;
[0041] S4.6, determine whether the robot has crossed the i-th edge? If not, return to step S4.3; if yes, proceed to step S4.7;
[0042] S4.7, i+1;
[0043] S4.8, determine whether the exploration along the edge and along the wall of the fourth side of the rectangular frame has been completed? If not, return to step S4.3; if yes, end.
[0044] The step S5 is to segment the rectangular frame trajectory contour map:
[0045] After executing the edge exploration of the current rectangular box, the outline of the trajectory walked by the robot is obtained, the raster map constructed by the robot through the mapping module is converted into a grayscale image, and the map within the walking trajectory of the robot is extracted and segmented by whether the pixel points on the map are contained in the trajectory outline when the robot performs rectangular box exploration.
[0046] The step S6 is to plan the full coverage path within the rectangular frame trajectory outline map:
[0047] After obtaining the robot's rectangular frame trajectory contour map, the map is decomposed into units, and the cow-ploughing method (hereinafter referred to as the cow-ploughing method) is used to obtain a fully covered arched path, that is, first the unit is decomposed into multiple sub-areas, and then a covering line is generated for the sub-area closest to the robot, the sub-area is rotated, and the longest side is found. The side is covered with a parallel arched path, and the interval of the covering line is the robot diameter;
[0048] According to the distance from the current point to the four vertices of the interval, the vertex closest to the current point is selected as the starting point of the bow-shaped path, and the last path point of the current coverage line is connected with the next coverage line. After covering the sub-area, the next sub-area closest to the current sub-area is selected for coverage until the planned path of all sub-areas is obtained as the full coverage path of the rectangular frame trajectory contour map.
[0049] Step S7: target point path navigation planning:
[0050] After obtaining the planned path, the turning point of the arch path is selected as the navigation target point through the change trend of the points on the fully covered path, and then the path planner of the mobile robot is used. The path planner is a module that calculates the robot's speed during the process of the robot reaching the target point selected before, and drives the robot to execute to the target point.
[0051] The step S10 manually sets the exploration coverage area limit boundary:
[0052] When the user wants to artificially restrict the mobile robot to work in any designated area that can be reached in the map, the user can manually set the boundaries of exploration and coverage. By selecting the vertices of the manually set boundaries in the map, a polygonal area is constructed so that the robot can perform exploration and coverage work in the set area. The construction of a polygonal area is to select four vertices A, B, C, and D on the map, store their x and y coordinates, construct a polygon, and then calculate whether the grid on the grid map is included in the polygon, and modify all grids outside the polygon to occupied status. Then all the paths covering all free areas planned by the subsequent robot are located inside the polygon.
[0053] The step S11 ends the exploration coverage:
[0054] The exploration and coverage work is terminated when the mobile robot determines that it cannot continue the bow-shaped expansion exploration, when the power of the mobile robot is less than the warning power threshold, or when the exploration and coverage area of the mobile robot exceeds the manually set exploration and coverage boundary.
[0055] The present application also includes a mobile robot autonomous exploration full coverage path planning system, the system is applicable to any of the above methods, and the modules required by the system are:
[0056] Perception module: The LiDAR sensor uses lasers to obtain 360-degree distance information of the surrounding environment; Mapping module: Maps the LiDAR data using existing mapping algorithms;
[0057] Planning module: The target point to which the mobile robot is to go is selected through full-coverage arc path planning based on rectangular frame arc expansion, and the speed of the robot in the process of reaching the target point is calculated using A* global path planning and TEB local path planning;
[0058] Execution module: The mobile robot moves through the motor-driven actuator and the accompanying functional modules to perform cleaning, spraying, and harvesting tasks.
[0059] Therefore, the advantages of the present application are: the method is simple, and the innovation of the present invention is:
[0060] 1. Construct a map coordinate system with the longest side of the obstacle in the direction of the coordinate axis.
[0061] 2. Explore along the edge of the rectangular frame and find that the moving trajectory is more regular.
[0062] 3. During the rectangular frame exploration process, switch between following the wall and following the edge to avoid obstacles during the exploration process.
[0063] 4. Real-time extraction of the environment map within the rectangular frame exploration trajectory outline, the covered working area is displayed more clearly.
[0064] 5. Perform full coverage path planning by unit decomposing the area within the extracted rectangular frame trajectory contour map.
[0065] 6. Filter out the turning points of the bow-shaped path as the target points of the bow-shaped path traversal navigation to speed up the traversal speed.
[0066] 7. Expand the rectangular frame in a bow shape to explore, and fully cover the large space while exploring.
[0067] 8. Select any rectangular frame area separately to explore full coverage planning, and repeat the coverage of key areas multiple times.
[0068] 9. Manually set the boundaries of the mobile robot's exploration of the fully covered planning area, limit the working area, and avoid entering the dead zone. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of this application, and do not constitute a limitation of the present invention.
[0070] Figure 1 This is a flow chart of the mobile robot autonomous exploration full coverage path planning method expanded by rectangular frame partitioning of the present method.
[0071] Figure 2 It is a schematic diagram of the rectangular box exploration along the edge in this method.
[0072] Figure 3 It is a schematic diagram of the rectangular box exploring along the edge wall in this method.
[0073] Figure 4 It is a schematic diagram of the process of exploring the rectangular frame along the edge wall in this method.
[0074] Figure 5 It is a schematic diagram of full coverage path planning within the rectangular frame trajectory contour map in this method.
[0075] Figure 6 It is a schematic diagram of the autonomous exploration based on the rectangular box bow expansion in this method. DETAILED DESCRIPTION
[0076] In order to more clearly understand the technical content and advantages of the present invention, the present invention is now further described in detail in conjunction with the accompanying drawings.
[0077] This application is a method and system for autonomous exploration of full coverage path planning for a mobile robot based on rectangular frame partition arc expansion. The flowchart of the method implementation is as follows: Figure 1 As shown:
[0078] S1, exploration coverage start;
[0079] S2, retrieval of the longest side of obstacles in the map: by setting the initial exploration action, the perception module and the mapping module are used to build a grid map of the current environment within the perception range of the mobile robot; the grid map is converted into a grayscale image, and the longest side of the obstacle in the current map is retrieved from the grayscale image; wherein, the perception module: the lidar sensor obtains 360-degree distance information of the surrounding environment through laser; the mapping module: maps the lidar data through the existing mapping algorithm; the existing mapping algorithm, such as cartographer mapping, uses the odometer data and IMU data to infer the robot's posture at the current time as the prior posture, and then after scanning and matching the lidar data, the lidar data is constructed into many sub-graphs, and the grid map map is constructed by fusing these sub-graphs;
[0080] S3, longest obstacle edge coordinate system transformation: calculate the pose transformation matrix between the longest obstacle edge of the cost map and the coordinate axis of the current map coordinate system; construct a new map coordinate system with the longest obstacle edge as the coordinate axis direction of the map coordinate system by rotating the initial coordinate system; make the longest obstacle edge in the environment parallel to the edge of the map, which is convenient for subsequent rectangular frame exploration along the edge and allows viewers to have a better viewing experience;
[0081] S4, rectangular frame exploration along the edge, rectangular frame exploration along the wall: if there is no obstacle, it will explore along the edge, if there is an obstacle, it will explore along the wall. During the rectangular frame exploration process, switch between exploring along the wall and exploring along the edge to avoid obstacles during the exploration process;
[0082] S5, rectangular frame trajectory contour map segmentation: real-time extraction of the environment map within the rectangular frame exploration trajectory contour;
[0083] S6, full coverage path planning within the rectangular frame trajectory contour map: The planning module involved here plans the path that the robot takes to completely cover the free area in the target space, and performs full coverage path planning by unit decomposing the area within the extracted rectangular frame trajectory contour map;
[0084] S7, target point path navigation planning: selecting the turning point of the arch path as the target point of the arch path traversal navigation;
[0085] S8, rectangular frame bow expansion, that is, taking the bow-shaped way to expand the rectangular frame for exploration, exploring and covering the whole space;
[0086] S9, box selection exploration coverage: select any rectangular box area to explore full coverage planning, and repeat the coverage of key areas multiple times;
[0087] S10, manually set the exploration coverage area limit boundary: manually set the mobile robot exploration full coverage planning area boundary, limit the working area, and avoid entering the dead zone;
[0088] S11, exploration coverage ends.
[0089] In step S4, the rectangular frame explores along the edge
[0090] The mobile robot conducts autonomous exploration of the surrounding environment. If it directly explores the entire room and then covers it, the constructed map and the coverage planning path may not match due to changes in the room layout during the coverage process, or the coverage rate may decrease in a large space, and it is not conducive to covering and traversing part of the area separately. Therefore, the rectangular frame is explored along the edge and then expanded in an arc. After the rectangular frame is explored along the edge, the area inside the rectangular frame is first covered, and then the arc-shaped expansion exploration coverage is performed. The schematic diagram of the rectangular frame exploration along the edge is shown in the figure below. Figure 2 As shown, the rectangular box edge exploration first turns to the direction of the rectangular box edge, then moves forward to the vertex of the rectangular box, and then the next rectangular box edge is explored along the edge until the entire rectangular box is explored along the edge.
[0091] In step S4, the rectangular frame explores along the edge wall
[0092] The schematic diagram of the rectangular frame exploring along the edge wall is as follows Figure 3 As shown in the figure. During the rectangular box edge exploration process, an obstacle may be encountered in the middle of the rectangular box edge. In this case, it is necessary to switch to wall exploration, bypass the obstacle, and then perform edge exploration of the rectangular box. After bypassing the obstacle, determine which side of the rectangular box the robot is currently on, and then perform edge exploration of that side. The flowchart of the rectangular box edge and wall exploration algorithm is shown in the figure. Figure 4 As shown:
[0093] S4.1, Start,
[0094] S4.2, reach the starting vertex of the rectangular box, i=1;
[0095] S4.3, perform edge exploration along the i-th edge of the rectangular box;
[0096] S4.4, determine whether an obstacle is found ahead? If not, proceed to step S4.6; if yes, proceed to step S4.5;
[0097] S4.5, perform wall exploration along the i-th edge of the rectangular box;
[0098] S4.6, determine whether the robot has crossed the i-th edge? If not, return to step S4.3; if yes, proceed to step S4.7;
[0099] S4.7, i+1;
[0100] S4.8, determine whether the exploration along the edge and along the wall of the fourth side of the rectangular frame has been completed? If not, return to step S4.3; if yes, end.
[0101] Step S5: segmenting the rectangular frame trajectory contour map
[0102] After executing the edge exploration of the current rectangular box, the approximate outline of the robot's trajectory is obtained. The raster map constructed by the robot through the mapping module is converted into a grayscale image, and the map within the robot's walking trajectory is extracted and segmented by whether the pixel points on the map are included in the trajectory outline when the robot performs rectangular box exploration.
[0103] In step S6, the full coverage path planning is performed within the rectangular frame trajectory outline map, such as Figure 5 After obtaining the robot's rectangular frame trajectory contour map, the map is decomposed into units, and the cow-ploughing method is used to obtain a fully covered arch path. First, the unit is decomposed into multiple sub-areas, and then a coverage line is generated for the sub-area closest to the robot. The sub-area is rotated to find the longest side, and the side is covered with a parallel arch path. The interval of the coverage line is the diameter of the robot. According to the distance from the current point to the four vertices of the interval, the vertex closest to the current point is selected as the starting point of the bow path, and the last path point of the current coverage line is connected to the next coverage line. After covering the sub-area, the next sub-area closest to the current sub-area is selected for coverage until the planned path of all sub-areas is obtained as the fully covered path of the rectangular frame trajectory contour map.
[0104] Step S7: target point path navigation planning
[0105] After obtaining the planned path, the turning point of the arch path is selected as the navigation target point through the change trend of the points on the full coverage path, and then the path planner of the mobile robot is used to drive the robot to the target point.
[0106] In step S8, the rectangular frame is extended in an arc shape
[0107] After achieving full coverage bow path planning in the current rectangular box, extend the starting point of the rectangular box to the vertex of the upper rectangular box. Continue with full coverage path planning for the next rectangular box. If the maximum longitudinal side length of the extended upper rectangular box is equal to the set side length of the rectangular box, continue to expand upward, otherwise it is deemed that the upward expansion has failed, and expand a rectangular box to the left instead. After successfully expanding a rectangular box, start to expand downward. If the downward expansion fails, switch to expanding to the left. Repeat this cycle until it is impossible to expand to the left, and then continue to expand to the right of the initial expansion of the rectangular box. The schematic diagram of autonomous exploration based on the rectangular box bow expansion is shown in the figure. Figure 6 shown.
[0108] In step S9, select any rectangular frame to explore the coverage
[0109] Record the index, vertices, and outline of each rectangle. Users can choose to specify a rectangle for separate exploration coverage.
[0110] Step S10, manually setting the exploration coverage area limit boundary When the user wants to artificially limit the mobile robot to work in any designated area that can be reached in the map, the exploration coverage boundary can be manually set. By selecting the vertices of the manually set boundary in the map, a polygonal area can be constructed, so that the robot can perform exploration coverage work in the set area.
[0111] Step S11, ending the exploration coverage
[0112] The exploration and coverage work is terminated when the mobile robot determines that it cannot continue the bow-shaped expansion exploration, when the power of the mobile robot is less than the warning power threshold, or when the exploration and coverage area of the mobile robot exceeds the manually set exploration and coverage boundary.
[0113] The present application also includes a mobile robot autonomous exploration full coverage path planning system, the system is applicable to any of the above methods, and the modules required by the system are:
[0114] Perception module: The lidar sensor uses lasers to obtain 360-degree distance information of the surrounding environment. Mapping module: Use existing mapping algorithms such as cartographer to build maps, use odometer data and IMU data to infer the robot's current posture as a priori posture, and then scan and match the lidar data, build multiple sub-graphs of the lidar data, and build a grid map by fusing these sub-graphs to build a map of the lidar data.
[0115] Planning module: The target point to which the mobile robot is to go is selected through full coverage arch path planning based on rectangular frame arch extension, and the speed of the robot in the process of reaching the target point is calculated using A* global path planning and TEB local path planning. The A* global path planning is to find a set of extension points extending from the starting point to the target point on the grid map as a global path. This method not only calculates the shortest distance between the current extension point and the starting point, but also considers the distance between the current extension point and the target point to perform heuristic search and calculate the path in the grid map where the robot starts from its own position and reaches the target point with relatively low cost. The TEB local path planner uses the point on the global path calculated by the previous global path planner as the target point of the local planner, calculates the cost of selecting the intermediate point at a certain time interval and the cost of the intermediate point and the obstacle to obtain the speed value of the robot in the navigation process in which it reaches the target point on the selected global path as quickly as possible.
[0116] Execution module: The mobile robot moves through the motor-driven actuator and the accompanying functional modules to perform tasks such as cleaning, spraying, and harvesting.
[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A mobile robot autonomous exploration full coverage path planning method, characterized in that: The method is based on rectangular frame partition arc expansion, and further includes: S1, exploration coverage start; S2, retrieval of the longest side of obstacles in the map: by setting the initial exploration action, the perception module and the mapping module are used to build a grid map of the current environment within the perception range of the mobile robot; the grid map is converted into a grayscale image, and the longest side of the obstacle in the current map is retrieved from the grayscale image; Among them, the perception module: the laser radar sensor obtains 360-degree distance information of the surrounding environment through laser; the mapping module: maps the laser radar data through the existing mapping algorithm; S3, longest obstacle edge coordinate system transformation: calculate the pose transformation matrix between the longest obstacle edge of the cost map and the coordinate axis of the current map coordinate system; construct a new map coordinate system with the longest obstacle edge as the coordinate axis direction of the map coordinate system by rotating the initial coordinate system; make the longest obstacle edge in the environment parallel to the edge of the map, which is convenient for subsequent rectangular frame exploration along the edge and allows viewers to have a better viewing experience; S4, rectangular frame exploration along the edge, rectangular frame exploration along the wall: switch between exploring along the wall and exploring along the edge during the rectangular frame exploration to avoid obstacles during the exploration process; S5, rectangular frame trajectory contour map segmentation: real-time extraction of the environment map within the rectangular frame exploration trajectory contour; S6, full coverage path planning within the rectangular frame trajectory contour map. The planning module plans the path that the robot takes to completely cover the free area in the target space: full coverage path planning by unit decomposing the area within the extracted rectangular frame trajectory contour map; S7, target point path navigation planning: selecting the turning point of the arch path as the target point of the arch path traversal navigation; S8, rectangular box arch expansion, that is, taking an arch-shaped way to expand the rectangular box for exploration, exploring and fully covering the large space: after achieving full coverage arch path planning in the current rectangular box, extend the starting point of the rectangular box to the vertex of the upper rectangular box, and continue to plan the full coverage path of the next rectangular box; if the maximum longitudinal side length of the extended upper rectangular box is equal to the set side length of the rectangular box, continue to expand upward, otherwise it is regarded as a failure to expand upward, and expand a rectangular box to the left instead. After successfully expanding a rectangular box, start to expand downward. If the downward expansion fails, switch to expansion to the left; repeat this cycle until it is impossible to expand to the left, and then continue to expand to the right direction of the initial expansion of the rectangular box; S9, box selection exploration coverage: select any rectangular box area to explore full coverage planning, and repeat the coverage of key areas multiple times; record the index, vertex, and outline of each rectangular box, and the user can choose to specify a rectangular box for separate exploration coverage; S10, manually set the exploration coverage area limit boundary: manually set the mobile robot exploration full coverage planning area boundary, limit the working area, and avoid entering the dead zone; S11, exploration coverage ends.
2. A mobile robot autonomous exploration full coverage path planning method according to claim 1, characterized in that: In step S4, the rectangular frame explores along the edge: The mobile robot autonomously explores the surrounding environment. If it directly explores the entire room and then covers it, the constructed map and the coverage plan path may not match due to changes in the room layout during the coverage process, or the coverage rate may decrease in a large space, and it is not conducive to covering and traversing part of the area alone. Therefore, a rectangular frame is explored along the edge and then expanded in an arch shape. After the rectangular frame is explored along the edge, the area within the rectangular frame is first covered, and then an arch-shaped expansion exploration and coverage is performed. When exploring along the edge of the rectangular frame, the robot first turns to the edge direction of the rectangular frame, then moves forward to the vertex of the rectangular frame, and then explores the next rectangular frame edge along the edge until the entire rectangular frame is explored along the edge.
3. A mobile robot autonomous exploration full coverage path planning method according to claim 2, characterized in that: In step S4, the rectangular frame explores along the edge wall: During the process of exploring the edge of the rectangular box, you may encounter an obstacle in the middle of the edge of the rectangular box. In this case, you need to switch to exploring along the wall, bypass the obstacle, and then explore along the edge of the rectangular box. After bypassing the obstacle, determine which side of the rectangular box the robot is currently on, and then perform edge exploration on that side.
4. A mobile robot autonomous exploration full coverage path planning method according to claim 3, characterized in that: The step S4 of exploring the rectangular frame along the edge wall further comprises: S4.1, Start, S4.2, reach the starting vertex of the rectangular box, i=1; S4.3, perform edge exploration along the i-th edge of the rectangular box; S4.4, determine whether an obstacle is found ahead? If not, proceed to step S4.6; if yes, proceed to step S4.5; S4.5, perform wall exploration along the i-th edge of the rectangular box; S4.6, determine whether the robot has crossed the i-th edge? If not, return to step S4.3; if yes, proceed to step S4.7; S4.7, i+1; S4.8, determine whether the exploration along the edge and along the wall of the fourth side of the rectangular frame has been completed? If not, return to step S4.3; if yes, end.
5. A mobile robot autonomous exploration full coverage path planning method according to claim 4, characterized in that: The step S5 is to segment the rectangular frame trajectory contour map: After executing the edge exploration of the current rectangular box, the outline of the trajectory walked by the robot is obtained, the raster map constructed by the robot through the mapping module is converted into a grayscale image, and the map within the walking trajectory of the robot is extracted and segmented by whether the pixel points on the map are contained in the trajectory outline when the robot performs rectangular box exploration.
6. A mobile robot autonomous exploration full coverage path planning method according to claim 5, characterized in that: The step S6 is a full coverage path planning in the rectangular frame trajectory contour map: after obtaining the rectangular frame trajectory contour map of the robot, the map is decomposed into units, and a full coverage arc path is obtained by using the ox-ploughing method, that is, First, the unit is decomposed into multiple sub-areas, and then a covering line is generated for the sub-area closest to the robot. The sub-area is rotated to find the longest edge, and a parallel arc path is used to cover the edge. The interval of the covering line is the diameter of the robot. According to the distance from the current point to the four vertices of the interval, the vertex closest to the current point is selected as the starting point of the bow-shaped path, and the last path point of the current coverage line is connected with the next coverage line. After covering the sub-area, the next sub-area closest to the current sub-area is selected for coverage until the planned path of all sub-areas is obtained as the full coverage path of the rectangular frame trajectory contour map.
7. A mobile robot autonomous exploration full coverage path planning method according to claim 6, characterized in that: Step S7: target point path navigation planning: After obtaining the planned path, the turning point of the arch path is selected as the navigation target point through the change trend of the points on the fully covered path, and then the robot is driven to the target point through the path planner of the mobile robot. The path planner is a module that calculates the robot's speed during the process of the robot reaching the target point selected before.
8. The method for autonomous exploration of full coverage path planning by a mobile robot according to claim 7, characterized in that: The step S10 manually sets the limit boundary of the exploration coverage area: when the user wants to artificially limit the mobile robot to work in any designated area that can be reached in the map, the boundary of the exploration coverage can be manually set, and a polygonal area is constructed by selecting the vertices of the manually set boundary in the map, so that the robot can perform exploration and coverage work in the set area. The construction of a polygonal area is to select four vertices A, B, C, and D on the map, store their x and y coordinates, construct a polygon, and then calculate whether the grid on the grid map is contained in the polygon, and modify all grids outside the polygon to an occupied state. Then, all paths planned by the subsequent robot to cover all idle areas are located inside the polygon.
9. A mobile robot autonomous exploration full coverage path planning method according to claim 8, characterized in that: The conditions for ending the exploration coverage in step S11 also include: The exploration and coverage work is terminated when the mobile robot determines that it cannot continue the bow-shaped expansion exploration, when the power of the mobile robot is less than the warning power threshold, or when the exploration and coverage area of the mobile robot exceeds the manually set exploration and coverage boundary.
10. A mobile robot autonomous exploration full coverage path planning system, characterized in that: The system is applicable to any one of the methods in claims 1-9, and the modules required by the system are: Perception module: The LiDAR sensor uses lasers to obtain 360-degree distance information of the surrounding environment; Mapping module: Maps the LiDAR data using existing mapping algorithms; Planning module: The target point to which the mobile robot is to go is selected through full-coverage arc path planning based on rectangular frame arc expansion, and the speed of the robot in the process of reaching the target point is calculated using the existing A* global path planning and TEB local path planning; Execution module: The mobile robot moves through the motor-driven actuator and the accompanying functional modules to perform cleaning, spraying, and harvesting tasks.
Citation Information
Cited By
Field sensing and efficient path planning method of self-adaptive tennis ball picking robot
CN122170901A
