Cleaning method, cleaning robot and storage medium
By introducing cleaning task configuration interface and automatic execution functions into the cleaning robot, the problems of high labor costs and low efficiency in the prior art are solved, and automated timed cleaning is realized, saving labor costs and improving cleaning efficiency.
Patent Information
- Application Number
- CN202411339734.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-11-26
AI Technical Summary
The existing cleaning robot technology requires human operation, resulting in high labor costs and low efficiency, and the inability to achieve automated timed cleaning.
Provides a cleaning method and cleaning robot. By displaying a cleaning task configuration interface, users can configure cleaning mode, cycle cycle, cleaning time and cleaning area, generate target cleaning tasks, and automatically perform cleaning tasks at specified times.
It realizes automatic and timed cleaning without participation, saves labor costs and improves cleaning efficiency.
Smart Images

Figure CN119014750A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of robotics technology, and in particular to a cleaning method, a cleaning robot and a storage medium. Background Art
[0002] Robots have been gradually applied to various scenarios due to their automation and precision, replacing traditional manual operations. For example, they are applied to scenarios where cleaning is required to replace manual cleaning. In related technologies, when there is a need for cleaning, the user can select the cleaning area and cleaning mode, and instruct the robot to start cleaning. However, this cleaning method requires manual operation every time, which has high labor costs. Summary of the invention
[0003] The present application provides a cleaning method, a cleaning robot and a storage medium, which can automatically perform regular cleaning, save labor costs and improve cleaning efficiency. The technical solution is as follows:
[0004] In a first aspect, a cleaning method is provided, the method comprising:
[0005] Displaying a cleaning task configuration interface, wherein the cleaning task configuration interface includes a plurality of configuration items, wherein the plurality of configuration items include a cleaning mode configuration item, a cycle configuration item, a cleaning time configuration item, and a cleaning area configuration item;
[0006] In response to the received configuration instructions for the plurality of configuration items, generate configuration contents of the plurality of configuration items;
[0007] In response to the received confirmation instructions for the plurality of configuration items, generating a target cleaning task according to the configuration contents of the plurality of configuration items;
[0008] The cleaning robot is controlled to perform cleaning according to the target cleaning task.
[0009] In this application, a cleaning task configuration interface is displayed, and the cleaning task configuration interface includes multiple configuration items, including cleaning mode configuration items, cycle configuration items, cleaning time configuration items, and cleaning area configuration items. Users can configure the scheduled cleaning tasks (i.e., target cleaning tasks) including the elements of cleaning mode, cycle, cleaning time, and cleaning area through the cleaning task configuration interface. After the target cleaning task configuration is completed, when the time reaches the configured timing time, the cleaning robot can automatically clean the configured cleaning area according to the configured cleaning mode without user participation. In this way, scheduled cleaning can be automatically performed, saving labor costs and improving cleaning efficiency.
[0010] In a second aspect, a cleaning device is provided, the device comprising:
[0011] A first display module, used to display a cleaning task configuration interface, wherein the cleaning task configuration interface includes a plurality of configuration items, wherein the plurality of configuration items include a cleaning mode configuration item, a cycle configuration item, a cleaning time configuration item, and a cleaning area configuration item;
[0012] A first generating module, configured to generate configuration contents of the plurality of configuration items in response to received configuration instructions for the plurality of configuration items;
[0013] A second generating module, configured to generate a target cleaning task according to the configuration contents of the plurality of configuration items in response to the received confirmation instruction for the plurality of configuration items;
[0014] The control module is used to control the cleaning robot to perform cleaning according to the target cleaning task.
[0015] In a third aspect, a cleaning robot is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the cleaning method described in the first aspect when executed by the processor.
[0016] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the cleaning method described in the first aspect is implemented.
[0017] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the steps of the cleaning method described in the first aspect.
[0018] It can be understood that the beneficial effects of the second, third, fourth and fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 It is a structural schematic diagram of a cleaning robot provided in an embodiment of the present application;
[0021] Figure 2 is a schematic structural diagram of another cleaning robot provided in an embodiment of the present application;
[0022] Figure 3is a flow chart of a cleaning method provided in an embodiment of the present application;
[0023] Figure 4 It is a schematic diagram of an interface related to cleaning task configuration provided in an embodiment of the present application;
[0024] Figure 5 is another interface schematic diagram related to cleaning task configuration provided in an embodiment of the present application;
[0025] Figure 6 is another interface schematic diagram related to cleaning task configuration provided in an embodiment of the present application;
[0026] Figure 7 is another interface schematic diagram related to cleaning task configuration provided in an embodiment of the present application;
[0027] Figure 8 is a flow chart of a cleaning task configuration provided by an embodiment of the present application;
[0028] Fig. 9 It is a flow chart of a cleaning task execution provided by an embodiment of the present application;
[0029] Fig.10 It is a structural schematic diagram of a cleaning device provided in an embodiment of the present application;
[0030] Fig.11 It is a structural schematic diagram of a cleaning robot provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0032] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.
[0033] The phrases such as "one embodiment" or "some embodiments" described in the present application mean that the specific features, structures or characteristics described in the embodiment are included in one or more embodiments of the present application. Therefore, the phrases such as "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments" that appear in the differences in the present application do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. In addition, the terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0034] The cleaning robot provided in the embodiment of the present application is described below.
[0035] Figure 1 Schematic diagram of a cleaning robot provided in an embodiment of the present application. Figure 1 , the cleaning robot may include a head module 10 and a bottom module 20 .
[0036] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the cleaning robot. In some embodiments, the cleaning robot may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0037] The head module 10 is a structural component arranged on the upper part of the cleaning robot. Optionally, the head module 10 is provided with a hand-pushing mechanism, which may include a display module 101 and a moving module 102. The hand-pushing mechanism is used to provide a hand-pushing device when the user needs to perform manual cleaning.
[0038] The display module 101 is a module for realizing human-computer interaction. For example, the display module 100 can display the working mode of the cleaning robot. For example, the display module 101 can be a touch screen, a capacitive screen, etc., which is not limited in the embodiment of the present application.
[0039] In some embodiments, the working mode of the cleaning robot may include an automatic cleaning mode and a manual cleaning mode. The automatic cleaning mode is a mode in which the cleaning robot automatically cleans. In the automatic cleaning mode, the cleaning robot can clean according to a preset path and preset function according to a pre-acquired cleaning instruction; the manual cleaning mode is a mode in which the user manually controls the cleaning robot to clean. In the manual cleaning mode, the cleaning element 202 is in operation, and the user can push the cleaning robot to clean. In this embodiment, the cleaning robot is used in commercial scenarios, such as hotels, office buildings, and shopping malls.
[0040] Optionally, the display module 101 may also provide a user with functional operations, which may include one or more of cleaning task configuration, map display, and the like.
[0041] In some cases, the user can configure the cleaning task through the display module 101. Specifically, the display module 101 can display a cleaning task configuration interface, and the user can configure the cleaning task that the cleaning robot needs to perform through the cleaning task configuration interface.
[0042] In other cases, the cleaning robot can also receive cleaning tasks sent by other devices. Specifically, the user can configure the cleaning task that the cleaning robot needs to perform through the cleaning task configuration interface provided by the application (APP) installed in the terminal, and the terminal can send the cleaning task to the cleaning robot to control the cleaning robot to perform the cleaning task. For example, the terminal can be a mobile phone, a tablet computer, a laptop computer, etc., which is not limited in the embodiments of the present application.
[0043] The moving module 102 is a module that supports the display module 101 and is used to drive the display module 101 to move between an initial position and a preset position. The preset position can be preset.
[0044] It should be noted that when the moving module 102 drives the display module 101 to move to a preset position, the structure of the moving module 102 and the display module 101 is equivalent to a handle, and the user can push and pull the cleaning robot through the handle.
[0045] Optionally, the position of the display module 101 can reflect the working mode of the cleaning robot. Specifically, if the display module 101 is in the initial position, it means that the user does not want to manually control the cleaning robot, so it can be determined that the cleaning robot is in the automatic cleaning mode; if the display module 101 is in the preset position, it means that the user wants to manually control the cleaning robot, so it can be determined that the cleaning robot is in the manual cleaning mode.
[0046] Optionally, the head module 10 may further include a push button 103. The push button 103 is a workpiece for controlling the moving module 102 to reset from a preset position to an initial position or other arbitrary positions.
[0047] The bottom module 20 is a structural component arranged at the bottom of the cleaning robot. Optionally, the bottom module 20 may include a moving chassis 201 and a cleaning member 202 .
[0048] The mobile chassis 201 is used to drive the cleaning robot to move. For example, the mobile chassis 201 may include a driving wheel, a front wheel, etc. The driving wheel is used to drive the cleaning robot to move. The front wheel is used to guide the cleaning robot when it moves.
[0049] The cleaning member 202 is a component for cleaning. For example, the cleaning member 202 may include one or more of a roller brush, a side brush, a mopping member, and the like.
[0050] Optionally, the cleaning robot may further include a sensing module, which is used to detect the position of a portion of the moving module 102 that is connected to the display module 101 .
[0051] Optionally, the cleaning robot may further include a control module, which is electrically connected to the display module 101. The control module is used to control the display module 101 to display a function interface corresponding to the working mode of the cleaning robot.
[0052] Specifically, if the sensor module detects that the moving module 102 is in the initial position, it can be determined that the working mode of the cleaning robot is the automatic cleaning mode, and the control module can control the display module 101 to display the automatic cleaning mode function interface to prompt the user of the current status information of the hand-push mechanism; if the sensor module detects that the moving module 102 is in the preset position, it can be determined that the working mode of the cleaning robot is the manual cleaning mode, and the control module can control the display module 101 to display the manual cleaning mode function interface to prompt the user of the current status information of the hand-push mechanism.
[0053] In some embodiments, the manual cleaning mode function interface may display a parameter configuration interface of the cleaning member 202, and the parameter configuration interface is used to configure the working parameters of the cleaning member 202. In this case, the user can adjust the working state of the cleaning member 202 by modifying the working parameters of the cleaning member 202.
[0054] In some embodiments, the cleaning robot may further include a voice control component electrically connected to the sensor module, the voice control component being used to receive a voice warning instruction sent by the sensor module when the mobile module 102 is detected to move to an initial position or a preset position, and the voice warning instruction being used to instruct the voice control component to issue a corresponding voice warning. The voice warning may be a voice broadcast or a warning sound prompt, etc., which is not limited in the embodiments of the present application.
[0055] Optionally, the control module may include one or more of a robot operating system (ROS), a microcontroller, etc. Of course, the control module may also include other modules, which is not limited in the embodiments of the present application.
[0056] For example, ROS can process data from sensors such as lidar and cameras to perform environmental perception and map construction. ROS is also used for path planning so that the cleaning robot can navigate in the environment and avoid obstacles. ROS is also used to manage the cleaning strategy of the cleaning robot and achieve intelligent decision-making.
[0057] For example, the microcontroller is mainly responsible for directly controlling the hardware components of the cleaning robot, such as motors, sensors, etc. The microcontroller can execute instructions sent by ROS to control the movement of the cleaning robot, the start-up of the cleaning member 202, etc.
[0058] For example, the microcontroller may be an STM32 chip. Of course, the microcontroller may also be other chips, which is not limited in the embodiments of the present application.
[0059] Optionally, the cleaning robot may further include a motor. The motor is responsible for driving the movement and cleaning functions of the cleaning robot. The motor can help the mobile chassis 201 to move and drive the cleaning member 202, thereby effectively cleaning the floor.
[0060] Optionally, the cleaning robot may further include an inertial measurement unit (IMU). The IMU is used to measure the acceleration and angular velocity of the cleaning robot, and to help the cleaning robot perform posture estimation and stable control.
[0061] In some embodiments, the cleaning robot may further include a positioning system for real-time positioning of the cleaning robot. For example, the positioning system may include one or more of an inertial navigation system (INS), an odometer (Odometry), a global positioning system (GPS), a visual positioning system, a laser radar positioning system, etc., which is not limited in the embodiments of the present application.
[0062] Optionally, before the cleaning robot starts cleaning, the positioning system can obtain a target map, which is a map of the area that needs to be cleaned. Specifically, the cleaning robot can move in the area, and the positioning system can obtain the location information of the cleaning robot during the movement of the cleaning robot, as well as collect environmental information, and then build a map of the area (i.e., a target map) based on the location information and the environmental information and store it. In this way, when the cleaning robot needs to clean the area later, it can plan a path based on the target map.
[0063] In some cases, if the area to be cleaned involves multiple floors (i.e., across floors), the cleaning robot can move in areas of different floors to collect environmental information, and then build a map of each floor based on the collected environmental information of each of the multiple floors, and finally synthesize the maps of each floor in the multiple floors to obtain the target map.
[0064] Optionally, during the cleaning process, the cleaning robot can use the positioning system to locate the cleaning robot in real time, and mark the cleaned area accordingly.
[0065] For ease of understanding, the following Figure 2 The working process of the cleaning robot in the embodiment of the present application is exemplified.
[0066] like Figure 2 As shown, the user can configure the cleaning task through the APP installed in the terminal, and the APP can send the cleaning task to the ROS in the cleaning robot.
[0067] The laser radar in the cleaning robot can send the collected environmental information to the ROS.
[0068] The motor in the cleaning robot can send data such as the running status, load, temperature, etc. of the motor to the STM32 chip in the cleaning robot. The IMU in the cleaning robot can send the posture data and motion status data of the cleaning robot to the STM32 chip. The STM32 chip processes the received data sent by the motor and the data sent by the IMU, and sends the processed data to the ROS.
[0069] After the ROS receives the cleaning task, when it needs to execute the cleaning task, it plans the path according to the cleaning task and the environmental information sent by the lidar, and then controls the movement of the cleaning robot according to the planned path and the data sent by the STM32 chip, so that the cleaning robot can perform the cleaning task stably and efficiently.
[0070] The cleaning method provided in the embodiments of the present application is explained in detail below.
[0071] Figure 3 is a flow chart of a cleaning method provided in an embodiment of the present application. Figure 3 , the method comprises the following steps:
[0072] Step 301: The computer device displays a cleaning task configuration interface, which includes multiple configuration items.
[0073] The computer device may be a terminal used by a user, or the computer device may be Figure 1The cleaning robot shown is not limited to this embodiment of the present application.
[0074] The multiple configuration items are configuration items for configuring the content of the cleaning task. For example, the multiple configuration items may include one or more of a task name configuration item, a cleaning mode configuration item, a cycle configuration item, a cleaning time configuration item, a cleaning area configuration item, a cleaning times configuration item, and the like.
[0075] The task name configuration item is used to configure the task name of the cleaning task.
[0076] The cleaning mode configuration item is used to configure the cleaning mode of the cleaning robot. For example, the cleaning mode configuration item may include one or more of a dust-pushing mode option, a vacuuming mode option, a floor-scrubbing mode option, etc. Among them, the dust-pushing mode option is an option for setting the cleaning robot to operate in the dust-pushing mode. The vacuuming mode option is an option for setting the cleaning robot to operate in the vacuuming mode. The floor-scrubbing mode option is an option for setting the cleaning robot to operate in the floor-scrubbing mode.
[0077] The cycle configuration item is a configuration item for configuring the execution cycle of the cleaning task. For example, the cycle configuration item may include one or more of a single option, a daily option, a weekly option, etc. Among them, the single option is an option for setting the cleaning task to be executed on a certain day; the daily option is an option for setting the cleaning task to be executed every day; and the weekly option is an option for setting the cleaning task to be executed on a fixed number of weeks from Monday to Sunday.
[0078] The cleaning time configuration item is a configuration item for configuring the start time of the cleaning task.
[0079] The cleaning area configuration item is a configuration item for configuring the area to be cleaned by the cleaning task. For example, the cleaning area configuration item may include options for selecting one or more areas in one or more floors.
[0080] The cleaning times configuration item is used to configure the cleaning times when cleaning the cleaning area.
[0081] Since the cleaning task configuration interface includes all configuration items related to a cleaning task, the user can know all configuration contents required when configuring the cleaning task according to the cleaning task configuration interface.
[0082] For example, the computer device may display Figure 4 The home page for configuring the cleaning task shown in FIG. (a) includes an immediate cleaning option, a scheduled cleaning option, and a manual cleaning option. The user can click on the scheduled cleaning option, and in response to the click operation, the computer device can display the following Figure 4The cleaning task interface shown in FIG. (b) includes one or more configured cleaning tasks and a new task option. Afterwards, the user can click the new task option, and in response to the click operation, the computer device can display the following Figure 4 The cleaning task configuration interface shown in Figure (c) may include a task name configuration item, a cleaning mode configuration item, a cycle configuration item, a cleaning time configuration item, a cleaning area configuration item, and a cleaning times configuration item. Users may configure the cleaning task based on the multiple configuration items.
[0083] Step 302: In response to the received configuration instructions for the multiple configuration items, the computer device generates configuration contents of the multiple configuration items.
[0084] The configuration instruction may be triggered by a user. The user may edit the configuration content of at least one configuration item among the multiple configuration items.
[0085] The configuration instructions of the user for different configuration items may be triggered separately. Whenever the computer device receives a configuration instruction for a configuration item in the cleaning task configuration interface, the configuration content of the configuration item may be edited according to the configuration instruction received this time.
[0086] For example, the computer device displays Figure 4 After viewing the cleaning task configuration interface shown in Figure (c), the user can configure the cleaning task based on the task name configuration item, cleaning mode configuration item, cycle configuration item, cleaning time configuration item, cleaning area configuration item and cleaning times configuration item displayed on the cleaning task configuration interface.
[0087] For example, the user may click on the task name configuration item, and in response to the click operation, the computer device may display the following information: Figure 5 The task name configuration interface shown in Figure (a) in FIG. The user can set the task name of the cleaning task to scheduled task 1 in the task name configuration interface, and then click the Save button to save the task name of the cleaning task.
[0088] For example, the user may click on the cleaning mode configuration item, and in response to the click operation, the computer device may display the following information: Figure 5 The cleaning mode configuration interface shown in FIG. 20( b) in FIG. 20( b) in FIG. 20( c ... c) in FIG. 20( b) in FIG.
[0089] For example, the user may click on the cycle mode configuration item, and in response to the click operation, the computer device may display the following Figure 5The cyclic mode configuration interface shown in Figure (c) of FIG. The user can select a mode from the single mode, weekly mode, and daily mode in the cyclic mode configuration interface. Assuming that the user selects the weekly mode, the computer device can display the following Figure 5 The week mode configuration interface shown in Figure (d) in FIG. The user can complete the week mode configuration by selecting a specific week number in the week mode configuration interface. Figure 5 As shown in Figure (e), after the configuration is completed, the cleaning task configuration interface can display the configured week number.
[0090] For example, Figure 5 As shown in Figure (e), the user can trigger the increase button and decrease button of the cleaning times configuration item to adjust the cleaning times.
[0091] For example, the user may click on the cleaning time configuration item, and in response to the click operation, the computer device may display the following information: Figure 5 The cleaning time configuration interface shown in Figure (f) in FIG. The user can configure the cleaning time of the cleaning task in the cleaning time configuration interface.
[0092] Continuing with the above example, Figure 6 As shown in Figure (a) of FIG. 1 , if the user clicks the Save button in the cleaning task configuration interface without configuring the cleaning area, the computer device will display a prompt message "Please set the cleaning area" in the cleaning task configuration interface to prompt the user to configure the cleaning area. Afterwards, the user can click the cleaning area configuration item, and in response to the click operation, the computer device can display the following Figure 6 The cleaning area configuration interface shown in FIG. (b) in FIG. 1 shows one or more areas and a new area button. The user can select an area from the one or more areas as the cleaning area of the cleaning task, or the user can click the new area button to create a new cleaning area for the cleaning task. Assuming that the user clicks the new area button, in response to the click operation, the computer device can display the following Figure 6 The cleaning area selection interface shown in Figure (c) in the figure displays 7 floors, the area of each of the 7 floors, a cancel button, a select all button and a save button.
[0093] Assume that the user clicks on the third floor (i.e., 3F as shown in the figure), in response to the click operation, the computer device may display the following Figure 6 As shown in Figure (d) of the fifth floor, the user can select area 1, area 3 and area 5 as the cleaning area, thus completing the configuration of the cleaning area on a single floor. Figure 6As shown in Figure (e), the user can select 3 areas as cleaning areas from all areas on each of the 1st floor, 2nd floor, 3rd floor, 4th floor, 6th floor, and 7th floor, thus completing the configuration of cleaning areas across floors.
[0094] After configuring the cleaning area, the user can click the Save button in the Cleaning Area Selection Interface to save the configured cleaning area. Figure 6 As shown in Figure (f) in FIG. 1 , the computer device can display the configured cleaning area in the cleaning task configuration interface; if the configured cleaning area crosses floors, Figure 6 As shown in Figure (g), the computer device can display the configured floors in the cleaning task configuration interface.
[0095] It should be noted that, during the process of configuring the cleaning area, the user can also delete some floors from the selected floors.
[0096] Continuing with the above example, after the computer device displays the cleaning area selection interface, Figure 7 As shown in FIG. 1 (a), the user can long press a floor (such as 4F shown in the figure) among the selected cleaning floors. In response to the long press operation, the computer device can display the following Figure 7 The floor deletion interface shown in FIG. (b) in FIG. 1 is shown in FIG. 2. Afterwards, the user can click a delete button of a floor (such as 4F shown in the figure) in the floor deletion interface. In response to the click operation, the computer device can display the following information: Figure 7 The prompt message "Confirm to delete the current 4F floor" shown in Figure (c) in FIG. After the user clicks the confirmation button in the prompt message, Figure 7 As shown in Figure (d) in the figure, the computer device can delete the floor from the selected cleaning floors.
[0097] In some embodiments, after the computer device generates the configuration contents of the multiple configuration items, it can determine whether there is a time conflict between the cleaning task being configured and a valid cleaning task based on the configuration contents of the cycle configuration item and the configuration contents of the cleaning time configuration item, where a valid cleaning task is a cleaning task that is in a valid state; if there is a time conflict between the cleaning task being configured and the valid cleaning task, a reminder message is displayed to remind the user that there is a time conflict between the cleaning task being configured and other cleaning tasks.
[0098] The task status of a cleaning task can include an effective state and an invalid state. If the task status of a cleaning task is effective, it means that the cleaning task is currently effective (i.e. enabled), that is, the cleaning task needs to be executed; if the task status of a cleaning task is invalid, it means that the cleaning task is currently ineffective (i.e. disabled), that is, the cleaning task does not need to be executed.
[0099] The task status of the cleaning task can be set manually by the user or automatically by the computer device. Figure 4 The cleaning task interface shown in Figure (b) in FIG. 1 shows the lobby dust pushing cleaning task, the public area corridor vacuuming 1 task, the public area corridor vacuuming 2 task, and the public area corridor vacuuming 3 task. The user can choose to enable or disable the cleaning task by clicking the switch corresponding to each cleaning task. For example, the user can click the switch corresponding to the public area corridor vacuuming 1 task to disable the cleaning task.
[0100] Time conflict between two cleaning tasks means that the execution times of the two cleaning tasks are close to or the same.
[0101] Since the cleaning robot can only perform one cleaning task in a time period, if the cleaning task being configured conflicts with a valid cleaning task, the cleaning task being configured cannot be performed normally. Therefore, the computer device can determine whether there is a time conflict between the cleaning task being configured and the valid cleaning task during the process of configuring the cleaning task, so as to avoid creating invalid cleaning tasks as much as possible.
[0102] In some embodiments, if the cleaning task being configured conflicts with the effective cleaning task, the computer device may display a reminder message, such as a reminder message that "another cleaning task already exists at the current time", to prompt the user to adjust the cleaning time of the current cleaning task.
[0103] In some embodiments, the operation of the computer device determining whether there is a time conflict between the cleaning task being configured and the effective cleaning task according to the configuration content of the cycle configuration item and the configuration content of the cleaning time configuration item may include the following three situations:
[0104] The first case: for any valid cleaning task, if the cycle period of the valid cleaning task and the configuration content of the cycle period configuration item are both daily modes, then when the time interval between the cleaning time of the valid cleaning task and the configuration content of the cleaning time configuration item is greater than or equal to the first preset duration, the computer device determines that there is no time conflict between the cleaning task being configured and the valid cleaning task; when the time interval between the cleaning time of the valid cleaning task and the configuration content of the cleaning time configuration item is less than the first preset duration, it is determined that there is a time conflict between the cleaning task being configured and the valid cleaning task.
[0105] The first preset duration is the estimated maximum duration required for the cleaning robot to perform a cleaning task. The first preset duration can be preset. For example, the first preset duration can be set to 30 minutes, 31 minutes, 32 minutes, etc., which is not limited in the embodiments of the present application.
[0106] If the cycle period of the effective cleaning task and the configuration content of the cycle period configuration item are both daily modes, it means that the effective cleaning task and the cleaning task being configured are both executed every day, so it is only necessary to determine whether there is a conflicting time period between the cleaning time of the effective cleaning task and the cleaning task being configured.
[0107] In this case, if the time interval between the cleaning time of the effective cleaning task and the configuration content of the cleaning time configuration item is greater than or equal to the first preset duration, it means that the execution time period of the effective cleaning task does not conflict with the execution time period of the cleaning task being configured, so it can be determined that there is no time conflict between the cleaning task being configured and the effective cleaning task; if the time interval between the cleaning time of the effective cleaning task and the configuration content of the cleaning time configuration item is less than the first preset duration, it means that the execution time period of the effective cleaning task conflicts with the execution time period of the cleaning task being configured, so it can be determined that there is a time conflict between the cleaning task being configured and the effective cleaning task.
[0108] The second situation: for any valid cleaning task, if the cycle period of the valid cleaning task and the configuration content of the cycle period configuration item are both week modes, then when the time interval between the cleaning time of the valid cleaning task and the configuration content of the cleaning time configuration item is greater than or equal to the first preset duration, it is determined that there is no time conflict between the cleaning task being configured and the valid cleaning task; when the time interval between the cleaning time of the valid cleaning task and the configuration content of the cleaning time configuration item is less than the first preset duration, if the cycle period of the valid cleaning task and the configuration content of the cycle period configuration item contain one or more identical week numbers, it is determined that there is a time conflict between the cleaning task being configured and the valid cleaning task; if the cycle period of the valid cleaning task and the configuration content of the cycle period configuration item do not contain the same week numbers, it is determined that there is no time conflict between the cleaning task being configured and the valid cleaning task.
[0109] If the cycle of the effective cleaning task and the configuration content of the cycle configuration item are both weekly modes, it means that the effective cleaning task and the cleaning task being configured are both executed on certain days of the week.
[0110] In this case, if the time interval between the cleaning time of the effective cleaning task and the configuration content of the cleaning time configuration item is greater than or equal to the first preset duration, it means that the execution time period of the effective cleaning task does not conflict with the execution time period of the cleaning task being configured, so it can be directly determined that there is no time conflict between the cleaning task being configured and the effective cleaning task.
[0111] If the time interval between the cleaning time of the effective cleaning task and the configuration content of the cleaning time configuration item is less than the first preset duration, it means that the execution time period of the effective cleaning task may conflict with the execution time period of the cleaning task being configured. Therefore, it is possible to continue to determine whether the cycle period of the effective cleaning task and the configuration content of the cycle period configuration item have the same number of weeks.
[0112] If the cycle period of the effective cleaning task and the configuration content of the cycle period configuration item have the same number of weeks, it means that the execution time period of the effective cleaning task conflicts with the execution time period of the cleaning task being configured, so it can be determined that there is a time conflict between the effective cleaning task and the cleaning task being configured; if the cycle period of the effective cleaning task and the configuration content of the cycle period configuration item do not have the same number of weeks, it means that the execution time period of the effective cleaning task does not conflict with the execution time period of the cleaning task being configured, so it can be determined that there is no time conflict between the effective cleaning task and the cleaning task being configured.
[0113] The third case: for any valid cleaning task, if the cycle period of the valid cleaning task and the configuration content of the cycle period configuration item are both single mode, or if the cycle period of the valid cleaning task and the configuration content of the cycle period configuration item are different in mode, then the next execution time of the valid cleaning task is determined, and the next execution time of the cleaning task being configured is determined according to the configuration content of the cycle period configuration item and the configuration content of the cleaning time configuration item; if the time interval between the next execution time of the valid cleaning task and the next execution time of the cleaning task being configured is greater than or equal to the first preset duration, then it is determined that there is no time conflict between the cleaning task being configured and the valid cleaning task; if the time interval between the next execution time of the valid cleaning task and the next execution time of the cleaning task being configured is less than the first preset duration, then it is determined that there is a time conflict between the cleaning task being configured and the valid cleaning task.
[0114] The next execution time of the cleaning task includes the next execution date and cleaning time of the cleaning task.
[0115] The different modes of the cycle period of the effective cleaning task and the configuration content of the cycle period configuration item may include: the cycle period of the effective cleaning task is a daily mode and the configuration content of the cycle period configuration item is a weekly mode, or the cycle period of the effective cleaning task is a daily mode and the configuration content of the cycle period configuration item is a single mode, or the cycle period of the effective cleaning task is a weekly mode and the configuration content of the cycle period configuration item is a single mode, or the cycle period of the effective cleaning task is a weekly mode and the configuration content of the cycle period configuration item is a daily mode, or the cycle period of the effective cleaning task is a single mode and the configuration content of the cycle period configuration item is a daily mode, or the cycle period of the effective cleaning task is a single mode and the configuration content of the cycle period configuration item is a weekly mode.
[0116] For example, assuming that the first preset duration is 0.5 hours, the cycle of the effective cleaning task is weekly mode, and the next execution time of the effective cleaning task is 12:00 on Wednesday of this week. The configuration content of the cycle configuration item is single mode, and the next execution time of the cleaning task being configured is 15:00 on Tuesday of this week. Then the computer device can determine that the time interval between the next execution time of the effective cleaning task and the next execution time of the cleaning task being configured is 21 hours, which is greater than the first preset duration, so it can be determined that there is no time conflict between the effective cleaning task and the cleaning task being configured.
[0117] For another example, assuming that the first preset duration is 3 hours, the cycle of the effective cleaning task is in single mode, and the next execution time of the effective cleaning task is 14:30 on June 3. The configuration content of the cycle configuration item is daily mode, and the next execution time of the cleaning task being configured is 14:15 on June 3. Then the computer device can determine that the time interval between the next execution time of the effective cleaning task and the next execution time of the cleaning task being configured is 0.25 hours, which is less than the first preset duration, so it can be determined that there is a time conflict between the effective cleaning task and the cleaning task being configured.
[0118] Step 303: In response to the received confirmation instructions for the multiple configuration items, the computer device generates a target cleaning task according to the configuration contents of the multiple configuration items.
[0119] The target cleaning task may include cleaning task information. The cleaning task information may include the configuration content of each configuration item in the multiple configuration items in the target cleaning task. For example, the cleaning task information may include one or more of task name, cleaning mode, cycle, cleaning time, cleaning area, number of cleaning times, etc.
[0120] After the user completes the configuration of the multiple configuration items in the cleaning task configuration interface, the user can trigger a confirmation instruction to instruct the generation of a target cleaning task. The target cleaning task can be a scheduled cleaning task.
[0121] In the embodiment of the present application, since the target cleaning task is configured with the cleaning mode of the cleaning robot, the cycle period of the cleaning robot to perform the cleaning task, the cleaning time and the cleaning area to be cleaned, etc., the cleaning robot can automatically perform the target cleaning task without human intervention, thereby reducing labor costs and improving cleaning efficiency.
[0122] In some embodiments, after the computer device generates the target cleaning task according to the configuration contents of the multiple configuration items, the computer device can set an alarm time according to the cycle and cleaning time of the target cleaning task. In this case, when the time reaches the alarm time, the computer device can set an alarm to remind the user that it is time for scheduled cleaning.
[0123] In some embodiments, after the cleaning robot generates the target cleaning task, the target cleaning task can be added to the cleaning task list, and the cleaning task list can be displayed in the cleaning task interface. One or more cleaning tasks in the cleaning task list are all configured cleaning tasks.
[0124] Step 304: The computer device controls the cleaning robot to perform cleaning according to the target cleaning task.
[0125] In the embodiment of the present application, the cleaning robot can automatically clean the configured cleaning area according to the cleaning mode configured for the target cleaning task when the time reaches the cycle period of the target cleaning task and the execution time indicated by the cleaning time. In this way, it can automatically perform scheduled cleaning and save labor costs.
[0126] In some embodiments, the operation of step 304 may be: if the current time reaches the execution time indicated by the cycle period and cleaning time of the target cleaning task, and if the task status of the target cleaning task is a valid state, then determine whether to execute the target cleaning task according to the device status of the cleaning robot; if it is determined to execute the target cleaning task, send a cleaning message to the cleaning robot, and the cleaning message carries the cleaning mode and cleaning area of the target cleaning task. Optionally, the cleaning message may also carry the number of cleaning times of the target cleaning task.
[0127] For example, the device state of the cleaning robot may include one or more of a positioning state, a motor state, a power state, a handrail state, a component state, etc. The device state of the cleaning robot may be sent by the cleaning robot (such as ROS) to the computer device.
[0128] The positioning status is used to indicate whether the positioning of the cleaning robot is normal.
[0129] The motor status is used to indicate whether the motor of the cleaning robot is in a locked state or an unlocked state. If the motor is in a locked state, it means that the cleaning robot is currently in an autonomous moving state; if the motor is in an unlocked state, it means that the cleaning robot is currently in a manual moving state.
[0130] The power status is used to indicate whether the remaining power of the cleaning robot is sufficient to perform the cleaning task.
[0131] The armrest status is used to indicate whether the armrest of the cleaning robot is pulled up.
[0132] The component status is used to indicate whether the component of the cleaning robot is normal.
[0133] If the current time reaches the execution time indicated by the cycle period and cleaning time of the target cleaning task, and the task status of the target cleaning task is valid, it means that the target cleaning task needs to be executed at present, so the device status of the cleaning robot can be obtained to determine whether the cleaning robot is currently in a condition to execute the target cleaning task. In the case of determining to execute the target cleaning task, the computer device can send a cleaning message to the cleaning robot.
[0134] In some cases, before the computer device sends the cleaning message to the cleaning robot, it can first obtain the charging status of the cleaning robot, and the charging status is used to indicate whether the cleaning robot is charging at the charging pile; if the cleaning robot is charging at the charging pile, the computer device can send a stop charging message to the cleaning robot to instruct the cleaning robot to stop charging, and then send the cleaning message to the cleaning robot; if the cleaning robot is not charging at the charging pile, the computer device can send the cleaning message directly to the cleaning robot.
[0135] Optionally, before the computer device determines whether to execute the target cleaning task based on the device status of the cleaning robot, it can also obtain the task execution status of the cleaning robot, where the task execution status is used to indicate whether the cleaning robot is currently executing a cleaning task; if the cleaning robot is currently executing a cleaning task, it is determined not to execute the target cleaning task; if the cleaning robot is not currently executing a cleaning task, it can continue to determine whether to execute the target cleaning task based on the device status of the cleaning robot.
[0136] In some embodiments, the operation of the computer device determining whether to execute the target cleaning task according to the device state of the cleaning robot may be: if the device state of the cleaning robot is a preset device state, determining whether to execute the target cleaning task according to the elevator state of the cleaning robot.
[0137] The preset device state is a state in which the cleaning robot can normally perform cleaning tasks. The preset device state can be set in advance. For example, the preset device state may include one or more of the following: the positioning of the cleaning robot is normal, the motor of the cleaning robot is in a locked state, the power of the cleaning robot is greater than or equal to the preset power, the armrest of the cleaning robot is in position, the components of the cleaning robot are operating normally, etc.
[0138] The preset power level can be preset. For example, the preset power level can be set to 15%, 16%, 17%, etc., which is not limited in the embodiment of the present application.
[0139] The elevator-taking status of the cleaning robot is used to indicate whether the cleaning robot is currently taking the elevator.
[0140] If the device state of the cleaning robot is the preset device state, it means that the cleaning robot is in a device state that can normally perform the target cleaning task. In this case, the computer device can obtain the elevator state of the cleaning robot. If the elevator state of the cleaning robot is not in the elevator state, it means that the cleaning robot can currently move normally, so it can be determined to perform the target cleaning task; if the elevator state of the cleaning robot is in the elevator state, it means that the cleaning robot cannot currently move, so it can be determined not to perform the target cleaning task.
[0141] In some cases, if the computer device detects that the cleaning robot's elevator status is not in the elevator within a second preset time period after detecting that the cleaning robot's elevator status is in the elevator, it can determine to execute the target cleaning task and send a cleaning message to the cleaning robot.
[0142] The second preset duration can be set in advance. The second preset duration can be set shorter, and the second preset duration is less than the first preset duration. For example, the second preset duration can be 1 minute, 2 minutes, etc., which is not limited in the embodiment of the present application.
[0143] In some embodiments, after the computer device sends a cleaning message to the cleaning robot, the cleaning robot can perform a target cleaning task based on the cleaning message, and after the target cleaning task is completed, it can send a cleaning completion message to the computer device. After receiving the cleaning completion message sent by the cleaning robot, the computer device can send a charging message to the cleaning robot to instruct the cleaning robot to go to the charging pile for charging. In this way, it can be ensured to a certain extent that the cleaning robot has sufficient power when performing the cleaning task next time.
[0144] In some embodiments, after the execution of the target cleaning task is completed, such as after receiving a cleaning completion message sent by the cleaning robot, the computer device can set the task status of the target cleaning task to an invalid state if the cycle of the target cleaning task is in a single mode.
[0145] Optionally, after the cleaning robot completes the target cleaning task, it can send cleaning data to the computer device, and the cleaning data is used to indicate the areas that have been cleaned and the areas that have not been cleaned during this cleaning process. The user can view the cleaning data in the computer device, and determine the areas that the cleaning robot cannot clean based on the cleaning data, and then clean them manually by the user.
[0146] For ease of understanding, the following Figure 8 The configuration process of the above cleaning task is exemplified.
[0147] Figure 8 is a flow chart of a cleaning task configuration provided by an embodiment of the present application. Figure 8 , the cleaning task configuration process may include the following steps 801 to 804.
[0148] Step 801: The computer device generates configuration contents of the multiple configuration items according to the received configuration instructions for the multiple configuration items.
[0149] Step 802: The computer device determines whether there is a time conflict between the cleaning task being configured and the effective cleaning task according to the configuration content of the cycle configuration item and the configuration content of the cleaning time configuration item.
[0150] If there is a time conflict between the cleaning task being configured and the effective cleaning task, step 803 is executed; if there is no time conflict between the cleaning task being configured and the effective cleaning task, step 804 is executed.
[0151] Step 803: The computer device prompts that there is a time conflict.
[0152] Step 804: The computer device generates a target cleaning task according to the configuration contents of the multiple configuration items, and sets an alarm time according to the cycle period and cleaning time of the target cleaning task.
[0153] Combine the following Fig. 9 The execution process of the above cleaning task is illustrated by way of example.
[0154] Fig. 9 is a flowchart of a cleaning task execution provided by an embodiment of the present application. Fig. 9 , the cleaning task execution process may include the following steps 901 to 908.
[0155] Step 901: The computer device determines that the current time reaches the alarm time corresponding to the cleaning task.
[0156] Step 902: The computer device determines whether the device state of the cleaning robot is a preset device state and the elevator state is in the elevator state.
[0157] If the device state of the cleaning robot is not the preset device state, and / or the elevator state of the cleaning robot is in the elevator, execute step 903; if the device state of the cleaning robot is the preset device state and the elevator state of the cleaning robot is not in the elevator, execute step 904.
[0158] Step 903: The computer device determines not to execute the cleaning task.
[0159] Step 904: The computer device determines whether the charging status of the cleaning robot is charging.
[0160] If the charging status of the cleaning robot is charging, execute step 905; if the charging status of the cleaning robot is not charging, execute step 906.
[0161] Step 905: The computer device sends a stop charging message to the cleaning robot, and executes step 906.
[0162] Step 906: The computer device sends a cleaning message to the cleaning robot, where the cleaning message carries the cleaning mode and cleaning area of the cleaning task.
[0163] Step 907: The computer device receives a cleaning completion message sent by the cleaning robot.
[0164] Step 908: The computer device sends a charging message to the cleaning robot.
[0165] In an embodiment of the present application, a computer device displays a cleaning task configuration interface, which includes multiple configuration items, including a cleaning mode configuration item, a cycle configuration item, a cleaning time configuration item, and a cleaning area configuration item. Users can configure the timing cleaning task (i.e., target cleaning task) including the elements of cleaning mode, cycle, cleaning time, and cleaning area through the cleaning task configuration interface. After the target cleaning task configuration is completed, when the time arrives at the configured timing time, the cleaning robot can automatically clean the configured cleaning area according to the configured cleaning mode without user participation. In this way, regular cleaning can be automatically performed, saving labor costs and improving cleaning efficiency.
[0166] Fig.10Schematic diagram of a cleaning device provided in an embodiment of the present application. The device can be implemented as part or all of a computer device by software, hardware or a combination of both. The computer device can be as follows Fig.11 The cleaning robot shown. Fig.10 The device includes: a first display module 1001, a first generation module 1002, a second generation module 1003, and a control module 1004.
[0167] A first display module 1001 is used to display a cleaning task configuration interface, which includes multiple configuration items, including a cleaning mode configuration item, a cycle configuration item, a cleaning time configuration item, and a cleaning area configuration item;
[0168] A first generating module 1002, configured to generate configuration contents of the multiple configuration items in response to received configuration instructions for the multiple configuration items;
[0169] A second generating module 1003 is used to generate a target cleaning task according to the configuration contents of the multiple configuration items in response to the received confirmation instruction of the multiple configuration items;
[0170] The control module 1002 is used to control the cleaning robot to perform cleaning according to the target cleaning task.
[0171] Optionally, the multiple configuration items also include one or more of a task name configuration item and a cleaning times configuration item.
[0172] Optionally, the cleaning mode configuration item includes one or more of a dust pushing mode option, a vacuuming mode option, and a floor washing mode option.
[0173] Optionally, the cleaning area configuration item includes an option for selecting one or more areas in one or more floors.
[0174] Optionally, the device further comprises:
[0175] A determination module, used to determine whether there is a time conflict between the cleaning task being configured and a valid cleaning task according to the configuration content of the cycle configuration item and the configuration content of the cleaning time configuration item, where the valid cleaning task is a cleaning task in a valid state;
[0176] The second display module is used to display a reminder message if there is a time conflict between the cleaning task being configured and the effective cleaning task, so as to remind the user that there is a time conflict between the cleaning task being configured and the other cleaning tasks.
[0177] Optionally, the determination module is used to:
[0178] For any valid cleaning task, if the cycle of the valid cleaning task and the configuration content of the cycle configuration item are both daily modes, then if the time interval between the cleaning time of the valid cleaning task and the configuration content of the cleaning time configuration item is greater than or equal to the first preset time length, it is determined that there is no time conflict between the cleaning task being configured and the valid cleaning task;
[0179] When the time interval between the cleaning time of the effective cleaning task and the configuration content of the cleaning time configuration item is less than the first preset time length, it is determined that there is a time conflict between the cleaning task being configured and the effective cleaning task.
[0180] Optionally, the determination module is used to:
[0181] For any valid cleaning task, if the cycle of the valid cleaning task and the configuration content of the cycle configuration item are both weekly modes, then if the time interval between the cleaning time of the valid cleaning task and the configuration content of the cleaning time configuration item is greater than or equal to the first preset time length, it is determined that there is no time conflict between the cleaning task being configured and the valid cleaning task;
[0182] When the time interval between the cleaning time of the effective cleaning task and the configuration content of the cleaning time configuration item is less than the first preset duration, if the cycle period of the effective cleaning task and the configuration content of the cycle period configuration item have one or more identical week numbers, it is determined that the cleaning task being configured has a time conflict with the effective cleaning task; if the cycle period of the effective cleaning task and the configuration content of the cycle period configuration item do not have the same week numbers, it is determined that the cleaning task being configured has no time conflict with the effective cleaning task.
[0183] Optionally, the determination module is used to:
[0184] For any valid cleaning task, if the cycle of the valid cleaning task and the configuration content of the cycle configuration item are both single-shot mode, or if the cycle of the valid cleaning task and the configuration content of the cycle configuration item are in different modes, then determine the next execution time of the valid cleaning task, and determine the next execution time of the cleaning task being configured according to the configuration content of the cycle configuration item and the configuration content of the cleaning time configuration item;
[0185] If the time interval between the next execution time of the effective cleaning task and the next execution time of the cleaning task being configured is greater than or equal to the first preset time length, it is determined that there is no time conflict between the cleaning task being configured and the effective cleaning task;
[0186] If the time interval between the next execution time of the effective cleaning task and the next execution time of the cleaning task being configured is less than the first preset time length, it is determined that there is a time conflict between the cleaning task being configured and the effective cleaning task.
[0187] Optionally, the device further comprises:
[0188] The first setting module is used to set the task state of the target cleaning task to an invalid state after the target cleaning task is executed and if the cycle period of the target cleaning task is a single mode.
[0189] Optionally, the device further comprises:
[0190] The second setting module is used to set the alarm time according to the cycle period and cleaning time of the target cleaning task.
[0191] Optionally, the control module 1002 is used to:
[0192] If the current time reaches the execution time indicated by the cycle period and cleaning time of the target cleaning task, and if the task status of the target cleaning task is a valid state, determining whether to execute the target cleaning task according to the device status of the cleaning robot;
[0193] When it is determined to execute the target cleaning task, a cleaning message is sent to the cleaning robot, where the cleaning message carries the cleaning mode and cleaning area of the target cleaning task.
[0194] Optionally, the control module 1002 is used to:
[0195] If the device state of the cleaning robot is a preset device state, whether to execute the target cleaning task is determined according to the elevator riding state of the cleaning robot.
[0196] Optionally, the device further comprises:
[0197] The first sending module is used to send a stop charging message to the cleaning robot if the cleaning robot is charging at a charging pile.
[0198] Optionally, the device further comprises:
[0199] The second sending module is used to send a charging message to the cleaning robot if a cleaning completion message sent by the cleaning robot is received.
[0200] Optionally, the preset device status includes one or more of the following: the positioning of the cleaning robot is normal, the motor of the cleaning robot is in a locked state, the power of the cleaning robot is greater than or equal to a preset power, the armrests of the cleaning robot are in place, and the components of the cleaning robot are operating normally.
[0201] Optionally, the control module 1002 is used to:
[0202] If the elevator riding state of the cleaning robot is not in the elevator riding state, it is determined to execute the target cleaning task.
[0203] In an embodiment of the present application, a cleaning task configuration interface is displayed, and the cleaning task configuration interface includes multiple configuration items, and the multiple configuration items include a cleaning mode configuration item, a cycle configuration item, a cleaning time configuration item, and a cleaning area configuration item. The user can configure the timing cleaning task (i.e., the target cleaning task) including the elements of cleaning mode, cycle, cleaning time, and cleaning area through the cleaning task configuration interface. After the target cleaning task configuration is completed, when the time reaches the configured timing time, the cleaning robot can automatically clean the configured cleaning area according to the configured cleaning mode without user participation. In this way, regular cleaning can be automatically performed, saving labor costs and improving cleaning efficiency.
[0204] It should be noted that: the cleaning device provided in the above embodiment is only illustrated by the division of the above functional modules during cleaning. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0205] The functional units and modules in the above embodiments may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the above integrated units may be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.
[0206] The cleaning device and the cleaning method embodiments provided in the above embodiments belong to the same concept. The specific working process of the units and modules in the above embodiments and the technical effects brought about can be found in the method embodiment part and will not be repeated here.
[0207] Fig.11 This is a schematic diagram of the structure of a cleaning robot provided in an embodiment of the present application. Fig.11 As shown, the cleaning robot 11 includes: a processor 110, a memory 111, and a computer program 112 stored in the memory 111 and executable on the processor 110. When the processor 110 executes the computer program 112, the steps in the cleaning method in the above embodiment are implemented.
[0208] The processor 110 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0209] The memory 111 may be an internal storage unit of the cleaning robot 11 in some embodiments, such as a hard disk or memory of the cleaning robot 11. The memory 111 may also be an external storage device of the cleaning robot 11 in other embodiments, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the cleaning robot 11. Further, the memory 111 may also include both an internal storage unit and an external storage device of the cleaning robot 11. The memory 111 is used to store an operating system, an application program, a boot loader, data, and other programs. The memory 111 may also be used to temporarily store data that has been output or is to be output.
[0210] An embodiment of the present application also provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, and when the processor executes the computer program, the steps in any of the above-mentioned method embodiments are implemented.
[0211] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0212] An embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the steps in the above-mentioned method embodiments.
[0213] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above method embodiments, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above method embodiments can be implemented. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, ROM (read-only memory), RAM (random access memory), CD-ROM (compact disc read-only memory), magnetic tape, floppy disk and optical data storage device. The computer-readable storage medium mentioned in the present application can be a non-volatile storage medium, in other words, it can be a non-transient storage medium.
[0214] It should be understood that all or part of the steps to implement the above embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.
[0215] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0216] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0217] In the embodiments provided in the present application, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0218] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0219] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A cleaning method, characterized in that: The method comprises: Displaying a cleaning task configuration interface, wherein the cleaning task configuration interface includes a plurality of configuration items, wherein the plurality of configuration items include a cleaning mode configuration item, a cycle configuration item, a cleaning time configuration item, and a cleaning area configuration item; In response to the received configuration instructions for the plurality of configuration items, generate configuration contents of the plurality of configuration items; In response to the received confirmation instructions for the plurality of configuration items, generating a target cleaning task according to the configuration contents of the plurality of configuration items; The cleaning robot is controlled to perform cleaning according to the target cleaning task.
2. The method according to claim 1, characterized in that The multiple configuration items further include one or more of a task name configuration item and a cleaning times configuration item; And / or, the cleaning mode configuration item includes one or more of a dust pushing mode option, a vacuuming mode option, and a floor scrubbing mode option; And / or, the cleaning area configuration item includes options for selecting one or more areas in one or more floors.
3. The method according to claim 1, characterized in that After generating the configuration contents of the plurality of configuration items, the method further includes: Determine whether there is a time conflict between the cleaning task being configured and a valid cleaning task according to the configuration content of the cycle configuration item and the configuration content of the cleaning time configuration item, wherein the valid cleaning task is a cleaning task in a valid state; If there is a time conflict between the cleaning task being configured and the valid cleaning task, a reminder message is displayed to remind that there is a time conflict between the cleaning task being configured and other cleaning tasks.
4. The method according to claim 3, characterized in that The determining, according to the configuration content of the cycle configuration item and the configuration content of the cleaning time configuration item, whether there is a time conflict between the cleaning task being configured and the effective cleaning task comprises: For any of the valid cleaning tasks, if the cycle of the valid cleaning task and the configuration content of the cycle configuration item are both daily modes, then if the time interval between the cleaning time of the valid cleaning task and the configuration content of the cleaning time configuration item is greater than or equal to a first preset duration, it is determined that there is no time conflict between the cleaning task being configured and the valid cleaning task; When the time interval between the cleaning time of the effective cleaning task and the configuration content of the cleaning time configuration item is less than the first preset time length, it is determined that there is a time conflict between the cleaning task being configured and the effective cleaning task.
5. The method according to claim 3, characterized in that The determining, according to the configuration content of the cycle configuration item and the configuration content of the cleaning time configuration item, whether there is a time conflict between the cleaning task being configured and the effective cleaning task comprises: For any of the valid cleaning tasks, if the cycle of the valid cleaning task and the configuration content of the cycle configuration item are both weekly modes, then when the time interval between the cleaning time of the valid cleaning task and the configuration content of the cleaning time configuration item is greater than or equal to a first preset duration, it is determined that there is no time conflict between the cleaning task being configured and the valid cleaning task; When the time interval between the cleaning time of the effective cleaning task and the configuration content of the cleaning time configuration item is less than the first preset duration, if the cycle period of the effective cleaning task and the configuration content of the cycle period configuration item have one or more identical week numbers, it is determined that there is a time conflict between the cleaning task being configured and the effective cleaning task; if the cycle period of the effective cleaning task and the configuration content of the cycle period configuration item do not have the same week numbers, it is determined that there is no time conflict between the cleaning task being configured and the effective cleaning task.
6. The method according to claim 3, characterized in that The determining, according to the configuration content of the cycle configuration item and the configuration content of the cleaning time configuration item, whether there is a time conflict between the cleaning task being configured and the effective cleaning task comprises: For any of the valid cleaning tasks, if the cycle of the valid cleaning task and the configuration content of the cycle configuration item are both in single mode, or if the cycle of the valid cleaning task and the configuration content of the cycle configuration item are in different modes, then determine the next execution time of the valid cleaning task, and determine the next execution time of the cleaning task being configured according to the configuration content of the cycle configuration item and the configuration content of the cleaning time configuration item; If the time interval between the next execution time of the effective cleaning task and the next execution time of the cleaning task being configured is greater than or equal to the first preset time length, it is determined that there is no time conflict between the cleaning task being configured and the effective cleaning task; If the time interval between the next execution time of the effective cleaning task and the next execution time of the cleaning task being configured is less than the first preset time length, it is determined that there is a time conflict between the cleaning task being configured and the effective cleaning task.
7. The method according to any one of claims 1 to 6, characterized in that: After generating the target cleaning task according to the configuration contents of the plurality of configuration items, the method further includes: setting an alarm time according to the cycle period and cleaning time of the target cleaning task; And / or, after controlling the cleaning robot to perform cleaning according to the target cleaning task, the method further includes: after the execution of the target cleaning task is completed, if the cycle of the target cleaning task is a single-shot mode, setting the task state of the target cleaning task to an invalid state; And / or, controlling the cleaning robot to perform cleaning according to the target cleaning task includes: if the current time reaches the execution time indicated by the cycle period and cleaning time of the target cleaning task, and if the task status of the target cleaning task is a valid state, determining whether to execute the target cleaning task according to the equipment status of the cleaning robot; if it is determined to execute the target cleaning task, sending a cleaning message to the cleaning robot, the cleaning message carrying the cleaning mode and cleaning area of the target cleaning task.
8. The method according to claim 7, characterized in that The determining whether to execute the target cleaning task according to the device state of the cleaning robot comprises: if the device state of the cleaning robot is a preset device state, determining whether to execute the target cleaning task according to the elevator state of the cleaning robot; And / or, before sending the cleaning message to the cleaning robot, the method further includes: if the cleaning robot is charging at a charging pile, sending a stop charging message to the cleaning robot; And / or, after sending the cleaning message to the cleaning robot, the method further includes: if a cleaning completion message sent by the cleaning robot is received, sending a charging message to the cleaning robot.
9. The method according to claim 8, wherein the preset device state comprises one or more of the following: the positioning of the cleaning robot is normal, the motor of the cleaning robot is in a locked state, the power of the cleaning robot is greater than or equal to a preset power, the armrest of the cleaning robot is in position, and the components of the cleaning robot are operating normally; And / or, determining whether to execute the target cleaning task according to the elevator riding state of the cleaning robot comprises: If the elevator riding state of the cleaning robot is not in the elevator riding state, it is determined to execute the target cleaning task.
10. A cleaning robot, characterized in that: The cleaning robot comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method according to any one of claims 1 to 9 when executed by the processor.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
