Swimming pool cleaning method and device, electronic equipment and storage medium

The cleaning path of the swimming pool cleaning robot is optimized through grid map division and movement algorithm, which solves the problems of long cleaning time and high power consumption in the existing technology, and achieves a more efficient and energy-saving swimming pool cleaning effect.

CN118805014APending Publication Date: 2024-10-18SUZHOU SMOROBOT TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202280092018.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-02-18
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing swimming pool cleaning robots have unreasonable cleaning path planning, which results in long cleaning time and high power consumption, which affects the user experience.

Method used

By constructing a grid map, the swimming pool is divided into multiple cleaning areas, and the preset mapping movement algorithm and path-finding algorithm are used to control the cleaning robot to move within the working area defined by the swimming pool, marking accessible and inaccessible areas. , forming a cleaning map and optimizing the cleaning path.

Benefits of technology

It improves the accuracy of cleaning map generation and cleaning coverage, shortens cleaning time, saves power consumption, and achieves more efficient swimming pool cleaning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118805014A_ABST
    Figure CN118805014A_ABST
Patent Text Reader

Abstract

The invention provides a swimming pool cleaning method and device, electronic equipment and a storage medium, and the method comprises the steps: controlling a swimming pool cleaning robot to move in a working region defined by a swimming pool relative to a grid map completely covering the swimming pool, so as to construct a cleaning map comprising a plurality of cleaning blocks, and controlling the swimming pool cleaning robot to traverse each cleaning block in the cleaning map so as to clean the swimming pool. Therefore, the cleaning area in the map can be accurately constructed according to the working area of the swimming pool, so that the swimming pool cleaning robot can achieve the rapid, efficient and energy-saving swimming pool cleaning effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of cleaning control technology, and in particular to a swimming pool cleaning method, device, electronic device and computer storage medium. Background Art

[0002] The swimming pool cleaning robot is a swimming pool cleaning robot developed to meet the needs of swimming pool cleaning. It can repeatedly clean the bottom and walls of the swimming pool and filter the water in the swimming pool.

[0003] When performing pool cleaning tasks, existing pool cleaning robots have problems such as taking a long time to clean and consuming a lot of power due to unreasonable planning of the cleaning path, which affects the user experience of this type of product.

[0004] Therefore, an improved swimming pool cleaning path planning scheme is needed, which can plan a more reasonable cleaning path to complete the swimming pool cleaning task more efficiently. Summary of the invention

[0005] In order to solve the above problems, an embodiment of the present application provides an improved swimming pool cleaning solution to at least partially solve the above problems.

[0006] According to one aspect of the present application, a swimming pool cleaning method is provided, comprising: controlling a swimming pool cleaning robot to move within a working area defined by a swimming pool relative to a grid map that completely covers the swimming pool to construct a cleaning map including a plurality of cleaning blocks; and controlling the swimming pool cleaning robot to traverse each cleaning block in the cleaning map to clean the swimming pool.

[0007] Optionally, controlling the pool cleaning robot to move within a working area defined by the pool relative to a grid map that completely covers the pool to establish a cleaning map including a plurality of cleaning blocks comprises: controlling the pool cleaning robot to move within the working area defined by the pool relative to the grid map to determine a plurality of cleaning blocks in the grid map; and constructing the cleaning map according to the plurality of cleaning blocks determined in the grid map.

[0008] Optionally, the controlling the pool cleaning robot to move relative to the grid map within a working area defined by the pool to determine a plurality of cleaning blocks in the grid map comprises: a moving step of controlling the pool cleaning robot to move relative to the grid map according to a preset mapping movement algorithm; a marking step of marking, according to a movement result of the pool cleaning robot relative to the grid map, grid blocks in the grid map that are reachable by the pool cleaning robot as cleaning blocks, and marking grid blocks in the grid map that are inaccessible to the pool cleaning robot as non-cleaning blocks; and alternately performing the moving step and the marking step until the grid map satisfies a preset block marking stop condition.

[0009] Optionally, the moving step includes: determining a grid block in the grid map where the pool cleaning robot is currently located as a current block; based on the current block, determining at least one unlabeled grid block in the grid map that is adjacent to the current block as a candidate block; based on the preset mapping movement algorithm, determining a target block in the candidate blocks, and controlling the robot to move from the current block to the target block.

[0010] Optionally, determining the target block among the candidate blocks based on the preset mapping movement algorithm includes: when there are multiple candidate blocks adjacent to the current block, based on the preset mapping movement algorithm, determining the candidate block with the shortest moving path or the least moving time of the pool cleaning robot among the multiple candidate blocks as the target block, and determining all other candidate blocks among the multiple candidate blocks except the target block as blocks to be marked.

[0011] Optionally, the preset mapping movement algorithm includes: moving forward based on the current orientation of the pool cleaning robot; if it is impossible to move forward based on the current orientation of the pool cleaning robot, performing a turning operation based on the current orientation of the pool cleaning robot and a preset rotation angle and then continuing to move forward, or performing a backward movement based on the current orientation of the pool cleaning robot; wherein the preset rotation angle includes rotating 90 degrees clockwise or 90 degrees counterclockwise based on the current orientation of the pool cleaning robot.

[0012] Optionally, the method further includes: if there is no candidate block adjacent to the current block, obtaining each block to be labeled in the grid map; based on a preset pathfinding algorithm, determining the block to be labeled with the shortest moving distance from the current block as the target block; and controlling the swimming pool cleaning robot to move from the current block to the target block based on the preset pathfinding algorithm.

[0013] Optionally, repeating the moving step and the marking step until the grid map meets a preset block marking stop condition includes: repeating the moving step and the marking step until all grid blocks adjacent to each cleaned block in the grid map are marked.

[0014] Optionally, the method further includes: obtaining a plurality of cleaning areas in the cleaning map according to each cleaning block in the cleaning map.

[0015] Optionally, controlling the swimming pool cleaning robot to traverse each cleaning block in the cleaning map to clean the swimming pool includes: an inter-area movement step, controlling the swimming pool cleaning robot to move between different cleaning areas based on a preset pathfinding algorithm; an intra-area movement step, controlling the swimming pool cleaning robot to move within each cleaning area based on a preset cleaning movement algorithm; and alternately executing the inter-area movement step and the intra-area movement step until the swimming pool cleaning robot traverses each cleaning block in the cleaning map.

[0016] Optionally, obtaining multiple cleaning areas in the cleaning map based on each cleaning block in the cleaning map includes: identifying a non-continuous single cleaning block in the cleaning map to obtain a cleaning area containing the single cleaning block; or identifying multiple cleaning blocks in the cleaning map that are located in the same row or column and are continuous to obtain a cleaning area containing multiple cleaning blocks.

