Method, device, equipment and readable storage medium for handling obstacles of sweeping robot

By detecting the position of obstacles and performing obstacle-crossing operations, and exiting the state if it fails, it solves the problem of the sweeping robot being unable to effectively overcome obstacles and improves the user experience and cleaning effect.

CN111240311BActive Publication Date: 2024-08-23BEIJING QIHOOD TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811447803.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-29
Publication Date
2024-08-23
Estimated Expiration
2038-11-29

AI Technical Summary

Technical Problem

Existing sweeping robots cannot effectively try to overcome obstacles when encountering them, affecting user experience and cleaning results.

Method used

By detecting the position of the obstacle, the sweeping robot is controlled to perform the obstacle surmounting operation. If it fails, it will leave the obstacle surmounting state, use the driving wheel rotation and backward motion to escape from the obstacle, and determine the position of the obstacle as non-climbable to avoid getting stuck.

Benefits of technology

It realizes an effective test of whether the sweeping robot can overcome obstacles, improves the user experience and cleaning effect, and avoids the situation where the robot gets stuck.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111240311B
    Figure CN111240311B
Patent Text Reader

Abstract

The embodiments of the present application provide a method, device, equipment and readable storage medium for handling obstacles of a sweeping robot. The method includes: when the sweeping robot is detected to move to the position of an obstacle, controlling the sweeping robot to perform an obstacle-crossing operation; if the obstacle-crossing fails, controlling the sweeping robot to leave the obstacle-crossing state. The solution of this embodiment attempts to cross the obstacle by performing an obstacle-crossing operation when the sweeping robot is detected to move to the position of an obstacle, and when it is determined that the obstacle cannot be crossed, controlling the sweeping robot to leave the obstacle-crossing state, so as to realize the sweeping robot's effective attempt to cross the obstacle, meet the needs of actual use, and improve the user experience of the sweeping robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robotics technology, and more specifically, to a method, device, equipment, and readable storage medium for handling obstacles of a sweeping robot. Background Art

[0002] With the rapid development of science and technology, more and more smart home appliances have entered thousands of households, greatly improving people's living comfort and convenience. As an appliance that can automatically clean, the sweeping robot can replace people to clean the floor, reducing people's housework burden, and is increasingly recognized by people.

[0003] When an existing sweeping robot encounters an obstacle during operation, it is unable to make an effective attempt to determine whether the sweeping robot can cross the obstacle, thus failing to meet actual use needs and affecting the user experience of the sweeping robot. Summary of the invention

[0004] The purpose of this application is to solve at least one of the above technical defects. The technical solution adopted by this application is as follows:

[0005] In a first aspect, the present application provides a method for handling obstacles of a sweeping robot, the method comprising:

[0006] When the sweeping robot is detected to move to an obstacle position, the sweeping robot is controlled to perform an obstacle-crossing operation;

[0007] If the obstacle crossing fails, the sweeping robot is controlled to leave the obstacle crossing state.

[0008] Optionally, detecting that the sweeping robot moves to an obstacle position includes:

[0009] When the driving wheel of the sweeping robot is detected to be slipping, the slipping position of the driving wheel is determined to be an obstacle position.

[0010] Optionally, controlling the sweeping robot to perform an obstacle surmounting operation includes:

[0011] Control the sweeping robot to rotate by a first preset angle with a driving wheel on one side as an axis;

[0012] The sweeping robot is controlled to rotate by a second preset angle with the driving wheel on the other side as the axis.

[0013] Optionally, the obstacle crossing failure includes at least one of the following:

[0014] The sweeping robot fails to reach the target position within the first preset time, and the target position is the expected position of the sweeping robot after the obstacle crossing if the sweeping robot can successfully cross the obstacle;

[0015] The robot vacuum cleaner detects a collision when performing an obstacle-crossing operation;

[0016] It is detected that the duration of the driving wheel slipping of the cleaning robot exceeds a second preset time.

[0017] Optionally, controlling the sweeping robot to leave the obstacle crossing state includes:

[0018] The robot vacuum cleaner is controlled to move backward until it reaches a preset state so as to escape from the obstacle crossing state. The preset states include:

[0019] The sweeping robot retreats to a predetermined distance from the obstacle; and,

[0020] During the backward movement, the cleaning robot does not detect any slipping of the driving wheels within a third preset time.

