Cleaning robot task scheduling method, system and device

By detecting garbage in the cleaning area and judging single-machine or multi-machine task scheduling, dynamically adjusting the task execution order and merging duplicate tasks, the problem of repeated cleaning in cleaning robot task scheduling in the existing technology is solved, and efficiency and flexibility are improved.

CN118963364APending Publication Date: 2024-11-15GUANGZHOU SAITE INTELLIGENCE TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411073807.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

Existing cleaning robot task scheduling methods cannot dynamically adjust the task execution order or perform task merging according to the location distribution between multiple tasks, resulting in repeated cleaning problems, increasing the total mileage or time-consuming to complete the task.

Method used

Provide a cleaning robot task scheduling method. By detecting garbage in the cleaning area and judging single-machine task scheduling or multi-machine task scheduling, using single-machine or multi-machine scheduling strategies to allocate tasks, dynamically adjust the task execution order and merge repeated tasks, and optimize the walking path to Avoid repeated cleaning.

Benefits of technology

It effectively solves the problem of repeated cleaning, reduces the total mileage and time-consuming to complete tasks, improves cleaning efficiency, and provides a more flexible task scheduling method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963364A_ABST
    Figure CN118963364A_ABST
Patent Text Reader

Abstract

The invention discloses a task scheduling method, system and device for a cleaning robot, which are used for solving the problem that the total walking mileage for completing a task is increased or time is consumed due to the fact that repeated cleaning cannot be avoided in the prior art. The method comprises the steps that when it is detected that garbage exists in a cleaning area, or in response to a cleaning task generation instruction, at least one cleaning task of the cleaning area is generated; judging whether the at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling; if single-machine task scheduling is carried out, a single-machine scheduling strategy is adopted, and at least one cleaning task is distributed to the first cleaning robot to execute garbage cleaning; if the task scheduling is multi-machine task scheduling, a multi-machine scheduling strategy is adopted to distribute at least one cleaning task to a plurality of second cleaning robots to execute garbage cleaning, so that different task scheduling strategies are respectively set for different task scheduling scenes, the problem of repeated cleaning is solved, and a more flexible task scheduling mode is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cleaning robots, and in particular to a cleaning robot task scheduling method, a cleaning robot task scheduling system, a cleaning robot task scheduling device, an electronic device and a storage medium. Background Art

[0002] An automatic cleaning robot is a smart home device that can autonomously navigate and perform cleaning operations in a predetermined area. With the development of technology and the growing demand for intelligent life in society, automatic cleaning robots have become an indispensable member of modern homes, offices or outdoor places.

[0003] Taking outdoor road cleaning (including parking lots, etc.) as an actual application scenario, the task scheduling of the automatic cleaning robot is currently mainly based on the order in which the tasks are generated, with one cleaning robot performing the cleaning tasks in turn, or allocating idle robots from multiple robots to perform cleaning tasks.

[0004] Regardless of whether a single robot or multiple robots are used to perform cleaning tasks, it is impossible to dynamically adjust the order of task execution or merge tasks based on the location distribution between multiple tasks, which leads to repeated cleaning problems and increases the total mileage or time required to complete the task. Summary of the invention

[0005] The present invention provides a cleaning robot task scheduling method, a cleaning robot task scheduling system, a cleaning robot task scheduling device, an electronic device and a storage medium, which are used to solve or partially solve the technical problem in the existing related cleaning robot task scheduling method that repeated cleaning cannot be avoided, resulting in an increase in the total walking mileage or time consumed to complete the task.

[0006] The present invention provides a cleaning robot task scheduling method, the method comprising:

[0007] When it is detected that there is garbage in the cleaning area, or in response to a cleaning task generation instruction, generating at least one cleaning task for the cleaning area;

[0008] Determining whether the at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling;

[0009] If it is a single-machine task scheduling, a single-machine scheduling strategy is adopted to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning;

[0010] If it is multi-machine task scheduling, a multi-machine scheduling strategy is adopted to allocate the at least one cleaning task to multiple second cleaning robots to perform garbage cleaning.

[0011] Optionally, the adopting of a single-machine scheduling strategy to assign the at least one cleaning task to a first cleaning robot to perform garbage cleaning includes:

[0012] Determining the current state of the first cleaning robot;

[0013] If the first cleaning robot is currently in a task execution state, the cleaning type of the currently executed task is determined, and combined with the single-machine task intersection judgment, the at least one cleaning task is assigned to the first cleaning robot to perform garbage cleaning.

[0014] Optionally, the determining of the cleaning type of the currently executed task and combining the single-machine task intersection determination to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning includes:

[0015] When the cleaning type of the currently executed task is covering cleaning, determining whether there is a line intersection between the currently executed task and the cleaning task;

[0016] If there is no route intersection, replan the shortest walking path based on the current location and the distribution of cleaning task routes;

[0017] If there is a line intersection, determining whether the intersection area of ​​the currently executed task and the at least one cleaning task has been cleaned;

[0018] If the intersection area is not cleaned, determining the task inclusion relationship between the currently executed task and the at least one cleaning task;

[0019] If the task route of the currently executed task completely includes the task route of the at least one cleaning task, canceling the at least one cleaning task and continuing to execute the currently executed task;

[0020] If the task route of the currently executed task includes the task route of at least one cleaning task, the shortest walking path is replanned by covering the intersection area with cleaning and keeping the cleaning type of the non-intersection area unchanged;

[0021] If the intersection area has been cleaned, replan the shortest walking path;

[0022] After the shortest walking path is replanned, the first cleaning robot adjusts the execution order of the current task and the at least one cleaning task according to the shortest walking path, and performs garbage cleaning in sequence.

[0023] Optionally, the determining of the cleaning type of the currently executed task and combining the single-machine task intersection determination to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning includes:

[0024] When the cleaning type of the currently executed task is patrol cleaning or area cleaning, determining whether there is a route intersection between the currently executed task and the cleaning task;

[0025] If there is no route intersection, replan the shortest walking path based on the current location and the distribution of cleaning task routes;

[0026] If there is a line intersection, determining whether the intersection area of ​​the currently executed task and the at least one cleaning task has been cleaned;

[0027] If the intersection area is not cleaned, determining the task inclusion relationship between the currently executed task and the at least one cleaning task;

[0028] If the task route of the currently executed task completely includes the task route of the at least one cleaning task, determining whether there is an overlapping cleaning task at the intersection;

[0029] If it does not exist, the at least one cleaning task is cancelled, and the intersection area adopts the cleaning method of the currently executed task;

[0030] If so, cancel the at least one cleaning task and use the covering cleaning method for the intersection area;

[0031] If the task route portion of the currently executed task includes the task route of at least one cleaning task, determining whether there is an overlapping cleaning task at the intersection;

[0032] If it does not exist, the current task cleaning type is adopted for the intersection area, and the cleaning type of the non-intersection area remains unchanged, and the shortest walking path is replanned;

[0033] If it exists, the intersection area is covered and cleaned, and the non-intersection area is cleaned unchanged, and the shortest walking path is replanned;

[0034] If the intersection area has been cleaned, replan the shortest walking path;

[0035] After the shortest walking path is replanned, the first cleaning robot adjusts the execution order of the current task and the at least one cleaning task according to the shortest walking path, and performs garbage cleaning in sequence.

[0036] Optionally, when the number of the cleaning tasks is two or more, the method further includes:

[0037] If there is no line intersection between the currently executed task and the cleaning task, but there is a line intersection between the at least one cleaning task, determining the task inclusion relationship between the at least one cleaning task;

[0038] When there is a complete inclusion relationship between the task routes of the at least one cleaning task, performing task merging and updating on the at least one cleaning task, and replanning the shortest walking path;

[0039] When there is a partial intersection relationship between the task routes of the at least one cleaning task, replanning the shortest walking path;

[0040] The intersection area between the at least one cleaning task is cleaned according to the priority of coverage cleaning>patrol cleaning=area cleaning.

[0041] Optionally, when the intersection area between the currently executed task and the at least one cleaning task has been cleaned, the method further includes:

[0042] When there are two intersection tasks in the same route or area in the cleaning area, the intersection area in the same route or area is cleaned according to the original cleaning type of the intersection task;

[0043] When there are three or more intersection tasks in the same route or area in the cleaning area, the intersection areas of the intersection tasks are merged, and the merged intersection area is cleaned according to the priority of coverage cleaning>patrol cleaning=area cleaning.

[0044] Optionally, the method further comprises:

[0045] If the first cleaning robot is currently in an idle state, determining whether the first cleaning robot meets the operation requirements;

[0046] If it meets the requirement, when the number of the cleaning tasks is one, directly assigning the cleaning task to the first cleaning robot to perform garbage cleaning;

[0047] When the number of the cleaning tasks is two or more, the repeated routes of at least one of the cleaning tasks are deleted to merge the tasks, and the cleaning tasks after the task merging are assigned to the first cleaning robot to perform garbage cleaning.

[0048] Optionally, the adopting of a multi-machine scheduling strategy to assign the at least one cleaning task to a plurality of second cleaning robots to perform garbage cleaning includes:

[0049] Based on the current status of the multiple second cleaning robots, combined with the number of cleaning tasks and the intersection judgment of multiple tasks, the at least one cleaning task is assigned to the multiple second cleaning robots to perform garbage cleaning.

[0050] Optionally, based on the current states of the plurality of second cleaning robots, in combination with the number of cleaning tasks and the multi-machine task intersection judgment, the at least one cleaning task is assigned to the plurality of second cleaning robots to perform garbage cleaning, including:

[0051] When the plurality of second cleaning robots are currently in an idle state, if the number of the cleaning tasks is one, a target cleaning robot is selected from the plurality of second cleaning robots according to a preset screening condition, and the cleaning task is assigned to the target cleaning robot to perform garbage cleaning;

[0052] If the number of the cleaning tasks is two or more, the task intersection relationship between the at least one cleaning task is determined, and based on the task intersection relationship determination result, the at least one cleaning task is allocated to the multiple second cleaning robots to perform garbage cleaning.

[0053] Optionally, determining the task intersection relationship between the at least one cleaning task, and assigning the at least one cleaning task to the plurality of second cleaning robots to perform garbage cleaning according to the task intersection relationship determination result, comprises:

[0054] When there is a complete inclusion relationship between the task routes of at least one cleaning task, firstly merge the tasks and then determine the merged intersection area;

[0055] When there is a partial intersection relationship between the task routes of the at least one cleaning task, directly determining a merged intersection area;

[0056] Assigning the cleaning task of the merged intersection area to one of the second cleaning robots to perform garbage cleaning, and then assigning the remaining cleaning tasks to other second cleaning robots to perform garbage cleaning;

[0057] When there is no route intersection between the task routes of the at least one cleaning task, the at least one cleaning task is respectively assigned to one of the second cleaning robots to perform garbage cleaning.

[0058] Optionally, based on the current states of the plurality of second cleaning robots, in combination with the number of cleaning tasks and the multi-machine task intersection judgment, the at least one cleaning task is assigned to the plurality of second cleaning robots to perform garbage cleaning, including:

[0059] When there is a second cleaning robot in a task execution state, if the number of the cleaning tasks is one, determining the line intersection relationship between the current machine task and the cleaning task;

[0060] If there is a complete inclusion relationship between the current machine task and the cleaning task, determining whether the task route corresponding to the cleaning task has been cleaned in the current machine task;

[0061] If the garbage has not been cleaned, the cleaning task is merged with the current machine task, and the second cleaning robot that has a complete inclusion relationship with the cleaning task performs garbage cleaning once;

[0062] If there is a partial intersection relationship between the current machine task and the cleaning task, determining whether the intersection route has been cleaned in the current machine task;

[0063] If it has not been cleaned, the cleaning task will be assigned to the second cleaning robot where the intersection route is located, and the shortest walking path will be replanned to perform garbage cleaning.

[0064] Optionally, the method further comprises:

[0065] When the task route or intersection route corresponding to the cleaning task has been cleaned, or there is no route intersection between the current machine task and the cleaning task:

[0066] If there is no idle cleaning robot at present, wait until there is an idle cleaning robot before assigning the cleaning task;

[0067] If there is currently at least one idle cleaning robot, a target idle robot is selected from the at least one idle cleaning robot to perform garbage cleaning.

[0068] Optionally, the method further comprises:

[0069] If there is no idle cleaning robot at present, and the number of the cleaning tasks is two or more, firstly adjust the at least one cleaning task, and then allocate the adjusted cleaning task in the same manner as allocating one cleaning task when there is no idle cleaning robot;

[0070] If there is currently at least one idle cleaning robot and the number of the cleaning tasks is two or more, the at least one cleaning task is first adjusted, and then the adjusted cleaning task is allocated in the same manner as when there is an idle cleaning robot.

[0071] Optionally, the step of adjusting the at least one cleaning task includes:

[0072] determining a task inclusion relationship between the at least one cleaning task;

[0073] When there is a complete inclusion relationship between the task routes of the at least one cleaning task, performing task merging and updating on the at least one cleaning task;

[0074] When there is a partial intersection relationship between the task routes of the at least one cleaning task, replanning the shortest walking path;

[0075] When there is no route intersection between the task routes of the at least one cleaning task, no adjustment operation is performed.

[0076] Optionally, the determining whether the at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling includes:

[0077] Determining the number of cleaning robots deployed in the cleaning area;

[0078] If the number of the cleaning robot is one, determining that the cleaning task corresponds to a single-machine task scheduling;

[0079] If the number of the cleaning robots is two or more, it is determined that the cleaning task corresponds to multi-machine task scheduling.

[0080] The present invention also provides a cleaning robot task scheduling system, the task scheduling system is used for the cleaning robot task scheduling method as described in any one of the above items, the task scheduling system comprises a scheduling management unit, a mobile client, at least one fixed camera communicatively connected to the scheduling management unit and the mobile client, and at least one cleaning robot; wherein,

[0081] The fixed camera is used to collect environmental data of the cleaning area and transmit the environmental data to the scheduling management unit;

[0082] The mobile client is used to construct a cleaning task generation instruction and generate a cleaning task based on the cleaning task generation instruction;

[0083] The scheduling management unit is used to perform garbage detection on the environmental data, generate a cleaning task based on the garbage detection result, and assign the cleaning task to the cleaning robot so that the cleaning robot performs garbage cleaning based on the cleaning task.

[0084] The present invention also provides a cleaning robot task scheduling device, comprising:

[0085] A cleaning task generation module, configured to generate at least one cleaning task for the cleaning area when garbage is detected in the cleaning area or in response to a cleaning task generation instruction;

[0086] A task scheduling judgment module, used to judge whether the at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling;

[0087] A single-machine scheduling strategy execution module, configured to adopt a single-machine scheduling strategy to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning;

[0088] The multi-machine scheduling strategy execution module is used to adopt a multi-machine scheduling strategy to allocate the at least one cleaning task to multiple second cleaning robots to perform garbage cleaning.

[0089] The present invention also provides an electronic device, the device comprising a processor and a memory:

[0090] The memory is used to store program code and transmit the program code to the processor;

[0091] The processor is used to execute the cleaning robot task scheduling method as described in any one of the above items according to the instructions in the program code.

[0092] The present invention also provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the cleaning robot task scheduling method as described in any of the above items.

[0093] It can be seen from the above technical solutions that the present invention has the following advantages:

[0094] A cleaning robot task scheduling method and a corresponding task scheduling system are provided. When garbage is detected in the cleaning area, or in response to a cleaning task generation instruction, at least one cleaning task for the cleaning area is generated; it is determined whether the at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling; if it is single-machine task scheduling, a single-machine scheduling strategy is adopted to assign at least one cleaning task to a first cleaning robot to perform garbage cleaning; if it is multi-machine task scheduling, a multi-machine scheduling strategy is adopted to assign at least one cleaning task to multiple second cleaning robots to perform garbage cleaning. Therefore, under the premise of considering multiple cleaning tasks, different task scheduling strategies are set for different task scheduling scenarios, which not only solves the problem of repeated cleaning and reduces the total walking mileage or time consumed to complete the task, but also provides a more flexible task scheduling method. BRIEF DESCRIPTION OF THE DRAWINGS

[0095] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0096] Figure 1It is a structural schematic diagram of a cleaning robot task scheduling system;

[0097] Figure 2 A flowchart of a cleaning robot task scheduling method;

[0098] Figure 3 It is a schematic diagram of the overall process of a cleaning robot task scheduling method;

[0099] Figure 4 The figure is a structural block diagram of a cleaning robot task scheduling device. DETAILED DESCRIPTION

[0100] Embodiments of the present invention provide a cleaning robot task scheduling method, a cleaning robot task scheduling system, a cleaning robot task scheduling device, an electronic device and a storage medium, which are used to solve or partially solve the technical problem in the existing related cleaning robot task scheduling method that repeated cleaning cannot be avoided, resulting in an increase in the total walking mileage or time consumed to complete the task.

[0101] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0102] As an example, taking outdoor road cleaning (including parking lots, etc.) as an actual application scenario, the task scheduling of the automatic cleaning robot is currently mainly based on the order in which the tasks are generated, with one cleaning robot performing the cleaning tasks in turn, or allocating idle robots from multiple robots to perform cleaning tasks.

[0103] Regardless of whether a single robot or multiple robots are used to perform cleaning tasks, it is impossible to dynamically adjust the order of task execution or merge tasks based on the location distribution between multiple tasks, which leads to repeated cleaning problems and increases the total mileage or time required to complete the task.

[0104] Therefore, one of the core inventions of the embodiments of the present invention is that: in view of the deficiencies in the prior art, a task scheduling method and a task scheduling system involving multiple types of cleaning tasks and multiple robots are proposed. Under the premise of considering multiple types of cleaning tasks, different task scheduling strategies are set for different task scheduling scenarios. By merging repeated tasks, partially merging tasks with intersections or adjusting the order of task execution, it can not only solve the problem of repeated cleaning, reduce the total mileage or time spent on completing tasks, optimize the overall cleaning efficiency, but also provide a more flexible task scheduling method.

[0105] Reference Figure 1 , showing a structural schematic diagram of a cleaning robot task scheduling system provided by an embodiment of the present invention.

[0106] Combination Figure 1 It can be seen that the task scheduling system 100 can mainly include a scheduling management unit 101, a mobile client 102, at least one fixed camera 104 that is communicatively connected to the scheduling management unit 101 and the mobile client 102 via a communication device 103, and at least one cleaning robot 105.

[0107] The fixed camera 104 , i.e., a fixed monitoring camera installed on the roadside, is used to collect environmental data (such as image or video data) of the cleaning area and transmit the environmental data to the scheduling management unit 101 .

[0108] Among them, garbage detection can be performed autonomously through the fixed camera 104, and the detection result can be reported to the scheduling management unit 101. The collected data can also be reported to the scheduling management unit 101, and the scheduling management unit 101 performs garbage detection.

[0109] The mobile client 102 actually refers to an application (APP or applet, etc.) running on a smart device such as a smartphone or tablet. The mobile client 102 supports triggering the generation of an area cleaning task based on the location of the device, and can also customize the cleaning route to generate a cleaning task. Based on this, the mobile client 102 is mainly used to construct a cleaning task generation instruction, and generate a cleaning task based on the cleaning task generation instruction.

[0110] The scheduling management unit 101 is used to perform garbage detection on the environmental data sent back by the fixed camera 104, generate cleaning tasks based on the garbage detection results, and assign the cleaning tasks to the cleaning robot 105 so that the cleaning robot 105 can perform garbage cleaning based on the cleaning tasks.

[0111] In order to ensure the normal operation of the system and the database, the scheduling management unit 101 uses the server as the physical medium for operation. The scheduling management unit 101 can realize the unified scheduling management of the cleaning robot 105, the fixed camera 104 and the cleaning task.

[0112] The communication device 103 has wireless communication networking capability and can adopt a variety of wireless communication methods (such as WIFI (Wireless Fidelity, wireless fidelity technology), Ethernet, 4G / 5G communication, etc.).

[0113] The cleaning robot 105 has the ability of autonomous navigation and walking as well as cleaning mechanisms such as sweeping brushes, and can automatically complete cleaning operations.

[0114] In combination with the cleaning robot task scheduling system introduced in the above embodiments, in order to enable those skilled in the art to better understand the technical solution of the present invention, refer to Figure 2 , shows a flowchart of a cleaning robot task scheduling method provided by an embodiment of the present invention, which may specifically include the following steps:

[0115] Step 201, when it is detected that there is garbage in the cleaning area, or in response to a cleaning task generation instruction, generating at least one cleaning task for the cleaning area;

[0116] In the embodiment of the present invention, the cleaning area refers to a management area that needs to be cleaned for garbage to maintain the environment. A task scheduling system can manage the garbage cleaning task scheduling of multiple cleaning areas.

[0117] Garbage detection in the cleaning area can be achieved by combining deep learning algorithms for image detection. Specifically, a deep neural network architecture can be used to collect a large amount of garbage sample image data for garbage detection model training to obtain the corresponding garbage model feature values. Then, the environmental image information can be collected regularly through a camera (it can be a fixed camera on the roadside or a camera that comes with the cleaning robot), and the collected image information can be input into a pre-trained garbage model algorithm for feature extraction and matching, and the detection results of the presence or absence of garbage and the type of garbage can be output.

[0118] In addition, the cleaning robot supports scanning environmental feature information through lidar, generating a three-dimensional point cloud map based on the environmental feature information, and pre-setting the cleaning operation route in the map.

[0119] Among them, the environmental feature information scanned by the cleaning robot is the cleaning robot calculating the distance to each object in the environment, and then generating an environmental map with distance position information. This process is the initial mapping work when the cleaning robot first arrives in a new environment (that is, it can be understood as a one-time job). For the cleaning robot, collecting environmental image information through the camera is an action that the cleaning robot must perform every time it performs a cleaning task. It is equivalent to the cleaning robot using its "eyes" to look for garbage on the ground while walking.