[0017] Optionally, each cleaning area includes two area endpoints, and the area endpoints are determined by cleaning blocks located at both ends of the cleaning area; wherein the inter-area movement step includes: according to the area endpoint of the cleaning area currently located by the swimming pool cleaning robot and the two area endpoints of each cleaning area that has not been cleaned in the cleaning map, based on the preset pathfinding algorithm, determining the area endpoint closest to the movement distance of the swimming pool cleaning robot as the target endpoint, and determining the cleaning area including the target endpoint as the cleaning area to be cleaned by the swimming pool cleaning robot; based on the preset pathfinding algorithm, controlling the swimming pool cleaning robot to move toward the target endpoint so as to move from the current cleaning area to the cleaning area to be cleaned, and after updating the cleaning area to be cleaned to the current cleaning area, continue to execute the intra-area movement step.

[0018] Optionally, the intra-area moving step includes: determining one of the two area endpoints of the current cleaning area that coincides with the target endpoint as the starting endpoint, and determining the other of the two area endpoints as the ending endpoint; controlling the swimming pool cleaning robot to move from the starting endpoint to the ending endpoint to traverse each cleaning block in the cleaning area, and continuing to execute the inter-area moving step.

[0019] Optionally, the method further includes: based on the preset pathfinding algorithm, according to the cleaning block in the cleaning map where the swimming pool cleaning robot is currently located and the two area endpoints of each cleaning area that has not been cleaned in the cleaning map, determining the area endpoint that is closest to the movement distance of the swimming pool cleaning robot and located at the edge of the cleaning map as the target endpoint, and determining the cleaning area including the target endpoint as the cleaning area to be cleaned by the swimming pool cleaning robot; based on the preset pathfinding algorithm, controlling the swimming pool cleaning robot to move toward the target endpoint, and after arriving at the target endpoint, updating the cleaning area to be cleaned to the current cleaning area, and continuing to execute the step of moving within the area.

[0020] Optionally, the size of each grid block in the grid map is determined based on a preset stepping distance of the swimming pool cleaning robot.

[0021] Optionally, the preset path-finding algorithm includes an A-STAR algorithm.

[0022] According to another aspect of the present application, a swimming pool cleaning device is provided, comprising: a map generation module, used to control a swimming pool cleaning robot to move within a working area defined by a swimming pool relative to a grid map that completely covers the swimming pool, so as to construct a cleaning map including a plurality of cleaning blocks; and a cleaning control module, used to control the swimming pool cleaning robot to traverse each cleaning block in the cleaning map, so as to clean the swimming pool.

[0023] Optionally, the device is loaded into a swimming pool cleaning robot, and the swimming pool cleaning robot is suitable for performing swimming pool cleaning tasks.

[0024] According to another aspect of the present application, an electronic device is provided, comprising: a processor; and a memory storing a program, wherein the program comprises instructions, and when the instructions are executed by the processor, the processor executes the method described in the above aspect.

[0025] According to another aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method described in the above aspects.

[0026] The swimming pool cleaning method, device, electronic device and computer storage medium provided in the present application control the swimming pool cleaning robot to move relative to the grid map within the working area defined by the swimming pool, thereby accurately mapping the working area of ​​the swimming pool to each cleaning block in the grid map, thereby improving the accuracy of the generation of the cleaning map.

[0027] Furthermore, the present application drives the swimming pool cleaning robot to perform swimming pool cleaning based on each cleaning block in the cleaning map, so as to realize the fast and efficient execution of the swimming pool cleaning task, which not only saves the cleaning time, but also saves the cleaning power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The following drawings are intended only to illustrate and explain the present application, and do not limit the scope of the present application. Figure 1 It is a flow chart of a swimming pool cleaning method according to an exemplary embodiment of the present application.

[0029] Figure 2 Schematic diagram of the scenario application of the grid map of the exemplary embodiment of the present application and the preset mapping and movement algorithm of the swimming pool cleaning robot.

[0030] Figure 3 The figure is a flow chart of a swimming pool cleaning method according to another exemplary embodiment of the present application.

[0031] Figure 4 The figure is a flow chart of a swimming pool cleaning method according to another exemplary embodiment of the present application.

[0032] Figure 5 The figure is a flow chart of a swimming pool cleaning method according to another exemplary embodiment of the present application.

[0033] FIG. 6A to FIG. 6C It is a schematic diagram of the cleaning area planning of an exemplary embodiment of the present application.

[0034] Figure 7 The figure is a flow chart of a swimming pool cleaning method according to another exemplary embodiment of the present application.

[0035] Figure 8 It is a structural block diagram of a swimming pool cleaning device according to an exemplary embodiment of the present application.

[0036] Fig. 9 It is a structural block diagram of an electronic device according to an exemplary embodiment of the present application.

[0037] Description of reference numerals: 800, swimming pool cleaning device; 802, map generation module; 804, cleaning control module; 900, electronic device; 901, computing unit; 902, ROM; 903, RAM; 904, bus; 905, input and output interface; 906, input unit; 907, output unit; 908, storage unit; 909, communication unit. DETAILED DESCRIPTION

[0038] In order to have a clearer understanding of the technical features, purposes and effects of the embodiments of the present application, the specific implementation methods of the embodiments of the present application are now described with reference to the accompanying drawings.

[0039] In this document, “exemplary” means “serving as an example, instance or illustration”, and any diagram or implementation described in this document as “exemplary” should not be interpreted as a more preferred or more advantageous technical solution.

[0040] In order to simplify the drawings, only the parts related to the present application are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one or more of the parts with the same structure or function are schematically drawn or only one or more of them are marked.

[0041] The existing pool cleaning robots do not plan the cleaning paths properly when performing cleaning tasks, which results in problems such as long cleaning time, low cleaning coverage, and high cleaning power consumption. In view of this, the present application proposes an improved pool cleaning method, device, electronic device, and computer storage medium, which can solve the various problems existing in the above-mentioned prior art.

[0042] The specific embodiments of each application will be described in detail below in conjunction with the accompanying drawings.

[0043] Figure 1 This is a flow chart of a swimming pool cleaning method according to an exemplary embodiment of the present application. As shown in the figure, this embodiment mainly includes the following steps: Step S102 : Controlling the swimming pool cleaning robot to move within a working area defined by the swimming pool relative to a grid map that completely covers the swimming pool, so as to construct a cleaning map including a plurality of cleaning blocks.

[0044] Optionally, the grid map may be composed of M*N grid blocks.

[0045] Optionally, the grid map may be a preconfigured grid map, for example, a grid map generated according to preset map parameters, wherein the preset map parameters may be fixed parameters or adjustable parameters.

[0046] Optionally, the grid map may be a grid map generated in real time based on the result of human-computer interaction. For example, the corresponding map parameters may be determined based on the area range input by the user (e.g., the area range circled by drawing), and the grid map may be generated accordingly; for another example, the corresponding map parameters may be determined based on the area, shape, or location information input by the user, and the grid map may be generated accordingly.

[0047] Optionally, corresponding map parameters may be determined based on the swimming pool image (eg, a two-dimensional area image or a three-dimensional volume image) acquired by the image acquisition device, and a grid map may be generated accordingly.

[0048] Optionally, a grid map completely covering the swimming pool may be generated based on the initial position and initial orientation of the swimming pool cleaning robot.

[0049] Optionally, a preset center point may be determined based on the initial position of the swimming pool cleaning robot, and a grid map completely covering the working area of ​​the swimming pool may be generated based on the preset center point.

