WO2023098384A1 - Sweeping control method and apparatus, robot, storage medium, and electronic apparatus - Google Patents

Sweeping control method and apparatus, robot, storage medium, and electronic apparatus Download PDF

Info

Publication number
WO2023098384A1
WO2023098384A1 PCT/CN2022/129454 CN2022129454W WO2023098384A1 WO 2023098384 A1 WO2023098384 A1 WO 2023098384A1 CN 2022129454 W CN2022129454 W CN 2022129454W WO 2023098384 A1 WO2023098384 A1 WO 2023098384A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
cleaning
cleaning device
obstacle
distance
Prior art date
Application number
PCT/CN2022/129454
Other languages
French (fr)
Chinese (zh)
Inventor
丘伟楠
顾一休
杨咚浩
Original Assignee
追觅创新科技(苏州)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 追觅创新科技(苏州)有限公司 filed Critical 追觅创新科技(苏州)有限公司
Publication of WO2023098384A1 publication Critical patent/WO2023098384A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/24Floor-sweeping machines, motor-driven
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • A47L11/4002Installations of electric equipment
    • A47L11/4008Arrangements of switches, indicators or the like
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • A47L11/4011Regulation of the cleaning machine by electric means; Control systems and remote control systems therefor
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • A47L11/4061Steering means; Means for avoiding obstacles; Details related to the place where the driver is accommodated
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L2201/00Robotic cleaning machines, i.e. with automatic control of the travelling movement or the cleaning operation
    • A47L2201/04Automatic control of the travelling movement; Automatic obstacle detection
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E10/00Energy generation through renewable energy sources
    • Y02E10/50Photovoltaic [PV] energy

