Control method of cleaning equipment and cleaning equipment

By using the robotic arm gripping device and environmental sensing technology of the cleaning equipment, the automatic identification and replacement of cleaning accessories can be achieved, solving the problem that existing cleaning equipment cannot adapt to the cleaning needs of changing environments, and improving cleaning efficiency and effectiveness.

CN121667585APending Publication Date: 2026-03-17DREAM INNOVATION TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-30
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Existing cleaning equipment, such as robotic vacuum cleaners, lacks dedicated cleaning accessories and control logic for detecting, identifying, grasping, and replacing cleaning accessories. This results in the inability to meet the cleaning needs of changing environments, affecting cleaning efficiency and effectiveness.

Method used

A control method for cleaning equipment is provided, which identifies and replaces cleaning accessories by means of a robotic arm gripping device. By combining environmental perception data and visual models, the automatic identification and replacement of cleaning accessories is achieved, ensuring the detection of cleaning accessories in preset storage locations and generating adaptive cleaning strategies.

Benefits of technology

It improves the success rate of cleaning accessory replacement, enhances the cleaning efficiency and cleanliness of cleaning equipment, and strengthens its adaptability to complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121667585A_ABST
    Figure CN121667585A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a control method of cleaning equipment and the cleaning equipment, and relates to the technical field of intelligent control. The cleaning equipment comprises a grabbing device, the grabbing device comprises a mechanical arm, the mechanical arm is used for executing the grabbing action, and the method comprises the steps that a cleaning accessory replacement instruction is responded, and the cleaning accessory replacement instruction is used for instructing the cleaning equipment to replace cleaning accessories; determining whether a to-be-replaced cleaning accessory corresponding to the cleaning accessory replacement instruction is in a preset storage position in an accessory bin or not, wherein the accessory bin is used for storing the cleaning accessory; and if it is determined that the to-be-replaced cleaning accessory is located at the preset storage position, the mechanical arm is controlled to grab the to-be-replaced cleaning accessory, and the cleaning task is executed. Based on the method, whether the cleaning accessory to be replaced is in the preset storage position or not can be effectively detected when the cleaning accessory of the cleaning equipment needs to be replaced, cleaning accessory replacement is achieved, and the success rate of cleaning accessory replacement is increased.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of intelligent control, and in particular to a control method of a cleaning device and the cleaning device. BACKGROUND

[0002] With the rapid development of smart home technology, cleaning devices such as sweeping robots, intelligent vacuum cleaners, etc. have been widely used in homes, office places and industrial scenes, and have become an important tool to improve the quality of life and work efficiency.

[0003] In a complex and changeable cleaning environment, users have higher requirements for the intelligent level of cleaning devices. Not only do cleaning devices need to have basic autonomous navigation, obstacle avoidance and cleaning functions, but they are also expected to dynamically adapt to the needs of different cleaning tasks. For example, deep cleaning of special areas such as ground gaps, high places (such as desktops, cabinet doors) or narrow corners (such as corners, furniture gaps).

[0004] Taking a sweeping robot as an example, the existing sweeping robot does not design a dedicated cleaning accessory, and can only rely on the dust collector at the bottom of the sweeping robot body to clean the ground. The cleaning accessory here includes, for example, a brush, a portable dust collector, a dust collection pipe, etc.

[0005] Since there is no cleaning accessory provided for the cleaning device in the prior art, there will be no series of control logic and algorithms for detecting, identifying, grabbing, using and replacing the cleaning accessory. When the cleaning device performs a cleaning task, it may need to replace the cleaning accessory due to the need of the cleaning task or damage to the cleaning accessory. However, the existing cleaning device is difficult to implement cleaning accessory replacement, which may affect the execution of the cleaning task. SUMMARY

[0006] The embodiments of the present application provide a control method of a cleaning device and the cleaning device, which are used to control the cleaning device to determine whether a cleaning accessory to be replaced is at a preset storage position, thereby improving the success rate of replacing the cleaning accessory.

[0007] In a first aspect, the embodiments of the present application provide a control method of a cleaning device, the cleaning device comprising a grabbing device, the grabbing device comprising a mechanical arm, the mechanical arm being used to perform a grabbing action, the method comprising: in response to a cleaning accessory replacement instruction, the cleaning accessory replacement instruction being used to instruct the cleaning device to replace a cleaning accessory; determining whether a cleaning accessory to be replaced corresponding to the cleaning accessory replacement instruction is at a preset storage position in an accessory bin, the accessory bin being used to store the cleaning accessory; if it is determined that the cleaning accessory to be replaced is at the preset storage position, controlling the mechanical arm to grab the cleaning accessory to be replaced, and performing a cleaning task.

[0008] In a possible implementation, the method further includes: controlling the robot arm to place the to-be-replaced cleaning accessory into the accessory warehouse; and controlling the robot arm to grasp the to-be-replaced cleaning accessory after determining that the to-be-replaced cleaning accessory has been placed into the accessory warehouse.

[0009] In a possible implementation, the method further includes: identifying the accessory unique identifier of the at least one cleaning accessory in the accessory warehouse, and determining whether the to-be-replaced cleaning accessory is in the preset storage position according to the accessory unique identifier of the at least one cleaning accessory; and / or scanning, by a near field communication card reader arranged on the cleaning device, a near field communication tag arranged on the at least one cleaning accessory in the accessory warehouse, and determining whether the to-be-replaced cleaning accessory is in the preset storage position according to a data interaction identification result of the near field communication card reader and the near field communication tag.

[0010] In a possible implementation, the method further includes: if it is determined that the to-be-replaced cleaning accessory is not in the preset storage position, controlling the robot arm to identify and grasp the to-be-replaced cleaning accessory outside the accessory warehouse, or controlling the robot arm to grasp a cleaning tool in an environment in which the cleaning device is located to perform a cleaning task, the cleaning tool being a tool used to assist cleaning.

[0011] In a possible implementation, before responding to the cleaning accessory replacement instruction, the method further includes: controlling the cleaning device to perform a cleaning task, and collecting environment perception data of an environment in which the cleaning device is located during the performance; identifying, by a visual model, an obstacle in the environment based on the environment perception data, the obstacle including a cleaning tool, the cleaning tool being a tool used to assist cleaning.

[0012] In a possible implementation, the method further includes: constructing an environment map corresponding to the environment based on the environment perception data; in a case where any obstacle is identified by the visual model, identifying whether the any obstacle is a tool used to assist cleaning; if so, marking the any obstacle as the cleaning tool in the environment map, and marking semantic and position information of the cleaning tool.

[0013] In a possible implementation, the method further includes: if it is determined that the to-be-replaced cleaning accessory is not in the preset storage position, controlling the robot arm to obtain a target cleaning tool outside the accessory warehouse, the target cleaning tool being a cleaning tool that meets a cleaning task requirement of the cleaning task; grasping, by the robot arm, the target cleaning tool, and performing the cleaning task.

[0014] In a possible implementation, before responding to the cleaning accessory replacement instruction, the method further includes: controlling the cleaning device to perform a cleaning task, and identifying whether a cleaning dead angle area exists during the performance; and in a case where the cleaning dead angle area exists and the cleaning accessory currently gripped by the mechanical arm does not meet the requirement of cleaning the cleaning dead angle area, generating the cleaning accessory replacement instruction.

[0015] In a possible implementation, before responding to the cleaning accessory replacement instruction, the method further includes: determining whether a current cleaning setting includes a mechanical arm assisted cleaning mode, the mechanical arm assisted cleaning mode being used to indicate that the cleaning device is allowed to perform a grabbing action through the mechanical arm during the performance of the cleaning task; and in a case where it is determined that the current cleaning setting includes the mechanical arm assisted cleaning mode, setting the cleaning device to allow the grabbing action through the mechanical arm during the performance of the cleaning task.

[0016] In a second aspect, an embodiment of the present application provides a control device of a cleaning device, the cleaning device including a grabbing device, the grabbing device including a mechanical arm, the mechanical arm being used to perform a grabbing action, and the control device including: a responding module, configured to respond to a cleaning accessory replacement instruction, the cleaning accessory replacement instruction being used to instruct the cleaning device to replace a cleaning accessory; a determining module, configured to determine whether a to-be-replaced cleaning accessory corresponding to the cleaning accessory replacement instruction is at a preset storage position in an accessory warehouse, the accessory warehouse being used to store the cleaning accessory; and a control module, configured to control the mechanical arm to grip the to-be-replaced cleaning accessory and perform a cleaning task if it is determined that the to-be-replaced cleaning accessory is at the preset storage position.

[0017] In a possible implementation, the control module is specifically configured to: control the mechanical arm to place a to-be-placed-back cleaning accessory currently gripped by the mechanical arm into the accessory warehouse; and control the mechanical arm to grip the to-be-replaced cleaning accessory after it is determined that the to-be-placed-back cleaning accessory has been placed into the accessory warehouse.

[0018] In a possible implementation, the determining module is specifically configured to: identify a unique accessory identifier of at least one cleaning accessory in the accessory warehouse, and determine whether the to-be-replaced cleaning accessory is at the preset storage position according to the unique accessory identifier of the at least one cleaning accessory; and / or scan a near field communication tag arranged on at least one cleaning accessory in the accessory warehouse through a near field communication reader arranged on the cleaning device, and determine whether the to-be-replaced cleaning accessory is at the preset storage position according to a data interaction identification result of the near field communication reader and the near field communication tag.

[0019] In a possible implementation, the control module is further configured to: control the mechanical arm to identify and grip the to-be-replaced cleaning accessory outside the accessory warehouse, or control the mechanical arm to grip a cleaning tool in an environment where the cleaning device is located to perform a cleaning task, the cleaning tool being a tool used for assisting cleaning, if it is determined that the to-be-replaced cleaning accessory is not at the preset storage position.

[0020] In one possible implementation, the control device further includes an identification module for: controlling the cleaning equipment to perform cleaning tasks and collecting environmental perception data of the cleaning equipment's surrounding environment during the execution process; and identifying obstacles in the environment, including cleaning tools, through a visual model based on the environmental perception data.

[0021] In one possible implementation, the identification module is further configured to: construct an environmental map corresponding to the environment based on environmental perception data; identify whether any obstacle is a tool used to assist in cleaning when any obstacle is identified through the visual model; if so, mark any obstacle as a cleaning tool in the environmental map and label the semantic and location information of the cleaning tool.

[0022] In one possible implementation, the control module is further configured to: if it is determined that the cleaning accessory to be replaced is not in the preset storage location, control the robotic arm to obtain the target cleaning tool outside the accessory compartment, the target cleaning tool being a cleaning tool that meets the cleaning task requirements; and use the robotic arm to grasp the target cleaning tool and perform the cleaning task.

[0023] In one possible implementation, the identification module is further configured to: control the cleaning equipment to perform cleaning tasks and identify whether there are cleaning dead zones during the execution process; if there are cleaning dead zones and the cleaning accessory currently held by the robotic arm does not meet the requirements for cleaning the cleaning dead zones, generate a cleaning accessory replacement instruction.

[0024] In one possible implementation, the control device further includes a setting module for: determining whether the current cleaning settings include a robotic arm-assisted cleaning mode, the robotic arm-assisted cleaning mode being used to indicate that the cleaning device is allowed to perform a grasping action via the robotic arm; and, if it is determined that the current cleaning settings include a robotic arm-assisted cleaning mode, setting the cleaning device to allow the robotic arm to perform a grasping action during the execution of a cleaning task.

[0025] Thirdly, embodiments of this application provide a cleaning device, which includes a robotic arm for performing grasping actions, and the cleaning device is used to implement the first aspect and / or various possible implementations of the first aspect.

[0026] Fourthly, embodiments of this application provide an electronic device, including: a memory and a processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0027] Fifthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0028] Sixthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0029] The control method and cleaning equipment provided in this application embodiment respond to a cleaning accessory replacement command and determine whether the cleaning accessory to be replaced corresponding to the replacement command is in a preset storage location in the accessory compartment. This allows for a pre-detection check of the accessory's location before performing the replacement action, reducing the probability of incorrectly grabbing other cleaning accessories that do not correspond to the replacement command. If the cleaning accessory to be replaced is determined to be in the preset storage location, a robotic arm is controlled to grab the accessory and perform the cleaning task. This ensures that cleaning work can begin only after the correct cleaning accessory has been confirmed and grabbed, facilitating faster and better completion of the cleaning task and improving cleaning efficiency and cleanliness. Therefore, this method can improve the success rate of cleaning accessory replacement and contribute to improved cleaning efficiency and cleanliness. Attached Figure Description

[0030] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0031] Figure 1 A flowchart illustrating the control method for the cleaning equipment provided in this application embodiment;

[0032] Figure 2 This is a schematic diagram of the control system of the cleaning equipment provided in the embodiments of this application;

[0033] Figure 3 This is a schematic diagram of the control logic of the cleaning equipment provided in the embodiments of this application;

[0034] Figure 4 This is a schematic diagram of the structure of the control device for the cleaning equipment provided in the embodiments of this application;

[0035] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0036] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0037] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0038] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of the relevant data all comply with the relevant laws, regulations, and standards of the relevant countries and regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation access points for users to choose to authorize or refuse.