[0021] Optionally, when the sweeping robot cannot retreat until reaching a preset state, controlling the sweeping robot to leave the obstacle crossing state includes:

[0022] Control the sweeping robot to perform a return action; wherein the return action includes:

[0023] Step a, controlling the sweeping robot to rotate the driving wheel on one side forward and the driving wheel on the other side reversely within a third preset time;

[0024] Step b, controlling the sweeping robot to control the two driving wheels to rotate in the opposite direction to the rotation direction in step a within a fourth preset time;

[0025] Step a and step b are executed repeatedly until the sweeping robot moves to the obstacle position.

[0026] Optionally, after the obstacle crossing fails, it also includes:

[0027] Determine the location of the obstacle as one that cannot be climbed over.

[0028] In a second aspect, the present application provides an obstacle handling device for a sweeping robot, the device comprising:

[0029] The obstacle-overcoming operation execution module is used to control the sweeping robot to perform the obstacle-overcoming operation when it is detected that the sweeping robot moves to the obstacle position;

[0030] The obstacle escape module is used to control the sweeping robot to escape from the obstacle escape state when the obstacle escape fails.

[0031] Optionally, when detecting that the sweeping robot moves to an obstacle position, the obstacle-overcoming operation execution module is specifically used to:

[0032] When the driving wheel of the sweeping robot is detected to be slipping, the slipping position of the driving wheel is determined to be an obstacle position.

[0033] Optionally, when controlling the sweeping robot to perform the obstacle crossing operation, the obstacle crossing operation execution module is specifically used to:

[0034] Control the sweeping robot to rotate by a first preset angle with a driving wheel on one side as an axis;

[0035] The sweeping robot is controlled to rotate by a second preset angle with the driving wheel on the other side as the axis.

[0036] Optionally, the obstacle crossing failure includes at least one of the following:

[0037] The sweeping robot fails to reach the target position within the first preset time, and the target position is the expected position of the sweeping robot after the obstacle crossing if the sweeping robot can successfully cross the obstacle;

[0038] The robot vacuum cleaner detects a collision when performing an obstacle-crossing operation;

[0039] It is detected that the duration of the driving wheel slipping of the cleaning robot exceeds a second preset time.

[0040] Optionally, when controlling the sweeping robot to leave the obstacle crossing state, the obstacle crossing module is specifically used to:

[0041] The robot vacuum cleaner is controlled to move backward until it reaches a preset state so as to escape from the obstacle crossing state. The preset states include:

[0042] The sweeping robot retreats to a predetermined distance from the obstacle; and,

[0043] During the backward movement, the cleaning robot does not detect any slipping of the driving wheels within a third preset time.

[0044] Optionally, when the sweeping robot cannot retreat until it reaches a preset state, the obstacle escape module controls the sweeping robot to escape from the obstacle escape state, specifically for:

[0045] Control the sweeping robot to perform a return action; wherein the return action includes:

[0046] Step a, controlling the sweeping robot to rotate the driving wheel on one side forward and the driving wheel on the other side reversely within a third preset time;

[0047] Step b, controlling the sweeping robot to control the two driving wheels to rotate in the opposite direction to the rotation direction in step a within a fourth preset time;

[0048] Step a and step b are executed repeatedly until the sweeping robot moves to the obstacle position.

[0049] Optionally, the method further comprises:

[0050] The module for determining the insurmountable position is used to determine the position of the obstacle as an insurmountable position after the obstacle surmounting fails.

[0051] In a third aspect, the present application provides an electronic device, the electronic device comprising: a processor and a memory;

[0052] A memory, used for storing operation instructions;

[0053] The processor is used to execute the obstacle handling method of the sweeping robot as shown in any implementation of the first aspect of the present application by calling an operation instruction.

[0054] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the obstacle handling method for a sweeping robot shown in any embodiment of the first aspect of the present application.

[0055] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0056] The solution of this embodiment attempts to overcome the obstacle by performing an obstacle-overcoming operation when the sweeping robot is detected to have moved to the position of an obstacle, and when it is determined that the obstacle cannot be overcome, the sweeping robot is controlled to exit the obstacle-overcoming state. This enables the sweeping robot to effectively attempt to overcome the obstacle, meets the needs of actual use, and improves the user experience of the sweeping robot. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0058] Figure 1 A schematic diagram of a flow chart of a method for handling obstacles of a sweeping robot provided in an embodiment of the present application;

