Method, device and electronic device for performing cleaning work by sweeping robot
By determining the reference block based on environmental information and adjusting the cleaning path in real time in the sweeping robot, the problems of low cleaning efficiency and unreasonable area division in the existing technology are solved, and a more efficient and accurate cleaning effect is achieved.
Patent Information
- Application Number
- CN201811341129.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-11-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2038-11-12
AI Technical Summary
When existing sweeping robots perform cleaning work, they lack effective identification and division of obstacles and cleaning restricted areas, resulting in low cleaning efficiency and unreasonable area division.
Based on the current environmental information, the base block for performing cleaning work is determined, and the cleaning work is carried out according to the division and planning of the base block, and the cleaning path is detected and adjusted in real time to avoid obstacles and clean restricted areas.
It improves the cleaning efficiency and the rationality of area division, ensures that the sweeping robot can effectively perform cleaning work, and improves the user experience and cleaning accuracy.
Smart Images

Figure CN111240309B
Abstract
Description
Technical Field
[0001] The present application relates to the field of robotics technology, and more specifically, to a method, device, and electronic device for a sweeping robot to perform cleaning work. Background Art
[0002] With the development of information technology and the continuous improvement of people's requirements for quality of life, smart home products have gradually appeared in people's daily lives. Among them, the representative sweeping robot is becoming more and more popular. The sweeping robot can perform the cleaning work on the ground instead of people.
[0003] Therefore, when a sweeping robot replaces humans to perform the cleaning work on the ground, how to perform the cleaning work specifically becomes a key issue. Summary of the invention
[0004] The present application provides a method, device and electronic device for performing cleaning by a sweeping robot, which can solve the problem of performing cleaning work by a sweeping robot. The technical solution is as follows:
[0005] In a first aspect, a method for a sweeping robot to perform cleaning is provided, the method comprising:
[0006] Based on the current environmental information, determine the benchmark block for performing cleaning work;
[0007] Based on the reference block, cleanup is performed.
[0008] In a possible implementation, based on the current environment information, determining the reference block for performing the cleaning work includes:
[0009] Determine the edge of obstacles and / or the edge of a cleaning restricted area within a preset area, where the preset area is a quadrilateral area centered on the current position of the cleaning robot, and the cleaning restricted area is an area where the cleaning robot is prohibited from performing cleaning work;
[0010] Based on the edge of obstacles and / or the edge of the cleaning restricted area in the preset area, a reference block for performing cleaning work is determined.
[0011] In a possible implementation, determining a reference block for performing cleaning work based on the edge of an obstacle in a preset area and / or the edge of a cleaning restricted area includes:
[0012] Determine the longest horizontal side and the longest vertical side from the edge of the obstacle in the preset area and / or the edge of the cleaning restricted area;
[0013] A quadrilateral consisting of the longest horizontal side and the longest vertical side is determined as a reference block for performing cleaning work.
[0014] In a possible implementation, based on the reference block, a cleaning operation is performed, including:
[0015] Perform cleaning work on the benchmark block;
[0016] Based on the reference block and in a preset planning manner, cleaning work is performed on other cleanable areas except the reference block.
[0017] In a possible implementation, the reference block is used as a reference, and a cleaning operation is performed on other cleanable areas other than the reference block in a preset planning manner, including:
[0018] Taking the reference block as a reference, dividing other cleanable areas except the reference block into blocks;
[0019] Carry out cleaning work according to the divided blocks.
[0020] In a possible implementation, the method further includes:
[0021] When performing cleaning work, detect obstacles and / or clean restricted areas in real time;
[0022] When an obstacle and / or a cleaning restricted area is detected, a cleaning operation is performed along the obstacle and / or the cleaning restricted area.
[0023] In a possible implementation, based on the current environment information, determining the reference block for performing the cleaning work also includes at least one of the following:
[0024] Based on the layout diagram of the current environment, determine the obstacle information and / or clear the restricted area information in the preset area to determine the current environment information;
[0025] Detect obstacle information and / or clear restricted area information in a preset area to determine current environmental information;
[0026] Based on the historical detection information of the sweeping robot, the obstacle information and / or the cleaning restricted area information in the preset area are determined to determine the current environment information.
[0027] In a second aspect, a device for a sweeping robot to perform cleaning work is provided, comprising:
[0028] A first determination module is used to determine a reference block for performing cleaning work based on current environmental information;
[0029] The cleaning operation execution module is used to execute the cleaning operation based on the reference block determined by the first determination module.
[0030] In a possible implementation, the first determination module is specifically used to determine the edge of the obstacle and / or the edge of the cleaning restricted area in a preset area, the preset area is a quadrilateral area centered on the current position of the cleaning robot, and the cleaning restricted area is an area where the cleaning robot is prohibited from performing cleaning work;
[0031] The first determination module is further specifically used to determine a reference block for performing cleaning work based on the edge of obstacles and / or the edge of a cleaning restricted area in a preset area.
[0032] In a possible implementation, the first determination module is further configured to determine the longest horizontal side and the longest vertical side from the edge of the obstacle in the preset area and / or the edge of the cleaning restricted area;
[0033] The first determination module is specifically used to determine a quadrilateral consisting of the longest horizontal side and the longest vertical side as a reference block for performing cleaning work.
[0034] In a possible implementation, a cleaning operation module is executed, specifically for performing a cleaning operation on the reference block;
[0035] The cleaning work execution module is specifically used to perform cleaning work on other cleanable areas except the reference block based on the reference block and through a preset planning method.
[0036] In a possible implementation, the cleaning operation module is further configured to divide other cleanable areas except the reference block into blocks based on the reference block;
[0037] The cleaning work execution module is specifically used to execute the cleaning work according to the divided blocks.
[0038] In a possible implementation, the device further includes: a detection module;
[0039] A detection module, used to detect obstacles and / or clean restricted areas in real time when performing cleaning work;
[0040] The cleaning work execution module is also used to perform cleaning work along the obstacle and / or the cleaning restricted area when the detection module detects an obstacle and / or the cleaning restricted area.
[0041] In a possible implementation manner, the device further includes: at least one of a second determining module, a detection module, and a third determining module, wherein:
[0042] A second determination module is used to determine obstacle information and / or clearing restricted area information in a preset area based on a layout diagram of the current environment to determine current environment information;
[0043] A detection module is used to detect obstacle information and / or clear restricted area information in a preset area to determine the current environment information;
[0044] The third determination module is used to determine obstacle information and / or cleaning restricted area information in a preset area based on historical detection information of the sweeping robot to determine current environmental information.
[0045] In a third aspect, an electronic device is provided, the electronic device comprising:
[0046] one or more processors;
[0047] Memory;
[0048] One or more applications, wherein the one or more applications are stored in a memory and configured to be executed by one or more processors, and the one or more programs are configured to: execute the method for the cleaning robot to perform cleaning work according to the first aspect.
[0049] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, the method for the sweeping robot to perform cleaning work as shown in the first aspect is implemented.
[0050] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0051] The present application provides a method, device and electronic device for a sweeping robot to perform cleaning work. The present application determines a reference block for performing cleaning work based on current environmental information, and then performs cleaning work based on the reference block. That is, when the sweeping robot of the present application performs cleaning work, it first determines a reference module for performing cleaning work based on current environmental information, and performs normal cleaning work based on the module, so that the sweeping robot can perform cleaning work. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0053] Figure 1 A schematic flow chart of a method for a sweeping robot to perform cleaning work provided in an embodiment of the present application;
[0054] Figure 2 A schematic diagram of the structure of a cleaning robot for performing cleaning work provided in an embodiment of the present application;
[0055] Figure 3 A schematic diagram of the structure of another device for performing cleaning work by a sweeping robot provided in an embodiment of the present application;
[0056] Figure 4 A schematic diagram of the structure of an electronic device for a sweeping robot to perform cleaning work provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present invention.
[0058] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0059] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0060] At present, when performing cleaning work, the sweeping robot uses the current startup position as the reference point and gradually expands outward to perform cleaning work on the cleaning area. This method may cause the block to be divided into multiple parts by obstacles and / or cleaning restricted areas.
[0061] The method, device and electronic device for performing cleaning work by a sweeping robot provided in the present application are intended to solve the above technical problems of the prior art.
[0062] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0063] The present application embodiment provides a method for a sweeping robot to perform a cleaning task, such as Figure 1 As shown, the method includes:
[0064] Step S101: Determine a reference block for performing cleaning work based on current environmental information.
[0065] For the embodiment of the present application, before step S101, the process further includes: determining the environmental information of the current area to be cleaned. In the embodiment of the present application, the environmental information of the current area to be cleaned includes: obstacle information and / or cleaning restricted area information.
[0066] According to the embodiment of the present application, based on the environmental information (obstacle information and / or cleaning restricted area information) of the current area to be cleaned, a reference block is determined from the current area to be cleaned.
[0067] Step S102: Perform cleaning based on the reference block.
[0068] For the embodiment of the present application, after determining the reference block, the cleaning work is first performed on the reference block, and then the cleanable area outside the reference block is cleaned in a manner of expanding outwards based on the reference block until it is detected that there is no cleanable area; the reference block and the cleanable route outside the reference block can also be planned, and the cleaning work is performed according to the planned route; the cleaning work can also be performed in the manner of step S1021-step S1022. This is not limited in the embodiment of the present application.
[0069] The embodiment of the present application provides a method for a sweeping robot to perform cleaning work. The embodiment of the present application determines a reference block for performing cleaning work based on current environmental information, and then performs cleaning work based on the reference block. That is, when the sweeping robot of the embodiment of the present application performs cleaning work, it first determines a reference module for performing cleaning work based on current environmental information, and performs normal cleaning work based on the module, so that the sweeping robot can perform cleaning work.
[0070] In another possible implementation of the embodiment of the present application, step S101 may include step S1011 (not shown in the figure) and step S1012 (not shown in the figure), wherein:
[0071] Step S1011: Determine the edge of obstacles in a preset area and / or the edge of a cleaning restricted area.
[0072] The preset area is a quadrilateral area centered on the current position of the sweeping robot, and the cleaning restricted area is an area where the sweeping robot is prohibited from performing cleaning work.
[0073] For example, the preset area is a 4*4 quadrilateral area centered on the position where the sweeping robot is turned on.
[0074] For the embodiments of the present application, step S1011 may include: determining the edge of obstacles and / or the edge of cleaning restricted areas within a preset area based on obstacle information and / or cleaning restricted area information marked in the environmental map; and / or, detecting the edge of obstacles and / or the edge of cleaning restricted areas within a preset area based on the detection logic executed by the sweeping robot.
[0075] Step S1012: Determine a reference block for performing cleaning work based on the edge of obstacles and / or the edge of the cleaning restricted area in the preset area.
[0076] In another possible implementation of the embodiment of the present application, step S1012 may include step S1012a (not shown in the figure) and step S1012b (not shown in the figure), wherein:
[0077] Step S1012a: Determine the longest horizontal side and the longest vertical side from the edges of obstacles in the preset area and / or the edges of the cleaning restricted area.
[0078] Step S1012b: determine a quadrilateral consisting of the longest horizontal side and the longest vertical side as a reference block for performing cleaning work.
[0079] For the embodiment of the present application, after determining the reference block for performing the cleaning work, the reference block for performing the cleaning work can be marked in the environment map.
[0080] For the embodiment of the present application, by determining the longest horizontal side and the longest vertical side from the edge of the obstacle in the preset area and / or the edge of the cleaning restricted area, the reference block for performing the cleaning work is determined to be a quadrilateral composed of the longest horizontal side and the longest vertical side, so that the division of the initial blocks can be more reasonable, and then the overall blocks can be made more reasonable, thereby improving the cleaning efficiency.
[0081] In another possible implementation of the embodiment of the present application, step S102 may include step S1021 (not shown in the figure) and step S1022 (not shown in the figure), wherein:
[0082] Step S1021, performing cleaning operation on the reference block.
[0083] For the embodiment of the present application, after the reference block is determined, according to the normal cleaning logic, the cleaning operation is first performed on the reference block, and then the cleaning work is performed on other areas except the reference block.
[0084] Step S1022: Taking the reference block as a reference and using a preset planning method, performing cleaning work on other cleanable areas except the reference block.
[0085] For the embodiment of the present application, before performing the cleaning work on the cleanable area except the reference block, a route is planned for the cleanable area except the reference block, and the cleaning work is performed according to the planned route; or the cleaning work can be performed on the cleanable area except the reference block according to steps S1022a-S1022b. This is not limited in the embodiment of the present application.
[0086] In another possible implementation of the embodiment of the present application, step S1022 may specifically include step S1022a (not shown in the figure) and step S1022b (not shown in the figure), wherein:
[0087] Step S1022a: Based on the reference block, other cleanable areas outside the reference block are divided into blocks.
[0088] Step S1022b: perform cleaning work according to the divided blocks.
[0089] According to the embodiment of the present application, the cleanable area outside the reference block is divided into blocks, and then the cleaning work is performed on the divided blocks according to the planning information.
[0090] In another possible implementation of the embodiment of the present application, the method may further include step Sa (not shown in the figure) and step Sb (not shown in the figure), wherein performing the cleaning work includes step Sa and step Sb, wherein:
[0091] Step Sa: When performing cleaning work, detect obstacles and / or clean restricted areas in real time.
[0092] According to the embodiment of the present application, when performing cleaning work on the reference block and when performing cleaning work on other cleanable areas except the reference block, obstacles and / or cleaning restricted areas can be detected in real time.
[0093] Step Sb: When an obstacle and / or a restricted area is detected, cleaning work is performed along the obstacle and / or the restricted area.
[0094] For the embodiment of the present application, when performing cleaning work, when an obstacle is detected, the cleaning work can be performed along the obstacle. In the embodiment of the present application, when performing cleaning work, when a cleaning restricted area is detected, based on the direction mark corresponding to the cleaning restricted area, the cleaning work is performed around the cleaning restricted area.
[0095] In another possible implementation of the embodiment of the present application, the process before step S101 may include: at least one of step Sc (not shown in the figure), step Sd (not shown in the figure), and step Se (not shown in the figure), wherein:
[0096] Step Sc, based on the layout diagram of the current environment, determine the obstacle information and / or clearing restricted area information within the preset area to determine the current environment information.
[0097] Step Sd: Based on the historical detection information of the sweeping robot, determine the obstacle information and / or the cleaning restricted area information in the preset area to determine the current environment information.
[0098] For the embodiments of the present application, obstacle information and / or cleaning restricted area information within a preset area is determined based on the layout diagram of the current environment, and / or obstacle information and / or cleaning restricted area information within a preset area is determined based on the historical detection information of the sweeping robot. There is no need to go through the detection logic to detect elements and obstacle information and / or cleaning restricted area information within the area, thereby increasing the speed of determining the current environmental information and further improving the user experience.
[0099] Step Se, detecting obstacle information in a preset area and / or clearing restricted area information to determine current environmental information.
[0100] For the embodiments of the present application, the current environmental information is determined by detecting obstacle information and / or cleaning restricted area information within a preset area. That is, since new obstacles and / or cleaning restricted area information may exist within the preset area, the current environmental information is determined by re-detecting the obstacle information and / or cleaning restricted area information within the preset area. This can improve the accuracy of determining the current environmental information, and further improve the accuracy of the initial block division, thereby improving the cleaning efficiency.
[0101] The embodiment of the present application provides a device for a sweeping robot to perform cleaning work, such as Figure 2 As shown, the device 20 for performing cleaning work by the sweeping robot of this embodiment may include: a first determining module 21 and a cleaning work performing module 22, wherein:
[0102] The first determination module 21 is used to determine a reference block for performing cleaning work based on current environmental information.
[0103] The cleaning operation executing module 22 is used to execute the cleaning operation based on the reference block determined by the first determining module 21 .
[0104] The embodiment of the present application provides a device for a sweeping robot to perform cleaning work. The present application determines a reference block for performing cleaning work based on current environmental information, and then performs cleaning work based on the reference block. That is, when the sweeping robot of the embodiment of the present application performs cleaning work, it first determines a reference module for performing cleaning work based on current environmental information, and performs normal cleaning work based on the module, so that the sweeping robot can perform cleaning work.
[0105] The device for performing cleaning work by the sweeping robot of this embodiment can execute a method for performing cleaning work by the sweeping robot provided in the above embodiment, and its implementation principle is similar and will not be repeated here.
[0106] Another device for performing cleaning work by a sweeping robot provided in an embodiment of the present application is as follows: Figure 3 As shown, the device for performing cleaning work by the sweeping robot of this embodiment may include: a first determining module 31 and a cleaning work executing module 32, wherein:
[0107] The first determination module 31 is used to determine a reference block for performing cleaning work based on current environmental information.
[0108] in, Figure 3 The first determination module 31 in Figure 2 The function of the first determination module 21 is the same or similar.
[0109] The cleaning operation executing module 32 is used to execute the cleaning operation based on the reference block determined by the first determining module 31 .
[0110] in, Figure 3 The cleaning module 32 and Figure 2 The function of the cleaning work module 22 is the same or similar.
[0111] Specifically, the first determination module 31 is specifically used to determine the edge of the obstacle in the preset area and / or the edge of the cleaning restricted area.
[0112] The preset area is a quadrilateral area centered on the current position of the sweeping robot, and the cleaning restricted area is an area where the sweeping robot is prohibited from performing cleaning work.
[0113] The first determination module 31 is further configured to determine a reference area for performing cleaning work based on the edge of obstacles and / or the edge of a cleaning restricted area in a preset area.
[0114] Specifically, the first determination module 31 is further configured to determine the longest horizontal side and the longest vertical side from the edge of the obstacle in the preset area and / or the edge of the cleaning restricted area.
[0115] The first determining module 31 is further configured to determine a quadrilateral consisting of the longest horizontal side and the longest vertical side as a reference block for performing cleaning work.
[0116] For the embodiment of the present application, by determining the longest horizontal side and the longest vertical side from the edge of the obstacle in the preset area and / or the edge of the cleaning restricted area, the reference block for performing the cleaning work is determined to be a quadrilateral composed of the longest horizontal side and the longest vertical side, so that the division of the initial blocks can be more reasonable, and then the overall blocks can be made more reasonable, thereby improving the cleaning efficiency.
[0117] Specifically, the cleaning module 32 is used to perform a cleaning operation on the reference block.
[0118] The cleaning work execution module 32 is specifically used to perform cleaning work on other cleanable areas except the reference block based on the reference block and through a preset planning method.
[0119] Specifically, the cleaning module 32 is used to divide the cleanable areas other than the reference block into blocks based on the reference block.
[0120] The cleaning work execution module 32 is specifically used to execute the cleaning work according to the divided blocks.
[0121] Furthermore, if Figure 3 As shown, the device 30 also includes: a detection module 33, wherein:
[0122] The detection module 33 is used to detect obstacles and / or clean restricted areas in real time when performing cleaning work.
[0123] The cleaning work execution module 32 is also used to perform cleaning work along the obstacle and / or the cleaning restricted area when the detection module 33 detects an obstacle and / or a cleaning restricted area.
[0124] Furthermore, if Figure 3 As shown, the device 30 further includes: at least one of a second determination module 34, a detection module 35 and a third determination module 36, wherein:
[0125] The second determination module 34 is used to determine obstacle information and / or clearing restricted area information within a preset area based on the layout diagram of the current environment to determine the current environment information.
[0126] The third determination module 36 is used to determine obstacle information and / or cleaning restricted area information in a preset area based on historical detection information of the cleaning robot, so as to determine current environmental information.
[0127] In the embodiment of the present application, the first determination module 31, the second determination module 34 and the third determination module 36 may be the same determination module, or may be different determination modules, or two of them may be the same determination module, which is not limited in the embodiment of the present application. Figure 3 The first determining module 31, the second determining module 34 and the third determining module 36 are different determining modules, but are not limited to Figure 3 This way.
[0128] For the embodiment of the present application, the device 30 includes: a second determination module 34, a detection module 35 and a third determination module 36. Figure 3 , but not limited to Figure 3 Way of display.
[0129] For the embodiments of the present application, obstacle information and / or cleaning restricted area information within a preset area is determined based on the layout diagram of the current environment, and / or obstacle information and / or cleaning restricted area information within a preset area is determined based on the historical detection information of the sweeping robot. There is no need to go through the detection logic to detect elements and obstacle information and / or cleaning restricted area information within the area, thereby increasing the speed of determining the current environmental information and further improving the user experience.
[0130] The detection module 35 is used to detect obstacle information and / or clear restricted area information in a preset area to determine the current environment information.
[0131] For the embodiments of the present application, the current environmental information is determined by detecting obstacle information and / or cleaning restricted area information within a preset area. That is, since new obstacles and / or cleaning restricted area information may exist within the preset area, the current environmental information is determined by re-detecting the obstacle information and / or cleaning restricted area information within the preset area. This can improve the accuracy of determining the current environmental information, and further improve the accuracy of the initial block division, thereby improving the cleaning efficiency.
[0132] The embodiment of the present application provides a device for a sweeping robot to perform cleaning work. The present application determines a reference block for performing cleaning work based on current environmental information, and then performs cleaning work based on the reference block. That is, when the sweeping robot of the embodiment of the present application performs cleaning work, it first determines a reference module for performing cleaning work based on current environmental information, and performs normal cleaning work based on the module, so that the sweeping robot can perform cleaning work.
[0133] The device for performing cleaning work by the sweeping robot of this embodiment can execute the method for performing cleaning work by the sweeping robot shown in the above embodiment, and the implementation principle is similar, which will not be repeated here.
[0134] The present application embodiment provides an electronic device, such as Figure 4 As shown, Figure 4The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0135] The processor 4001 is used in the embodiment of the present application to implement Figure 2 or Figure 3 The first determining module and the function of the cleaning module shown in the figure and / or Figure 3 At least one of the second determination module, the detection module and the third determination module shown and the detection module. The transceiver 4004 includes a receiver and a transmitter. The transceiver 4004 is applied in the embodiment of the present application to exchange information with other electronic devices.
[0136] Processor 4001 may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0137] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI bus or an EISA bus, etc. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0138] Memory 4003 can be ROM or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.
[0139] The memory 4003 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement Figure 2 or Figure 3 The illustrated embodiment shows the actions of the cleaning robot in performing cleaning operations.
[0140] The embodiment of the present application provides an electronic device, which determines a reference block for performing cleaning work based on current environmental information, and then performs cleaning work based on the reference block. That is, when the cleaning robot of the embodiment of the present application performs cleaning work, it first determines a reference module for performing cleaning work based on current environmental information, and performs normal cleaning work based on the module, so that the cleaning robot can perform cleaning work.
[0141] The present application embodiment provides an electronic device applicable to any embodiment of the above method, which will not be described in detail here.
[0142] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for the sweeping robot to perform cleaning work as shown in the above method embodiment is implemented.
[0143] The embodiment of the present application provides a computer-readable storage medium, and the present application determines a reference block for performing cleaning work based on current environmental information, and then performs cleaning work based on the reference block. That is, when the cleaning robot of the embodiment of the present application performs cleaning work, it first determines a reference module for performing cleaning work based on current environmental information, and performs normal cleaning work based on the module, so that the cleaning robot can perform cleaning work.
[0144] The present application embodiment provides a computer-readable storage medium applicable to any embodiment of the above method, which will not be described in detail here.
[0145] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0146] The above descriptions are only some embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for a sweeping robot to perform cleaning work, characterized in that: include: Based on the current environmental information, determine the benchmark block for performing cleaning work; Based on the benchmark block, perform cleaning work; The step of determining the reference block for performing cleaning work based on the current environmental information includes: Determine the edge of obstacles and / or the edge of a cleaning restricted area within a preset area, wherein the preset area is a quadrilateral area centered on the current position of the cleaning robot, and the cleaning restricted area is an area where the cleaning robot is prohibited from performing cleaning work; Based on the edge of obstacles and / or the edge of the cleaning restricted area in the preset area, a reference block for performing cleaning work is determined; The step of determining a reference block for performing cleaning work based on the edge of an obstacle in a preset area and / or the edge of a cleaning restricted area includes: Determine the longest horizontal side and the longest vertical side from the edge of the obstacle in the preset area and / or the edge of the cleaning restricted area; A quadrilateral consisting of the longest horizontal side and the longest vertical side is determined as a reference block for performing cleaning work.
2. The method according to claim 1, characterized in that Based on the benchmark block, perform cleaning work, including: Performing cleaning work on the reference block; Taking the reference block as a reference and in a preset planning manner, cleaning work is performed on other cleanable areas except the reference block.
3. The method according to claim 2, characterized in that Taking the reference block as a reference and using a preset planning method, performing cleaning work on other cleanable areas other than the reference block, including: Taking the reference block as a reference, dividing other cleanable areas except the reference block into blocks; Carry out cleaning work according to the divided blocks.
4. The method according to claim 2 or 3, characterized in that: The method further comprises: When performing cleaning work, detect obstacles and / or clean restricted areas in real time; When an obstacle and / or a cleaning restricted area is detected, a cleaning operation is performed along the obstacle and / or the cleaning restricted area.
5. The method according to claim 1, characterized in that Based on the current environmental information, a reference block for performing cleaning work is determined, which includes at least one of the following: Based on the layout diagram of the current environment, determine the obstacle information and / or clear the restricted area information in the preset area to determine the current environment information; Detecting obstacle information and / or clearing restricted area information within the preset area to determine current environmental information; Based on the historical detection information of the cleaning robot, the obstacle information and / or the cleaning restricted area information in the preset area is determined to determine the current environment information.
6. A device for a sweeping robot to perform cleaning work, characterized in that: include: A first determination module is used to determine a reference block for performing cleaning work based on current environmental information; A cleaning operation execution module, configured to execute a cleaning operation based on the reference block determined by the first determining module; The first determination module is specifically used to determine the edge of obstacles and / or the edge of a cleaning restricted area in a preset area, wherein the preset area is a quadrilateral area centered on the current position of the cleaning robot, and the cleaning restricted area is an area where the cleaning robot is prohibited from performing cleaning work; The first determination module is further configured to determine a reference area for performing cleaning work based on the edge of an obstacle and / or the edge of a cleaning restricted area in a preset area; The first determination module is further specifically used to determine the longest horizontal side and the longest vertical side from the edge of the obstacle in the preset area and / or the edge of the cleaning restricted area; The first determination module is further specifically used to determine a quadrilateral consisting of the longest horizontal side and the longest vertical side as a reference block for performing cleaning work.
7. The device according to any one of claim 6, characterized in that: The cleaning operation execution module is specifically used to execute the cleaning operation on the reference block; The cleaning execution module is specifically used to perform cleaning work on other cleanable areas except the reference block based on the reference block and through a preset planning method.
8. The device according to claim 7, characterized in that The cleaning execution module is further configured to divide other cleanable areas except the reference block into blocks based on the reference block; The cleaning work execution module is specifically used to execute the cleaning work according to the divided blocks.
9. The device according to claim 7 or 8, characterized in that The device also includes: a detection module; The detection module is used to detect obstacles and / or clean restricted areas in real time when performing cleaning work; The cleaning work execution module is also used to perform cleaning work along the obstacle and / or the cleaning restricted area when the detection module detects an obstacle and / or the cleaning restricted area.
10. The device according to claim 9, characterized in that The device further includes: at least one of a second determination module, a detection module, and a third determination module, wherein: The second determination module is used to determine obstacle information and / or clearing restricted area information in a preset area based on a layout diagram of the current environment to determine the current environment information; The detection module is used to detect obstacle information and / or clear restricted area information in the preset area to determine current environment information; The third determination module is used to determine the obstacle information and / or the cleaning restricted area information in the preset area based on the historical detection information of the cleaning robot, so as to determine the current environment information.
11. An electronic device, characterized in that: It includes: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs are configured to: execute the method for performing cleaning work by the sweeping robot according to any one of claims 1 to 5.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for the sweeping robot to perform cleaning work as described in any one of claims 1 to 5 is implemented.
Citation Information
Cited By
Target following cleaning method of sweeping robot based on visual tracking and radar ranging
CN119745279A
Target following cleaning method for sweeping robot based on visual tracking and radar ranging
CN119745279B