[0120] The fixed camera captures an image of the environment at regular intervals and searches for garbage in the image based on image detection. It is understandable that the interval frequency of the fixed camera identifying garbage has nothing to do with whether the robot is currently performing a cleaning operation. In the embodiment of the present invention, the garbage detection frequency is configured separately for the fixed camera. Once garbage is detected, a cleaning task is generated through the task scheduling system, and the cleaning task is assigned to the cleaning robot to perform garbage cleaning.

[0121] Before formally introducing the technical solution proposed in the embodiment of the present invention, the types of cleaning tasks performed by the cleaning robot are briefly described:

[0122] According to the execution of cleaning, cleaning task types can be mainly divided into coverage cleaning tasks, patrol cleaning tasks and area cleaning tasks.

[0123] Among them, the coverage cleaning task means that the cleaning robot walks along a pre-set route. The sweeping brush is turned on throughout the walking process for cleaning. When the route cleaning task is completed, the cleaning robot turns off the sweeping brush. Coverage cleaning supports setting scheduled cleaning tasks / generating cleaning tasks in real time and performing cleaning immediately.

[0124] The patrol and sweeping task refers to the cleaning robot walking along the preset cleaning route without turning on the sweeping brush. During the walking process, the visual camera (camera) on the fuselage collects environmental images and detects garbage. When the garbage is identified, the pixel coordinates corresponding to the garbage in the image are obtained and converted to obtain the laser point cloud map coordinates. Specifically, this process pre-calibrates the coordinate association relationship between the visual camera and the lidar sensor, converts the image pixel coordinates to the laser map coordinates, and thus obtains the garbage location in the laser point cloud map of the cleaning robot. After determining the laser point cloud map coordinates, turn on the sweeping brush and autonomously plan the route to the garbage location for cleaning. When the garbage is cleaned, turn off the sweeping brush. Then continue to walk along the set route and continue to detect garbage and clean until the route task is completed. The patrol and sweeping task supports setting scheduled cleaning tasks / generating cleaning tasks in real time to perform cleaning immediately.

[0125] Area cleaning tasks can also be regarded as real-time generation tasks. Specifically, area cleaning tasks can be divided into the following two types:

[0126] The first type is that after the fixed camera detects the garbage, it supports generating regional cleaning tasks through the scheduling management unit of the task scheduling system. The regional location is a three-dimensional point cloud map generated based on the scanning of the cleaning robot. The camera location and the area covered by the camera's field of view are pre-set in the laser point cloud map. Then the cleaning robot is dispatched to perform garbage cleaning.

[0127] The second type, when garbage is found in a certain location manually, supports generating regional cleaning tasks through mobile clients. Among them, the cleaning robot has satellite positioning capabilities and can obtain the latitude and longitude coordinates of the location. When the cleaning robot scans the environmental map through laser, it also records the latitude and longitude coordinates in the point cloud map. The regional location corresponding to the regional cleaning task can be determined by the latitude and longitude coordinate information. Maintenance personnel can generate regional cleaning tasks through mobile clients, and the cleaning center position takes the satellite coordinate position (latitude and longitude) of the mobile client when the task is generated. When using this method, you can first preset the cleaning radius range, take the satellite position of the mobile client as the center, and combine the preset cleaning radius range to generate the cleaning area. According to the correlation between the satellite coordinate position and the laser map, the coordinate area of ​​the cleaning task area in the laser point cloud map is obtained. Then the maintenance personnel can report the regional cleaning task to the scheduling management unit (server) of the task scheduling system through the mobile client. After receiving the cleaning task, the system dispatches qualified cleaning robots to perform garbage cleaning.

[0128] After receiving the task of cleaning an area, the cleaning robot goes to the designated area and walks along the preset cleaning route in the area. During the walking process, the robot detects garbage through the visual camera on the body and cleans the location with garbage in the area.

[0129] The generation of cleaning tasks can be achieved in the following manner in the embodiment of the present invention:

[0130] The first method is to directly generate the above-mentioned covering cleaning task through the operation of the cleaning robot body / mobile client operation, or to generate the above-mentioned patrol cleaning task by detecting garbage through the built-in camera during walking. After the task is generated, the cleaning robot currently in operation performs garbage cleaning.

[0131] The second method is to receive the image data or environmental data sent back by the fixed camera through the operation of the scheduling management unit, perform garbage detection on it, and generate the above-mentioned covering cleaning task / patrol cleaning task when garbage is detected. Or, through the timing setting, such as setting once in the morning, noon and evening, or setting two hours as the cleaning time interval, the corresponding covering cleaning task / patrol cleaning task is automatically generated. After the task is generated, the scheduling management unit dispatches the cleaning robot to perform garbage cleaning.

[0132] In the third method, the regional cleaning task can be generated by garbage detection through a fixed camera, or by manual operation on the mobile client to construct a cleaning task generation instruction and further generate a cleaning task. After the task is generated, it is transmitted to the scheduling management unit through the communication device, and the scheduling management unit dispatches the cleaning robot that meets the cleaning conditions to perform garbage cleaning.

[0133] Step 202, determining whether the at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling;

[0134] Each cleaning area may be divided into different sizes according to the actual situation. Some cleaning areas may have less personnel flow or be small. In this case, in order to save resources and cleaning costs, a cleaning robot can be deployed for this type of cleaning area, and the cleaning robot can be used to clean up the garbage and maintain the environment in the cleaning area. When scheduling tasks, a single-machine task scheduling strategy can be selected for this type of area.

[0135] Similarly, some cleaning areas may have a large flow of people or a large area. For this type of cleaning area, multiple (two or more) cleaning robots can be deployed according to the actual situation to perform garbage cleaning and environmental maintenance. When scheduling tasks, the multi-machine task scheduling strategy is selected for this type of area.

[0136] In a specific implementation, to determine whether at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling, the following can be done: first determine the number of cleaning robots deployed in the cleaning area; if the number of cleaning robots is one, determine that the cleaning task corresponds to single-machine task scheduling; if the number of cleaning robots is two or more, determine that the cleaning task corresponds to multi-machine task scheduling.

[0137] In order to enable those skilled in the art to better distinguish the cleaning robots used in the two different task scheduling, in the embodiment of the present invention, the cleaning robot corresponding to the single-machine task scheduling is defined as the first cleaning robot, and the cleaning robot corresponding to the multi-machine task scheduling is defined as the second cleaning robot. It can be understood that the first cleaning robot and the second cleaning robot are actually cleaning robots managed by the task scheduling system, but the task scheduling strategies adopted by each are different according to the number of cleaning robots deployed in the cleaning area.

[0138] Step 203, if it is a single-machine task scheduling, a single-machine scheduling strategy is adopted to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning; if it is a multi-machine task scheduling, a multi-machine scheduling strategy is adopted to assign the at least one cleaning task to multiple second cleaning robots to perform garbage cleaning.

[0139] In a specific implementation, a single-machine scheduling strategy is adopted to assign at least one cleaning task to the first cleaning robot to perform garbage cleaning. The strategy can be as follows: determine the current state of the first cleaning robot; if the first cleaning robot is currently in a task execution state, determine the cleaning type of the currently executed task, and combine the single-machine task intersection judgment to assign at least one cleaning task to the first cleaning robot to perform garbage cleaning.

[0140] In one case, when the first cleaning robot is currently in an idle state, it can be determined whether the first cleaning robot meets the operation requirements, such as determining whether the current power of the cleaning robot is sufficient, and when the cleaning task requires watering, the water volume is determined.

[0141] After meeting the operating conditions, when the number of cleaning tasks received (or cleaning tasks that currently need to be processed by the cleaning robot) is one, the cleaning task is directly assigned to the first cleaning robot to perform garbage cleaning.

[0142] When the number of cleaning tasks received is two or more, the repeated routes in each cleaning task to be executed are deleted to merge the tasks, and the cleaning tasks after the task merger are assigned to the first cleaning robot to perform garbage cleaning. For example, there are three cleaning tasks that need to be processed at present, and the routes of two of the tasks overlap. At this time, the repeated routes can be deleted to avoid repeated cleaning. Then the deleted task routes can be merged, or the routes can be re-planned based on the task routes with the shortest walking path as the goal, and the cleaning tasks that can be merged can be merged into one task, and the tasks that cannot be merged will remain unchanged. The processed cleaning tasks are then assigned to the first cleaning robot to perform garbage cleaning.

[0143] In another case, when the first cleaning robot is currently in a task execution state, if a cleaning task needs to be assigned to it, it can be determined first whether the first cleaning robot is currently performing a coverage cleaning task, a patrol cleaning task / area cleaning task, and then different task scheduling strategies are executed according to the specific task type.

[0144] Then, as a further scenario, the cleaning type of the currently executed task is determined, and combined with the single-machine task intersection determination, at least one cleaning task is assigned to the first cleaning robot to perform garbage cleaning, which may be specifically:

[0145] When the cleaning type of the currently executed task is coverage cleaning, determine whether there is a line intersection between the currently executed task and the cleaning task;

[0146] If there is no route intersection, replan the shortest walking path based on the current location and the distribution of cleaning task routes;

[0147] If there is a line intersection, determine whether the intersection area of ​​the currently executed task and at least one cleaning task has been cleaned;

[0148] If the intersection area is not cleaned, determine the task inclusion relationship between the currently executed task and at least one cleaning task;

[0149] If the task route of the currently executed task completely includes the task route of at least one cleaning task, at least one cleaning task is canceled and the currently executed task continues to be executed;

[0150] If the task route of the currently executed task contains at least one task route of a cleaning task, the shortest walking path is replanned by covering the intersection area with cleaning and leaving the non-intersection area with cleaning type unchanged;

[0151] If the intersection area has been cleaned, replan the shortest walking path;

[0152] After the shortest walking path is replanned, the first cleaning robot adjusts the execution order of the current task and at least one cleaning task according to the shortest walking path, and performs garbage cleaning in sequence.

[0153] It should be pointed out that the re-planning of the shortest walking path in the embodiment of the present invention does not entirely refer to the sorting of each cleaning task, but rather to the re-sorting of routes and tasks by taking the cleaning routes in the cleaning tasks as the smallest unit (i.e., a cleaning task may include one cleaning route or two or more cleaning routes).

[0154] For example, suppose the current cleaning robot is executing task A, and when task A is halfway through execution, it receives task B, that is, the cleaning robot needs to execute two tasks, A and B. Through the above-mentioned corresponding judgment method, the cleaning route in the cleaning task is used as the smallest unit, and the shortest walking path is replanned to readjust the order of task execution. After the task order is readjusted, task A may be completed before task B; task B may be executed first and then task A; it may continue to execute part of the route of task A, then execute task B, and finally execute the remaining route of task A, and so on. It can be seen from this that the execution of garbage cleaning in sequence in the embodiments of the present invention does not simply mean that a complete cleaning task is executed first, and then another complete cleaning task is executed, but that the cleaning route in the cleaning task is used as the smallest unit, and garbage cleaning is performed in the order of execution of the cleaning routes.