[0039] Furthermore, the technical solution involved in this application, which involves big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.) and the use of artificial intelligence technology for automated decision-making, and makes decisions that have a significant impact on personal rights based on the results of automated decision-making, provides users with corresponding operation entry points for users to choose to agree to or reject the results of automated decision-making; if the user chooses to reject, the process will proceed to the expert decision-making process.

[0040] In this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0041] In the embodiments of this application, the use of terms such as "first" and "second" is to distinguish between identical or similar items that have essentially the same function and effect. For example, "first electronic device" and "second electronic device" are merely used to distinguish different electronic devices and do not limit their order of execution. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.

[0042] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following associated objects have an "or" relationship.

[0043] For example, existing intelligent cleaning devices such as robotic vacuum cleaners have many technical pain points. For instance, robotic vacuum cleaners cannot enter narrow spaces (such as the narrow gap between a sofa and a wall), making it difficult to effectively clean them using the vacuum cleaner at the bottom of the robot. Also, it is difficult to effectively clean non-floor areas (such as tabletops and cabinet doors) using the vacuum cleaner at the bottom.

[0044] For example, while some existing robotic vacuum cleaners are equipped with robotic arms, they don't fully utilize the advantages of these arms. For instance, they can only use the robotic arm to pick up small pieces of trash like crumpled paper and paper cups and dispose of them in the trash can, without considering using the robotic arm to grab cleaning accessories or tools for deep cleaning in narrow spaces, off-floor areas, corners, and other special areas. Therefore, existing cleaning equipment cannot perform comprehensive cleaning when controlled, resulting in lower cleaning effectiveness and efficiency.

[0045] The inventor conceived this idea while researching pain points in existing scenarios. If a robotic vacuum cleaner is delivered to the user equipped with specialized cleaning accessories, it can effectively clean hard-to-reach areas such as floor crevices, raised surfaces, or narrow corners, increasing cleaning coverage and capability, thereby improving cleanliness and efficiency. Furthermore, even without optional cleaning accessories, if the cleaning device can autonomously locate cleaning tools to clean specific areas during operation, it can also improve cleanliness and efficiency.

[0046] For example, when a robot vacuum cleaner recognizes a brush that the user has authorized to use in the environment, it can grab the brush with its robotic arm and clean the gaps between furniture or cabinet doors, increasing the cleaned area and improving cleanliness and efficiency.

[0047] Taking robotic vacuum cleaners as an example, since existing robotic vacuum cleaners are not equipped with cleaning accessories specifically for assisting cleaning, they do not have preset algorithmic logic for finding and using cleaning accessories. Therefore, there is no need or method for detecting whether the accessory compartment storing cleaning accessories is in a preset location, and consequently, there is no specific implementation for generating and executing cleaning strategies based on the on-site detection results of whether the accessory compartment is in a preset location.

[0048] In view of this, embodiments of this application provide a control method for cleaning equipment. This method collects the status and identity information of a parts compartment and detects whether the parts compartment is in a preset position based on this information to obtain an on-site detection result. Furthermore, a cleaning strategy can be generated based on the on-site detection result, and a cleaning task can be executed according to the strategy. Thus, by collecting and using the parts compartment status and identity information, highly reliable on-site detection of the parts compartment can be achieved. Furthermore, a cleaning strategy that assists the cleaning equipment in cleaning can be generated based on the on-site detection result, thereby improving the cleanliness and efficiency of the cleaning equipment when performing cleaning tasks.

[0049] The technical solutions of this application will be described in detail below with reference to specific embodiments. The specific embodiments described below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0050] This application provides a control method for a cleaning device. The subject executing this method can be an electronic device with corresponding data storage and computing capabilities. This electronic device can be understood as a cleaning device, such as a robotic vacuum cleaner; it can also be understood as a processor, processing unit, or control chip within the cleaning device.

[0051] The control method for cleaning equipment provided in this application includes: collecting the status and identity information of the accessory compartment, which is used to store cleaning accessories that assist the cleaning equipment in cleaning.

[0052] For example, cleaning equipment can be electronic devices used for cleaning and hygiene, such as robotic vacuum cleaners and robot vacuums. Cleaning accessories can be understood as devices that are used in conjunction with cleaning equipment to assist the cleaning equipment in cleaning and hygiene. For example, they can be special cleaning equipment designed and configured by the provider of the cleaning equipment, such as brushes, portable vacuum cleaners, vacuum hoses, and vacuum heads.

[0053] The accessory compartment can be understood as a storage device used to store cleaning accessories. For example, the accessory compartment is equipped with multiple slots, and each slot can be used to lock and fix a cleaning accessory for storage.

[0054] The accessory compartment status and identity information can be understood as multi-dimensional information used to characterize the physical state and identity of the accessory compartment, including but not limited to the accessory compartment's unique identifier and spatial pose. The unique identifier of the accessory compartment can be, for example, a QR code, serial number, predefined code, barcode, icon, and / or Near Field Communication (NFC) tag. A unique identifier can be understood as an identifier that is globally unique within the cleaning equipment. The spatial pose of the accessory compartment includes, for example, its spatial position coordinates and attitude parameters. These attitude parameters are, for example, rotation angles within a spatial coordinate system (X-axis, Y-axis, Z-axis), such as roll angle, yaw angle, and pitch angle.

[0055] When collecting the status and identification information of the parts compartment, the cleaning equipment can scan the QR code, serial number, custom code, and / or icon of the parts compartment using its vision device; it can also collect the spatial pose of the parts compartment within the cleaning equipment's coordinate system using its vision device or positioning device. The vision device includes, for example, a camera, a camera, and / or a scanner. The positioning device can include, for example, a positioning radar, a laser rangefinder, and / or a depth camera.

[0056] For example, an inertial measurement unit (IMU) sensor can also be installed in the parts compartment to determine the attitude parameters of the parts compartment itself. The cleaning equipment can read the attitude parameters of the parts compartment through data communication to obtain the status and identity information of the parts compartment.

[0057] The control method for cleaning equipment provided in this application embodiment further includes: detecting whether the parts compartment is in a preset position based on the parts compartment status identity information, and obtaining an in-situ detection result.

[0058] For example, a preset location can be understood as a standard installation location for the accessory compartment, which can be determined based on the device's mechanical structure or a physical space range defined by the user's configuration. For instance, the reserved area around the charging compartment of a robotic vacuum cleaner can be pre-defined using the robotic vacuum cleaner's map.

[0059] The presence detection result can be understood as a logical judgment result obtained after verifying or matching the status and identity information of the parts compartment. It can be used to indicate whether the parts compartment is in a preset location. For example, if the cleaning equipment matches the unique identifier of the parts compartment within the preset range, it means that the match is successful, and the presence detection result indicating that the parts compartment is in the preset location can be obtained, i.e., "in place"; if the cleaning equipment cannot match the unique identifier of the parts compartment within the preset range, it means that the match fails, and the presence detection result indicating that the parts compartment is not in the preset location can be obtained, i.e., "out of place" or "not in place".

[0060] The control method for cleaning equipment provided in this application embodiment further includes: generating a cleaning strategy based on in-situ detection results, and executing cleaning tasks according to the cleaning strategy.

[0061] For example, after obtaining the presence detection result, the cleaning equipment knows whether the accessory compartment is in place or not. If it is in place, the cleaning equipment can perform a comprehensive analysis based on the available cleaning accessories in the accessory compartment and the items that need to be cleaned, generate a cleaning strategy, and execute the cleaning task according to the cleaning strategy.

[0062] The cleaning strategy can be understood as a set of control instructions for the cleaning equipment generated based on in-situ detection results, used to guide the cleaning equipment to perform cleaning tasks. The cleaning strategy may include, for example, cleaning paths, suction power, and cleaning head rotation speed.

[0063] For example, when the accessory compartment is detected to be in place, a cleaning path planning instruction to call up the brush accessory can be generated; when the accessory compartment is detected to be out of place, a cleaning strategy to use the cleaning device itself for cleaning can be generated. Alternatively, when the accessory compartment is detected to be out of place, a visual model can be used to identify whether there are usable cleaning tools in the environment, and if cleaning tools are present, a cleaning path planning instruction based on the cleaning tools can be generated. Here, cleaning tools can be understood as tools other than cleaning accessories that can be used to assist in cleaning.

[0064] For example, firstly, the status and identity information of the parts warehouse is collected. This information can be obtained through multimodal sensors (such as vision devices and near-field communication card readers), including unique identifiers and spatial poses.

[0065] Secondly, by comparing the collected status and identity information of the parts compartment with preset detection standards for whether the parts compartment is in a preset location, a presence detection result (either in-situ or out-of-situ) can be obtained. For example, if the NFC tag of the parts compartment is read by the NFC reader in the cleaning equipment within the preset location, a presence detection result (in-situ) can be obtained; if the NFC tag of the parts compartment cannot be read by the NFC reader in the cleaning equipment within the preset location, an out-of-situ presence detection result (out-of-situ) can be obtained. As another example, by identifying the parts compartment and locating its spatial pose using a vision device and a positioning device, a presence detection result (in-situ) can be obtained when the spatial pose of the parts compartment matches a preset spatial pose; an out-of-situ presence detection result (out-of-situ) can be obtained when the spatial pose of the parts compartment does not match the preset spatial pose.

[0066] Finally, a cleaning strategy can be generated based on the on-site detection results. For example, if the equipment is in place, the cleaning accessory information in the accessory compartment is used to generate a cleaning path and cleaning parameters (such as travel speed, operating frequency, power, etc.); if the equipment is not in place, environmental sensing is triggered to identify whether there are available cleaning tools in the environment. The entire process described above can process and analyze sensor data through a preset algorithm to achieve real-time detection of the accessory compartment status and real-time generation of cleaning strategies, thus realizing closed-loop control of the cleaning equipment.

[0067] For example, most existing cleaning equipment does not have an accessory compartment, let alone a requirement to detect whether the accessory compartment is in place. However, the cleaning accessories in the accessory compartment are an important aid to improving the cleaning capabilities of the cleaning equipment. Therefore, the method of this application embodiment, based on detecting whether the accessory compartment is in a preset position, can provide a basis for expanding the cleaning capabilities of the cleaning equipment and can generate cleaning strategies that are more conducive to improving cleanliness and cleaning efficiency.

[0068] The control method for cleaning equipment provided in this application collects the status and identity information of the parts compartment and detects whether the parts compartment is in a preset position based on the status and identity information to obtain an on-site detection result. Furthermore, a cleaning strategy can be generated based on the on-site detection result, and a cleaning task can be executed according to the cleaning strategy. In this way, by collecting and using the status and identity information of the parts compartment, highly reliable on-site detection of the parts compartment can be achieved. Furthermore, a cleaning strategy that assists the cleaning equipment in cleaning can be generated based on the on-site detection result, thereby improving the cleanliness and efficiency of the cleaning equipment when performing cleaning tasks.

[0069] It should be noted that in some application scenarios, before the cleaning equipment performs in-situ testing of the parts compartment, the space environment may have already been cleaned globally or partially, or it may not have been cleaned globally or partially.

[0070] For example, when a robot vacuum starts a cleaning task, it first performs a general cleaning of the room. During cleaning, it marks some areas that cannot be thoroughly cleaned, such as furniture crevices, tabletops, or corners of interior walls. In this case, the robot vacuum can return to a preset position to detect the presence of the accessory compartment. If the accessory compartment is detected, it can generate an appropriate cleaning strategy based on the cleaning accessories in the compartment and the characteristics of the remaining area (e.g., narrow crevices are long and narrow, requiring a long-bristled brush) to thoroughly clean the remaining area.

[0071] In other application scenarios, the space environment has not been cleaned globally or locally before the cleaning equipment performs in-situ testing of the parts compartment.

[0072] For example, when a robot vacuum starts a cleaning task, it first checks if the accessory compartment is in place. If it does, it can select the last cleaning accessory used during the last cleaning to generate a cleaning strategy; or it can select the cleaning accessory with the highest historical usage frequency. Then, the robot vacuum begins cleaning the space, either globally or locally. Because the robot vacuum already has a cleaning accessory with it when it starts cleaning, when it encounters hard-to-clean areas that can be thoroughly cleaned with that accessory, such as crevices, tabletops, or corners, it can clean them directly without returning to the preset position for on-site detection and regenerating a cleaning strategy. This improves cleaning efficiency.

[0073] Of course, the description of using one cleaning accessory at a time in the various embodiments of this application is only for illustrative purposes and understanding. If the cleaning device has the ability to use multiple cleaning accessories simultaneously, a cleaning strategy can also be generated based on multiple cleaning accessories, and multiple cleaning accessories can be used simultaneously to perform cleaning tasks. This application does not limit this. For example, a robotic vacuum cleaner has multiple robotic arms that can simultaneously grasp multiple cleaning accessories. A cleaning strategy can be generated based on multiple cleaning accessories, and cleaning tasks can be performed based on these multiple cleaning accessories, which can greatly improve cleaning efficiency.

[0074] In one possible implementation, detecting whether a parts warehouse is in a preset location based on its status and identity information, and obtaining a presence detection result, includes: matching the parts warehouse status and identity information with a preset parts warehouse feature model, wherein the parts warehouse feature model is a model constructed based on features extracted when the parts warehouse is in the preset location; if the match is successful, obtaining a presence detection result for the parts warehouse being in the preset location; if the match fails, obtaining a presence detection result for the parts warehouse not being in the preset location.