[0050] In one embodiment, the initial position and initial orientation of the pool robot can be determined according to the position and orientation of the pool cleaning robot when it freely sinks to the bottom of the pool. Specifically, after the pool cleaning robot is placed in the pool, the position and orientation of the pool cleaning robot when it freely sinks to the bottom of the pool can be determined as the initial position and initial orientation of the pool robot.

[0051] In another embodiment, the pool cleaning robot is also controlled to move to a specified position and a specified orientation relative to the pool according to the movement instruction, and the specified position and the specified orientation are determined as the initial position and initial orientation of the pool cleaning robot. Specifically, after the pool cleaning robot sinks to the bottom of the pool, the pool cleaning robot can be controlled to move relative to the bottom of the pool according to the movement instruction until the expected specified position and specified orientation are met, and the initial position and initial orientation of the pool cleaning robot are determined accordingly.

[0052] Optionally, refer to Figure 2 The grid map generated in this embodiment includes multiple grid blocks (such as grid blocks A, B, C, D, O, etc.).

[0053] In this embodiment, the size of each grid block in the grid map (ie, the length and width of the grid block) may be determined based on a preset stepping distance of the swimming pool cleaning robot.

[0054] In this embodiment, the preset stepping distance of the swimming pool cleaning robot may be generated based on the size of the swimming pool cleaning robot (eg, the length and width of the swimming pool cleaning robot).

[0055] Optionally, the initial position of the swimming pool cleaning robot may be determined as the center point coordinates of the grid map, and the block coordinates of each grid block in the grid map may be generated accordingly.

[0056] Optionally, the pool cleaning robot is controlled to move relative to the grid map within a working area defined by the pool to determine a plurality of cleaning blocks in the grid map, and a cleaning map corresponding to the working area of ​​the pool is constructed based on the plurality of cleaning blocks determined in the grid map.

[0057] Specifically, the working area (cleaning area) of the pool cleaning robot can be defined based on the water area of ​​the swimming pool, and combined with a preset mapping movement algorithm and a preset pathfinding algorithm, the pool cleaning robot can be controlled to move within the working area relative to each grid block in the grid map, and each grid block that the pool cleaning robot can reach in the grid map is determined as a cleaning block.

[0058] Step S104, controlling the swimming pool cleaning robot to traverse each cleaning block in the cleaning map to clean the swimming pool.

[0059] Optionally, a preset cleaning movement algorithm and a preset path-finding algorithm may be combined to control the swimming pool cleaning robot to traverse each cleaning block in the cleaning map.

[0060] In summary, the swimming pool cleaning method of the present embodiment controls the swimming pool cleaning robot to move relative to each grid block of the grid map within the working area defined by the swimming pool to determine each cleaning block in the grid map. The determined cleaning blocks can accurately reflect the shape and size of the working area of ​​the swimming pool. Therefore, by controlling the swimming pool cleaning robot to traverse each cleaning block, not only the swimming pool cleaning coverage rate of the swimming pool cleaning robot can be improved, but also the safety and success rate of the swimming pool cleaning robot in performing the swimming pool cleaning task can be improved.

[0061] Figure 3 This is a flow chart of a swimming pool cleaning method according to another exemplary embodiment of the present application. This embodiment mainly shows a specific implementation scheme of the above step S102. As shown in the figure, this embodiment mainly includes the following steps: Step S302: Control the swimming pool cleaning robot to move relative to the grid map according to a preset mapping movement algorithm.

[0062] In this embodiment, the preset mapping movement algorithm includes: moving forward based on the current orientation of the pool cleaning robot; if the pool cleaning robot cannot move forward based on the current orientation of the pool cleaning robot, performing a turning operation based on the current orientation of the pool cleaning robot and a preset rotation angle and then continuing to move forward, or performing a backward movement based on the current orientation of the pool cleaning robot.

[0063] Optionally, the preset rotation angle may include rotating 90 degrees clockwise (ie, turning right 90 degrees) or rotating 90 degrees counterclockwise (ie, turning left 90 degrees) based on the current orientation of the pool cleaning robot.

[0064] For example, when the preset rotation angle is positive 90°, it means rotating 90 degrees clockwise based on the current orientation of the pool cleaning robot, and when the preset rotation angle is negative 90°, it means rotating 90 degrees counterclockwise based on the current orientation of the pool cleaning robot.

[0065] For example, when the pool cleaning robot is located Figure 2 When the pool cleaning robot is in the grid block O shown and is facing the grid block C, the pool cleaning robot will move forward along the direction of the dotted arrow in the diagram. When it moves to the grid block G and cannot move forward any further, the pool cleaning robot can be rotated 90 degrees clockwise based on the current orientation of the pool cleaning robot to change the orientation of the pool cleaning robot from facing the grid block I to facing the grid block F, and continue to move forward to the grid block F; or, the pool cleaning robot can be rotated 90 degrees counterclockwise based on the current orientation of the pool cleaning robot to change the orientation of the pool cleaning robot from facing the grid block I to facing the grid block J, and continue to move forward to the grid block J; in addition, the pool cleaning robot can also move backward based on the current orientation of the pool cleaning robot to move backward from the grid block G to the grid block C.

[0066] Step S304, based on the movement result of the pool cleaning robot relative to the grid map, the grid blocks that the pool cleaning robot can reach in the grid map are marked as cleaning blocks, and the grid blocks that the pool cleaning robot cannot reach in the grid map are marked as non-cleaning blocks.

[0067] Specifically, the grid blocks that can be reached by the pool cleaning robot in the grid map may correspond to the working area in the swimming pool (such as the water area in the swimming pool), and this grid block can be marked as a cleaning block. Conversely, the grid blocks that cannot be reached by the pool cleaning robot in the grid map may correspond to the non-working area in the swimming pool (such as obstacles in the swimming pool or the walls of the swimming pool), and this grid block can be marked as a non-cleaning block.

[0068] Step S306, determine whether the grid map meets the preset block marking stop condition, if not, return to step S302 to continue execution, if satisfied, execute step S308.

[0069] Optionally, when all grid blocks adjacent to each cleaning block in the grid map have completed labeling, a judgment result that the grid map meets a preset block labeling stop condition can be obtained.

[0070] Step S308, constructing a cleaning map according to the multiple cleaning blocks determined in the grid map.

[0071] Figure 4 The processing flow of the swimming pool cleaning method of another exemplary embodiment of the present application is shown. This embodiment is a specific implementation of the above step S302 (or step S102). As shown in the figure, this embodiment mainly includes the following steps: Step S402: determine the grid block in the grid map where the swimming pool cleaning robot is currently located as the current block.

[0072] In this embodiment, the grid block where the pool cleaning robot initially located when it falls to the bottom of the pool can be first determined as the current block, and in the subsequent mapping process, the current block in the grid map is updated according to the grid block where the pool cleaning robot is actually currently located.

[0073] Step S404: Based on the current block, at least one unlabeled grid block adjacent to the current block in the grid map is determined as a candidate block.

[0074] In this embodiment, since the grid map is generated based on the initial position and initial orientation of the pool robot, the candidate block determined based on the current block must be located directly in front of, behind, to the left or to the right of the pool cleaning robot.