[0155] As another scenario, the cleaning type of the currently executed task is determined, and combined with the single-machine task intersection determination, at least one cleaning task is assigned to the first cleaning robot to perform garbage cleaning, which may be:

[0156] When the cleaning type of the currently executed task is patrol cleaning or area cleaning, determine whether there is a route intersection between the currently executed task and the cleaning task;

[0157] If there is no route intersection, replan the shortest walking path based on the current location and the distribution of cleaning task routes;

[0158] If there is a line intersection, determine whether the intersection area of ​​the currently executed task and at least one cleaning task has been cleaned;

[0159] If the intersection area is not cleaned, determine the task inclusion relationship between the currently executed task and at least one cleaning task;

[0160] If the task route of the currently executed task completely contains the task route of at least one cleaning task, then determine whether there is an overlapping cleaning task at the intersection;

[0161] If there is no covering cleaning, at least one cleaning task is canceled, and the intersection area adopts the cleaning method of the currently executed task;

[0162] If there is an overlay cleaning, at least one cleaning task is cancelled and the intersection area is cleaned by overlay cleaning;

[0163] If the task route of the currently executed task contains at least one task route of a cleaning task, then determine whether there is an overlapping cleaning task at the intersection;

[0164] If there is no coverage cleaning, the current cleaning type is used for the intersection area, and the cleaning type for the non-intersection area remains unchanged, and the shortest walking path is replanned;

[0165] If there is coverage cleaning, the intersection area is covered and the non-intersection area is cleaned without changing the cleaning type, and the shortest walking path is replanned;

[0166] If the intersection area has been cleaned, replan the shortest walking path;

[0167] After the shortest walking path is replanned, the first cleaning robot adjusts the execution order of the current task and at least one cleaning task according to the shortest walking path, and performs garbage cleaning in sequence.

[0168] As an optional embodiment, when the cleaning type of the currently executed task is a coverage cleaning task, a patrol cleaning task, or an area cleaning task, if the number of cleaning tasks is two or more, there are also the following task scheduling situations:

[0169] If there is no line intersection between the currently executed task and the cleaning task, but there is a line intersection between at least one cleaning task, then determine the task inclusion relationship between at least one cleaning task;

[0170] When there is a complete inclusion relationship between the task routes of at least one cleaning task, at least one cleaning task is merged and updated, and the shortest walking path is replanned;

[0171] When there is a partial intersection between the task routes of at least one cleaning task, the shortest walking path is replanned;

[0172] The intersection area between at least one cleaning task is cleaned according to the priority of coverage cleaning>patrol cleaning=area cleaning.

[0173] As an optional embodiment, when the cleaning type of the currently executed task is a coverage cleaning task, a patrol cleaning task, or an area cleaning task, there are also the following task scheduling situations for the situation where the intersection area of ​​the currently executed task and at least one cleaning task has been cleaned:

[0174] When there are two intersection tasks in the same route or area in the cleaning area, the intersection area in the same route or area will be cleaned according to the original cleaning type of the intersection task;

[0175] When there are three or more intersecting tasks in the same route or area in the cleaning area, the intersecting areas of each intersecting task are merged, and the merged intersecting area is cleaned according to the priority of coverage cleaning > patrol cleaning = area cleaning.

[0176] Combined with the above content, we can see that there are 3 types of cleaning tasks, including coverage cleaning, patrol cleaning, and area cleaning. Coverage cleaning is to use the brush to clean the entire cleaning route. Patrol cleaning is to use the camera to detect garbage while walking along the set cleaning route. It will only start brushing and cleaning when garbage is detected. Area cleaning is to use the camera to detect garbage while walking along the cleaning route in the area. It will only start brushing and cleaning when garbage is detected. It can be seen that although there are mainly 3 types of cleaning tasks, there are two actual cleaning modes, one is the cleaning mode of using the brush to clean the entire cleaning route, and the other is the cleaning mode of using the brush to clean selectively.

[0177] In the case of multiple cleaning tasks, when the intersection area has both cleaning tasks that use the cover cleaning method and tasks that use the patrol cleaning / area cleaning method, the intersection area uniformly adopts the cover cleaning method. The reason for choosing cover cleaning is that the range of cover cleaning ≥ selective cleaning = area cleaning. Therefore, when there is an intersection between tasks, the cleaning method with the largest range is selected. In addition, since the cover cleaning method is to open the sweeping brush cleaning throughout the process, the cleanliness rate after cleaning is the highest. Although patrol cleaning can find more obvious garbage such as white garbage, water bottles, and leaves, it is difficult to identify objects such as scattered dust and fine sand. Therefore, if the task route of the current execution task and the newly assigned cleaning task intersect, and if one of the tasks in the intersection area is set as cover cleaning in multiple cleaning tasks, the intersection area adopts the cover cleaning strategy.

[0178] The patrol / area cleaning method uses a camera to detect whether there is garbage, and only cleans when there is garbage. This method is a directional cleaning method, which is more efficient in some cases and causes less wear and tear on the brush. For example, general sanitation operations use the method of covering and cleaning in the morning, and patrol cleaning (i.e., patrol) in the morning and afternoon. After covering and cleaning in the morning, the amount of garbage in the morning and afternoon is small and scattered. In this case, the patrol method will be more efficient.

[0179] Therefore, when there is no cleaning task that uses the covering cleaning method in the intersection area, the cleaning mode selection is as follows:

[0180] When multiple cleaning tasks include both patrol cleaning and area cleaning, select one of the cleaning modes (these two cleaning modes have essentially the same effect).

[0181] When there are multiple cleaning tasks and only patrol sweeping is available, the patrol sweeping mode is used.

[0182] When only area cleaning is required among multiple cleaning tasks, the area cleaning method is used.

[0183] In order to enable those skilled in the art to better understand the single-machine task scheduling strategy introduced in the above embodiment of the present invention, the following explanation is given by taking the example that the first cleaning robot is performing a cleaning task and the scheduling management unit needs to assign at least one new cleaning task to it.

[0184] When the first cleaning robot is currently performing a covering cleaning task:

[0185] Scenario 1: The task route of the newly assigned cleaning task has no intersection with the route of the currently executed task.

[0186] At this time, the path with the shortest total mileage can be re-planned based on the current position of the first cleaning robot and the route distribution of each cleaning task. According to the planned path, the cleaning route in the task is used as the smallest unit to adjust the execution order between the currently executed task and the newly assigned cleaning task.

[0187] Scenario 2: The task route of the newly assigned cleaning task intersects with the route of the currently executed task, and the intersection is not currently cleaned.

[0188] (1) If the task route of the currently executed task completely contains the route / area of ​​the newly assigned cleaning task, and the cleaning task to be executed at the intersection is a patrol cleaning / area cleaning / cover cleaning task, the newly assigned cleaning task will be canceled and the intersection area route will be cleaned using the cover cleaning method.

[0189] (2) If the task route of the current task contains the route / area of ​​the newly assigned cleaning task, and the cleaning task to be executed at the intersection is a patrol cleaning / area cleaning / cover cleaning task, the intersection area route adopts the cover cleaning method, and the non-intersecting area between the cleaning task to be executed and the current task is cleaned according to the original cleaning task type. The route with the shortest total mileage is replanned, and the execution order between the current task and the newly assigned cleaning task is adjusted according to the planned route.

[0190] Scenario 3: The task route of the current task intersects with the task route of the newly assigned cleaning task, and the intersection has been cleaned.

[0191] If the task route of the current task completely or partially includes the route / area of ​​the newly assigned cleaning task, and the cleaning task to be executed at the intersection is a patrol cleaning / area cleaning / cover cleaning task, then according to the current position of the first cleaning robot and the route distribution of each task, a path with the shortest total mileage is planned, and the execution order between the current task and the newly assigned cleaning task is adjusted according to the planned path. There are two ways to clean the intersection area:

[0192] ① Perform cleaning according to the original cleaning task type (there are only two tasks that intersect in the same area / route, including the tasks that have completed the cleaning of the intersection before).

[0193] ② Select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning (only three or more tasks have intersection in the same area / route, including the tasks that have completed the cleaning of the intersection before, and the common areas of the intersection are merged and cleaned only once).

[0194] Scenario 4: The task route of the currently executed task has no intersection with the task route of the newly assigned cleaning task, but there is an intersection between the tasks of the newly assigned cleaning tasks (in this case, there are two or more newly assigned cleaning tasks).

[0195] When there is a complete inclusion relationship between the task routes of the newly assigned cleaning tasks, the tasks are merged and the task list is updated. The cleaning method for the intersection part of the route is selected as follows: select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning. After merging the tasks, the path with the shortest total mileage is replanned according to the position of the first cleaning robot, the new task route, etc., and the execution order between the currently executed tasks and the newly assigned tasks after the merge is adjusted according to the planned path.

[0196] When there are some intersections between the task routes of the newly assigned cleaning tasks, the path with the shortest total mileage is replanned based on the position of the first cleaning robot, the task route, etc., and the execution order between the current task and the newly assigned cleaning task is adjusted according to the planned path. For the routes of the intersection, a cleaning method is selected according to the priority of coverage cleaning > patrol cleaning = area cleaning.

[0197] When the first cleaning robot is currently executing a patrol or area cleaning task:

[0198] Scenario 1: The task route of the newly assigned cleaning task has no intersection with the route of the currently executed task.

[0199] At this time, the path with the shortest total mileage can be re-planned based on the current position of the first cleaning robot and the route distribution of each cleaning task, and the execution order between the currently executed task and the newly assigned cleaning task can be adjusted according to the planned path and the cleaning route as the smallest unit.

[0200] Scenario 2: The task route of the newly assigned cleaning task intersects with the route of the currently executed task, and the intersection is not currently cleaned.

[0201] (1) If the task route of the currently executed task completely contains the route / area of ​​the newly assigned cleaning task, and the cleaning task to be executed at the intersection is a patrol / area cleaning task, the newly assigned cleaning task is canceled, and the route of the intersection area is cleaned using the cleaning method of the currently executed task.

[0202] (2) If the task route of the currently executed task completely contains the route / area of ​​the newly assigned cleaning task, and there is an overlapping cleaning task in the waiting cleaning task at the intersection, the newly assigned cleaning task is canceled, and the route of the intersection area is cleaned using the overlapping cleaning method.

[0203] (3) If the task route of the currently executed task partially includes the route / area of ​​the newly assigned cleaning task, and the cleaning task to be executed at the intersection is a patrol / area cleaning task, the intersection area route is cleaned using the cleaning method of the currently executed task, and the non-intersecting area between the cleaning task to be executed and the currently executed task is cleaned according to the original cleaning task type, and the path with the shortest total mileage is replanned. According to the planned path, the execution order between the current task and the newly assigned cleaning task is adjusted.

