Path planning method, robot, electronic equipment and medium

By calculating and merging the optimal operating directions of the original sub-areas in the robot path planning, the problem of low robot operating efficiency in the existing technology is solved, and more efficient path planning and operating efficiency are achieved.

CN118732684AActive Publication Date: 2024-10-01ZHEJIANG ZHIDING ROBOT CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202410806934.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-01
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Existing path planning methods result in low robot operation efficiency, especially when the target area is divided into multiple sub-areas. The number of turns and overlapping paths increases, resulting in missed operating areas and increased collision risks.

Method used

By calculating the best working direction of each original sub-area, and merging adjacent sub-areas when the angle between the best working directions of adjacent sub-areas is less than or equal to the threshold, the number of sub-areas is reduced, the planning path is simplified, and the planning path is improved. Operational efficiency.

Benefits of technology

It effectively reduces the number of original sub-areas, reduces turns and overlapping paths during robot operation, improves operation efficiency, reduces the risk of missing operations and collisions, and realizes automatic partitioning and automatic planning of full-coverage paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732684A_ABST
    Figure CN118732684A_ABST
Patent Text Reader

Abstract

The invention provides a path planning method, a robot, electronic equipment and a medium. The method comprises the following steps: dividing a target operation area into a plurality of original sub-areas; calculating the optimal operation direction of each original sub-region in the plurality of original sub-regions; under the condition that the included angle between the optimal operation directions corresponding to the adjacent original sub-regions is smaller than or equal to a first threshold value, combining the adjacent original sub-regions to obtain a combined sub-region; and performing path planning based on the merged sub-regions and the remaining sub-regions to obtain a planned path. According to the technical scheme, the planning path can be simplified, and then the operation efficiency of the robot which performs operation based on the planning path subsequently can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robot control technology, and in particular to a path planning method, a robot, an electronic device and a medium. Background Art

[0002] With the advancement of science and technology, the application fields of robots are becoming more and more extensive. For example, robots can be used in cleaning, agricultural production and other fields. When using a robot to operate in a target area, it is generally necessary to plan the robot's driving path in the target area in advance. The planned driving path should cover the entire target area as much as possible, so as to reduce the area of ​​missed operation areas. For the same target area, different driving paths can be planned according to different methods. Different planned driving paths will lead to different robot operating efficiency. The existing path planning method has the problem of low robot operating efficiency. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a path planning method, a robot, an electronic device and a medium, which can simplify the planned path, thereby improving the operating efficiency of the robot that subsequently performs operations based on the planned path.

[0004] In a first aspect, an embodiment of the present application provides a path planning method, comprising: dividing a target operation area into multiple original sub-areas; calculating the optimal operation direction of each original sub-area in the multiple original sub-areas; merging adjacent original sub-areas to obtain a merged sub-area when the angle between the optimal operation directions corresponding to adjacent original sub-areas is less than or equal to a first threshold; performing path planning based on the merged sub-areas and the remaining sub-areas to obtain a planned path, wherein the remaining sub-areas are obtained based on the original sub-areas in the multiple original sub-areas after removing the adjacent original sub-areas.

[0005] In a second aspect, an embodiment of the present application provides a path planning device, comprising: a division module, used to divide a target operation area into multiple original sub-areas; a calculation module, used to calculate the optimal operation direction of each of the multiple original sub-areas; a merging module, used to merge adjacent original sub-areas to obtain a merged sub-area when the angle between the optimal operation directions corresponding to adjacent original sub-areas is less than or equal to a first threshold; a planning module, used to perform path planning based on the merged sub-areas and the remaining sub-areas to obtain a planned path, wherein the remaining sub-areas are obtained based on the original sub-areas in the multiple original sub-areas after removing the adjacent original sub-areas.

[0006] In a third aspect, an embodiment of the present application provides a robot, comprising a control module, wherein the control module is used to execute the path planning method described in the first aspect above.

[0007] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor; and a memory for storing processor executable instructions, wherein the processor is used to execute the path planning method described in the first aspect above.

[0008] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the path planning method described in the first aspect above.

[0009] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes instructions. When the instructions are executed by a processor of a computer device, the computer device is able to execute the path planning method described in the first aspect above.

[0010] In a seventh aspect, an embodiment of the present application provides a chip, comprising: a processor; and a memory for storing processor executable instructions, wherein the processor is used to execute the path planning method described in the first aspect above.

[0011] The embodiments of the present application provide a path planning method, a robot, an electronic device and a medium. The optimal operating direction of each original sub-area in a plurality of original sub-areas is calculated, and when the angle between the optimal operating directions corresponding to adjacent original sub-areas is less than or equal to a first threshold, adjacent original sub-areas are merged to obtain a merged sub-area. This can reduce the number of original sub-areas, simplify the planned path, and further improve the operating efficiency of the robot operating based on the planned path. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 Shown is a schematic diagram of the system architecture of a path planning system provided by an exemplary embodiment of the present application.

[0013] Figure 2 Shown is a flow chart of a path planning method provided by an exemplary embodiment of the present application.

[0014] Figure 3a Shown is a schematic diagram of equivalent lengths and continuous areas of original sub-regions provided by an exemplary embodiment of the present application.

[0015] Figure 3b Shown is a schematic diagram of multiple adjacent original sub-areas provided by an exemplary embodiment of the present application.

[0016] Figure 3c Shown is a schematic diagram of an operation path provided by an exemplary embodiment of the present application.

[0017] Figure 3d Shown is a flow chart of a model prediction path integration method provided by an exemplary embodiment of the present application.

[0018] Figure 4 Shown is a flow chart of a path planning method provided by another exemplary embodiment of the present application.

[0019] Figure 5 Shown is a schematic structural diagram of a path planning device provided by an exemplary embodiment of the present application.

[0020] Figure 6 Shown is a block diagram of an electronic device for executing a path planning method provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0022] Application Overview

[0023] Using robots to perform tasks is becoming more and more common in modern society. Robots can be used in cleaning, agricultural production and other fields. For example, robots can be used for indoor cleaning, outdoor cleaning, sowing, spraying pesticides, etc.

[0024] When using a robot to operate in a target area, it is generally necessary to plan the robot's driving path in the target area in advance. The planned driving path should cover the entire target area as much as possible, that is, to achieve complete coverage path planning (CCPP), so as to reduce the area of ​​missed operation areas. The task of the complete coverage path planning problem is to determine a path that passes through all points in an area or a certain spatial range while avoiding obstacles. In the field of complete coverage path planning, the two most commonly used basic methods are bow-shaped coverage and U-shaped coverage. U-shaped coverage has too many turns and too few straight lines, and its efficiency is relatively low. Bow-shaped coverage usually requires a combination of automatic and manual methods to divide the area, dividing the large target area into several sub-areas that can be arranged in a bow-shaped line. The most common automatic method is the ox-plowing method, which will divide the target area into overly fragmented sub-areas.

[0025] Taking indoor cleaning as an example, when using a robot to clean a target area, the target area can be divided into multiple sub-areas based on the obstacles in the room, and a corresponding path can be planned for each sub-area. For multiple sub-areas, serial paths between different sub-areas can be planned. When the target area is divided into multiple fragmented sub-areas, the number of turns, decelerations and / or overlapping paths of the robot during the operation will increase, which will lead to a decrease in the robot's operating efficiency.