[0059] Figure 2 A schematic diagram of the structure of an obstacle handling device for a sweeping robot provided in an embodiment of the present application;

[0060] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present invention.

[0062] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0063] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0064] When an existing sweeping robot encounters an obstacle during operation, it is impossible to determine whether the sweeping robot can cross the obstacle because it is unable to make an effective attempt to cross the obstacle. It is also unable to effectively clean the obstacle area when the obstacle is low and the sweeping robot can cross it, which affects the cleaning effect of the sweeping robot. In addition, the sweeping robot may partially move above the obstacle and then get stuck above the obstacle, causing the sweeping robot to be unable to continue working.

[0065] The obstacle handling method, device, equipment and readable storage medium for a sweeping robot provided in the present application are intended to solve the above technical problems in the prior art.

[0066] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0067] An embodiment of the present application provides a method for handling obstacles encountered by a sweeping robot, such as Figure 1 As shown, the method may mainly include:

[0068] Step S110: When it is detected that the sweeping robot moves to an obstacle position, the sweeping robot is controlled to perform an obstacle-crossing operation;

[0069] Step S120: If the obstacle crossing fails, the cleaning robot is controlled to leave the obstacle crossing state.

[0070] In this embodiment, when the sweeping robot moves to the position of an obstacle, the sweeping robot may be stuck or blocked because the obstacle has a certain height. These situations can be detected to determine whether the sweeping robot moves to the position of the obstacle.

[0071] When the sweeping robot moves to the obstacle position, it enters the obstacle crossing state and performs the obstacle crossing operation, so that the sweeping robot tries to cross the obstacle. If the sweeping robot crosses the obstacle, it can continue the work before the obstacle crossing operation. If the obstacle crossing fails after the obstacle crossing operation, it means that the sweeping robot cannot cross the obstacle, and the sweeping robot can be controlled to exit the obstacle crossing state.

[0072] The obstacle handling method for the sweeping robot provided in this embodiment attempts to overcome the obstacle by performing an obstacle overcoming operation when detecting that the sweeping robot has moved to the position of an obstacle, and when determining that the obstacle cannot be overcome, controls the sweeping robot to exit the obstacle overcoming state. This enables the sweeping robot to effectively attempt to overcome the obstacle, meets the needs of actual use, and improves the user experience of the sweeping robot.

[0073] In another embodiment of the present application, the above-mentioned detection that the sweeping robot moves to an obstacle position includes:

[0074] When the driving wheel of the sweeping robot is detected to be slipping, the slipping position of the driving wheel is determined to be an obstacle position.

[0075] In this embodiment, when the sweeping robot is stuck or blocked after moving to the obstacle position, the driving wheel of the sweeping robot will slip. Therefore, the obstacle position can be determined by detecting the slipping position of the driving wheel. It can be considered that when the driving wheel slips, the position of the sweeping robot is the obstacle position.

[0076] Specifically, when the driving wheel slips, the current of the driving motor of the driving wheel will change, so the driving wheel slip can be detected by monitoring the current change of the driving motor of the driving wheel.

[0077] In another embodiment of the present application, the above-mentioned controlling the sweeping robot to perform an obstacle crossing operation includes:

[0078] Control the sweeping robot to rotate by a first preset angle with a driving wheel on one side as an axis;

[0079] The sweeping robot is controlled to rotate by a second preset angle with the driving wheel on the other side as the axis.

[0080] In this embodiment, the sweeping robot is controlled to rotate on both sides with the driving wheels on both sides as the axis. In practical applications, the speed of the driving wheel on the side serving as the axis can be controlled to be lower than the speed of the driving wheel on the side away from the axis, thereby realizing the rotation of the sweeping robot.

[0081] When the obstacle is at a low height, during the first rotation, the driving wheel on the side away from the axis will contact the obstacle and move along the obstacle, and move above the obstacle; then it will rotate with the driving wheel on the obstacle as the axis, so that the driving wheel on the other side also moves above the obstacle.

[0082] When the sweeping robot is crossing an obstacle, if the two driving wheels move straight toward the obstacle together, the driving wheels are prone to slip when contacting the obstacle, resulting in a lower height that can be crossed. The obstacle crossing operation in this embodiment rotates with the driving wheels on both sides as the axis, so that the two driving wheels successively cross the obstacle, which can make the driving wheel away from the axis side crawl along the obstacle during the rotation process, and can still contact the obstacle after being raised by the obstacle, reducing slippage and providing stronger driving force. Therefore, compared with the two driving wheels moving straight toward the obstacle together, it can cross higher obstacles and has better obstacle crossing ability.

[0083] In this embodiment, the first preset angle may be the degree of the central angle of the circle corresponding to the arc rotated by the sweeping robot during the first rotational motion; the second preset angle may be the degree of the central angle of the circle corresponding to the arc rotated by the sweeping robot during the second rotational motion. The first preset angle and the second preset angle may be set according to actual needs, and the two may be the same or different.

[0084] In another embodiment of the present application, the above-mentioned obstacle surmounting failure includes at least one of the following:

[0085] The sweeping robot fails to reach the target position within the first preset time, and the target position is the expected position of the sweeping robot after the obstacle crossing if the sweeping robot can successfully cross the obstacle;

[0086] The robot vacuum cleaner detects a collision when performing an obstacle-crossing operation;

[0087] It is detected that the duration of the driving wheel slipping of the cleaning robot exceeds a second preset time.

[0088] In this embodiment, the target position can be the expected position where the sweeping robot can successfully overcome the obstacle after the obstacle overcoming. Specifically, when the obstacle overcoming action performed by the sweeping robot is the above-mentioned rotation on both sides with the driving wheels on both sides as the axis, the target position can be calculated based on the current position, the speed of the two driving wheels and the rotation angle.

[0089] The first preset time can be set according to actual conditions. When the obstacle crossing time is not less than the first preset time, it can be considered that the obstacle crossing time is too long and the sweeping robot is in a state where it cannot cross the obstacle normally, that is, the obstacle crossing fails.

[0090] In this embodiment, the collision between the sweeping robot and the obstacle can be detected by the collision sensor of the sweeping robot. The sensing parts of the collision sensor are located on both sides of the body of the sweeping robot. If a collision is detected, it means that the height of the obstacle has reached the body position of the sweeping robot and it can be considered that it cannot be climbed over.

[0091] In this embodiment, if the driving wheels of the sweeping robot continue to slip for a period of time exceeding the second preset time during the obstacle surmounting process, it means that the driving wheels are slipping for a long time. It can be considered that the obstacle is too high, causing the sweeping robot to be unable to climb over it when performing the obstacle surmounting action. The second preset time can be set according to actual conditions.

[0092] In yet another embodiment of the present application, the above-mentioned controlling the sweeping robot to leave the obstacle crossing state includes:

[0093] The robot vacuum cleaner is controlled to move backward until it reaches a preset state so as to escape from the obstacle crossing state. The preset states include:

[0094] The sweeping robot retreats to a predetermined distance from the obstacle; and,

[0095] During the backward movement, the cleaning robot does not detect any slipping of the driving wheels within a third preset time.

[0096] In this embodiment, after determining that the obstacle crossing fails, the sweeping robot can be controlled to leave the obstacle crossing state. After leaving the obstacle crossing state, the sweeping robot has been away from the obstacle, and subsequent work is no longer affected by the obstacle.

[0097] Specifically, the operation of leaving the obstacle crossing state may be to control the sweeping robot to directly retreat.

[0098] When the cleaning robot can retreat to a predetermined distance from the obstacle, it can be considered that the cleaning robot has left the obstacle crossing state. The preset distance can be set according to actual needs.

[0099] During the backward movement, if the cleaning robot does not detect the driving wheel slipping within the third preset time, it can be considered that the cleaning robot has left the obstacle crossing state. The third preset time can be set according to actual needs.

[0100] In another embodiment of the present application, when the sweeping robot cannot retreat until reaching a preset state, the above-mentioned control of the sweeping robot to leave the obstacle crossing state includes:

[0101] Control the sweeping robot to perform a return action; wherein the return action includes:

[0102] Step a, controlling the sweeping robot to rotate the driving wheel on one side forward and the driving wheel on the other side reversely within a third preset time;

[0103] Step b, controlling the sweeping robot to control the two driving wheels to rotate in the opposite direction to the rotation direction in step a within a fourth preset time;

[0104] Step a and step b are executed repeatedly until the sweeping robot moves to the obstacle position.

[0105] In this embodiment, after failing to overcome an obstacle, the sweeping robot may be stuck on top of an obstacle. In this state, controlling the sweeping robot to retreat directly may not be able to break away from the obstacle. A retreat action can be performed to control the sweeping robot to retreat from above the obstacle.

[0106] Specifically, the sweeping robot executes step a to twist toward one side above the obstacle, and executes step b to twist toward the other side above the obstacle. By repeatedly executing steps a and b, the sweeping robot performs left twisting and right twisting actions multiple times above the obstacle, which can move the position of the sweeping robot stuck above the obstacle and retreat from above the obstacle until it reaches the obstacle position.

[0107] In this embodiment, the third preset time and the fourth preset time can be set as needed, so that the third preset time and the fourth preset time can be the same, so that the time for the sweeping robot to twist left and right is the same, avoiding a large deflection to one side.

[0108] When the sweeping robot cannot directly retreat, it performs the above-mentioned escape action and tries to retreat the sweeping robot from the obstacle, which helps the sweeping robot to escape from the obstacle crossing state and ensure the normal operation of the sweeping robot.

[0109] In one embodiment of the present application, after the obstacle surmounting fails, the above method further includes:

[0110] Determine the location of the obstacle as one that cannot be climbed over.

[0111] In this embodiment, by determining the non-climbable position, the non-climbable obstacles are avoided when planning the working route, thereby ensuring the normal operation of the sweeping robot.

[0112] Based on Figure 1 Based on the same principle as the method shown in , the embodiment of the present application also provides an obstacle handling device for a sweeping robot, such as Figure 2 As shown, the obstacle handling device 20 of the sweeping robot may include:

[0113] The obstacle-overcoming operation execution module 210 is used to control the cleaning robot to perform the obstacle-overcoming operation when it is detected that the cleaning robot moves to the obstacle position;

[0114] The obstacle escape module 220 is used to control the cleaning robot to escape from the obstacle escape state when the obstacle escape fails.

[0115] The obstacle handling device of the sweeping robot provided in this embodiment attempts to overcome the obstacle by performing an obstacle overcoming operation when detecting that the sweeping robot has moved to the position of an obstacle, and controls the sweeping robot to exit the obstacle overcoming state when determining that the obstacle cannot be overcome. This enables the sweeping robot to effectively attempt to overcome the obstacle, meets the needs of actual use, and improves the user experience of the sweeping robot.

[0116] Optionally, when detecting that the sweeping robot moves to an obstacle position, the obstacle-overcoming operation execution module is specifically used to:

[0117] When the driving wheel of the sweeping robot is detected to be slipping, the slipping position of the driving wheel is determined to be an obstacle position.

[0118] Optionally, when controlling the sweeping robot to perform the obstacle crossing operation, the obstacle crossing operation execution module is specifically used to:

[0119] Control the sweeping robot to rotate by a first preset angle with a driving wheel on one side as an axis;

[0120] The sweeping robot is controlled to rotate by a second preset angle with the driving wheel on the other side as the axis.

[0121] Optionally, the obstacle crossing failure includes at least one of the following:

[0122] The sweeping robot fails to reach the target position within the first preset time, and the target position is the expected position of the sweeping robot after the obstacle crossing if the sweeping robot can successfully cross the obstacle;

[0123] The robot vacuum cleaner detects a collision when performing an obstacle-crossing operation;

[0124] It is detected that the duration of the driving wheel slipping of the cleaning robot exceeds a second preset time.

[0125] Optionally, when controlling the sweeping robot to leave the obstacle crossing state, the obstacle crossing module is specifically used to:

[0126] The robot vacuum cleaner is controlled to move backward until it reaches a preset state so as to escape from the obstacle crossing state. The preset states include:

[0127] The sweeping robot retreats to a predetermined distance from the obstacle; and,

[0128] During the backward movement, the cleaning robot does not detect any slipping of the driving wheels within a third preset time.

[0129] Optionally, when the sweeping robot cannot retreat until it reaches a preset state, the obstacle escape module controls the sweeping robot to escape from the obstacle escape state, specifically for:

[0130] Control the sweeping robot to perform a return action; wherein the return action includes:

[0131] Step a, controlling the sweeping robot to rotate the driving wheel on one side forward and the driving wheel on the other side reversely within a third preset time;

[0132] Step b, controlling the sweeping robot to control the two driving wheels to rotate in the opposite direction to the rotation direction in step a within a fourth preset time;