[0204] (4) If part of the task route of the currently executed task includes the route / area of ​​the newly assigned cleaning task, and there is an overlapping cleaning task at the intersection of the pending cleaning task, the intersection area route adopts the overlapping cleaning method, and the non-intersecting area between the pending cleaning task and the currently executed task is cleaned according to the original cleaning task type, and the path with the shortest total mileage is replanned. According to the planned path, the execution order between the current task and the newly assigned cleaning task is adjusted.

[0205] Scenario 3: The task route of the current task intersects with the task route of the newly assigned cleaning task, and the intersection has been cleaned.

[0206] If the task route of the current task completely or partially includes the route / area of ​​the newly assigned cleaning task, and the cleaning task to be executed at the intersection is a patrol cleaning / area cleaning / cover cleaning task, then according to the current position of the first cleaning robot and the route distribution of each task, a path with the shortest total mileage is planned, and the execution order between the current task and the newly assigned cleaning task is adjusted according to the planned path. There are two ways to clean the intersection area:

[0207] ① Perform cleaning according to the original cleaning task type (there are only two tasks that intersect in the same area / route, including the tasks that have completed the cleaning of the intersection before).

[0208] ② Select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning (only three or more tasks have intersection in the same area / route, including the tasks that have completed the cleaning of the intersection before, and the common areas of the intersection are merged and cleaned only once).

[0209] Scenario 4: The task route of the currently executed task has no intersection with the task route of the newly assigned cleaning task, but there is an intersection between the tasks of the newly assigned cleaning tasks (in this case, there are two or more newly assigned cleaning tasks).

[0210] When there is a complete inclusion relationship between the task routes of the newly assigned cleaning tasks, the tasks are merged and the task list is updated. The cleaning method for the intersection part of the route is selected as follows: select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning. After merging the tasks, the path with the shortest total mileage is replanned according to the position of the first cleaning robot, the new task route, etc., and the execution order between the currently executed tasks and the newly assigned tasks after the merge is adjusted according to the planned path.

[0211] When there are some intersections between the task routes of the newly assigned cleaning tasks, the path with the shortest total mileage is replanned based on the position of the first cleaning robot, the task route, etc., and the execution order between the current task and the newly assigned cleaning task is adjusted according to the planned path. For the routes of the intersection, a cleaning method is selected according to the priority of coverage cleaning > patrol cleaning = area cleaning.

[0212] Therefore, for the task scheduling application scenario of a single cleaning robot, by adopting the single-machine task scheduling strategy provided by the embodiment of the present invention, the task execution order is dynamically adjusted according to the location distribution between multiple cleaning tasks, and combined with task merging processing, the intersecting route areas are merged and cleaned, which can avoid the problem of repeated cleaning, minimize the total walking mileage to complete the task, and optimize the cleaning efficiency.

[0213] The previous section introduced the relevant content of single-machine task scheduling. Next, the relevant content of multi-machine task scheduling will be explained.

[0214] In a specific implementation, a multi-machine scheduling strategy is adopted to assign at least one cleaning task to multiple second cleaning robots to perform garbage cleaning. This can be done by: based on the current status of the multiple second cleaning robots, combined with the number of cleaning tasks and the intersection judgment of multiple machine tasks, assigning at least one cleaning task to multiple second cleaning robots to perform garbage cleaning.

[0215] In one case, each second cleaning robot may be currently in an idle state. Based on the current states of the multiple second cleaning robots, combined with the number of cleaning tasks and the multi-machine task intersection judgment, at least one cleaning task is assigned to the multiple second cleaning robots to perform garbage cleaning, which can be:

[0216] When the plurality of second cleaning robots are currently in an idle state, if the number of cleaning tasks is one, a target cleaning robot is selected from the plurality of second cleaning robots according to a preset screening condition, and the cleaning task is assigned to the target cleaning robot to perform garbage cleaning;

[0217] If the number of cleaning tasks is two or more, the task intersection relationship between at least one cleaning task is determined, and based on the task intersection relationship determination result, at least one cleaning task is allocated to multiple second cleaning robots to perform garbage cleaning.

[0218] Further, the task intersection relationship between at least one cleaning task is determined, and according to the task intersection relationship determination result, at least one cleaning task is assigned to multiple second cleaning robots to perform garbage cleaning, which may be specifically:

[0219] When there is a complete inclusion relationship between the task routes of at least one cleaning task, the tasks are merged first and then the merged intersection area is determined;

[0220] When there is a partial intersection relationship between the task routes of at least one cleaning task, the merged intersection area is directly determined;

[0221] Assign the cleaning task of the merged intersection area to one of the second cleaning robots to perform garbage cleaning, and then assign the remaining cleaning tasks to other second cleaning robots to perform garbage cleaning;

[0222] When there is no route intersection between the task routes of at least one cleaning task, at least one cleaning task is respectively assigned to a second cleaning robot to perform garbage cleaning.

[0223] In another case, there is currently a second cleaning robot in a task execution state. Based on the current states of the multiple second cleaning robots, combined with the number of cleaning tasks and the multi-machine task intersection judgment, at least one cleaning task is assigned to the multiple second cleaning robots to perform garbage cleaning. Specifically, it can be:

[0224] When there is a second cleaning robot in the task execution state (at this time there may be an idle cleaning robot, or all the second cleaning robots may be performing cleaning tasks), if the number of cleaning tasks is one, the line intersection relationship between the current machine task and the cleaning task is determined;

[0225] If there is a complete inclusion relationship between the current machine task and the cleaning task, then determine whether the task route corresponding to the cleaning task has been cleaned in the current machine task;

[0226] If it has not been cleaned, the cleaning task is merged with the current machine task, and the second cleaning robot that has a complete inclusion relationship with the cleaning task performs garbage cleaning once;

[0227] If there is a partial intersection relationship between the current machine task and the cleaning task, determine whether the intersection route has been cleaned in the current machine task;

[0228] If it is not cleaned, the cleaning task will be assigned to the second cleaning robot where the intersection route is located, and the shortest walking path will be replanned to perform garbage cleaning.

[0229] For the situation where there is a partial intersection relationship between the current machine task and the cleaning task, the above setting is a task scheduling setting when the number of second cleaning robots that meet the intersection route is one. As an optional embodiment, the following example illustrates the task scheduling setting assuming that more than one second cleaning robot meets the requirement of the existence of an intersection route task.

[0230] Assume that the new cleaning task is A, and the existing machine operation tasks are B and C. When the intersection of A and B, and A and C are exactly the same (that is, A is completely contained in B, and A is completely contained in C), A can be assigned to the second cleaning robot that executes B or C.

[0231] When A and B, A and C have intersections, and there are non-intersecting routes between A and B, A and C, tasks are assigned in the following ways (a) or (b) based on different specific situations:

[0232] (a) Assuming that the intersection routes of A and B, and A and C do not overlap, the original partial cleaning route of A is first split into two new intersection cleaning routes, which are respectively assigned to the second cleaning robot that performs tasks B and C. The remaining non-intersection routes in A are assigned to the second cleaning robot that performs tasks B and C according to the principle of the shortest total mileage.

[0233] (b) Assuming that the intersection routes of A and B, and A and C overlap, the intersection overlap area is assigned to one of the second cleaning robots of B and C for cleaning. The remaining intersection non-overlapping areas and the remaining non-intersection routes in A are assigned in the same way as in (a).

[0234] When A and B, A and C have intersections, and there are no non-intersecting routes between A and B, A and C, tasks are assigned in the following ways (c) or (d) based on different specific situations:

[0235] (c) Assuming that the intersection routes of A and B, and A and C do not overlap, all the original cleaning routes of A are split into two new cleaning routes, which are respectively assigned to the second cleaning robots that have intersections and perform tasks B and C.

[0236] (d) Assuming that the intersection routes of A and B, and A and C overlap, the overlapping intersection area is assigned to one of the second cleaning robots of B and C for cleaning. The remaining non-overlapping intersection areas are assigned in the same way as in (c).

[0237] Furthermore, when there is a second cleaning robot in the task execution state, the task route or intersection route corresponding to the cleaning task has been cleaned, or there is no route intersection between the current machine task and the cleaning task. According to whether there is an idle cleaning robot at present, the following task scheduling strategy can also be set:

[0238] If there is no idle cleaning robot at present, the cleaning task will be assigned when there is an idle cleaning robot.

[0239] If there is currently at least one idle cleaning robot, a target idle robot is selected from the at least one idle cleaning robot (consistent with the previous method of selecting a target cleaning robot from multiple second cleaning robots according to preset screening conditions) to perform garbage cleaning.

[0240] As an optional embodiment, when there is a second cleaning robot in a task execution state, if there is currently no idle cleaning robot and the number of cleaning tasks is two or more, at least one cleaning task is first adjusted, and then the adjusted cleaning task is allocated in the same manner as described above when there is no idle cleaning robot.

[0241] As an optional embodiment, when there is a second cleaning robot in a task execution state, if there is currently at least one idle cleaning robot and the number of cleaning tasks is two or more, at least one cleaning task is first adjusted, and then the adjusted cleaning task is allocated in the same manner as allocating a cleaning task when there is an idle cleaning robot.

[0242] Furthermore, the step of adjusting the task of at least one cleaning task may specifically be: determining the task inclusion relationship between at least one cleaning task; when there is a complete inclusion relationship between the task routes of at least one cleaning task, merging and updating the at least one cleaning task; when there is a partial intersection relationship between the task routes of at least one cleaning task, re-planning the shortest walking path; when there is no route intersection between the task routes of at least one cleaning task, no adjustment operation is performed.

[0243] In order to enable those skilled in the art to better understand the multi-machine task scheduling strategy introduced in the above embodiment of the present invention, different situations that may occur during multi-machine task scheduling will be described below as examples.

[0244] Scenario 1: There is no machine operation at present (multiple second cleaning robots are currently in idle state), and a new cleaning task needs to be dispatched.

[0245] First, according to the task route of the new cleaning task and the working range of the second cleaning robot, the qualified second cleaning robots are filtered and selected.

[0246] Then the power level is judged (if the cleaning task requires watering, the water volume is judged), and the second cleaning robot that meets the conditions is further filtered out.

[0247] Finally, according to the position of the second cleaning robot that meets the conditions and the route to be cleaned, the walking path is planned, and the target cleaning robot with the shortest total walking mileage is selected to perform the new cleaning task.

[0248] Scenario 2: There is no machine operation at present (multiple second cleaning robots are currently in idle state), and multiple (two or more) new cleaning tasks need to be dispatched.

[0249] When there is a complete inclusion relationship between the task routes of the new cleaning task, the tasks are merged and the task list is updated. Selection of cleaning method for the routes of the intersection: select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning. For cleaning tasks in the merged intersection area, according to the cleaning robot screening method in situation one, first dispatch a second cleaning robot to perform the cleaning tasks with intersection (if there are multiple cleaning tasks with merged intersection areas, and each merged intersection area is different, then according to the cleaning robot screening method in situation one, respectively dispatch a second cleaning robot to perform the cleaning tasks with intersection). After the cleaning tasks with intersection are assigned, the remaining cleaning tasks without intersection are then dispatched to other second cleaning robots for execution according to the cleaning robot screening method in situation one.

