Method for selecting uncleaned partition by robot and cleaning planning method
By constructing virtual clean partitions and optimizing the storage and selection of unclean partitions through bow-shaped cleaning, the problem of irregular path planning and repeated cleaning when the sweeping robot selects unclean partitions in the home environment is solved, and the cleaning efficiency is improved.
Patent Information
- Application Number
- CN202310201379.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-10
AI Technical Summary
Existing sweeping robots fail to effectively consider obstacles and cleaning interruptions when selecting unclean partitions, resulting in irregular path planning, repeated cleaning, and reduced cleaning efficiency.
Construct virtual cleaning partitions through bow-shaped cleaning, store and match uncleaned partitions, optimize the selection of the next cleaning area, and reduce repeated cleaning.
It improves the cleaning efficiency of the sweeping robot in the home environment, reduces the number of back-and-forth cleanings, and avoids local repeated cleaning of uncleaned areas.
Smart Images

Figure CN118614801A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of area planning, and in particular to a method for a robot to select uncleaned partitions and a cleaning planning method. Background Art
[0002] In a home environment, the robot vacuum cleaner mainly cleans the floor. It can achieve path planning with a certain degree of artificial intelligence to cover all areas of the floor in the room. Its path planning mainly consists of three behaviors, namely bow-shaped cleaning behavior, edge cleaning behavior and navigation behavior.
[0003] The bow-shaped cleaning behavior is used to clean open areas. The bow-shaped cleaning behavior is as follows: the sweeping robot first walks in a straight line. When it moves to the wall or the boundary of the map, the robot turns 90 degrees to one side, then moves forward one or half the width of the body, turns 90 degrees again, and then walks in a straight line again. The walking direction at this time is opposite to the initial straight-line walking direction. After the robot repeats this walking, a moving trajectory composed of several parallel lines is obtained, which serves as the bow-shaped cleaning path.
[0004] Edge cleaning is used to clean the corners of the room. The edge cleaning behavior is as follows: the sweeping robot walks along the wall or the outline of a long obstacle, wherein one side of the sweeping robot maintains a certain distance from the wall or obstacle so as to completely clean the edge area of the room.
[0005] Navigation behavior is the method of walking from one coordinate point on the map to another coordinate point; navigation behavior can be specifically divided into traditional path planning algorithms and heuristic path planning algorithms according to the type of path planning algorithms. Among them, traditional path planning algorithms include simulated annealing algorithm, artificial potential field method, fuzzy logic algorithm, taboo search algorithm, etc., which can usually obtain the theoretical shortest path from the current position of the sweeping robot to the target point, and the length of the shortest path is used as the navigation distance. When dealing with path planning problems under complex dynamic environmental information, inspiration from nature often plays a good role. Heuristic path planning algorithms generally include A* algorithm, ant colony algorithm, neural network algorithm, particle swarm algorithm, genetic algorithm, etc. Among them, compared with other heuristic path planning algorithms, A* algorithm has the characteristics of high real-time performance, low algorithm complexity, and easy programming implementation. The selection of the optimal path of the A* algorithm depends on excellent heuristic functions. Heuristic functions include Manhattan distance, diagonal distance and Euclidean distance, which can be used as navigation distances.
[0006] The actual layouts of different home environments vary greatly, and the order of cleaning each room area has a great impact on the cleaning efficiency of the sweeping robot. When the sweeping robot searches for uncleaned areas in a home environment, it often searches out multiple results. As for which uncleaned area to select as the next cleaning area, the related prior art practices include two cleaning strategies: selecting the uncleaned area with the shortest straight-line distance and selecting the uncleaned area with the shortest navigation distance. However, no matter which cleaning strategy is adopted, there are certain problems. For example, the strategy of selecting the shortest straight-line distance does not take into account the obstacle factor, which may cause the navigation distance generated by the path planning algorithm to be very far, reducing the cleaning efficiency. For another example, the strategy of selecting the one with the shortest navigation distance does not consider the problem of interleaved cleaning. Whenever a bow-shaped cleaning behavior is completed for the global map area, the uncleaned area with the shortest navigation distance is preferentially selected as the target area for the next bow-shaped cleaning behavior. If the sweeping robot starts cleaning from the same position every time it performs a bow-shaped cleaning behavior, the cleaning trajectory formed each time may be different. However, this causes the sweeping robot to frequently clean back and forth in a local area (including uncleaned areas and cleaned areas) (sweeping a small section to the left and then a small section to the right, and repeating in sequence), resulting in frequent interleaved cleaning of the sweeping robot, irregular cleaning planning, a high cleaning repetition rate, and reduced cleaning efficiency. Summary of the invention
[0007] This application discloses a method for a robot to select uncleaned partitions and a robot cleaning planning method. The specific technical solutions are as follows: The method for selecting uncleaned partitions by a robot comprises: step A, the robot performs a bow-shaped cleaning in a global working area, searches for uncleaned partitions from the global working area during the bow-shaped cleaning process, and constructs a virtual cleaning partition corresponding to the bow-shaped cleaning; step B, if the uncleaned partition searched by step A is located in the virtual cleaning partition corresponding to the bow-shaped cleaning and the virtual cleaning partition corresponding to the bow-shaped cleaning does not exist in the virtual partition queue, then the virtual cleaning partition corresponding to the bow-shaped cleaning is stored in the virtual partition queue; and by sequentially searching for each virtual cleaning partition in the virtual partition queue Method to store the unclean partition searched by step A in the chain storage space corresponding to the matching virtual clean partition, wherein the matching virtual clean partition is the virtual clean partition that is searched for the first time and has the unclean partition searched by step A; step C, setting the optimal clean partition in the virtual partition queue, and then selecting the unclean partition searched by step A with the closest navigation distance in the chain storage space corresponding to the optimal clean partition as the next cleaning area, or selecting the only remaining unclean partition searched by step A in the chain storage space corresponding to the optimal clean partition as the next cleaning area.
[0008] Compared with the prior art, the robot uses bow-shaped cleaning to build virtual cleaning partitions, and then uses the virtual cleaning partitions to select unclean partitions searched out during a bow-shaped cleaning process, and orderly stores the searched unclean partitions into the chain storage space of the corresponding virtual cleaning partitions, so as to facilitate the subsequent orderly selection of the optimal unclean partitions from the chain storage space of each virtual cleaning partition as the next cleaning area, thereby reducing the number of back and forth cleaning when the robot starts bow-shaped cleaning from the next cleaning area, and reducing the cleaning of local areas where there are no unclean partitions, that is, reducing repeated cleaning, and effectively improving the cleaning efficiency of the robot in the global working area.
[0009] Furthermore, the step C includes: in the virtual partition queue, traversing each virtual clean partition in turn in the order from the latest construction to the earliest construction; configuring a chain storage space corresponding to each virtual clean partition; setting the virtual clean partition of the unclean partition searched by step A in the chain storage space traversed for the first time as the optimal clean partition; if there is only one virtual clean partition of the unclean partition searched by step A in the chain storage space corresponding to the optimal clean partition, then setting the only unclean partition searched by step A in the chain storage space corresponding to the optimal clean partition as the next cleaning area; if there are at least two virtual clean partitions of the unclean partitions searched by step A in the chain storage space corresponding to the optimal clean partition, then in the chain storage space corresponding to the optimal clean partition, the unclean partition searched by step A with the closest navigation distance is set as the next cleaning area; if there is no unclean partition searched by step A in the currently traversed virtual clean partition, then the currently traversed virtual clean partition is deleted.
[0010] From the above step C, it can be known that whenever the robot performs a bow-shaped cleaning in the global working area, a virtual cleaning partition is constructed; then, each virtual cleaning partition is stored in the virtual partition queue in order from the latest construction to the earliest construction, and the virtual cleaning partition is linked to the unclean partition using the chain storage space. Then, the virtual cleaning partition can be used as an exploration medium for the unclean partition that needs to be cleaned. When the first virtual cleaning partition with only one unclean partition in the chain storage space is traversed, the only unclean partition can be set as the next cleaning area; when the first virtual cleaning partition with at least two unclean partitions in the chain storage space is traversed, the unclean partition with the closest navigation distance can be set as the next cleaning area; and when there is no unclean partition in the currently traversed virtual cleaning partition, the currently traversed virtual cleaning partition can be deleted. Thus, the search conditions for the next cleaning area are constrained in terms of search time and navigation distance, in order to obtain the latest unclean partition stored or with a reasonable distance on the established cleaning timeline. This makes the next search method for the clean area more reasonable and avoids unnecessary attempts when searching for new uncleaned partitions.
[0011] Furthermore, whenever a constructed virtual clean partition is stored in a virtual partition queue, the constructed virtual clean partition is set as a registered virtual clean partition; wherein the virtual clean partition corresponding to the bow-shaped cleaning belongs to the constructed virtual clean partition; the latest constructed virtual clean partition is configured to be stored in the head of the virtual partition queue, so that the earlier constructed virtual clean partitions are arranged later in the virtual partition queue; wherein the virtual clean partitions are stored in the virtual partition queue in the form of a preset data structure, and the memory space occupied by the preset data structure in the virtual partition queue includes the chain storage space. So that step B obtains unclean partitions by traversing the virtual partition queue, or stores unclean partitions in the virtual partition queue.
[0012] Furthermore, in step A, the robot sets a linked list of untraveled areas; in the process of executing the current bow-shaped cleaning in the global working area, the robot searches for uncleaned partitions from the global working area and stores the searched uncleaned partitions in the linked list of untraveled areas until the current bow-shaped cleaning is completed, and the uncleaned partitions stored in the linked list of untraveled areas are determined to be the uncleaned partitions searched by step A; in step A, the virtual clean partition corresponding to the current bow-shaped cleaning does not exist in the virtual partition queue; wherein the virtual clean partition corresponding to the current bow-shaped cleaning indicates that the robot constructs a virtual clean partition in the most recently executed step A to indicate the virtual clean partition generated by the most recently executed bow-shaped cleaning in the global working area. The linked list of untraveled areas is used to provide step B with all uncleaned partitions searched during the bow-shaped cleaning process within the area defined by the most recently constructed virtual clean partition.
[0013] Furthermore, step B includes: traversing each unclean partition stored in the unclean area linked list in turn; if the unclean partition currently traversed exists in the chain storage space corresponding to the virtual clean partition in the virtual partition queue, traversing the next unclean partition in the unclean area linked list; wherein the virtual clean partition in the virtual partition queue belongs to a registered virtual clean partition; if the unclean partition currently traversed does not exist in the chain storage space corresponding to the virtual clean partition in the virtual partition queue, then when the unclean partition currently traversed is located in the virtual clean partition corresponding to the current bow-shaped cleaning, inserting the virtual clean partition corresponding to the current bow-shaped cleaning into the head of the virtual partition queue, and then inserting the unclean partition currently traversed into the chain storage space corresponding to the virtual clean partition corresponding to the current bow-shaped cleaning, determining to register the virtual clean partition corresponding to the current bow-shaped cleaning in the virtual partition queue, and The clean partition is set as a registered virtual clean partition; then the next unclean partition in the untraveled area linked list is traversed; wherein, the virtual clean partition corresponding to the current bow-shaped cleaning does not belong to the registered virtual clean partition before being inserted into the virtual partition queue; if the currently traversed unclean partition does not exist in the chain storage space corresponding to the virtual clean partition in the virtual partition queue, then when the currently traversed unclean partition is not located in the virtual clean partition corresponding to the current bow-shaped cleaning, search each registered virtual clean partition in turn according to the storage order from the head to the tail of the virtual partition queue; if the currently traversed unclean partition is located in at least one registered virtual clean partition, then the currently traversed unclean partition is stored in the chain storage space corresponding to the registered virtual clean partition searched for the first time, and it is determined to register the currently traversed unclean partition to the registered virtual clean partition searched for the first time; then the next unclean partition in the untraveled area linked list is traversed.
[0014] From step B, we can see that the robot uses a single queue memory space to sequentially accommodate multiple virtual clean partitions and include the corresponding unclean partitions, and relatively completely and quickly tracks and records the cleaning range and unclean partitions of the robot during each bow-shaped cleaning process, so that the robot can more comprehensively select the unclean partition with the best distance and exploration time as the target area for a new bow-shaped cleaning, and continue to clean it, thereby achieving bow-shaped cleaning of the clean partitions planned in the global working area with a smaller number of reciprocating times.
[0015] Furthermore, if all uncleaned partitions in the untraveled area linked list are not located in the virtual cleaning partition corresponding to the current bow-shaped cleaning, the virtual cleaning partition corresponding to the current bow-shaped cleaning is deleted, so that the preset data structure of the virtual cleaning partition in the virtual partition queue is valid, so that the robot can use it to perform orderly planned cleaning, and also reduce the phenomenon of increasing the number of repeated cleaning times due to selecting the cleaned area.
[0016] Furthermore, each unclean partition traversed is stored in the untraveled area chain list in the form of the coordinate information of the entry point and the angle information corresponding to the cleaning direction; each unclean partition is stored in the untraveled area chain list according to the search order in the single bow-shaped cleaning process, and the traversal order of each unclean partition stored in the untraveled area chain list is determined to be the search order in the single bow-shaped cleaning process. Thus, the traversal priority of each unclean partition under the current bow-shaped cleaning is obtained, that is, the storage order of each unclean partition in the untraveled area chain list and the traversal order of step B are determined, which corresponds to the comparison order in step B with the virtual clean partition in the virtual partition queue and the virtual clean partition corresponding to the current bow-shaped cleaning.
[0017] Furthermore, in step B, whenever the entry point of the unclean partition is searched in the global working area, it is determined that the robot has searched for the unclean partition in the global working area, and the coordinate information of the entry point of the unclean partition currently searched and the angle information corresponding to the cleaning direction are stored in the chain storage space, so that the unclean partition currently searched is stored in the chain storage space corresponding to the constructed virtual clean partition; the entry point of the unclean partition is the end point of the boundary line between the unclean partition and the cleaned area, and the cleaning direction of the unclean partition is set to form a preset angle relative to the boundary edge; the navigation distance described in step C is the path length between the current position of the robot and the entry point of the unclean partition calculated according to the path planning algorithm. Thus, the search constraint condition for the unclean partition is formed.
[0018] Furthermore, the step A specifically includes recording the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, and the minimum vertical coordinate value traversed by the current bow-shaped cleaning each time the robot performs bow-shaped cleaning in the global working area; the robot uses the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, and the minimum vertical coordinate value to construct a virtual cleaning partition corresponding to the current bow-shaped cleaning, and determines the coordinate boundary of the virtual cleaning partition corresponding to the current bow-shaped cleaning, so as to judge whether the entry point of the uncleaned partition falls within the coverage range of the virtual cleaning partition; the virtual cleaning partition corresponding to the current bow-shaped cleaning is placed in the virtual partition team The preset data structure in the column is set to be composed of the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, the minimum vertical coordinate value, the index number, and the unclean partition chain list; each time the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, the minimum vertical coordinate value, the index number, and the unclean partition chain list are stored in the virtual partition queue, it is determined that the virtual clean partition corresponding to the current bow-shaped cleaning is stored in the virtual partition queue; wherein, the memory space occupied by the unclean partition chain list in the virtual partition queue is the chain storage space; the index number is used to indicate the order in which each virtual clean partition is constructed, so as to distinguish the latest constructed virtual clean partition from the pre-constructed virtual clean partition. In addition, it is determined that the storage between each virtual clean partition in the virtual partition queue is smooth, and it is also convenient to identify and call it in order through the index number, thereby improving the scheduling speed.
[0019] Further, the method of using the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, and the minimum vertical coordinate value to construct a virtual cleaning partition corresponding to the current bow-shaped cleaning includes the point indicated by the maximum horizontal coordinate value and the maximum vertical coordinate value traversed by the current bow-shaped cleaning is the upper right boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning, the point indicated by the maximum horizontal coordinate value and the minimum vertical coordinate value traversed by the current bow-shaped cleaning is the lower right boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning, the point indicated by the minimum horizontal coordinate value and the maximum vertical coordinate value traversed by the current bow-shaped cleaning is the upper left boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning, and the point indicated by the minimum horizontal coordinate value and the minimum vertical coordinate value traversed by the current bow-shaped cleaning is the lower left boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning, so that the upper right boundary point, the lower right boundary point, the lower left boundary point, and the upper left boundary point are connected in sequence to form the virtual cleaning partition corresponding to the current bow-shaped cleaning. The robot uses less memory space to build multiple virtual clean partitions and include the corresponding unclean partitions, and relatively completely and quickly tracks and records the robot's cleaning range and unclean partitions during each bow-shaped cleaning process, so that the robot can more comprehensively select the unclean partition with the best distance and exploration time as the target area for the new bow-shaped cleaning, and continue to clean it, thereby achieving the cleaning of the clean partitions planned in the global working area with fewer interspersed reciprocating times.
[0020] Further, if the horizontal coordinate of the entry point of the unclean partition is less than or equal to the maximum horizontal coordinate value, and the horizontal coordinate of the entry point of the unclean partition is greater than or equal to the minimum horizontal coordinate value, and the vertical coordinate of the entry point of the unclean partition is less than or equal to the maximum vertical coordinate value, and the vertical coordinate of the entry point of the unclean partition is greater than or equal to the minimum vertical coordinate value, then it is determined that the entry point of the unclean partition is located in the virtual clean partition corresponding to the current bow-shaped cleaning, and then it is determined that there is an unclean partition in the virtual clean partition corresponding to the current bow-shaped cleaning; if the horizontal coordinate of the entry point of the unclean partition is greater than the maximum horizontal coordinate value, or the horizontal coordinate of the entry point of the unclean partition is less than the minimum horizontal coordinate value, the vertical coordinate of the entry point of the unclean partition is greater than the maximum vertical coordinate value, or the vertical coordinate of the entry point of the unclean partition is less than the minimum vertical coordinate value, then it is determined that the entry point of the unclean partition is not located in the virtual clean partition corresponding to the current bow-shaped cleaning, and then it is determined that there is no unclean partition in the virtual clean partition corresponding to the current bow-shaped cleaning. This simplifies the method for determining whether there is an unclean partition in the virtual clean partition, and facilitates the storage and call of unclean partitions.
[0021] The robot cleaning planning method comprises: when the robot starts to perform a bow-shaped cleaning, the method for selecting uncleaned partitions by the robot is executed, and the next cleaning area is obtained after the bow-shaped cleaning is completed; then the robot navigates to the next cleaning area, and then starts to perform a new bow-shaped cleaning, and executes the method for selecting uncleaned partitions by the robot, and repeats this process until the robot cannot find uncleaned partitions in the global working area.
[0022] In summary, after the robot disclosed in the present application starts to perform a bow-shaped cleaning, it executes the method for the robot to select uncleaned partitions once, and obtains the next cleaning area after completing the bow-shaped cleaning; then the robot navigates to the next cleaning area, and then starts to perform a new bow-shaped cleaning, and then executes the method for the robot to select uncleaned partitions once, and repeats this process until the robot cannot find any uncleaned partitions in the global working area; thus, the robot first explores the next cleaning area through the bow-shaped cleaning, and then moves to the next cleaning area according to the navigation path, and then starts to perform a bow-shaped cleaning of the global working area from the next cleaning area, so that the virtual cleaning partition is used to select the uncleaned partition required for each navigation, so as to achieve recursive changes in the coverage area of the bow-shaped cleaning, improve the coverage rate of the bow-shaped cleaning of the global working area, and can also effectively avoid switching back and forth between the cleaned area and the uncleaned partition, between different uncleaned partitions or between different cleaned areas during the cleaning process, thereby improving the cleaning efficiency of the robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A flowchart of a method for selecting uncleaned partitions by a robot disclosed in an embodiment of the present application.
[0024] Figure 2 A flowchart of an implementation method of step B is disclosed as another embodiment of the present application.
[0025] Figure 3 A flowchart of a robot cleaning planning method is disclosed as another embodiment of the present application. Implementation
[0026] The embodiments of the present invention are described in detail below, and the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. In addition, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features. Thus, it is defined that the "first" and "second" features may explicitly or implicitly include one or more of the features, and in the description of the present invention, "at least" means one or more, unless otherwise clearly and specifically defined.
[0027] The following is a further description of the specific embodiments of the present invention in conjunction with the drawings of the specification, so that the technical solution and its beneficial effects of the present invention are clearer and more explicit. The following description of the embodiments with reference to the drawings is exemplary and intended to explain the present invention, but cannot be understood as limiting the present invention.
[0028] As an embodiment, a method for selecting uncleaned partitions by a robot is disclosed. The method is performed by a robot or a controller inside the robot. The types of robots include but are not limited to sweeping robots, mopping robots, etc. Figure 1 As shown, the method for the robot to select uncleaned partitions includes: Step A, the robot performs a bow-shaped cleaning in the global working area. During the bow-shaped cleaning process, the robot searches for uncleaned partitions in the global working area, and constructs a virtual cleaning partition corresponding to the bow-shaped cleaning, and then determines to set the virtual cleaning partition corresponding to the bow-shaped cleaning as the constructed virtual cleaning partition; then executes step B. In step A, the bow-shaped cleaning performed by the robot in the global working area is the bow-shaped cleaning behavior mentioned in the background technology, that is, the robot performs a covering traversal of the global working area along the bow-shaped cleaning path; in some embodiments, based on the interval between two adjacent straight line segments of the bow-shaped cleaning behavior or the sensor sensing data error of the robot, there will be uncleaned positions in the process of the robot performing bow-shaped cleaning in the global working area, so as to form uncleaned partitions at different cleaning stages, and different uncleaned partitions may be disconnected from each other.
[0029] It should be noted that, during the process of the robot performing a bow-shaped cleaning in the global working area, it can clean the regional position according to the planned bow-shaped cleaning path, and mark the area outside the cleaned position covered by the bow-shaped cleaning path as an unclean partition, at least determine its boundary line, so that in the process of performing the bow-shaped cleaning, the unclean partitions searched out in sequence are set to be the unclean partitions searched by the robot in step A, understood as the unclean partitions searched by step A, and further, all unclean partitions searched by the robot when performing a single bow-shaped cleaning in the global working area; the search order of unclean partitions can be the position traversal order of a single bow-shaped cleaning, which can be expressed as traversing each unclean partition on both sides of the bow-shaped cleaning path in sequence along the extension direction of the bow-shaped cleaning path.
[0030] Step A can also detect each unclean partition existing in the current bow-shaped cleaning one by one by constructing a virtual cleaning partition corresponding to the bow-shaped cleaning, wherein the virtual cleaning partition corresponding to the bow-shaped cleaning does not necessarily cover the entire bow-shaped cleaning path or does not necessarily cover all the unclean partitions searched out; the virtual cleaning partition corresponding to a bow-shaped cleaning does not necessarily overlap with the global working area, and each time the robot performs a bow-shaped cleaning in the global working area, a virtual cleaning partition is constructed and can be stored in a linear storage space; this achieves the maximum coverage effect on the area traversed by a bow-shaped cleaning, and is also convenient for calling and screening unclean partitions in the construction order.
[0031] Step B. If the unclean partition searched by step A is located in the virtual clean partition corresponding to the bow-shaped cleaning (the most recent bow-shaped cleaning performed by step A) and the virtual clean partition corresponding to the bow-shaped cleaning does not exist in the virtual partition queue, then the virtual clean partition corresponding to the bow-shaped cleaning is stored in the virtual partition queue; and by searching each virtual clean partition in the virtual partition queue in turn, the unclean partition searched by step A is stored in the chain storage space corresponding to the matching virtual clean partition; then step C is executed; wherein the matching virtual clean partition is the virtual clean partition that is searched for the first time and has the unclean partition searched by step A.
[0032] In some embodiments, if the unclean partition searched by the current step A is located in the virtual clean partition corresponding to the bow-shaped cleaning and the virtual clean partition corresponding to the bow-shaped cleaning does not exist in the virtual partition queue, the virtual clean partition corresponding to the bow-shaped cleaning is stored in the virtual partition queue to register the virtual clean partition corresponding to the bow-shaped cleaning in the virtual partition queue, and then the unclean partition searched by the current step A is stored in the chain storage space corresponding to the virtual clean partition corresponding to the bow-shaped cleaning to register the unclean partition searched by step A in the corresponding chain storage space; In step A, the virtual cleaning partition corresponding to the current bow-shaped cleaning does not exist in the virtual partition queue, and it is not until step B is executed that it is registered in the virtual partition queue by judging the ownership of the uncleaned partition; wherein, the virtual cleaning partition corresponding to the current bow-shaped cleaning indicates that the robot constructs a virtual cleaning partition in the most recently executed step A, to indicate the virtual cleaning partition generated by the robot's most recent bow-shaped cleaning performed in the global working area.
[0033] In other embodiments, if the unclean partition searched by the current step A is not located in the virtual clean partition corresponding to the bow-shaped cleaning, the unclean partition searched by the current step A is stored in the chain storage space corresponding to the searched matching registered virtual clean partition by searching each virtual clean partition from beginning to end in the virtual partition queue, wherein the searched matching registered virtual clean partition is the virtual clean partition that is searched for the first time and exists in the unclean partition searched by the current step A. It should be noted that each unclean partition searched by step A only supports registration once in the corresponding chain storage space.
[0034] During the bow-shaped cleaning process described in step A, if an unclean partition is searched from the global working area during the bow-shaped cleaning process described in step A and the unclean partition is located in the constructed virtual clean partition, the unclean partition is stored in order in the chain storage space corresponding to the constructed virtual clean partition. The virtual clean partition can be stored in the virtual partition queue to register the currently constructed virtual clean partition. The unclean partitions searched by step A (searched during the bow-shaped cleaning process described in step A) and located in the currently constructed virtual clean partition can also be registered (stored) in sequence in the chain storage space corresponding to the currently constructed virtual clean partition. When the virtual clean partition searched by step A is located in the corresponding virtual clean partition that has been registered in advance, some of the unclean partitions searched by step A can be stored in (stored in) the corresponding virtual clean partition that has been constructed in advance.
[0035] It should be noted that each constructed virtual clean partition can be registered in order in the data structure space of the queue, and the unclean partition and the virtual clean partition are stored in the chain storage space in the form of the posture information of the corresponding points, which is convenient for step C to traverse and select in a targeted manner. The unclean partition searched in the global working area can be located in the constructed virtual clean partition or the registered virtual clean partition from the area actually cleaned by the robot, or it can be located outside the constructed virtual clean partition or the registered virtual clean partition; when the unclean partition searched in the global working area by step A is located in the constructed virtual clean partition or the registered virtual clean partition (involving the encirclement and encirclement relationship between the actual two-dimensional plane areas), the unclean partition searched by step A may have been stored in the chain storage space corresponding to the virtual clean partition, that is, the unclean partition has been registered in the chain storage space corresponding to the virtual clean partition, so that step C selects the unclean partition from the chain storage space in an orderly and indexable manner.
[0036] In some embodiments, whether an iconic boundary position such as a boundary point, entry point, or region endpoint is located within the virtual clean partition can be used to confirm whether the unclean partition is located within the virtual clean partition, and when the unclean partition searched in the global working area is located within the constructed virtual clean partition, the boundary position coordinates of the corresponding boundary point, entry point, or region endpoint are directly stored in the chain storage space corresponding to the constructed virtual clean partition.
[0037] Step C, setting the optimal cleaning partition in the virtual partition queue, can be understood as setting the optimal cleaning partition in the registered virtual cleaning partition; then selecting the unclean partition with the closest navigation distance searched by step A in the chain storage space corresponding to the optimal cleaning partition as the next cleaning area, or selecting the only remaining unclean partition searched by step A in the chain storage space corresponding to the optimal cleaning partition as the next cleaning area. The unclean partition searched by step A is the unclean partition searched by the robot from the global working area during the bow-shaped cleaning process described in step A. The registered virtual cleaning partition is a virtual cleaning partition stored in the corresponding storage unit in the virtual partition queue, which is derived from the virtual cleaning partition constructed by the pre-executed step A, and corresponds to a bow-shaped cleaning.
[0038] In particular, within the registered virtual cleaning partition, when the virtual cleaning partition corresponding to the current bow-shaped cleaning and the virtual cleaning partition corresponding to the previously performed bow-shaped cleaning (i.e., the previously constructed virtual cleaning partition) have been registered in the virtual partition queue, setting the optimal cleaning partition takes into account the environment currently being cleaned by the robot, and more comprehensively reflects the search status of unclean partitions in the actual environment.
[0039] In this embodiment, in order to obtain the virtual cleaning partition that is closest to the environment currently cleaned by the robot, if the chain storage space corresponding to the registered virtual cleaning partition contains an unclean partition searched by step A, the virtual cleaning partition traversed for the first time is selected as the optimal cleaning partition, but it is not necessarily the latest constructed virtual cleaning partition; further, if there is an unclean partition beyond the one searched by step A in the chain storage space corresponding to the optimal cleaning partition (beyond a landmark boundary position coordinate), the unclean partition searched by step A with the closest navigation distance is selected as the next cleaning area, which can be obtained by indexing. The next cleaning area is obtained by using the corresponding landmark boundary position coordinates, so that the robot can navigate from the current position to the landmark boundary position of the next cleaning area to continue the bow-shaped cleaning; if there is only one uncleaned partition (the only landmark boundary position coordinate) searched by step A in the chain storage space corresponding to the optimal cleaning partition, then the only existing uncleaned partition is selected as the next cleaning area, and the next cleaning area can be obtained by indexing the corresponding landmark boundary position coordinates, so that the robot can navigate from the current position to the landmark boundary position of the next cleaning area to continue the bow-shaped cleaning. Therefore, the aforementioned steps search for the next cleaning area from the uncleaned partitions inside the optimal cleaning partition, wherein, relative to each uncleaned partition, the optimal cleaning partition is subject to the construction time constraint of the virtual cleaning partition; then, after each execution of the current bow-shaped cleaning, the uncleaned partition with the closest navigation distance or the only remaining uncleaned partition can be selected from the optimal cleaning partition as the next cleaning area, which can be recorded as the target cleaning partition, and the selected uncleaned partitions are all explored by the robot during the current bow-shaped cleaning process.
[0040] Since the optimal cleaning partition is the virtual cleaning partition selected for the first traversal when the chain storage space corresponding to the registered virtual cleaning partition contains the unclean partition searched by step A, the target cleaning partition can be the virtual cleaning partition constructed by the currently executed bow-shaped cleaning (the virtual cleaning partition constructed during the bow-shaped cleaning process executed in step A) and the virtual cleaning partition constructed by the previously executed bow-shaped cleaning (which can be each registered virtual cleaning partition). The result of traversal and comparison is the target cleaning partition required for the next bow-shaped cleaning, eliminating the risk of repeated traversal and disordered cleaning of unclean partitions in the global working area, thereby reducing the number of reciprocating cleaning times when the robot starts bow-shaped cleaning from the next cleaning area.
[0041] The virtual clean partitions with unclean partitions retained in each bow-shaped cleaning can be different from each other; since the next cleaning area is searched from the unclean partitions inside the optimal clean partition (derived from the virtual clean partition), the unclean partitions explored in each bow-shaped cleaning can be different, allowing the robot to clean more unclean partitions to reduce the area occupied by the unclean partitions, which can overcome the problem of too many back-and-forth cleaning times between different local areas, and realize the use of the construction time and storage method of the clean partitions to constrain the cleaning order, so as to avoid irregular cleaning.
[0042] The robot disclosed in the present application utilizes bow-shaped cleaning to construct virtual cleaning partitions, and then uses the virtual cleaning partitions to select unclean partitions searched out during a bow-shaped cleaning process, and orderly stores each unclean partition searched out in the chain storage space of the corresponding virtual cleaning partition, so as to facilitate the subsequent orderly selection of the optimal unclean partition from the chain storage space of each virtual cleaning partition as the next cleaning area, thereby reducing the number of back-and-forth cleaning when the robot starts bow-shaped cleaning from the next cleaning area, and reducing the cleaning of local areas where there are no unclean partitions, that is, reducing repeated cleaning, and effectively improving the cleaning efficiency of the robot in the global working area.
[0043] As an embodiment, step C includes: in the virtual partition queue, the robot traverses each virtual cleaning partition in turn in the order from the latest construction to the earliest construction, that is, traverses each registered virtual cleaning partition in turn; each virtual cleaning partition is configured with a chain storage space, and is set in the virtual partition queue; each virtual cleaning partition corresponds to a bow-shaped cleaning performed by the robot in the global working area. In some embodiments, each virtual cleaning partition can be stored in the virtual partition queue in the order from the latest construction to the earliest construction, and the robot can traverse each registered virtual cleaning partition in the order from the latest construction to the earliest construction. It can be understood that each time it traverses from the head of the team to the end of the team. Since each virtual cleaning partition is configured with a chain storage space, this embodiment sets a queue linked list to time constrain the search condition, in order to obtain the latest stored virtual cleaning partition and the uncleaned area defined in the frame on the given timeline.
[0044] In the process of traversing each virtual clean partition in turn, in order to obtain the virtual clean partition that frames the unclean partition, this embodiment sets the virtual clean partition with unclean partitions in the chain storage space that is traversed for the first time as the optimal clean partition, that is, the first virtual clean partition with unclean partitions found in each constructed virtual clean partition. Since the construction time is relatively early, the optimal clean partition is the virtual clean partition that is closest to the environment currently cleaned and covered by the robot.
[0045] If the chain storage space corresponding to the optimal clean partition has only one virtual clean partition of the unclean partition searched by step A, then the only unclean partition searched by step A in the chain storage space corresponding to the optimal clean partition is set as the next cleaning area; it can be understood that: if the chain storage space is traversed for the first time and there is only one virtual clean partition of the unclean partition, then the only unclean partition that exists is set as the next cleaning area.
[0046] If the chain storage space corresponding to the optimal clean partition contains at least two virtual clean partitions of the unclean partitions searched by step A, then in the chain storage space corresponding to the optimal clean partition, the unclean partition searched by step A with the closest navigation distance is set as the next cleaning area; it can be understood that: if the chain storage space is traversed for the first time and there are at least two virtual clean partitions of the unclean partitions, then the unclean partition with the closest navigation distance is set as the next cleaning area.
[0047] Specifically, if there is more than one unclean partition searched by step A (more than one iconic boundary position coordinate) in the chain storage space corresponding to the optimal cleaning partition, then the unclean partition searched by step A with the closest navigation distance is selected as the next cleaning area, and the next cleaning area can be obtained by indexing the corresponding iconic boundary position coordinate, so that the robot can navigate from the current position to the iconic boundary position of the next cleaning area to continue the bow-shaped cleaning; if there is only one unclean partition searched by step A (only one iconic boundary position coordinate) in the chain storage space corresponding to the optimal cleaning partition, then the only unclean partition is selected as the next cleaning area, and the next cleaning area can be obtained by indexing the corresponding iconic boundary position coordinate, so that the robot can navigate from the current position to the iconic boundary position of the next cleaning area to continue the bow-shaped cleaning. Therefore, the aforementioned steps search for the next cleaning area from the uncleaned partitions within the optimal cleaning partition, wherein, relative to each uncleaned partition, the optimal cleaning partition is subject to the constraints of the construction time of the virtual cleaning partition; then, after each execution of the current bow-shaped cleaning, the uncleaned partition with the closest navigation distance or the only remaining uncleaned partition can be selected from the optimal cleaning partition as the next cleaning area, which can be recorded as the target cleaning partition, and the selected uncleaned partitions are all explored by the robot during the current bow-shaped cleaning process. In this way, the robot can navigate from the current position to the next cleaning area for sequential cleaning. Preferably, the implementation method of sequential cleaning may include: starting from the current position of the robot, by repeatedly executing the aforementioned steps A to C, to achieve walking to the right one by one in the next cleaning area, until it is no longer possible to walk to the right, and then, moving to the left, walking to the left one by one in the next cleaning area, until it is no longer possible to move to the left.
[0048] In some embodiments, if the currently traversed virtual cleaning partition does not contain the uncleaned partition searched by step A, the currently traversed virtual cleaning partition is deleted, wherein the currently traversed virtual cleaning partition may be the virtual cleaning partition corresponding to the latest bow-shaped cleaning (the latest bow-shaped cleaning in step A), or may be the virtual cleaning partition corresponding to the previously executed bow-shaped cleaning (the previously executed bow-shaped cleaning in step A). Therefore, step C includes: after the robot performs a bow-shaped cleaning in the global working area, in the process of sequentially traversing each virtual cleaning partition (including the registered virtual cleaning partition), if the currently traversed virtual cleaning partition does not contain the uncleaned partition searched by step A, that is, there is no uncleaned partition searched in the latest bow-shaped cleaning process, then the currently traversed virtual cleaning partition is deleted, so as to delete each cleaning partition that may cause the robot to clean repeatedly. It can be understood that when the virtual cleaning partition corresponding to the current bow-shaped cleaning does not exist in the two-dimensional plane and all the unclean partitions searched by the robot during the current bow-shaped cleaning process, the virtual cleaning partition without the corresponding unclean partition will be deleted from the storage space, and there is no unclean partition in the chain storage space corresponding to the virtual cleaning partition; wherein, each virtual cleaning partition that does not exist in the unclean partition searched by step A is deemed invalid during the bow-shaped cleaning process described in step A. After deleting these invalid cleaning partitions, the number of times the robot repeatedly traverses the cleaning partitions during the next bow-shaped cleaning process is reduced.
[0049] From the above step C, it can be known that whenever the robot performs a bow-shaped cleaning in the global working area, a virtual cleaning partition is constructed; then, each virtual cleaning partition is stored in the virtual partition queue in order from the latest construction to the earliest construction, and the virtual cleaning partition is linked to the unclean partition using the chain storage space. Then, the virtual cleaning partition can be used as an exploration medium for the unclean partition that needs to be cleaned. When the first virtual cleaning partition with only one unclean partition in the chain storage space is traversed, the only unclean partition can be set as the next cleaning area; when the first virtual cleaning partition with at least two unclean partitions in the chain storage space is traversed, the unclean partition with the closest navigation distance can be set as the next cleaning area; and when there is no unclean partition in the currently traversed virtual cleaning partition, the currently traversed virtual cleaning partition can be deleted. Thus, the search conditions for the next cleaning area are constrained in terms of search time and navigation distance, in order to obtain the latest unclean partition stored or with a reasonable distance on the established cleaning timeline. This makes the next search method for the clean area more reasonable and avoids unnecessary attempts when searching for new uncleaned partitions.
[0050] As an embodiment, whenever a constructed virtual clean partition is stored in a virtual partition queue, the constructed virtual clean partition is set as a registered virtual clean partition; wherein the virtual clean partition corresponding to the bow-shaped cleaning belongs to the constructed virtual clean partition. In step B, the robot stores the constructed virtual clean partitions in the virtual partition queue in sequence, and controls the latest constructed virtual clean partition to be stored in the head of the virtual partition queue, so that the earlier constructed virtual clean partitions are arranged later in the virtual partition queue; the order from the latest construction to the earliest construction corresponds to the storage order from the head to the tail of the virtual partition queue; wherein each registered virtual clean partition is configured to be stored in the virtual partition queue in sequence, and the virtual clean partition is stored in the virtual partition queue in the form of a preset data structure, and the memory space occupied by the preset data structure in the virtual partition queue includes the chain storage space, so that step B obtains unclean partitions by traversing the virtual partition queue, or stores unclean partitions in the virtual partition queue. In this embodiment, the preset data structure corresponding to a virtual clean partition is provided with necessary coordinate elements constituting a rectangular partition, linked list data (the landmark boundary position in the unclean partition) and the partition index number that are supported to be stored in the chain storage space. After the virtual clean partition is stored in the virtual partition queue in the form of the preset data structure, the partition index number can be used to represent its construction time, or it can be represented as its queue storage order, specifically referring to the sorting of the virtual clean partition in the virtual partition queue (the sorting from the head to the tail of the queue). The virtual partition queue disclosed in this embodiment supports adding, deleting and modifying virtual clean partitions (actually its preset data structure) from the head of the queue. When it is necessary to store unclean partitions in the virtual partition queue, it is necessary to insert the latest constructed virtual clean partitions from the head of the queue. The newer the construction (the later the construction) of the virtual clean partition is, the closer it is arranged in the virtual partition queue.
[0051] As an embodiment, in step A, the robot sets a list of untraveled areas; in the process of performing the current bow-shaped cleaning in the global working area, the robot searches for uncleaned partitions from the global working area and stores the uncleaned partitions searched in the list of untraveled areas until the current bow-shaped cleaning is completed, and the uncleaned partitions stored in the list of untraveled areas are determined to be uncleaned partitions searched by step A, that is, all uncleaned partitions searched by executing step A once are from uncleaned partitions searched in the bow-shaped cleaning process executed under step A, and may include various unknown areas located on both sides of the bow-shaped cleaning path and separated by it, and will also be marked as cleaned areas in the map, and the location information of uncleaned partitions and uncleaned partitions not included in the map can be obtained accordingly. The untraveled area list is used to provide step B with all uncleaned partitions searched in the bow-shaped cleaning process within the area defined by the latest constructed virtual clean partition.
[0052] It should be noted that, in step A, the virtual cleaning partition corresponding to the current bow-shaped cleaning does not exist in the virtual partition queue; wherein, the virtual cleaning partition corresponding to the current bow-shaped cleaning indicates that the robot constructs a virtual cleaning partition in the most recently executed step A to indicate the virtual cleaning partition generated by the robot's most recent bow-shaped cleaning performed in the global working area.
[0053] Preferably, in order to judge and register all uncleaned partitions searched by step A once, so as to screen out the next cleaning area in the virtual partition queue and its corresponding chain storage space, the maximum number of uncleaned partitions stored in the untraveled area chain list is preferably equal to the number of all uncleaned partitions searched by step A once. It should be noted that the uncleaned partitions searched by step A are stored in the untraveled area chain list in the form of the coordinate information of the entry point and the angle information corresponding to the cleaning direction.
[0054] Based on the untraveled area linked list provided in the above embodiment, refer to Figure 2 It can be seen that the step B specifically includes: Step B1, determine whether the number of unclean partitions traversed by the robot is greater than the maximum number of unclean partitions stored in the non-traveled area linked list, if so, execute step B10, otherwise execute step B6; this embodiment will count the number of unclean partitions that have been traversed in the virtual partition queue, specifically, the counting is performed after the current bow-shaped cleaning is executed, wherein the unclean partitions stored in the non-traveled area linked list are the unclean partitions cumulatively searched out during the process from starting the bow-shaped cleaning to ending the current bow-shaped cleaning.
[0055] Step B2, traverse each uncleaned partition stored in the untraveled area linked list in sequence, and then execute step B3.
[0056] Step B3, determine whether the unclean partition currently traversed exists in the chain storage space corresponding to one of the virtual clean partitions in the virtual partition queue, if yes, execute step B6, otherwise execute step B4. Wherein, the virtual clean partition in the virtual partition queue belongs to the registered virtual clean partition. The chain storage space corresponding to one of the virtual clean partitions in the virtual partition queue is the matching result obtained by sequentially comparing the actual coverage of each virtual clean partition in the virtual partition queue during the process of traversing the unclean partition, so as to determine that the unclean partition currently traversed exists in the chain storage space corresponding to the virtual clean partition in the virtual partition queue.
[0057] Step B6, traverse the next unclean partition in the untraversed area linked list; wherein, each time step B6 is executed, the number of unclean partitions traversed in the untraversed area linked list must be controlled to increase by one to confirm whether all unclean partitions in the untraversed area linked list have been traversed, and can also be used to determine the data structure that should be traversed next time. Preferably, the storage address of the next unclean partition is increased relative to the storage address of an unclean partition currently traversed, and the storage address of the next unclean partition can be located at an adjacent position to the storage address of an unclean partition traversed in step B3, so as to traverse the unclean partitions at adjacent storage units in the order from the head of the linked list to the tail of the linked list.
[0058] Step B4, determine whether the unclean partition currently traversed is located in the virtual clean partition corresponding to the current bow-shaped cleaning, if so, execute step B5, otherwise execute step B7; it is worth noting that the unclean partition currently traversed may not exist in the chain storage space corresponding to the virtual clean partition corresponding to the current bow-shaped cleaning; the virtual clean partition corresponding to the current bow-shaped cleaning may not be stored in the virtual partition queue, and what is stored in the virtual partition queue is the virtual clean partition corresponding to one or more bow-shaped cleanings executed in advance, which corresponds to the registered virtual clean partition.
[0059] Step B5, insert the virtual clean partition corresponding to the current bow-shaped cleaning into the head of the virtual partition queue, and update it to the latest constructed (latest constructed) virtual clean partition in the virtual partition queue; then insert the currently traversed unclean partition into the chain storage space corresponding to the virtual clean partition corresponding to the current bow-shaped cleaning, which may become the first unclean partition mounted in the chain storage space corresponding to the virtual clean partition corresponding to the current bow-shaped cleaning; determine to register the virtual clean partition corresponding to the current bow-shaped cleaning in the virtual partition queue, and set the virtual clean partition corresponding to the current bow-shaped cleaning as the registered virtual clean partition; then traverse the next unclean partition in the untraveled area linked list; and then execute step B6. Among them, before being inserted into the virtual partition queue, the virtual clean partition corresponding to the current bow-shaped cleaning belongs to the constructed virtual clean partition; after being inserted into the virtual partition queue, the virtual clean partition corresponding to the current bow-shaped cleaning becomes a registered virtual clean partition.
[0060] Therefore, if the unclean partition currently traversed does not exist in the chain storage space corresponding to the virtual clean partition in the virtual partition queue, then when the unclean partition currently traversed is located in the virtual clean partition corresponding to the current bow-shaped cleaning, the virtual clean partition corresponding to the current bow-shaped cleaning is inserted into the head of the virtual partition queue, and then the unclean partition currently traversed is inserted into the chain storage space corresponding to the virtual clean partition corresponding to the current bow-shaped cleaning, so as to register the virtual clean partition corresponding to the current bow-shaped cleaning in the virtual partition queue; then execute step B6 to traverse the next unclean partition in the untraveled area linked list.
[0061] Step B7, search each registered virtual clean partition in turn according to the storage order from the head to the tail of the virtual partition queue, and then execute step B8. Therefore, if the unclean partition currently traversed does not exist in the chain storage space corresponding to the virtual clean partition in the virtual partition queue, then when the unclean partition currently traversed is not located in the virtual clean partition corresponding to the current bow-shaped cleaning, search each virtual clean partition in turn according to the storage order from the head to the tail of the virtual partition queue. Specifically, the corresponding virtual clean partition in the virtual partition queue can be selected according to the index number corresponding to the virtual clean partition. Preferably, the index number corresponding to the virtual clean partition can correspond to the order from the latest build to the earliest build, and the order from the latest build to the earliest build corresponds to the storage order from the head to the tail of the virtual partition queue. Accordingly, the index numbers corresponding to the virtual clean partitions are arranged from large to small.
[0062] Step B8, determine whether the currently traversed unclean partition is located in at least one registered virtual clean partition, if yes, execute step B9, otherwise execute step B6 to determine that the currently traversed unclean partition is not located in all virtual clean partitions stored in the virtual partition queue on the two-dimensional plane.
[0063] Step B9, storing the currently traversed unclean partition into the chain storage space corresponding to the registered virtual clean partition searched for the first time, determining to register the currently traversed unclean partition with the virtual clean partition searched for the first time, so as to register the virtual clean partition searched for the first time in the virtual partition queue; then executing step B6 to traverse the next unclean partition in the untraveled area linked list. Step B9 determines that the unclean partition currently traversed may be located in multiple virtual clean partitions, that is, the same unclean partition can be framed in multiple pre-built virtual clean partitions, then searches each virtual clean partition in the storage order from the head to the tail of the virtual partition queue, and then selects the virtual clean partition searched for the first time to frame the unclean partition currently traversed, that is, selects the chain storage space corresponding to the virtual clean partition built relatively later as the mounting space of the unclean partition currently traversed, to achieve orderly classification of the unclean partition currently traversed, so as to facilitate step C to select a reasonable unclean partition as the navigation target area of the robot to reduce the frequent back and forth movement of the robot during the bow-shaped cleaning process.
[0064] Step B10, stop traversing the untraveled area linked list, and make sure that the robot has traversed all unclean partitions in the untraveled area linked list, that is, stop traversing the unclean partitions searched out during the current bow-shaped cleaning process; optionally, after stopping the current bow-shaped cleaning, if there is no virtual clean partition and corresponding unclean partition that need to be registered in the virtual partition queue, then the execution of step B can be terminated to enter step C.
[0065] On this basis, it has been determined through step B4 that all unclean partitions in the untraveled area linked list are not located in the virtual cleaning partition corresponding to the current bow-shaped cleaning, that is, the virtual cleaning partition corresponding to the current bow-shaped cleaning does not contain the unclean partition searched by step A, then the robot deletes the virtual cleaning partition corresponding to the current bow-shaped cleaning, and the virtual cleaning partition corresponding to the current bow-shaped cleaning is not stored in the virtual cleaning partition, and it is determined that the virtual cleaning partition corresponding to the current bow-shaped cleaning is an invalid cleaning partition, so that the preset data structure of the virtual cleaning partition in the virtual partition queue is valid, so that the robot can use it for orderly planned cleaning, and also reduce the phenomenon of increasing the number of repeated cleanings due to selecting the cleaned area.
[0066] It can also be further understood that in the process of executing step B10, it is determined whether all unclean partitions stored in the untraveled area linked list are not located in one of the virtual clean partitions stored in the virtual partition queue (that is, one of the registered virtual clean partitions). If so, one of the virtual clean partitions is deleted from the virtual partition queue; otherwise, the traversal of the untraveled area linked list is stopped, and then step C is executed.
[0067] From the above steps B1 to B10, it can be seen that the robot uses a single queue memory space to sequentially accommodate multiple virtual clean partitions and include the corresponding unclean partitions, and relatively completely and quickly tracks and records the cleaning range and unclean partitions of the robot during each bow-shaped cleaning process, so that the robot can more comprehensively select the unclean partition with the best distance and exploration time as the target area for a new bow-shaped cleaning, and continue to clean it, thereby achieving bow-shaped cleaning of the clean partitions planned in the global working area with fewer reciprocating passes (including the number of reciprocating passes between cleaned areas or uncleaned areas).
[0068] In some embodiments, if the uncleaned partitions searched in step A do not exist in the multiple virtual clean partitions traversed in the virtual partition queue, the corresponding virtual clean partitions are deleted in sequence according to the storage order from the head to the tail of the virtual partition queue, so that the preset data structure of the virtual clean partition in the virtual partition queue is deleted. For example, when there is no uncleaned partition in the chain storage space corresponding to the virtual clean partition, it needs to be deleted, and then the deletion starts from the head of the queue, that is, the relatively new virtual clean partitions that do not have uncleaned partitions in the chain storage space are controlled to be deleted first, and the oldest ones are deleted last, so that the robot will not select the most recently cleaned area as the next cleaning area. In this way, the virtual clean partitions with uncleaned partitions searched out in the same bow-shaped cleaning process are retained, and effective uncleaned partitions are provided for setting the next cleaning area.
[0069] It is worth noting that, when the unclean partition does not exist in the chain storage space corresponding to the virtual clean partition of the virtual partition queue, it can be determined that the unclean partition is located in the virtual clean partition of the virtual partition queue (which can be understood as being located in the registered virtual clean partition), or the unclean partition is not located in the virtual clean partition of the virtual partition queue (which can be understood as not being located in the registered virtual clean partition). On the other hand, when the unclean partition does not exist in the virtual clean partition of the virtual partition queue, it is determined that the unclean partition is not located in the chain storage space corresponding to the virtual clean partition of the virtual partition queue (which can be understood as not being registered in the virtual clean partition). On another hand, when the unclean partition exists in the chain storage space corresponding to the virtual clean partition of the virtual partition queue, it is determined that the unclean partition is located in the virtual clean partition of the virtual partition queue (which can be understood as being located in the registered virtual clean partition).
[0070] In the aforementioned embodiment, each unclean partition traversed is stored in the untraveled area linked list in the form of the coordinate information of the entry point and the angle information corresponding to the cleaning direction; each unclean partition is stored in the untraveled area linked list according to the search order in a single bow-shaped cleaning process, and the traversal order of each unclean partition stored in the untraveled area linked list is determined to be the search order in a single bow-shaped cleaning process, which can be expressed as traversing each unclean partition in turn along the extension direction of the bow-shaped cleaning path, so as to obtain the traversal priority of each unclean partition under the current bow-shaped cleaning, that is, determining the storage order of each unclean partition in the untraveled area linked list and the traversal order of step B, which corresponds to the comparison order in step B with the virtual clean partitions in the virtual partition queue and the virtual clean partitions corresponding to the current bow-shaped cleaning.
[0071] Preferably, the unclean partition is inserted into the first address of the untraveled area linked list in the form of storage of the coordinate information of the entry point and the angle information corresponding to the cleaning direction, so that the currently traversed unclean partition is located at the first address of the untraveled area linked list, and the previously traversed unclean partition is squeezed to the adjacent address or other matching address. For the same bow-shaped cleaning, the storage order of the latest traversed unclean partition in the untraveled area linked list is ahead of the previously traversed unclean partition.
[0072] Preferably, the virtual clean partition corresponding to the current bow-shaped cleaning of the robot, the virtual clean partition pre-stored in the virtual partition queue, the unclean partitions stored in the untraveled area linked list, and the unclean partitions stored in the chain storage space corresponding to each virtual clean partition can be marked in the global grid map, and can be updated to the global grid map as the number of bow-shaped cleaning increases or the registration and deletion of virtual clean partitions, can be transmitted to an external mobile terminal and displayed to the outside in a visual manner, wherein the virtual clean partition, unclean partition, and walking path of the bow-shaped cleaning are all supported to be presented in a graphical manner or in a command line manner, and can be captured by an external terminal device or server, for example, the boundaries of various clean partitions are transmitted to the interface of the mobile phone application. It is convenient to monitor the walking trajectory and cleaning area of the robot in the global working area in real time to observe whether the cleaning order of the robot between different unclean partitions will cause the robot's planned cleaning to become irregular (for example, frequent reciprocating walking in a pair of opposite directions with a very high repetition rate).
[0073] As an embodiment, in step B, whenever the entry point of an unclean partition is searched in the global working area, it is determined that the robot has searched for an unclean partition in the global working area, and the coordinate information of the entry point of the currently searched unclean partition and the angle information corresponding to the cleaning direction are stored in the chain storage space, so that the currently searched unclean partition is stored in the chain storage space corresponding to the constructed virtual clean partition, reducing the storage requirements for the unclean partition and the difficulty of subsequent traversal.
[0074] The entry point of the unclean partition is the endpoint of the boundary edge between the unclean partition and the cleaned area, and the cleaning direction of the unclean partition is set to form a preset angle relative to the boundary edge; if the global working area can be represented by a grid area, the unclean partition is composed of unknown grids, which can be refreshed as a cleaned area later. The unclean partition can be surrounded by map boundaries and / or boundary points with clear environmental information.
[0075] The entrance point of the uncleaned area is discovered by the robot while cleaning and exploring, and is generally located at the border of the map without marked obstacles, and is a passable location point. In some embodiments, the robot is not easy to enter the corner area of the next cleaning area when walking along the bow-shaped path in the next cleaning area set in step C or navigating from the current position point to the entrance point of the next cleaning area (which belongs to the uncleaned partition searched during the current bow-shaped cleaning process). When the next cleaning area is an irregular area with a small angle, the robot does not enter the corner position of the next cleaning area while walking along the bow-shaped path.
[0076] The navigation distance described in step C is the path length between the current position of the robot and the entry point of the unclean partition calculated according to the path planning algorithm, wherein the search method between the current position of the robot and the entry point of the unclean partition is a conventional path search algorithm, which in some embodiments may change due to the change of the traversal order of the virtual clean partition in the virtual partition queue to form the same search constraint condition. Among them, the conventional path search algorithm includes but is not limited to the path search algorithm such as the A* algorithm, the D* algorithm, or a combination of algorithms thereof.
[0077] As an embodiment, the step A specifically includes: Each time the robot performs bow-shaped cleaning in the global working area, it records the maximum horizontal coordinate value, minimum horizontal coordinate value, maximum vertical coordinate value, and minimum vertical coordinate value traversed by the current bow-shaped cleaning; then for the current bow-shaped cleaning, the robot uses the maximum horizontal coordinate value, minimum horizontal coordinate value, maximum vertical coordinate value, and minimum vertical coordinate value to construct a virtual cleaning partition corresponding to the current bow-shaped cleaning, and determines the coordinate boundary of the virtual cleaning partition corresponding to the current bow-shaped cleaning, wherein the coordinate boundary in the horizontal axis direction is determined by the maximum horizontal coordinate value and the minimum horizontal coordinate value, and the coordinate boundary in the vertical axis direction is determined by the maximum vertical coordinate value and the minimum vertical coordinate value; so as to facilitate the judgment of whether the entry point of the unclean partition falls within the coverage range of the virtual cleaning partition.
[0078] The step A also supports the robot to set the preset data structure of the virtual clean partition corresponding to the current bow-shaped cleaning in the virtual partition queue to be composed of the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, the minimum vertical coordinate value, the index number, and the unclean partition linked list, wherein the index number represents the construction time of the virtual clean partition, and the unclean partition linked list stores the various unclean partitions searched out of the virtual clean partition in a bow-shaped cleaning. In this embodiment, whenever the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, the minimum vertical coordinate value, the index number, and the unclean partition linked list are stored in the virtual partition queue, it is determined that the virtual clean partition corresponding to the current bow-shaped cleaning is stored in the virtual partition queue, so that a constructed virtual clean partition is registered in the virtual partition queue; it should be noted that the memory space occupied by the unclean partition linked list in the virtual partition queue is the chain storage space, and also represents a part of the memory space occupied by the preset data structure; the index number is used to indicate the order in which each virtual clean partition is constructed, so as to distinguish the latest constructed virtual clean partition and the pre-constructed virtual clean partition, and then determine the smooth storage between each virtual clean partition in the virtual partition queue, and also facilitate individual identification and orderly calling through the index number, thereby improving the scheduling speed.
[0079] On the basis of the above embodiment, the method of using the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, and the minimum vertical coordinate value to construct a virtual cleaning partition corresponding to the current bow-shaped cleaning includes: in the same global working area, the point indicated by the maximum horizontal coordinate value and the maximum vertical coordinate value traversed by the current bow-shaped cleaning is the upper right boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning, and the point indicated by the maximum horizontal coordinate value and the minimum vertical coordinate value traversed by the current bow-shaped cleaning is the right boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning. The lower boundary point, the point indicated by the minimum horizontal coordinate value and the maximum vertical coordinate value traversed by the current bow-shaped cleaning is the upper left boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning, and the point indicated by the minimum horizontal coordinate value and the minimum vertical coordinate value traversed by the current bow-shaped cleaning is the lower left boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning, so that the upper right boundary point, the lower right boundary point, the lower left boundary point, and the upper left boundary point are sequentially connected to form the virtual cleaning partition corresponding to the current bow-shaped cleaning, and a virtual cleaning partition in the same global working area is constructed. Optionally, the line connecting the upper right boundary point and the lower right boundary point, the line connecting the upper right boundary point and the upper left boundary point, the line connecting the upper left boundary point and the lower left boundary point, and the line connecting the lower right boundary point and the lower left boundary point enclose the virtual cleaning partition corresponding to the current bow-shaped cleaning.
[0080] There are multiple virtual clean partitions in the same virtual partition queue. The storage order of virtual clean partitions is from the latest construction to the earliest construction. The storage form is composed of the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, the minimum vertical coordinate value, the index number, and the unclean partition chain list; each virtual clean partition corresponds to a chain storage space that can have multiple unclean partitions. The storage order of unclean partitions is in accordance with the order of the untraversed areas or the areas surrounded by the marked environmental information boundary positions identified during a single bow-shaped cleaning process. The storage form is composed of the coordinate information of the entry point of the unclean partition and the angle information corresponding to the cleaning direction. The robot uses less memory space to build multiple virtual clean partitions and include the corresponding unclean partitions, and relatively completely and quickly tracks and records the cleaning range and unclean partitions of the robot during each bow-shaped cleaning process, so that the robot can more comprehensively select the unclean partition with the best distance and exploration time as the target area for the new bow-shaped cleaning, and continue to clean it, thereby realizing the cleaning of the clean partitions planned in the global working area under the premise of fewer reciprocating cleaning times.
[0081] On the basis of the above embodiment, if the horizontal coordinate of the entry point of the unclean partition is less than or equal to the maximum horizontal coordinate value, and the horizontal coordinate of the entry point of the unclean partition is greater than or equal to the minimum horizontal coordinate value, and the vertical coordinate of the entry point of the unclean partition is less than or equal to the maximum vertical coordinate value, and the vertical coordinate of the entry point of the unclean partition is greater than or equal to the minimum vertical coordinate value, then it is determined that the entry point of the unclean partition is located in the virtual clean partition corresponding to the current bow-shaped cleaning, and then it is determined that there is an unclean partition in the virtual clean partition corresponding to the current bow-shaped cleaning, which simplifies the method of judging whether there is an unclean partition in the virtual clean partition and facilitates the storage and calling of unclean partitions.
[0082] If the horizontal coordinate of the entry point of the unclean partition is greater than the maximum horizontal coordinate value, or the horizontal coordinate of the entry point of the unclean partition is less than the minimum horizontal coordinate value, the vertical coordinate of the entry point of the unclean partition is greater than the maximum vertical coordinate value, or the vertical coordinate of the entry point of the unclean partition is less than the minimum vertical coordinate value, it is determined that the entry point of the unclean partition is not located in the virtual clean partition corresponding to the current bow-shaped cleaning, and then it is determined that there is no unclean partition in the virtual clean partition corresponding to the current bow-shaped cleaning. This simplifies the method for determining whether there is an unclean partition in the virtual clean partition, and facilitates the storage and call of the unclean partition.
[0083] Based on the aforementioned embodiments, the present application also discloses a robot cleaning planning method, the execution subject of the robot cleaning planning method is a robot or a controller inside the robot, and the types of robots include but are not limited to sweeping robots, mopping robots, etc. The basic concept of the robot cleaning planning method includes: when the robot starts to perform a bow-shaped cleaning, the method for selecting uncleaned partitions disclosed in the aforementioned embodiment is executed, and after executing the aforementioned steps A to C, it can be determined that the next cleaning area is obtained after completing a bow-shaped cleaning. The robot then navigates to the next cleaning area, specifically, it may search for the best path between the current position of the robot and the entry point of the next cleaning area according to a conventional path search algorithm, and then moves to the next cleaning area along the best path; then a new bow-shaped cleaning is started, specifically, a new bow-shaped cleaning of the global working area is started at the entry point of the next cleaning area, and the method for the robot to select uncleaned partitions disclosed in the aforementioned embodiment is executed, and the virtual cleaning partitions and uncleaned partitions can be updated, including updating the virtual cleaning partitions corresponding to the new bow-shaped cleaning to the virtual cleaning partitions corresponding to the current bow-shaped cleaning; but the virtual cleaning partitions that have been stored in the virtual partition queue are excluded, and the uncleaned partitions that have been stored in the corresponding chain storage space are excluded, so as to avoid destroying the storage order of the various cleaning partitions constructed in the virtual partition queue in the aforementioned steps A to C. Repeating this process specifically includes repeatedly executing steps A to C to orderly navigate to the corresponding unclean partition for bow-shaped cleaning; until the robot cannot find any unclean partition in the global working area, mainly when the robot cannot find any unclean partition during a bow-shaped cleaning in the global working area.
[0084] Therefore, after the robot disclosed in the present application starts to perform a bow-shaped cleaning, it executes the method for the robot to select uncleaned partitions once, and obtains the next cleaning area after completing the bow-shaped cleaning; then the robot navigates to the next cleaning area, and then starts to perform a new bow-shaped cleaning, and then executes the method for the robot to select uncleaned partitions once, and repeats this process until the robot cannot search for uncleaned partitions in the global working area; thus, the robot first explores the next cleaning area through bow-shaped cleaning, and then moves to the next cleaning area according to the navigation path, and then starts to perform bow-shaped cleaning on the global working area from the next cleaning area, which can effectively avoid switching back and forth between the cleaned area and the uncleaned partition, between different uncleaned partitions or between different cleaned areas during the cleaning process, thereby improving the cleaning efficiency of the robot.
[0085] As an example, see Figure 3 It can be seen that the robot cleaning planning method includes: Step S1, judging whether the robot has searched for an uncleaned partition in the global working area, if so, executing step A to execute step A when the robot starts to perform a bow-shaped cleaning, otherwise executing step S3. The basis for the robot to search for an uncleaned partition in the global working area is to judge whether the entry point of the uncleaned partition is located in the virtual clean partition corresponding to the current bow-shaped cleaning.
[0086] Specifically, if the horizontal coordinate of the entry point of the unclean partition is less than or equal to the maximum horizontal coordinate value of the global working area, and the horizontal coordinate of the entry point of the unclean partition is greater than or equal to the minimum horizontal coordinate value of the global working area, and the vertical coordinate of the entry point of the unclean partition is less than or equal to the maximum vertical coordinate value of the global working area, and the vertical coordinate of the entry point of the unclean partition is greater than or equal to the minimum vertical coordinate value of the global working area, then it is determined that the entry point of the unclean partition is located in the global working area, and then it is determined that there is an unclean partition in the global working area, and then step A is executed. Among them, the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value and the minimum vertical coordinate value of the global working area are all determined based on the preset map boundary. On the other hand, if the horizontal coordinate of the entry point of the unclean partition is greater than the maximum horizontal coordinate value of the global working area, or the horizontal coordinate of the entry point of the unclean partition is less than the minimum horizontal coordinate value of the global working area, the vertical coordinate of the entry point of the unclean partition is greater than the maximum vertical coordinate value of the global working area, or the vertical coordinate of the entry point of the unclean partition is less than the minimum vertical coordinate value of the global working area, then it is determined that the entry point of the unclean partition is not located in the global working area, and then it is determined that there is no unclean partition in the global working area, and step S3 is executed.
[0087] Step A, the robot performs a bow-shaped cleaning in the global working area. During the bow-shaped cleaning process, the robot searches for uncleaned partitions in the global working area, and constructs a virtual cleaning partition corresponding to the bow-shaped cleaning, and then determines to set the virtual cleaning partition corresponding to the bow-shaped cleaning as the constructed virtual cleaning partition; then executes step B. In step A, the bow-shaped cleaning performed by the robot in the global working area is the bow-shaped cleaning behavior mentioned in the background technology, that is, the robot performs a covering traversal of the global working area along the bow-shaped cleaning path; in some embodiments, based on the interval between two adjacent straight line segments of the bow-shaped cleaning behavior or the sensor sensing data error of the robot, there will be uncleaned positions in the process of the robot performing bow-shaped cleaning in the global working area, so as to form uncleaned partitions at different cleaning stages, and different uncleaned partitions may be disconnected from each other.
[0088] Step A can also detect each unclean partition existing in the current bow-shaped cleaning one by one by constructing a virtual cleaning partition corresponding to the bow-shaped cleaning, wherein the virtual cleaning partition corresponding to the bow-shaped cleaning does not necessarily cover the entire bow-shaped cleaning path or does not necessarily cover all the unclean partitions searched out; the virtual cleaning partition corresponding to a bow-shaped cleaning does not necessarily overlap with the global working area, and each time the robot performs a bow-shaped cleaning in the global working area, a virtual cleaning partition is constructed and can be stored in a linear storage space; this achieves the maximum coverage effect on the area traversed by a bow-shaped cleaning, and is also convenient for calling and screening unclean partitions in the construction order.
[0089] Step B. If the unclean partition searched by step A is located in the virtual clean partition corresponding to the bow-shaped cleaning (the most recent bow-shaped cleaning performed by step A) and the virtual clean partition corresponding to the bow-shaped cleaning does not exist in the virtual partition queue, then the virtual clean partition corresponding to the bow-shaped cleaning is stored in the virtual partition queue; and by searching each virtual clean partition in the virtual partition queue in turn, the unclean partition searched by step A is stored in the chain storage space corresponding to the matching virtual clean partition; then step C is executed; wherein the matching virtual clean partition is the virtual clean partition that is searched for the first time and has the unclean partition searched by step A.
[0090] In some embodiments, if the unclean partition searched by the current step A is located in the virtual clean partition corresponding to the bow-shaped cleaning and the virtual clean partition corresponding to the bow-shaped cleaning does not exist in the virtual partition queue, the virtual clean partition corresponding to the bow-shaped cleaning is stored in the virtual partition queue to register the virtual clean partition corresponding to the bow-shaped cleaning in the virtual partition queue, and then the unclean partition searched by the current step A is stored in the chain storage space corresponding to the virtual clean partition corresponding to the bow-shaped cleaning to register the unclean partition searched by step A in the corresponding chain storage space; In step A, the virtual cleaning partition corresponding to the current bow-shaped cleaning does not exist in the virtual partition queue, and it is not until step B is executed that it is registered in the virtual partition queue by judging the ownership of the uncleaned partition; wherein, the virtual cleaning partition corresponding to the current bow-shaped cleaning indicates that the robot constructs a virtual cleaning partition in the most recently executed step A, to indicate the virtual cleaning partition generated by the robot's most recent bow-shaped cleaning performed in the global working area.
[0091] In other embodiments, if the unclean partition searched by the current step A is not located in the virtual clean partition corresponding to the bow-shaped cleaning, the unclean partition searched by the current step A is stored in the chain storage space corresponding to the searched matching registered virtual clean partition by searching each virtual clean partition from beginning to end in the virtual partition queue, wherein the searched matching registered virtual clean partition is the virtual clean partition that is searched for the first time and exists in the unclean partition searched by the current step A. It should be noted that each unclean partition searched by step A only supports registration once in the corresponding chain storage space.
[0092] Step C, setting the optimal cleaning partition in the virtual partition queue, can be understood as setting the optimal cleaning partition in the registered virtual cleaning partition; then selecting the unclean partition with the closest navigation distance searched by step A in the chain storage space corresponding to the optimal cleaning partition as the next cleaning area, or selecting the only remaining unclean partition searched by step A in the chain storage space corresponding to the optimal cleaning partition as the next cleaning area. The unclean partition searched by step A is the unclean partition searched by the robot from the global working area during the bow-shaped cleaning process described in step A. In particular, in the registered virtual cleaning partition, when the virtual cleaning partition corresponding to the current bow-shaped cleaning and the virtual cleaning partition corresponding to the previously executed bow-shaped cleaning (i.e., the previously constructed virtual cleaning partition) have been registered in the virtual partition queue, setting the optimal cleaning partition takes into account the environment currently being cleaned by the robot, and more comprehensively reflects the search status of the unclean partition in the actual environment.
[0093] In this embodiment, in order to obtain the virtual cleaning partition that is closest to the environment currently cleaned by the robot, if the chain storage space corresponding to the registered virtual cleaning partition contains an unclean partition searched by step A, the virtual cleaning partition traversed for the first time is selected as the optimal cleaning partition, but it is not necessarily the latest constructed virtual cleaning partition; further, if there is an unclean partition beyond the one searched by step A in the chain storage space corresponding to the optimal cleaning partition (beyond a landmark boundary position coordinate), the unclean partition searched by step A with the closest navigation distance is selected as the next cleaning area, which can be obtained by indexing. The next cleaning area is obtained by using the corresponding landmark boundary position coordinates, so that the robot can navigate from the current position to the landmark boundary position of the next cleaning area to continue the bow-shaped cleaning; if there is only one uncleaned partition (the only landmark boundary position coordinate) searched by step A in the chain storage space corresponding to the optimal cleaning partition, then the only existing uncleaned partition is selected as the next cleaning area, and the next cleaning area can be obtained by indexing the corresponding landmark boundary position coordinates, so that the robot can navigate from the current position to the landmark boundary position of the next cleaning area to continue the bow-shaped cleaning. Therefore, the aforementioned steps search for the next cleaning area from the uncleaned partitions inside the optimal cleaning partition, wherein, relative to each uncleaned partition, the optimal cleaning partition is subject to the construction time constraint of the virtual cleaning partition; then, after each execution of the current bow-shaped cleaning, the uncleaned partition with the closest navigation distance or the only remaining uncleaned partition can be selected from the optimal cleaning partition as the next cleaning area, which can be recorded as the target cleaning partition, and the selected uncleaned partitions are all explored by the robot during the current bow-shaped cleaning process.
[0094] Since the optimal cleaning partition is the virtual cleaning partition selected for the first traversal when the chain storage space corresponding to the registered virtual cleaning partition contains the unclean partition searched by step A, the target cleaning partition can be the virtual cleaning partition constructed by the currently executed bow-shaped cleaning (the virtual cleaning partition constructed during the bow-shaped cleaning process executed in step A) and the virtual cleaning partition constructed by the previously executed bow-shaped cleaning (which can be each registered virtual cleaning partition). The result of traversal and comparison is the target cleaning partition required for the next bow-shaped cleaning, eliminating the risk of repeated traversal and disordered cleaning of unclean partitions in the global working area, thereby reducing the number of reciprocating cleaning times when the robot starts bow-shaped cleaning from the next cleaning area.
[0095] Step S2, the robot navigates to the next cleaning area, then starts a new bow-shaped cleaning, and then executes step S1 to repeat the aforementioned steps S1, A, B, C, and S2. Specifically, step S2 can be to search for the best path between the current position of the robot and the entry point of the next cleaning area according to a conventional path search algorithm, and then move to the next cleaning area along the best path; then start a new bow-shaped cleaning, specifically start a new bow-shaped cleaning facing the global working area at the entry point of the next cleaning area, and execute the aforementioned steps A to C to orderly navigate to the corresponding uncleaned partition for bow-shaped cleaning; until the robot cannot find the uncleaned partition in the global working area, mainly when the robot cannot find the uncleaned partition during a bow-shaped cleaning in the global working area.
[0096] In the process of repeatedly executing the aforementioned steps S1, A, B, C and S2, the virtual clean partitions with unclean partitions retained in each bow-shaped cleaning may be different from each other; since the next cleaning area is searched from the unclean partitions inside the optimal clean partition (derived from the virtual clean partition), the unclean partitions explored in each bow-shaped cleaning may be different, allowing the robot to clean more unclean partitions to reduce the area occupied by the unclean partitions, which can overcome the problem of too many back-and-forth cleaning times between different local areas, and realize the use of the construction time and storage method of the clean partitions to constrain the cleaning order, so as to avoid irregular cleaning.
[0097] It should be understood that although Figures 1 to 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figures 1 to 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0098] The above is only a schematic description of the specific implementation of the present invention, and the present invention is not limited thereto. The splitting, merging, changing of the execution order of steps, splitting, merging of modules, and changing of information transmission are all within the protection scope of the present invention.
[0099] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit and essential features of the present invention. Therefore, the embodiments should be regarded as exemplary and non-limiting from any point of view, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention, and any reference numerals in the claims should not be regarded as limiting the claims involved.
[0100] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A method for a robot to select uncleaned partitions, characterized in that: include: Step A, the robot performs a bow-shaped cleaning in the global working area, searches for uncleaned partitions in the global working area during the bow-shaped cleaning process, and constructs a virtual clean partition corresponding to the bow-shaped cleaning; Step B: if the uncleaned partition searched in step A is located in the virtual clean partition corresponding to the bow-shaped cleaning and the virtual clean partition corresponding to the bow-shaped cleaning does not exist in the virtual partition queue, then the virtual clean partition corresponding to the bow-shaped cleaning is stored in the virtual partition queue; And by searching each virtual clean partition in the virtual partition queue in sequence, the unclean partition searched in step A is stored in the chain storage space corresponding to the matching virtual clean partition, wherein the matching virtual clean partition is the virtual clean partition that is searched for the first time and has the unclean partition searched in step A; Step C, set the optimal cleaning partition in the virtual partition queue, and then select the unclean partition with the closest navigation distance in the chain storage space corresponding to the optimal cleaning partition as the next cleaning area, or select the only remaining unclean partition searched by step A in the chain storage space corresponding to the optimal cleaning partition as the next cleaning area.
2. The method according to claim 1, characterized in that: The step C comprises: In the virtual partition queue, each virtual clean partition is traversed in order from the latest build to the earliest build; each virtual clean partition is correspondingly configured with a chain storage space; The virtual clean partition of the chain storage space traversed for the first time, where the unclean partition searched in step A exists, is set as the optimal clean partition; If the chain storage space corresponding to the optimal clean partition has only one virtual clean partition of the unclean partition searched in step A, then the only unclean partition searched in step A in the chain storage space corresponding to the optimal clean partition is set as the next cleaning area; If there are at least two virtual clean partitions of the unclean partitions searched in step A in the chain storage space corresponding to the optimal clean partition, then in the chain storage space corresponding to the optimal clean partition, the unclean partition searched in step A with the closest navigation distance is set as the next cleaning area; If the currently traversed virtual clean partition does not contain the unclean partition searched in step A, the currently traversed virtual clean partition is deleted.
3. The method according to claim 2, characterized in that: Whenever the constructed virtual cleaning partition is stored in the virtual partition queue, the constructed virtual cleaning partition is set as a registered virtual cleaning partition; wherein the virtual cleaning partition corresponding to the bow-shaped cleaning belongs to the constructed virtual cleaning partition; A newly constructed virtual clean partition is configured to be stored at the head of the virtual partition queue, so that the earlier constructed virtual clean partitions are arranged later in the virtual partition queue; The virtual clean partition is stored in the virtual partition queue in the form of a preset data structure, and the memory space occupied by the preset data structure in the virtual partition queue includes the chain storage space.
4. The method according to claim 1, characterized in that: In step A, the robot sets a linked list of untraveled areas; in the process of performing the current bow-shaped cleaning in the global working area, the robot searches for uncleaned partitions in the global working area and stores the searched uncleaned partitions in the linked list of untraveled areas until the current bow-shaped cleaning is completed, and it is determined that the uncleaned partitions stored in the linked list of untraveled areas are set to the uncleaned partitions searched in step A; in step A, the virtual clean partition corresponding to the current bow-shaped cleaning does not exist in the virtual partition queue; The virtual cleaning partition corresponding to the current bow-shaped cleaning indicates that the robot constructs a virtual cleaning partition in the latest executed step A to indicate the virtual cleaning partition generated by the latest bow-shaped cleaning performed by the robot in the global working area.
5. The method according to claim 4, characterized in that: The step B comprises: Traversing each uncleaned partition stored in the untraveled area linked list in turn; If the currently traversed unclean partition exists in the chain storage space corresponding to the virtual clean partition in the virtual partition queue, then traverse the next unclean partition in the untraveled area chain list; wherein the virtual clean partition in the virtual partition queue is a registered virtual clean partition; If the unclean partition currently traversed does not exist in the chain storage space corresponding to the virtual clean partition in the virtual partition queue, then when the unclean partition currently traversed is located in the virtual clean partition corresponding to the current bow-shaped cleaning, the virtual clean partition corresponding to the current bow-shaped cleaning is inserted into the head of the virtual partition queue, and then the unclean partition currently traversed is inserted into the chain storage space corresponding to the virtual clean partition corresponding to the current bow-shaped cleaning, and the virtual clean partition corresponding to the current bow-shaped cleaning is determined to be registered in the virtual partition queue, and the virtual clean partition corresponding to the current bow-shaped cleaning is set as a registered virtual clean partition; then the next unclean partition in the untraveled area linked list is traversed; wherein, the virtual clean partition corresponding to the current bow-shaped cleaning does not belong to the registered virtual clean partition before being inserted into the virtual partition queue; If the unclean partition currently traversed does not exist in the chain storage space corresponding to the virtual clean partition in the virtual partition queue, then when the unclean partition currently traversed is not located in the virtual clean partition corresponding to the current bow-shaped cleaning, search each registered virtual clean partition in sequence according to the storage order from the head to the tail of the virtual partition queue; if the unclean partition currently traversed is located in at least one registered virtual clean partition, store the unclean partition currently traversed in the chain storage space corresponding to the registered virtual clean partition searched for the first time, and determine to register the unclean partition currently traversed to the registered virtual clean partition searched for the first time; then traverse the next unclean partition in the untraversed area linked list.
6. The method according to claim 5, characterized in that: If all uncleaned partitions in the untraveled area linked list are not located in the virtual clean partition corresponding to the current bow-shaped cleaning, the virtual clean partition corresponding to the current bow-shaped cleaning is deleted.
7. The method according to claim 5, characterized in that: Each uncleaned partition traversed is stored in the untraveled area linked list in the form of the coordinate information of the entry point and the angle information corresponding to the cleaning direction; Each unclean partition is stored in the untraveled area linked list according to the search order in a single bow-shaped cleaning process, and the traversal order of each unclean partition stored in the untraveled area linked list is determined to be the search order in a single bow-shaped cleaning process.
8. The method according to claim 7, characterized in that: In the step B, whenever the entry point of the unclean partition is searched in the global working area, it is determined that the robot has searched for the unclean partition in the global working area, and the coordinate information of the entry point of the unclean partition currently searched and the angle information corresponding to the cleaning direction are stored in the chain storage space, so that the unclean partition currently searched is stored in the chain storage space corresponding to the constructed virtual clean partition; The entry point of the uncleaned partition is the end point of the boundary line between the uncleaned partition and the cleaned area, and the cleaning direction of the uncleaned partition is set to form a preset angle relative to the boundary edge; The navigation distance described in step C is the path length between the current position of the robot and the entrance point of the uncleaned partition calculated by the path planning algorithm.
9. The method according to claim 8, characterized in that: The step A specifically comprises: Each time the robot performs bow-shaped cleaning in the global working area, the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, and the minimum vertical coordinate value traversed by the current bow-shaped cleaning are recorded; The robot uses the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, and the minimum vertical coordinate value to construct a virtual cleaning partition corresponding to the current bow-shaped cleaning, and determines the coordinate boundary of the virtual cleaning partition corresponding to the current bow-shaped cleaning, so as to judge whether the entry point of the uncleaned partition falls within the coverage of the virtual cleaning partition; The preset data structure of the virtual clean partition corresponding to the current bow-shaped cleaning in the virtual partition queue is set to consist of the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, the minimum vertical coordinate value, the index number, and the unclean partition chain list; each time the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, the minimum vertical coordinate value, the index number, and the unclean partition chain list are stored in the virtual partition queue, it is determined to store the virtual clean partition corresponding to the current bow-shaped cleaning in the virtual partition queue; The memory space occupied by the unclean partition linked list in the virtual partition queue is the linked storage space; the index number is used to indicate the order in which each virtual clean partition is constructed to distinguish the latest constructed virtual clean partition from the pre-constructed virtual clean partition.
10. The method according to claim 9, characterized in that: The method of using the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, and the minimum vertical coordinate value to construct a virtual cleaning partition corresponding to the current bow-shaped cleaning includes: The point indicated by the maximum horizontal coordinate value and the maximum vertical coordinate value traversed by the current bow-shaped cleaning is the upper right boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning, the point indicated by the maximum horizontal coordinate value and the minimum vertical coordinate value traversed by the current bow-shaped cleaning is the lower right boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning, the point indicated by the minimum horizontal coordinate value and the maximum vertical coordinate value traversed by the current bow-shaped cleaning is the upper left boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning, and the point indicated by the minimum horizontal coordinate value and the minimum vertical coordinate value traversed by the current bow-shaped cleaning is the lower left boundary point of the virtual cleaning partition corresponding to the current bow-shaped cleaning, so that the upper right boundary point, the lower right boundary point, the lower left boundary point, and the upper left boundary point are connected in sequence to form the virtual cleaning partition corresponding to the current bow-shaped cleaning.
11. The method according to claim 9, characterized in that: If the horizontal coordinate of the entry point of the unclean partition is less than or equal to the maximum horizontal coordinate value, and the horizontal coordinate of the entry point of the unclean partition is greater than or equal to the minimum horizontal coordinate value, and the vertical coordinate of the entry point of the unclean partition is less than or equal to the maximum vertical coordinate value, and the vertical coordinate of the entry point of the unclean partition is greater than or equal to the minimum vertical coordinate value, then it is determined that the entry point of the unclean partition is located in the virtual clean partition corresponding to the current bow-shaped cleaning, and further it is determined that there is an unclean partition in the virtual clean partition corresponding to the current bow-shaped cleaning; If the horizontal coordinate of the entry point of the unclean partition is greater than the maximum horizontal coordinate value, or the horizontal coordinate of the entry point of the unclean partition is less than the minimum horizontal coordinate value, the vertical coordinate of the entry point of the unclean partition is greater than the maximum vertical coordinate value, or the vertical coordinate of the entry point of the unclean partition is less than the minimum vertical coordinate value, then it is determined that the entry point of the unclean partition is not located in the virtual clean partition corresponding to the current bow-shaped cleaning, and further it is determined that there is no unclean partition in the virtual clean partition corresponding to the current bow-shaped cleaning.
12. A robot cleaning planning method, characterized in that: include: When the robot starts to perform a bow-shaped cleaning, the method for selecting uncleaned partitions by the robot according to any one of claims 1 to 11 is performed, and the next cleaning area is obtained after performing a bow-shaped cleaning; The robot then navigates to the next cleaning area, starts a new bow-shaped cleaning, and executes the method for selecting uncleaned partitions by the robot as described in any one of claims 1 to 11, and repeats this process until the robot cannot find any uncleaned partitions in the global working area.