[0075] For example, the preset accessory compartment feature model can be understood as a model constructed based on the features extracted from the accessory compartment in a preset location. For example, it includes a unique identifier feature of the preset location and / or a model with a spatial pose range, which can be used to match the accessory compartment's status and identity information. For example, the unique identifier feature of the preset location is the hash value of the QR code, and the spatial pose range is the spatial position coordinates (x±5cm, y±5cm, z±2cm) and the rotation angle (yaw angle ±10°).

[0076] Matching can be understood as comparing the status and identity information of the parts warehouse with a pre-defined parts warehouse feature model using rule-based matching or machine learning algorithms. For example, hash comparison can be used to verify unique identifiers, and thresholds can be used to determine whether the deviation of spatial pose is within an acceptable range. Matching can be combined with location information. For instance, matching within a pre-defined range of a pre-defined location using the parts warehouse feature model can improve the accuracy of in-situ detection.

[0077] For example, the collected status and identity information of the parts warehouse can be verified and matched against a preset feature model to determine whether the parts warehouse is in place. The verification and matching process can be divided into two branches: if the unique identifier (such as a QR code) matches the identifier features in the preset parts warehouse feature model, and the spatial pose (such as IMU data) is within a preset spatial range, then it is determined to be in place, and an in-place detection result is obtained; otherwise, it is determined to be out of place, and an out-of-place in-place detection result is obtained. The verification and matching logic can be implemented through preset rules (such as hash comparison, threshold judgment) or machine learning models (such as classifiers) to ensure the reliability of the in-place detection results.

[0078] In this embodiment, since the parts storage feature model is constructed based on features extracted from the parts storage in a preset location, the parts storage status and identity information can characterize the status and identity of the parts storage, ensuring the uniqueness of the parts storage's identity and reducing the probability of misidentification. Logical verification and matching using the preset parts storage feature model can accurately determine whether the parts storage is in place, improving the accuracy of presence detection. By matching the parts storage status and identity information with the preset parts storage feature model, presence can be detected conveniently and accurately, balancing detection efficiency and accuracy.

[0079] For example, the unique identifier or spatial pose of the parts compartment can be matched with the feature model of the parts compartment to obtain the in-situ detection result.

[0080] In one possible implementation, the parts warehouse status identity information includes a unique identifier for the parts warehouse, and the parts warehouse feature model includes identifier features extracted from the unique identifier for the parts warehouse; matching the parts warehouse status identity information with the preset parts warehouse feature model includes: matching the unique identifier for the parts warehouse with the identifier features of the parts warehouse feature model.

[0081] For example, the identifier features of the parts warehouse feature model can be understood as feature data extracted from the unique identifier of the parts warehouse, which can be used to compare with the unique identifier of the parts warehouse. For example, the hash value of the unique identifier or the feature vector after dimensionality reduction by a feature extraction algorithm. Among them, the feature extraction algorithm is, for example, Principal Component Analysis (PCA) algorithm.

[0082] The matching logic can be further refined by matching unique identifiers with identifier features. The unique identifier of the parts warehouse (such as a QR code) can be obtained through image recognition or scanning and compared with the identifier features (such as the encoding features of the QR code) in the preset parts warehouse feature model. If the match is successful, it is determined that the parts are in place; otherwise, it is determined that the parts are not in place.

[0083] In this embodiment, the unique identifier is a globally unique identifier for the accessory compartment within the entire cleaning equipment. Matching the unique identifier refines the matching logic for accessory compartment presence detection. The global uniqueness of the unique identifier ensures accurate identification of the accessory compartment, avoiding misjudgments due to duplicate labels or environmental interference, and improving the robustness of the detection. Based on this, the accuracy of accessory compartment presence detection can be enhanced, providing a more reliable foundation for the generation of subsequent cleaning strategies.

[0084] In one possible implementation, the parts compartment status identity information includes the spatial pose of the parts compartment, and the parts compartment feature model includes the in-situ spatial pose range of the parts compartment; matching the parts compartment status identity information with the preset parts compartment feature model includes: matching the spatial pose of the parts compartment with the in-situ spatial pose range of the parts compartment feature model.

[0085] For example, the in-situ spatial pose range of the accessory compartment can be understood as a preset pose and its range pre-defined for the accessory compartment. For instance, a user or cleaning device can set the in-situ pose range of the accessory compartment in the environmental map of the cleaning device through an application program (APP).

[0086] For example, in the environmental map constructed after the cleaning equipment scans the environment, the preset position and position range can be set by defining the center coordinates and boundary coordinates of the preset location of the parts compartment; the preset attitude can be set by inputting attitude parameters (such as the yaw angle), and the attitude range can be set by inputting the range of attitude parameters (such as yaw angle ±5°). Based on the preset position and position range, as well as the preset attitude and attitude range, the in-situ spatial pose range of the parts compartment can be set.

[0087] During in-situ detection, the current spatial position (x, y, z) and attitude (roll angle, yaw angle, and pitch angle) of the parts compartment are obtained, thus yielding the spatial pose of the parts compartment. This spatial pose is then matched against the in-situ spatial pose range of the parts compartment's feature model. If the spatial pose falls within this range, the match is considered successful, resulting in an in-situ detection result indicating the parts compartment is at a preset position. Conversely, if the spatial pose does not fall within this range, the match is considered unsuccessful, resulting in an in-situ detection result indicating the parts compartment is not at a preset position.

[0088] In this embodiment, the spatial pose of the parts compartment is matched with the in-situ spatial pose range of the parts compartment feature model. By using the in-situ spatial pose range as a threshold for judging the spatial pose, it is possible to effectively verify whether the parts compartment is in a preset position, avoiding detection failures caused by loose installation or displacement. The combination of the two, through rule-based or model-based matching algorithms, can improve the accuracy of in-situ detection results and provide a reliable basis for the generation of subsequent cleaning strategies.

[0089] In summary, by collecting the status and identity information of the parts warehouse and matching it with a preset parts warehouse feature model, the accuracy of parts warehouse presence detection can be improved.

[0090] For example, matching unique identifiers (such as QR codes) ensures the uniqueness of the parts compartment's identity, reducing the probability of misidentification; matching spatial pose (such as spatial coordinates and attitude parameters) verifies whether the parts compartment is in a preset position, accurately determining the physical space where the parts compartment is located and avoiding detection failures due to loose installation or displacement. By combining unique identifiers and spatial poses with parts compartment feature model matching algorithms (such as rule-based threshold judgment or machine learning classification), a logical closed loop is achieved, improving the reliability of in-situ detection results.

[0091] Ultimately, the on-site detection results can drive the generation of cleaning strategies. For example, when the accessory compartment is in place, the type information of the cleaning accessories can be prioritized, or when they are not in place, the identification process of environmental tools can be triggered, thereby enabling the cleaning equipment to adaptively respond to the status of the cleaning accessories. Based on this, the method of this application embodiment can improve the accuracy of accessory compartment on-site detection and the scenario adaptability of cleaning strategy generation, reduce the need for manual intervention by users, and enhance the intelligence level of the cleaning equipment.

[0092] For example, the in-situ detection results include two types: in-situ and out-of-situ. Different cleaning strategies can be generated for these two different in-situ detection results.

[0093] In one possible implementation, generating a cleaning strategy based on in-situ detection results includes: generating a cleaning strategy based on the cleaning accessories in the accessories compartment when the in-situ detection results indicate that the accessories compartment is in a preset position.

[0094] For example, when the in-situ detection result indicates that the accessory compartment is in a preset position, the cleaning equipment knows that the accessory compartment exists, and can then combine the cleaning accessories in the accessory compartment to generate a cleaning strategy that is more conducive to completing the cleaning task.

[0095] For example, when generating a cleaning strategy based on cleaning accessories in the accessory warehouse, a cleaning accessory could be randomly selected to generate the corresponding cleaning strategy. Alternatively, the required cleaning accessories could be determined first based on the cleaning task's requirements. Then, the accessory warehouse could be checked to see if the required cleaning accessory exists; if it does, a corresponding cleaning strategy can be generated based on that accessory.

[0096] For example, one could first iterate through all the cleaning accessories currently stored in the accessory warehouse, analyze all the accessories based on the cleaning task requirements, and weigh one or more accessories that are most conducive to efficiently completing the cleaning task. When generating and executing a cleaning strategy, multiple cleaning accessories can be used simultaneously, or one cleaning accessory can be used for cleaning followed by another, and so on, until the cleaning task is completed.

[0097] When generating a cleaning strategy based on the cleaning accessories in the accessory warehouse, the cleaning accessories in the accessory warehouse can be flexibly matched, and optimization and iterative analysis can be carried out with high cleanliness and cleaning efficiency as constraints, so that the cleaning task can be completed efficiently.

[0098] In this embodiment of the application, when the in-situ detection result indicates that the accessory compartment is in a preset position, a cleaning strategy is generated based on the cleaning accessories in the accessory compartment. This achieves the purpose of using the cleaning accessories stored in the accessory compartment to generate a targeted cleaning strategy. By using cleaning accessories, the cleaning capabilities of the cleaning equipment can be expanded, the cleaning completion rate can be improved, and the user experience can be enhanced.

[0099] In one possible implementation, generating a cleaning strategy based on cleaning accessories in the accessory compartment includes: identifying at least one cleaning accessory in the accessory compartment, determining the type of the at least one cleaning accessory, and generating a cleaning strategy based on cleaning task requirements and the type of the at least one cleaning accessory.

[0100] For example, when identifying at least one cleaning accessory in the accessory compartment, the identification can be performed according to a preset identification quantity. For instance, if the execution logic is preset to identify N cleaning accessories, then during execution, N cleaning accessories can be identified accordingly, where N can be any value greater than zero and less than the total number of cleaning accessories. Alternatively, when identifying at least one cleaning accessory in the accessory compartment, all cleaning accessories in the accessory compartment can be identified.

[0101] After identifying at least one cleaning accessory, the type of each cleaning accessory can be determined based on its accessory information or its characteristics. For example, the accessory information may include information indicating the type of cleaning accessory, such as information indicating that a brush is a sweeping type accessory or that a crevice tool is a vacuuming type accessory.

[0102] Alternatively, by analyzing the size, shape, edges, texture and / or material of at least one cleaning accessory through image recognition, the cleaning purpose of the cleaning accessory can be determined, and thus the type of cleaning accessory can be determined.

[0103] Cleaning task requirements can be understood as cleaning goals defined by the user or cleaning equipment, such as cleaning high surfaces, cleaning crevices, or cleaning corners and bends in walls. For example, a user-defined task requirement to "clean the desktop".

[0104] When generating a cleaning strategy based on the cleaning task requirements and the type of at least one cleaning accessory, for example, by analyzing the necessary characteristics required to meet the cleaning task requirements and filtering the types of at least one cleaning accessory according to the necessary characteristics, a cleaning accessory that meets the necessary characteristics is determined. This cleaning accessory can be understood as the target cleaning accessory. A corresponding cleaning strategy can be generated based on the target cleaning accessory.

[0105] For example, by analyzing the cleaning task requirements for cleaning a desktop, it can be determined that the necessary feature to meet these requirements is the ability to clean non-floor spaces. The brushes stored in the accessory compartment can be used to clean non-floor spaces, therefore it can be determined that the brushes meet the cleaning task requirements, and a cleaning strategy can be generated based on the brushes.

[0106] In this embodiment, when generating a cleaning strategy based on cleaning accessories in the accessory compartment, the type of at least one cleaning accessory is determined by identifying at least one cleaning accessory in the accessory compartment; a cleaning strategy is then generated based on the cleaning task requirements and the type of at least one cleaning accessory. In this way, by combining both the cleaning task requirements and the type of cleaning accessory, targeted analysis can be conducted to generate personalized cleaning strategies that are adapted to the current task, thereby improving the degree to which the cleaning strategy meets the cleaning task requirements.

[0107] In one possible implementation, identifying at least one cleaning accessory in the accessory compartment and determining the type of the at least one cleaning accessory includes: identifying a unique accessory identifier for at least one cleaning accessory in the accessory compartment and determining the type of the at least one cleaning accessory based on the unique accessory identifier.

[0108] For example, the type of cleaning accessory can be determined by identifying its unique identifier. Similar to the unique identifier of the accessory compartment, the unique identifier is a unique identifier for the cleaning accessory, possessing global uniqueness within the entire cleaning equipment and serving as its identification function. For instance, the unique identifier can be a QR code, serial number, predefined code, barcode, icon, and / or near-field communication tag, etc.

[0109] For example, by scanning the QR code on the cleaning accessory itself, the accessory information can be determined, such as the type of the cleaning accessory (brush, vacuum cleaner, wiping cloth, etc.). It should be understood that the unique identifier of the cleaning accessory (such as a QR code) can be set on the cleaning accessory itself or on the accessory compartment. For example, the accessory compartment has multiple storage slots, each slot can hold one cleaning accessory, and the unique identifier of the corresponding stored cleaning accessory can be marked around each storage slot. Alternatively, the unique identifier of the cleaning accessory can be displayed in other ways, which is not limited in this embodiment.

[0110] In this embodiment of the application, by identifying the unique identifier of at least one cleaning accessory in the accessory compartment and determining the type of at least one cleaning accessory based on the unique identifier, the purpose of quickly and conveniently determining the type of cleaning accessory can be achieved, thereby improving the accuracy and speed of type determination.