[0250] When there are some intersections between the task routes of the new cleaning task, the routes of the intersection part select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning (the intersection area route is only cleaned once). For the cleaning tasks where the intersection area routes are located, according to the cleaning robot screening method in situation one, first dispatch a second cleaning robot to perform the cleaning tasks with intersections. After the cleaning tasks with intersections are assigned, the remaining cleaning tasks without intersections are then dispatched to other second cleaning robots for execution according to the cleaning robot screening method in situation one.

[0251] When there is no intersection between the task routes of the new cleaning tasks, the new cleaning tasks are not adjusted, and a second cleaning robot is directly assigned to perform them according to the cleaning robot screening method in situation one.

[0252] When assigning cleaning tasks, if the number of the second cleaning robots is insufficient, the remaining cleaning tasks that have not been assigned will wait until there are idle robots before they are assigned.

[0253] Scenario 3: There is a machine operation at the moment and there is no idle cleaning robot, so a new cleaning task needs to be dispatched.

[0254] When there is a complete inclusion relationship between the task route of the new cleaning task and the task route of the current operation task (current machine task), and the task route of the new cleaning task has not been cleaned in the current operation task, the new cleaning task is merged with the current operation task, and only one cleaning is performed. The second cleaning robot currently in operation performs the new cleaning task. Cleaning method selection for the intersection route: select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning.

[0255] When there is a complete inclusion relationship between the task route of the new cleaning task and the task route of the current operation task, and the task route of the new cleaning task has been cleaned in the current operation task, wait until there is an idle cleaning robot before dispatching the task.

[0256] When there is a partial inclusion relationship between the task route of the new cleaning task and the task route of the current task, and the intersection area route has not been cleaned in the current task, the new cleaning task will be assigned to the second cleaning robot with the intersection route task. According to the current position of the second cleaning robot and the route distribution of the two cleaning tasks, the path with the shortest total mileage is planned, and the execution order between the current task and the new cleaning task is adjusted according to the planned path. Selection of cleaning method for the intersection route: Select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning (the intersection area route is only cleaned once).

[0257] When there is a partial inclusion relationship between the task route of the new cleaning task and the task route of the current task, and the route of the intersection area has been cleaned in the current task, wait until there is an idle cleaning robot before assigning the task.

[0258] When there is no intersection between the task route of the new cleaning task and the task route of the current task, wait until there is an idle cleaning robot before assigning the task.

[0259] Scenario 4: There are machines operating and no idle cleaning robots, so multiple (two or more) new cleaning tasks need to be dispatched.

[0260] First, multiple new cleaning tasks are merged or adjusted.

[0261] When there is a complete inclusion relationship between the task routes of the new cleaning task, the tasks are merged and the task list is updated. The cleaning method selection for the intersection part of the route: select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning.

[0262] When there are some intersections between the task routes of the new cleaning tasks, the routes of the intersection parts select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning (the intersection area route is only cleaned once). Re-adjust the task routes of each new cleaning task (delete the duplicate routes and re-plan the routes).

[0263] When there is no intersection between the task routes of the new cleaning task, no route merging or adjustment is performed.

[0264] After the tasks are merged or adjusted, the tasks are assigned in the manner of dispatching a new cleaning task according to the above situation 3, where there are machines working and no idle cleaning robots.

[0265] Scenario 5: There is a machine operating and an idle cleaning robot, so a new cleaning task needs to be assigned.

[0266] When there is a complete inclusion relationship between the task route of the new cleaning task and the task route of the current operation task (current machine task), and the task route of the new cleaning task has not been cleaned in the current operation task, the new cleaning task is merged with the current operation task, and only one cleaning is performed. The second cleaning robot currently in operation performs the new cleaning task. Cleaning method selection for the intersection route: select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning.

[0267] When there is a complete inclusion relationship between the task route of the new cleaning task and the task route of the current operation task, and the task route of the new cleaning task has been cleaned in the current operation task, a second cleaning robot is dispatched to perform the new cleaning task according to the cleaning robot screening method in situation one.

[0268] When there is a partial inclusion relationship between the task route of the new cleaning task and the task route of the current task, and the intersection area route has not been cleaned in the current task, the new cleaning task will be assigned to the second cleaning robot with the intersection route task. According to the current position of the second cleaning robot and the route distribution of the two cleaning tasks, the path with the shortest total mileage is planned, and the execution order between the current task and the new cleaning task is adjusted according to the planned path. Selection of cleaning method for the intersection route: Select a cleaning method according to the priority of coverage cleaning > patrol cleaning = area cleaning (the intersection area route is only cleaned once).

[0269] When there is a partial inclusion relationship between the task route of the new cleaning task and the task route of the current operation task, and the intersection area route has been cleaned in the current operation task, a second cleaning robot is dispatched to perform the new cleaning task according to the cleaning robot screening method in situation one.

[0270] When there is no intersection between the task route of the new cleaning task and the task route of the current operation task, a second cleaning robot is dispatched to perform the new cleaning task according to the cleaning robot screening method in situation one.

[0271] Scenario 6: There is currently a machine operation and an idle cleaning robot, and multiple (two or more) new cleaning tasks need to be dispatched.

[0272] First, multiple new cleaning tasks are merged or adjusted. This process is the same as the task merging and adjusting process in the above situation 4. Those skilled in the art can refer to the above content for execution, and no further description is given here.

[0273] After the tasks are merged or adjusted, the tasks are assigned in the manner described in the fifth scenario above, where there are machines operating and idle cleaning robots, and a new cleaning task needs to be assigned.

[0274] Therefore, for the task scheduling application scenario of multiple cleaning robots, by adopting the multi-machine task scheduling strategy provided by the embodiment of the present invention, based on the relationship between the queue of cleaning tasks to be processed and the tasks of the cleaning robots in operation (such as position distance, overlap of cleaning route area, etc.), combined with the position status of the idle cleaning robots, the idle cleaning robots or the working robots are dynamically dispatched to perform the cleaning tasks to be performed, thereby avoiding repeated cleaning, minimizing the total walking mileage to complete the task, and optimizing the cleaning efficiency.

[0275] In addition, when scheduling tasks, different tasks have different operation modes. By setting the cleaning priority of the task operation mode of coverage cleaning > patrol cleaning = area cleaning, a more appropriate operation mode can be adaptively selected when adjusting tasks.

[0276] It is understandable that, regardless of whether a single-machine task scheduling or a multi-machine task scheduling method is used, when there is a partial intersection or partial inclusion relationship between the task routes, when selecting the corresponding cleaning method and re-planning the route, the specific cleaning requirements are: merge the intersection areas for tasks with route intersections, and the merged intersection areas only need to be cleaned once. For example, for a single-machine task scheduling method, if the cleaning type of the currently executed task is overlay cleaning, there is a route intersection between the task to be cleaned and the currently executed task, and the intersection area between the two has not been cleaned, if the task route of the currently executed task partially contains the task route of at least one cleaning task, then the intersection area is overlay cleaned, and the non-intersection area cleaning type remains unchanged, and the lines with intersections are merged, and the merged intersection area is only cleaned once, and the shortest walking path is re-planned.

[0277] It should be noted that, in order to enable those skilled in the art to better distinguish data of the same type but with different actual meanings, some technical features are distinguished by the first and the second in the embodiments of the present invention. The first and the second are only used for data distinction and have no other special meanings. It can be understood that the present invention is not limited to this.

[0278] In an embodiment of the present invention, a task scheduling method for a cleaning robot is provided. In combination with the cleaning robot task scheduling system provided by the present invention, different task scheduling strategies are set for different task scheduling scenarios under the premise of considering multiple types of cleaning tasks. By merging repeated tasks, partially merging tasks with intersections or adjusting the order of task execution, not only can the problem of repeated cleaning be solved, the total mileage or time spent on completing tasks can be reduced, and the overall cleaning efficiency can be optimized, but also a more flexible task scheduling method can be provided.

[0279] For better explanation, refer to Figure 3 , showing a schematic diagram of the overall process of a cleaning robot task scheduling method provided by an embodiment of the present invention. It should be pointed out that this embodiment only briefly describes the general process of cleaning robot task scheduling, and the specific implementation process of each step can be understood by referring to the relevant content in the aforementioned embodiment, which will not be described here. It can be understood that the present invention does not limit this.

[0280] Step 301: When garbage is detected in the cleaning area, or in response to a cleaning task generation instruction, at least one cleaning task is generated for the cleaning area.

[0281] Step 302: Determine whether at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling based on the number of cleaning robots deployed in the cleaning area.

[0282] Step 3031: If it is a single-machine task scheduling, determine the current state of the first cleaning robot.

[0283] Step 3032: If the first cleaning robot is currently in a task execution state, determine the cleaning type of the currently executed task, and combine the single-machine task intersection judgment to assign at least one cleaning task to the first cleaning robot to perform garbage cleaning.

[0284] Step 3033: If the first cleaning robot is currently in an idle state, determine whether the first cleaning robot meets the operation requirements. Based on the judgment result and the number of cleaning tasks, assign at least one cleaning task to the first cleaning robot to perform garbage cleaning.

[0285] Step 3041: If it is multi-machine task scheduling, determine the current status of multiple second cleaning robots.

[0286] Step 3042: In view of the two different situations that multiple second cleaning robots are currently in an idle state, and that a second cleaning robot is in a task execution state, different task scheduling strategies are adopted respectively based on the number of cleaning tasks and the intersection judgment of multiple tasks to assign at least one cleaning task to multiple second cleaning robots to perform garbage cleaning.

[0287] Reference Figure 4 , shows a structural block diagram of a cleaning robot task scheduling device provided by an embodiment of the present invention, which may specifically include:

[0288] A cleaning task generating module 401 is used to generate at least one cleaning task for the cleaning area when garbage is detected in the cleaning area or in response to a cleaning task generating instruction;

[0289] The task scheduling determination module 402 is used to determine whether the at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling;

[0290] A single-machine scheduling strategy execution module 403 is used to adopt a single-machine scheduling strategy to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning;

[0291] The multi-machine scheduling strategy execution module 404 is used to adopt a multi-machine scheduling strategy to allocate the at least one cleaning task to multiple second cleaning robots to perform garbage cleaning.

[0292] In an optional embodiment, the stand-alone scheduling strategy execution module 403 includes:

[0293] A first cleaning robot current state judgment module, used to judge the current state of the first cleaning robot;

[0294] The stand-alone scheduling strategy execution submodule is used to determine the cleaning type of the currently executed task when the first cleaning robot is currently in a task execution state, and to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning in combination with the stand-alone task intersection judgment.

[0295] In an optional embodiment, the stand-alone scheduling strategy execution submodule includes:

[0296] A first line intersection judgment module, used for judging whether there is a line intersection between the current execution task and the cleaning task when the cleaning type of the current execution task is covering cleaning;

[0297] The first shortest walking path planning module is used to re-plan the shortest walking path based on the current location and the distribution of cleaning task routes when there is no route intersection;