[0075] For example, reference Figure 2 As shown in the grid map, assuming that the pool cleaning robot is currently located in the grid area O in the grid map, the grid block O is determined as the current block. According to the current block O, adjacent and unlabeled grid blocks including A, B, C, and D can be found from the grid map. Then, these grid blocks A, B, C, and D can be determined as candidate blocks.

[0076] Step S406: Determine the target block and the block to be marked in the candidate blocks based on the preset mapping movement algorithm.

[0077] Optionally, when there is only one candidate block adjacent to the current block, the only candidate block is the target block; when there are multiple candidate blocks, one can be selected from the candidate blocks as the target block based on a preset mapping movement algorithm.

[0078] Optionally, based on a preset mapping movement algorithm of the pool cleaning robot, the moving path or moving time of the pool cleaning robot from the current block to each candidate block can be determined, and according to the moving path or moving time from the current block to each candidate block, a candidate block with the shortest moving path or the least moving time can be determined as the target block.

[0079] For example, reference Figure 2, when the current block is grid block O, and grid blocks A, B, C, and D are all candidate blocks, assuming that the current direction of the swimming pool cleaning robot is toward grid block C, the swimming pool cleaning robot only needs to move forward to move from grid block O to grid block C; or, the swimming pool cleaning robot can move from grid block O to grid block B by rotating 90 degrees clockwise (turning right 90 degrees) and moving forward; or, the swimming pool cleaning robot can move from grid block O to grid block D by rotating 90 degrees counterclockwise (turning left 90 degrees) and moving forward twice; or, the swimming pool cleaning robot can move from grid block O to grid block A by performing two consecutive clockwise rotations of 90 degrees (turning right 90 degrees) or performing two consecutive counterclockwise rotations of 90 degrees (turning left 90 degrees) and moving forward, or, the swimming pool cleaning robot can also move from grid block O to grid block A by moving backward.

[0080] Generally speaking, when the pool cleaning robot makes a turning operation during its movement, the corresponding moving path of the pool cleaning robot is relatively long or the corresponding moving time of the pool cleaning robot is relatively long. Therefore, since there is no turning operation when moving from grid block O to grid block B, its corresponding moving path or moving time should be the shortest, and grid block B can be determined as the target block.

[0081] Exemplarily, when the current block is grid block G, and grid blocks F and J are both candidate blocks (i.e., grid blocks adjacent to grid block G and not labeled), assuming that the swimming pool cleaning robot is currently facing the direction of grid block I, the swimming pool cleaning robot can move from grid block G to grid block F by rotating 90 degrees clockwise (turning right 90 degrees) and moving forward; or, the swimming pool cleaning robot can move from grid block G to grid block J by rotating 90 degrees counterclockwise (turning left 90 degrees) and moving forward. Since the moving paths or moving times from grid block G to grid block F and from grid block G to grid block J are equal, any one of grid block F and grid block J can be determined as the target block.

[0082] Optionally, the target block may be determined from candidate blocks having equal moving paths or moving times based on the preferred rotation direction of the pool cleaning robot.

[0083] For example, if the preferred rotation direction of the swimming pool cleaning robot is right turn, grid block F may be determined as the target block of grid block G (current block).

[0084] Optionally, when there are multiple candidate blocks adjacent to the current block, all candidate blocks except the target block among the candidate blocks may be determined as blocks to be marked.

[0085] For example, reference Figure 2 , when the current block is grid block O, and grid blocks A, B, C, and D are all candidate blocks, if grid block C is determined as the target block based on the preset mapping movement algorithm, then grids A, B, and D are all determined as blocks to be labeled.

[0086] Step S408, controlling the cleaner to move from the current block to the target block.

[0087] In this embodiment, if the target block is determined based on a preset mapping movement algorithm, the swimming pool cleaning robot is driven to move from the current block to the target block based on the movement path generated by the preset mapping movement algorithm.

[0088] For example, reference Figure 2 Assuming that the swimming pool cleaning robot is currently heading toward grid block C, the swimming pool cleaning robot may move forward to move from grid block O to grid block C; or, the swimming pool cleaning robot may rotate 90 degrees clockwise (turn right 90 degrees) and move forward to move from grid block O to grid block B. The specific movement method of the swimming pool cleaning robot may refer to the description of step S406 above, which will not be described in detail here.

[0089] Step S410, determining whether the pool cleaning robot has reached the target area, if it can reach it, proceeding to step S412, if it cannot reach it, proceeding to step S414.

[0090] In this embodiment, the pool cleaning robot may be controlled to perform collision detection on the target block to determine whether the target block corresponds to the water area of ​​the swimming pool, and based on the collision detection result, determine whether the pool cleaning robot can reach the target block.

[0091] Step S412, marking the target block as a clean block, and updating the target block to the current block.

[0092] Specifically, if the swimming pool cleaning robot can reach the target block, it means that the target block corresponds to the water area in the swimming pool, and it is marked as a cleaning block. After the swimming pool cleaning robot reaches the target block, it is updated as the current block, and the process returns to step S404 to continue execution.

[0093] Step S414: mark the target block as a non-cleaning block.

[0094] In this embodiment, if the swimming pool cleaning robot cannot reach the target block, it means that the target block corresponds to the pool wall or the obstacle in the swimming pool, and the target block is marked as a non-cleaning block.

[0095] Step S416, determine whether there is a candidate block adjacent to the current block, if so, return to step S406 to continue execution, if not, proceed to step S418.

[0096] Optionally, it may be determined whether there are other candidate blocks adjacent to the current block (or blocks to be marked adjacent to the current block). If so, the process returns to step S406 to determine the next target block to be moved.

[0097] For example, reference Figure 2 In the case where the current block is the grid block G, if the target block I is a non-cleaned block, it is determined whether there is a candidate block adjacent to the current block G (or can be called a block to be marked adjacent to the current block G). If it is found after the query that the candidate block adjacent to the current block G (or can be called a block to be marked) also includes grid blocks J and F, then the process returns to step S406 to determine the next target block to be moved based on the preset mapping movement algorithm.

[0098] Step S418, determining whether there is a block to be marked that is not adjacent to the current block, if yes, proceed to step S420, if no, proceed to step S422.

[0099] In this embodiment, it is possible to query whether there are any blocks to be marked that are not adjacent to the current block in the grid map. If the judgment result is that there are no blocks to be marked, it means that all grid blocks adjacent to each cleaning block in the grid map have been marked, then the cleaning map construction is completed and this step can be exited.

[0100] Step S420 : Based on a preset path-finding algorithm, the block to be marked that has the shortest moving distance from the current block is determined as the target block.

[0101] In this embodiment, based on the A-STAR algorithm, the block to be marked with the shortest moving distance from the current block can be searched, and the process returns to step S408 to control the swimming pool cleaning robot to move from the current block to the target block.

[0102] It should be noted that, when the target block is determined based on a preset path-finding algorithm, in step S408, the swimming pool cleaning robot is driven to move from the current block to the target block based on the moving path determined by the preset path-finding algorithm.