[0026] In response to the above technical problems, an embodiment of the present application provides a path planning method, which calculates the optimal working direction of each original sub-area in multiple original sub-areas, and merges adjacent original sub-areas to obtain a merged sub-area when the angle between the optimal working directions corresponding to adjacent original sub-areas is less than or equal to a first threshold. This can reduce the number of original sub-areas, simplify the planned path, and further improve the operating efficiency of the robot operating based on the planned path.

[0027] Exemplary Systems

[0028] Figure 1 FIG. 1 is a schematic diagram of a system architecture of a path planning system provided by an exemplary embodiment of the present application. Figure 1 As shown, the path planning system 100 may include a robot 110, and the robot 110 may be used to clean a target area 120. A display screen 111 and a controller 112 may be installed on the robot 110. The controller 112 may be used to control the robot to execute the path planning method provided in the embodiment of the present application.

[0029] In one example, the controller 112 may receive the area to be cleaned input by the user through the display screen 111, and obtain the static map corresponding to the area to be cleaned and the virtual wall corresponding to the area to be cleaned from the database. Here, the database may be stored in the memory of the robot 110 or in an external memory connected to the robot 110 in communication; the static map may be marked with areas where some obstacles (such as pillars, etc.) scanned when building the map are located; the virtual wall may be an area that is poorly recognized by the sensor on the robot 110, an area where obstacles are located, and / or an artificially set prohibited area. The controller 112 may perform map preprocessing based on the static map and the virtual wall to obtain a set of target polygons with holes, each of which may be regarded as a target area, and the holes in the polygon may be obstacles and / or virtual walls in the aforementioned static map.

[0030] For each target area, the controller 112 may divide the target area into a plurality of original sub-areas, calculate the optimal operating direction of each of the plurality of original sub-areas, and merge the adjacent original sub-areas to obtain a merged sub-area when the angle between the optimal operating directions corresponding to adjacent original sub-areas is less than or equal to the first threshold. In this way, the number of the merged sub-areas is less than the number of the original sub-areas, and the path planning is performed based on the merged sub-areas to obtain a planned path.

[0031] Furthermore, the controller 112 may control the robot to perform cleaning operations in the target area based on the planned path.

[0032] In other examples, the controller 112 may be located external to the robot 110 , such as being a separate device from the robot 110 .

[0033] Exemplarily, the controller 111 may include at least one of a logic controller, a machine vision controller, a motion controller, and the like.

[0034] In other examples, the robot 110 may not be equipped with the display screen 111, and the display screen 111 may be installed on other interactive devices, which may be electronic devices such as notebooks and mobile phones, for communicating with the robot 110. The interactive device may be installed with operation front-end software, which may display the operation front-end software through the display screen 111 and receive the area to be cleaned input by the user through the operation front-end software, and then send the area to be cleaned to the controller 112.

[0035] It should be understood that the above application scenario examples are only shown to facilitate understanding of the spirit and principle of the present application, and the embodiments of the present application are not limited thereto. On the contrary, the embodiments of the present application can be applied to any scenario that may be applicable.

[0036] Exemplary Methods

[0037] Figure 2 Shown is a flow chart of a path planning method provided by an exemplary embodiment of the present application. Figure 2 The method can be Figure 1 The controller in is executed. Figure 2 As shown, the path planning method may include the following contents.

[0038] 210: Divide the target operation area into a plurality of original sub-areas.

[0039] Specifically, the target operation area may be a complex scene such as a supermarket, a shopping mall or a station. The edge of the target operation area may be a regular or irregular shape, and the target operation area may contain a prohibited area, which may include an area where obstacles are located and / or an area set up artificially. Obstacles may be indoor pillars, placed objects, etc.

[0040] The target operation area may be the operation area of ​​the robot, and the operation area may be a cleaning area, a spraying area, a sowing area or other areas, etc. The following takes the cleaning area as an example, that is, the operation task of the robot is cleaning, to explain the path planning method provided in the embodiment of the present application, and the situations of other operation areas are similar and will not be repeated.

[0041] The target operation area can be divided into a plurality of original sub-areas according to the shape of the prohibited area. For example, the method of dividing the target operation area into a plurality of original sub-areas can be a cattle-plow decomposition method, a trapezoidal decomposition method or other methods that can decompose the target operation area into a plurality of original sub-areas along the prohibited area.

[0042] 220: Calculate the optimal operation direction of each original sub-area in the plurality of original sub-areas.

[0043] Specifically, the optimal operating direction can be the best direction in a certain aspect (for example, operating efficiency, operating leakage rate, or a combination of the two, etc.) determined by skilled technicians based on experience, such as the direction with the highest operating efficiency, the direction with the lowest operating leakage rate, or the direction with as high operating efficiency as possible and as low an operating leakage rate as possible.

[0044] In one embodiment of the present application, the optimal operation direction is used to seek a balance between the optimal operation efficiency of the original sub-area and the lowest leakage rate of the original sub-area. For example, the optimal operation direction can be determined based on the area of ​​the continuous area of ​​the original sub-area and the equivalent length / equivalent width of the original sub-area.

[0045] In one example, the optimal working direction is used to represent the direction in which the weighted sum of the equivalent length of the original sub-area and the area of ​​the continuous region of the original sub-area is the largest. For any working direction, the equivalent length is used to represent the length of the longest line segment intersecting the straight line parallel to the working direction and the original sub-area, and the continuous region is used to represent the complete region with the largest area divided by two straight lines parallel to the working direction.

[0046] For example, for any original sub-area, the working direction may be a straight line working direction. For example, a plurality of parallel straight lines are arranged in the original sub-area along the working direction, and the straight lines may be connected by curves, so that a path may be obtained, along which the original sub-area may be cleaned, and the extension direction of the straight line may be regarded as the working direction.

[0047] For any given working direction, the original sub-area has a corresponding equivalent length and a corresponding continuous area, that is, the equivalent lengths corresponding to different working directions may be different, and the continuous areas corresponding to different working directions may also be different. For any given working direction, the equivalent length is used to represent the length of the longest line segment intersecting the straight line parallel to the working direction and the original sub-area; the continuous area is used to represent the complete area with the largest area divided by two straight lines parallel to the working direction from the original sub-area.

[0048] like Figure 3a As shown in the figure, the length of the longest line segment where the straight line parallel to the working direction intersects the original sub-area can be expressed as L. The original sub-area is framed by two straight lines parallel to the working direction, that is, the two straight lines are located at the boundaries of the two sides of the original sub-area, and the distance between the two straight lines can be expressed as the equivalent width W. The original sub-area is divided by two straight lines parallel to the working direction. The complete area with the largest area framed by the two straight lines is the continuous area, as shown in the figure below. Figure 3a The shaded area in .

[0049] The score of the current operating direction can be characterized by the weighted sum of the equivalent length of the original sub-area and the area of ​​the continuous area of ​​the original sub-area. The higher the score, the better the cleaning efficiency can be improved by cleaning along the operating direction. To a certain extent, it can also reduce the risk of collision and the risk of missed sweeping. Therefore, the direction with the largest weighted sum of the equivalent length and the area of ​​the continuous area can be taken as the optimal operating direction, that is, the optimal cleaning direction. It should be understood that the equivalent length and the area of ​​the continuous area can be two contradictory quantities, that is, the larger the equivalent length, the smaller the area of ​​the continuous area may be. The desired optimal cleaning direction should be that the equivalent length is as short as possible (corresponding to the optimal operating efficiency) and the area of ​​the continuous area is as large as possible (corresponding to the lowest missed operation rate, such as the lowest missed sweeping rate). Therefore, reasonable weight values ​​can be set for the equivalent length and the area of ​​the continuous area to obtain the optimal operating direction, and the weight values ​​can be set according to actual needs.

[0050] In one example, for any original sub-area, each operating direction between 0-180 degrees may be traversed to select the best operating direction. Optionally, some operating directions between 0-180 degrees, such as 0 degrees, 30 degrees, 60 degrees, 90 degrees, 120 degrees, and 150 degrees, may be traversed, which can reduce computing power and improve the efficiency of the entire path planning process.

[0051] In one example, the length of the longest line segment where a straight line parallel to the working direction intersects the original sub-area can be directly used as the equivalent length. In another example, the area of ​​the original sub-area can be divided by the equivalent width to obtain the equivalent length. In another example, the area of ​​the continuous area can be divided by the equivalent width to obtain the equivalent length.

[0052] Optionally, in other examples, the optimal operation direction may be determined by those skilled in the art based on experience of operation efficiency or big data analysis.

[0053] 230: When the angle between the optimal operating directions corresponding to adjacent original sub-areas is less than or equal to the first threshold, merge the adjacent original sub-areas to obtain a merged sub-area.

[0054] Adjacent original sub-areas may include two original sub-areas or more than two original sub-areas that are adjacent in sequence. If the angle between the optimal operating directions corresponding to adjacent original sub-areas is less than or equal to the first threshold, it indicates that the optimal operating directions of the adjacent original sub-areas are similar. If the adjacent original sub-areas are merged, the number of sub-areas can be reduced, the efficiency of the subsequent wiring process can be improved, and the subsequent cleaning efficiency can be improved, and the risk of collision and the risk of missed scanning can be reduced to a certain extent.

[0055] The first threshold value can be set according to actual needs, for example, the first threshold value can be set to 0, 0.1 or other values.

[0056] 240: Perform path planning based on the merged sub-region and the remaining sub-region to obtain a planned path, wherein the remaining sub-region is obtained based on the original sub-regions after removing adjacent original sub-regions from the multiple original sub-regions.

[0057] For multiple original sub-areas, if the angle between the optimal working directions corresponding to adjacent original sub-areas is less than or equal to the first threshold, the adjacent original sub-areas are merged to obtain a merged sub-area, otherwise the original sub-areas are retained. By merging at least part of the multiple original sub-areas, a merged sub-area can be obtained. The merged sub-area may include the merged sub-area and the original sub-area (remaining sub-area).

[0058] By performing path planning based on the merged sub-areas and the remaining sub-areas, a planned path covering the entire target operation area can be obtained. In one example, an operation path can be planned in each of the merged sub-areas, and then the operation paths in each sub-area are connected to obtain a planned path covering the entire target operation area.

[0059] An embodiment of the present application provides a path planning method, which calculates the optimal working direction of each original sub-area in multiple original sub-areas, and merges adjacent original sub-areas to obtain a merged sub-area when the angle between the optimal working directions corresponding to adjacent original sub-areas is less than or equal to a first threshold. This can reduce the number of original sub-areas, simplify the planned path, and further improve the operating efficiency of the robot operating based on the planned path.

[0060] For the target operation area in complex scenes, the embodiment of the present application can merge multiple fragmented original sub-areas, which can improve the operation efficiency of the robot in complex scenes. Moreover, the embodiment of the present application merges the original sub-areas based on the optimal operation direction, which can reduce the risk of collision and the risk of missing operations in the subsequent robot operation process to a certain extent. The embodiment of the present application can realize automatic zoning and automatic planning of full coverage paths, which can reduce the difficulty of manual participation and deployment.

[0061] According to an embodiment of the present application, adjacent original sub-areas include at least a first original sub-area and a second original sub-area, wherein step 230 may include: when the angle between the optimal operating directions corresponding to adjacent original sub-areas is less than or equal to a first threshold, calculating the length of the overlapping part of the projection line segments of the first original sub-area and the second original sub-area in a set direction, wherein the set direction is obtained based on the optimal operating direction corresponding to the first original sub-area and / or the optimal operating direction corresponding to the second original sub-area; when the length is greater than or equal to the second threshold, merging the adjacent original sub-areas to obtain a merged sub-area.

[0062] In one example, the first original sub-area is adjacent to the second original sub-area. In another example, the adjacent original sub-areas include the first original sub-area, the second original sub-area, and the third original sub-area, and the third original sub-area is located between the first original sub-area and the second original sub-area, that is, the first original sub-area, the third original sub-area, and the second original sub-area are adjacent in sequence, and the angle between the optimal operating directions of the three original sub-areas is less than or equal to the first threshold.

[0063] Specifically, the set direction may be the best operating direction of the first original sub-area, the best operating direction of the second original sub-area, or the average direction of the best operating directions of the first original sub-area and the second original sub-area. Figure 3b As shown, the projected line segments of the first original sub-area and the second original sub-area in the set direction are L1 and L2 respectively, and the length of the overlapping part of the projected line segments L1 and L2 is OL. If the length OL is greater than or equal to the second threshold, the first original sub-area and the second original sub-area can be merged, or if there is a third original sub-area, the first original sub-area, the third original sub-area and the second original sub-area can be merged. If the length OL is less than the second threshold, if the adjacent original sub-areas are merged, the merged sub-area obtained is long and narrow. Figure 3bAs shown, if the end point of the working path of the first original sub-area is at the lower right corner of the first original sub-area, it will be difficult to arrange the line when planning the paths in the third original sub-area and the second original sub-area, that is, the path planning difficulty is high, and the robot is prone to collision and low efficiency when working based on the planned path. Therefore, when the length OL is greater than or equal to the second threshold, the adjacent original sub-areas are merged, which can simplify the planned path and improve the working efficiency of the robot working based on the planned path. In addition, it can avoid increasing the difficulty of path planning on the basis of the original solution and avoid increasing the risk of collision.

[0064] The second threshold can be set according to actual needs.

[0065] In this embodiment, when the angle between the optimal operating directions corresponding to adjacent original sub-areas is less than or equal to a first threshold, and the length of the overlapping part of the projection line segments of the first original sub-area and the second original sub-area in the set direction is greater than or equal to a second threshold, the adjacent original sub-areas are merged to obtain a merged sub-area. This can simplify the planned path, avoid increasing the difficulty of path planning, and avoid increasing the risk of collision, thereby improving work efficiency.

[0066] According to an embodiment of the present application, step 240 may include: for any area in the merged sub-area and the remaining sub-area, dividing the area into multiple parallel straight paths, and the multiple straight paths are parallel to the optimal working direction corresponding to the area; planning a curved path between the multiple straight paths, so that the multiple straight paths are connected by the curved path to form an working path, and the two straight paths connected by the curved path in the working path include at least one straight path among the multiple straight paths; based on the working path of the area, obtaining a planned path.

[0067] For any area in the merged sub-area and the remaining sub-area, the area can be arranged, that is, multiple parallel straight paths are divided in the area. When the area is an original sub-area, the multiple straight paths are parallel to the optimal working direction corresponding to the original sub-area. When the area is a merged sub-area, the multiple straight paths are parallel to the optimal working direction of the merged sub-area. The optimal working direction of the merged sub-area can be the optimal working direction corresponding to any one of the original sub-areas before the merged sub-area is merged, or the average direction of the optimal working directions of the original sub-areas before the merged sub-area is merged, or the optimal working direction recalculated for the merged sub-area, that is, the direction with the maximum weighted sum of the equivalent length of the merged sub-area and the area of ​​the continuous area of ​​the merged sub-area.

[0068] In one example, the end point of one of two adjacent straight paths can be connected with the starting point of the other straight path through a curved path to obtain the operation path of the area. Along the forward direction of the operation path, the starting point of each straight path can be the first point where the robot passes through the straight path, and the end point of the straight path can be the last point where the robot passes through the straight path.

[0069] In another example, two straight paths can be selected from multiple straight paths at a time, and the end point of one of the two straight paths is connected to the starting point of the other straight path through a curved path to obtain the working path of the area. There is at least one straight path between the two straight paths. In this way, the curved path can have a larger turning radius, which is convenient for the robot to pass through the curved path part and avoids the robot from leaking water on the side or missing the working area during the turning process. Figure 3c The figure shows a schematic diagram of an operation path provided by an exemplary embodiment of the present application, and two straight paths connected by a curved path may be separated by one straight path, two straight paths, or three straight paths. It should be understood that in other examples, the number of straight paths separated by any two straight paths connected by a curved path may be the same. Figure 3c There is an intersection between the two adjacent curved paths shown, which can make up for the blind spot area of ​​the robot's turning process and reduce the missed operation area of ​​the robot during the turning process.

[0070] Furthermore, the operation paths of various areas can be connected to obtain a planned path.

[0071] In this embodiment, the straight path can be arranged at intervals, that is, two straight paths separated by at least one straight path can be connected through a curved path, that is, the forward arrangement of the line can be jumped, so that the turning radius of the curved path can be increased, providing a wide enough space for each U-turn of the robot, and reducing the missed operation area. In addition, compared with small household robots that do not need to consider the turning radius constraint, commercial cleaning robots have certain requirements for the turning radius. This embodiment can increase the turning radius of the curved path, thereby preventing the robot from leaking water on the side during the turning process, thereby improving safety.

[0072] In one embodiment of the present application, a curved path is planned between multiple straight paths so that the multiple straight paths are connected by the curved path to form an operation path, including: using the Dubins curve method to plan a first initial curved path between the multiple straight paths; when the first initial curved path satisfies a no-collision constraint, using the first initial curved path as the curved path between the multiple straight paths.

[0073] Specifically, the curved path between two straight paths can be planned by the Dubins curve method. Specifically, the Dubins curve method can be used to plan the first initial curved path between the two straight paths, and when the first initial curved path satisfies the non-collision constraint, the first initial curved path is used as the curved path between the two straight paths. Using the Dubins curve method to plan the curved path can improve efficiency.

[0074] For example, if the first initial curve path does not meet the non-collision constraint, the Dubins curve method output fails, that is, the Dubins curve path planning fails. At this time, other path planning methods or manual methods can be used to plan the curve path.

[0075] Specifically, the no-collision constraint can be implemented by a grid map collision judgment method, a polygon collision judgment method or a code method. The grid map collision judgment method has high computational efficiency, and the polygon collision judgment method has high accuracy of the result. The grid map collision judgment method includes: projecting the robot model onto multiple sampling points on the dubins curve, judging based on the grid map whether the grid corresponding to the model projection at each sampling point will intersect with the grid corresponding to the forbidden area (or the area where the obstacle is located), if no intersection is generated, the no-collision constraint is satisfied, if an intersection is generated, the no-collision constraint is not satisfied. The range of the grid map can be equal to or greater than the range corresponding to the current merged sub-area or the remaining sub-area. The polygon collision judgment method includes: projecting the robot model onto multiple sampling points on the dubins curve, for each sampling point, judging whether the polygon corresponding to the robot outline and the forbidden area polygon (or the polygon in the area where the obstacle is located) have an intersection, if there is no intersection, the no-collision constraint is satisfied, if there is an intersection, the no-collision constraint is not satisfied. The code method may include: for multiple sampling points on the Dubins curve, judging whether the sampling points fall into the grid corresponding to the prohibited area (or the area where the obstacle is located), or whether they fall into the polygon of the prohibited area (or the polygon of the area where the obstacle is located); if they do not fall into it, the no-collision constraint is satisfied; if they fall into it, the no-collision constraint is not satisfied.

[0076] In one example, a curved path is planned between multiple straight paths so that the multiple straight paths are connected by the curved path to form an operation path, and the method further includes: when the first initial curved path does not satisfy the collision-free constraint, a second initial curved path between the multiple straight paths is planned using the hybrid A* method; and the second initial curved path is used as the curved path between the multiple straight paths.

[0077] Compared with the Dubins curve method, the hybird A* method has a large amount of calculation, but the hybird A* method can plan a more reasonable curve path.

[0078] In this embodiment, the Dubins curve method can be used to plan the curved path, which can improve the efficiency of path planning. When the Dubins curve method cannot output a curved path that satisfies the collision-free constraint, the Hybird A* method can be used to plan the curved path, which can output a reasonable curved path as much as possible while ensuring the efficiency of path planning.

[0079] According to one embodiment of the present application, two straight paths connected by a curved path include a first straight path and a second straight path, and the input of the Dubins curve method includes a starting point and an ending point, the starting point includes any point in a first end segment of the first straight path, the ending point includes any point in a second end segment of the second straight path, and the position of the first end segment on the first straight path corresponds to the position of the second end segment on the second straight path.

[0080] Specifically, the first end segment may be the segment where the robot first passes through the first straight path, and the second end segment may be the segment where the robot last passes through the second straight path. Figure 3c The direction of the working path shown is taken as an example to illustrate the position correspondence between the first end segment and the second end segment. The first end segment may be the upper end segment of the first straight path, and the second end segment may be the upper end segment of the second straight path.

[0081] For example, a point can be selected from multiple points in the first end segment as the starting point, and a point can be selected from multiple points in the second end segment as the ending point, thereby obtaining a set of starting points and ending points. By selecting different starting points and different ending points for combination, multiple sets of starting points and ending points can be obtained. In one example, each set of starting points and ending points can be traversed, and the Dubins curve can be used for path planning to obtain a first initial curve path until the first initial curve path satisfies the collision-free constraint. If a curve path that satisfies the collision-free constraint is still not obtained after traversing multiple sets of starting points and ending points, the hybrid A* method can be used to plan the curve path.

[0082] Furthermore, the input of the Dubins curve method may also include the forward direction of the starting point and the forward direction of the end point. Figure 3c Taking the direction of the working path shown in FIG. 1 as an example, the forward direction of the starting point can be upward or downward. When the forward direction of the starting point is upward, the forward direction of the end point is downward; when the forward direction of the starting point is downward, the forward direction of the end point is upward. Furthermore, the input of the Dubins curve method can also include the turning radius constraint of the robot, that is, the turning radius of the curve path needs to be greater than or equal to the preset turning radius, and the preset turning radius can be set according to actual needs, such as 0.4 meters, 0.5 meters or other values.

[0083] In this embodiment, by selecting any point in the first end segment as the starting point and selecting any point in the second end segment as the ending point, the success rate of the Dubins curve method can be improved.

[0084] Similarly, in one embodiment, the input of the hybrid A* method includes a starting point and an end point. As described above, the starting point may include any point in the first end segment of the first straight path, and the end point may include any point in the second end segment of the second straight path. Further, the input of the hybrid A* method may also include the forward direction of the starting point and the forward direction of the end point. The forward direction of the starting point and the forward direction of the end point can refer to the description above. Further, the input of the hybrid A* method may also include a grid map, and the range of the grid map may be equal to or greater than the range corresponding to the current merged sub-area or the remaining sub-area. Since the input of the hybrid A* method includes a grid map, the operation process of the hybrid A* method is performed in a blank grid (not a prohibited area) in the grid map, that is, the curve path output by the hybrid A* method satisfies the collision-free constraint.

[0085] In other embodiments, the input of the hybrid A* method may further include a turning radius constraint of the robot, that is, the turning radius of the curved path needs to be greater than or equal to a preset turning radius, and the preset turning radius can be set according to actual needs, such as 0.4 meters, 0.5 meters or other values.

[0086] According to an embodiment of the present application, step 240 may include: sorting the merged sub-areas and the remaining sub-areas according to a predetermined rule to obtain a sorting result, and planning a connection path between adjacent areas in the merged sub-areas and the remaining sub-areas according to the sorting result to obtain a planned path.

[0087] Specifically, after the merging process is completed, the multiple areas (merged sub-areas and remaining sub-areas) are sorted according to a predetermined rule to obtain a sorting result. The predetermined rule may be set before the execution of the path planning method provided in the embodiment of the present application, or may be set during the execution of the path planning method provided in the embodiment of the present application.

[0088] In some examples, the predetermined rule may be a random rule or a specific algorithm. For example, the sorting process may be performed manually or by an algorithm. According to the sorting result, adjacent sorted areas in the plurality of areas may be connected in sequence, that is, connection paths between adjacent sorted areas may be planned. The connection paths between areas and the operation paths in each area together constitute a planned path covering the target operation area. The planning method for the connection path may be the dubins curve method, the hybrid A* method, or other path planning methods.

[0089] In this embodiment, by sorting the merged sub-areas and the remaining sub-areas, the mileage of the final path can be considered in the sorting process, so that a planned path with a smaller mileage can be obtained, thereby improving work efficiency.

[0090] According to an embodiment of the present application, the predetermined rule includes a genetic algorithm, the sorting result includes a first sorting result, the merged sub-area and the remaining sub-area are sorted according to the predetermined rule to obtain a sorting result, and a connection path between adjacent areas in the merged sub-area and the remaining sub-area is planned according to the sorting result to obtain a planned path, including: using a genetic algorithm to sort the merged sub-area and the remaining sub-area to obtain a first sorting result, and using an A* planning method to plan a connection path between adjacent areas in the merged sub-area and the remaining sub-area according to the first sorting result to obtain a first path; obtaining a second sorting result based on the first sorting result according to the genetic algorithm, and using the A* planning method to plan a connection path between adjacent areas in the merged sub-area and the remaining sub-area according to the second sorting result to obtain a second path; updating the second sorting result to the first sorting result, iteratively executing the steps of obtaining a second sorting result based on the first sorting result according to the genetic algorithm, and using the A* planning method to plan a connection path between adjacent areas in the merged sub-area and the remaining sub-area according to the second sorting result to obtain a second path; and selecting a planned path from the first path and the second path with the shortest path as the goal.

[0091] A genetic algorithm is used to sort the merged sub-areas and the remaining sub-areas to obtain a first sorting result. This sorting may be a random sorting. According to the first sorting result, an A* planning method may be used to sequentially plan connection paths for adjacent sorted areas in a plurality of areas, i.e., to obtain a first path. The first path may include an operation path in each area and a connection path between each area. A second sorting result may be obtained based on the first sorting result according to a genetic algorithm. For example, a genetic algorithm may be used to replicate and mutate the first sorting result to obtain a second sorting result. According to the second sorting result, an A* planning method may be used to sequentially plan connection paths for adjacent sorted areas in a plurality of areas, i.e., to obtain a second path. The second sorting result is updated to the first sorting result, and the steps of obtaining the second sorting result based on the first sorting result according to the genetic algorithm are iteratively executed, and the steps of planning the connection path between the merged sub-areas and the adjacent areas in the remaining sub-areas according to the second sorting result using the A* planning method to obtain the second path.

[0092] The goal of the shortest path may have corresponding prerequisites. In one example, during the iteration process, when the mileage area of ​​the second path converges stably, that is, the mileage difference of the second paths obtained in the most recent iterations is very small, the iteration process can be stopped, and the second path obtained in the last iteration or the shortest path among all paths (including the first path and all second paths) is used as the planned path. In this example, the small difference in the mileage of the second paths obtained in the most recent iterations can be considered as a prerequisite corresponding to the goal of the shortest path. In another example, a threshold of the number of iterations can be preset. When the number of iterations reaches the preset threshold of the number of iterations, the iteration process can be stopped, and the shortest path among all paths (including the first path and all second paths) obtained in the iteration process is used as the planned path. In this example, the preset threshold of the number of iterations can be considered as a prerequisite corresponding to the goal of the shortest path.

[0093] In one example, the input of the A* planning method may include a grid map and a starting point and an end point corresponding to each area. The grid map may be a map corresponding to the entire target operation area.

[0094] In one example, if the planning process of the curved path is performed before the planning process of the connected path, in the planning process of the curved path, for each of the multiple areas (the merged sub-areas and the remaining sub-areas), four start-end point routing methods can be calculated to obtain four operation paths. Figure 3cTaking the direction of the operation path shown as an example, there are four starting points corresponding to the four start-end routing methods, that is, the starting point is located at the upper end or lower end of the straight path on the outermost side (left or right) of the area, that is, four possibilities. When the position of the starting point is determined, the end point can be obtained by jumping forward to arrange the line, that is, a work path is obtained. The starting point and end point of each work path can be used as the starting point and end point in the planning process of the connection path.

[0095] In another example, if the planning process of the connection path is performed before the planning process of the curve path, in the planning process of the connection path, for each of the multiple areas (merged sub-areas and remaining sub-areas), any of the four starting points in the above example can be selected, and the corresponding end point can be located at one end of the straight path at the outermost side of the area and away from the starting point. The specific end can be determined according to the odd and even numbers of the straight path, such as the upper end or the lower end. This end point can be an estimated point and can be close to the end point of the operation path, so that computing power can be saved.

[0096] The genetic algorithm can output a sorting result each time, as well as one of the four start-end alignment methods corresponding to each area under the sorting result. That is, the genetic algorithm can not only sort multiple areas, but also select one of the four start-end alignment methods corresponding to each area.

[0097] In this embodiment, the genetic algorithm and the A* planning method are combined to optimize the series connection between the merged sub-areas and the remaining sub-areas, so that a planning path with a smaller mileage can be obtained, thereby improving the operation efficiency.

[0098] According to one embodiment of the present application, the path planning method also includes: obtaining the real-time speed of the robot running in the target working area; based on the planned path and the real-time speed, using the model prediction path integration method to predict the robot's local working path and speed in real time to obtain a predicted working path and a predicted speed; and controlling the robot to travel along the predicted working path according to the predicted speed.

[0099] After obtaining the planned path, the robot can be controlled to perform operations in the target operating area based on the planned path.

[0100] In one example, the real-time speed of the robot running in the target operation area can be obtained, and the local operation path and speed of the robot can be predicted in real time using the model prediction path integral method according to the planned path and the real-time speed. The input of the model prediction path integral (MPPI) method can include the real-time speed and the planned path of the robot. The local operation path and the corresponding speed of the robot can be predicted in real time using the model prediction path integral method.

[0101] For example, Figure 3d As shown, the initial input of the first prediction process of the model prediction path integral method can be a speed initial value sequence (Sequence.vx = [v1, v2, v3, ...]), which can include multiple speed parameters, such as 10. Based on the speed initial value sequence, multiple groups of speed sequences (State.cvx = [v1+u1, v2+u2, v3+u3, ...]) can be obtained by sampling (random sampling) through Gaussian distribution, such as 500 groups, and each group of sequences is obtained by adding a noise value (u1, u2, u3) to each speed parameter in the speed initial value sequence. The noise values ​​corresponding to different speed parameters in each group of sequences can be different, such as random, which can improve the flexibility of the local operation path, especially when turning, even if the space is small, it can reduce the risk of collision and missed scanning. Furthermore, the noise values ​​corresponding to the same speed parameters in different sequences can also be different. Merging the robot's real-time speed (the current actual speed, Speed.x = [v0]) and multiple groups of speed sequences is equivalent to updating the state, and obtaining multiple groups of merged speed sequences (each group of merged speed sequences can be expressed as State.vx = [v0, cv1, cv2, ...]), such as 500 groups, and each group of merged speed sequences includes 11 speed parameters. Integrating each group of merged speed sequences can obtain multiple local operation paths, such as 500 local operation paths. According to the similarity between the multiple local operation paths and the planned path, the weight value corresponding to each local operation path is determined, such as the higher the similarity, the greater the weight value corresponding to the local operation path. According to the weight value, weighted calculation is performed on the multiple local operation paths (such as calculation by the normalized exponential function Softmax), and a predicted operation path can be obtained. Each local operation path corresponds to a group of speed sequences, that is, the speed sequence, the local operation path and the weight value have a one-to-one correspondence. According to the weight value, weighted calculation is performed on the multiple groups of speed sequences to obtain the predicted speed, which can be a speed sequence, such as 10 speed parameters. The robot can be controlled to travel and operate along the predicted working path according to the predicted speed.

[0102] Next, the predicted speed can be used as the initial input of the second prediction process. By repeating the first prediction process, a new predicted speed and predicted operation path can be obtained. According to the new predicted speed, the robot can be controlled to continue driving and operating along the new predicted operation path. This is repeated to continuously predict the local operation path and speed of the robot until the robot completes the operation.

[0103] In one example, in each prediction process, the input of the model prediction path integration method may also include the turning radius of the robot and the grid map. The process of determining the weight value corresponding to each local operation path according to the similarity between the multiple local operation paths and the planned path may include: determining the weight value corresponding to each local operation path according to the similarity between the multiple local operation paths and the planned path, the turning radius constraint of the robot, and the grid map, so as to avoid the robot from colliding with obstacles, especially temporary obstacles, during driving.

[0104] In this embodiment, by predicting the local operation path and speed in real time, the operation path of the robot can be tracked and controlled in real time, so as to avoid the robot from colliding with obstacles, especially temporary obstacles, during the actual operation process.

[0105] The path planning method provided in the embodiment of the present application, by merging the original sub-areas, performs a jump-forward arrangement of the area after the merging process is completed, so as to increase the turning radius of the curved path, provide a wide enough space for each U-turn of the robot, reduce the missed operation area and reduce the risk of collision. Moreover, the path planning method provided in the embodiment of the present application reduces the number of original sub-areas, which can reduce the repeated operation part of the subsequent robot to a certain extent, and thus improve the operation efficiency of the robot operating based on the planned path. In addition, the embodiment of the present application can realize automatic zoning and automatic planning of the full coverage path, so as to reduce the difficulty of manual participation and deployment.

[0106] Figure 4 Shown is a flow chart of a path planning method provided by another exemplary embodiment of the present application. Figure 4 The embodiment is Figure 2 For the example of the embodiment, in order to avoid repetition, the same points can be referred to the description in the above embodiment, which will not be repeated here. Figure 4 As shown, the path planning method may include the following contents.

[0107] 410: Obtain the area to be operated through the operation front-end software, obtain the static map and the virtual wall corresponding to the area to be operated through the database, perform map preprocessing according to the static map and the virtual wall, and obtain a set of target operation areas.

[0108] The operation front-end software, database, static map and virtual wall can be found in the related descriptions in the previous text, and will not be repeated here. The target operation area can be the polygon with holes mentioned above.

[0109] 420: For each target operation area, divide the target operation area into a plurality of original sub-areas.

[0110] The specific process of dividing the target operation area into a plurality of original sub-areas can be found in the relevant description in the above embodiment, which will not be repeated here.

[0111] 430: Calculate the optimal operation direction of each original sub-area in the plurality of original sub-areas.

[0112] The best working direction can be found in the relevant description in the above embodiments, which will not be repeated here.

[0113] 440: When the angle between the optimal operating directions corresponding to adjacent original sub-areas is less than or equal to a first threshold, the length of the overlapping portion of the projection line segments of the first original sub-area and the second original sub-area in the set direction is calculated; when the length is greater than or equal to the second threshold, the adjacent original sub-areas are merged to obtain a merged sub-area.

[0114] The first threshold, the first original sub-area, the second original sub-area, the set direction, the projection line segment and the second threshold can refer to the relevant description in the above embodiments, which will not be repeated here.

[0115] 450: For any area in the merged sub-area and the remaining sub-area, a plurality of mutually parallel straight paths are divided in the area, the plurality of straight paths are parallel to the optimal working direction corresponding to the area, and a curved path between the plurality of straight paths is planned so that the plurality of straight paths are connected by the curved path to form an working path.