[0133] Step a and step b are executed repeatedly until the sweeping robot moves to the obstacle position.

[0134] Optionally, the method further comprises:

[0135] The module for determining the insurmountable position is used to determine the position of the obstacle as an insurmountable position after the obstacle surmounting fails.

[0136] It can be understood that the above modules of the obstacle handling device of the sweeping robot in this embodiment have the function of realizing Figure 1 The functions of the corresponding steps of the obstacle handling method of the sweeping robot in the embodiment shown in . This function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. The above modules can be software and / or hardware, and the above modules can be implemented separately or integrated with multiple modules. For the functional description of each module of the obstacle handling device of the sweeping robot, please refer to Figure 1 The corresponding description of the obstacle handling method of the sweeping robot in the embodiment shown in the figure will not be repeated here.

[0137] The present application embodiment provides an electronic device, such as Figure 3 As shown, Figure 3 The electronic device 2000 shown includes: a processor 2001 and a memory 2003. The processor 2001 and the memory 2003 are connected, such as through a bus 2002. Optionally, the electronic device 2000 may also include a transceiver 2004. It should be noted that in actual applications, the transceiver 2004 is not limited to one, and the structure of the electronic device 2000 does not constitute a limitation on the embodiments of the present application.

[0138] The processor 2001 is applied in the embodiment of the present application to implement the method shown in the above method embodiment. The transceiver 2004 may include a receiver and a transmitter. The transceiver 2004 is applied in the embodiment of the present application to implement the function of the electronic device of the embodiment of the present application communicating with other devices when executed.

[0139] Processor 2001 may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 2001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0140] The bus 2002 may include a path to transmit information between the above components. The bus 2002 may be a PCI bus or an EISA bus, etc. The bus 2002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0141] The memory 2003 may be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, a CD-ROM or other optical disk storage, an optical disk storage (including a compressed optical disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0142] Optionally, the memory 2003 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 2001. The processor 2001 is used to execute the application code stored in the memory 2003 to implement the obstacle handling method of the sweeping robot shown in the above method embodiment.

[0143] The electronic device provided in the embodiment of the present application is applicable to any embodiment of the above method and will not be described in detail here.

[0144] An embodiment of the present application provides an electronic device which, compared with the prior art, attempts to overcome the obstacle by performing an obstacle-overcoming operation when detecting that the sweeping robot moves to the position of an obstacle, and controls the sweeping robot to exit the obstacle-overcoming state when determining that the obstacle cannot be overcome. This enables the sweeping robot to effectively attempt to overcome the obstacle, meets actual use needs, and improves the user experience of the sweeping robot.

[0145] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the obstacle handling method of the sweeping robot shown in the above method embodiment is implemented.

[0146] The computer-readable storage medium provided in the embodiments of the present application is applicable to any embodiment of the above method and will not be described in detail here.

[0147] The embodiment of the present application provides a computer-readable storage medium. Compared with the prior art, the sweeping robot performs an obstacle crossing operation when it is detected that the sweeping robot moves to the position of an obstacle to try to cross the obstacle. When it is determined that the obstacle cannot be crossed, the sweeping robot is controlled to exit the obstacle crossing state. This enables the sweeping robot to effectively attempt to cross the obstacle, meets the needs of actual use, and improves the user experience of the sweeping robot.

[0148] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0149] The above descriptions are only some embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for handling obstacles of a sweeping robot, characterized in that: include: When it is detected that the sweeping robot moves to an obstacle position, controlling the sweeping robot to perform an obstacle-crossing operation; If the obstacle crossing fails, controlling the cleaning robot to leave the obstacle crossing state; The controlling the cleaning robot to leave the obstacle crossing state comprises: controlling the cleaning robot to retreat until reaching a preset state so as to leave the obstacle crossing state, wherein the preset state comprises: the cleaning robot retreats to a predetermined distance from the obstacle position; and, during the retreat process, the cleaning robot does not detect that the driving wheel slips within a third preset time; When the sweeping robot is unable to retreat until reaching a preset state, controlling the sweeping robot to exit the obstacle crossing state comprises: controlling the sweeping robot to perform a retreat action; wherein the retreat action comprises: step a, controlling the sweeping robot to rotate a driving wheel on one side forward and a driving wheel on the other side reversely within a third preset time; step b, controlling the sweeping robot to control the two driving wheels to rotate in a direction opposite to that in step a within a fourth preset time; and cyclically executing steps a and b until the sweeping robot moves to the obstacle position.