[0103] Step S422: construct a cleaning map based on each cleaning block.

[0104] Optionally, a cleaning map corresponding to the working area (water area) of the swimming pool may be constructed based on all cleaning blocks marked in the grid map.

[0105] Optionally, a cleaning map corresponding to the working area (eg, the water area of ​​the swimming pool) and the non-working area (eg, the wall area of ​​the swimming pool) of the swimming pool may be constructed based on all cleaning blocks and all non-cleaning blocks marked in the grid map.

[0106] In summary, this embodiment Figure 3 , Figure 4 The swimming pool cleaning method described in the embodiment controls and drives the swimming pool cleaning robot to move relative to the grid map by combining a preset mapping movement algorithm and a preset pathfinding algorithm, and marks each grid block in the grid map, so that the generated cleaning map can accurately reflect the shape and size of the swimming pool working area, and has the advantages of short mapping operation time and high accuracy of mapping results.

[0107] Figure 5 The processing flow of the swimming pool cleaning method of another exemplary embodiment of the present application is shown. This embodiment mainly shows a specific implementation of the above step S104. As shown in the figure, this embodiment mainly includes the following steps: Step S502, obtaining multiple cleaning areas in the cleaning map according to each cleaning block in the cleaning map.

[0108] Optionally, a non-continuous single cleaning block in the cleaning map may be identified to obtain a cleaning area including the single cleaning block.

[0109] Optionally, a plurality of continuous cleaning blocks located in the same row or column in the cleaning map may be identified to obtain a cleaning area including the plurality of cleaning blocks.

[0110] Please refer to FIG. 6A to FIG. 6C ,in, Fig. 6A According to the above Figure 2 or Figure 4 An example diagram of a cleaning map constructed according to the illustrated embodiment.

[0111] In one embodiment, a plurality of continuous cleaning blocks located in the same row in the cleaning map may be identified, and cleaning areas corresponding to the rows may be generated (see Figure 6B ). Specifically, the cleaning area corresponding to the first row can be generated according to the cleaning blocks a and e located in the first row; the cleaning area corresponding to the second row can be generated according to the cleaning blocks b, f, and i located in the second row; the cleaning area corresponding to the third row can be generated according to the cleaning blocks c, g, j, and l located in the third row; and the cleaning area corresponding to the fourth row can be generated according to the cleaning blocks d, h, k, and m located in the fourth row.

[0112] In one embodiment, multiple continuous cleaning blocks located in the same row in the cleaning map may be identified to generate cleaning areas corresponding to each row (see Figure 6C). Specifically, the cleaning area corresponding to the first column can be generated according to the cleaning blocks a, b, c, d located in the first column; the cleaning area corresponding to the second column can be generated according to the cleaning blocks e, f, g, h located in the second column; the cleaning area corresponding to the third column can be generated according to the cleaning blocks i, j, k located in the third column; and the cleaning area corresponding to the fourth column can be generated according to the cleaning blocks n and m located in the fourth column.

[0113] In this embodiment, each generated cleaning area may include two area endpoints, wherein the two area endpoints of the cleaning area may be determined by two cleaning blocks located at two ends of the cleaning area.

[0114] For example, Figure 6B Taking the cleaning areas shown in the figure as an example, the two area endpoints corresponding to the cleaning area in the third row are cleaning block c and cleaning block n.

[0115] For example, Figure 6C Taking the cleaning areas shown in the figure as an example, the two area endpoints corresponding to the cleaning area in the first column are cleaning block a and cleaning block d.

[0116] Optionally, the block coordinates of each cleaning block in the cleaning map can be determined based on the block coordinates of each grid block, and the two endpoint coordinates corresponding to the two area endpoints of the cleaning area can be determined based on the two block coordinates corresponding to the two cleaning blocks located at both ends of the cleaning area.

[0117] Optionally, the block coordinates corresponding to each cleaning block may be relative coordinates of a relative coordinate system established based on a cleaning map or a grid map, or may be absolute coordinates (such as longitude and latitude coordinates) based on an absolute coordinate system.

[0118] Step S504: Based on a preset path-finding algorithm, the swimming pool cleaning robot is controlled to move between different cleaning areas.

[0119] Optionally, based on the area endpoint in the cleaning area where the pool cleaning robot is currently located and the two area endpoints of each cleaning area that has not been cleaned in the cleaning map, based on a preset pathfinding algorithm, the area endpoint closest to the movement distance of the pool cleaning robot can be determined as the target endpoint, and the cleaning area containing the target endpoint can be determined as the cleaning area to be cleaned by the pool cleaning robot.

[0120] Optionally, the preset path-finding algorithm may include an A-STAR algorithm, but is not limited thereto. Other path-finding algorithms may also be used, and this application does not impose any limitation on this.

[0121] For example, if the pool cleaning robot is currently in Figure 6BThe cleaning block e corresponding to the cleaning area in the first row is shown. According to the two area endpoints of each cleaning area that has not been cleaned in the cleaning map, and based on the preset pathfinding algorithm, the area endpoint closest to it is found to be the cleaning block i, then the cleaning block i is determined as the target endpoint, and the cleaning area containing the cleaning block i (that is, the cleaning area corresponding to the second row) is determined as the cleaning area to be cleaned by the swimming pool cleaning robot.

[0122] For example, if the pool cleaning robot is currently in Figure 6C The cleaning block h corresponding to the cleaning area in the second column shown can be found to be the cleaning block k according to the two area endpoints of each cleaning area that has not been cleaned in the cleaning map and based on the preset pathfinding algorithm, and the area endpoint closest to it can be found to be the cleaning block k. The cleaning block k is then determined as the target endpoint, and the cleaning area containing the cleaning block k (that is, the cleaning area corresponding to the third column) is determined as the cleaning area to be cleaned by the swimming pool cleaning robot.

[0123] Optionally, based on a preset path-finding algorithm, the pool cleaning robot can be controlled to move toward the target endpoint to move from the current cleaning area to the cleaning area to be cleaned, and after the cleaning area to be cleaned is updated to the current cleaning area, step S506 is continued.

[0124] Specifically, based on a moving path generated by a preset path-finding algorithm (such as an A-STAR algorithm), the pool cleaning robot can be controlled to move toward a target endpoint so as to move from a current cleaning area to a cleaning area to be cleaned.

[0125] Step S506: Based on a preset cleaning movement algorithm, the swimming pool cleaning robot is controlled to move within each cleaning area.

[0126] Optionally, one of the two area endpoints of the current cleaning area that coincides with the target endpoint can be determined as the starting endpoint, and the other of the two area endpoints can be determined as the ending endpoint, and the swimming pool cleaning robot can be controlled to move from the starting endpoint to the ending endpoint to traverse each cleaning block in the cleaning area.

[0127] For example, if the target endpoint is Figure 6B For the cleaning block i shown in the figure, according to the two area endpoints of the cleaning area corresponding to the second row, namely, cleaning block i and cleaning block b, cleaning block i is determined as the starting endpoint and cleaning block b is determined as the ending endpoint, so as to drive the swimming pool cleaning robot to move from cleaning block i to cleaning block b, thereby traversing each cleaning block in the cleaning area corresponding to the second row.