[0298] A first intersection area cleaning judgment module, used for judging whether the intersection area between the currently executed task and the at least one cleaning task has been cleaned when there is a line intersection;

[0299] A first task inclusion relationship judgment module, used for judging the task inclusion relationship between the currently executed task and the at least one cleaning task when the intersection area is not cleaned;

[0300] A first cleaning task canceling module, configured to cancel the at least one cleaning task and continue to execute the currently executed task when the task route of the currently executed task completely includes the task route of the at least one cleaning task;

[0301] A second shortest walking path planning module is used to re-plan the shortest walking path by adopting a method of covering the intersection area and cleaning the non-intersection area without changing the cleaning type when the task route of the currently executed task partially includes the task route of the at least one cleaning task;

[0302] The third shortest walking path planning module is used to re-plan the shortest walking path when the intersection area has been cleaned;

[0303] The first garbage cleaning execution module is used to adjust the execution order of the current execution task and the at least one cleaning task through the first cleaning robot according to the shortest walking path after the shortest walking path is re-planned, and to perform garbage cleaning in sequence.

[0304] In an optional embodiment, the stand-alone scheduling strategy execution submodule includes:

[0305] A second line intersection judgment module is used to judge whether there is a line intersection between the current execution task and the cleaning task when the cleaning type of the current execution task is patrol cleaning or area cleaning;

[0306] The fourth shortest walking path planning module is used to re-plan the shortest walking path based on the current location and the cleaning task route distribution when there is no route intersection;

[0307] A second intersection area cleaning judgment module, used for judging whether the intersection area between the currently executed task and the at least one cleaning task has been cleaned when there is a line intersection;

[0308] A second task inclusion relationship judgment module is used to judge the task inclusion relationship between the currently executed task and the at least one cleaning task when the intersection area is not cleaned;

[0309] A first covering cleaning judgment module is used to judge whether there is covering cleaning of the cleaning task at the intersection when the task route of the currently executed task completely includes the task route of the at least one cleaning task;

[0310] A second cleaning task cancellation module is used to cancel the at least one cleaning task, and the intersection area adopts the cleaning method of the currently executed task;

[0311] A third cleaning task cancellation module is used to cancel the at least one cleaning task, and the intersection area is cleaned by covering;

[0312] A second covering cleaning judgment module is used to judge whether there is covering cleaning of the cleaning task at the intersection when the task route of the currently executed task partially includes the task route of the at least one cleaning task;

[0313] The fifth shortest walking path planning module is used to re-plan the shortest walking path by adopting the current task cleaning type for the intersection area and keeping the cleaning type of the non-intersection area unchanged;

[0314] The sixth shortest walking path planning module is used to re-plan the shortest walking path by covering and cleaning the intersection area and keeping the cleaning type of the non-intersection area unchanged;

[0315] The seventh shortest walking path planning module is used to re-plan the shortest walking path when the intersection area has been cleaned;

[0316] The second garbage cleaning execution module is used to adjust the execution order of the current execution task and the at least one cleaning task through the first cleaning robot according to the shortest walking path after the shortest walking path is re-planned, and to execute garbage cleaning in sequence.

[0317] In an optional embodiment, the device further includes:

[0318] A third task inclusion relationship judgment module is used to judge the task inclusion relationship between the at least one cleaning task when there is no line intersection between the currently executed task and the cleaning task, but there is a line intersection between the at least one cleaning task;

[0319] A first task merging and updating module is used to merge and update the at least one cleaning task when there is a complete inclusion relationship between the task routes of the at least one cleaning task, and re-plan the shortest walking path;

[0320] An eighth shortest walking path planning module, configured to replan the shortest walking path when there is a partial intersection relationship between the task routes of the at least one cleaning task;

[0321] The intersection area between the at least one cleaning task is cleaned according to the priority of coverage cleaning>patrol cleaning=area cleaning.

[0322] In an optional embodiment, the device further includes:

[0323] The original cleaning type execution module is used for cleaning the intersection area in the same route or area according to the original cleaning type of the intersection task when there are two intersection tasks in the same route or area in the cleaning area;

[0324] The priority cleaning execution module is used to merge the intersection areas of the intersection tasks when there are three or more intersection tasks in the same route or area in the cleaning area, and the merged intersection area is cleaned according to the priority method of coverage cleaning>patrol cleaning=area cleaning.

[0325] In an optional embodiment, the device further includes:

[0326] an operation requirement judgment module, configured to judge whether the first cleaning robot meets the operation requirements when the first cleaning robot is currently in an idle state;

[0327] A first cleaning task allocation module, configured to directly allocate the cleaning task to the first cleaning robot to perform garbage cleaning when the number of the cleaning tasks is one;

[0328] The second cleaning task allocation module is used to delete the repeated routes of at least one cleaning task to merge the tasks when the number of the cleaning tasks is two or more, and allocate the cleaning tasks after the task merging to the first cleaning robot to perform garbage cleaning.

[0329] In an optional embodiment, the multi-machine scheduling strategy execution module 404 includes:

[0330] The multi-machine scheduling strategy execution submodule is used to allocate at least one cleaning task to the multiple second cleaning robots to perform garbage cleaning based on the current status of the multiple second cleaning robots, combined with the number of cleaning tasks and the intersection judgment of multiple machine tasks.

[0331] In an optional embodiment, the multi-machine scheduling strategy execution submodule includes:

[0332] a target cleaning robot screening module, wherein when the plurality of second cleaning robots are currently in an idle state, if the number of the cleaning tasks is one, a target cleaning robot is selected from the plurality of second cleaning robots according to a preset screening condition, and the cleaning task is assigned to the target cleaning robot to perform garbage cleaning;

[0333] The task intersection relationship judgment module is used to judge the task intersection relationship between at least one cleaning task when the number of the cleaning tasks is two or more, and according to the task intersection relationship judgment result, allocate the at least one cleaning task to the multiple second cleaning robots to perform garbage cleaning.

[0334] In an optional embodiment, the task intersection relationship judgment module includes:

[0335] A first merged intersection area determination module, configured to first merge the tasks and then determine the merged intersection area when there is a complete inclusion relationship between the task routes of the at least one cleaning task;

[0336] A second merged intersection area determination module, configured to directly determine a merged intersection area when there is a partial intersection relationship between the task routes of the at least one cleaning task;

[0337] A combined intersection area cleaning task allocation module, used to allocate the cleaning task of the combined intersection area to one of the second cleaning robots to perform garbage cleaning, and then allocate the remaining cleaning tasks to other second cleaning robots to perform garbage cleaning;

[0338] The third cleaning task allocation module is used to assign the at least one cleaning task to one of the second cleaning robots to perform garbage cleaning when there is no route intersection between the task routes of the at least one cleaning task.

[0339] In an optional embodiment, the multi-machine scheduling strategy execution submodule includes:

[0340] A line intersection relationship judgment module is used to judge the line intersection relationship between the current machine task and the cleaning task when there is a second cleaning robot in a task execution state and if the number of the cleaning tasks is one;

[0341] A task route cleaning judgment module, used to judge whether the task route corresponding to the cleaning task has been cleaned in the current machine task if there is a complete inclusion relationship between the current machine task and the cleaning task;

[0342] A task merging execution module, used to merge the cleaning task with the current machine task, and perform garbage cleaning once by a second cleaning robot that has a complete inclusion relationship with the cleaning task;

[0343] An intersection route cleaning judgment module, used for judging whether the intersection route has been cleaned in the current machine task when there is a partial intersection relationship between the current machine task and the cleaning task;

[0344] The ninth shortest walking path planning module is used to assign the cleaning task to the second cleaning robot where the intersection route is located, and re-plan the shortest walking path to perform garbage cleaning.

[0345] In an optional embodiment, the device further includes:

[0346] The task intersection judgment module is used when the task route or intersection route corresponding to the cleaning task has been cleaned, or there is no route intersection between the current machine task and the cleaning task:

[0347] An idle cleaning robot waiting module is used to dispatch the cleaning task when there is no idle cleaning robot at present;

[0348] The target idle robot screening execution module is used to screen a target idle robot from among the at least one idle cleaning robot to perform garbage cleaning when there is currently at least one idle cleaning robot.

[0349] In an optional embodiment, the device further includes a task adjustment allocation module, and the task adjustment allocation module is specifically used to:

[0350] If there is no idle cleaning robot at present, and the number of the cleaning tasks is two or more, firstly adjust the at least one cleaning task, and then allocate the adjusted cleaning task in the same manner as allocating one cleaning task when there is no idle cleaning robot;

[0351] If there is currently at least one idle cleaning robot and the number of the cleaning tasks is two or more, the at least one cleaning task is first adjusted, and then the adjusted cleaning task is allocated in the same manner as when there is an idle cleaning robot.

[0352] In an optional embodiment, the task adjustment allocation module includes:

[0353] A fourth task inclusion relationship judgment module, used to judge the task inclusion relationship between the at least one cleaning task;

[0354] A second task merging and updating module, configured to perform task merging and updating on the at least one cleaning task when there is a complete inclusion relationship between the task routes of the at least one cleaning task;

[0355] a tenth shortest walking path planning module, configured to replan the shortest walking path when there is a partial intersection relationship between the task routes of the at least one cleaning task;

[0356] The module for not executing the adjustment operation is used for not performing the adjustment operation when there is no route intersection between the task routes of the at least one cleaning task.

[0357] In an optional embodiment, the task scheduling determination module 402 includes:

[0358] A robot quantity determination module is used to determine the number of cleaning robots deployed in the cleaning area;

[0359] A single-machine task scheduling determination module, used to determine the single-machine task scheduling corresponding to the cleaning task when the number of the cleaning robot is one;

[0360] The multi-machine task scheduling determination module is used to determine the multi-machine task scheduling corresponding to the cleaning task when the number of the cleaning robots is two or more.

[0361] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the aforementioned method embodiment.

[0362] An embodiment of the present invention further provides an electronic device, the device comprising a processor and a memory:

[0363] The memory is used to store the program code and transmit the program code to the processor;

[0364] The processor is used to execute the cleaning robot task scheduling method of any embodiment of the present invention according to the instructions in the program code.

[0365] An embodiment of the present invention also provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the cleaning robot task scheduling method of any embodiment of the present invention.

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

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

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

[0369] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0370] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0371] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A cleaning robot task scheduling method, characterized in that: include: When it is detected that there is garbage in the cleaning area, or in response to a cleaning task generation instruction, generating at least one cleaning task for the cleaning area; Determining whether the at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling; If it is a single-machine task scheduling, a single-machine scheduling strategy is adopted to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning; If it is multi-machine task scheduling, a multi-machine scheduling strategy is adopted to allocate the at least one cleaning task to multiple second cleaning robots to perform garbage cleaning.

2. The cleaning robot task scheduling method according to claim 1, characterized in that: The method adopts a single-machine scheduling strategy to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning, including: Determining the current state of the first cleaning robot; If the first cleaning robot is currently in a task execution state, the cleaning type of the currently executed task is determined, and combined with the single-machine task intersection judgment, the at least one cleaning task is assigned to the first cleaning robot to perform garbage cleaning.