Definitions

  • the present disclosure relates to the communication field, and in particular, to a cleaning control method, device, robot, storage medium and electronic device.
  • the cleaning method of the current cleaning equipment for the inner right angle is mostly to rotate at a position far from the inner right angle, so that the innermost part of the inner right angle is usually unable to be cleaned, resulting in the problem of missed cleaning.
  • Embodiments of the present disclosure provide a cleaning control method, device, robot, storage medium, and electronic device, so as to at least solve the problem of missing areas in related technologies.
  • a cleaning control method including: in the case of detecting that a target obstacle appears in the current cleaning direction of the cleaning device, controlling the cleaning device to drive toward a target position, wherein the target The first distance between the position and the target obstacle is less than a first preset threshold; after it is determined that the cleaning device travels to the target position, control the cleaning device to turn to the target direction in a target manner and make the The second distance between the cleaning range covered by the cleaning device and the target obstacle is always smaller than a second preset threshold during the turning process of the cleaning device, wherein the target direction and the target obstacle satisfy a target positional relationship; In response to detecting that the current cleaning direction of the cleaning device is the target direction, the cleaning device is controlled to perform a cleaning operation along the target direction.
  • the cleaning device includes a first wheel body and a second wheel body, wherein the first wheel body is in front of the second wheel body along the target direction, and the After the cleaning device travels to the target position, control the cleaning device to turn to the target direction according to the target method and make the cleaning device between the cleaning range covered by the cleaning device and the target obstacle during the turning process
  • the second distance is less than the second preset threshold, including: when the cleaning device turns, acquiring the second distance in real time; adjusting the advancing direction of the first wheel body in real time according to the second distance acquired in real time and/or the backward direction of the second wheel so that the second distance between the cleaning range covered by the cleaning device and the target obstacle is always smaller than a second preset threshold until the cleaning device reaches the The current cleaning direction is the target direction.
  • the cleaning device includes a cleaning element
  • the obtaining the second distance in real time when the cleaning device turns includes: obtaining the cleaning element in real time when the cleaning device turns The second distance from the target obstacle.
  • controlling the cleaning device to turn in a target manner includes: detecting whether there is an obstacle other than the target obstacle around the cleaning device other obstacles outside; if the other obstacles are detected, determine the position information of the other obstacles; determine the target direction based on the position information of the other obstacles; control the cleaning equipment according to the The target mode is turned to the target direction.
  • determining the target direction based on the position information of the other obstacle includes: determining a direction opposite to a direction where the other obstacle is located as the target direction.
  • controlling the cleaning device to turn in the target direction includes: during the process of controlling the cleaning device to turn in the target direction, based on the target direction
  • the angle between the target obstacle and the cleaning device applies a driving force at a certain angle to the target direction, so that the cleaning range covered by the cleaning device and the target obstacle
  • the second distance is always smaller than the second preset threshold.
  • controlling the cleaning device to perform a cleaning operation along the target direction includes: in response to detecting the The current cleaning direction of the cleaning device is to control the cleaning device to perform a cleaning operation along the target direction after it is determined that the cleaning device rotates to the target direction parallel to the target obstacle.
  • a cleaning control device including: a first control module, configured to control the cleaning device to move toward Traveling at a target position, wherein the first distance between the target position and the target obstacle is less than a first preset threshold; a second control module, configured to, after determining that the cleaning device travels to the target position, controlling the cleaning device to turn in a targeted manner so that the second distance between the cleaning range covered by the cleaning device and the target obstacle is always smaller than the second preset threshold during the turning process of the cleaning device, wherein , the target direction and the target obstacle satisfy a target positional relationship; a third control module, configured to control the cleaning device to move along the Perform sweeping operations in the target direction.
  • a cleaning device including the cleaning control device described in any one of the above device embodiments.
  • a computer-readable storage medium where the computer-readable storage medium includes a stored program, wherein, when the program runs, the program described in any one of the above-mentioned embodiments is executed. described method.
  • an electronic device including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to execute any one of the above implementations through the computer program. method described in the example.
  • the distance between the cleaning range covered by the cleaning device and the target obstacle can be achieved by controlling the cleaning device to turn according to a specific steering method.
  • the distance is always less than a certain threshold, thereby ensuring that all areas close to obstacles are cleaned, realizing comprehensive cleaning, effectively solving the problem of missing areas in related technologies, and improving the cleaning efficiency of cleaning equipment.
  • Fig. 1 is a hardware structural block diagram of a cleaning control method according to an embodiment of the disclosure
  • Fig. 2 is a schematic diagram of a cleaning path of a cleaning device in the related art
  • FIG. 3 is a flowchart of a cleaning control method according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of a cleaning path of a cleaning device according to an embodiment of the disclosure.
  • Fig. 5 is a structural block diagram of a cleaning control device according to an embodiment of the present disclosure.
  • FIG. 1 is a block diagram of a hardware structure of a cleaning control method according to an embodiment of the present disclosure.
  • the mobile robot can include one or more (only one is shown in Figure 1) processor 102 (processor 102 can include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and a memory 104 for storing data.
  • processor 102 can include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.
  • memory 104 for storing data.
  • the above-mentioned mobile robot may also include a transmission device 106 and an input and output device 108 for communication functions.
  • the mobile robot may also include more or fewer components than those shown in FIG. 1 , or have a different configuration that is functionally equivalent to or more functionally than that shown in FIG. 1 .
  • the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the cleaning control method in the embodiments of the present disclosure, and the processor 102 executes various tasks by running the computer programs stored in the memory 104.
  • a functional application and data processing that is, to realize the above-mentioned method.
  • the memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include memory located remotely from the processor 102, and these remote memories may be connected to the mobile robot through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission device 106 is used to receive or transmit data via a network.
  • a specific example of the above-mentioned network may include a wireless network provided by a mobile robot's communication provider.
  • the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • the cleaning equipment During the working process of the cleaning equipment, it will perform cleaning operations according to the pre-established area map. If the cleaning equipment detects an obstacle lying ahead during the travel process, it will avoid the obstacle according to the predetermined obstacle avoidance method
  • the conventional obstacle avoidance method will cause the cleaning equipment to rotate at a position far away from the obstacle, as shown in Figure 2, the dotted line direction is the path of the conventional cleaning equipment, which will lead to the area close to the obstacle
  • a cleaning control method is proposed in the embodiments of the present disclosure, which can ensure the comprehensiveness of the cleaned area and avoid the situation of missed cleaning.
  • the cleaning device involved in the embodiments of the present disclosure may be a sweeping robot, or other devices capable of cleaning and driving automatically.
  • a cleaning control method is provided in this embodiment, as shown in Figure 3, the method includes the following steps:
  • the target obstacle includes at least a connected first part and a second part, wherein the first part is a part located in the current driving direction of the cleaning device, and the second part is a part set at an angle with the current driving direction, For example, walls, cabinets, refrigerators, sofas, etc.
  • the distance between the cleaning device and the obstacle can be calculated first (for example, the cleaning device can determine the distance between the cleaning device and the target obstacle based on the distance sensor configured by itself , or determine the distance between the cleaning equipment and the target obstacle based on its current position coordinates and the position information of the target obstacle marked in the pre-built area map), and then control the cleaning equipment to decelerate towards the target position (the deceleration There are many ways, for example, it can decelerate uniformly; it can also reduce the speed of the cleaning equipment to a predetermined speed value, and then drive according to the predetermined speed value; it can also decelerate non-uniformly, for example, the deceleration rate can be reduced over time become larger and larger, or the deceleration range becomes smaller and smaller over time, etc.), after reaching the target position, you can temporarily stop driving, and then perform the above-mentioned rotation driving operation.
  • the target direction and the target obstacle The target position relationship between them may be that the target direction is parallel to, or approximately parallel to, the target obstacle.
  • the target obstacle may not exist within a range of not less than a preset distance from the cleaning device after the cleaning device rotates to the target direction.
  • the distance between the target position and the target obstacle does not exceed the first preset threshold, which can make the cleaning equipment as close as possible to the target obstacle when turning, thereby reducing the uncovered cleaning area; the cleaning range covered by the cleaning equipment is the same as the described
  • the distance between the target obstacles is smaller than the second preset threshold, so that the cleaning range of the side brush of the cleaning device can be close to the target obstacles when turning, thereby avoiding the occurrence of missed scanning areas.
  • the above preset thresholds can be set flexibly. In the case of relatively high cleaning quality requirements, the above thresholds can be set smaller, for example, set to 1cm, 2cm, 5cm, etc., and the cleaning quality requirements are not too high. , the above threshold can be set larger, for example, set to 8cm, 10cm, 15cm and so on.
  • the fact that the first distance between the target position and the target obstacle is less than the first preset threshold actually means that when the cleaning device is at the target position, the point on the cleaning device closest to the target obstacle is closer to the target obstacle.
  • the distance of the target obstacle is smaller than the above-mentioned first preset threshold, and the first preset threshold can also be set to a sufficiently small value.
  • the distance of the object is 0, so that the distance between the cleaning range covered by the cleaning equipment and the target obstacle is 0.
  • a relatively small positive value is generally set.
  • the executor who performs the above operations may be a cleaning device (for example, an intelligent robot, or other devices with cleaning capabilities and automatic driving capabilities, etc.), or a processor installed in the cleaning device, or other devices with similar processing capabilities device of.
  • a cleaning device for example, an intelligent robot, or other devices with cleaning capabilities and automatic driving capabilities, etc.
  • a processor installed in the cleaning device, or other devices with similar processing capabilities device of.
  • the cleaning device when an obstacle appears in the cleaning direction of the cleaning device, the cleaning device can be controlled to turn according to a specific steering method so as to realize the distance between the cleaning range covered by the cleaning device and the target obstacle during the turning process.
  • the distance between them is always less than a certain threshold, thereby ensuring that all areas close to obstacles are cleaned, realizing comprehensive cleaning, effectively solving the problem of missing areas in related technologies, and improving the cleaning efficiency of cleaning equipment.
  • the cleaning device includes a first wheel body and a second wheel body, wherein the first wheel body is in front of the second wheel body along the target direction, and the After the cleaning device travels to the target position, control the cleaning device to turn to the target direction according to the target method and make the cleaning device between the cleaning range covered by the cleaning device and the target obstacle during the turning process
  • the second distance is less than the second preset threshold, including: when the cleaning device turns, acquiring the second distance in real time; adjusting the advancing direction of the first wheel body in real time according to the second distance acquired in real time and/or the backward direction of the second wheel so that the second distance between the cleaning range covered by the cleaning device and the target obstacle is always smaller than a second preset threshold until the cleaning device reaches the The current cleaning direction is the target direction.
  • a plurality of wheels can be arranged on the cleaning device.
  • the wheel set on the left side of the cleaning device is the first wheel described above.
  • the wheel body, the wheel body on the right side is the above-mentioned second wheel body.
  • it is necessary to realize the side brush of the cleaning device by controlling the first wheel body to advance and/or the second wheel body to retreat.
  • the cleaning range covered by the cleaning element is always close to the obstacle.
  • the cleaning device includes a cleaning element
  • the obtaining the second distance in real time when the cleaning device turns includes: obtaining the cleaning element in real time when the cleaning device turns The second distance from the target obstacle.
  • the cleaning parts can be arranged on the side of the cleaning equipment, or on the front and side of the cleaning equipment, or around the cleaning equipment. When controlling the turning of the cleaning equipment, the distance between the cleaning piece on the side closest to the target obstacle and the target obstacle can be obtained in real time.
  • controlling the cleaning device to turn in a target manner includes: detecting whether there is an obstacle other than the target obstacle around the cleaning device other obstacles outside; in the case of detecting the other obstacles, obtain the position information of the other obstacles; determine the direction of the target based on the position information of the other obstacles; control the cleaning equipment according to the target way to steer in the direction of the target.
  • a direction opposite to the direction of the other obstacle may be determined as the target direction.
  • the cleaning equipment may be running along the side. For example, when driving close to the wall toward the corner or the angle between the cabinet and the wall, there will be multiple orientations of the cleaning equipment. There are obstacles.
  • the side brush is always attached to the obstacle (that is, the distance between the side brush and the obstacle is always less than a threshold, for example, 1cm, 2cm, 5cm, etc.), in this embodiment, the distance and position of the obstacle can be obtained through the sensor Information, the distance between the side brush and the obstacle is 0 (or other distances, such as 1cm, 2cm, etc.) as the target for control, so that the side brush is always close to the obstacle.
  • a threshold for example, 1cm, 2cm, 5cm, etc.
  • controlling the cleaning device to turn to the target direction in the target manner includes: during the process of controlling the cleaning device to turn to the target direction, based on the target direction and The included angle between the target obstacles is that the cleaning device applies a driving force at a certain angle to the target direction, so that the cleaning range covered by the cleaning device and the second distance between the target obstacles The second distance is always smaller than the second preset threshold.
  • the certain angle can be set flexibly, as long as the cleaning range covered by the cleaning device is always close to the obstacle (that is, the offset in the driving direction before the cleaning device avoids the obstacle is compensated, so that the cleaning device
  • the side brush can always stick to the target obstacle
  • the cleaning device can determine the distance between the cleaning range covered by the cleaning device and the target obstacle based on its own configured distance sensor, or based on its current position coordinates and the distance between the
  • the position information of the target obstacle marked in the pre-built area map determines the distance between the cleaning range covered by the cleaning equipment and the target obstacle.
  • control the cleaning range covered by the cleaning device to drive close to obstacles in other ways, for example, to control the cleaning device to travel a certain distance in the direction opposite to the direction of rotation every time it rotates at a certain angle (the distance can be based on The actual vertical distance between the cleaning range covered by the cleaning equipment and the obstacles).
  • controlling the cleaning device to perform a cleaning operation along the target direction includes: in response to detecting the The current cleaning direction of the cleaning device is to control the cleaning device to perform a cleaning operation along the target direction after it is determined that the cleaning device rotates to the target direction parallel to the target obstacle.
  • the cleaning device when the cleaning device is adjusted to drive in a direction parallel to the target obstacle, the area close to the target obstacle can be fully cleaned, thereby avoiding missed cleaning.
  • the cleaning device can be controlled to rotate to the right side of the robot parallel to the obstacle, and the cleaning device is close to the horizontal obstacle, and then switch to normal forward action; If the obstacle encountered is a small obstacle such as a chair leg, you can first control the cleaning device to rotate to the position where the obstacle reaches the right front of the machine, that is, the machine will not be blocked from advancing, and then the cleaning device will switch to the normal forward movement.
  • the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present disclosure can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in various embodiments of the present disclosure.
  • a cleaning control device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has already been described will not be repeated.
  • the term "module” may be a combination of software and/or hardware that realizes a predetermined function.
  • the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
  • Fig. 5 is a structural block diagram of a cleaning control device according to an embodiment of the present disclosure. As shown in Fig. 5, the device includes:
  • the first control module 52 is configured to control the cleaning device to drive toward a target position when it is detected that a target obstacle appears in the current cleaning direction of the cleaning device, wherein the distance between the target position and the target obstacle is The first distance is less than the first preset threshold;
  • the second control module 54 is configured to, after determining that the cleaning device travels to the target position, control the cleaning device to turn in a target manner and make the cleaning range covered by the cleaning device during the turning process equal to the A second distance between the target obstacles is always smaller than a second preset threshold, wherein the target direction and the target obstacle satisfy a target positional relationship;
  • the third control module 56 is configured to control the cleaning device to perform a cleaning operation along the target direction in response to detecting that the current cleaning direction of the cleaning device is the target direction.
  • the cleaning device includes a first wheel body and a second wheel body, wherein the first wheel body is in front of the second wheel body along the target direction, and the first wheel body is in front of the second wheel body.
  • Two control modules 54 include:
  • a first acquiring unit configured to acquire the second distance in real time when the cleaning device turns around
  • An adjustment unit configured to adjust in real time the advancing direction of the first wheel body and/or the retreating direction of the second wheel body according to the second distance obtained in real time, so that the cleaning range covered by the cleaning device is consistent with the
  • the second distance between the target obstacles is always smaller than a second preset threshold until the current cleaning direction of the cleaning device is the target direction.
  • the cleaning device includes a cleaning element
  • the acquisition unit includes:
  • the acquisition subunit is configured to acquire the second distance between the cleaning piece and the target obstacle in real time when the cleaning device turns.
  • the second control module 54 includes: a detection unit, configured to detect whether there are obstacles other than the target obstacle around the cleaning device; a second acquisition unit, configured to If the other obstacle is detected, acquire position information of the other obstacle; a determining unit, configured to determine the target direction based on the position information of the other obstacle; a control unit, configured to control the The cleaning device turns to the target direction according to the target manner.
  • the determination unit may determine the target direction based on the position information of the other obstacles in the following manner: determine the direction opposite to the direction where the other obstacles are located as the target direction.
  • the above control unit may control the cleaning device to turn in the target direction in the following manner: during the process of controlling the cleaning device to turn in the target direction , based on the included angle between the target direction and the target obstacle, apply a driving force at a certain angle to the target direction to the cleaning device, so that the cleaning range covered by the cleaning device is consistent with the target obstacle
  • the second distance between objects is always smaller than the second preset threshold.
  • the above-mentioned third control module 56 may control the cleaning device along the target direction in response to detecting that the current cleaning direction of the cleaning device is the target direction in the following manner: Executing a cleaning operation: in response to detecting that the current cleaning direction of the cleaning device is the target direction when it is determined that the cleaning device is rotated to be parallel to the target obstacle, controlling the cleaning device to move along the target direction to perform cleaning operations.
  • This embodiment also provides a cleaning device, which may include the cleaning control device described in any one of the above.
  • the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
  • Embodiments of the present disclosure also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
  • the above-mentioned computer-readable storage medium may be configured to store a computer program for performing the following steps:
  • the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk magnetic disk or optical disk and other media that can store computer programs.
  • Embodiments of the present disclosure also provide an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
  • the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
  • the above-mentioned processor may be configured to execute the following steps through a computer program:
  • each module or each step of the above-mentioned disclosure can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present disclosure is not limited to any specific combination of hardware and software.

Landscapes

  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

Disclosed are a sweeping control method and apparatus, a robot, a storage medium, and an electronic apparatus. The method comprises: if it is detected that there is a target obstacle in the current sweeping direction of a cleaning device, controlling the cleaning device to run towards a target position (S302); after it is determined that the cleaning device runs to the target position, controlling the cleaning device to steer towards a target direction in a target mode, and enabling a second distance between a cleaning range, which is covered by the cleaning device during the steering process of the cleaning device, and the target obstacle to be always less than a second preset threshold value (S304); and in response to detecting that the current sweeping direction of the cleaning device is the target direction, controlling the cleaning device to perform a sweeping operation in the target direction (S306). Therefore, the problem of missing sweeping of an area is effectively solved, thereby realizing comprehensive sweeping, and improving the sweeping efficiency of a cleaning device.

Description

清扫控制方法、装置、机器人、存储介质及电子装置Cleaning control method, device, robot, storage medium and electronic device
本公开要求如下专利申请的优先权:于2021年12月2日提交中国专利局、申请号为202111464894.6、发明名称为“清扫控制方法、装置、机器人、存储介质及电子装置”的中国专利申请;上述专利申请的全部内容通过引用结合在本公开中。This disclosure claims the priority of the following patent application: a Chinese patent application submitted to the China Patent Office on December 2, 2021 with the application number 202111464894.6 and the title of the invention "cleaning control method, device, robot, storage medium and electronic device"; The entire contents of the aforementioned patent applications are incorporated by reference in this disclosure.
技术领域technical field
本公开涉及通信领域,具体而言,涉及一种清扫控制方法、装置、机器人、存储介质及电子装置。The present disclosure relates to the communication field, and in particular, to a cleaning control method, device, robot, storage medium and electronic device.
背景技术Background technique
随着人工智能的快速发展,越来越多的智能机器人进入人们的生活,使得人们的生活越来越便利。With the rapid development of artificial intelligence, more and more intelligent robots have entered people's lives, making people's lives more and more convenient.
随着机器人的普及,人们在使用机器人的过程中所遇到的问题也越来越多。例如,清洁设备在工作时,在遇到障碍物(例如,存在内直角的障碍物,包括墙角,橱柜与墙面所构成的直角区域等等)后,可能会存在靠近障碍物内直角区域漏扫的问题。With the popularity of robots, people encounter more and more problems in the process of using robots. For example, when cleaning equipment is working, after encountering an obstacle (for example, there is an inner right-angle obstacle, including a wall corner, a right-angle area formed by a cabinet and a wall, etc.), there may be a leak near the inner right-angle area of the obstacle. scanning problem.
例如,目前的清洁设备对于内直角的清扫方法多为在距离内直角较远的位置进行旋转,这样内直角的最里面通常是无法清扫到,导致漏扫问题。For example, the cleaning method of the current cleaning equipment for the inner right angle is mostly to rotate at a position far from the inner right angle, so that the innermost part of the inner right angle is usually unable to be cleaned, resulting in the problem of missed cleaning.
针对相关技术中存在的上述问题,目前尚未提出有效的解决方案。Aiming at the above-mentioned problems existing in related technologies, no effective solution has been proposed yet.
发明内容Contents of the invention
本公开实施例提供了一种清扫控制方法、装置、机器人、存储介质及电子装置,以至少解决相关技术中存在的区域漏扫的问题。Embodiments of the present disclosure provide a cleaning control method, device, robot, storage medium, and electronic device, so as to at least solve the problem of missing areas in related technologies.
根据本公开的一个方面,提供了一种清扫控制方法,包括:在检测到清洁设备的当前清扫方向上出现目标障碍物的情况下,控制所述清洁设备朝目标位置行驶,其中,所述目标位置与所述目标障碍物之间的第一距离小于第一预设阈值;在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式向目标方向转向并使所述清洁设备在转向过程中所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离始终小于第二预设阈值,其中所述目标方向与所述目标障碍物满足目标位置关系;响应于检测到所述清洁设备的所述当前清扫方向为所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作。According to one aspect of the present disclosure, there is provided a cleaning control method, including: in the case of detecting that a target obstacle appears in the current cleaning direction of the cleaning device, controlling the cleaning device to drive toward a target position, wherein the target The first distance between the position and the target obstacle is less than a first preset threshold; after it is determined that the cleaning device travels to the target position, control the cleaning device to turn to the target direction in a target manner and make the The second distance between the cleaning range covered by the cleaning device and the target obstacle is always smaller than a second preset threshold during the turning process of the cleaning device, wherein the target direction and the target obstacle satisfy a target positional relationship; In response to detecting that the current cleaning direction of the cleaning device is the target direction, the cleaning device is controlled to perform a cleaning operation along the target direction.
在一个示例性实施例中,所述清洁设备包括第一轮体及第二轮体,其中,沿所述目标方 向所述第一轮体处于所述第二轮体的前方,所述在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式向目标方向转向并使所述清洁设备在转向过程中所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离小于第二预设阈值,包括:在所述清洁设备转向时,实时获取所述第二距离;根据实时获取的所述第二距离,实时调整所述第一轮体的前进方向和/或所述第二轮体的后退方向以使所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离始终小于第二预设阈值,直至所述清洁设备的所述当前清扫方向为所述目标方向。In an exemplary embodiment, the cleaning device includes a first wheel body and a second wheel body, wherein the first wheel body is in front of the second wheel body along the target direction, and the After the cleaning device travels to the target position, control the cleaning device to turn to the target direction according to the target method and make the cleaning device between the cleaning range covered by the cleaning device and the target obstacle during the turning process The second distance is less than the second preset threshold, including: when the cleaning device turns, acquiring the second distance in real time; adjusting the advancing direction of the first wheel body in real time according to the second distance acquired in real time and/or the backward direction of the second wheel so that the second distance between the cleaning range covered by the cleaning device and the target obstacle is always smaller than a second preset threshold until the cleaning device reaches the The current cleaning direction is the target direction.
在一个示例性实施例中,所述清洁设备包括清洁件,所述在所述清洁设备转向时,实时获取所述第二距离,包括:在所述清洁设备转向时,实时获取所述清洁件与所述目标障碍物之间的所述第二距离。In an exemplary embodiment, the cleaning device includes a cleaning element, and the obtaining the second distance in real time when the cleaning device turns includes: obtaining the cleaning element in real time when the cleaning device turns The second distance from the target obstacle.
在一个示例性实施例中,所述在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式转向包括:检测所述清洁设备周围是否存在除所述目标障碍物之外的其他障碍物;在检测到所述其他障碍物的情况下,确定所述其他障碍物的位置信息;基于所述其他障碍物的位置信息确定所述目标方向;控制所述清洁设备按照所述目标方式向所述目标方向进行转向。In an exemplary embodiment, after determining that the cleaning device travels to the target position, controlling the cleaning device to turn in a target manner includes: detecting whether there is an obstacle other than the target obstacle around the cleaning device other obstacles outside; if the other obstacles are detected, determine the position information of the other obstacles; determine the target direction based on the position information of the other obstacles; control the cleaning equipment according to the The target mode is turned to the target direction.
在一个示例性实施例中,基于所述其他障碍物的位置信息确定所述目标方向包括:将与所述其他障碍物所在方向的反方向确定为所述目标方向。In an exemplary embodiment, determining the target direction based on the position information of the other obstacle includes: determining a direction opposite to a direction where the other obstacle is located as the target direction.
在一个示例性实施例中,控制所述清洁设备按照所述目标方式向所述目标方向进行转向包括:在控制所述清洁设备按照向所述目标方向进行转向的过程中,基于所述目标方向与所述目标障碍物之间的夹角为所述清洁设备施加与所述目标方向成一定角度的驱动力,以使所述清洁设备覆盖的清洁范围与所述目标障碍物之间的所述第二距离始终小于所述第二预设阈值。In an exemplary embodiment, controlling the cleaning device to turn in the target direction includes: during the process of controlling the cleaning device to turn in the target direction, based on the target direction The angle between the target obstacle and the cleaning device applies a driving force at a certain angle to the target direction, so that the cleaning range covered by the cleaning device and the target obstacle The second distance is always smaller than the second preset threshold.
在一个示例性实施例中,响应于检测到所述清洁设备的所述当前清扫方向为所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作包括:响应于检测到所述清洁设备的所述当前清扫方向为在确定所述清洁设备旋转至与所述目标障碍物平行的所述目标方向之后时,控制所述清洁设备沿所述目标方向执行清扫操作。In an exemplary embodiment, in response to detecting that the current cleaning direction of the cleaning device is the target direction, controlling the cleaning device to perform a cleaning operation along the target direction includes: in response to detecting the The current cleaning direction of the cleaning device is to control the cleaning device to perform a cleaning operation along the target direction after it is determined that the cleaning device rotates to the target direction parallel to the target obstacle.
根据本公开的另一个方面,还提供了一种清扫控制装置,包括:第一控制模块,用于在检测到清洁设备的当前清扫方向上出现目标障碍物的情况下,控制所述清洁设备朝目标位置行驶,其中,所述目标位置与所述目标障碍物之间的第一距离小于第一预设阈值;第二控制模块,用于在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式转向并使所述清洁设备在转向过程中所述清洁设备覆盖的清洁范围与所述目标障碍物之间 的第二距离始终小于所述第二预设阈值,其中,所述目标方向与所述目标障碍物满足目标位置关系;第三控制模块,用于响应于检测到所述清洁设备的所述当前清扫方向为所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作。According to another aspect of the present disclosure, there is also provided a cleaning control device, including: a first control module, configured to control the cleaning device to move toward Traveling at a target position, wherein the first distance between the target position and the target obstacle is less than a first preset threshold; a second control module, configured to, after determining that the cleaning device travels to the target position, controlling the cleaning device to turn in a targeted manner so that the second distance between the cleaning range covered by the cleaning device and the target obstacle is always smaller than the second preset threshold during the turning process of the cleaning device, wherein , the target direction and the target obstacle satisfy a target positional relationship; a third control module, configured to control the cleaning device to move along the Perform sweeping operations in the target direction.
根据本公开的另一个方面,还提供了一种清洁设备,包括上述任一项装置实施例中所述的清扫控制装置。According to another aspect of the present disclosure, there is also provided a cleaning device, including the cleaning control device described in any one of the above device embodiments.
根据本公开的另一个实施例,还提供了一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行上述任一项实施例中所述的方法。According to another embodiment of the present disclosure, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored program, wherein, when the program runs, the program described in any one of the above-mentioned embodiments is executed. described method.
根据本公开的另一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行上述任一项实施例中所述的方法。According to another embodiment of the present disclosure, there is also provided an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to execute any one of the above implementations through the computer program. method described in the example.
通过本公开,在清洁设备的清扫方向上出现障碍物时,可以通过控制清洁设备按照特定的转向方式进行转向来实现清洁设备在转向的过程中其覆盖的清洁范围与所述目标障碍物之间的距离始终小于一定的阈值,从而保证靠近障碍物的区域全被清扫到,实现了清扫的全面性,有效解决相关技术中存在的区域漏扫的问题,提高了清洁设备的清扫效率。Through the present disclosure, when an obstacle appears in the cleaning direction of the cleaning device, the distance between the cleaning range covered by the cleaning device and the target obstacle can be achieved by controlling the cleaning device to turn according to a specific steering method. The distance is always less than a certain threshold, thereby ensuring that all areas close to obstacles are cleaned, realizing comprehensive cleaning, effectively solving the problem of missing areas in related technologies, and improving the cleaning efficiency of cleaning equipment.
附图说明Description of drawings
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present disclosure, and constitute a part of the present application. The schematic embodiments of the present disclosure and their descriptions are used to explain the present disclosure, and do not constitute improper limitations to the present disclosure. In the attached picture:
图1是本公开实施例的一种清扫控制方法的硬件结构框图;Fig. 1 is a hardware structural block diagram of a cleaning control method according to an embodiment of the disclosure;
图2是相关技术中的清洁设备的清扫路径示意图;Fig. 2 is a schematic diagram of a cleaning path of a cleaning device in the related art;
图3是本公开实施例的清扫控制方法的流程图;3 is a flowchart of a cleaning control method according to an embodiment of the present disclosure;
图4是根据本公开实施例的清洁设备的清扫路径示意图;4 is a schematic diagram of a cleaning path of a cleaning device according to an embodiment of the disclosure;
图5是根据本公开实施例的清扫控制装置的结构框图。Fig. 5 is a structural block diagram of a cleaning control device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present disclosure will be described in detail with reference to the accompanying drawings and embodiments. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the specification and claims of the present disclosure and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.
本申请实施例所提供的方法实施例可以在移动机器人,或者类似的运算装置中执行。以运行在移动机器人上为例,图1是本公开实施例的一种清扫控制方法的硬件结构框图。如图 1所示,移动机器人可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,在一个示例性实施例中,上述移动机器人还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动机器人的结构造成限定。例如,移动机器人还可包括比图1中所示更多或者更少的组件,或者具有与图1所示等同功能或比图1所示功能更多的不同的配置。The method embodiments provided in the embodiments of the present application may be executed in a mobile robot or a similar computing device. Taking running on a mobile robot as an example, FIG. 1 is a block diagram of a hardware structure of a cleaning control method according to an embodiment of the present disclosure. As shown in Figure 1, the mobile robot can include one or more (only one is shown in Figure 1) processor 102 (processor 102 can include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and a memory 104 for storing data. In an exemplary embodiment, the above-mentioned mobile robot may also include a transmission device 106 and an input and output device 108 for communication functions. Those skilled in the art can understand that the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above-mentioned mobile robot. For example, the mobile robot may also include more or fewer components than those shown in FIG. 1 , or have a different configuration that is functionally equivalent to or more functionally than that shown in FIG. 1 .
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的清扫控制方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动机器人。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the cleaning control method in the embodiments of the present disclosure, and the processor 102 executes various tasks by running the computer programs stored in the memory 104. A functional application and data processing, that is, to realize the above-mentioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, and these remote memories may be connected to the mobile robot through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动机器人的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used to receive or transmit data via a network. A specific example of the above-mentioned network may include a wireless network provided by a mobile robot's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
首先对本公开的应用场景进行说明:First, the application scenario of the present disclosure is described:
清洁设备在工作的过程中,会按照预先建立的区域地图执行清扫操作,其中,清洁设备在行进过程中如果检测到横在前方的障碍物的情况下,会按照预定的避障方式避开障碍物,常规的避障方式会使得清洁设备在距离障碍物距离较远的位置处进行旋转,如图2所示,虚线方向为常规的清洁设备的形式路径,由此会导致靠近障碍物的区域漏扫的问题,针对该问题,本公开实施例中提出了一种清扫控制方法,可以保证清扫的区域全面性,避免漏扫的情况。本公开实施例中所涉及的清洁设备可以是扫地机器人,或者其他的具备清扫能力以及自动行驶能力的设备。During the working process of the cleaning equipment, it will perform cleaning operations according to the pre-established area map. If the cleaning equipment detects an obstacle lying ahead during the travel process, it will avoid the obstacle according to the predetermined obstacle avoidance method The conventional obstacle avoidance method will cause the cleaning equipment to rotate at a position far away from the obstacle, as shown in Figure 2, the dotted line direction is the path of the conventional cleaning equipment, which will lead to the area close to the obstacle For the problem of missed cleaning, a cleaning control method is proposed in the embodiments of the present disclosure, which can ensure the comprehensiveness of the cleaned area and avoid the situation of missed cleaning. The cleaning device involved in the embodiments of the present disclosure may be a sweeping robot, or other devices capable of cleaning and driving automatically.
下面结合实施例对本公开进行说明:The present disclosure is described below in conjunction with embodiment:
在本实施例中提供了一种清扫控制方法,如图3所示,该方法包括如下步骤:A cleaning control method is provided in this embodiment, as shown in Figure 3, the method includes the following steps:
S302,在检测到清洁设备的当前清扫方向上出现目标障碍物的情况下,控制所述清洁设备朝目标位置行驶,其中,所述目标位置与所述目标障碍物之间的第一距离小于第一预设阈值;S302. When detecting that a target obstacle appears in the current cleaning direction of the cleaning device, control the cleaning device to drive toward a target position, wherein the first distance between the target position and the target obstacle is smaller than the first distance between the target position and the target obstacle a preset threshold;
S304,在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式向目标方向转向并使所述清洁设备在转向过程中所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离始终小于第二预设阈值,其中所述目标方向与所述目标障碍物满足目标位置关系;S304. After it is determined that the cleaning device travels to the target position, control the cleaning device to turn to the target direction in a target manner and make the cleaning range covered by the cleaning device during the turning process consistent with the target A second distance between obstacles is always smaller than a second preset threshold, wherein the target direction and the target obstacle satisfy a target positional relationship;
S306,响应于检测到所述清洁设备的所述当前清扫方向为所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作。S306. In response to detecting that the current cleaning direction of the cleaning device is the target direction, control the cleaning device to perform a cleaning operation along the target direction.
在上述实施例中,目标障碍物至少包括相连的第一部分及第二部分,其中第一部分为位于清洁设备的当前行驶方向上的部分,第二部分为与当前行驶方向呈夹角设置的部分,例如,墙体、橱柜、冰箱、沙发等等。在检测到清洁设备前方出现目标障碍物的情况下,可以先计算清洁设备与障碍物之间的距离(例如,清洁设备可以基于自身配置的距离传感器来确定清洁设备与目标障碍物之间的距离,或者基于自身当前的位置坐标与在预先构建的区域地图中标示的目标障碍物的位置信息确定出清洁设备与目标障碍物之间的距离),然后控制清洁设备朝目标位置减速行驶(该减速的方式可以有多种,例如,可以均匀的减速;也可以先将清洁设备的速度减小至一个预定速度值,然后按照该预定速度值行驶;还可以非均匀减速,例如,随时间减速幅度越来越大,或者随时间减速幅度越来越小等等),在到达该目标位置后可以暂时先停止行驶,继而执行上述的旋转行驶操作,在上述实施例中,目标方向与目标障碍物之间的目标位置关系可以是目标方向与目标障碍物平行,或者近似平行,此外,清洁设备在旋转至目标方向后距清洁设备不少于预设距离的范围内可以不存在该目标障碍物。In the above embodiment, the target obstacle includes at least a connected first part and a second part, wherein the first part is a part located in the current driving direction of the cleaning device, and the second part is a part set at an angle with the current driving direction, For example, walls, cabinets, refrigerators, sofas, etc. In the case that a target obstacle is detected in front of the cleaning device, the distance between the cleaning device and the obstacle can be calculated first (for example, the cleaning device can determine the distance between the cleaning device and the target obstacle based on the distance sensor configured by itself , or determine the distance between the cleaning equipment and the target obstacle based on its current position coordinates and the position information of the target obstacle marked in the pre-built area map), and then control the cleaning equipment to decelerate towards the target position (the deceleration There are many ways, for example, it can decelerate uniformly; it can also reduce the speed of the cleaning equipment to a predetermined speed value, and then drive according to the predetermined speed value; it can also decelerate non-uniformly, for example, the deceleration rate can be reduced over time become larger and larger, or the deceleration range becomes smaller and smaller over time, etc.), after reaching the target position, you can temporarily stop driving, and then perform the above-mentioned rotation driving operation. In the above-mentioned embodiment, the target direction and the target obstacle The target position relationship between them may be that the target direction is parallel to, or approximately parallel to, the target obstacle. In addition, the target obstacle may not exist within a range of not less than a preset distance from the cleaning device after the cleaning device rotates to the target direction.
目标位置与所述目标障碍物之间的距离不超过第一预设阈值,可以使清洁设备开始转向时尽量靠近目标障碍物,从而减少未覆盖的清扫区域;清洁设备覆盖的清洁范围与所述目标障碍物之间的距离小于第二预设阈值,可以使清洁设备的边刷在转向时可清洁范围紧贴近于目标障碍物,从而避免漏扫区域的产生。The distance between the target position and the target obstacle does not exceed the first preset threshold, which can make the cleaning equipment as close as possible to the target obstacle when turning, thereby reducing the uncovered cleaning area; the cleaning range covered by the cleaning equipment is the same as the described The distance between the target obstacles is smaller than the second preset threshold, so that the cleaning range of the side brush of the cleaning device can be close to the target obstacles when turning, thereby avoiding the occurrence of missed scanning areas.
上述各个预设阈值可以灵活设置,对清扫质量要求比较高的情况下,可以将上述阈值设置的小一些,例如,设置成1cm、2cm、5cm等等,对清扫质量要求不太高的情况下,可以将上述阈值设置的大一些,例如,设置成8cm、10cm、15cm等等。在上述实施例中,目标位置与所述目标障碍物之间的第一距离小于第一预设阈值实际上表示的是清洁设备在目标位置上时,清洁设备上距离目标障碍物最近的点与目标障碍物的距离小于上述第一预设阈值,该第一预设阈值还可以设置成足够小的取值,理想情况是使清洁设备上距离目标障碍物最近的边刷等清洁件与目标障碍物的距离为0,以使得清洁设备覆盖的清洁范围与目标障碍物的距离为0。但是在实际操作中,为了避免清洁设备碰撞到障碍物上一般会设置一个比较小的正值。The above preset thresholds can be set flexibly. In the case of relatively high cleaning quality requirements, the above thresholds can be set smaller, for example, set to 1cm, 2cm, 5cm, etc., and the cleaning quality requirements are not too high. , the above threshold can be set larger, for example, set to 8cm, 10cm, 15cm and so on. In the above embodiment, the fact that the first distance between the target position and the target obstacle is less than the first preset threshold actually means that when the cleaning device is at the target position, the point on the cleaning device closest to the target obstacle is closer to the target obstacle. The distance of the target obstacle is smaller than the above-mentioned first preset threshold, and the first preset threshold can also be set to a sufficiently small value. The distance of the object is 0, so that the distance between the cleaning range covered by the cleaning equipment and the target obstacle is 0. However, in actual operation, in order to prevent the cleaning equipment from colliding with obstacles, a relatively small positive value is generally set.
其中,执行上述操作的执行主体可以是清洁设备(例如,智能机器人,或其他的具备清扫能力和自动行驶能力的设备等),或者是清洁设备内设置的处理器,或者其他的具备类似处理能力的设备。Wherein, the executor who performs the above operations may be a cleaning device (for example, an intelligent robot, or other devices with cleaning capabilities and automatic driving capabilities, etc.), or a processor installed in the cleaning device, or other devices with similar processing capabilities device of.
通过上述实施例,在清洁设备的清扫方向上出现障碍物时,可以通过控制清洁设备按照特定的转向方式进行转向以实现清洁设备在转向的过程中其覆盖的清洁范围与所述目标障碍物之间的距离始终小于一定的阈值,从而保证靠近障碍物的区域全被清扫到,实现了清扫的全面性,有效解决相关技术中存在的区域漏扫的问题,提高了清洁设备的清扫效率。Through the above-mentioned embodiments, when an obstacle appears in the cleaning direction of the cleaning device, the cleaning device can be controlled to turn according to a specific steering method so as to realize the distance between the cleaning range covered by the cleaning device and the target obstacle during the turning process. The distance between them is always less than a certain threshold, thereby ensuring that all areas close to obstacles are cleaned, realizing comprehensive cleaning, effectively solving the problem of missing areas in related technologies, and improving the cleaning efficiency of cleaning equipment.
在一个示例性实施例中,所述清洁设备包括第一轮体及第二轮体,其中,沿所述目标方向所述第一轮体处于所述第二轮体的前方,所述在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式向目标方向转向并使所述清洁设备在转向过程中所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离小于第二预设阈值,包括:在所述清洁设备转向时,实时获取所述第二距离;根据实时获取的所述第二距离,实时调整所述第一轮体的前进方向和/或所述第二轮体的后退方向以使所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离始终小于第二预设阈值,直至所述清洁设备的所述当前清扫方向为所述目标方向。在本实施例中,清洁设备上可以配置多个轮体,以设置两个轮体为例,当目标方向为清洁设备的左侧时,设置于清洁设备的左侧的轮体为上述的第一轮体,右侧的轮体为上述的第二轮体,清洁设备在旋转的过程中,需要通过控制第一轮体前进和/或第二轮体后退的方式来实现清洁设备的边刷等清洁件覆盖的清洁范围始终贴近障碍物。In an exemplary embodiment, the cleaning device includes a first wheel body and a second wheel body, wherein the first wheel body is in front of the second wheel body along the target direction, and the After the cleaning device travels to the target position, control the cleaning device to turn to the target direction according to the target method and make the cleaning device between the cleaning range covered by the cleaning device and the target obstacle during the turning process The second distance is less than the second preset threshold, including: when the cleaning device turns, acquiring the second distance in real time; adjusting the advancing direction of the first wheel body in real time according to the second distance acquired in real time and/or the backward direction of the second wheel so that the second distance between the cleaning range covered by the cleaning device and the target obstacle is always smaller than a second preset threshold until the cleaning device reaches the The current cleaning direction is the target direction. In this embodiment, a plurality of wheels can be arranged on the cleaning device. Taking setting two wheels as an example, when the target direction is the left side of the cleaning device, the wheel set on the left side of the cleaning device is the first wheel described above. The wheel body, the wheel body on the right side is the above-mentioned second wheel body. During the rotation of the cleaning device, it is necessary to realize the side brush of the cleaning device by controlling the first wheel body to advance and/or the second wheel body to retreat. The cleaning range covered by the cleaning element is always close to the obstacle.
在一个示例性实施例中,所述清洁设备包括清洁件,所述在所述清洁设备转向时,实时获取所述第二距离,包括:在所述清洁设备转向时,实时获取所述清洁件与所述目标障碍物之间的所述第二距离。在本实施例中,清洁件可以设置于清洁设备的侧面,或者设置于清洁设备的前方和侧面,或者设置于清洁设备的四周,当清洁设备的多侧均设置有清洁件的情况下,在控制清洁设备转向时,可以实时获取与目标障碍物最近的一侧的清洁件与目标障碍物之间的距离。In an exemplary embodiment, the cleaning device includes a cleaning element, and the obtaining the second distance in real time when the cleaning device turns includes: obtaining the cleaning element in real time when the cleaning device turns The second distance from the target obstacle. In this embodiment, the cleaning parts can be arranged on the side of the cleaning equipment, or on the front and side of the cleaning equipment, or around the cleaning equipment. When controlling the turning of the cleaning equipment, the distance between the cleaning piece on the side closest to the target obstacle and the target obstacle can be obtained in real time.
在一个示例性实施例中,所述在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式转向包括:检测所述清洁设备周围是否存在除所述目标障碍物之外的其他障碍物;在检测到所述其他障碍物的情况下,获取所述其他障碍物的位置信息;基于所述其他障碍物的位置信息确定目标方向;控制所述清洁设备按照所述目标方式向所述目标方向进行转向。可选地,可以将与所述其他障碍物所在方向的反方向确定为所述目标方向。在本实施例中,清洁设备可能是贴边行驶的,例如,在贴着墙边朝着墙角或者柜体和墙面的夹角处等位置处行驶时,会存在清洁设备的多个方位上都有障碍物的情况,在该情况下,需要 控制机器人朝着背离其所贴着的墙面的方向行驶,从而避免清洁设备撞到障碍物。如图4所示,在清洁设备右侧有障碍物的情况下,需要向左旋转,即,控制清洁设备逆时针旋转,此外,还需要额外叠加一层控制使得清洁设备的清扫器,例如,边刷始终贴着障碍物(即,使边刷与障碍物的距离始终小于一个阈值,例如,1cm、2cm、5cm等等),在该实施例中,可以通过传感器得到障碍物的距离和位置信息,以边刷与障碍物距离为0(或者其他距离,例如1cm、2cm等等)作为目标进行控制,使得边刷始终贴着障碍物。In an exemplary embodiment, after determining that the cleaning device travels to the target position, controlling the cleaning device to turn in a target manner includes: detecting whether there is an obstacle other than the target obstacle around the cleaning device other obstacles outside; in the case of detecting the other obstacles, obtain the position information of the other obstacles; determine the direction of the target based on the position information of the other obstacles; control the cleaning equipment according to the target way to steer in the direction of the target. Optionally, a direction opposite to the direction of the other obstacle may be determined as the target direction. In this embodiment, the cleaning equipment may be running along the side. For example, when driving close to the wall toward the corner or the angle between the cabinet and the wall, there will be multiple orientations of the cleaning equipment. There are obstacles. In this case, it is necessary to control the robot to move away from the wall it is attached to, so as to avoid the cleaning equipment from hitting the obstacle. As shown in Figure 4, when there is an obstacle on the right side of the cleaning device, it needs to rotate to the left, that is, control the cleaning device to rotate counterclockwise. In addition, an additional layer of control is required to make the cleaner of the cleaning device, for example, The side brush is always attached to the obstacle (that is, the distance between the side brush and the obstacle is always less than a threshold, for example, 1cm, 2cm, 5cm, etc.), in this embodiment, the distance and position of the obstacle can be obtained through the sensor Information, the distance between the side brush and the obstacle is 0 (or other distances, such as 1cm, 2cm, etc.) as the target for control, so that the side brush is always close to the obstacle.
在一个示例性实施例中,控制所述清洁设备按照所述目标方式向所述目标方向进行转向包括:在控制所述清洁设备向所述目标方向进行转向的过程中,基于所述目标方向与所述目标障碍物之间的夹角为所述清洁设备施加与所述目标方向成一定角度的驱动力,以使所述清洁设备覆盖的清洁范围与所述目标障碍物之间的所述第二距离始终小于所述第二预设阈值。在本实施例中,该一定的角度可以灵活设置,只要保证清洁设备覆盖的清洁范围时刻贴近障碍物即可(即,补偿掉清洁设备避障之前的行驶方向上的偏移量,使得清洁设备的边刷一直贴着目标障碍物即可),其中,清洁设备可以基于自身配置的距离传感器来确定清洁设备覆盖的清洁范围与目标障碍物之间的距离,或者基于自身当前的位置坐标与在预先构建的区域地图中标示的目标障碍物的位置信息确定出清洁设备覆盖的清洁范围与目标障碍物之间的距离。在实际操作中,还可以通过其他的方式控制清洁设备覆盖的清洁范围贴近障碍物行驶,例如,每旋转一定的角度就控制清洁设备朝向与旋转方向相反的方向行驶一定的距离(该距离可以基于清洁设备覆盖的清洁范围与障碍物之间的实际垂直距离来定)。In an exemplary embodiment, controlling the cleaning device to turn to the target direction in the target manner includes: during the process of controlling the cleaning device to turn to the target direction, based on the target direction and The included angle between the target obstacles is that the cleaning device applies a driving force at a certain angle to the target direction, so that the cleaning range covered by the cleaning device and the second distance between the target obstacles The second distance is always smaller than the second preset threshold. In this embodiment, the certain angle can be set flexibly, as long as the cleaning range covered by the cleaning device is always close to the obstacle (that is, the offset in the driving direction before the cleaning device avoids the obstacle is compensated, so that the cleaning device The side brush can always stick to the target obstacle), where the cleaning device can determine the distance between the cleaning range covered by the cleaning device and the target obstacle based on its own configured distance sensor, or based on its current position coordinates and the distance between the The position information of the target obstacle marked in the pre-built area map determines the distance between the cleaning range covered by the cleaning equipment and the target obstacle. In actual operation, it is also possible to control the cleaning range covered by the cleaning device to drive close to obstacles in other ways, for example, to control the cleaning device to travel a certain distance in the direction opposite to the direction of rotation every time it rotates at a certain angle (the distance can be based on The actual vertical distance between the cleaning range covered by the cleaning equipment and the obstacles).
在一个示例性实施例中,响应于检测到所述清洁设备的所述当前清扫方向为所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作包括:响应于检测到所述清洁设备的所述当前清扫方向为在确定所述清洁设备旋转至与所述目标障碍物平行的所述目标方向之后时,控制所述清洁设备沿所述目标方向执行清扫操作。在本实施例中,通过将清洁设备调整成与所述目标障碍物平行的方向行驶的情况下,可以保证全面清扫靠近目标障碍物的区域,从而避免漏扫。在实际应用中,如果遇到的目标障碍物是横向障碍物,可以控制清洁设备旋转至机器人的右侧与障碍物平行,且清洁设备贴近该横向障碍物,然后切到正常前进动作;如果遇到的障碍物是坐椅腿等小障碍物的情况下,则可以先控制清洁设备旋转至障碍物到机器右前方的位置,即不阻挡机器前进,再使清洁设备切到正常前进动作。In an exemplary embodiment, in response to detecting that the current cleaning direction of the cleaning device is the target direction, controlling the cleaning device to perform a cleaning operation along the target direction includes: in response to detecting the The current cleaning direction of the cleaning device is to control the cleaning device to perform a cleaning operation along the target direction after it is determined that the cleaning device rotates to the target direction parallel to the target obstacle. In this embodiment, when the cleaning device is adjusted to drive in a direction parallel to the target obstacle, the area close to the target obstacle can be fully cleaned, thereby avoiding missed cleaning. In practical applications, if the target obstacle encountered is a horizontal obstacle, the cleaning device can be controlled to rotate to the right side of the robot parallel to the obstacle, and the cleaning device is close to the horizontal obstacle, and then switch to normal forward action; If the obstacle encountered is a small obstacle such as a chair leg, you can first control the cleaning device to rotate to the position where the obstacle reaches the right front of the machine, that is, the machine will not be blocked from advancing, and then the cleaning device will switch to the normal forward movement.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡 献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present disclosure can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in various embodiments of the present disclosure.
在本实施例中还提供了一种清扫控制装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a cleaning control device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has already been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
图5是根据本公开实施例的清扫控制装置的结构框图,如图5所示,该装置包括:Fig. 5 is a structural block diagram of a cleaning control device according to an embodiment of the present disclosure. As shown in Fig. 5, the device includes:
第一控制模块52,用于在检测到清洁设备的当前清扫方向上出现目标障碍物的情况下,控制所述清洁设备朝目标位置行驶,其中,所述目标位置与所述目标障碍物之间的第一距离小于第一预设阈值;The first control module 52 is configured to control the cleaning device to drive toward a target position when it is detected that a target obstacle appears in the current cleaning direction of the cleaning device, wherein the distance between the target position and the target obstacle is The first distance is less than the first preset threshold;
第二控制模块54,用于在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式转向并使所述清洁设备在转向过程中所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离始终小于第二预设阈值,其中,所述目标方向与所述目标障碍物满足目标位置关系;The second control module 54 is configured to, after determining that the cleaning device travels to the target position, control the cleaning device to turn in a target manner and make the cleaning range covered by the cleaning device during the turning process equal to the A second distance between the target obstacles is always smaller than a second preset threshold, wherein the target direction and the target obstacle satisfy a target positional relationship;
第三控制模块56,用于响应于检测到所述清洁设备的所述当前清扫方向为所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作。The third control module 56 is configured to control the cleaning device to perform a cleaning operation along the target direction in response to detecting that the current cleaning direction of the cleaning device is the target direction.
在一个可选的实施例中,所述清洁设备包括第一轮体及第二轮体,其中,沿所述目标方向所述第一轮体处于所述第二轮体的前方,所述第二控制模块54包括:In an optional embodiment, the cleaning device includes a first wheel body and a second wheel body, wherein the first wheel body is in front of the second wheel body along the target direction, and the first wheel body is in front of the second wheel body. Two control modules 54 include:
第一获取单元,用于在所述清洁设备转向时,实时获取所述第二距离;a first acquiring unit, configured to acquire the second distance in real time when the cleaning device turns around;
调整单元,用于根据实时获取的所述第二距离,实时调整所述第一轮体的前进方向和/或所述第二轮体的后退方向以使所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离始终小于第二预设阈值,直至所述清洁设备的所述当前清扫方向为所述目标方向。An adjustment unit, configured to adjust in real time the advancing direction of the first wheel body and/or the retreating direction of the second wheel body according to the second distance obtained in real time, so that the cleaning range covered by the cleaning device is consistent with the The second distance between the target obstacles is always smaller than a second preset threshold until the current cleaning direction of the cleaning device is the target direction.
在一个可选的实施例中,所述清洁设备包括清洁件,所述获取单元包括:In an optional embodiment, the cleaning device includes a cleaning element, and the acquisition unit includes:
获取子单元,用于在所述清洁设备转向时,实时获取所述清洁件与所述目标障碍物之间的所述第二距离。The acquisition subunit is configured to acquire the second distance between the cleaning piece and the target obstacle in real time when the cleaning device turns.
在一个示例性实施例中,所述第二控制模块54包括:检测单元,用于检测所述清洁设备周围是否存在除所述目标障碍物之外的其他障碍物;第二获取单元,用于在检测到所述其他障碍物的情况下,获取所述其他障碍物的位置信息;确定单元,用于基于所述其他障碍物的位置信息确定所述目标方向;控制单元,用于控制所述清洁设备按照所述目标方式向所述目标方向进行转向。In an exemplary embodiment, the second control module 54 includes: a detection unit, configured to detect whether there are obstacles other than the target obstacle around the cleaning device; a second acquisition unit, configured to If the other obstacle is detected, acquire position information of the other obstacle; a determining unit, configured to determine the target direction based on the position information of the other obstacle; a control unit, configured to control the The cleaning device turns to the target direction according to the target manner.
在一个示例性实施例中,上述确定单元可以通过如下方式实现基于所述其他障碍物的位置信息确定所述目标方向:将与所述其他障碍物所在方向的反方向确定为所述目标方向。In an exemplary embodiment, the determination unit may determine the target direction based on the position information of the other obstacles in the following manner: determine the direction opposite to the direction where the other obstacles are located as the target direction.
在一个示例性实施例中,上述控制单元可以通过如下方式实现控制所述清洁设备按照所述目标方式向所述目标方向进行转向:在控制所述清洁设备向所述目标方向进行转向的过程中,基于所述目标方向与所述目标障碍物之间的夹角为所述清洁设备施加与所述目标方向成一定角度的驱动力,以使所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离始终小于所述第二预设阈值。In an exemplary embodiment, the above control unit may control the cleaning device to turn in the target direction in the following manner: during the process of controlling the cleaning device to turn in the target direction , based on the included angle between the target direction and the target obstacle, apply a driving force at a certain angle to the target direction to the cleaning device, so that the cleaning range covered by the cleaning device is consistent with the target obstacle The second distance between objects is always smaller than the second preset threshold.
在一个示例性实施例中,上述第三控制模块56可以通过如下方式实现响应于检测到所述清洁设备的所述当前清扫方向为所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作:响应于检测到所述清洁设备的所述当前清扫方向为在确定所述清洁设备旋转至与所述目标障碍物平行的所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作。In an exemplary embodiment, the above-mentioned third control module 56 may control the cleaning device along the target direction in response to detecting that the current cleaning direction of the cleaning device is the target direction in the following manner: Executing a cleaning operation: in response to detecting that the current cleaning direction of the cleaning device is the target direction when it is determined that the cleaning device is rotated to be parallel to the target obstacle, controlling the cleaning device to move along the target direction to perform cleaning operations.
在本实施例中还提供了一种清洁设备,该清洁设备可以包括上述任一项所述的清扫控制装置。This embodiment also provides a cleaning device, which may include the cleaning control device described in any one of the above.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
本公开的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present disclosure also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
在本实施例中,上述计算机可读存储介质可以被设置为存储用于执行以下步骤的计算机程序:In this embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for performing the following steps:
S1,在检测到清洁设备前方出现目标障碍物的情况下,控制所述清洁设备朝目标位置行驶,其中,所述目标位置与所述目标障碍物之间的距离小于预设阈值;S1. When detecting that a target obstacle appears in front of the cleaning device, controlling the cleaning device to drive toward a target position, wherein the distance between the target position and the target obstacle is smaller than a preset threshold;
S2,在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式旋转,以使所述清洁设备在旋转过程中始终与所述目标障碍物之间的距离小于所述预设阈值;S2. After determining that the cleaning device travels to the target position, control the cleaning device to rotate in a target manner, so that the distance between the cleaning device and the target obstacle is always less than the preset threshold;
S3,在确定所述清洁设备旋转至与所述目标障碍物满足目标位置关系的目标方向之后,控制所述清洁设备沿所述目标方向执行清扫操作。S3. After it is determined that the cleaning device rotates to a target direction that satisfies a target positional relationship with the target obstacle, control the cleaning device to perform a cleaning operation along the target direction.
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算 机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。Embodiments of the present disclosure also provide an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
在一个示例性实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:In an exemplary embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
S1,在检测到清洁设备前方出现目标障碍物的情况下,控制所述清洁设备朝目标位置行驶,其中,所述目标位置与所述目标障碍物之间的距离小于预设阈值;S1. When detecting that a target obstacle appears in front of the cleaning device, controlling the cleaning device to drive toward a target position, wherein the distance between the target position and the target obstacle is smaller than a preset threshold;
S2,在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式旋转,以使所述清洁设备在旋转过程中始终与所述目标障碍物之间的距离小于所述预设阈值;S2. After determining that the cleaning device travels to the target position, control the cleaning device to rotate in a target manner, so that the distance between the cleaning device and the target obstacle is always less than the preset threshold;
S3,在确定所述清洁设备旋转至与所述目标障碍物满足目标位置关系的目标方向之后,控制所述清洁设备沿所述目标方向执行清扫操作。S3. After it is determined that the cleaning device rotates to a target direction that satisfies a target positional relationship with the target obstacle, control the cleaning device to perform a cleaning operation along the target direction.
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned disclosure can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present disclosure is not limited to any specific combination of hardware and software.
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above descriptions are only preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims (11)

  1. 一种清扫控制方法,其特征在于,包括:A cleaning control method, characterized in that, comprising:
    在检测到清洁设备的当前清扫方向上出现目标障碍物的情况下,控制所述清洁设备朝目标位置行驶,其中,所述目标位置与所述目标障碍物之间的第一距离小于第一预设阈值;When it is detected that a target obstacle appears in the current cleaning direction of the cleaning device, control the cleaning device to drive toward a target position, wherein the first distance between the target position and the target obstacle is smaller than a first preset set threshold;
    在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式向目标方向转向并使所述清洁设备在转向过程中所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离始终小于第二预设阈值,其中所述目标方向与所述目标障碍物满足目标位置关系;After it is determined that the cleaning device travels to the target position, control the cleaning device to turn to the target direction in a targeted manner and make the cleaning range covered by the cleaning device coincide with the target obstacle during the turning process. The second distance between them is always smaller than a second preset threshold, wherein the target direction and the target obstacle satisfy a target position relationship;
    响应于检测到所述清洁设备的所述当前清扫方向为所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作。In response to detecting that the current cleaning direction of the cleaning device is the target direction, the cleaning device is controlled to perform a cleaning operation along the target direction.
  2. 根据权利要求1所述的清扫控制方法,其中,所述清洁设备包括第一轮体及第二轮体,其中,沿所述目标方向所述第一轮体处于所述第二轮体的前方,The cleaning control method according to claim 1, wherein the cleaning device comprises a first wheel body and a second wheel body, wherein the first wheel body is in front of the second wheel body along the target direction ,
    所述在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式向目标方向转向并使所述清洁设备在转向过程中所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离小于第二预设阈值,包括:After determining that the cleaning equipment travels to the target position, controlling the cleaning equipment to turn to the target direction in a target manner and making the cleaning range covered by the cleaning equipment during the turning process consistent with the target The second distance between obstacles is less than a second preset threshold, including:
    在所述清洁设备转向时,实时获取所述第二距离;acquiring the second distance in real time when the cleaning device turns around;
    根据实时获取的所述第二距离,实时调整所述第一轮体的前进方向和/或所述第二轮体的后退方向以使所述清洁设备覆盖的清洁范围与所述目标障碍物之间的第二距离始终小于第二预设阈值,直至所述清洁设备的所述当前清扫方向为所述目标方向。According to the second distance acquired in real time, adjust the advancing direction of the first wheel body and/or the retreating direction of the second wheel body in real time so that the distance between the cleaning range covered by the cleaning equipment and the target obstacle is adjusted in real time. The second distance between them is always smaller than a second preset threshold until the current cleaning direction of the cleaning device is the target direction.
  3. 根据权利要求2所述的清扫控制方法,其中,所述清洁设备包括清洁件,所述在所述清洁设备转向时,实时获取所述第二距离,包括:The cleaning control method according to claim 2, wherein the cleaning equipment includes a cleaning element, and when the cleaning equipment turns, acquiring the second distance in real time includes:
    在所述清洁设备转向时,实时获取所述清洁件与所述目标障碍物之间的所述第二距离。The second distance between the cleaning piece and the target obstacle is obtained in real time when the cleaning device turns.
  4. 根据权利要求1所述的清扫控制方法,其中,所述在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式转向包括:The cleaning control method according to claim 1, wherein after determining that the cleaning equipment travels to the target position, controlling the cleaning equipment to turn in a target manner comprises:
    检测所述清洁设备周围是否存在除所述目标障碍物之外的其他障碍物;Detecting whether there are obstacles other than the target obstacle around the cleaning device;
    在检测到所述其他障碍物的情况下,确定所述其他障碍物的位置信息;If the other obstacle is detected, determine the location information of the other obstacle;
    基于所述其他障碍物的位置信息确定所述目标方向;determining the target direction based on the position information of the other obstacles;
    控制所述清洁设备按照所述目标方式向所述目标方向进行转向。Controlling the cleaning device to turn in the target direction according to the target manner.
  5. 根据权利要求4所述的清扫控制方法,其中,基于所述其他障碍物的位置信息确定所述目标方向包括:The cleaning control method according to claim 4, wherein determining the target direction based on the position information of the other obstacles comprises:
    将与所述其他障碍物所在方向的反方向确定为所述目标方向。The direction opposite to the direction where the other obstacles are located is determined as the target direction.
  6. 根据权利要求4或5所述的清扫控制方法,其中,控制所述清洁设备按照所述目标 方式向所述目标方向进行转向包括:The cleaning control method according to claim 4 or 5, wherein controlling the cleaning equipment to turn in the target direction according to the target mode comprises:
    在控制所述清洁设备向所述目标方向进行转向的过程中,基于所述目标方向与所述目标障碍物之间的夹角为所述清洁设备施加与所述目标方向成一定角度的驱动力,以使所述清洁设备覆盖的清洁范围与所述目标障碍物之间的所述第二距离始终小于所述第二预设阈值。In the process of controlling the cleaning device to turn to the target direction, applying a driving force at a certain angle to the target direction to the cleaning device based on the included angle between the target direction and the target obstacle , so that the second distance between the cleaning range covered by the cleaning device and the target obstacle is always smaller than the second preset threshold.
  7. 根据权利要求1-5中任一项所述的清扫控制方法,其中,响应于检测到所述清洁设备的所述当前清扫方向为所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作包括:The cleaning control method according to any one of claims 1-5, wherein in response to detecting that the current cleaning direction of the cleaning device is the target direction, controlling the cleaning device to follow the target direction Performing cleaning operations includes:
    响应于检测到所述清洁设备的所述当前清扫方向为在确定所述清洁设备旋转至与所述目标障碍物平行的所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作。controlling the cleaning device to perform a cleaning operation along the target direction when it is determined that the cleaning device rotates to the target direction parallel to the target obstacle in response to detecting that the current cleaning direction of the cleaning device is .
  8. 一种清扫控制装置,其中,包括:A cleaning control device, comprising:
    第一控制模块,用于在检测到清洁设备的当前清扫方向上出现目标障碍物的情况下,控制所述清洁设备朝目标位置行驶,其中,所述目标位置与所述目标障碍物之间的第一距离小于第一预设阈值;The first control module is configured to control the cleaning device to drive toward a target position when a target obstacle is detected in the current cleaning direction of the cleaning device, wherein the distance between the target position and the target obstacle is the first distance is less than a first preset threshold;
    第二控制模块,用于在确定所述清洁设备行驶至所述目标位置之后,控制所述清洁设备按照目标方式转向并使所述清洁设备在转向过程中所述清洁设备覆盖的清洁范围始终与所述目标障碍物之间的第二距离小于第二预设阈值,其中,所述目标方向与所述目标障碍物满足目标位置关系;The second control module is configured to, after determining that the cleaning device travels to the target position, control the cleaning device to turn in a target manner and make the cleaning range covered by the cleaning device during the turning process always consistent with the A second distance between the target obstacles is less than a second preset threshold, wherein the target direction and the target obstacle satisfy a target positional relationship;
    第三控制模块,用于响应于检测到所述清洁设备的所述当前清扫方向为所述目标方向时,控制所述清洁设备沿所述目标方向执行清扫操作。A third control module, configured to control the cleaning device to perform a cleaning operation along the target direction in response to detecting that the current cleaning direction of the cleaning device is the target direction.
  9. 一种清洁设备,其中,包括权利要求8所述的清扫控制装置。A cleaning device, comprising the cleaning control device according to claim 8 .
  10. 一种计算机可读的存储介质,其中,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行上述权利要求1至7任一项中所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when running.
  11. 一种电子装置,包括存储器和处理器,其中,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所述权利要求1至7任一项中所述的方法。An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 7 through the computer program .
PCT/CN2022/129454 2021-12-02 2022-11-03 Sweeping control method and apparatus, robot, storage medium, and electronic apparatus WO2023098384A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111464894.6A CN116211170A (en) 2021-12-02 2021-12-02 Cleaning control method, cleaning control device, robot, storage medium and electronic device
CN202111464894.6 2021-12-02

Publications (1)

Publication Number Publication Date
WO2023098384A1 true WO2023098384A1 (en) 2023-06-08

Family

ID=86575513

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/129454 WO2023098384A1 (en) 2021-12-02 2022-11-03 Sweeping control method and apparatus, robot, storage medium, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN116211170A (en)
WO (1) WO2023098384A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09206258A (en) * 1996-02-01 1997-08-12 Fuji Heavy Ind Ltd Control method for cleaning robot
CN1470368A (en) * 2002-07-26 2004-01-28 ������������ʽ���� Robot cleaning device and robot cleaning system and control method thereof
CN108209744A (en) * 2017-12-18 2018-06-29 深圳市奇虎智能科技有限公司 Clean method, device, computer equipment and storage medium
CN109700391A (en) * 2019-03-13 2019-05-03 周妍杉 A kind of sweeping robot and the method for improving sweeping robot corner coverage
CN110403539A (en) * 2019-08-16 2019-11-05 云鲸智能科技(东莞)有限公司 Cleaning control method, clean robot and the storage medium of clean robot
CN111067440A (en) * 2019-12-31 2020-04-28 深圳飞科机器人有限公司 Cleaning robot control method and cleaning robot
CN112716401A (en) * 2020-12-30 2021-04-30 北京奇虎科技有限公司 Obstacle-detouring cleaning method, device, equipment and computer-readable storage medium
US20210138640A1 (en) * 2018-04-09 2021-05-13 Lg Electronics Inc. Robot cleaner
CN113491482A (en) * 2021-07-30 2021-10-12 深圳乐动机器人有限公司 Cleaning control method and cleaning robot
CN113576322A (en) * 2021-08-10 2021-11-02 追觅创新科技(苏州)有限公司 Cleaning method, apparatus and storage medium for cleaning robot

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09206258A (en) * 1996-02-01 1997-08-12 Fuji Heavy Ind Ltd Control method for cleaning robot
CN1470368A (en) * 2002-07-26 2004-01-28 ������������ʽ���� Robot cleaning device and robot cleaning system and control method thereof
CN108209744A (en) * 2017-12-18 2018-06-29 深圳市奇虎智能科技有限公司 Clean method, device, computer equipment and storage medium
US20210138640A1 (en) * 2018-04-09 2021-05-13 Lg Electronics Inc. Robot cleaner
CN109700391A (en) * 2019-03-13 2019-05-03 周妍杉 A kind of sweeping robot and the method for improving sweeping robot corner coverage
CN110403539A (en) * 2019-08-16 2019-11-05 云鲸智能科技(东莞)有限公司 Cleaning control method, clean robot and the storage medium of clean robot
CN111067440A (en) * 2019-12-31 2020-04-28 深圳飞科机器人有限公司 Cleaning robot control method and cleaning robot
CN112716401A (en) * 2020-12-30 2021-04-30 北京奇虎科技有限公司 Obstacle-detouring cleaning method, device, equipment and computer-readable storage medium
CN113491482A (en) * 2021-07-30 2021-10-12 深圳乐动机器人有限公司 Cleaning control method and cleaning robot
CN113576322A (en) * 2021-08-10 2021-11-02 追觅创新科技(苏州)有限公司 Cleaning method, apparatus and storage medium for cleaning robot

Also Published As

Publication number Publication date
CN116211170A (en) 2023-06-06

Similar Documents

Publication Publication Date Title
US10423160B2 (en) Local obstacle avoidance walking method of self-moving robot
US11446566B2 (en) In-game display control method and apparatus, storage medium processor, and terminal
US12105512B2 (en) Method for preventing robot from colliding with charging base
AU2019372250B2 (en) Method and System for Path Sweeping of Cleaning Robot, and Chip
CN109129499B (en) Method for controlling window cleaning robot to walk, window cleaning robot and storage medium
CN103507067B (en) Robot device and guiding robot return the method for base station
WO2023025028A1 (en) Charging method, charging apparatus, and robot
US11075997B2 (en) Technique for reliable communication in a cloud robotics system
CN109870648A (en) Steering engine locked-rotor detection method and device and steering engine
US20190059677A1 (en) Automatic charging method and cleaning robot
US20180275666A1 (en) Autonomous mobile apparatus returning to charger to be charged, autonomous moving method, and non-transitory computer-readable storage medium
WO2023051333A1 (en) Robot control method, robot, control terminal, and control system
CN112060091A (en) Method and device for returning robot to original point, robot and storage medium
WO2024001636A1 (en) Self-moving robot
WO2023098384A1 (en) Sweeping control method and apparatus, robot, storage medium, and electronic apparatus
US20240085919A1 (en) Traversal Method and System, Robot, and Readable Storage Medium
CN118697246A (en) Control method of cleaning equipment
WO2019179469A1 (en) Method and device for controlling rotation of robot, robot, and storage medium
CN210835725U (en) Cleaning equipment
CN112445209A (en) Robot control method, robot, storage medium, and electronic apparatus
WO2023005379A1 (en) Method and apparatus for saving semantic map, storage medium, and electronic device
WO2019179470A1 (en) Robot rotation control method and apparatus, and robot and storage medium
WO2019200997A1 (en) Obstacle determining method for mobile robot, storage medium, and mobile robot
US12099362B2 (en) Method for automatic avoidance of obstacles by mobile apparatus and autonomous mobile apparatus applying method
US20240122100A1 (en) Transversal Method and System, Robot and Readable Storage Medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22900189

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE