Cleaning control method, cleaning robot and storage medium
By obtaining the circumscribed rectangle of the stained area and selecting the target rectangle that satisfies the preset conditions as the cleaning path, it ensures that the cleaning parts cover the width, solves the problem of low cleaning efficiency of existing cleaning robots in irregularly shaped stained areas, and achieves efficient stain cleaning. Effect.
Patent Information
- Application Number
- CN202410924975.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-11
AI Technical Summary
When existing cleaning robots face irregularly shaped stained areas, their cleaning efficiency is low and they easily leave residues, failing to effectively improve the stain cleaning effect.
By obtaining the circumscribed rectangle of the stained area, select the target rectangle that meets the preset conditions as the cleaning path to ensure that the maximum continuous coverage width of the cleaning component perpendicular to the direction of travel can completely cover the stained area, so that it can travel in a straight line along the center line for cleaning. .
It improves the efficiency and effectiveness of stain cleaning, reduces repeated cleaning of irregularly shaped stain areas, and improves the overall cleaning ability of the cleaning robot.
Smart Images

Figure CN118452746B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent control technology, and in particular to a cleaning control method, a cleaning robot and a storage medium. Background Art
[0002] At present, cleaning robots such as sweeping robots and mopping robots are being used more and more widely in homes, shopping malls and other places.
[0003] However, in real-life scenarios, since the stain area is usually irregular in shape, existing cleaning robots are prone to leaving residues during the cleaning process, or because the stain area is not cleaned in a planned manner, the cleaning efficiency is low. In view of this, how to improve the efficiency and effect of stain cleaning, especially when facing irregularly shaped stain areas, has become an urgent problem to be solved. Summary of the invention
[0004] The main technical problem solved by the present application is to provide a cleaning control method, a cleaning robot and a storage medium, which can improve the efficiency and effect of stain cleaning, especially when facing irregularly shaped stain areas.
[0005] In order to solve the above-mentioned technical problems, the first aspect of the present application provides a cleaning control method, including: obtaining a stain area to be cleaned; determining at least one circumscribed rectangle of the stain area; selecting a circumscribed rectangle that at least meets preset conditions as a target rectangle; wherein the preset conditions include that at least one side of any pair of adjacent sides of the circumscribed rectangle is not longer than a first threshold value, and the first threshold value is not greater than the maximum continuous coverage width of a cleaning component used by a cleaning robot to clean the stain area in a direction perpendicular to the travel direction of the cleaning robot; based on the center line of the target rectangle, determining the travel trajectory when cleaning the stain area.
[0006] In order to solve the above technical problems, the second aspect of the present application provides a cleaning robot, which at least includes a memory and a processor coupled to each other, the memory stores program instructions, and the processor is used to execute the program instructions to implement the cleaning control method in the above first aspect.
[0007] In order to solve the above technical problem, the third aspect of the present application provides a computer-readable storage medium storing program instructions that can be executed by a processor, and the program instructions are used to implement the cleaning control method of the first aspect.
[0008] The above scheme obtains the stain area to be cleaned, and then determines at least one circumscribed rectangle of the stain area, thereby selecting a circumscribed rectangle that at least meets the preset conditions as the target rectangle, and the preset conditions include that at least one side of any pair of adjacent sides of the circumscribed rectangle is not longer than the first threshold, and the first threshold is not greater than the maximum continuous coverage width of the cleaning components used by the cleaning robot to clean the stain area in a direction perpendicular to the moving direction of the cleaning robot, and then based on the center line of the target rectangle, the moving trajectory when cleaning the stain area is determined. Therefore, when the cleaning robot moves along the center line direction, the maximum continuous coverage width of the cleaning components in a direction perpendicular to the moving direction must be able to completely cover any width of the stain area in this moving direction. Therefore, even when facing an irregularly shaped stain area, as long as the planned moving trajectory is maintained as a whole and the cleaning action is performed, the stain area can be cleaned in one step without repeatedly cleaning the stain area in different directions. Therefore, the efficiency and effect of stain cleaning can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a flow chart of an embodiment of the cleaning control method of the present application;
[0010] Figure 2 is a schematic diagram of an embodiment of a circumscribed rectangle of a stain area;
[0011] Figure 3a is a schematic diagram of an embodiment of a cleaning robot using a double disc cleaning component;
[0012] Figure 3b is a schematic diagram of an embodiment of a cleaning robot using a semicircular flat cleaning component;
[0013] Figure 3c is a schematic diagram of an embodiment of a cleaning robot using a rectangular crawler type cleaning component;
[0014] Figure 4a is a schematic diagram of an embodiment of a target rectangle;
[0015] Figure 4b is a schematic diagram of another embodiment of a target rectangle;
[0016] Figure 4c is a schematic diagram of another embodiment of a target rectangle;
[0017] Figure 5 is a schematic diagram of an embodiment of a double-disc cleaning component cleaning stains;
[0018] Figure 6 It is a schematic diagram of the framework of an embodiment of the cleaning control device of the present application;
[0019] Figure 7This is a schematic diagram of the framework of an embodiment of the cleaning robot of the present application;
[0020] Figure 8 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0021] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.
[0022] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.
[0023] The terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the fragment " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. In addition, "many" in this article means two or more than two.
[0024] See also Figure 1 , Figure 1 This is a flow chart of an embodiment of the cleaning control method of the present application. Specifically, it may include the following steps:
[0025] Step S11: Acquire the stained area to be cleaned.
[0026] In one implementation scenario, any target area of stains to be cleaned in the area to be cleaned can be selected as the stain area to be cleaned. For example, if N stains to be cleaned are detected in the area to be cleaned, any target area of stains to be cleaned can be selected as the stain area to be cleaned.
[0027] In a specific implementation scenario, during the cleaning process, the cleaning robot can capture the image of the area to be cleaned through an image sensor, and can identify the captured image of the area to be cleaned to determine the image area of each piece of stain to be cleaned in the captured image, and then convert the image area to the top view coordinate system based on the inverse perspective transformation to obtain the equivalent area of the stain to be cleaned in the top view coordinate system, and finally convert the equivalent area to the map coordinate system based on the calibration parameters and the current posture to obtain the target area of the stain to be cleaned in the map coordinate system. It should be noted that the above-mentioned stains may include but are not limited to: liquid stains, dried stains, etc. For example, such as coffee stains, soy sauce stains, juice stains, tea stains, shoe prints, mud watermarks, etc. In addition, the cleaning robot can perform three-dimensional modeling on the place it cleans to obtain a three-dimensional map of the place it cleans. For example, a three-dimensional map of the place it cleans can be constructed through SLAM (Simultaneous Localization And Mapping, real-time positioning and map construction), and the stain area can specifically represent the physical position of the stain to be cleaned in the three-dimensional map (i.e., the map coordinate system).
[0028] In a specific implementation scenario, the image area of the stain to be cleaned in the captured image can be obtained by performing target detection on the captured image. Exemplarily, a neural network model for target detection of stains in an image can be pre-trained, such as including but not limited to Faster RCNN, VGG, etc., and the network structure of the neural network model is not limited here. On this basis, the captured image can be subjected to target detection using the trained converged neural network model to obtain the image area of the stain to be cleaned in the captured image. In order to improve the accuracy of target detection, a sample image can be obtained, and a sample area of the sample stain can be annotated in the sample image, such as a rectangular frame surrounding the sample stain, and then the sample image can be subjected to target detection using the neural network model to obtain the predicted area of the sample stain. It should be noted that the image area of the stain to be cleaned can be a graphic area (such as a rectangular frame) surrounding the stain to be cleaned in the captured image, and the predicted area can be a graphic area (such as a rectangular frame) predicted by the neural network model to surround the sample stain, so that the network parameters of the neural network model can be adjusted based on the difference between the sample area and the predicted area until the training converges.
[0029] In a specific implementation scenario, the image area of the stain to be cleaned in the captured image can also be obtained by performing image segmentation on the captured image. Exemplarily, a neural network model for instance segmentation of stains in an image can be pre-trained, such as including but not limited to U-Net, etc., and the network structure of the neural network model is not limited here. On this basis, the captured image can be segmented using the trained converged neural network model to obtain the image area of the stain to be cleaned in the captured image. In order to improve the image segmentation accuracy, a sample image can be obtained, and each pixel in the sample image is respectively marked with a sample tag (such as 0, 1, etc.), and the sample tag represents whether the pixel actually belongs to the sample stain, and then the sample image is segmented using the neural network model to obtain the predicted tag of each pixel in the sample image, and the predicted tag represents whether the pixel is predicted to belong to the sample stain, so that the network parameters of the neural network model can be adjusted based on the difference between the sample tag and the predicted tag of the same pixel until the training converges.
[0030] In a specific implementation scenario, the image area of the stain to be cleaned in the captured image can also be obtained by first performing target detection on the captured image and then performing image segmentation. That is to say, target detection can be performed on the captured image first to obtain the target area surrounding the stain to be cleaned in the captured image, and then the image data of the target area in the captured image can be extracted, and then the image data can be segmented to obtain the image area formed by the pixel points belonging to the stain to be cleaned in the captured image. Of course, target detection can be performed by the neural network model obtained by the aforementioned training process, and image segmentation can be performed by the neural network model obtained by the aforementioned training process. For the sake of distinction, the neural network model used for target detection can be referred to as a target detection model, and the neural network model used for image segmentation can be referred to as an image segmentation model.
[0031] It should be noted that the above examples are only several possible examples of identifying the image area of the stain to be cleaned in the captured image during the actual application process, and do not limit the specific method of identifying the stain to be cleaned. In addition, in the process of identifying the captured image, the stain type of the stain to be cleaned can also be output, such as liquid stains, particle stains, dried stains, etc., and the specific content of the stain type is not limited here.
[0032] In a specific implementation scenario, the top view coordinate system refers to a coordinate system established based on an image sensor used by the cleaning robot to capture images, that is, a camera coordinate system. In addition, the specific process of converting the image area to the top view coordinate system based on the inverse perspective transformation can refer to the technical details of the inverse perspective mapping (IPM), which will not be repeated here.
[0033] In a specific implementation scenario, the calibration parameters may include but are not limited to the internal parameters and external parameters of the cleaning robot's image sensor, and the current posture may specifically be the posture parameters of the cleaning robot when it collects and detects the photographed image of the stain to be cleaned. In addition, the specific process of converting the equivalent area to the map coordinate system based on the calibration parameters and the current posture can refer to the technical details of the conversion between the camera coordinate system and the world coordinate system in the coordinate system transformation, which will not be repeated here.
[0034] In another implementation scenario, different from the aforementioned implementation, as another possible implementation, after obtaining the target areas of each stain to be cleaned in the area to be cleaned, several stain sets can be obtained based on the shortest distance between the boundaries of each target area of each stain to be cleaned, and the stain set contains at least one stain to be cleaned, and then the target areas of each stain to be cleaned in the stain set are merged to obtain the stain area to be cleaned of the stain set. It should be noted that the specific process of obtaining the target areas of each stain to be cleaned in the area to be cleaned can refer to the aforementioned related description, which will not be repeated here. In the above method, in the process of merging the target areas of each stain to be cleaned, the shortest distance between the boundaries of each target area of each stain to be cleaned is considered, which helps to ensure as much as possible that the shortest distance between the boundaries of the merged stain area is larger than the shortest distance between the target areas in the merged stain area, which helps to minimize the impact on other merged stain areas when cleaning any merged stain area.
[0035] In a specific implementation scenario, any stain to be cleaned that is located in different stain sets respectively satisfies that the shortest distance between the boundaries of the target areas of the two stains is not less than the second threshold. That is to say, for two different stain sets, if one stain to be cleaned is randomly selected from one of them and one stain to be cleaned is randomly selected from the other, the shortest distance between the boundaries of the target areas of the two stains to be cleaned is not less than the second threshold. In addition, for a stain set containing multiple stains to be cleaned, for any stain to be cleaned therein, there is at least one other stain to be cleaned, satisfying that the shortest distance between the boundaries of the target areas of the two stains is less than the second threshold. Of course, for a stain set containing only one stain to be cleaned, the only one stain to be cleaned therein can be regarded as having the shortest distance between itself (i.e., 0) less than the second threshold. In a nutshell, for any stain to be cleaned, there is at least another stain to be cleaned in the same stain set (for a stain set containing only one stain to be cleaned, the other stain to be cleaned can be regarded as the only stain to be cleaned itself), satisfying that the shortest distance between the boundaries of the two target areas is less than the second threshold. It should be noted that the second threshold is not less than the diameter of the minimum circumscribed circle of the cleaning robot. In addition, the minimum circumscribed circle of the cleaning robot can surround the cleaning robot body and the cleaning parts that protrude outward from the body and cannot be recovered (such as side brushes, etc.), so as to ensure as much as possible that the cleaning robot will not touch another stain area when cleaning one of the stain areas and cause secondary contamination.
[0036] In a specific implementation scenario, as a possible implementation method, in order to make the stain set meet the above conditions, you can first randomly select a stain to be cleaned and include it in a stain set, then obtain the shortest distance between the stain to be cleaned and each unselected stain to be cleaned boundary, and judge whether the shortest distance is less than a second threshold. If so, you can select the stain to be cleaned and include it in the stain set together. For any remaining unselected stain to be cleaned, you can continue to judge whether there is at least one stain to be cleaned in the current stain set and the shortest distance between it and the stain set is less than the second threshold. If so, you can also select the stain to be cleaned and include it in the stain set together. For the remaining unselected stains to be cleaned at this time, the above steps can be repeated, that is, first randomly select a stain to be cleaned and include it in a new stain set, then obtain the shortest distance between the stain to be cleaned and each unselected stain boundary to be cleaned, and determine whether the shortest distance is less than the second threshold. If so, the stain to be cleaned can be selected and included in the new stain set. For any remaining unselected stain to be cleaned, it can be further determined whether there is at least one stain to be cleaned in the current new stain set with the shortest distance between the stain and the new stain set being less than the second threshold. If so, the stain to be cleaned can also be selected and included in the new stain set. This can be repeated and so on, and each stain to be cleaned can be divided into a corresponding stain set, and the above conditions are met. Of course, the above example is only one possible implementation method for dividing a stain set that meets the above conditions, and it does not limit the use of other methods to divide a stain set that meets the above conditions, and no further examples are given here.
[0037] Step S12: Determine at least one circumscribed rectangle of the stain area.
[0038] Specifically, for an irregularly shaped stain area, there are usually multiple bounding rectangles. Figure 2 , Figure 2 Schematic diagram of an embodiment of a circumscribed rectangle of a stain area. Figure 2 As shown in Figure 1, the light grey squares represent the grid map, and the black filled areas represent the stained areas. Figure 2 The circumscribed rectangle of the stain area shown in the figure can be determined in different directions, such as Figure 2 The following are shown in the figure: the circumscribed rectangle represented by the solid line, the circumscribed rectangle represented by the dotted line, and the circumscribed rectangle represented by the bold solid line. Figure 2 For the stain area shown in FIG. 1 , the above three bounding rectangles are only bounding rectangles in three directions. Different bounding rectangles can be determined in other directions, which will not be illustrated here one by one. Figure 2 For the stain area shown in the figure, the circumscribed rectangles of the stain area in different directions can be determined by analogy, which will not be described in detail here.
[0039] Step S13: Select a bounding rectangle that at least meets a preset condition as a target rectangle.
[0040] In the embodiment of the present disclosure, the preset conditions include that at least one side of any pair of adjacent sides of the circumscribed rectangle is not longer than a first threshold, and the first threshold is not greater than the maximum continuous coverage width of the cleaning parts of the cleaning robot used to clean the stained area perpendicular to the travel direction of the cleaning robot.
[0041] In an implementation scenario, to facilitate the description of the maximum continuous coverage width, please refer to Figure 3a to Figure 3c , Figure 3a is a schematic diagram of an embodiment of a cleaning robot using a double disc cleaning component, Figure 3b is a schematic diagram of an embodiment of a cleaning robot using a semicircular flat cleaning component, Figure 3c This is a schematic diagram of an embodiment of a cleaning robot using a rectangular crawler cleaning component. Figure 3a , for the double disc cleaning element (i.e. Figure 3a For the mop assembly), if the line connecting the centers of the two disks is perpendicular to the forward direction (i.e. Figure 3a As shown by the double arrows in the figure, the maximum continuous coverage width perpendicular to the direction of travel is the circumscribed rectangle of the double disks with the sides perpendicular to the direction of travel (i.e. Figure 3a The length of the side of the red rectangle) perpendicular to the forward direction (i.e. Figure 3a The arrow A in the middle points to the side length of the red rectangle). Please continue to Figure 3b , for a semicircular flat cleaning component (i.e. Figure 3b For the mop assembly), if the semicircular diameter is perpendicular to the forward direction (i.e. Figure 3b As shown by the double arrows in the figure, the maximum continuous coverage width perpendicular to the forward direction is the circumscribed rectangle of the semicircle with the side perpendicular to the forward direction (i.e. Figure 3b The length of the side of the red rectangle) perpendicular to the forward direction (i.e. Figure 3b The arrow A in the figure points to the side length of the red rectangle). Please continue to Figure 3c , for a rectangular crawler cleaning component (i.e. Figure 3c For the mopping cloth assembly), the side of the dragging rectangular track is perpendicular to the forward direction (i.e. Figure 3c As shown by the double arrows in the figure, the maximum continuous coverage width perpendicular to the forward direction is the rectangular track itself (i.e. Figure 3c The length of the side of the red rectangle) perpendicular to the forward direction (i.e. Figure 3cThe arrow A in the middle points to the side length of the red rectangle). It should be noted that the above examples are only examples of different maximum continuous coverage widths of several different styles of cleaning components perpendicular to the forward direction. When the cleaning components are set in other shapes such as four discs, double triangles, etc., the maximum continuous coverage width can be deduced by analogy, and no more examples are given here.
[0042] In an implementation scenario, as described above, the preset condition includes that at least one side of any pair of adjacent sides of the circumscribed rectangle is not longer than the first threshold, that is, for any pair of adjacent sides of the circumscribed rectangle of the stain area, both sides may not be longer than the first threshold, or only one of them may not be longer than the first threshold, which is not limited here. In addition, the first threshold is not greater than the maximum continuous coverage width of the cleaning parts used by the cleaning robot to clean the stain area in a direction perpendicular to the direction of travel of the cleaning robot. Exemplarily, the first threshold can be directly set to the maximum continuous coverage width of the cleaning parts used by the cleaning robot to clean the stain area in a direction perpendicular to the direction of travel of the cleaning robot. Of course, in order to prevent the liquid stains from being broken up and causing residual leakage, a certain redundancy can also be retained. For example, the first threshold can be set to a certain proportion of the aforementioned maximum continuous coverage width, such as 80%, 85%, etc., or the first threshold can be set to a certain width cut on the basis of the aforementioned maximum continuous coverage width, such as 5 cm, 6 cm, etc. Therefore, the cleaning robot only needs to move in a straight line on the circumscribed rectangle along the rectangular side direction perpendicular to the circumscribed rectangle whose side length is not longer than the first threshold to achieve cleaning of the stain area.
[0043] In an implementation scenario, if there are multiple circumscribed rectangles that meet the preset conditions, any one of the circumscribed rectangles can be selected as the target rectangle, and the stained area can be cleaned by simply moving in a straight line on the target rectangle along a rectangular edge that is perpendicular to the target rectangle and whose side length is not longer than the first threshold.
[0044] In another implementation scenario, different from the aforementioned implementation, as another possible implementation, a circumscribed rectangle that meets the preset conditions may be first selected as a candidate rectangle, and then a candidate rectangle with the shortest side may be selected as the target rectangle. That is to say, for all circumscribed rectangles that meet the preset conditions, they may be first unified as candidate rectangles, and then the lengths of the short sides of the candidate rectangles may be compared. If a candidate rectangle has the shortest short side, the candidate rectangle may be selected as the target rectangle. In this case, the cleaning robot moves in a straight line perpendicular to the short side on the target rectangle to clean the stained area, which can minimize the possibility of residual missed scans. Please refer to Figure 4a , Figure 4a is a schematic diagram of an embodiment of a target rectangle. Figure 4a As shown, Figure 4a The red rectangle in the middle is Figure 4aAmong all the bounding rectangles that meet the preset conditions in the stain area, the one with the shortest short side is taken as Figure 4a The target rectangle of the stain area is shown, so that the subsequent cleaning robot only needs to Figure 4a The target rectangle shown in the red rectangle is perpendicular to the short side (i.e. Figure 4a By moving the brush in a straight line (in the direction of travel indicated by the red arrow in the figure) to clean the stained area, the possibility of residual leakage can be minimized.
[0045] In another implementation scenario, different from the aforementioned implementation, as another possible implementation, a circumscribed rectangle that meets the preset conditions may be first selected as a candidate rectangle, and then the candidate rectangle may be selected as the target rectangle in response to the center line of the candidate rectangle passing through the center position of the cleaning robot. That is to say, the position coordinates of the cleaning robot are kept unchanged, and only the orientation is adjusted. In this process, when the circumscribed rectangle that matches the current orientation of the cleaning robot meets the aforementioned preset conditions, the circumscribed rectangle may be selected as the target rectangle. It should be noted that the circumscribed rectangle that matches the current orientation must meet the following conditions: a rectangular side close to the cleaning robot is perpendicular to the current orientation of the cleaning robot, and the center line passes through the center position of the cleaning robot. Of course, if the circumscribed rectangle that matches the current orientation of the cleaning robot does not meet the aforementioned preset conditions, the orientation may continue to be adjusted. In this case, the cleaning robot does not need to move the coordinate position, but only needs to rotate in place to a suitable orientation and then move in a straight line on the target rectangle to clean the stained area, which helps to minimize the movement cost of the cleaning robot. Please refer to Figure 4b , Figure 4b FIG. 1 is a schematic diagram of another embodiment of the target rectangle. Figure 4b As shown, Figure 4b The red rectangle is the circumscribed rectangle with the shortest short side. Obviously, no matter how the cleaning robot adjusts its orientation, it is difficult to match its orientation. Figure 4b The blue rectangle is the circumscribed rectangle that matches the cleaning robot. Its short side (i.e., the side of the rectangle close to the cleaning robot) Figure 4b The rectangular side pointed by the arrow with the word "short side" on the blue rectangular box is perpendicular to the direction of the cleaning robot, and its center line passes through the center position of the cleaning robot. Since it also meets the above preset conditions, the circumscribed rectangle (i.e. Figure 4b The blue rectangle in the middle is used as the target rectangle. The stained area can be cleaned without moving the coordinate position. The user only needs to rotate it to the appropriate orientation and then move in a straight line on the target rectangle to minimize the movement cost.
[0046] In another implementation scenario, different from the aforementioned implementation, as another possible implementation, a circumscribed rectangle that meets the preset conditions may be selected as a candidate rectangle, and then a candidate rectangle with the shortest longest side may be selected as a target rectangle. That is to say, each candidate rectangle selected first must meet the preset conditions, that is, at least one rectangular side of any adjacent sides is not longer than the first threshold. Then, the lengths of the long sides of each candidate rectangle are compared, and the candidate rectangle with the shortest longest side is selected as the target rectangle. Therefore, when moving in a straight line perpendicular to the short side of the target rectangle on the target rectangle, it is possible to ensure that the stain area is cleaned with the shortest possible cleaning length.
[0047] In another implementation scenario, different from the aforementioned implementation, as another possible implementation, you can also first select a circumscribed rectangle that meets the preset conditions as a candidate rectangle, and then determine the candidate trajectory when cleaning the stain area based on the center line of the candidate rectangle, and then obtain the travel cost of the candidate trajectory based on at least the path distance of the candidate trajectory and the navigation distance from the cleaning robot to the starting point on the candidate trajectory. Finally, based on the travel costs of each candidate rectangle corresponding to the candidate trajectory, select the candidate rectangle as the target rectangle, and the final travel trajectory of the cleaning robot is the candidate trajectory corresponding to the selected candidate rectangle. It should be noted that the specific process of determining the candidate trajectory when cleaning the stain area based on the center line of the candidate rectangle can refer to the subsequent description of "Determining the travel trajectory when cleaning the stain area based on the center line of the target rectangle". In addition, the specific meanings of the starting point and the end point of the trajectory can also be referred to the subsequent related description. The specific process of obtaining the travel trajectory and its starting point and end point will not be described here. The above method comprehensively considers the travel cost of the candidate trajectory based at least on the path distance of the candidate trajectory and the navigation distance from the cleaning robot to the starting point on the candidate trajectory, and then selects the candidate rectangle as the target rectangle based on the travel cost of each candidate rectangle corresponding to the candidate trajectory, which can reduce the travel cost of the cleaning robot to clean the stained area as much as possible.
[0048] In a specific implementation scenario, after the travel costs of each candidate trajectory are obtained, the candidate rectangle corresponding to the candidate trajectory with the minimum travel cost may be selected as the target rectangle.
[0049] In a specific implementation scenario, in order to measure the travel cost as accurately as possible, the first cost coefficient and the second cost coefficient can be obtained, and the first cost coefficient is negatively correlated with the travel speed of the cleaning robot on the candidate trajectory, and the second cost coefficient is negatively correlated with the travel speed of the cleaning robot when it moves to the starting point on the candidate trajectory. In other words, the slower the travel speed, the higher the cost coefficient, and conversely, the faster the travel speed, the lower the cost coefficient. On this basis, the path distance and the navigation distance are weighted based on the first cost coefficient and the second cost coefficient respectively to obtain the travel cost of the candidate trajectory. For the sake of ease of description, taking the i-th candidate trajectory as an example, its travel cost It can be expressed as:
[0050] …… (1)
[0051] In the above formula (1), represents the first cost coefficient, represents the path distance (i.e. the straight-line distance from the starting point to the end point of the i-th candidate trajectory), represents the second cost coefficient, represents the navigation distance (i.e., the distance traveled by the cleaning robot from its current position to the starting point of the i-th candidate trajectory). It should be noted that, as a possible implementation, in order to simplify the calculation method of the travel cost, the first cost coefficient and the second cost coefficient can both be set to 1. In this case, the travel cost , that is, the cumulative travel distance of the cleaning robot. Alternatively, as another possible implementation, the first cost coefficient can be set to the inverse of the travel speed of the cleaning robot on the candidate trajectory, and the second cost coefficient can be set to the inverse of the travel speed of the cleaning robot when it moves to the starting point, then the travel cost can be equivalent to the cumulative travel time of the cleaning robot. In the above manner, the first cost coefficient and the second cost coefficient are obtained, and the first cost coefficient is negatively correlated with the travel speed of the cleaning robot on the candidate trajectory, and the second cost coefficient is negatively correlated with the travel speed of the cleaning robot when it moves to the starting point on the candidate trajectory, so that the path distance and the navigation distance are weighted based on the first cost coefficient and the second cost coefficient, respectively, to obtain the travel cost of the candidate trajectory, and then the travel cost of the cleaning robot if it cleans the stained area along the candidate trajectory can be measured as accurately as possible.
[0052] In a specific implementation scenario, in addition to this, the impact of motion control such as large-angle rotation of the cleaning robot on the travel cost can be further considered, and the specific factors included in the travel cost are not limited here.
[0053] It should be noted that the above examples are only several possible examples of selecting the target rectangle in the actual application process, and do not limit the specific method of selecting the target rectangle in the circumscribed rectangle that meets the preset conditions. For example, when the priority is to ensure that the possibility of residual missed scanning is reduced as much as possible, the candidate rectangle with the shortest side can be selected as the target rectangle; or, when the priority is to ensure that the movement cost is reduced as much as possible, the candidate rectangle whose center line passes through the center position of the cleaning robot can be selected as the target rectangle; or, when the priority is to ensure that the cleaning length is reduced as much as possible, the candidate rectangle with the shortest long side can be selected as the target rectangle; or, when the priority is to ensure that the travel cost of the cleaning robot to clean the stained area is reduced as much as possible, the candidate rectangle can be selected as the target rectangle based on the travel cost of each candidate trajectory corresponding to each candidate rectangle. Of course, the above methods can also be adopted one by one according to a certain priority until the target rectangle is selected from the candidate rectangles. For example, first, prioritize ensuring that the moving cost is reduced as much as possible, that is, prioritize selecting a candidate rectangle whose center line passes through the center position of the cleaning robot as the target rectangle. If this does not exist, that is, it is impossible to ensure that the moving cost is reduced as much as possible at this time, that is, the cleaning robot is forced to adjust its coordinate position, then it can be adjusted to prioritize ensuring that the possibility of residual missed scanning is reduced as much as possible, that is, at this time, the candidate rectangle with the shortest side can be selected as the target rectangle, or, it can be adjusted to prioritize ensuring that the cleaning length is reduced as much as possible, that is, at this time, the candidate rectangle with the shortest long side can be selected as the target rectangle, or, it can be adjusted to prioritize ensuring that the travel cost of the cleaning robot to clean the stained area is reduced as much as possible, that is, at this time, the candidate rectangle can be selected as the target rectangle based on the travel cost of each candidate rectangle corresponding to the candidate trajectory. Of course, the above examples are only possible examples of adopting the above methods one by one according to a certain priority, and it is not limited to adopting the above methods or part of the methods one by one in other forms of priority, and no examples will be given one by one here.
[0054] In an implementation scenario, in actual applications, there may be a situation where no circumscribed rectangle meets the preset conditions. In this case, the narrowest side of the stain area is also greater than the maximum continuous coverage width of the cleaning component. At this time, no matter which direction the cleaning component moves in a straight line, the stain cannot be completely covered, and there will be stains remaining, which is more likely to contaminate components such as the side brush. Therefore, it is possible to abandon cleaning the stain area and output a prompt message indicating that cleaning the stain area has been abandoned.
[0055] In a specific implementation scenario, as a possible implementation method, for giving up cleaning the stained area, the cleaning task can be stopped on the spot to indicate giving up cleaning the stained area; or, as another possible implementation method, the stained area can be set as an obstacle area, and the obstacle area can be avoided during the cleaning task. Of course, the above examples are only several possible ways to give up cleaning the stained area in actual application, and are not limited to other ways to give up cleaning the stained area.
[0056] In a specific implementation scenario, as a possible implementation method, the prompt information indicating that the stained area should be abandoned can be output by the cleaning robot by voice broadcasting the prompt information; or, as another possible implementation method, the stained area can be highlighted on the map interface displayed by the user device (such as a mobile phone, tablet computer, etc.) to prompt the user to abandon the stained area, and the user device is connected to the cleaning robot in communication. Of course, the above examples are only several possible ways to output the prompt information in the actual application process, and are not limited to other ways to output the prompt information.
[0057] Step S14: Based on the center line of the target rectangle, determine the moving trajectory when cleaning the stained area.
[0058] In one implementation scenario, the center line of the target rectangle can be directly used as the trajectory when cleaning the stain area. Specifically, the parallel rectangular sides in the target rectangle that are not longer than the first threshold value can be selected, and the center line perpendicular to the parallel rectangular sides can be determined as the trajectory. As a possible situation, the two rectangular sides in any adjacent sides of the target rectangle may not be longer than the first threshold value. In this case, the rectangular side closer to the cleaning robot in the target rectangle can be selected, and the center line perpendicular to the rectangular side can be determined as the trajectory. Of course, when the maximum continuous coverage width of the cleaning parts of the cleaning robot used to clean the stain area perpendicular to the direction of travel of the cleaning robot is larger than the rectangular side perpendicular to the aforementioned center line in the target rectangle by a certain proportion (such as 20%, 40%, etc.), or a certain width (such as 10 cm, 20 cm, etc.), the trajectory can also be parallel to the aforementioned center line and offset from the center line by a certain distance, and the offset distance is positively correlated with the aforementioned larger proportion (or larger width). That is to say, the larger the oversize ratio (or oversize width), the larger the offset distance can be, and vice versa. The larger the oversize ratio (or oversize width), the smaller the offset distance can be. Of course, if the maximum continuous coverage width of the cleaning component used by the cleaning robot to clean the stained area in the direction perpendicular to the moving direction of the cleaning robot is within the set threshold (such as the oversize ratio of 20%, 40%, etc., or the oversize width of 10 cm, 20 cm, etc.), the aforementioned determined center line can be directly used as the moving trajectory.
[0059] In one implementation scenario, as described above, the moving track may be perpendicular to the parallel rectangular sides of the circumscribed rectangle that are not longer than the first threshold. Figure 4a or Figure 4b , you can choose a rectangular side that is closer to the cleaning robot among the parallel rectangular sides (such as Figure 4a or Figure 4b The rectangular side indicated by the arrow of the Chinese character “short side” is used as the first target side, and the side of the first target side away from the stain area is determined to be not less than a third threshold value (such as Figure 4a or the point indicated by the arrow of the word "third threshold" in 4b and marked by the curly bracket "C" as the starting point (such as Figure 4aOr as shown by the hollow square in 4b, that is, indicated by the arrow with the text "starting point" in 4a or 4b), and the third threshold value is not less than the radius of the minimum circumscribed circle of the cleaning robot. It should be noted that the point determined to be not less than the third threshold value at a distance from the first target edge can be located on the aforementioned determined center line, or when the maximum continuous coverage width of the cleaning parts used by the cleaning robot to clean the stained area perpendicular to the moving direction of the cleaning robot is larger than the first target edge by a certain proportion or a certain width (as described above) to allow the deviation of the moving trajectory from the center line, the point determined to be not less than the third threshold value at a distance from the first target edge can also be located on a straight line deviating from and parallel to the center line. In the above method, the moving trajectory is perpendicular to the parallel rectangular sides in the circumscribed rectangle that are not longer than the first threshold value, and a rectangular side in the parallel rectangular sides that is closer to the cleaning robot is selected as the first target side. Then, on the side of the first target side away from the stain area, a point whose distance from the first target side is not less than the third threshold value is determined as the starting point, and the third threshold value is not less than the radius of the minimum circumscribed circle of the cleaning robot. Therefore, it can ensure as much as possible that the cleaning robot will not touch the stain area when it reaches the starting point, thereby helping to minimize the possibility of secondary contamination.
[0060] In one implementation scenario, as described above, the moving track is perpendicular to the parallel rectangular sides of the circumscribed rectangle that are not longer than the first threshold. Figure 4a or Figure 4b , select a rectangular side that is farther away from the cleaning robot among the parallel rectangular sides (such as Figure 4a or Figure 4b Another rectangular side parallel to the rectangular side indicated by the arrow with the word "short side" is used as the second target side, and then based on the relative position between the cleaning component and the center position of the cleaning robot when cleaning the stain area, the side of the second target side close to or far from the stain area is selected to determine whether the distance from the second target side is greater than or less than a fourth threshold value (such as Figure 4a or the length indicated by the words "fourth threshold" and marked by the curly bracket "D" in 4b) as the end point (such as Figure 4aOr as shown by the solid square in 4b, that is, indicated by the arrow with the text "end point"), and the fourth threshold value is not less than the vertical distance from the center position to the farthest maximum continuous coverage width. Similar to the aforementioned determination of the starting point, the point determined to be not less than the fourth threshold value at a distance from the second target edge can be located on the aforementioned determined center line, or when the maximum continuous coverage width of the cleaning parts used by the cleaning robot to clean the stained area perpendicular to the moving direction of the cleaning robot is larger than the first target edge by a certain proportion or a certain width (as described above) to allow the deviation of the moving trajectory from the center line, the point determined to be not less than the fourth threshold value at a distance from the second target edge can also be located on a straight line deviating from and parallel to the center line, but it is necessary to ensure that the connecting line between the starting point and the end point is parallel to the determined center line. In the above method, a rectangular side of the parallel rectangular sides that is farther away from the cleaning robot is selected as the second target side, and then based on the relative position between the cleaning component and the center position of the cleaning robot when cleaning the stain area, the side of the second target side close to or far away from the stain area is selected, and a point whose distance from the second target side is not greater than or less than the fourth threshold is determined as the end point, and the fourth threshold is not less than the vertical distance from the center position to the farthest maximum continuous coverage width. Therefore, it can be ensured as much as possible that when the cleaning robot reaches the end point, the farthest end of the maximum continuous coverage width of the cleaning component has passed the farthest end of the stain area, thereby ensuring as much as possible that the stain area is cleaned without omission.
[0061] In a specific implementation scenario, please refer to Figures 3a to 3c The cleaning components of the cleaning robot used to clean the stained area may have one or more maximum continuous coverage widths perpendicular to the travel direction of the cleaning robot. Figure 3a As shown, for the double-disc cleaning component, there is a maximum continuous coverage width (i.e. Figure 3a The red rectangle is where the red dotted line pointed by arrow B is located); or Figure 3b As shown, for the semicircular flat cleaning component, there are multiple maximum continuous coverage widths (i.e. Figure 3b From the top edge of the red rectangle to the red dotted line indicated by arrow "B"); or Figure 3c As shown, for the rectangular crawler cleaning component, there are multiple maximum continuous coverage widths (i.e. Figure 3c In the example, the maximum continuous coverage width farthest from the center of the cleaning robot can be determined (for ease of description, it can be called the farthest maximum continuous coverage width, such as Figure 3a to Figure 3cThe red dotted lines pointed by the middle arrow "B" are the farthest maximum continuous coverage width), and the distance between the center position and the farthest maximum continuous coverage width is obtained, then the fourth threshold can be set to be no less than the distance accordingly.
[0062] In a specific implementation scenario, when the cleaning robot cleans the stain area, the cleaning component can be located in front of the center position of the cleaning robot, or it can be located behind the center position of the cleaning robot, which is not limited here. For example, when some cleaning robots are moving forward normally, the cleaning component used to clean the stain area is located in front of the center position. When the cleaning robot cleans the stain area by moving forward normally, since the cleaning component used to clean the stain area is located in front of the center position, the cleaning component can first contact the stain area, thereby avoiding the body of the cleaning robot from being stained as much as possible. Alternatively, when some cleaning robots are moving forward normally, the cleaning component used to clean the stain area is located behind the center position, and the cleaning robot can also be provided with side brushes, roller brushes and other components in front of the cleaning component used to clean the stain area, and they cannot be lifted or recovered. When the cleaning robot cleans the stain area by moving forward normally, since the cleaning component used to clean the stain area relatively lags in contacting the stain area, it may cause the body of the cleaning robot to be stained. At this time, the cleaning robot can clean the stain area by moving backward. Alternatively, if the side brush, roller brush and other components of the cleaning robot can be lifted or retracted, the stained area can also be cleaned by moving forward normally. Of course, the above examples are only a few ways of moving the cleaning robot to clean the stained area in actual application, and are only used to illustrate possible situations that may cause the cleaning component to be located in front of or behind the center position, and do not limit other situations that may cause the cleaning component to be located in front of or behind the center position, and will not be given examples one by one here.
[0063] In a specific implementation scenario, please refer to Figure 4c , Figure 4c FIG. 4 is a schematic diagram of another embodiment of the target rectangle. Figure 4c As shown, when the relative position characterizes that the cleaning component moves in front of the center position, that is, when the cleaning component is located in front of the center position when cleaning the stain area, it can be selected to move in front of the second target side (such as Figure 4c The rectangular side parallel to and opposite to the arrow pointing to the "short side" in the text) is close to the side of the stain area, and a point whose distance from the second target side is not greater than the fourth threshold is determined as the end point (such as Figure 4c The solid square in the middle is the square pointed by the arrow with the word "end point").
[0064] In a specific implementation scenario, please refer to Figure 4a, when the relative position characterizes that the cleaning component moves behind the center position, that is, when the cleaning component is located behind the center position when cleaning the stain area, it can be selected at the second target side (such as Figure 4a The point which is parallel to and opposite to the short side in the text) is far away from the stain area, and a point which is not less than a fourth threshold value from the second target side is determined as the end point (such as Figure 4a The solid square in the middle is the square pointed by the arrow with the word "end point").
[0065] It should be noted that after determining the travel trajectory (including the starting point and the end point), the robot can move in a straight line along the travel trajectory to clean the stained area. For example, when cleaning the stained area by moving forward normally, the cleaning robot can first move to the starting point of the travel trajectory, and then move forward normally along the travel trajectory until the end point; or, when cleaning the stained area by moving backward, the cleaning robot can first move forward normally to the starting point, then rotate to the back of the stained area, and then move backward along the travel trajectory until the end point. As a simplified implementation, while minimizing the movement cost as much as possible, the candidate rectangle whose center line passes through the center position of the cleaning robot can be directly selected as the target rectangle. When determining the travel trajectory based on this target rectangle, the current position of the cleaning robot can be directly used as the starting point of the travel trajectory. In addition, in this case, if the cleaning robot cleans the stained area by moving backward, it can rotate in place to the back of the stained area, and then move backward along the travel trajectory until the end point, so as to complete the stain covering cleaning. Of course, after determining the travel trajectory, in addition to covering cleaning, you can further combine other cleaning actions, such as forward and backward, rotating on the spot, and going back and forth to the base station, etc., to maximize the cleaning effect. For details, please refer to the following description.
[0066] In an implementation scenario, at least one wiping action of forward, backward, and rotation on the spot may be interspersed at intervals of a first distance starting from the starting point of the travel trajectory.
[0067] In a specific implementation scenario, the first distance can be set according to actual conditions. For example, in a household scenario, the stain area is usually relatively small, so the first distance can be set smaller accordingly, such as 10 cm, 15 cm, etc.; or in a commercial scenario, the stain area may be relatively large, so the first distance can be set larger accordingly, such as 20 cm, 25 cm, etc. The specific value of the first distance is not limited here.
[0068] In a specific implementation scenario, as a possible implementation method, the cleaning component includes at least a double-disc mop as an example, please refer to Figure 5 , Figure 5 Schematic diagram of an embodiment of a double disc cleaning component for cleaning stains. Figure 5 As shown, when the wiping action is an in-situ rotation, the robot can first rotate in-situ in a first direction by a first angle, and then rotate in-situ back to the direction of travel that coincides with the travel trajectory, and rotate in-situ in a second direction by a second angle, and then rotate in-situ back to the direction of travel that coincides with the travel trajectory. In this case, the first direction and the second direction are in opposite directions away from the central axis of the cleaning robot, and the first angle is the deviation angle of the center point of the disc mop on one side of the double disc mop located in the first direction relative to the central axis, and the second angle is not less than the first angle. The above is a single in-situ rotating wiping action. In actual application, the above-mentioned in-situ rotating wiping action can be repeated multiple times at the same position to cover the gap position around the central axis of the double disc cleaning component as much as possible, which helps to achieve a better stain covering and cleaning effect. Of course, the above example is only a possible example of the double disc cleaning component rotating in-situ to clean stains, and does not limit other possible situations of the in-situ rotating wiping action. When other structural cleaning components are used, the in-situ rotating wiping action can also be set as needed, or other wiping actions can be interspersed at intervals, which will not be listed one by one here.
[0069] In a specific implementation scenario, during actual application, the distance from the starting point to the end point of the travel trajectory may be less than the first distance. In this case, at least one wiping action can be performed at the end point, such as at least one forward and backward movement, or at least one on-the-spot rotation, which is not limited here.
[0070] In an implementation scenario, starting from the starting point of the travel trajectory, every second distance, the current point position and the base station may be interspersed to clean the cleaning component at the base station.
[0071] In a specific implementation scenario, the second distance can be set according to actual conditions. Exemplarily, it can be set according to the size of the cleaning component. The larger the size of the cleaning component, the larger the second distance can be set. Conversely, the smaller the size of the cleaning component, the smaller the second distance can be set. For example, for a double-disc cleaning component, the second distance can be set to the diameter of the double-disc cleaning component or a certain multiple of the diameter (such as twice). Of course, the second distance can also be set according to practical experience, such as according to practical experience, it can be set to 15 cm, 20 cm, 25 cm, etc. The specific value of the second distance is not limited here.
[0072] In a specific implementation scenario, specifically, the cleaning robot starts to move in a straight line from the starting point of the travel trajectory to clean the stained area. Every time it moves in a straight line for a second distance, it can record the current point (including posture information), lift the cleaning component, return to the base station, clean the cleaning component, and then return to the recorded current point, and continue to clean the stained area along the travel trajectory until completion.
[0073] It should be noted that the above examples are only several possible cleaning actions in the actual application process, and other possible cleaning actions are not given one by one here. In the actual application process, after the stain area to be cleaned is obtained, the area area of the stain area can also be calculated, and when the area area is greater than the area threshold, the stain area is abandoned, and a prompt message representing the abandonment of cleaning the stain area is output, or, starting from the starting point of the travel trajectory, every second distance, the interval is interspersed between the current point and the base station to clean the cleaning component at the base station. The specific process of the above two implementation methods can refer to the above related descriptions, which will not be repeated here. In addition, the area threshold can be determined according to the capacity of the material of the cleaning component to the stain. The higher the capacity, the larger the area threshold, and vice versa, the lower the capacity, the smaller the area threshold. Of course, the area threshold can also be set according to practical experience, such as according to practical experience, it can be set to 350 square centimeters, 400 square centimeters, 450 square centimeters, etc., and the specific value of the area threshold is not limited here. Further, after the stain area is cleaned along the travel trajectory in a straight line, the cleaning robot can return to the base station to clean the cleaning component.
[0074] The above scheme obtains the stain area to be cleaned, and then determines at least one circumscribed rectangle of the stain area, thereby selecting a circumscribed rectangle that at least meets the preset conditions as the target rectangle, and the preset conditions include that at least one side of any pair of adjacent sides of the circumscribed rectangle is not longer than the first threshold, and the first threshold is not greater than the maximum continuous coverage width of the cleaning components used by the cleaning robot to clean the stain area in a direction perpendicular to the moving direction of the cleaning robot, and then based on the center line of the target rectangle, the moving trajectory when cleaning the stain area is determined. Therefore, when the cleaning robot moves along the center line direction, the maximum continuous coverage width of the cleaning components in a direction perpendicular to the moving direction must be able to completely cover any width of the stain area in this moving direction. Therefore, even when facing an irregularly shaped stain area, as long as the planned moving trajectory is maintained as a whole and the cleaning action is performed, the stain area can be cleaned in one step without repeatedly cleaning the stain area in different directions. Therefore, the efficiency and effect of stain cleaning can be improved.
[0075] See also Figure 6 , Figure 6It is a schematic diagram of a framework of an embodiment of a cleaning control device 60 of the present application. The cleaning control device 60 includes: a stain area acquisition module 61, used to acquire a stain area to be cleaned; a circumscribed rectangle determination module 62, used to determine at least one circumscribed rectangle of the stain area; a target rectangle selection module 63, used to select a circumscribed rectangle that at least meets a preset condition as a target rectangle; wherein the preset condition includes that at least one side of any pair of adjacent sides of the circumscribed rectangle is not longer than a first threshold value, and the first threshold value is not greater than the maximum continuous coverage width of a cleaning component of a cleaning robot used to clean the stain area in a direction perpendicular to the travel direction of the cleaning robot; a travel trajectory determination module 64, used to determine the travel trajectory when cleaning the stain area based on the center line of the target rectangle.
[0076] In the above scheme, the cleaning control device 60 obtains the stain area to be cleaned, and then determines at least one circumscribed rectangle of the stain area, thereby selecting a circumscribed rectangle that at least meets the preset conditions as the target rectangle, and the preset conditions include that at least one side of any pair of adjacent sides of the circumscribed rectangle is not longer than the first threshold, and the first threshold is not greater than the maximum continuous coverage width of the cleaning components used by the cleaning robot to clean the stain area in a direction perpendicular to the moving direction of the cleaning robot, and then based on the center line of the target rectangle, the moving trajectory when cleaning the stain area is determined. Therefore, when the cleaning robot moves along the center line direction, the maximum continuous coverage width of the cleaning components in a direction perpendicular to the moving direction must be able to completely cover any width of the stain area in this moving direction. Therefore, even when facing an irregularly shaped stain area, as long as the planned moving trajectory is maintained as a whole and the cleaning action is performed, the stain area can be cleaned in one step without repeatedly cleaning the stain area in different directions. Therefore, the efficiency and effect of stain cleaning can be improved.
[0077] In some disclosed embodiments, the stain area acquisition module 61 includes a target area acquisition submodule, which is used to acquire the target area of each stain to be cleaned in the area to be cleaned; the stain area acquisition module 61 includes a target area set submodule, which is used to obtain a number of stain sets based on the shortest distance between the boundaries of the respective target areas of each stain to be cleaned; wherein the stain set contains at least one stain to be cleaned; the stain area acquisition module 61 includes a target area merging submodule, which is used to merge the target areas of each stain to be cleaned in the stain set to obtain the stain area to be cleaned in the stain set.
[0078] In some disclosed embodiments, for any stain to be cleaned that is respectively located in different stain sets, the shortest distance between the target areas of the two is not less than a second threshold, and for any stain to be cleaned, there is at least another stain to be cleaned in the same stain set, which satisfies the shortest distance between the target areas of the two is less than the second threshold; wherein the second threshold is not less than the diameter of the minimum circumscribed circle of the cleaning robot.
[0079] In some disclosed embodiments, the travel trajectory is perpendicular to parallel rectangular sides in the circumscribed rectangle that are not longer than a first threshold value, and the travel trajectory determination module 64 includes a first selection submodule for selecting a rectangular side in the parallel rectangular sides that is closer to the cleaning robot as the first target side; the travel trajectory determination module 64 includes a first determination submodule for determining a point on the side of the first target side away from the stain area that is not less than a third threshold value away from the first target side as a starting point; wherein the third threshold value is not less than the radius of the minimum circumscribed circle of the cleaning robot.
[0080] In some disclosed embodiments, the travel trajectory is perpendicular to parallel rectangular sides in the circumscribed rectangle that are not longer than a first threshold value, and the travel trajectory determination module 64 includes a second selection submodule for selecting a rectangular side in the parallel rectangular sides that is farther away from the cleaning robot as the second target side; the travel trajectory determination module 64 includes a second determination submodule for selecting a side of the second target side that is close to or away from the stain area based on the relative position between the cleaning component and the center position of the cleaning robot when cleaning the stain area, and determining a point that is not greater than or less than a fourth threshold value away from the second target side as the end point; wherein the fourth threshold value is not less than the vertical distance from the center position to the farthest maximum continuous coverage width.
[0081] In some disclosed embodiments, the second determination submodule is specifically used to, if the cleaning component is located in front of the center position when cleaning the stain area, select the side of the second target edge close to the stain area, and determine a point whose distance from the second target edge is not greater than a fourth threshold as the end point; if the cleaning component is located behind the center position when cleaning the stain area, select the side of the second target edge far from the stain area, and determine a point whose distance from the second target edge is not less than the fourth threshold as the end point.
[0082] In some disclosed embodiments, the cleaning control device 60 includes a cleaning task abandonment module for abandoning cleaning of the stained area in response to no circumscribed rectangle satisfying a preset condition, and outputting prompt information indicating abandonment of cleaning of the stained area.
[0083] In some disclosed embodiments, the cleaning task abandonment module includes a task stop submodule, which is used to stop and end the cleaning task on the spot; the cleaning task abandonment module includes an obstacle setting submodule, which is used to set the stained area as an obstacle area and avoid the obstacle area while continuing the cleaning task; the cleaning task abandonment module includes a voice prompt submodule, which is used to broadcast prompt information through the voice of the cleaning robot; the cleaning task abandonment module includes an area highlighting submodule, which is used to highlight the stained area on the map interface displayed by the user device to prompt to abandon cleaning the stained area; wherein, the user is connected to the cleaning robot in communication.
[0084] In some disclosed embodiments, the cleaning control device 60 includes a wiping action interleaving module for performing at least one wiping action at the end point in response to a distance from a starting point to an end point of the travel trajectory being less than a first distance.
[0085] In some disclosed embodiments, when the cleaning component includes at least a double disc mop, the wiping action interspersed module is specifically used to respond to the wiping action by rotating in situ, rotating in situ in a first direction by a first angle, and then rotating in situ back to the direction of travel that coincides with the travel trajectory, and rotating in situ in a second direction by a second angle, and then rotating in situ back to the direction of travel that coincides with the travel trajectory; wherein the first direction and the second direction depart from the central axis of the cleaning robot in opposite directions, and the first angle is the deviation angle of the center point of the disc mop on one side of the double disc mop located in the first direction relative to the central axis, and the second angle is not less than the first angle.
[0086] In some disclosed embodiments, the cleaning control device 60 includes a base station reciprocating module for interleaving between the current point and the base station at intervals of a second distance starting from the starting point of the travel trajectory to clean the cleaning components at the base station.
[0087] In some disclosed embodiments, the cleaning control device 60 includes a cleaning task abandonment module, which is used to abandon cleaning the stained area when the area of the stained area is greater than the area threshold, and output prompt information indicating the abandonment of cleaning the stained area; the cleaning control device 60 includes a base station round-trip interspersed module, which is used to intersperse and travel back and forth between the current point and the base station at intervals of a second distance starting from the starting point of the travel trajectory, so as to clean the cleaning components at the base station.
[0088] In some disclosed embodiments, the target rectangle selection module 63 includes a candidate rectangle selection submodule, which is used to select a bounding rectangle that meets preset conditions as a candidate rectangle; the target rectangle selection module 63 includes a first rectangle selection submodule, which is used to select a candidate rectangle with the shortest side as the target rectangle.
[0089] In some disclosed embodiments, the target rectangle selection module 63 includes a candidate rectangle selection submodule, which is used to select a circumscribed rectangle that meets preset conditions as a candidate rectangle; the target rectangle selection module 63 includes a second rectangle selection submodule, which is used to select a candidate rectangle as a target rectangle in response to the center line of the candidate rectangle passing through the center position of the cleaning robot.
[0090] In some disclosed embodiments, the marker rectangle selection module 63 includes a candidate rectangle selection submodule, which is used to select a bounding rectangle that meets preset conditions as a candidate rectangle; the target rectangle selection module 63 includes a third rectangle selection submodule, which is used to select a candidate rectangle with the shortest longest side as a target rectangle.
[0091] In some disclosed embodiments, the rectangle selection module 63 includes a candidate rectangle selection submodule, which is used to select a circumscribed rectangle that meets preset conditions as a candidate rectangle; the target rectangle selection module 63 includes a candidate trajectory determination submodule, which is used to determine the candidate trajectory when cleaning the stain area based on the center line of the candidate rectangle; the target rectangle selection module 63 includes a travel cost analysis submodule, which is used to obtain the travel cost of the candidate trajectory based on at least the path distance of the candidate trajectory and the navigation distance from the cleaning robot to the starting point on the candidate trajectory; the target rectangle selection module 63 includes a fourth rectangle selection submodule, which is used to select a candidate rectangle as a target rectangle based on the travel cost of each candidate rectangle corresponding to the candidate trajectory; wherein the travel trajectory is the candidate trajectory corresponding to the selected candidate rectangle.
[0092] In some disclosed embodiments, the travel cost analysis submodule includes a coefficient acquisition unit for acquiring a first cost coefficient and a second cost coefficient; wherein the first cost coefficient is negatively correlated with the travel speed of the cleaning robot on the candidate trajectory, and the second cost coefficient is negatively correlated with the travel speed of the cleaning robot when it moves to the starting point on the candidate trajectory; the travel cost analysis submodule includes a distance weighting unit for weighting the path distance and the navigation distance based on the first cost coefficient and the second cost coefficient, respectively, to obtain the travel cost of the candidate trajectory.
[0093] See also Figure 7 , Figure 7 It is a schematic diagram of the framework of an embodiment of the cleaning robot 70 of the present application. The cleaning robot 70 includes a memory 71 and a processor 72 coupled to each other, the memory 71 stores program instructions, and the processor 72 is used to execute the program instructions to implement the steps in any of the above-mentioned cleaning control method embodiments. For details, please refer to the aforementioned disclosed embodiments, which will not be repeated here. The cleaning robot 70 may specifically include but is not limited to a sweeping robot, a mopping robot, a sweeping and mopping robot, etc., and the specific type of the cleaning robot 70 is not limited here. Of course, the cleaning robot 70 may further include other components such as a cleaning component (not shown), a traveling unit (not shown), etc., which are not limited here.
[0094] Specifically, the processor 72 is used to control itself and the memory 71 to implement the steps in any of the above-mentioned cleaning control method embodiments. The processor 72 can also be called a CPU (Central Processing Unit). The processor 72 may be an integrated circuit chip with signal processing capabilities. The processor 72 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 72 can be implemented by an integrated circuit chip.
[0095] In the above scheme, the cleaning robot 70 obtains the stain area to be cleaned, and then determines at least one circumscribed rectangle of the stain area, thereby selecting a circumscribed rectangle that at least meets the preset conditions as the target rectangle, and the preset conditions include that at least one side of any pair of adjacent sides of the circumscribed rectangle is not longer than the first threshold value, and the first threshold value is not greater than the maximum continuous coverage width of the cleaning components used by the cleaning robot to clean the stain area in a direction perpendicular to the moving direction of the cleaning robot, and then based on the center line of the target rectangle, the moving trajectory when cleaning the stain area is determined. Therefore, when the cleaning robot moves along the center line direction, the maximum continuous coverage width of the cleaning components in a direction perpendicular to the moving direction must be able to completely cover any width of the stain area in this moving direction. Therefore, even when facing an irregularly shaped stain area, as long as the planned moving trajectory is maintained as a whole and the cleaning action is performed, the stain area can be cleaned in one step without repeatedly cleaning the stain area in different directions. Therefore, the efficiency and effect of stain cleaning can be improved.
[0096] See also Figure 8 , Figure 8 1 is a schematic diagram of a framework of an embodiment of a computer-readable storage medium 80 of the present application. The computer-readable storage medium 80 stores program instructions 81 that can be executed by a processor, and the program instructions 81 are used to implement the steps in any of the above cleaning control method embodiments.
[0097] In the above scheme, the computer-readable storage medium 80 obtains the stain area to be cleaned, and then determines at least one circumscribed rectangle of the stain area, thereby selecting a circumscribed rectangle that at least meets the preset conditions as the target rectangle, and the preset conditions include that at least one side of any pair of adjacent sides of the circumscribed rectangle is not longer than the first threshold value, and the first threshold value is not greater than the maximum continuous coverage width of the cleaning components used by the cleaning robot to clean the stain area in a direction perpendicular to the moving direction of the cleaning robot, and then based on the center line of the target rectangle, the moving trajectory when cleaning the stain area is determined, so when the cleaning robot moves along the center line direction, the maximum continuous coverage width of the cleaning components in a direction perpendicular to the moving direction must be able to completely cover any width of the stain area in this moving direction, so even when facing an irregularly shaped stain area, as long as the planned moving trajectory is maintained as a whole and the cleaning action is performed, the stain area can be cleaned in one step without repeatedly cleaning the stain area in different directions. Therefore, the efficiency and effect of stain cleaning can be improved.
[0098] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0099] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0100] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0101] 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 present embodiment.
[0102] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0103] 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 application is essentially 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. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0104] If the technical solution of this application involves personal information, the product using the technical solution of this application has clearly informed the personal information processing rules and obtained the individual's voluntary consent before processing the personal information. If the technical solution of this application involves sensitive personal information, the product using the technical solution of this application has obtained the individual's separate consent before processing the sensitive personal information, and at the same time meets the "explicit consent" requirement. For example, on personal information collection devices such as cameras, clear and prominent signs are set to inform that the personal information collection scope has been entered and personal information will be collected. If the individual voluntarily enters the collection scope, it is deemed that he or she agrees to the collection of his or her personal information; or on the device that processes personal information, the personal information processing rules are notified by obvious signs / information, and the individual's authorization is obtained through pop-up information or by asking the individual to upload his or her personal information; among them, the personal information processing rules may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.
Claims
1. A cleaning control method, characterized in that: include: Get the stained area to be cleaned; Determine at least one circumscribed rectangle of the stain area; Selecting a circumscribed rectangle that at least meets a preset condition as a target rectangle; wherein the preset condition includes that at least one side of any pair of adjacent sides of the circumscribed rectangle is not longer than a first threshold, and the first threshold is not greater than a maximum continuous coverage width of a cleaning component of the cleaning robot used to clean the stain area in a direction perpendicular to the moving direction of the cleaning robot; Based on the center line of the target rectangle, a travel trajectory when cleaning the stained area is determined; wherein the travel trajectory is perpendicular to parallel rectangular sides in the circumscribed rectangle that are not longer than the first threshold value.
2. The method according to claim 1, characterized in that: The step of obtaining the stained area to be cleaned comprises: Acquire target areas of each stain to be cleaned in the area to be cleaned; Based on the shortest distance between the boundaries of the target areas of the stains to be cleaned, a plurality of stain sets are obtained; wherein the stain set includes at least one stain to be cleaned; The target areas of the stains to be cleaned in the stain set are merged to obtain the stain area to be cleaned in the stain set.
3. The method according to claim 2, characterized in that Any pair of the stains to be cleaned that are respectively in different stain sets satisfy that the shortest distance between the target areas of the two is not less than a second threshold, and for any of the stains to be cleaned, there is at least another stain to be cleaned in the same stain set that satisfies that the shortest distance between the target areas of the two is less than the second threshold; Wherein, the second threshold is not less than the diameter of the minimum circumscribed circle of the cleaning robot.
4. The method according to claim 1, characterized in that: The step of determining the starting point of the travel trajectory comprises: Selecting a rectangular edge of the parallel rectangular edges that is closer to the cleaning robot as a first target edge; On a side of the first target edge away from the stain area, a point whose distance from the first target edge is not less than a third threshold is determined as the starting point; wherein the third threshold is not less than the radius of the minimum circumscribed circle of the cleaning robot.
5. The method according to claim 1, characterized in that The step of determining the end point of the travel trajectory comprises: Selecting a rectangular side of the parallel rectangular sides that is farther away from the cleaning robot as a second target side; Based on the relative position between the cleaning component and the center position of the cleaning robot when cleaning the stained area, select the side of the second target edge close to or away from the stained area, and determine a point whose distance from the second target edge is not greater than or less than a fourth threshold as the end point; wherein the fourth threshold is not less than the vertical distance from the center position to the farthest maximum continuous coverage width.
6. The method according to claim 5, characterized in that The selecting, based on the relative position between the cleaning component and the center position of the cleaning robot when cleaning the stained area, a side of the second target edge close to or far from the stained area, and determining a point whose distance from the second target edge is not greater than or less than a fourth threshold as the end point comprises at least one of the following: If the cleaning component is located in front of the center position when cleaning the stained area, a point on the side of the second target edge close to the stained area and whose distance from the second target edge is not greater than the fourth threshold is selected as the end point; If the cleaning component is located behind the center position when cleaning the stained area, a point on the side of the second target edge away from the stained area and whose distance from the second target edge is not less than the fourth threshold is selected as the end point.
7. The method according to claim 1, characterized in that The method further comprises: In response to none of the circumscribed rectangles satisfying the preset condition, cleaning of the stained area is abandoned, and prompt information indicating that cleaning of the stained area is abandoned is output.
8. The method according to claim 7, characterized in that The giving up cleaning the stained area includes at least one of the following: Stop and finish the cleaning task on the spot; Setting the stain area as an obstacle area, and avoiding the obstacle area during the process of continuing the cleaning task; And / or, the output indicates prompt information for giving up cleaning the stained area, including at least one of the following: The cleaning robot voice broadcasts the prompt information; The stained area is highlighted on a map interface displayed by a user device to prompt the user to give up cleaning the stained area; wherein the user device is in communication connection with the cleaning robot.
9. The method according to claim 1, characterized in that: After determining the moving track when cleaning the stained area based on the center line of the target rectangle, the method further includes: Starting from the starting point of the travel track, at least one wiping action of forward, backward, and rotation in place is interspersed at intervals of a first distance.
10. The method according to claim 9, characterized in that The method further comprises: In response to the distance from the starting point to the ending point of the travel trajectory being less than the first distance, the at least one wiping action is performed at the ending point.
11. The method according to claim 9, characterized in that In the case where the cleaning component comprises at least a double-disc mop, the method further comprises: In response to the wiping action being the in-situ rotation, the device rotates in-situ in a first direction by a first angle, then rotates in-situ back to a direction of travel that coincides with the travel track, and rotates in-situ in a second direction by a second angle, then rotates in-situ back to a direction of travel that coincides with the travel track; Among them, the first direction and the second direction are away from the central axis of the cleaning robot in opposite directions, and the first angle is the deviation angle of the center point of the disc mop on one side of the double disc mop located in the first direction relative to the central axis, and the second angle is not less than the first angle.
12. The method according to claim 1, characterized in that After determining the moving track when cleaning the stained area based on the center line of the target rectangle, the method further includes: Starting from the starting point of the travel track, the device moves back and forth between the current point and the base station at intervals every second distance to clean the cleaning component at the base station.
13. The method according to claim 1, characterized in that When the area of the stain region is greater than the area threshold, the method further includes any one of the following: Giving up cleaning the stained area, and outputting prompt information indicating giving up cleaning the stained area; Starting from the starting point of the travel track, the device moves back and forth between the current point and the base station at intervals every second distance to clean the cleaning component at the base station.
14. The method according to any one of claims 1 to 13, characterized in that: The step of selecting a bounding rectangle that at least satisfies a preset condition as a target rectangle includes: Selecting a bounding rectangle that meets the preset condition as a candidate rectangle; A candidate rectangle with the shortest side is selected as the target rectangle.
15. The method according to any one of claims 1 to 13, characterized in that The step of selecting a bounding rectangle that at least satisfies a preset condition as a target rectangle includes: Selecting a bounding rectangle that meets the preset condition as a candidate rectangle; In response to a center line of the candidate rectangle passing through a center position of the cleaning robot, the candidate rectangle is selected as the target rectangle.
16. The method according to any one of claims 1 to 13, characterized in that: The step of selecting a bounding rectangle that at least satisfies a preset condition as a target rectangle includes: Selecting a bounding rectangle that meets the preset condition as a candidate rectangle; A candidate rectangle with the shortest longest side is selected as the target rectangle.
17. The method according to any one of claims 1 to 13, characterized in that The step of selecting a bounding rectangle that at least satisfies a preset condition as a target rectangle includes: Selecting a bounding rectangle that meets the preset condition as a candidate rectangle; Determining a candidate trajectory for cleaning the stained area based on a center line of the candidate rectangle; Obtaining a travel cost of the candidate trajectory based at least on a path distance of the candidate trajectory and a navigation distance from the cleaning robot to a starting point on the candidate trajectory; Based on the travel costs of the candidate rectangles corresponding to the candidate trajectories, the candidate rectangles are selected as the target rectangles; wherein the travel trajectory is the candidate trajectory corresponding to the selected candidate rectangles.
18. The method according to claim 17, characterized in that The obtaining of the travel cost of the candidate trajectory based at least on the path distance of the candidate trajectory and the navigation distance from the cleaning robot to the starting point on the candidate trajectory comprises: Obtaining a first cost coefficient and a second cost coefficient; wherein the first cost coefficient is negatively correlated with the travel speed of the cleaning robot on the candidate trajectory, and the second cost coefficient is negatively correlated with the travel speed of the cleaning robot moving to the starting point on the candidate trajectory; The path distance and the navigation distance are weighted based on the first cost coefficient and the second cost coefficient respectively to obtain the travel cost of the candidate trajectory.
19. A cleaning robot, characterized in that: The cleaning control system at least comprises a memory and a processor coupled to each other, wherein the memory stores program instructions, and the processor is used to execute the program instructions to implement the cleaning control method according to any one of claims 1 to 18.
20. A computer-readable storage medium, characterized in that: Program instructions that can be executed by a processor are stored, and the program instructions are used to implement the cleaning control method according to any one of claims 1 to 18.
Citation Information
Patent Citations
Cleaning path planning method based on path finding cost, chip and cleaning robot
CN112799398A
Method and system for cooperatively cleaning stains through double cleaning robots
CN113907650A
Cleaning robot, control method and device thereof and storage medium
CN117179642A
Apparatus and method for controlling cleaning function and robotic cleaner with the apparatus
KR1020180062315A
Traveling control method and path planning method for mobile robot, and mobile robot
WO2022041236A1
