Control method and device for cleaning robot, cleaning robot and storage medium
阅读说明:本技术 清洁机器人的控制方法、装置、清洁机器人及存储介质 (Control method and device for cleaning robot, cleaning robot and storage medium ) 是由 陈飞 霍峰 陈侃 卜大鹏 秦宝星 程昊天 于 2019-11-26 设计创作,主要内容包括:本申请公开了一种清洁机器人的控制方法、装置、清洁机器人以及存储介质。控制方法包括:根据清洁标识地图确定清洁机器人的清洁路径,判断清洁路径是否包括特殊区域,若清洁路径包括特殊区域,根据特殊区域生成对应的控制指令以控制清洁机器人。本申请实施方式的清洁机器人的控制方法中,通过确定清洁机器人的清洁路径是否包括特殊区域,使得清洁机器人经过特殊区域时可做出相应的措施,避免了清洁机器人经过特殊区域时对特殊区域造成损坏或者造成清洁机器人自身的损坏。如此,提高了清洁机器人对场景的适应性,而使得清洁机器人的应用范围更广。(The application discloses a control method and device of a cleaning robot, the cleaning robot and a storage medium. The control method comprises the following steps: and determining a cleaning path of the cleaning robot according to the cleaning identification map, judging whether the cleaning path comprises a special area, and if the cleaning path comprises the special area, generating a corresponding control instruction according to the special area to control the cleaning robot. In the control method of the cleaning robot in the embodiment of the application, whether the cleaning path of the cleaning robot includes the special area or not is determined, so that the cleaning robot can take corresponding measures when passing through the special area, and damage to the special area or damage to the cleaning robot when passing through the special area is avoided. Therefore, the adaptability of the cleaning robot to scenes is improved, and the application range of the cleaning robot is wider.)
1. A control method of a cleaning robot, characterized by comprising:
determining a cleaning path of the cleaning robot according to a cleaning identification map;
judging whether the cleaning path comprises a special area or not;
and if the cleaning path comprises the special area, generating a corresponding control instruction according to the special area to control the cleaning robot.
2. The method of claim 1, wherein the cleaning robot includes a cleaning device and a liquid spraying device, the special area includes a carpet area, and if the cleaning path includes the special area, generating a corresponding control command to control the cleaning robot according to the special area includes:
determining a distance between the cleaning robot and the carpet area;
and if the distance between the cleaning robot and the carpet area is larger than a first distance threshold value, controlling the cleaning device and the liquid spraying device to continue to operate.
3. The control method of claim 2, wherein the determining the distance between the cleaning robot and the carpet area comprises:
and if the distance between the cleaning robot and the carpet area is smaller than or equal to the first distance threshold and larger than a second distance threshold, controlling the liquid spraying device to stop spraying liquid and keeping the cleaning device to continue to operate.
4. The control method of claim 3, wherein the determining the distance between the cleaning robot and the carpet area further comprises:
and if the distance between the cleaning robot and the carpet area is smaller than or equal to a second distance threshold value, controlling the cleaning device and the liquid spraying device to stop running.
5. The method of claim 1, wherein the cleaning robot includes a cleaning device and a liquid spraying device, the special region includes a deceleration strip region, and if the cleaning path includes the special region, generating a corresponding control command to control the cleaning robot according to the special region further includes:
determining a distance between the cleaning robot and the deceleration strip region;
and if the distance between the cleaning robot and the deceleration belt area is larger than a third distance threshold value, controlling the cleaning device and the liquid spraying device to continue to operate.
6. The control method of claim 5, wherein if the cleaning path includes the special area, generating a corresponding control command to control the cleaning robot according to the special area further comprises:
and if the distance between the cleaning robot and the deceleration strip area is smaller than or equal to the third distance threshold value, controlling the cleaning robot to reduce the traveling speed and controlling the cleaning device and the liquid spraying device to stop running.
7. The control method of claim 1, comprising, before the step of determining the cleaning path of the cleaning robot based on the cleaning identification map:
constructing a clean map of a clean area;
setting the special area in the cleaning map to form the cleaning identification map.
8. A control device of a cleaning robot, characterized by comprising:
a determination module to determine a cleaning path of the cleaning robot from a cleaning identification map;
a detection module, so the detection module is used for judging whether the cleaning path comprises a special area;
and the control module is used for generating a corresponding control instruction according to the special area to control the cleaning robot if the cleaning path comprises the special area.
9. A cleaning robot, comprising a processor configured to:
determining a cleaning path of the cleaning robot according to a cleaning identification map;
judging whether the cleaning path comprises a special area or not;
and if the cleaning path comprises the special area, generating a corresponding control instruction according to the special area to control the cleaning robot.
10. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the method of controlling the cleaning robot of any one of claims 1-7.
Technical Field
The present disclosure relates to the field of robots, and more particularly, to a method and an apparatus for controlling a cleaning robot, and a storage medium.
Background
Disclosure of Invention
In view of the above, the present application provides a method and an apparatus for controlling a cleaning robot, and a storage medium.
The control method of the cleaning robot of the embodiment of the application comprises the following steps:
determining a cleaning path of the cleaning robot according to a cleaning identification map;
judging whether the cleaning path comprises a special area or not;
and if the cleaning path comprises the special area, generating a corresponding control instruction according to the special area to control the cleaning robot.
Therefore, if the cleaning robot passes through a special area in the cleaning process, the cleaning robot can take corresponding measures according to the special area, and damage to the special area or damage to the cleaning robot per se caused by the cleaning robot is avoided.
In some embodiments, the cleaning robot includes a cleaning device and a liquid spraying device, the special area includes a carpet area, and if the cleaning path includes the special area, generating a corresponding control command to control the cleaning robot according to the special area includes:
determining a distance between the cleaning robot and the carpet area;
and if the distance between the cleaning robot and the carpet area is larger than a first distance threshold value, controlling the cleaning device and the liquid spraying device to continue to operate.
In this way, if a carpet area exists in a cleaning path of the cleaning robot, the cleaning robot can normally perform a cleaning task when a distance between the cleaning robot and the carpet area is greater than a first distance threshold.
In some embodiments, the determining the distance between the cleaning robot and the carpet area comprises:
and if the distance between the cleaning robot and the carpet area is smaller than or equal to the first distance threshold and larger than a second distance threshold, controlling the liquid spraying device to stop spraying liquid and keeping the cleaning device to continue to operate.
In this manner, the liquid spray device is turned off before the cleaning robot reaches the carpet area to avoid spraying liquid into the carpet area and causing damage to the carpet area.
In some embodiments, the determining the distance between the cleaning robot and the carpet area further comprises:
and if the distance between the cleaning robot and the carpet area is smaller than or equal to a second distance threshold value, controlling the cleaning device and the liquid spraying device to stop running.
In this way, the cleaning device can clean the carpet area and the liquid spraying device can spray liquid into the carpet area to damage the carpet area in the process that the cleaning robot passes through the carpet area.
In some embodiments, the cleaning robot includes a cleaning device and a liquid spraying device, the special area includes a deceleration strip area, and if the cleaning path includes the special area, generating a corresponding control command according to the special area to control the cleaning robot further includes:
determining a distance between the cleaning robot and the deceleration strip region;
and if the distance between the cleaning robot and the deceleration belt area is larger than a third distance threshold value, controlling the cleaning device and the liquid spraying device to continue to operate.
As such, the cleaning robot may normally perform a cleaning task when the distance from the deceleration strip region is greater than a third threshold value.
In some embodiments, if the cleaning path includes the special area, generating a corresponding control command according to the special area to control the cleaning robot further includes:
and if the distance between the cleaning robot and the deceleration strip area is smaller than or equal to the third distance threshold value, controlling the cleaning robot to reduce the traveling speed and controlling the cleaning device and the liquid spraying device to stop running.
In this way, when the distance between the cleaning robot and the deceleration strip area is smaller than or equal to the third distance threshold, the cleaning robot can safely pass through the deceleration strip area, and the cleaning robot is prevented from being damaged due to collision with the deceleration strip area when passing through the deceleration strip area.
In some embodiments, before the determining a cleaning path of the cleaning robot based on the cleaning identification map step, the method further comprises:
constructing a clean map of a clean area;
setting the special area in the cleaning map to form the cleaning identification map.
In this way, by constructing the cleaning map and setting a special area on the cleaning map, it can be determined whether the cleaning path traveled by the cleaning robot includes the set special area so as to take a correct countermeasure when encountering the special area.
The control device for a cleaning robot according to an embodiment of the present invention includes:
a determination module to determine a cleaning path of the cleaning robot from a cleaning identification map;
a detection module, so the detection module is used for judging whether the cleaning path comprises a special area;
and the control module is used for generating a corresponding control instruction according to the special area to control the cleaning robot if the cleaning path comprises the special area.
Therefore, through the arrangement of the determining module, the detecting module and the control module which are included by the control device, the cleaning robot can generate a corresponding control instruction in the process of passing through the special area so as to control the cleaning robot to take a corresponding measure.
The cleaning robot of the embodiment of the present application includes a processor for:
determining a cleaning path of the cleaning robot according to a cleaning identification map;
judging whether the cleaning path comprises a special area or not;
and if the cleaning path comprises the special area, generating a corresponding control instruction according to the special area to control the cleaning robot.
Therefore, the cleaning robot can generate corresponding control instructions when encountering special areas in the cleaning process so as to control the cleaning robot to take corresponding measures.
A non-transitory computer-readable storage medium of an embodiment of the present application includes a medium storing computer-executable instructions that, when executed by one or more processors, cause the processors to perform a control method of the cleaning robot of any one of the above.
As such, the control method of the cleaning robot according to any one of the above can be implemented by the processor executing computer-executable instructions.
In the control method and device for charging the pile by the cleaning robot, the cleaning robot and the storage medium, whether the cleaning path of the cleaning robot comprises the special area or not is determined, and if the cleaning path comprises the special area is determined, the cleaning robot can generate the corresponding control instruction according to the position of the special area to take a countermeasure, so that damage to the special area or damage to the cleaning robot per se by the cleaning robot is avoided. Therefore, the adaptability of the cleaning robot to scenes is improved, and the application range of the cleaning robot is wider.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating a control method of a cleaning robot according to some embodiments of the present disclosure.
Fig. 2 is a schematic structural diagram of a control device of a cleaning robot according to some embodiments of the present disclosure.
FIG. 3 is a block schematic diagram of a cleaning robot according to certain embodiments of the present application.
Fig. 4 is a flowchart illustrating a control method of a cleaning robot according to some embodiments of the present disclosure.
Fig. 5 is another flowchart illustrating a control method of a cleaning robot according to some embodiments of the present disclosure.
Fig. 6 is another flowchart illustrating a control method of a cleaning robot according to some embodiments of the present disclosure.
Fig. 7 is another flowchart illustrating a control method of a cleaning robot according to some embodiments of the present disclosure.
Fig. 8 is a schematic structural view of a storage medium of a cleaning robot according to some embodiments of the present disclosure.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The following disclosure provides many different embodiments or examples for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art may recognize applications of other processes and/or uses of other materials.
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
With the development of science and technology, robots are more and more intelligent. Wherein, cleaning robot can realize accomplishing the cleaning task automatically. Brings great convenience and convenience to the life of people, and the demand of people is more and more extensive.
However, in the related art, the cleaning robot can perform automatic cleaning only in some simple scenes, and for some complex scenes, for example, the scene includes a carpet area, a solid wood floor area, a deceleration strip area, a blind track area, and the like, the cleaning robot often cannot take appropriate countermeasures. If a specific area is included in the cleaning area, the cleaning robot may cause damage to the specific area or damage to the cleaning robot itself when passing through the specific area. For example, if the cleaning robot cleans a carpet area or a special area such as a solid wood floor area, the carpet and the floor may be damaged, and if the cleaning robot cleans the floor, the cleaning robot may easily damage the floor by passing through a deceleration zone or a blind zone.
Referring to fig. 1, the present application provides a method for controlling a cleaning robot, including:
s10, determining a cleaning path of the cleaning robot according to the cleaning identification map;
s20, judging whether the cleaning path comprises a special area;
and S30, if the cleaning path comprises the special area, generating a corresponding control command according to the special area to control the cleaning robot.
Referring to fig. 2, the present embodiment provides a
Referring to fig. 3, the
Specifically, the
Further, the location of the
It should be noted that the cleaning area includes a general area and a special area, and the general area is an area where the floor is flat and the
In the control method of the
Referring to fig. 4, in some embodiments, the
s31, judging the distance between the cleaning robot and the carpet area;
and S32, if the distance between the cleaning robot and the carpet area is larger than the first distance threshold value, controlling the cleaning device and the liquid spraying device to continue to operate.
In some embodiments, the
In some embodiments, the
Specifically, when the
Further, the first comparing
Referring to fig. 5, in some embodiments, S31 includes:
and S312, if the distance between the cleaning robot and the carpet area is smaller than or equal to the first distance threshold and larger than the second distance threshold, controlling the liquid spraying device to stop spraying the liquid and keeping the cleaning device to continuously run.
In some embodiments, S312 may be implemented by the
In some embodiments, the
Specifically. The
In certain embodiments, S31 further comprises:
and S314, if the distance between the cleaning robot and the carpet area is smaller than or equal to the second distance threshold value, controlling the cleaning device and the liquid spraying device to stop running.
In some embodiments, S314 may be implemented by the
In some embodiments, the
It can be understood that, since the
Further, after the
Referring to fig. 6, in some embodiments, the
s33, judging the distance between the cleaning robot and the deceleration strip area;
and S34, if the distance between the cleaning robot and the deceleration strip area is larger than the third distance threshold value, controlling the cleaning device and the liquid spraying device to continue to operate.
In some embodiments, the
In some embodiments, the
It can be understood that if the cleaning path includes the deceleration strip area, if the
In certain embodiments, S30 further comprises:
and S35, if the distance between the cleaning robot and the deceleration strip area is less than or equal to the third distance threshold, controlling the cleaning robot to reduce the travel speed and controlling the cleaning device and the liquid spraying device to stop running.
In certain embodiments, S35 may be implemented by the
In some embodiments, the
Specifically, when the cleaning path includes a deceleration strip region and the distance between the cleaning
Referring to fig. 7, in some embodiments, before S10, the method further includes:
s40, constructing a clean map of the clean area;
and S50, setting a special area in the cleaning map to form a cleaning identification map.
In certain embodiments, the
In some embodiments, the
Specifically, the
Referring to fig. 8, embodiments of the present application also provide one or more non-volatile computer-
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by specifying relevant hardware by a computer program, and the program of the control method of the
The above embodiments are merely representative of several embodiments of the present application, and the description thereof is more specific and detailed, but not to be construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:一种用于厕所机器人的地面清洁系统