[0116] The specific planning process of merging sub-areas, remaining sub-areas, straight paths, curved paths, operating paths, and straight paths and curved paths can be found in the relevant descriptions in the above embodiments, which will not be repeated here.

[0117] 460: Sort the merged sub-areas and the remaining sub-areas according to a predetermined rule to obtain a sorting result, and plan a connection path between adjacent areas in the merged sub-areas and the remaining sub-areas according to the sorting result to obtain a planned path.

[0118] The sorting results, connection paths, and the specific planning process of the connection paths can refer to the relevant descriptions in the above embodiments.

[0119] 470: Obtain the real-time speed of the robot running in the target operation area. According to the planned path and the real-time speed, use the model prediction path integration method to predict the local operation path and speed of the robot in real time, obtain the predicted operation path and predicted speed, and control the robot to travel along the predicted operation path according to the predicted speed.

[0120] The predicted operation path, predicted speed and specific prediction process can be found in the relevant description in the above embodiment, which will not be repeated here.

[0121] Exemplary Devices

[0122] Figure 5 FIG. 5 is a schematic diagram of the structure of a path planning device 500 provided by an exemplary embodiment of the present application. Figure 5 As shown, the path planning device 500 includes: a division module 510, a calculation module 520, a merging module 530 and a planning module 540.

[0123] The division module 510 is used to divide the target operation area into a plurality of original sub-areas. The calculation module 520 is used to calculate the optimal operation direction of each original sub-area in the plurality of original sub-areas. The merging module 530 is used to merge adjacent original sub-areas to obtain a merged sub-area when the angle between the optimal operation directions corresponding to adjacent original sub-areas is less than or equal to a first threshold. The planning module 540 is used to perform path planning based on the merged sub-area and the remaining sub-areas to obtain a planned path, wherein the remaining sub-area is obtained based on the original sub-areas in the plurality of original sub-areas after removing the adjacent original sub-areas.

[0124] An embodiment of the present application provides a path planning device, which calculates the optimal working direction of each original sub-area in multiple original sub-areas, and merges adjacent original sub-areas to obtain a merged sub-area when the angle between the optimal working directions corresponding to adjacent original sub-areas is less than or equal to a first threshold. This can reduce the number of original sub-areas, simplify the planned path, and further improve the operating efficiency of a robot operating based on the planned path.

[0125] According to one embodiment of the present application, the optimal operating direction of the original sub-area is used to represent the direction in which the weighted sum of the equivalent length of the original sub-area and the area of ​​the continuous region of the original sub-area is the largest. For any operating direction, the equivalent length is used to represent the length of the longest line segment intersecting the straight line parallel to the operating direction and the original sub-area, and the continuous area is used to represent the complete area with the largest area divided by two straight lines parallel to the operating direction.

[0126] According to an embodiment of the present application, adjacent original sub-areas include at least a first original sub-area and a second original sub-area, wherein the merging module 530 is used to: when the angle between the optimal operating directions corresponding to adjacent original sub-areas is less than or equal to a first threshold, calculate the length of the overlapping part of the projection line segments of the first original sub-area and the second original sub-area in a set direction, wherein the set direction is obtained based on the optimal operating direction corresponding to the first original sub-area and / or the optimal operating direction corresponding to the second original sub-area; when the length is greater than or equal to the second threshold, merge the adjacent original sub-areas to obtain a merged sub-area.

[0127] According to an embodiment of the present application, the planning module 540 is used to: for any area in the merged sub-area and the remaining sub-area, divide the area into multiple parallel straight paths, and the multiple straight paths are parallel to the optimal working direction corresponding to the area; plan a curved path between the multiple straight paths, so that the multiple straight paths are connected by the curved path to form an working path, and the two straight paths connected by the curved path in the working path include at least one straight path among the multiple straight paths; based on the working path of the area, obtain a planned path.

[0128] According to one embodiment of the present application, the planning module 540 is used to: use the Dubins curve method to plan a first initial curve path between multiple straight paths; when the first initial curve path satisfies the collision-free constraint, use the first initial curve path as the curve path between multiple straight paths.

[0129] According to one embodiment of the present application, the planning module 540 is also used to: when the first initial curve path does not satisfy the collision-free constraint, use the hybrid A* method to plan a second initial curve path between multiple straight paths; and use the second initial curve path as the curve path between the multiple straight paths.

[0130] According to one embodiment of the present application, two straight paths connected by a curved path include a first straight path and a second straight path, and the input of the Dubins curve method includes a starting point and an ending point, the starting point includes any point in a first end segment of the first straight path, the ending point includes any point in a second end segment of the second straight path, and the position of the first end segment on the first straight path corresponds to the position of the second end segment on the second straight path.

[0131] According to an embodiment of the present application, the planning module 540 is used to: sort the merged sub-areas and the remaining sub-areas according to a predetermined rule to obtain a sorting result, and plan a connection path between adjacent areas in the merged sub-areas and the remaining sub-areas according to the sorting result to obtain a planned path.

[0132] According to an embodiment of the present application, the predetermined rule includes a genetic algorithm, the sorting result includes a first sorting result, and the planning module 540 is used to: use a genetic algorithm to sort the merged sub-areas and the remaining sub-areas to obtain a first sorting result, and use an A* planning method to plan a connection path between adjacent areas in the merged sub-areas and the remaining sub-areas according to the first sorting result to obtain a first path; obtain a second sorting result based on the first sorting result according to the genetic algorithm, and use an A* planning method to plan a connection path between adjacent areas in the merged sub-areas and the remaining sub-areas according to the second sorting result to obtain a second path; update the second sorting result to the first sorting result, iteratively execute the steps of obtaining a second sorting result based on the first sorting result according to the genetic algorithm, and use an A* planning method to plan a connection path between adjacent areas in the merged sub-areas and the remaining sub-areas according to the second sorting result to obtain a second path; and select a planned path from the first path and the second path with the shortest path as the goal.

[0133] According to one embodiment of the present application, the planning module 540 is also used to: obtain the real-time speed of the robot running in the target working area; based on the planned path and the real-time speed, use the model prediction path integration method to predict the local working path and speed of the robot in real time to obtain the predicted working path and predicted speed; and control the robot to travel along the predicted working path according to the predicted speed.

[0134] It should be understood that the operations and functions of the division module 510, the calculation module 520, the merging module 530, and the planning module 540 in the above embodiment can refer to the above Figure 2 or Figure 4 The description of the path planning method provided in the embodiment will not be repeated here to avoid repetition.

[0135] An embodiment of the present application also provides a robot, which includes a control module, and the control module is used to execute the path planning method provided in any of the above embodiments.

[0136] In some embodiments, the robot can be a cleaning robot, and the appearance of the cleaning robot can be a vehicle shape or other shapes. In other embodiments, the robot can be a sowing, spraying or other robot.

[0137] The operation and functions of the robot provided in the embodiment of the present application can refer to the above Figure 2 or Figure 4 The description of the path planning method provided in the embodiment will not be repeated here to avoid repetition.

[0138] Figure 6 FIG. 6 is a block diagram of an electronic device 600 for executing a path planning method provided by an exemplary embodiment of the present application. The electronic device 600 may be a robot, a remote control device for controlling a robot, or other devices.