[0128] Step S508, determining whether the swimming pool cleaning robot has traversed every cleaning block in the cleaning map, if so, then ending this process, if not, then returning to step S504 to continue execution.

[0129] It should be noted that, in this embodiment, there is no strict order of execution between step S504 and step S506, that is, after step S502, step S506 may be executed first and then step S504, and these two steps may be repeated alternately until the pool cleaning robot traverses every cleaning block in the cleaning map.

[0130] For example, after generating each cleaning area in the cleaning map in step S502, step S506 is first executed to determine, based on the two area endpoints of the cleaning area where the swimming pool cleaning robot is currently located, one of the two area endpoints that is closer to the moving distance of the swimming pool cleaning robot as the inspiration endpoint, and the other of the two area endpoints is determined as the termination endpoint, so as to drive the swimming pool cleaning robot to perform the cleaning task in the current cleaning area, and after completing the cleaning, continue to execute step S504.

[0131] Figure 7 The processing flow of the swimming pool cleaning method of another exemplary embodiment of the present application is shown. This embodiment mainly shows another specific implementation of the above step S104. As shown in the figure, this embodiment mainly includes the following steps: Step S702, obtaining multiple cleaning areas in the cleaning map according to each cleaning block in the cleaning map.

[0132] Optionally, a non-continuous single cleaning block in the cleaning map may be identified to obtain a cleaning area including the single cleaning block.

[0133] Optionally, a plurality of continuous cleaning blocks located in the same row or column in the cleaning map may be identified to obtain a cleaning area including the plurality of cleaning blocks.

[0134] For the specific method of generating each cleaning area in the cleaning map, reference may be made to the description of step S502 above, which will not be described in detail here.

[0135] Step S704: Based on a preset path-finding algorithm, the swimming pool cleaning robot is controlled to move to an edge position of the cleaning map.

[0136] Optionally, based on the cleaning block in the cleaning map where the pool cleaning robot is currently located and the two area endpoints of each cleaning area that has not been cleaned in the cleaning map, based on a preset pathfinding algorithm, the area endpoint that is closest to the movement distance of the pool cleaning robot and located at the edge of the cleaning map is determined as the target endpoint, and the cleaning area containing the target endpoint is determined as the cleaning area to be cleaned by the pool cleaning robot, and based on the preset pathfinding algorithm, the pool cleaning robot is controlled to move toward the target endpoint, and after arriving at the target endpoint, the cleaning area to be cleaned is updated to the current cleaning area, and step S706 is continued.