3. The cleaning robot task scheduling method according to claim 2, characterized in that: The determining of the cleaning type of the currently executed task and combining the single-machine task intersection determination to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning includes: When the cleaning type of the currently executed task is covering cleaning, determining whether there is a line intersection between the currently executed task and the cleaning task; If there is no route intersection, replan the shortest walking path based on the current location and the distribution of cleaning task routes; If there is a line intersection, determining whether the intersection area of ​​the currently executed task and the at least one cleaning task has been cleaned; If the intersection area is not cleaned, determining the task inclusion relationship between the currently executed task and the at least one cleaning task; If the task route of the currently executed task completely includes the task route of the at least one cleaning task, canceling the at least one cleaning task and continuing to execute the currently executed task; If the task route of the currently executed task includes the task route of at least one cleaning task, the shortest walking path is replanned by covering the intersection area with cleaning and keeping the cleaning type of the non-intersection area unchanged; If the intersection area has been cleaned, replan the shortest walking path; After the shortest walking path is replanned, the first cleaning robot adjusts the execution order of the current task and the at least one cleaning task according to the shortest walking path, and performs garbage cleaning in sequence.

4. The cleaning robot task scheduling method according to claim 2, characterized in that: The determining of the cleaning type of the currently executed task and combining the single-machine task intersection determination to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning includes: When the cleaning type of the currently executed task is patrol cleaning or area cleaning, determining whether there is a route intersection between the currently executed task and the cleaning task; If there is no route intersection, replan the shortest walking path based on the current location and the distribution of cleaning task routes; If there is a line intersection, determining whether the intersection area of ​​the currently executed task and the at least one cleaning task has been cleaned; If the intersection area is not cleaned, determining the task inclusion relationship between the currently executed task and the at least one cleaning task; If the task route of the currently executed task completely includes the task route of the at least one cleaning task, determining whether there is an overlapping cleaning task at the intersection; If it does not exist, the at least one cleaning task is cancelled, and the intersection area adopts the cleaning method of the currently executed task; If so, cancel the at least one cleaning task and use the covering cleaning method for the intersection area; If the task route portion of the currently executed task includes the task route of at least one cleaning task, determining whether there is an overlapping cleaning task at the intersection; If it does not exist, the current task cleaning type is adopted for the intersection area, and the cleaning type of the non-intersection area remains unchanged, and the shortest walking path is replanned; If it exists, the intersection area is covered and cleaned, and the non-intersection area is cleaned unchanged, and the shortest walking path is replanned; If the intersection area has been cleaned, replan the shortest walking path; After the shortest walking path is replanned, the first cleaning robot adjusts the execution order of the current task and the at least one cleaning task according to the shortest walking path, and performs garbage cleaning in sequence.

5. The cleaning robot task scheduling method according to claim 3 or 4, characterized in that: When the number of the cleaning tasks is two or more, the method further includes: If there is no line intersection between the currently executed task and the cleaning task, but there is a line intersection between the at least one cleaning task, determining the task inclusion relationship between the at least one cleaning task; When there is a complete inclusion relationship between the task routes of the at least one cleaning task, performing task merging and updating on the at least one cleaning task, and replanning the shortest walking path; When there is a partial intersection relationship between the task routes of the at least one cleaning task, replanning the shortest walking path; The intersection area between the at least one cleaning task is cleaned according to the priority of coverage cleaning>patrol cleaning=area cleaning.

6. The cleaning robot task scheduling method according to claim 5, characterized in that: When the intersection area between the currently executed task and the at least one cleaning task has been cleaned, the method further includes: When there are two intersection tasks in the same route or area in the cleaning area, the intersection area in the same route or area is cleaned according to the original cleaning type of the intersection task; When there are three or more intersection tasks in the same route or area in the cleaning area, the intersection areas of the intersection tasks are merged, and the merged intersection area is cleaned according to the priority of coverage cleaning>patrol cleaning=area cleaning.

7. The cleaning robot task scheduling method according to claim 2, characterized in that: Also includes: If the first cleaning robot is currently in an idle state, determining whether the first cleaning robot meets the operation requirements; If it meets the requirement, when the number of the cleaning tasks is one, directly assigning the cleaning task to the first cleaning robot to perform garbage cleaning; When the number of the cleaning tasks is two or more, the repeated routes of at least one of the cleaning tasks are deleted to merge the tasks, and the cleaning tasks after the task merging are assigned to the first cleaning robot to perform garbage cleaning.

8. The cleaning robot task scheduling method according to claim 1, characterized in that: The method of adopting a multi-machine scheduling strategy to allocate the at least one cleaning task to a plurality of second cleaning robots to perform garbage cleaning includes: Based on the current status of the multiple second cleaning robots, combined with the number of cleaning tasks and the intersection judgment of multiple tasks, the at least one cleaning task is assigned to the multiple second cleaning robots to perform garbage cleaning.

9. The cleaning robot task scheduling method according to claim 8, characterized in that: The method of allocating the at least one cleaning task to the plurality of second cleaning robots to perform garbage cleaning based on the current states of the plurality of second cleaning robots, in combination with the number of cleaning tasks and the multi-machine task intersection judgment, comprises: When the plurality of second cleaning robots are currently in an idle state, if the number of the cleaning tasks is one, a target cleaning robot is selected from the plurality of second cleaning robots according to a preset screening condition, and the cleaning task is assigned to the target cleaning robot to perform garbage cleaning; If the number of the cleaning tasks is two or more, the task intersection relationship between the at least one cleaning task is determined, and based on the task intersection relationship determination result, the at least one cleaning task is allocated to the multiple second cleaning robots to perform garbage cleaning.

10. The cleaning robot task scheduling method according to claim 9, characterized in that: The determining of the task intersection relationship between the at least one cleaning task, and assigning the at least one cleaning task to the plurality of second cleaning robots to perform garbage cleaning according to the task intersection relationship determination result, comprises: When there is a complete inclusion relationship between the task routes of at least one cleaning task, firstly merge the tasks and then determine the merged intersection area; When there is a partial intersection relationship between the task routes of the at least one cleaning task, directly determining a merged intersection area; Assigning the cleaning task of the merged intersection area to one of the second cleaning robots to perform garbage cleaning, and then assigning the remaining cleaning tasks to other second cleaning robots to perform garbage cleaning; When there is no route intersection between the task routes of the at least one cleaning task, the at least one cleaning task is respectively assigned to one of the second cleaning robots to perform garbage cleaning.

11. The cleaning robot task scheduling method according to claim 8, characterized in that: The method of allocating the at least one cleaning task to the plurality of second cleaning robots to perform garbage cleaning based on the current states of the plurality of second cleaning robots, in combination with the number of cleaning tasks and the multi-machine task intersection judgment, comprises: When there is a second cleaning robot in a task execution state, if the number of the cleaning tasks is one, determining the line intersection relationship between the current machine task and the cleaning task; If there is a complete inclusion relationship between the current machine task and the cleaning task, determining whether the task route corresponding to the cleaning task has been cleaned in the current machine task; If the garbage has not been cleaned, the cleaning task is merged with the current machine task, and the second cleaning robot that has a complete inclusion relationship with the cleaning task performs garbage cleaning once; If there is a partial intersection relationship between the current machine task and the cleaning task, determining whether the intersection route has been cleaned in the current machine task; If it has not been cleaned, the cleaning task will be assigned to the second cleaning robot where the intersection route is located, and the shortest walking path will be replanned to perform garbage cleaning.

12. The cleaning robot task scheduling method according to claim 11, characterized in that: Also includes: When the task route or intersection route corresponding to the cleaning task has been cleaned, or there is no route intersection between the current machine task and the cleaning task: If there is no idle cleaning robot at present, wait until there is an idle cleaning robot before assigning the cleaning task; If there is currently at least one idle cleaning robot, a target idle robot is selected from the at least one idle cleaning robot to perform garbage cleaning.

13. The cleaning robot task scheduling method according to claim 12, characterized in that: Also includes: If there is no idle cleaning robot at present, and the number of the cleaning tasks is two or more, firstly adjust the at least one cleaning task, and then allocate the adjusted cleaning task in the manner of allocating one cleaning task when there is no idle cleaning robot; If there is currently at least one idle cleaning robot and the number of the cleaning tasks is two or more, the at least one cleaning task is first adjusted, and then the adjusted cleaning task is allocated in the same manner as when there is an idle cleaning robot.

14. The cleaning robot task scheduling method according to claim 13, characterized in that: The step of adjusting the at least one cleaning task comprises: determining a task inclusion relationship between the at least one cleaning task; When there is a complete inclusion relationship between the task routes of the at least one cleaning task, performing task merging and updating on the at least one cleaning task; When there is a partial intersection relationship between the task routes of the at least one cleaning task, replanning the shortest walking path; When there is no route intersection between the task routes of the at least one cleaning task, no adjustment operation is performed.

15. The cleaning robot task scheduling method according to claim 1, characterized in that: The determining whether the at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling includes: Determining the number of cleaning robots deployed in the cleaning area; If the number of the cleaning robot is one, determining that the cleaning task corresponds to a single-machine task scheduling; If the number of the cleaning robots is two or more, it is determined that the cleaning task corresponds to multi-machine task scheduling.

16. A cleaning robot task scheduling system, characterized in that: The task scheduling system is used for the cleaning robot task scheduling method according to any one of claims 1 to 15, and the task scheduling system includes a scheduling management unit, a mobile client, at least one fixed camera connected to the scheduling management unit and the mobile client, and at least one cleaning robot; wherein, The fixed camera is used to collect environmental data of the cleaning area and transmit the environmental data to the scheduling management unit; The mobile client is used to construct a cleaning task generation instruction and generate a cleaning task based on the cleaning task generation instruction; The scheduling management unit is used to perform garbage detection on the environmental data, generate a cleaning task based on the garbage detection result, and assign the cleaning task to the cleaning robot so that the cleaning robot performs garbage cleaning based on the cleaning task.

17. A cleaning robot task scheduling device, characterized in that: include: A cleaning task generation module, configured to generate at least one cleaning task for the cleaning area when garbage is detected in the cleaning area or in response to a cleaning task generation instruction; A task scheduling judgment module, used to judge whether the at least one cleaning task corresponds to single-machine task scheduling or multi-machine task scheduling; A single-machine scheduling strategy execution module, configured to adopt a single-machine scheduling strategy to assign the at least one cleaning task to the first cleaning robot to perform garbage cleaning; The multi-machine scheduling strategy execution module is used to adopt a multi-machine scheduling strategy to allocate the at least one cleaning task to multiple second cleaning robots to perform garbage cleaning.

18. An electronic device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the cleaning robot task scheduling method described in any one of claims 1-15 according to the instructions in the program code.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the cleaning robot task scheduling method described in any one of claims 1-15.

Citation Information

Cited By

  • Task fusion and planning method and system for robot multi-task scene

    CN121579221A