[0139] Reference Figure 6 , the electronic device 600 includes a processing component 610, which further includes one or more processors, and a memory resource represented by a memory 620 for storing instructions executable by the processing component 610, such as an application. The application stored in the memory 620 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 610 is configured to execute instructions to perform the above-mentioned path planning method.

[0140] The electronic device 600 may also include a power supply component configured to perform power management of the electronic device 600, a wired or wireless network interface configured to connect the electronic device 600 to a network, and an input / output (I / O) interface. The electronic device 600 may be operated based on an operating system stored in the memory 620, such as Windows Server 2000. TM , Mac OSX TM , Unix TM , Linux TM , FreeBSD TM or similar.

[0141] A non-temporary computer-readable storage medium, when instructions in the storage medium are executed by a processor of the electronic device 600, enables the electronic device 600 to execute a path planning method.

[0142] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, and will not be described one by one here.

[0143] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0144] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0145] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0146] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0147] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0148] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program check codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0149] It should be noted that, in the description of this application, the terms "first", "second", "third", etc. are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.

[0150] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0151] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A path planning method, characterized in that: include: Divide the target operation area into a plurality of original sub-areas; Calculating the optimal operation direction of each original sub-area in the plurality of original sub-areas; When the angle between the optimal operating directions corresponding to adjacent original sub-areas is less than or equal to a first threshold, merging the adjacent original sub-areas to obtain a merged sub-area; Path planning is performed based on the merged sub-region and the remaining sub-region to obtain a planned path, wherein the remaining sub-region is obtained based on the original sub-regions of the multiple original sub-regions after removing the adjacent original sub-regions.

2. The path planning method according to claim 1, characterized in that: The optimal working direction of the original sub-area is used to represent the direction in which the weighted sum of the equivalent length of the original sub-area and the area of ​​the continuous region of the original sub-area is the largest. For any working direction, the equivalent length is used to represent the length of the longest line segment intersecting the straight line parallel to the working direction and the original sub-area, and the continuous region is used to represent the complete region with the largest area divided by two straight lines parallel to the working direction.

3. The path planning method according to claim 1, characterized in that: The adjacent original sub-areas include at least a first original sub-area and a second original sub-area, wherein, when the angle between the optimal operating directions corresponding to the adjacent original sub-areas is less than or equal to a first threshold, merging the adjacent original sub-areas to obtain a merged sub-area includes: When the angle between the optimal operating directions corresponding to the adjacent original sub-areas is less than or equal to the first threshold, calculating the length of the overlapping part of the projection line segments of the first original sub-area and the second original sub-area in a set direction, wherein the set direction is obtained based on the optimal operating direction corresponding to the first original sub-area and / or the optimal operating direction corresponding to the second original sub-area; When the length is greater than or equal to the second threshold, the adjacent original sub-regions are merged to obtain a merged sub-region.

4. The path planning method according to any one of claims 1 to 3, characterized in that: The performing path planning based on the merged sub-area and the remaining sub-areas to obtain a planned path includes: For any one of the merged sub-area and the remaining sub-area, a plurality of mutually parallel straight paths are divided in the area, and the plurality of straight paths are parallel to the optimal operation direction corresponding to the area; Planning a curved path between the plurality of straight paths, so that the plurality of straight paths are connected by the curved path to form an operation path, and at least one straight path among the plurality of straight paths is included between two straight paths connected by the curved path in the operation path; Based on the operation path in the area, the planned path is obtained.

5. The path planning method according to claim 4, characterized in that: The planning of the curved path between the plurality of straight paths so that the plurality of straight paths are connected by the curved path to form an operation path includes: Using the Dubins curve method to plan a first initial curve path between the plurality of straight line paths; In a case where the first initial curved path satisfies a non-collision constraint, the first initial curved path is used as the curved path between the plurality of straight paths.

6. The path planning method according to claim 5, characterized in that: The planning of the curved paths between the plurality of straight paths so that the plurality of straight paths are connected by the curved paths to form an operation path further includes: When the first initial curved path does not satisfy the non-collision constraint, a hybrid A* method is used to plan a second initial curved path between the plurality of straight paths; The second initial curved path is used as the curved path between the plurality of straight paths.

7. The path planning method according to claim 5, characterized in that: The two straight paths connected by the curve path include a first straight path and a second straight path. The input of the Dubins curve method includes a starting point and an ending point. The starting point includes any point in the first end segment of the first straight path, and the ending point includes any point in the second end segment of the second straight path. The position of the first end segment on the first straight path corresponds to the position of the second end segment on the second straight path.

8. The path planning method according to claim 1, characterized in that: The performing path planning based on the merged sub-area and the remaining sub-areas to obtain a planned path includes: The merged sub-areas and the remaining sub-areas are sorted according to a predetermined rule to obtain a sorting result, and a connection path between adjacent areas in the merged sub-areas and the remaining sub-areas is planned according to the sorting result to obtain the planned path.

9. The path planning method according to claim 8, characterized in that: The predetermined rule includes a genetic algorithm, the sorting result includes a first sorting result, sorting the merged sub-areas and the remaining sub-areas according to the predetermined rule to obtain the sorting result, and planning a connection path between adjacent areas in the merged sub-areas and the remaining sub-areas according to the sorting result to obtain the planned path, including: Using the genetic algorithm to sort the merged sub-regions and the remaining sub-regions to obtain the first sorting result, and using the A* planning method to plan a connection path between adjacent areas in the merged sub-region and the remaining sub-regions according to the first sorting result to obtain a first path; Obtaining a second sorting result based on the first sorting result according to the genetic algorithm, and planning a connection path between the merged sub-region and adjacent regions in the remaining sub-regions using the A* planning method according to the second sorting result to obtain a second path; The second sorting result is updated to the first sorting result, and the steps of obtaining the second sorting result based on the first sorting result according to the genetic algorithm are iteratively performed, and planning the connection path between the merged sub-region and the adjacent regions in the remaining sub-regions by using the A* planning method according to the second sorting result to obtain the second path; With the shortest path as the goal, the planned path is selected from the first path and the second path.

10. The path planning method according to any one of claims 1 to 9, characterized in that: Also includes: Acquire the real-time speed of the robot running in the target operation area; According to the planned path and the real-time speed, a model prediction path integration method is used to predict the local operation path and speed of the robot in real time to obtain a predicted operation path and a predicted speed; The robot is controlled to travel along the predicted working path according to the predicted speed.

11. A robot, characterized in that: It comprises a control module, and the control module is used to execute the path planning method described in any one of claims 1 to 10.

12. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor, Wherein, the processor is used to execute the path planning method described in any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the path planning method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Bookshelf image mosaic method based on book counting, electronic device and storage medium

    CN109064395A

  • Path planning method for effectively improving efficiency of agricultural machinery operation

    CN109828575A

  • Full-coverage movement path planning method for automatic concrete pouring

    CN110502007A

  • Framing method of passable area, area calculation method, chip and robot

    CN111638713A

  • Method and device for cleaning planned area by robot

    CN112388631A