2. The method for handling obstacles of a sweeping robot according to claim 1, characterized in that: Detecting when the robot vacuum cleaner moves to an obstacle, including: When the driving wheel of the sweeping robot is detected to be slipping, the slipping position of the driving wheel is determined to be an obstacle position.

3. The method for handling obstacles of a sweeping robot according to claim 1, characterized in that: The controlling the sweeping robot to perform an obstacle-crossing operation includes: Control the sweeping robot to rotate by a first preset angle with a driving wheel on one side as an axis; The sweeping robot is controlled to rotate by a second preset angle with the driving wheel on the other side as the axis.

4. The method for handling obstacles of a sweeping robot according to claim 1, characterized in that: The obstacle failure includes: The cleaning robot fails to reach the target position within the first preset time, and the target position is the expected position of the cleaning robot after the obstacle crossing if the cleaning robot can successfully cross the obstacle; The cleaning robot detects a collision when performing an obstacle-crossing operation; It is detected that the duration of the driving wheel slipping of the cleaning robot exceeds a second preset time.

5. The method for handling obstacles of a sweeping robot according to any one of claims 1 to 4, characterized in that: After the insurmountable obstacle, it also includes: The obstacle position is determined as an insurmountable position.

6. An obstacle handling device for a sweeping robot, characterized in that: include: An obstacle-crossing operation execution module, used to control the sweeping robot to execute the obstacle-crossing operation when detecting that the sweeping robot moves to an obstacle position; An obstacle escape module, used to control the cleaning robot to escape from an obstacle escape state when the obstacle escape fails; Wherein, when controlling the cleaning robot to escape from the obstacle surmounting state, the obstacle surmounting module is specifically used to: control the cleaning robot to retreat until it reaches a preset state so as to escape from the obstacle surmounting state, wherein the preset state includes: the cleaning robot retreats to a predetermined distance from the obstacle position; and, during the retreat process, the cleaning robot does not detect the driving wheel slipping within a third preset time; When the sweeping robot is unable to retreat until reaching a preset state, the obstacle escape module, when controlling the sweeping robot to escape from the obstacle escape state, is specifically used to: control the sweeping robot to perform a retreat action; wherein, the retreat action comprises: step a, controlling the sweeping robot to rotate a driving wheel on one side forward and a driving wheel on the other side reversely within a third preset time; step b, controlling the sweeping robot to control the two driving wheels to rotate in the opposite direction to that in step a within a fourth preset time; and cyclically executing steps a and b until the sweeping robot moves to the obstacle position.

7. The obstacle handling device for a sweeping robot according to claim 6, characterized in that: When the sweeping robot is detected to move to an obstacle position, the obstacle-overcoming operation execution module is specifically used to: When the driving wheel of the sweeping robot is detected to be slipping, the slipping position of the driving wheel is determined to be an obstacle position.

8. The obstacle handling device for a sweeping robot according to claim 6, characterized in that: When controlling the cleaning robot to perform the obstacle-crossing operation, the obstacle-crossing operation execution module is specifically used to: Control the sweeping robot to rotate by a first preset angle with a driving wheel on one side as an axis; The sweeping robot is controlled to rotate by a second preset angle with the driving wheel on the other side as the axis.

9. The obstacle handling device for a sweeping robot according to claim 6, characterized in that: The obstacle failure includes: The cleaning robot fails to reach the target position within the first preset time, and the target position is the expected position of the cleaning robot after the obstacle crossing if the cleaning robot can successfully cross the obstacle; The cleaning robot detects a collision when performing an obstacle-crossing operation; It is detected that the duration of the driving wheel slipping of the cleaning robot exceeds a second preset time.

10. The obstacle handling device for a sweeping robot according to any one of claims 6 to 9, characterized in that: Also includes: The module for determining an insurmountable position is used to determine the position of the obstacle as an insurmountable position after the obstacle is found to be insurmountable.

11. An electronic device, characterized in that: It includes a processor and a memory; The memory is used to store operation instructions; The processor is used to execute the obstacle handling method of the sweeping robot according to any one of claims 1 to 5 by calling the operation instruction.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the obstacle handling method of the sweeping robot described in any one of claims 1 to 5 is implemented.