[0111] In one possible implementation, identifying at least one cleaning accessory in the accessory compartment and determining the type of at least one cleaning accessory includes: scanning a near-field communication tag affixed to at least one cleaning accessory in the accessory compartment using a near-field communication reader mounted on the cleaning device; identifying at least one cleaning accessory in the accessory compartment and determining the type of at least one cleaning accessory based on the data interaction identification result between the near-field communication reader and the near-field communication tag.

[0112] For example, a near-field communication (NFC) reader can be understood as a dedicated device based on NFC technology that can read or write data in carriers such as NFC tags and NFC cards within a short distance (e.g., within 10cm). NFC readers can be installed on cleaning equipment.

[0113] Near Field Communication (NFC) tags can be understood as passive electronic tags with a built-in NFC chip and antenna, requiring no power supply, and capable of being sensed by NFC readers within a short distance to complete data storage or interaction. NFC tags can be attached to cleaning accessories.

[0114] By scanning the near-field communication (NFC) tag on at least one cleaning accessory in the accessory compartment using a NFC reader installed on the cleaning equipment, the cleaning equipment can obtain accessory information through data communication between the two, thus determining the accessory's type. For example, if the cleaning equipment has a built-in accessory information mapping table, the type of each cleaning accessory can be determined by matching the mapping relationships in the table.

[0115] By setting a near-field communication tag on each cleaning accessory, the probability of misidentification can be reduced when the accessory's unique identifier is not on the cleaning accessory itself (for example, the accessory's unique identifier is on the accessory compartment itself).

[0116] For example, multiple unique identifiers for accessories are displayed on the surface of the accessory compartment, arranged from left to right as follows: accessory A above the first slot, accessory B above the second slot, and accessory C above the third slot. However, currently, cleaning accessory A, corresponding to accessory A, is stored in the second slot; cleaning accessory B, corresponding to accessory B, is stored in the third slot; and cleaning accessory C, corresponding to accessory C, is stored in the first slot. Therefore, if the type of cleaning accessory is still identified by its unique identifier, misidentification will occur.

[0117] In this embodiment of the application, by setting the near-field communication tag on the cleaning accessory body, the accessory information is embedded and bound to the corresponding cleaning accessory, which will not lead to misidentification due to reasons such as blurred unique identifier, falling off, or misplaced storage, thus improving the reliability of identification.

[0118] In one possible implementation, the cleaning strategy includes an accessory grasping parameter set, which includes at least one grasping action parameter for grasping a cleaning accessory; generating the cleaning strategy based on the cleaning task requirements and the type of at least one cleaning accessory includes: determining a target cleaning accessory that meets the cleaning task requirements based on the cleaning task requirements and the type of at least one cleaning accessory; calculating the grasping action parameters for grasping the target cleaning accessory based on the relative pose between the cleaning device and the target cleaning accessory, thereby generating the accessory grasping parameter set of the cleaning strategy.

[0119] For example, grasping action parameters can be understood as parameters that control the execution of grasping actions. These parameters can be of various types, such as grasping angle parameters, force parameters, and speed parameters. For instance, when controlling a robotic arm with a gripper at its end to perform a grasping action, the grasping parameter set may include the gripper's opening and closing degree, the rotation angle of the robotic arm joints, the spatial position of each joint of the robotic arm, and the robotic arm's movement speed.

[0120] When identifying cleaning accessories in the accessory compartment, there may be multiple cleaning accessories stored instead of just one. Therefore, it is necessary to determine the target cleaning accessory that is most beneficial to completing the cleaning task based on the cleaning task requirements.

[0121] For example, absorbent cloths and brushes are identified in the accessory compartment. For the cleaning task of cleaning water accumulation on a desktop, by analyzing the cleaning characteristics of the water (easily flowing), the absorbent cloth can be identified as the more advantageous cleaning accessory for completing the cleaning task. Therefore, the absorbent cloth can be determined as the target cleaning accessory to meet the cleaning task requirements.

[0122] When grasping a target cleaning accessory to perform a cleaning task, in order to grasp the target cleaning accessory more accurately and maintain a more favorable gripping posture for cleaning, the grasping action parameters of grasping the target cleaning accessory can be calculated based on the relative pose between the cleaning equipment and the target cleaning accessory, and the accessory grasping parameter set in the cleaning strategy can be generated.

[0123] For example, the spatial position and attitude parameters of the cleaning equipment body (or the gripping device of the cleaning equipment) and the target cleaning accessory can be obtained respectively. By calculating the difference in spatial position and attitude parameters between the cleaning equipment body (or the gripping device of the cleaning equipment) and the target cleaning accessory, the relative pose of the cleaning equipment body (or the gripping device of the cleaning equipment) and the target cleaning accessory can be obtained. This relative pose can also be understood as the pose difference. Using the relative pose as the constraint condition for inversely solving the gripping device (such as a robotic arm and its joints), at least one gripping action parameter of the gripping device can be solved inversely, and then a set of gripping parameters can be obtained. This set of gripping parameters can be understood as part of the cleaning strategy.

[0124] For example, after determining the target cleaning accessory that meets the cleaning task requirements based on the cleaning task requirements and the accessory types of multiple cleaning accessories, the relative pose between the target cleaning accessory and the robotic arm of the cleaning equipment can be determined and calculated by a device for detecting pose, such as a depth camera.

[0125] Based on the relative pose, one or more sets of robotic arm joint solutions can be obtained through optimization and iterative calculation or prediction using a pre-trained model. Each set of robotic arm joint solutions can include the spatial coordinates of the robotic arm's movement from its current position to the target position (the position where it grasps the target cleaning accessory) and key rotation angles. By controlling the motion of the robotic arm based on the optimal solution, the robotic arm can grasp the target cleaning accessory.

[0126] In this embodiment, based on the cleaning task requirements and the type of at least one cleaning accessory, a target cleaning accessory that meets the cleaning task requirements can be determined. This target cleaning accessory helps to complete the cleaning task with high cleanliness and high cleaning efficiency. Based on the relative pose between the cleaning device and the target cleaning accessory, the grasping action parameters for grasping the target cleaning accessory are calculated, thus generating an accessory grasping parameter set for the cleaning strategy. Therefore, based on the cleaning strategy including the accessory grasping parameter set, executing the cleaning strategy can successfully grasp the target cleaning accessory, facilitating the execution of the corresponding cleaning task.

[0127] In one possible implementation, the method further includes: grabbing a target cleaning accessory using a gripping device of a cleaning device according to an accessory gripping parameter set; detecting the gripping opening degree of the gripping device using a position encoder of the gripping device during the gripping process; and determining whether the gripping device has grabbed the target cleaning accessory based on the gripping opening degree.

[0128] For example, a gripping device can be understood as a mechanical structure in a cleaning device used to grip cleaning accessories or tools, such as a robotic arm mounted on the cleaning device and its end gripper. For instance, a robotic arm equipped with grippers can be used to grip cleaning accessories such as brushes or absorbent cloths. A position encoder can be understood as a sensor that measures the displacement or angle of the gripping mechanical components of the gripping device, and can be used to provide real-time feedback on the gripping status. For example, an absolute encoder can monitor the closing angle of the grippers.

[0129] After the cleaning strategy is generated, the gripping device can perform the gripping action, and the gripping opening degree can be monitored in real time by the position encoder. For example, when the gripper closes, the position encoder detects whether the gripping opening degree (the opening degree of the gripper) is less than the width of the holding part of the target cleaning accessory. If it is less, it is determined that the gripping was unsuccessful and the retry logic is triggered; if the gripping opening degree is greater than or equal to the width of the holding part of the target cleaning accessory, it can be determined that the gripping was successful. Alternatively, it can be combined with the force detection and weight detection after gripping to comprehensively determine whether the target cleaning accessory has been gripped, so as to improve the accuracy of the judgment result.

[0130] In this embodiment, the closed-loop feedback control of the gripping device significantly improves the reliability of the gripping action and increases the success rate of gripping the target cleaning accessory. For example, when gripping the target cleaning accessory, the opening and closing of the grippers and the force are adjusted in real time by adjusting the gripping opening degree, which can reduce failures or damage to the target cleaning accessory caused by fixed parameters. Since the method of this embodiment combines the closed-loop feedback process of target cleaning accessory detection, cleaning strategy generation and execution, it can improve the adaptive cleaning capability of the cleaning equipment in complex scenarios.

[0131] For example, if the cleaning equipment is not in the accessory compartment, it lacks the ability to actively identify cleaning tools in the environment, which will prevent the cleaning task from making full use of scene resources and will not be conducive to improving cleaning degree and cleaning efficiency. To this end, the method provided in this application embodiment can analyze environmental perception data through a visual model (such as an image recognition model based on deep learning), identify cleaning tools (such as mops and long-handled brushes) in the environment, and generate an appropriate cleaning strategy in combination with the cleaning task requirements.

[0132] In one possible implementation, generating a cleaning strategy based on the in-situ detection results includes: when the in-situ detection results indicate that the accessory compartment is not in a preset position, collecting environmental perception data to allow the cleaning equipment to perceive its surroundings; based on the environmental perception data, identifying whether cleaning tools exist in the environment through a visual model, wherein the cleaning tools are tools used to assist in cleaning; and generating a cleaning strategy based on the cleaning tools identified in the environment.

[0133] For example, environmental perception data can be understood as environmental information collected by cleaning equipment through sensors to identify available cleaning tools. These sensors can be, for example, depth cameras, cameras, LiDAR, millimeter-wave radar, and / or Time-of-Flight (TOF) radar. For instance, color images and depth information collected by a Red Green Blue and Depth (RGBD) camera are both environmental perception data.

[0134] Cleaning tools can be understood as auxiliary cleaning tools used in addition to cleaning accessories. These can be tools found in the environment that are not included with the manufacturer's standard equipment, such as user-provided or user-permitted brushes, small vacuum cleaners, rags, and mops. Visual models can be understood as image recognition models based on deep learning, used to detect the environment and cleaning tools within it. Examples include U-Nets. For instance, a pre-trained UNet model can be used to identify cleaning tools such as mops and long-handled brushes.

[0135] When the accessory compartment is not in place, the system can identify available cleaning tools in the environment by combining environmental perception data with a visual model. For example, the cleaning equipment captures environmental images through a camera, and the visual model analyzes the object features in the captured images (such as the planar shape of the mop) and generates a cleaning strategy (such as grabbing the mop for cleaning non-floor spaces). This process leverages the generalization ability of machine learning models to adapt to tools of different shapes and materials, expanding the coverage of cleaning scenarios.

[0136] In this embodiment, the active identification of available cleaning tools in the environment is achieved through the collection of environmental perception data and its combination with a visual model. This solution solves the problem of difficulty in generating cleaning strategies when the accessory compartment is not in place. For example, when a user places a rag on a table, the cleaning device can automatically identify and plan a cleaning path for a higher position. Through the generalization ability of the machine learning model, it adapts to the identification needs of different tools, significantly improving the flexibility and completion rate of cleaning tasks.

[0137] By introducing a visual model, the dynamic nature and scene adaptability issues of cleaning tool recognition are addressed. The visual model, based on a pre-trained feature library of cleaning tools (such as the planar shape of a mop and the rod-like structure of a long-handled brush), extracts the visual features of target objects through real-time image input (such as RGB-D camera data) and matches them with the feature library. The matching results can be further combined with cleaning task requirements (such as cleaning high surfaces or crevices) to generate strategies; for example, prioritizing the planning of high-level cleaning paths when a mop is detected. This solution leverages the generalization ability of machine learning models to adapt to cleaning tools of different shapes and materials, while avoiding the limitations of traditional rule-based matching (such as color thresholds), significantly improving the accuracy and scene coverage of environmental tool recognition.

[0138] In one possible implementation, generating a cleaning strategy based on cleaning tools identified in the environment includes: determining the tool type of the cleaning tools identified in the environment using a visual model; and generating a cleaning strategy based on cleaning task requirements and tool type.

[0139] For example, tool type can be understood as a category of cleaning tools, such as mops, long-handled brushes, telescopic poles, etc. For instance, a visual model can be used to identify the planar shape of a mop and classify it as a "planar cleaning tool." Cleaning task requirements are similar to those described in the above embodiments and can be understood as cleaning goals defined by the user or the cleaning equipment.

[0140] The system uses a visual model to categorize identified cleaning tools and generates strategies based on cleaning task requirements. For example, if the task requires cleaning high surfaces and a mop is identified, a cleaning path planning instruction to invoke the mop is generated. This process ensures the strategy matches the actual needs by matching task requirements with tool types.

[0141] In this embodiment, dynamic adaptation of cleaning strategies is achieved by matching tool types with task requirements. For example, when cleaning crevices, if a brush is detected, a strategy to invoke the brush is generated; if a mop is detected, it is ignored. This refinement step significantly improves the targeting of strategy generation, reduces resource waste, and increases cleaning efficiency.

[0142] For example, after the cleaning equipment recognizes the cleaning tool, it can use the cleaning tool to clean non-dead-angle areas or clean dead-angle areas.

[0143] In one possible implementation, a cleaning strategy is generated based on the cleaning task requirements and the tool type, including: if the cleaning task requirements include cleaning blind spots, determining whether the tool type meets the cleaning task requirements; if the tool type meets the cleaning task requirements, generating a cleaning strategy that includes cleaning blind spots based on the tool type.