[0137] For example, if the pool cleaning robot is currently located at Figure 6B In the cleaning block g shown in the figure, according to the two area endpoints of each cleaning area that has not been cleaned in the cleaning map, based on the preset path finding algorithm (such as the A-STAR algorithm), the area endpoint that is closest to the movement distance of the swimming pool cleaning robot and located at the edge of the cleaning map is found to be the cleaning block c, then the cleaning block c can be determined as the target endpoint, and the cleaning area containing the cleaning block c (i.e., corresponding to Figure 6B The cleaning area of ​​the third row of the figure is determined as the area to be cleaned, and the swimming pool cleaning robot can be driven to move from the cleaning block g to the cleaning block c based on the moving path generated by the preset path-finding algorithm, and after arriving at the cleaning block c, the corresponding Figure 6B The cleaning area in the third row is updated to the currently described cleaning area.

[0138] Step S706: Based on a preset cleaning movement algorithm, the swimming pool cleaning robot is controlled to move within each cleaning area.

[0139] Optionally, one of the two area endpoints of the current cleaning area that coincides with the target endpoint can be determined as the starting endpoint, and the other of the two area endpoints can be determined as the ending endpoint, and the swimming pool cleaning robot can be controlled to move from the starting endpoint to the ending endpoint to traverse each cleaning block in the cleaning area.

[0140] The specific cleaning solution for this step can be found in the description of the aforementioned step S506 and will not be elaborated here.

[0141] Step S708: Based on a preset path-finding algorithm, the swimming pool cleaning robot is controlled to move between different cleaning areas.

[0142] Optionally, based on the area endpoint in the cleaning area where the pool cleaning robot is currently located and the two area endpoints of each cleaning area that has not been cleaned in the cleaning map, based on a preset pathfinding algorithm, the area endpoint closest to the movement distance of the pool cleaning robot can be determined as the target endpoint, and the cleaning area including the target endpoint can be determined as the cleaning area to be cleaned by the pool cleaning robot. Based on the preset pathfinding algorithm, the pool cleaning robot is controlled to move toward the target endpoint to move from the current cleaning area to the cleaning area to be cleaned, and the cleaning area to be cleaned is updated to the current cleaning area before continuing to execute step S710.

[0143] The specific cleaning solution for this step can be found in the description of the aforementioned step S504 and will not be elaborated here.

[0144] Step S710, determining whether the pool cleaning robot has traversed every cleaning block in the cleaning map, if so, then ending this process, if not, then returning to step S706 to continue execution.

[0145] In summary, according to this application Figure 5 or Figure 7 The illustrated embodiment can generate a cleaning area including at least one cleaning block based on each cleaning block in the cleaning map, and utilize a preset path-finding algorithm and a preset cleaning movement algorithm to drive the swimming pool cleaning robot to move between or within each cleaning area to perform the swimming pool cleaning task, thereby achieving a fast, efficient and energy-saving swimming pool cleaning effect.

[0146] Figure 8 A structural block diagram of a swimming pool cleaning device according to an exemplary embodiment of the present application is shown.

[0147] The swimming pool cleaning device 800 of this embodiment may be installed in a swimming pool cleaning robot, wherein the swimming pool cleaning robot may be suitable for performing a swimming pool cleaning task.

[0148] As shown in the figure, the swimming pool cleaning device 800 of this embodiment mainly includes a map generating module 802 and a cleaning control module 804 .

[0149] The map generation module 802 is used to control the swimming pool cleaning robot to move within the working area defined by the swimming pool relative to the grid map that completely covers the swimming pool to construct a cleaning map including multiple cleaning blocks. The cleaning control module 804 is used to control the swimming pool cleaning robot to traverse each cleaning block in the cleaning map to clean the swimming pool.

[0150] Optionally, the map generation module 802 is also used to: control the swimming pool cleaning robot to move relative to the grid map within the working area defined by the swimming pool to determine multiple cleaning blocks in the grid map; and construct the cleaning map according to the multiple cleaning blocks determined in the grid map.

[0151] Optionally, the map generation module 802 is further used to: execute a moving step, control the movement of the swimming pool cleaning robot relative to the grid map according to a preset mapping movement algorithm; execute a labeling step, label the grid blocks that the swimming pool cleaning robot can reach in the grid map as cleaning blocks, and label the grid blocks that the swimming pool cleaning robot cannot reach in the grid map as non-cleaning blocks according to the movement results of the swimming pool cleaning robot relative to the grid map; alternately execute the moving step and the labeling step until the grid map meets the preset block labeling stop condition.

[0152] Optionally, the size of each grid block in the grid map is determined based on a preset stepping distance of the swimming pool cleaning robot.

[0153] Optionally, the movement step performed by the map generation module 802 includes: determining a grid block in the grid map where the pool cleaning robot is currently located as a current block; based on the current block, determining at least one unlabeled grid block in the grid map that is adjacent to the current block as a candidate block; based on the preset mapping movement algorithm, determining a target block in the candidate blocks, and controlling the robot to move from the current block to the target block.

[0154] Optionally, the map generation module 802 is also used for: when there are multiple candidate blocks adjacent to the current block, based on the preset mapping movement algorithm, determining the candidate block with the shortest moving path or the least moving time of the pool cleaning robot among the multiple candidate blocks as the target block, and determining all other candidate blocks among the multiple candidate blocks except the target block as blocks to be marked.

[0155] Exemplarily, the preset mapping movement algorithm includes: moving forward based on the current orientation of the pool cleaning robot; if it is impossible to move forward based on the current orientation of the pool cleaning robot, performing a turning operation based on the current orientation of the pool cleaning robot and a preset rotation angle and then continuing to move forward, or performing a backward movement based on the current orientation of the pool cleaning robot; wherein the preset rotation angle includes rotating 90 degrees clockwise or 90 degrees counterclockwise based on the current orientation of the pool cleaning robot.

[0156] Optionally, the map generation module 802 is also used to: if there is no candidate block adjacent to the current block, obtain each block to be marked in the grid map; based on a preset pathfinding algorithm, determine the block to be marked with the shortest moving distance from the current block as the target block; control the swimming pool cleaning robot to move from the current block to the target block based on the preset pathfinding algorithm.

[0157] Optionally, the map generation module 802 is further configured to repeat the moving step and the marking step until all grid blocks adjacent to each cleaned block in the grid map are marked.

[0158] Optionally, the cleaning control module 804 is further used to obtain multiple cleaning areas in the cleaning map according to each cleaning block in the cleaning map.

[0159] Optionally, the cleaning control module 804 is also used to: identify a single non-continuous cleaning block in the cleaning map to obtain a cleaning area containing the single cleaning block; or, identify multiple continuous cleaning blocks in the cleaning map that are located in the same row or column to obtain a cleaning area containing multiple cleaning blocks.

[0160] Optionally, the cleaning control module 804 is further used to: execute an inter-area movement step, and control the swimming pool cleaning robot to move between different cleaning areas based on a preset path-finding algorithm; execute an intra-area movement step, and control the swimming pool cleaning robot to move within each cleaning area based on a preset cleaning movement algorithm; and alternately execute the inter-area movement step and the intra-area movement step until the swimming pool cleaning robot traverses each cleaning block in the cleaning map.

[0161] Optionally, each cleaning area includes two area endpoints, which are determined by cleaning blocks located at two ends of the cleaning area.

[0162] Optionally, the cleaning control module 804 is further used to: determine the area endpoint closest to the moving distance of the swimming pool cleaning robot as the target endpoint based on the preset pathfinding algorithm according to the area endpoint of the cleaning area currently located by the swimming pool cleaning robot and the two area endpoints of each cleaning area that has not been cleaned in the cleaning map, and determine the cleaning area including the target endpoint as the cleaning area to be cleaned by the swimming pool cleaning robot; based on the preset pathfinding algorithm, control the swimming pool cleaning robot to move toward the target endpoint so as to move from the current cleaning area to the cleaning area to be cleaned, and after updating the cleaning area to be cleaned to the current cleaning area, continue to execute the step of moving within the area.

[0163] Optionally, the cleaning control module 804 is further used to: determine one of the two area endpoints of the current cleaning area that coincides with the target endpoint as the starting endpoint, and determine the other of the two area endpoints as the ending endpoint; control the swimming pool cleaning robot to move from the starting endpoint to the ending endpoint to traverse each cleaning block in the cleaning area, and continue to execute the inter-area movement step.

[0164] Optionally, the cleaning control module 804 is also used to: determine the area endpoint that is closest to the movement distance of the swimming pool cleaning robot and located at the edge of the cleaning map as the target endpoint based on the preset pathfinding algorithm, and determine the cleaning area including the target endpoint as the cleaning area to be cleaned by the swimming pool cleaning robot, according to the cleaning block in the cleaning map where the swimming pool cleaning robot is currently located and the two area endpoints of each cleaning area that has not been cleaned in the cleaning map; based on the preset pathfinding algorithm, control the swimming pool cleaning robot to move toward the target endpoint, and after arriving at the target endpoint, update the cleaning area to be cleaned to the current cleaning area, and continue to execute the moving step within the area.

[0165] Optionally, the preset path-finding algorithm includes an A-STAR algorithm.

[0166] In addition, the swimming pool cleaning device 800 of the embodiment of the present application can also be used to implement other steps in the aforementioned swimming pool cleaning method embodiments, and has the beneficial effects of the corresponding method step embodiments, which will not be repeated here.

[0167] The exemplary embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present application when executed by the at least one processor.

[0168] The exemplary embodiments of the present application also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform the method according to each embodiment of the present application.

[0169] The exemplary embodiments of the present application further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, it is used to enable the computer to execute the method according to each embodiment of the present application.

[0170] refer to Fig. 9, the structural block diagram of the electronic device 900 that can be used as the server or client of the present application will now be described, which is an example of the hardware device that can be applied to various aspects of the present application. The electronic device is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples, and are not intended to limit the implementation of the present application described and / or required herein.

[0171] like Fig. 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0172] A plurality of components in the electronic device 900 are connected to the I / O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 may be any type of device capable of inputting information to the electronic device 900, and the input unit 906 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 907 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 904 may include, but is not limited to, a disk, an optical disk. The communication unit 909 allows the electronic device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0173] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above. For example, in some embodiments, the pool cleaning method of the aforementioned embodiments may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. In some embodiments, the computing unit 901 may be configured to perform the pool cleaning method in any other appropriate manner (e.g., by means of firmware).

[0174] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0175] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0176] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0177] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0178] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0179] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0180] It should be understood that although this specification is described according to various embodiments, not every embodiment contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

[0181] The above description is only an illustrative specific implementation of the embodiment of the present application, and is not intended to limit the scope of the embodiment of the present application. Any equivalent changes, modifications and combinations made by any technician in this field without departing from the concept and principle of the embodiment of the present application should fall within the scope of protection of the embodiment of the present application.

Claims

1. A swimming pool cleaning method, comprising: Controlling the pool cleaning robot to move within a working area defined by the pool relative to a grid map that completely covers the pool to construct a cleaning map including a plurality of cleaning blocks; as well as The swimming pool cleaning robot is controlled to traverse each cleaning block in the cleaning map to clean the swimming pool.

2. The method according to claim 1, characterized in that: The controlling the swimming pool cleaning robot to move within a working area defined by the swimming pool relative to a grid map that completely covers the swimming pool to establish a cleaning map including a plurality of cleaning blocks includes: Controlling the swimming pool cleaning robot to move relative to the grid map within a working area defined by the swimming pool to determine a plurality of cleaning blocks in the grid map; The cleaning map is constructed according to the multiple cleaning blocks determined in the grid map.