[0144] For example, cleaning dead zones can be understood as areas that are difficult for the cleaning device itself to clean directly. For instance, if the cleaning device uses a combination of a bottom vacuum and a rotating brush to clean the floor, then the cleaning device cannot directly clean non-floor areas or inaccessible crevices. Therefore, cleaning dead zones include non-floor areas and inaccessible crevices.

[0145] Non-ground areas can be understood as any spatial area not on the ground, such as multiple non-ground spaces in a vertical space perpendicular to the ground, such as desktops, cabinet doors, the inside of cabinets, and walls. Gap spaces can be gaps formed between any one or more objects, such as gaps between the floor and the bed, gaps between floorboards, gaps in cable trays, or gaps between the side wall of a sofa and the wall.

[0146] Furthermore, for cleaning devices with certain shapes, such as circular disc-shaped robotic vacuum cleaners, when cleaning the inner corners of walls, obstacles such as walls may cause cleaning dead zones near the corners. Using the method described in this application, the robotic vacuum cleaner, by using its robotic arm to grab a mop, brush, etc., can perform a more thorough deep cleaning of these dead zones, improving the overall cleanliness.

[0147] Cleaning task requirements can be user-defined or generated by the cleaning equipment itself. For example, if the user issues a whole-house cleaning instruction, this instruction includes the need to clean hard-to-reach areas. The cleaning equipment can analyze the instruction and determine that these hard-to-reach areas should be cleaned, and then generate a cleaning strategy based on this requirement.

[0148] Furthermore, in order to effectively clean hard-to-reach areas, the cleaning equipment can first determine whether the type of the identified cleaning tool meets the cleaning task requirements. For example, if the cleaning task requires cleaning narrow gaps between the sofa and the wall that the robot vacuum cannot access, the robot vacuum can analyze the characteristics of the gap (long and narrow, unable to enter) and combine this with the analysis of long-bristled brush tools (tools that are longer and can reach into narrow gaps). This analysis can determine that the long-bristled brush cleaning tool meets the cleaning task requirements, and a cleaning strategy can then be generated based on this long-bristled brush.

[0149] Generating cleaning strategies based on tool type, including those for cleaning hard-to-reach areas, can be understood as generating effective cleaning strategies for these areas based on the type of cleaning tool. For example, when generating a cleaning strategy for cleaning the narrow gap between a sofa and a wall based on the type of long-bristled brush cleaning tool, this strategy includes the gripping angle of the robotic arm to allow the long-bristled brush to reach into the gap; the strategy may also include the brushing angle, speed, and number of strokes when brushing the gap; and it may further include the planned movement path of the robot vacuum and the joint angles of the robotic arm to complete the cleaning task.

[0150] In this embodiment, when the cleaning task includes the need to clean hard-to-reach areas, it can be first determined whether the cleaning tools can be used to clean these areas. If so, a corresponding cleaning strategy is generated. This allows the cleaning equipment to utilize cleaning tools found in the environment to clean hard-to-reach areas, reducing the area of ​​cleaning residue, improving cleaning completion, and enhancing the user experience.

[0151] In one possible implementation, the cleaning strategy includes a tool grasping parameter set, which includes at least one grasping action parameter for grasping a cleaning tool; generating the cleaning strategy based on cleaning task requirements and tool types includes: when multiple cleaning tools of various tool types are identified, determining a target cleaning tool that meets the cleaning task requirements based on the cleaning task requirements and the tool types of the multiple cleaning tools; calculating the grasping action parameters for grasping the target cleaning tool based on the relative pose between the cleaning device and the target cleaning tool, and generating the tool grasping parameter set of the cleaning strategy.

[0152] For example, grasping action parameters can be understood as parameters that control the execution of grasping actions. These parameters can be of various types, such as grasping angle parameters, force parameters, and speed parameters. For instance, when controlling a robotic arm with a gripper at its end to perform a grasping action, the grasping parameter set may include the gripper's opening and closing degree, the rotation angle of the robotic arm joints, the spatial position of each joint of the robotic arm, and the robotic arm's movement speed.

[0153] When identifying cleaning tools in the environment, more than one tool may be identified. Therefore, it is necessary to determine the target cleaning tool that is most beneficial to completing the cleaning task based on the requirements of the cleaning task.

[0154] For example, long-handled brushes, short-handled brushes, and toothbrushes that can be used for cleaning are identified in the environment. For cleaning tasks requiring narrow, elongated spaces, by analyzing the spatial characteristics (length) of these spaces, long-handled brushes are identified as the most advantageous cleaning tool for completing the task, among long-handled brushes, short-handled brushes, and toothbrushes that can be used for cleaning. Therefore, long-handled brushes can be identified as the target cleaning tool to meet the cleaning task requirements.

[0155] When grasping a target cleaning tool to perform a cleaning task, in order to grasp the target cleaning tool more accurately and maintain a gripping posture that is easy to clean, the grasping action parameters of grasping the target cleaning tool can be calculated based on the relative pose between the cleaning equipment and the target cleaning tool, and a tool grasping parameter set for the cleaning strategy can be generated.

[0156] For example, the spatial position and attitude parameters of the cleaning equipment body (or the gripping device of the cleaning equipment) and the target cleaning tool can be obtained respectively. By calculating the difference in spatial position and attitude parameters between the cleaning equipment body (or the gripping device of the cleaning equipment) and the target cleaning tool, the relative pose of the cleaning equipment body (or the gripping device of the cleaning equipment) and the target cleaning tool can be obtained. This relative pose can also be understood as the pose difference. Using the relative pose as the constraint condition for inversely solving the gripping device (such as a robotic arm and its joints), at least one gripping action parameter of the gripping device can be solved inversely, and then the gripping parameter set can be obtained. This gripping parameter set can be understood as part of the cleaning strategy.

[0157] For example, after determining the target cleaning tool that meets the cleaning task requirements based on the needs of the cleaning task and the types of multiple cleaning tools, the relative pose between the target cleaning tool and the robotic arm of the cleaning equipment can be determined and calculated using devices such as radar to detect the pose. Based on this relative pose, one or more sets of robotic arm joint solutions can be obtained through optimization iterative calculations or prediction using pre-trained models. Each set of robotic arm joint solutions can include the spatial coordinates of the robotic arm's movement from its current position to the target position (the position where it grasps the target cleaning tool) and key rotation angles. By controlling the motion of the robotic arm based on the optimal robotic arm solution, the robotic arm can grasp the target cleaning tool.

[0158] In this embodiment, when multiple cleaning tools of various types are identified, a target cleaning tool that meets the cleaning task requirements can be determined based on the cleaning task needs and the tool types of the multiple cleaning tools. This target cleaning tool helps to complete the cleaning task with high cleanliness and high cleaning efficiency. Based on the relative pose between the cleaning device and the target cleaning tool, the grasping action parameters for grasping the target cleaning tool are calculated, thus generating a tool grasping parameter set for the cleaning strategy. Therefore, based on the cleaning strategy including the tool grasping parameter set, executing the cleaning strategy can successfully grasp the target cleaning tool, facilitating the execution of the corresponding cleaning task.

[0159] In one possible implementation, the method further includes: grasping a target cleaning tool using a grasping device of a cleaning device according to a tool grasping parameter set; detecting the grasping opening degree of the grasping device using a position encoder of the grasping device during the grasping process; and determining whether the grasping device has grasped the target cleaning tool based on the grasping opening degree.

[0160] For example, a gripping device can be understood as a mechanical structure in a cleaning device used to grip cleaning accessories or tools, such as a robotic arm mounted on the cleaning device and its end grippers. For instance, a robotic arm equipped with grippers can be used to grip a brush or mop. A position encoder can be understood as a sensor that measures the displacement or angle of a mechanical component and can be used to provide real-time feedback on the gripping status. For example, an absolute encoder can monitor the closing angle of the grippers.

[0161] After the cleaning strategy is generated, the gripping device can perform the gripping action, and the gripping opening degree can be monitored in real time by the position encoder. For example, when the gripper closes, the position encoder detects whether the gripping opening degree (the opening degree of the gripper) is less than the width of the holding part of the target cleaning tool. If it is less, it is determined that the gripping was unsuccessful and the retry logic is triggered; if the gripping opening degree is greater than or equal to the width of the holding part of the target cleaning tool, it can be determined that the gripping was successful. Alternatively, it can be combined with the force detection and weight detection after the gripping to comprehensively determine whether the target cleaning tool has been gripped, so as to improve the accuracy of the judgment result.

[0162] In this embodiment, the reliability of the gripping action is significantly improved through closed-loop feedback control of the gripping device. For example, when gripping a brush, the opening and closing of the grippers and the force are adjusted in real time by adjusting the gripping opening and closing degree, which can reduce failures or damage to the target cleaning tool caused by fixed parameters. This solution combines a feedback closed loop of cleaning tool detection, cleaning strategy generation and execution processes, realizing the adaptive cleaning capability of the cleaning equipment in complex scenarios.

[0163] In one possible implementation, generating a cleaning strategy based on the in-situ detection results includes: when the in-situ detection results indicate that the accessory compartment is not in a preset location, calling the environmental map of the cleaning equipment, the environmental map being obtained by the cleaning equipment performing a spatial scan and map construction of its environment, the environmental map including the annotation information of obstacles; determining at least one cleaning tool among at least one obstacle based on the annotation information of at least one obstacle in the environmental map, the cleaning tool being a tool used to assist in cleaning; and generating a cleaning strategy based on at least one cleaning tool.

[0164] For example, the environment of the task space can be scanned and mapped when the cleaning equipment performs a cleaning task for the first time and on each subsequent task. For instance, the environment map can be constructed using a Simultaneous Localization and Mapping (SLAM) algorithm. During the construction of the environment map, identified items can also be labeled.

[0165] For example, semantic and location annotations can be performed on all obstacles. For instance, when constructing an environment map based on the SLAM algorithm, obstacles in space (such as table legs, walls, long-handled brushes, etc.) are identified through a visual model, and the semantics (item type) and location coordinates of each obstacle in the environment map are identified through semantic classification. Both semantics and location coordinates can serve as annotation information for obstacles.

[0166] It should be understood that cleaning equipment may interpret any object in the environment that blocks its path as an obstacle. Therefore, some cleaning tools that can be used to assist in cleaning may be interpreted as obstacles before they are identified and their types are determined.

[0167] Furthermore, objects like table legs and walls are fixed obstacles and cannot be used to assist cleaning, while long-handled brushes are obstacles that can be picked up by cleaning equipment and can be used to assist cleaning. Therefore, they can be added as cleaning tools in the labeling information. Alternatively, the tool type and location coordinates of the cleaning tool can also be added to the labeling information.

[0168] When a cleaning strategy needs to be generated and executed using cleaning tools according to the requirements of a cleaning task, the cleaning equipment can first analyze the tool type by checking the annotation information of one or more obstacles already marked on the environmental map to determine whether there are cleaning tools (obstacles) that meet the requirements of the cleaning task. If so, the equipment can move to the cleaning tool based on the location coordinates in the annotation information, using those coordinates as the destination, to grab the tool and execute the cleaning task.

[0169] As can be understood from the above embodiments, cleaning equipment employs at least two decision-making strategies when cleaning tools are required. One is to perceive the environment and identify and analyze the target cleaning tool based on the environmental perception data. The other is to access a pre-built environmental map and query whether the target cleaning tool exists based on the marking information of at least one obstacle in the map. These two decision-making strategies can be executed individually or sequentially.

[0170] In this embodiment, by calling the environmental map of the cleaning equipment and identifying at least one cleaning tool based on the obstacle markings in the environmental map, a cleaning strategy can be generated based on one or more cleaning tools. This reduces the energy and computing power costs associated with environmental perception and cleaning tool identification, and also allows for more convenient and faster acquisition of cleaning tools that can help complete the cleaning task, thereby improving cleaning speed and efficiency.

[0171] In one possible implementation, the method further includes: collecting environmental perception data of the environment when the cleaning equipment catches at least one cleaning tool; updating the environmental map based on the environmental perception data to obtain an updated environmental map.

[0172] For example, after the cleaning equipment captures at least one cleaning tool, the spatial layout and labeling information of obstacles in the environmental map can be updated. This updated environmental map can be used for subsequent navigation path planning and auxiliary cleaning strategy generation.

[0173] For example, after capturing a long-handled brush, the area occupied by the long-handled brush can be updated into a passable free space in the environment map, where waypoint search and path planning can be performed.

[0174] In this embodiment of the application, the environmental map is updated after the cleaning tool is grabbed. The obstacle marking information in the environmental map can be updated in real time. For example, after the cleaning tool is grabbed, several passable paths can be cleared. This helps to plan and generate more convenient navigation paths, reduce the situation where the cleaning equipment detours, and improve cleaning efficiency.

[0175] For example, based on the above embodiments, the method of this application embodiment can also be optimized based on multi-sensor fusion for in-situ detection of parts storage compartments.

[0176] For example, during the acquisition of the accessory compartment's status and identity information, multi-sensor fusion technology is introduced. This combines data from an NFC reader, an IMU (Inertial Measurement Unit), and a visual sensor (such as an RGBD camera). A weighted fusion algorithm is used to cross-verify the accessory compartment's unique identifier and spatial pose. For instance, if an NFC read fails, a visual sensor is used to identify a QR code or predefined pattern on the accessory compartment's surface, and IMU data is used to correct any deviations in the spatial pose.

[0177] Therefore, multi-sensor fusion can significantly improve the robustness of parts warehouse status detection. In complex scenarios (such as strong light interference or NFC tag damage), visual sensors and IMUs can serve as redundant backups, avoiding detection failures caused by the failure of a single sensor. Furthermore, by dynamically adjusting the confidence levels of each sensor through a weighted algorithm, it can adapt to detection needs in different environments; for example, it prioritizes IMU data in vibration environments and visual data in well-lit environments. Ultimately, this solution achieves high reliability and environmental adaptability in parts warehouse status detection, reducing the false positive rate.

[0178] For example, based on the above embodiments, the method of this application embodiment can also accelerate the identification of cleaning accessory types based on edge computing.

[0179] For example, upon receiving a location detection result indicating that the accessory compartment is in place, the cleaning device uses its built-in edge computing module (such as an embedded AI chip) to locally process the accessory's unique identifier, rather than relying on cloud computing. For instance, after an NFC reader scans the accessory's unique identifier, the edge computing module directly calls a pre-trained lightweight machine learning model (such as a lightweight convolutional neural network) for type recognition, avoiding delays in communication with the cloud.

[0180] Therefore, edge computing can significantly shorten the response time for accessory type recognition and improve the real-time performance of cleaning strategy generation. In scenarios where users frequently change accessories (such as home users switching between nozzles and brushes based on cleaning needs), localized processing can reduce communication latency and ensure that the device can quickly adjust its cleaning actions. Furthermore, the low-power design of the edge computing module can extend the battery life of cleaning devices while reducing reliance on network connectivity, adapting to usage needs in environments with offline or weak network connections.

[0181] For example, based on the above embodiments, the method of this application embodiment can also realize environmental tool recognition enhancement based on multimodal data fusion.

[0182] For example, when a location detection result indicating that the accessory compartment is not in place is obtained, multimodal data fusion technology is used to combine visual models and LiDAR data to improve the accuracy of cleaning tool identification in the environment. For instance, after the visual model detects an object that is suspected to be a cleaning tool, the LiDAR verifies its spatial shape (such as the planar features of a mop or the rod-like structure of a long-handled brush) using point cloud data, and performs secondary confirmation by combining it with a pre-set tool type knowledge base.

[0183] Therefore, multimodal data fusion can effectively solve the problem of misidentification by visual models in complex lighting or occlusion scenarios. For example, in strong backlighting, the visual model may mistakenly identify shadowed areas as cleaning tools, while the point cloud data from LiDAR can provide three-dimensional morphological information to help the system eliminate misjudgments. In addition, this solution can identify more types of cleaning tools (such as non-standard shaped homemade tools), expand the environmental adaptability of the equipment, and improve the flexibility and completion rate of cleaning tasks.

[0184] For example, based on the above embodiments, the method of this application embodiment can also realize adaptive optimization of grasping action parameters based on reinforcement learning.

[0185] For example, in the stage of generating grasping motion parameters, a reinforcement learning model (such as a deep Q-network, DQN) is introduced. The model is trained using historical successful / failed grasping data, and the grasping parameters (such as the joint angle of the robotic arm and the opening and closing degree of the gripper) are dynamically adjusted. For instance, the model generates the optimal grasping strategy based on the type and location of the current accessory / tool ​​and environmental interference factors (such as ground friction), and the results are fed back through a position encoder after execution to optimize the model parameters.

[0186] Based on this, reinforcement learning enables gripping strategies to be adaptive, adapting to the physical characteristics of different accessories / tools (such as the softness of brushes and the rigidity of mops) and environmental changes (such as the slipperiness of the ground). For example, when gripping a slippery brush, the model can automatically adjust the gripper opening to increase friction; when gripping a deformable mop, the model can optimize the robotic arm path to avoid deformation. Ultimately, this approach can significantly improve the gripping success rate, reduce failures caused by fixed parameters, and decrease the reliance on manual adjustments to the equipment.

[0187] For example, based on the above embodiments, the method of this application embodiment can also realize a real-time capture feedback closed loop based on a high-precision encoder.

[0188] For example, a high-precision absolute encoder can be integrated into the gripping device to monitor the rotation angle of each joint of the robotic arm and the opening and closing degree of the gripper in real time, and to dynamically analyze the feedback data through a sliding time window algorithm. For instance, if the encoder detects a sudden drop in the rate of change of the gripper opening degree during the gripper closing process, the system can determine that it has contacted the target part / tool ​​and trigger a fine-tuning action to optimize the gripping force.

[0189] Based on this, the combination of a high-precision encoder and a sliding time window algorithm enables millisecond-level response to gripping feedback, significantly reducing the latency of closed-loop control. For example, when gripping fragile parts, the system can sense the contact force of the grippers in real time and automatically adjust it to avoid damage to the parts due to excessive gripping force. In addition, this solution can adapt to the gripping needs of different parts / tools (such as brushes requiring gentle gripping and mops requiring stable gripping), improving the precision of gripping actions and reducing the risk of equipment damage.

[0190] In existing technologies, there is a lack of solutions for whether robotic vacuum cleaners equipped with robotic arms can grasp cleaning tools or detect whether cleaning accessories are in the accessory compartment. There are also no solutions for how to utilize cleaning equipment to identify cleaning tools, actively grasp them, and dynamically expand the robot's degrees of freedom based on different cleaning tools. The method provided in this application aims to address these technological gaps.

[0191] For robotic vacuum cleaners equipped with robotic arms and accessory compartments, it's necessary to check if the accessory compartment is in place before picking up cleaning accessories; otherwise, it will affect subsequent cleaning tasks. After confirming the accessory compartment is in place, it's also necessary to check if the cleaning accessories are in place and if they are the target cleaning accessories that meet the cleaning task requirements.

[0192] This application provides a method for controlling a cleaning device. Figure 1 This is a flowchart illustrating the control method for a cleaning device provided in an embodiment of this application. The executing entity of this method can be an electronic device with corresponding data storage and computing capabilities. This electronic device can be understood as a cleaning device, such as a robotic vacuum cleaner; it can also be understood as a processor, processing unit, or control chip within the cleaning device. The cleaning device includes a gripping device, which includes a robotic arm used to perform gripping actions.

[0193] The control method for the cleaning equipment provided in this application embodiment is the same as or similar to the control methods in the above embodiments in terms of implementation principle and technical effect, and the description of technical features can be referred to each other. For example Figure 1 As shown, the method includes:

[0194] S101, responding to a cleaning parts replacement instruction, which is used to instruct the cleaning equipment to replace cleaning parts.

[0195] For example, a cleaning accessory replacement instruction can be understood as an instruction to instruct the cleaning equipment to replace a cleaning accessory. For instance, the cleaning accessory replacement instruction may include information about the cleaning accessory to be replaced, such as the name of the accessory and its unique identifier. Responding to a cleaning accessory replacement instruction may include receiving and parsing the instruction to prepare for its execution.

[0196] S102, determine whether the cleaning accessory to be replaced corresponding to the cleaning accessory replacement instruction is in the preset storage location in the accessory compartment, which is used to store cleaning accessories.

[0197] For example, the cleaning accessory to be replaced can be understood as a cleaning accessory replacement instruction indicating which cleaning accessory should be replaced. The preset storage location can be understood as a pre-set storage location for the cleaning accessory in the accessory compartment, such as a preset hole, mounting position, or storage slot. For example, the first hole, second hole, and third hole in the above embodiment are all preset storage locations for the corresponding cleaning accessories.

[0198] When determining whether the cleaning accessory to be replaced is in the preset storage location in the accessory compartment, it can be based on the accessory's unique identifier and / or the data interaction identification results between the near-field communication reader and the near-field communication tag. Alternatively, a method similar to determining whether the accessory compartment is in place can be used to determine whether the cleaning accessory to be replaced is in the preset storage location in the accessory compartment; please refer to the descriptions in the above embodiments for details.

[0199] S103, if it is determined that the cleaning part to be replaced is in the preset storage location, the robotic arm is controlled to grab the cleaning part to be replaced and perform the cleaning task.

[0200] For example, if the cleaning accessory to be replaced is located in a preset storage position, the robotic arm can be controlled to grasp the cleaning accessory and perform the cleaning task. When grasping the cleaning accessory to be replaced, the accessory can also be understood as the target cleaning accessory. The method for grasping the target cleaning accessory in any of the above embodiments can be used to grasp the cleaning accessory to be replaced.

[0201] For example, based on the relative pose between the cleaning device and the target cleaning accessory (i.e., the cleaning accessory to be replaced), the grasping action parameters for grasping the target cleaning accessory can be calculated, generating an accessory grasping parameter set. The cleaning accessory to be replaced can then be grasped based on the grasping action parameters in the accessory grasping parameter set. Alternatively, the method described in any of the above embodiments can be used to detect whether the cleaning accessory to be replaced has been grasped. For instance, the grasping opening degree of the grasping device can be detected by a position encoder, and based on the grasping opening degree, it can be determined whether the grasping device has grasped the cleaning accessory to be replaced.

[0202] In this embodiment, a cleaning accessory replacement command is responded to, and it is determined whether the cleaning accessory to be replaced corresponding to the command is in a preset storage location in the accessory compartment. This allows for a pre-detection check of the accessory's availability before performing the replacement action, reducing the probability of incorrectly grabbing a different cleaning accessory that does not correspond to the replacement command. If the accessory is determined to be in the preset storage location, the robotic arm is controlled to grab it and perform the cleaning task. This ensures that cleaning work can begin only after the correct accessory has been confirmed and grabbed, facilitating faster and better completion of the cleaning task and improving cleaning efficiency and cleanliness. Therefore, this method can improve the success rate of cleaning accessory replacement and contribute to improved cleaning efficiency and cleanliness.

[0203] In one possible implementation, controlling the robotic arm to grasp the cleaning part to be replaced includes: controlling the robotic arm to place the cleaning part currently held by the robotic arm into the part storage compartment; and after confirming that the cleaning part to be returned has been placed in the part storage compartment, controlling the robotic arm to grasp the cleaning part to be replaced.

[0204] For example, a cleaning accessory to be returned can be understood as a cleaning accessory that will be replaced by a cleaning accessory to be replaced. In some scenarios, the cleaning accessory to be returned can be the same as the cleaning accessory to be replaced. For example, the cleaning accessory to be returned is a cleaning accessory used for absorbing water. When the water-absorbing cleaning accessory needs to be replaced or the absorbed wastewater needs to be cleaned, the cleaning accessory to be returned needs to be put back into the accessory compartment, and a cleaning accessory of the same type should be taken out. This same type of cleaning accessory is the cleaning accessory to be replaced.

[0205] In other scenarios, the cleaning accessory to be returned may be different from the cleaning accessory to be replaced. For example, when it is necessary to replace the water-absorbing cleaning accessory with a cleaning accessory for sweeping, the cleaning accessory currently held by the robotic arm to be returned needs to be replaced, and the cleaning accessory for sweeping is the cleaning accessory to be replaced.

[0206] When placing cleaning accessories to be returned into the accessory compartment, it can be done in a similar way to picking up cleaning accessories. For example, the cleaning equipment first determines its relative pose with the preset storage position of the cleaning accessory to be returned, and calculates the motion parameters of the robotic arm's movement during return based on this relative pose, such as the robotic arm's key rotation angle, force, and target position coordinates. By controlling the robotic arm using the return motion parameters, the cleaning accessory to be returned can be placed into the accessory compartment.

[0207] In this embodiment, by controlling the robotic arm to place the cleaning part currently held by the robotic arm into the part compartment, the robotic arm can be released, enabling it to grasp the cleaning part. After confirming that the cleaning part to be returned has been placed in the part compartment, controlling the robotic arm to grasp the cleaning part to be replaced ensures that the cleaning part to be returned is effectively returned to its original position and that the cleaning part to be replaced can be successfully grasped, improving the orderliness of the replacement process and increasing the success rate of the replacement.

[0208] In one possible implementation, determining whether the cleaning accessory to be replaced corresponding to the cleaning accessory replacement instruction is in a preset storage location in the accessory compartment includes: identifying the unique accessory identifier of at least one cleaning accessory in the accessory compartment, and determining whether the cleaning accessory to be replaced is in the preset storage location based on the unique accessory identifier of at least one cleaning accessory; and / or, scanning a near-field communication tag affixed to at least one cleaning accessory in the accessory compartment using a near-field communication card reader installed on the cleaning device, and determining whether the cleaning accessory to be replaced is in the preset storage location based on the data interaction identification result between the near-field communication card reader and the near-field communication tag.

[0209] For example, the accessory unique identifier, near-field communication (NFC) reader, and NFC tag can be referred to the descriptions of the above embodiments. When determining whether the cleaning accessory to be replaced corresponding to the cleaning accessory replacement instruction is in the preset storage location in the accessory compartment, this can be determined by the accessory unique identifier, and / or by the NFC reader and NFC tag.