3. The method according to claim 2, characterized in that The controlling the swimming pool cleaning robot to move within a working area defined by the swimming pool relative to the grid map to determine a plurality of cleaning blocks in the grid map comprises: A moving step, controlling the swimming pool cleaning robot to move relative to the grid map according to a preset map building and moving algorithm; a marking step, according to the movement result of the swimming pool cleaning robot relative to the grid map, marking the grid blocks in the grid map that the swimming pool cleaning robot can reach as cleaning blocks, and marking the grid blocks in the grid map that the swimming pool cleaning robot cannot reach as non-cleaning blocks; The moving step and the marking step are performed alternately until the grid map meets a preset block marking stop condition.

4. The method according to claim 3, characterized in that The moving step comprises: Determine a grid block in the grid map where the swimming pool cleaning robot is currently located as a current block; Based on the current block, determining at least one unlabeled grid block adjacent to the current block in the grid map as a candidate block; Based on the preset mapping movement algorithm, a target block in the candidate blocks is determined, and the robot is controlled to move from the current block to the target block.

5. The method according to claim 4, characterized in that The step of determining the target block in the candidate blocks based on the preset mapping movement algorithm includes: When there are multiple candidate blocks adjacent to the current block, based on the preset mapping movement algorithm, the candidate block with the shortest moving path or the least moving time of the pool cleaning robot among the multiple candidate blocks is determined as the target block, and all other candidate blocks among the multiple candidate blocks except the target block are determined as blocks to be marked.

6. The method according to any one of claims 3 to 5, characterized in that The preset mapping movement algorithm includes: Moving forward based on the current orientation of the pool cleaning robot; If the pool cleaning robot cannot move forward based on the current orientation of the pool cleaning robot, perform a turning operation based on the current orientation of the pool cleaning robot and a preset rotation angle and then continue to move forward, or perform a backward movement based on the current orientation of the pool cleaning robot; The preset rotation angle includes a 90 degree clockwise rotation or a 90 degree counterclockwise rotation based on the current orientation of the swimming pool cleaning robot.

7. The method according to claim 5, characterized in that The method further comprises: If there is no candidate block adjacent to the current block, obtain each block to be marked in the grid map; Based on a preset path-finding algorithm, the block to be marked having the shortest moving distance from the current block is determined as the target block; The swimming pool cleaning robot is controlled to move from the current block to the target block based on the preset path-finding algorithm.

8. The method according to any one of claims 3, 4, 5 and 7, characterized in that: The step of repeating the moving step and the marking step until the grid map meets a preset block marking stop condition includes: The moving step and the marking step are repeated until all grid blocks adjacent to each cleaned block in the grid map are marked.

9. The method according to claim 1, characterized in that: The method further comprises: obtaining a plurality of cleaning areas in the cleaning map according to each cleaning block in the cleaning map; And wherein, controlling the swimming pool cleaning robot to traverse each cleaning block in the cleaning map to clean the swimming pool includes: The inter-area movement step controls the swimming pool cleaning robot to move between different cleaning areas based on a preset path-finding algorithm; An area moving step, based on a preset cleaning movement algorithm, controlling the swimming pool cleaning robot to move within each cleaning area; The inter-area moving step and the intra-area moving step are performed alternately until the swimming pool cleaning robot traverses each cleaning block in the cleaning map.

10. The method according to claim 9, characterized in that The step of obtaining a plurality of cleaning areas in the cleaning map according to each cleaning block in the cleaning map comprises: Identify a non-continuous single cleaning block in the cleaning map to obtain a cleaning area including the single cleaning block; or, A plurality of continuous cleaning blocks located in the same row or the same column in the cleaning map are identified to obtain a cleaning area including the plurality of cleaning blocks.

11. The method according to claim 9, characterized in that Each cleaning area includes two area endpoints, and the area endpoints are determined by cleaning blocks located at two ends of the cleaning area; The inter-region movement step includes: According to the regional endpoints in the cleaning area currently located by the swimming pool cleaning robot and the two regional endpoints of each cleaning area that has not been cleaned in the cleaning map, based on the preset pathfinding algorithm, the regional endpoint closest to the movement distance of the swimming pool cleaning robot is determined as the target endpoint, and the cleaning area containing the target endpoint is determined as the cleaning area to be cleaned by the swimming pool cleaning robot; Based on the preset path-finding algorithm, the swimming pool cleaning robot is controlled to move toward the target endpoint so as to move from the current cleaning area to the cleaning area to be cleaned, and after the cleaning area to be cleaned is updated to the current cleaning area, the step of moving within the area is continued.

12. The method according to claim 11, characterized in that The steps of moving within the area include: One of the two area endpoints of the current cleaning area that matches the target endpoint is determined as the starting endpoint, and the other of the two area endpoints is determined as the ending endpoint; The swimming pool cleaning robot is controlled to move from the starting end point to the ending end point to traverse each cleaning block in the cleaning area, and continue to execute the inter-area movement step.

13. The method according to claim 9, characterized in that The method further comprises: According to the cleaning block in the cleaning map where the swimming pool cleaning robot is currently located and the two area endpoints of each cleaning area that has not been cleaned in the cleaning map, based on the preset pathfinding algorithm, the area endpoint that is closest to the movement distance of the swimming pool cleaning robot and located at the edge of the cleaning map is determined as the target endpoint, and the cleaning area containing the target endpoint is determined as the cleaning area to be cleaned by the swimming pool cleaning robot; Based on the preset path-finding algorithm, the swimming pool cleaning robot is controlled to move toward the target endpoint, and after arriving at the target endpoint, the cleaning area to be cleaned is updated to the current cleaning area, and the moving step within the area is continued.

14. The method according to claim 1, characterized in that The size of each grid block in the grid map is determined based on a preset stepping distance of the swimming pool cleaning robot.

15. The method according to claim 7 or 9, characterized in that: The preset path-finding algorithm includes the A-STAR algorithm.

16. A swimming pool cleaning device, comprising: A map generation module, used to control the swimming pool cleaning robot to move within a working area defined by the swimming pool relative to a grid map that completely covers the swimming pool, so as to construct a cleaning map including a plurality of cleaning blocks; The cleaning control module is used to control the swimming pool cleaning robot to traverse each cleaning block in the cleaning map to clean the swimming pool.

17. The device according to claim 16, characterized in that The device is loaded in a swimming pool cleaning robot, and the swimming pool cleaning robot is suitable for cleaning a swimming pool.

18. An electronic device comprising: processor; as well as A memory for storing programs; The program comprises instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 15.

19. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-15.

Citation Information

Cited By

  • Obstacle-avoiding moving method and device of swimming pool cleaning robot and electronic equipment

    CN119937552A

  • Obstacle avoidance moving method and device of pool cleaning robot, and electronic equipment

    CN119937552B

  • Self-adaptive cleaning path planning method and system based on swimming pool wall robot

    CN121165709A

  • Robot-based swimming pool cleaning method and apparatus, and robot

    WO2026174934A1