[0210] For example, when determining whether a cleaning accessory to be replaced is in a preset storage location based on its unique identifier, the unique identifier of each cleaning accessory in the accessory warehouse can be traversed. When the unique identifier of the cleaning accessory to be replaced indicated by the cleaning accessory replacement instruction is matched, it can be determined that the cleaning accessory to be replaced is in the preset storage location.

[0211] For example, an NFC reader installed on the cleaning equipment can be used to scan the NFC tags of each cleaning accessory in the accessory compartment. When the NFC tag of the cleaning accessory to be replaced, as indicated by the replacement instruction, is read, it can be determined that the cleaning accessory to be replaced is in the preset storage location.

[0212] Alternatively, to improve the accuracy of the determination, the cleaning accessory to be replaced can be determined to be in the preset storage location by jointly verifying the unique identifier of the accessory and the data interaction identification results between the near-field communication reader and the near-field communication tag.

[0213] It should be understood that determining whether a cleaning accessory to be replaced is in a preset storage location can also be done using the same or similar methods as determining whether the accessory compartment is in a preset location. For example, this can be done by matching the accessory's unique identifier with a pre-built feature model of the cleaning accessory. For instance, by using a vision device and a positioning device to identify the cleaning accessory and locate its spatial pose, if the cleaning accessory's spatial pose matches a preset spatial pose, a determination of being in the preset storage location can be obtained; if the cleaning accessory's spatial pose does not match a preset spatial pose, a determination of not being in the preset storage location can be obtained.

[0214] In this embodiment of the application, the unique identifier of the accessory and / or the near-field communication card reader and the near-field communication tag are used to determine the result, which can be conveniently and accurately obtained. This can effectively determine whether the cleaning accessory to be replaced is in the preset storage location, thus providing a basis for accurately replacing the cleaning accessory.

[0215] In one possible implementation, the method further includes: if it is determined that the cleaning part to be replaced is not in the preset storage location, controlling the robotic arm to identify and grab the cleaning part to be replaced outside the part compartment, or controlling the robotic arm to grab cleaning tools in the environment where the cleaning equipment is located to perform the cleaning task, wherein the cleaning tools are tools used to assist in cleaning.

[0216] For example, the environment where the cleaning equipment is located, the cleaning tools, etc., can be referred to the descriptions of the above embodiments. If it is determined that the cleaning accessory to be replaced is not in the preset storage location, it indicates that the cleaning accessory to be replaced has not been placed in the preset storage location. In this case, a robotic arm can be controlled to identify the cleaning accessory to be replaced using a visual model outside the accessory compartment to find the cleaning accessory to be replaced as quickly as possible, or it can be scanned outside the accessory compartment using an NFC card reader or other methods to search for the cleaning accessory to be replaced.

[0217] Alternatively, a suitable cleaning tool can be found in the environment where the cleaning equipment is located to replace the cleaning part that needs to be replaced. In this way, if the cleaning part that needs to be replaced cannot be found temporarily, a substitute cleaning tool can be used to temporarily replace it, so as to proceed with the cleaning task as quickly as possible and ensure the cleaning speed.

[0218] For example, as described in the foregoing embodiments, in some scenarios, when cleaning a work area (such as a room), the cleaning equipment can first perform global or partial cleaning of that work area. During the cleaning process, if cleaning accessories / tools need to be used or replaced according to cleaning needs, the cleaning equipment can grab / replace cleaning accessories / tools that can meet the cleaning needs.

[0219] In one possible implementation, before responding to a cleaning accessory replacement command, the method further includes: controlling the cleaning equipment to perform a cleaning task and collecting environmental perception data during the execution of the task to allow the cleaning equipment to perceive its surroundings; and based on the environmental perception data, identifying obstacles in the environment through a visual model, the obstacles including cleaning tools, which are tools used to assist in cleaning.

[0220] The solution according to the embodiments of this application can be understood as follows: before replacing the cleaning parts to be replaced, the cleaning equipment has already started the cleaning task, and can collect environmental perception data during the execution process. Environmental perception data, obstacles, etc., can be referred to the descriptions in the above embodiments.

[0221] This environmental perception data can be used to identify obstacles, for example, by recognizing the semantics of obstacles through image data within the environmental perception data. The spatial location of obstacles can be calculated using visual models based on environmental perception data from depth images.

[0222] Therefore, before replacing cleaning accessories, a cleaning task can be performed to clean the work area globally or locally. If cleaning accessories need to be replaced during the cleaning process, the currently used cleaning accessories can be replaced by responding to a cleaning accessory replacement command, improving the adaptability to cleaning task requirements.

[0223] In one possible implementation, the method further includes: constructing an environmental map corresponding to the environment based on environmental perception data; identifying whether any obstacle is a tool used to assist cleaning when any obstacle is identified by a visual model; if so, marking any obstacle as a cleaning tool in the environmental map and marking the semantic and location information of the cleaning tool.

[0224] For example, the semantics of a cleaning tool may include the item type (tool type) of the cleaning tool, and the location information may include the location coordinates of the cleaning tool. The specific implementation process of semantics, location information, constructing an environmental map, and marking obstacles in the environmental map is similar to that in the above embodiments, and can be referred to the description in the foregoing embodiments, and will not be repeated here.

[0225] In one possible implementation, the method further includes: if it is determined that the cleaning accessory to be replaced is not in the preset storage location, controlling the robotic arm to obtain the target cleaning tool outside the accessory compartment, the target cleaning tool being a cleaning tool that meets the cleaning task requirements; grasping the target cleaning tool with the robotic arm and performing the cleaning task.

[0226] For example, since the cleaning equipment has already performed the cleaning task and built an environmental map before the cleaning accessories are replaced, and when obstacles are identified as cleaning tools, the semantic and location information of the cleaning tools are marked on the environmental map, this makes it easier for the cleaning equipment to familiarize itself with the environment and understand the situation of all cleaning tools in the environment that can assist in cleaning.

[0227] If it is determined that the cleaning accessory to be replaced is not in the preset storage location, then a cleaning tool that meets the cleaning task requirements can be searched from the cleaning tools marked on the environmental map. For example, similar to the previous embodiment, the tool type of the marked cleaning tool can be matched with the current cleaning task requirements, and the cleaning tool that meets the cleaning task requirements can be identified as the target cleaning tool.

[0228] Based on this, when the cleaning parts to be replaced are not in the preset storage location, the system can quickly find suitable cleaning tools according to the cleaning task requirements and with the help of the environmental map, so as to quickly obtain the target cleaning tools and complete the cleaning task as soon as possible.

[0229] In one possible implementation, before responding to a cleaning accessory replacement instruction, the method further includes: controlling the cleaning equipment to perform a cleaning task and identifying whether there are cleaning dead zones during the execution; if there are cleaning dead zones and the cleaning accessory currently held by the robotic arm does not meet the requirements for cleaning the cleaning dead zones, generating a cleaning accessory replacement instruction.

[0230] For example, cleaning dead zones can be described with reference to the embodiments described above. Cleaning dead zones can be identified in various ways. For instance, non-ground areas in an environmental image, such as desktops and cabinet doors, can be identified using a visual model. Alternatively, an environmental map can be constructed, and areas in the map that cleaning equipment cannot access can also be identified as cleaning dead zones.

[0231] Similar to the description in the previous embodiments, by performing feature analysis on the cleaning dead-end area (such as a narrow gap between a sofa and a wall) and matching it with the type of cleaning accessory currently being held (such as a short-bristled brush), it can be determined whether the cleaning needs of the dead-end area can be met. If not, the cleaning accessory needs to be replaced, and in this case, a cleaning accessory replacement instruction can be generated.

[0232] When generating a cleaning accessory replacement instruction, suitable cleaning accessories can be identified based on the characteristics of the cleaning dead zones, and these suitable accessories will be designated as the accessories to be replaced. A code instruction that the cleaning equipment can recognize can be generated based on information such as the name and unique identifier of the accessory to be replaced, thus generating the cleaning accessory replacement instruction.

[0233] Based on this, by identifying whether there are cleaning dead zones, and when there are cleaning dead zones and the cleaning accessory currently held by the robotic arm is not sufficient to clean the cleaning dead zone, a cleaning accessory replacement instruction can be generated in a targeted manner. The cleaning accessory that can clean the cleaning dead zone can then be replaced according to the cleaning accessory replacement instruction, thereby improving the cleaning coverage.

[0234] In one possible implementation, before responding to a cleaning accessory replacement instruction, the method further includes: determining whether the current cleaning settings include a robotic arm-assisted cleaning mode, the robotic arm-assisted cleaning mode being used to indicate that the cleaning equipment is allowed to perform a gripping action via a robotic arm; if it is determined that the current cleaning settings include a robotic arm-assisted cleaning mode, setting the cleaning equipment to allow the robotic arm to perform a gripping action during the execution of a cleaning task.

[0235] For example, cleaning settings can be understood as settings for the cleaning method of a cleaning device. For instance, cleaning settings may include a robotic arm-assisted cleaning mode and a non-grasping mode. Alternatively, users can configure cleaning settings independently via an app. The cleaning device can receive relevant data from the cleaning settings through a communication module, and based on this data, configure the cleaning device to determine whether or not to allow it to perform grasping actions.

[0236] If the cleaning settings include a robotic arm-assisted cleaning mode, it means that the cleaning equipment is allowed to autonomously perform grasping actions during the cleaning process; if the cleaning settings include a non-grabbing mode, it means that the cleaning equipment is not allowed to autonomously perform grasping actions during the cleaning process. In non-grabbing mode, the cleaning equipment can only perform basic cleaning work without analyzing and calculating how to grasp cleaning accessories / tools, thus saving some computing resources and processing time.

[0237] In current cleaning setups that include robotic arm-assisted cleaning modes, the cleaning equipment can identify the semantic category and spatial location of cleaning accessories / tools through a visual model. It can then perform a grasping action based on these criteria to assist in cleaning. This allows the cleaning equipment to achieve a more intelligent cleaning process compared to basic cleaning, improving the depth of cleaning and enhancing the overall level of intelligence in the cleaning process.

[0238] In this embodiment, by determining whether the current cleaning settings include a robotic arm-assisted cleaning mode, the cleaning equipment can be flexibly configured according to the cleaning settings, allowing or disallowing the use of the gripping function. Therefore, this method meets the differentiated cleaning needs of different scenarios and users in an open rather than closed manner, improving the applicability and flexibility of the cleaning equipment.

[0239] The following is through Figure 2 and Figure 3 The control method for the cleaning equipment provided in the embodiments of this application will be further described. Figure 2 This is a schematic diagram of the control system of the cleaning equipment provided in an embodiment of this application. Figure 3 This is a schematic diagram of the control logic of the cleaning equipment provided in an embodiment of this application. Figure 2 The control system of the cleaning equipment shown can be used to execute any of the methods provided in the embodiments of this application. The control system of the cleaning equipment can be understood as a system including electronic equipment and accessory compartments, etc. The control system of the cleaning equipment may include software modules and / or hardware modules.

[0240] like Figure 2 As shown, the control system of the cleaning equipment includes a multimodal sensing module, an accessory storage module, a grasping executability analysis module, an accessory and tool usage decision module, and a robotic arm control module.

[0241] Multimodal perception module: Equipped with a depth camera and robotic arm docking signal sensor, it collects real-time 3D environmental information and obstacle attributes (size, material). Based on a visual artificial intelligence (AI) model, it identifies graspable objects (cleaning accessories or cleaning tools) and calculates their relative pose to the robotic arm.

[0242] For example, cleaning accessories can refer to the accessories included in the accessory compartment officially provided with the robot vacuum cleaner. Cleaning tools can refer to small brushes that users can provide for the robot vacuum cleaner to use if they do not purchase the accessory compartment. The visual AI model can identify the small brushes as tools based on algorithms and training. The robot vacuum cleaner's robotic arm can then grasp and use these cleaning tools.

[0243] Accessory compartment module: Equipped with an accessory module that can communicate with the robot vacuum cleaner, providing real-time signal assistance to the robotic arm in grasping accessories. The accessory compartment and the accessories' QR codes help the machine identify whether the compartment and accessories are in place. For example, after successful docking with the robotic arm via QR code or signal docking module (such as TOF radar), the robot arm can be controlled to dock with the accessories.

[0244] The gripping feasibility analysis module is equipped with a position encoder to determine whether the gripper has opened to the appropriate position. This can be used to detect whether the gripper has grasped the desired item. It ensures that the appropriate tool or item has been grasped based on similar sizes. For example, the degree of gripper opening differs between successfully grasping a cleaning accessory and failing to do so; this difference can be used to determine whether the cleaning accessory or tool has been successfully grasped.

[0245] Equipped with a gripper camera, it can identify whether the accessory compartment is in place. For example, the gripper camera can identify whether a QR code for a cleaning accessory is present. Alternatively, it can determine whether the accessory compartment is in place based on depth.

[0246] Accessory and Tool Usage Decision Module: Based on visual AI model recognition of the grasping tools or accessories, this module determines different cleaning modes to achieve cleaning of non-floor spaces and narrow spaces. For example, it includes modes suitable for cleaning baseboards. This includes, but is not limited to, cabinet door cleaning modes, such as the robot vacuum opening a cabinet to clean it, or opening the door to clean behind the door panel. The decision is based on the mapping relationship between cleaning tools or accessories and various preset cleaning modes and scenarios.

[0247] Robotic arm control module: Based on the type of cleaning accessories and tools, it invokes pre-trained grasping strategies and plans obstacle avoidance trajectories. For example, it moves obstacles to a temporary safe area and retracts the robotic arm, or chooses to temporarily maintain the current grasping state (e.g., when there is no safe area around).

[0248] like Figure 3As shown, the control logic during cleaning is as follows: After starting, the cleaning task begins. It determines whether the user has selected the robotic arm-assisted cleaning mode. If not, the current cleaning task is completed; if so, it checks for a signal from the accessory compartment. If not, during cleaning, obstacles are identified and their semantics are marked. It then determines whether a grabbable cleaning tool / accessory for assisting cleaning is detected. If not, the current cleaning task is completed; if so, the cleaning accessory / tool ​​is grabbed.

[0249] Next, it can be determined whether the grab was successful. If not, the grabbing continues; if successful, the map is updated, and the cleaning equipment navigates to the corresponding vertical cleaning space based on the type of cleaning accessory / tool ​​grabbed. It then determines whether the grabbed cleaning accessory is from the accessory compartment. If so, the cleaning accessory is remotely opened, and the robotic arm holds the accessory and cleans the items in the vertical cleaning space. If not, the robotic arm holds the cleaning tool and cleans the items in the vertical cleaning space. Afterward, the environmental map can be updated.

[0250] Next, it can be determined whether there are any uncleaned vertical spaces. If so, the process returns to the step of grabbing cleaning accessories / tools; otherwise, the cleaning accessories are returned. If cleaning tools were grabbed, they are placed back in the user-marked cleaning tool area or back to the position where they were grabbed, and the cleaning equipment is recharged. After that, the process ends.

[0251] For example, the workflow might involve the user selecting a robotic arm-assisted cleaning mode. After cleaning begins, a localized environmental scan is initiated to identify and match cleaning accessory signals and recognize the accessory compartment's QR code. If no accessory signal or QR code is detected, the robot vacuum can identify usable cleaning tools during cleaning and perform robotic arm-assisted cleaning. Accessory signals assist the robotic arm in docking and gripping cleaning accessories, or AI can be used to identify cleaning tools. The degree of gripper opening helps determine if the corresponding tool has been gripped. A gripper camera can be used to identify whether the correct tool has been gripped. The robotic arm performs gripping and movement operations, simultaneously updating the environmental map, which may include sub-maps such as obstacle maps, narrow space maps, and cleanable non-ground areas. The robotic arm then performs the assisted cleaning operation.

[0252] The method provided in this application overcomes the limitation of traditional robotic vacuum cleaners that can only clean the ground surface, enabling the robotic arm to assist in cleaning a wider range of spaces, including non-ground areas. Based on multi-system collaborative optimization, the robotic arm control, object recognition, and path planning algorithms are deeply integrated, achieving a synergistic effect greater than the sum of its parts. Furthermore, it enhances scene adaptability, handling cleaning tasks in complex areas such as non-ground spaces and narrow areas, reducing the need for manual pre-cleaning. This method can also reuse existing robotic arm hardware resources and expand functionality through software upgrades, offering cost-effectiveness advantages.

[0253] Figure 4 This is a schematic diagram of the structure of the control device for the cleaning equipment provided in the embodiments of this application, as shown below. Figure 4 As shown, this application embodiment provides a control device for a cleaning device. The cleaning device includes a gripping device, which includes a robotic arm for performing gripping actions. The control device includes: a response module 401 for responding to a cleaning accessory replacement command, which instructs the cleaning device to replace a cleaning accessory; a determination module 402 for determining whether the cleaning accessory to be replaced corresponding to the cleaning accessory replacement command is in a preset storage location in the accessory compartment, which is used to store cleaning accessories; and a control module 403 for controlling the robotic arm to grip the cleaning accessory to be replaced and perform a cleaning task if it is determined that the cleaning accessory to be replaced is in the preset storage location.

[0254] In one possible implementation, the control module 403 is specifically used to: control the robotic arm to place the cleaning part currently held by the robotic arm into the part storage compartment; and after determining that the cleaning part to be returned has been placed into the part storage compartment, control the robotic arm to grab the cleaning part to be replaced.

[0255] In one possible implementation, the determining module 402 is specifically used to: identify the unique identifier of at least one cleaning accessory in the accessory compartment, and determine whether the cleaning accessory to be replaced is in a preset storage location based on the unique identifier of at least one cleaning accessory; and / or, scan the near-field communication tag on at least one cleaning accessory in the accessory compartment using a near-field communication card reader installed on the cleaning device, and determine whether the cleaning accessory to be replaced is in a preset storage location based on the data interaction identification result between the near-field communication card reader and the near-field communication tag.

[0256] In one possible implementation, the control module 403 is further configured to: if it is determined that the cleaning part to be replaced is not in the preset storage location, control the robotic arm to identify and grab the cleaning part to be replaced outside the part compartment, or control the robotic arm to grab cleaning tools in the environment where the cleaning equipment is located to perform the cleaning task, wherein the cleaning tools are tools used to assist in cleaning.

[0257] In one possible implementation, the control device further includes an identification module for: controlling the cleaning equipment to perform cleaning tasks and collecting environmental perception data of the cleaning equipment's surrounding environment during the execution process; and identifying obstacles in the environment, including cleaning tools, through a visual model based on the environmental perception data.

[0258] In one possible implementation, the identification module is further configured to: construct an environmental map corresponding to the environment based on environmental perception data; identify whether any obstacle is a tool used to assist in cleaning when any obstacle is identified through the visual model; if so, mark any obstacle as a cleaning tool in the environmental map and label the semantic and location information of the cleaning tool.

[0259] In one possible implementation, the control module 403 is further configured to: if it is determined that the cleaning accessory to be replaced is not in the preset storage location, control the robotic arm to obtain the target cleaning tool outside the accessory compartment, the target cleaning tool being a cleaning tool that meets the cleaning task requirements; and use the robotic arm to grasp the target cleaning tool and perform the cleaning task.

[0260] In one possible implementation, the identification module is further configured to: control the cleaning equipment to perform cleaning tasks and identify whether there are cleaning dead zones during the execution process; if there are cleaning dead zones and the cleaning accessory currently held by the robotic arm does not meet the requirements for cleaning the cleaning dead zones, generate a cleaning accessory replacement instruction.

[0261] In one possible implementation, the control device further includes a setting module for: determining whether the current cleaning settings include a robotic arm-assisted cleaning mode, the robotic arm-assisted cleaning mode being used to indicate that the cleaning device is allowed to perform a grasping action via the robotic arm; and, if it is determined that the current cleaning settings include a robotic arm-assisted cleaning mode, setting the cleaning device to allow the robotic arm to perform a grasping action during the execution of a cleaning task.

[0262] The control device for cleaning equipment provided in this application can be used to execute the technical solution of the control method for cleaning equipment in any of the above embodiments of this application. Its implementation principle and technical effect are similar, and will not be described again here.

[0263] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 5 As shown, the electronic device of this embodiment may include: at least one processor 501; and a memory 502 communicatively connected to the at least one processor; wherein the memory 502 stores instructions executable by the at least one processor 501, the instructions being executed by the at least one processor 501 to cause the electronic device to perform the method as described in any of the above embodiments.

[0264] Optionally, the memory 502 can be either standalone or integrated with the processor 501.

[0265] The implementation principle and technical effects of the electronic device provided in this embodiment can be found in the foregoing embodiments, and will not be repeated here.

[0266] This application also provides a cleaning device, which includes a gripping device and a robotic arm for performing gripping actions. The cleaning device is used to implement the method of any of the foregoing embodiments.

[0267] For example, cleaning equipment could be a robotic vacuum cleaner, a smart vacuum cleaner, etc.

[0268] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method of any of the foregoing embodiments.

[0269] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the method of any of the foregoing embodiments.

[0270] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed.

[0271] The integrated modules described above, implemented as software functional modules, can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.

[0272] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU) or other general-purpose processors. The processor can also be a Digital Signal Processor (DSP) or an Application Specific Integrated Circuit (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0273] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device, and may also be various media that can store program code, such as USB flash drives, portable hard drives, read-only memory (ROM), disks or optical discs.

[0274] The aforementioned storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof. Examples of storage media include Static Random-Access Memory (SRAM) or Electrically Erasable Programmable Read Only Memory (EEPROM).

[0275] Storage media can be, for example, erasable programmable read-only memory (EPROM) or programmable read-only memory (PROM). Storage media can also be read-only memory (ROM), magnetic storage, flash memory, magnetic disks, or optical disks. Storage media can be any available medium accessible to general-purpose or special-purpose computers.

[0276] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. The processor and storage medium can reside within an application-specific integrated circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components within an electronic device or host device.

[0277] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0278] The sequence numbers of the embodiments in this application are merely for description and do not represent the superiority or inferiority of the embodiments. Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.

[0279] Based on this understanding, the technical solution of this application, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0280] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

[0281] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.

[0282] It should be further noted that although the steps in the flowchart are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise explicitly stated in this document, there is no strict order requirement for the execution of these steps, and they can be executed in other orders.

[0283] Furthermore, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but may be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0284] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.

[0285] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0286] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A control method of a cleaning apparatus, characterized by, The cleaning device comprises a grabbing device, the grabbing device comprises a mechanical arm, the mechanical arm is used to perform a grabbing action, and the method comprises the following steps: In response to a cleaning accessory replacement instruction for instructing the cleaning device to replace a cleaning accessory, Determine whether the cleaning accessory to be replaced corresponding to the cleaning accessory replacement instruction is in a preset storage position in the accessory warehouse for storing the cleaning accessory; If it is determined that the cleaning accessory to be replaced is in the preset storage position, control the mechanical arm to grab the cleaning accessory to be replaced and perform a cleaning task.

2. The method of claim 1, wherein, The control of the mechanical arm to grab the cleaning accessory to be replaced comprises: Control the mechanical arm to place the cleaning accessory to be returned currently clamped by the mechanical arm into the accessory warehouse; After determining that the cleaning accessory to be returned has been placed into the accessory warehouse, control the mechanical arm to grab the cleaning accessory to be replaced.

3. The method of claim 1, wherein, The determination of whether the cleaning accessory to be replaced corresponding to the cleaning accessory replacement instruction is in a preset storage position in the accessory warehouse comprises: Identify the accessory unique identifier of at least one cleaning accessory in the accessory warehouse, and determine whether the cleaning accessory to be replaced is in the preset storage position according to the accessory unique identifier of the at least one cleaning accessory; And / or, through the near field communication card reader arranged on the cleaning device, scan the near field communication tag arranged on at least one cleaning accessory in the accessory warehouse, and according to the data interaction recognition result of the near field communication card reader and the near field communication tag, determine whether the cleaning accessory to be replaced is in the preset storage position.

4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: If it is determined that the cleaning accessory to be replaced is not in the preset storage position, control the mechanical arm to identify and grab the cleaning accessory to be replaced outside the accessory warehouse, or control the mechanical arm to grab a cleaning tool in the environment where the cleaning device is located to perform the cleaning task, the cleaning tool being a tool for assisting cleaning.

5. The method according to any one of claims 1 to 3, characterized in that, Before the response to the cleaning accessory replacement instruction, the method further comprises: Control the cleaning device to perform the cleaning task, and collect environmental perception data of the environment where the cleaning device is located during the performance; Based on the environmental perception data, identify obstacles in the environment through a visual model, the obstacles comprising a cleaning tool, the cleaning tool being a tool for assisting cleaning.

6. The method of claim 5, wherein, The method further comprises: Based on the environmental perception data, construct an environmental map corresponding to the environment; In the case that any obstacle is identified through the visual model, identify whether the any obstacle is a tool for assisting cleaning; If yes, mark the any obstacle as a cleaning tool in the environmental map, and mark semantic and position information of the cleaning tool.

7. The method of claim 5, wherein, The method further comprises: If it is determined that the cleaning accessory to be replaced is not in the preset storage position, control the mechanical arm to obtain a target cleaning tool outside the accessory warehouse, the target cleaning tool being a cleaning tool meeting the cleaning task requirement of the cleaning task; Grab the target cleaning tool through the mechanical arm, and perform the cleaning task.

8. The method according to any one of claims 1 to 3, characterized in that, The method further comprises, before responding to the cleaning accessory replacement instruction: controlling the cleaning device to perform the cleaning task, and identifying whether there is a cleaning dead corner area during the performance; generating the cleaning accessory replacement instruction in a case that there is the cleaning dead corner area and the cleaning accessory currently gripped by the mechanical arm does not meet the requirement of cleaning the cleaning dead corner area.

9. The method according to any one of claims 1 to 3, characterized in that, The method further comprises, before responding to the cleaning accessory replacement instruction: determining whether the current cleaning setting includes a mechanical arm assisted cleaning mode, the mechanical arm assisted cleaning mode being used to indicate that the cleaning device is allowed to perform a grabbing action through the mechanical arm during the performance of the cleaning task; setting the cleaning device to allow the grabbing action through the mechanical arm during the performance of the cleaning task in a case that it is determined that the current cleaning setting includes the mechanical arm assisted cleaning mode.

10. A cleaning apparatus, characterized by The cleaning device comprises a grabbing device, the grabbing device comprising a mechanical arm, the mechanical arm being used to perform a grabbing action, the cleaning device being used to perform the method according to any one of claims 1-9.