US20260013693A1

Method and Apparatus for Detecting State of Sweeping Robot, Sweeping Robot, and Storage Medium

Publication

Country:US
Doc Number:20260013693
Kind:A1
Date:2026-01-15

Application

Country:US
Doc Number:18993940
Date:2023-08-10

Classifications

IPC Classifications

A47L11/40A47L9/14A47L9/19A47L9/28A47L11/24

CPC Classifications

A47L11/4011A47L9/1409A47L9/19A47L9/2805A47L11/24A47L11/4013A47L2201/00

Applicants

TP-LINK CORPORATION LIMITED

Inventors

Wen LI

Abstract

A method and apparatus for detecting a state of a sweeping robot, a sweeping robot, and a storage medium are provided. The method includes: judging a state of a fan of the sweeping robot; acquiring body posture information of the sweeping robot based on a posture detection structure if the fan is in an on state; acquiring a magnetic value based on a magnetic detection structure, and determining a dust suction included angle between a surface of a dust suction port of a dust box of the sweeping robot and a fixed end of a one-way valve according to the magnetic value; and determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle.

Figures

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001]This application is a National Stage Entry under 35 U.S.C. § 371 of PCT International Application No. PCT/CN2023/112343 filed on Aug. 10, 2023, which claims priority to Chinese patent application No. 202210954054.6, entitled “Method and Apparatus for Detecting State of Sweeping Robot, Sweeping Robot, and Storage Medium”, filed to China National Intellectual Property Administration on Aug. 10, 2022, the entire contents of each of which are incorporated herein by reference.

TECHNICAL FIELD

[0002]This application belongs to the technical field of smart cleaners, and in particular, to a method and apparatus for detecting a state of a sweeping robot, a sweeping robot, and a storage medium.

BACKGROUND

[0003]Currently, an increasing number of people have started using sweeping robots for household cleaning. Although these sweeping robots bring a lot of convenience to our lives, if they are not equipped with a dust collection bin while users forget to empty a dust box, the dust box may be filled with trash and dust, which can result in two problems: firstly, the cleaning rate of the sweeping robot is reduced; and secondly, the accumulated trash over time can harbor bacteria, which is detrimental to health.

[0004]
To solve the above problems, the following methods are currently used to detect whether the dust box is full:
    • [0005](1) judging whether the dust box is full based on the operating time of the sweeping robot;
    • [0006](2) detecting whether the dust box is full according to a photoelectric tube pair combined with an infrared signal; and
    • [0007](3) detecting whether the dust box is full by sensing changes in voltage values.
[0008]
However, the above methods still have the following problems:
    • [0009](1) the user needs to frequently clean the infrared tube pair, as stains or dust adhering to the infrared tube pair can cause false triggers, resulting in a poor experience effect.
    • [0010](2) the methods do not take into account changes in the posture of the sweeping robot itself, which can subsequently affect the accuracy of a dust fullness detection result.

SUMMARY

[0011]This application aims to at least solve one of technical problems in the related art to some extent. Therefore, one objective of this application is to provide a method and apparatus for detecting a state of a sweeping robot, a sweeping robot, and a storage medium.

[0012]In order to solve the above technical problems, the embodiments of this application provide the following technical solutions:

[0013]
A method for detecting a state of a sweeping robot includes:
    • [0014]judging a state of a fan of the sweeping robot;
    • [0015]acquiring body posture information of the sweeping robot based on a posture detection structure when the fan is in an on state;
    • [0016]acquiring a magnetic value based on a magnetic detection structure, and determining a dust suction included angle between a surface of a dust suction port of a dust box of the sweeping robot and a fixed end of a one-way valve according to the magnetic value, where an outer side of the one-way valve is provided with a magnetic structure, an outer side of a working surface of the dust box is provided with the magnetic detection structure, and the magnetic detection structure is configured to detect the magnetic value of the magnetic structure; and
    • [0017]determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle.
[0018]
As at least one alternative embodiment, the acquiring body posture information of the sweeping robot based on a posture detection structure includes:
    • [0019]acquiring a body included angle between a body of the sweeping robot and a horizontal plane; and
    • [0020]determining a posture of the sweeping robot according to the body included angle, where the posture includes a first posture, a second posture, a third posture, and a fourth posture,
    • [0021]when the body included angle is equal to zero, the sweeping robot is in the first posture;
    • [0022]when the body included angle is in an oscillating change state, the sweeping robot is in the second posture, and in the oscillating change process, the body included angle oscillates above and below zero or at zero;
    • [0023]when the body included angle is greater than zero, the sweeping robot is in the third posture; and
    • [0024]when the body included angle is less than zero, the sweeping robot is in the fourth posture.
[0025]
As at least one alternative embodiment, the acquiring a magnetic value based on a magnetic detection structure, and determining a dust suction included angle between a surface of a dust suction port of a dust box of the sweeping robot and a fixed end of a one-way valve according to the magnetic value includes:
    • [0026]when a free end of the one-way valve is attached to an outer side of the working surface, the magnetic detection structure and the magnetic structure being in an opposite state, and the dust suction included angle being equal to zero; or
    • [0027]when the free end of the one-way valve is not attached to the outer side of the working surface, a dust suction area being formed between the free end of the one-way valve and the dust suction port, the dust suction included angle being greater than zero, and a trash entering the dust box through the dust suction area from the dust suction port.
[0028]
As at least one alternative embodiment, the determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle includes:
    • [0029]comparing the dust suction included angle with a first threshold when the sweeping robot is in the first posture, where the first threshold is determined based on a real-time suction value of the fan,
    • [0030]when the dust suction included angle is greater than or equal to the first threshold, the dust collection state of the dust box is full;
    • [0031]or when the dust suction included angle is less than the first threshold, the dust collection state of the dust box is not full.
[0032]
As at least one alternative embodiment, the determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle further includes:
    • [0033]acquiring a first difference between the dust suction included angle and the first threshold when the sweeping robot is in the second posture, where
    • [0034]when the first difference is in an oscillating change state, and in the oscillating change process, the first difference oscillates above and below zero or at zero, the dust collection state of the dust box is not full;
    • [0035]or when the first difference is not in the oscillating change state, and the first difference is greater than or equal to zero, the dust collection state of the dust box is full.
[0036]
As at least one alternative embodiment, the determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle further includes:
    • [0037]when the sweeping robot is in the third posture, the magnetic detection structure stopping detecting magnetic force until the sweeping robot is not in the third posture.
[0038]
As at least one alternative embodiment, the determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle further includes:
    • [0039]acquiring a first difference between the dust suction included angle and the first threshold when the sweeping robot is in the fourth posture, where
    • [0040]when the first difference is less than zero, the dust collection state of the dust box is not full;
    • [0041]or when the first difference is greater than or equal to zero, the dust collection state of the dust box is full.
[0042]
As at least one alternative embodiment, after the judging the state of a fan of the sweeping robot, the method further includes:
    • [0043]acquiring the body posture information of the sweeping robot based on the posture detection structure if the fan is in an off state;
    • [0044]acquiring a magnetic value detected by the magnetic detection structure if the sweeping robot is in the first posture, and determining the dust suction included angle according to the magnetic value; and
    • [0045]comparing a dust suction included angle with zero, where
    • [0046]when the dust suction included angle is greater than zero, the dust collection state of the dust box is full; and
    • [0047]when the dust suction included angle is equal to zero, the dust collection state of the dust box is not full.
[0048]
An embodiment of this application further provides an apparatus for detecting a state of a sweeping robot, including:
    • [0049]a judgment module, configured to judge a state of a fan of the sweeping robot;
    • [0050]a first acquiring module, configured to acquire body posture information of the sweeping robot based on a posture detection structure when the fan is in an on state;
    • [0051]a second acquiring module, configured to acquire a magnetic value based on a magnetic detection structure, and determine a dust suction included angle between a surface of a dust suction port of a dust box of the sweeping robot and a fixed end of a one-way valve according to the magnetic value, where an outer side of the one-way valve is provided with a magnetic structure, an outer side of a working surface of the dust box is provided with the magnetic detection structure, when a free end of the one-way valve is attached to the outer side of the working surface, the magnetic detection structure and the magnetic structure are in an opposite state, and when the free end of the one-way valve is not attached to the outer side of the working surface, a dust suction area is formed between the free end of the one-way valve and the dust suction port, and trash enters the dust box through the dust suction area from the dust suction port; and
    • [0052]a determination module, configured to determine a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle.
[0053]
An embodiment of this application further provides a sweeping robot, including: a dust box, a dust suction port being provided on a working surface of the dust box; and a one-way valve, a fixed end of the one-way valve being rotationally connected with an outer side of the working surface and the one-way valve covering an outer portion of the dust suction port. The sweeping robot further includes:
    • [0054]a posture detection structure, where the posture detection structure is arranged on an outer side of the sweeping robot, and the posture detection structure is configured to detect body posture information of the sweeping robot and send the body posture information to a controller;
    • [0055]a magnetic structure, which is arranged on an outer side of the one-way valve; and
    • [0056]a magnetic detection structure, which is arranged on the outer side of the working surface, where when a free end of the one-way valve is attached to the outer side of the working surface, the magnetic detection structure and the magnetic structure are in an opposite state; when the free end of the one-way valve is not attached to the outer side of the working surface, a dust suction area is formed between the free end of the one-way valve and the dust suction port, and a trash enters the dust box through the dust suction area from the dust suction port; and the magnetic detection structure is configured to detect received magnetic force, and send a detected magnetic value to the controller of the sweeping robot, and
    • [0057]the controller is configured to determine a dust collection state of the dust box according to the body posture information and the magnetic value.

[0058]An embodiment of this application further provides a computer-readable storage medium. The computer-readable storage medium includes a stored computer program. The computer program, when running, controls a device where the computer-readable storage medium is located to perform the above method.

[0059]
The embodiments of this application have the following technical effects:
    • [0060]according to the above technical solutions of this application, 1) after determining that the fan is in the on state, the current posture of the sweeping robot is first judged based on the posture detection structure, and the current posture is applied to the determination of the dust collection state of the dust box, thereby solving the problem of misjudgment of the dust collection state of the dust box caused by changes in the posture of the sweeping robot; and
    • [0061]2) the dust collection state of the dust box is determined in combination with the current posture of the sweeping robot, the real-time dust suction included angle between the fixed end of the one-way valve and the surface of the dust suction port, or the real-time rate of change of the dust suction included angle, thereby improving the accuracy of judging the dust collection state of the dust box; and at the same time, the user does not need to frequently check whether the dust box is full or to consciously remember the usage time of the dust box, and the user may also be notified in time to clean the dust box, thereby preventing the growth of bacteria, etc., and enhancing user satisfaction.

[0062]Additional aspects and advantages of this application will be partially given in the following description, and partially will become apparent from the following description, or may be learned from practices of this application.

BRIEF DESCRIPTION OF THE DRAWINGS

[0063]FIG. 1 is a schematic diagram of a structure of a dust box according to an embodiment of this application;

[0064]FIG. 2 is a schematic diagram of a structure of another dust box according to another embodiment of this application;

[0065]FIG. 3 is a schematic flowchart of a method for detecting a state of a sweeping robot according to an embodiment of this application;

[0066]FIG. 4 is a schematic diagram of changes in body included angle when a sweeping robot is in an obstacle-crossing posture according to an embodiment of this application;

[0067]FIG. 5 is a schematic diagram of changes in first difference when a sweeping robot is in an obstacle-crossing posture according to an embodiment of this application;

[0068]FIG. 6 is an example of a schematic flowchart of a method for detecting a state of a sweeping robot according to an embodiment of this application; and

[0069]FIG. 7 is a schematic diagram of a structure of an apparatus for detecting a state of a sweeping robot according to an embodiment of this application.

[0070]In the figures: 100—dust box; 101—magnetic structure; 102—magnetic detection structure; 103—one-way valve; 104—dust suction port; and 105—working surface.

DETAILED DESCRIPTION OF THE EMBODIMENTS

[0071]Embodiments of this application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, and the same or similar numerals denote the same or similar elements or elements having the same or similar functions throughout the description. The following embodiments described with reference to the accompanying drawings are exemplary, and are intended to explain this application but are not to be construed as limiting this application.

[0072]
As shown in FIG. 1 and FIG. 2, an embodiment of this application provides a sweeping robot, including: a dust box 100, where a working surface 105 of the dust box 100 is provided with a dust suction port 104; and a one-way valve 103, where a fixed end of the one-way valve 103 is rotationally connected with an outer side of the working surface 105 and the one-way valve 103 covers an outer portion of the dust suction port 104. The sweeping robot further includes:
    • [0073]a posture detection structure, where the posture detection structure is arranged on an outer side of the sweeping robot, and the posture detection structure is configured to detect body posture information of the sweeping robot and send the body posture information to a controller;
    • [0074]according to this embodiment of this application, the outer side of the working surface 105 of the dust box 100 is provided with a connection structure, the connection structure is arranged above the dust suction port 104, and is rotationally connected with the fixed end of the one-way valve 103, and the connection structure may be achieved based on a connection axis; and
    • [0075]according to this embodiment of this application, the posture detection structure may be achieved based on a six-axis sensor, where the posture detection structure may be arranged at a bottom or a side portion of the sweeping robot, and is configured to detect a body included angle between a body of the sweeping robot and a horizontal plane, and send the detected body included angle to the controller;
    • [0076]a magnetic structure 101, which is arranged on an outer side of the one-way valve 103; and
    • [0077]a magnetic detection structure 102, which is arranged on the outer side of the working surface 105, where when a free end of the one-way valve 103 is attached to the outer side of the working surface 105, the magnetic detection structure 102 and the magnetic structure 101 are in an opposite state; when the free end of the one-way valve 103 is not attached to the outer side of the working surface 105, a dust suction area is formed between the free end of the one-way valve 103 and the dust suction port 104, and a trash enters the dust box 100 through the dust suction area from the dust suction port 104; and the magnetic detection structure 102 is configured to detect received magnetic force, and send a detected magnetic value to the controller of the sweeping robot.

[0078]According to this embodiment of this application, the magnetic detection structure 102 may be achieved based on a Hall sensor, where the farther the distance between the magnetic structure 101 and the magnetic detection structure 102, the smaller the magnetic value detected by the magnetic detection structure 102. Therefore, there is a negative correlation between the magnetic value and the dust suction included angle.

[0079]The controller is configured to determine a dust collection state of the dust box 100 according to the body posture information and the magnetic value.

[0080]According to this embodiment of this application, the controller is arranged inside the sweeping robot, where the controller may be in communication connection with the magnetic detection structure 102 and the posture detection structure based on communication means such as the network.

[0081]Further, the controller converts the acquired magnetic value into the dust suction included angle based on a preset algorithm, where the preset algorithm is an existing algorithm. This embodiment of this application does not impose specific limitations on this.

[0082]According to this embodiment of this application, a fan is further included and is arranged inside the sweeping robot. An air outlet of the fan is connected with the dust box 100 and is configured to provide suction force into the dust box 100 for trash or dust collection, where the higher the real-time working gear of the fan, i.e., the greater the real-time output power of the fan, the greater the real-time suction value provided into the dust box 100 for trash collection.

[0083]According to an optional embodiment of this application, the magnetic structure 101 may be achieved based on a lightweight and small-sized magnet. A specific installation position of the magnetic structure 101 may be selected according to actual needs. For example, the magnetic structure 101 may be installed at the positions shown in FIG. 1 and FIG. 2, or on another edge outside the one-way valve 103, or on a bottom edge of the one-way valve 103, etc.

[0084]Further, regardless of where the magnetic structure 101 is installed, correspondingly, the magnetic detection structure 102 is installed at a position on the outer side of the working surface 105 opposite to the magnetic structure 101. That is, when the free end of the one-way valve 103 is attached to the dust suction port 104, the magnetic detection structure 102 is opposite to the magnetic structure 101, thereby achieving accurate detection of the magnetic force by the magnetic detection structure 102. After the magnetic value is sent to the controller, the controller may accurately calculate the dust suction included angle according to the acquired magnetic value.

[0085]According to this embodiment of this application, the controller may accurately detect the dust collection state of the dust box 100 according to the acquired current posture of the sweeping robot and the corresponding dust suction included angle.

[0086]As shown in FIG. 3, an embodiment of this application further provides a method for detecting a state of a sweeping robot, applied to the sweeping robot shown in FIG. 1 and FIG. 2 as above, including:

[0087]Step S301: a state of the fan of the sweeping robot is judged.

[0088]According to this embodiment of this application, when the sweeping robot is in the operating state, the fan is in an on state, and when the sweeping robot is not in the operating state, the fan is in an off state. When the fan is in the on state, the air outlet of the fan provides the suction force into the dust box 100 for trash collection, creating a negative pressure that causes the free end of the one-way valve 103 to move away from the dust suction port 104, forming a dust suction included angle between the fixed end of the one-way valve 103 and a surface of the dust suction port 104. Therefore, according to this embodiment of this application, when the dust box 100 is not yet full, the dust suction included angle is positively correlated with the magnitude of the suction force provided by the fan. Therefore, according to this embodiment of this application, when the dust collection state of the dust box 100 is detected, it is necessary to first detect whether the fan is on, and then detect the gear of the fan or the magnitude of the suction force of the fan for subsequent algorithms to perform more accurate detection or calculation.

[0089]Step S302: body posture information of the sweeping robot is acquired based on a posture detection structure when the fan is in the on state.

[0090]
As at least one alternative embodiment, the step of acquiring body posture information of the sweeping robot based on a posture detection structure includes:
    • [0091]acquiring a body included angle between a body of the sweeping robot and a horizontal plane; and
    • [0092]determining a posture of the sweeping robot according to the body included angle, where the posture includes a first posture, a second posture, a third posture, and a fourth posture,
    • [0093]when the body included angle is equal to zero, the sweeping robot is in the first posture;
    • [0094]when the body included angle is in an oscillating change state, the sweeping robot is in the second posture, and in the oscillating change process, the body included angle oscillates above and below zero or at zero;
    • [0095]when the body included angle is greater than zero, the sweeping robot is in the third posture; and
    • [0096]when the body included angle is less than zero, the sweeping robot is in the fourth posture.

[0097]According to this embodiment of this application, the first posture may be a horizontal posture, the second posture may be an obstacle-crossing posture, the third posture may be an uphill posture, and the fourth posture may be a downhill posture.

[0098]When the sweeping robot is in the horizontal posture, the body included angle between the body of the sweeping robot and the horizontal plane is zero.

[0099]As shown in FIG. 4, when the sweeping robot is in the obstacle-crossing posture, due to the instability of the body, the body included angle between the body and the horizontal plane is also in the oscillating change state. For example, the body included angle may be positive, negative, or zero, and as the position of the body of the sweeping robot constantly changes, the body included angle also continuously changes.

[0100]When the sweeping robot is in the uphill posture, since the position of the body of the sweeping robot is in a stable changing process, the body included angle is also in a stable changing state. In the uphill process of the sweeping robot, the body included angle continuously increases, that is, the rate of change of the body included angle is greater than 0.

[0101]When the sweeping robot is in the downhill posture, since the position of the body of the sweeping robot is in a stable changing process, the body included angle is also in a stable changing state. In the downhill process of the sweeping robot, the body included angle continuously decreases, that is, the rate of change of the body included angle is less than 0.

[0102]According to this embodiment of this application, after determining that the fan is in the on state, the current posture of the sweeping robot is first judged based on the posture detection structure, and the current posture is applied to the determination of the dust collection state of the dust box 100, thereby solving the problem of misjudgment of the dust collection state of the dust box 100 caused by changes in the posture of the sweeping robot.

[0103]Step S303: a magnetic value is acquired based on a magnetic detection structure 102, and a dust suction included angle between the surface of the dust suction port 104 of the dust box 100 of the sweeping robot and the fixed end of the one-way valve 103 is determined according to the magnetic value, where the outer side of the one-way valve 103 is provided with the magnetic structure 101, an outer side of a working surface 105 of the dust box 100 is provided with a magnetic detection structure 102, and the magnetic detection structure 102 is configured to detect the magnetic value of the magnetic structure 101.

[0104]
As at least one alternative embodiment, the step of acquiring a magnetic value based on a magnetic detection structure 102, and determining a dust suction included angle between the surface of the dust suction port 104 of the dust box 100 of the sweeping robot and the fixed end of the one-way valve 103 according to the magnetic value includes:
    • [0105]when the free end of the one-way valve 103 is attached to the outer side of the working surface 105, the magnetic detection structure 102 and the magnetic structure 101 being in an opposite state, and the dust suction included angle being equal to zero; or
    • [0106]when the free end of the one-way valve 103 is not attached to the outer side of the working surface 105, a dust suction area being formed between the free end of the one-way valve 103 and the dust suction port 104, the dust suction included angle being greater than zero, and trash entering the dust box 100 through the dust suction area from the dust suction port 104.

[0107]According to this embodiment of this application, the magnetic structure 101 is arranged on the outer side of the one-way valve 103 and when the free end of the one-way valve 103 is attached to the outer side of the working surface 105, the magnetic structure 101 is opposite to the magnetic detection structure 102 in position, but the fan is in the off state at this time, no dust suction area is formed, as a result, the trash cannot be collected, and therefore the magnetic detection structure 102 is in the off state, and does not detect magnetic force. After the fan is in the on state, influenced by the negative pressure formed by the suction force of the fan, the free end of the one-way valve 103 moves away from the outer side of the working surface 105, and in this case, the magnetic detection structure 102 is in the on state, starts to detect the acquired magnetic force, and sends the detected magnetic value to the controller in the form of signals.

[0108]Step S304: a dust collection state of the dust box 100 is determined according to the body posture information of the sweeping robot and the dust suction included angle.

[0109]
As at least one alternative embodiment, the step of determining a dust collection state of the dust box 100 according to the body posture information of the sweeping robot and the dust suction included angle includes:
    • [0110]comparing the dust suction included angle with a first threshold when the sweeping robot is in the first posture, where the first threshold is determined based on a real-time suction value of the fan,
    • [0111]when the dust suction included angle is greater than or equal to the first threshold, the dust collection state of the dust box 100 is full;
    • [0112]or when the dust suction included angle is less than the first threshold, the dust collection state of the dust box 100 is not full.

[0113]According to this embodiment of this application, the first threshold is first determined according to the real-time suction value of the fan.

[0114]
The real-time suction value of the fan and the first threshold have the following correspondence:
    • [0115]when the real-time suction value corresponds to a first-level suction force, the first threshold is A;
    • [0116]when the real-time suction value corresponds to a second-level suction force, the first threshold is B;
    • [0117]when the real-time suction value corresponds to a third-level suction force, the first threshold is C; and
    • [0118]when the real-time suction value corresponds to a fourth-level suction force, the first threshold is D,
    • [0119]where the first-level suction force<the second-level suction force<the third-level suction force<the fourth-level suction force, and
    • [0120]correspondingly, A<B<C<D.

[0121]For example, when the sweeping robot is in the first posture, namely the horizontal posture, and the dust suction included angle is greater than or equal to the first threshold, the dust box 100 is already in a full state, and needs to be cleaned, and after the fan is turned off, due to the dust box 100 being full, resulting in overflow of trash, dust, etc., the one-way valve 103 still cannot reset.

[0122]When the dust suction included angle is less than the first threshold, the dust box 100 is not full, and does not need to be cleaned, and after the fan is turned off, due to the dust box 100 being not full, the one-way valve 103 can reset.

[0123]
As shown in FIG. 5, according to an optional embodiment of this application, the step of determining a dust collection state of the dust box 100 according to the body posture information of the sweeping robot and the dust suction included angle further includes:
    • [0124]acquiring a first difference between the dust suction included angle and the first threshold when the sweeping robot is in the second posture, where
    • [0125]when the first difference is in an oscillating change state, and in the oscillating change process, the first difference oscillates above and below zero or at zero, the dust collection state of the dust box 100 is not full;
    • [0126]or when the first difference is not in the oscillating change state, and the first difference is greater than or equal to zero, the dust collection state of the dust box 100 is full.

[0127]According to this embodiment of this application, when the sweeping robot is in the obstacle-crossing posture, the body of the sweeping robot is in the oscillating change state, and therefore the body included angle between the body of the sweeping robot and the horizontal plane is in the oscillating change state as well. Therefore, the dust suction included angle is also in the oscillating change state, to facilitate the determination about whether the dust box 100 is full.

[0128]
According to this embodiment of this application, the controller compares the dust suction included angle acquired in real time with the first threshold, and the first threshold is determined according to the magnitude or the level of the current suction force of the fan; and
    • [0129]the controller acquires the first difference after comparing the dust suction included angle with the first threshold,
    • [0130]where when the first difference is in the oscillating change state, that is, the first difference may be positive, negative, or zero, and the first difference continuously jumps between positive, negative, or zero, it indicates that the dust collection state of the dust box 100 is not full at this time; and
    • [0131]when the first difference is greater than or equal to zero, it indicates that although the body is in the oscillating change state, due to the overflow of dust, trash, etc. of the dust box 100, the dust suction included angle cannot be less than the first threshold, that is, the dust collection state of the dust box 100 is full at this time.
[0132]
According to an optional embodiment of this application, the step of determining a dust collection state of the dust box 100 according to the body posture information of the sweeping robot and the dust suction included angle further includes:
    • [0133]when the sweeping robot is in the third posture, the magnetic detection structure 102 stopping detecting magnetic force until the sweeping robot is not in the third posture.

[0134]According to this embodiment of this application, when the sweeping robot is in the uphill posture, the dust suction included angle increases, and therefore the difference between the dust suction included angle and the first threshold is positive, that is, the difference between the dust suction included angle and the first threshold is greater than zero when the sweeping robot is in the uphill posture. However, the difference between the dust suction included angle and the first threshold is also positive when the sweeping robot is in the uphill posture and the dust box 100 is full. Therefore, when the sweeping robot is in the uphill posture, it is not possible to determine whether the dust box 100 is full according to the difference between the dust suction included angle and the first threshold.

[0135]Therefore, after determining that the sweeping robot is in the uphill posture, the controller does not detect the dust collection state of the dust box 100. However, in household and other scenarios, the sweeping robot is unlikely to maintain a stable uphill posture all the time and will only briefly be in the stable uphill posture. For example, after 10, 20, or 30 seconds, the sweeping robot will end the uphill posture and present other postures. Therefore, after the controller determines that the sweeping robot is in the uphill posture, although the controller does not detect whether the dust box 100 is full, the problem of untimely cleaning of the dust box 100 cannot be caused.

[0136]
According to an optional embodiment of this application, the step of determining a dust collection state of the dust box 100 according to the body posture information of the sweeping robot and the dust suction included angle further includes:
    • [0137]acquiring a first difference between the dust suction included angle and the first threshold when the sweeping robot is in the fourth posture, where
    • [0138]when the first difference is less than zero, the dust collection state of the dust box 100 is not full;
    • [0139]or when the first difference is greater than or equal to zero, the dust collection state of the dust box 100 is full.

[0140]According to this embodiment of this application, when the controller determines that the sweeping robot is in the downhill posture, the dust suction included angle decreases, and when the first difference is less than zero, it may be determined that the dust box 100 is not full.

[0141]However, when the first difference is greater than or equal to zero, it indicates that the dust and trash in the dust box 100 will overflow, creating resistance to the resetting of the one-way valve 103. Therefore, it may be determined that the dust box 100 is full.

[0142]According to this embodiment of this application, the dust collection state of the dust box 100 is determined in combination with the current posture of the sweeping robot, the real-time dust suction included angle between the fixed end of the one-way valve 103 and the surface of the dust suction port 104, or the real-time rate of change of the dust suction included angle, thereby improving the accuracy of judging the dust collection state of the dust box 100. At the same time, the user does not need to frequently check whether the dust box 100 is full or to consciously remember the usage time of the dust box 100. The user may also be notified in time to clean the dust box 100, thereby preventing the growth of bacteria, etc., and enhancing user satisfaction.

[0143]
According to an optional embodiment of this application, after judging the state of the fan of the sweeping robot, the method further includes:
    • [0144]acquiring the body posture information of the sweeping robot based on the posture detection structure when the fan is in the off state;
    • [0145]acquiring a magnetic value detected by the magnetic detection structure 102 when the sweeping robot is in the first posture, and determining the dust suction included angle according to the magnetic value; and
    • [0146]comparing the dust suction included angle with zero, where
    • [0147]when the dust suction included angle is greater than zero, the dust collection state of the dust box 100 is full; and
    • [0148]when the dust suction included angle is equal to zero, the dust collection state of the dust box 100 is not full.

[0149]According to this embodiment of this application, when the sweeping robot stops cleaning or returns to a base station each time, the fan will be in the off state. In this case, the posture detection structure detects whether the sweeping robot is in the horizontal posture. When the sweeping robot is in the horizontal posture, the dust suction included angle is continuously detected. When the dust suction included angle is equal to zero, it indicates that the dust box 100 is not full, and there is no overflow of dust or trash. Due to the gravity of the one-way valve 103 itself, the free end of the one-way valve 103 automatically resets, is attached to the outer side of the working surface 105, and covers the outer portion of the dust suction port 104. When the dust suction included angle is greater than or equal to zero, it indicates that the dust box 100 is full, and the dust or trash overflows, causing resistance to the resetting of the free end of the one-way valve 103, as a result, the free end of the one-way valve 103 cannot automatically reset due to the gravity of the one-way valve itself, and therefore it may be determined that the dust box 100 is full.

[0150]According to an optional embodiment of this application, when it is detected that the fan is in the off state but the sweeping robot is not in the horizontal posture, it indicates that the sweeping robot is currently in the process of working, and whether the fan is in the on state is continuously detected. When it is detected that the fan is in the on state, the body posture of the sweeping robot and the dust collection state of the dust box 100 are continuously detected in real time, and the above steps are repeatedly performed. For example, the fan may experience a brief malfunction, causing the fan to be detected as off for a short period, but the sweeping robot is still operating, for example, the fan is in the uphill posture or the downhill posture.

[0151]According to an optional embodiment of this application, when it is detected that the fan is in the off state for a long time, but the sweeping robot is still operating, for example, the sweeping robot is in the obstacle-crossing posture, it indicates that the fan experiences the malfunction, and in this case, the controller may give an alarm to notify a worker to repair the fan, or the controller automatically controls the sweeping robot to stop operating and await repair of the fan by the worker.

[0152]
As shown in FIG. 6, the above embodiments of this application may be implemented based on the following implementations:
    • [0153](1) the controller monitors the operating state of the fan in real time;
    • [0154](2) when the fan is in the on state, the body posture information of the sweeping robot is acquired based on the posture detection structure, and the body included angle is acquired according to the body posture information;
    • [0155](3) whether the body included angle is equal to zero is judged, and if yes, it may be determined that the sweeping robot is in the horizontal posture; the magnetic value is acquired based on the magnetic detection structure 102, and the dust suction included angle is determined according to the magnetic value;
    • [0156]the dust suction included angle is compared with the first threshold, if the dust suction included angle is greater than or equal to the first threshold, it may be determined that the dust collection state of the dust box 100 is full; and if the dust suction included angle is less than the first threshold, it may be determined that the dust collection state of the dust box 100 is not full;
    • [0157](4) if the body included angle is not always equal to zero, whether the body included angle is in the oscillating change state is judged; if yes, it may be determined that the sweeping robot is in the obstacle-crossing posture, the magnetic value is acquired based on the magnetic detection structure 102, and the dust suction included angle is determined according to the magnetic value;
    • [0158]the dust suction included angle is compared with the first threshold to obtain the first difference; if the first difference is in the oscillating change state, it may be determined that the dust collection state of the dust box 100 is not full; and if the first difference is greater than or equal to zero, it may be determined that the dust collection state of the dust box 100 is full;
    • [0159](5) if the body included angle is not in the oscillating change state, whether the body included angle is less than zero is judged, and if yes, it may be determined that the sweeping robot is in the downhill posture, the magnetic value is acquired based on the magnetic detection structure 102, and the dust suction included angle is determined according to the magnetic value;
    • [0160]the dust suction included angle is compared with the first threshold to obtain the first difference; if the first difference is less than zero, it may be determined that the dust collection state of the dust box 100 is not full; and if the first difference is greater than or equal to zero, it may be determined that the dust collection state of the dust box 100 is full;
    • [0161](6) if the body included angle is not less than zero, it may be determined that the sweeping robot is in the uphill posture, and the dust collection state of the dust box 100 is not detected;
    • [0162](7) when the fan is in the off state, the body posture information of the sweeping robot is acquired based on the posture detection structure, and the body included angle is acquired according to the body posture information;
    • [0163](8) whether the body included angle is equal to zero is judged, and if yes, it may be determined that the sweeping robot is in the horizontal posture; the magnetic value is acquired based on the magnetic detection structure 102, and the dust suction included angle is determined according to the magnetic value;
    • [0164]the dust suction included angle is compared with zero, if the dust suction included angle is greater than zero, it may be determined that the dust collection state of the dust box 100 is full; and if the dust suction included angle is equal to zero, it may be determined that the dust collection state of the dust box 100 is not full.

[0165]If the body included angle is not equal to zero, whether the fan is in the on state is continuously judged, and the above steps are repeatedly performed.

[0166]
As shown in FIG. 7, an embodiment of this application further provides an apparatus 700 for detecting a state of a sweeping robot, including:
    • [0167]a judgment module 701, configured to judge a state of a fan of the sweeping robot;
    • [0168]a first acquiring module 702, configured to acquire body posture information of the sweeping robot based on a posture detection structure when the fan is in an on state;
    • [0169]a second acquiring module 703, configured to acquire a magnetic value based on a magnetic detection structure 102, and determine a dust suction included angle between a surface of a dust suction port 104 of a dust box 100 of the sweeping robot and a fixed end of a one-way valve 103 according to the magnetic value, where an outer side of the one-way valve 103 is provided with a magnetic structure 101, an outer side of a working surface 105 of the dust box 100 is provided with the magnetic detection structure 102, and the magnetic detection structure 102 is configured to detect the magnetic value of the magnetic structure 101; and
    • [0170]a determination module 704, configured to determine a dust collection state of the dust box 100 according to the body posture information of the sweeping robot and the dust suction included angle.
[0171]
As at least one alternative embodiment, the step of acquiring body posture information of the sweeping robot based on a posture detection structure includes:
    • [0172]acquiring a body included angle between a body of the sweeping robot and a horizontal plane; and
    • [0173]determining a posture of the sweeping robot according to the body included angle, where the posture includes a first posture, a second posture, a third posture, and a fourth posture,
    • [0174]when the body included angle is equal to zero, the sweeping robot is in the first posture;
    • [0175]when the body included angle is in an oscillating change state, the sweeping robot is in the second posture, and in the oscillating change process, the body included angle oscillates above and below zero or at zero;
    • [0176]when the body included angle is greater than zero, the sweeping robot is in the third posture; and
    • [0177]when the body included angle is less than zero, the sweeping robot is in the fourth posture.
[0178]
As at least one alternative embodiment, the step of acquiring a magnetic value based on a magnetic detection structure 102, and determining a dust suction included angle between a surface of a dust suction port 104 of a dust box 100 of the sweeping robot and a fixed end of a one-way valve 103 according to the magnetic value includes:
    • [0179]when the free end of the one-way valve 103 is attached to the outer side of the working surface 105, the magnetic detection structure 102 and the magnetic structure 101 being in an opposite state, and the dust suction included angle being equal to zero; or
    • [0180]when the free end of the one-way valve 103 is not attached to the outer side of the working surface 105, a dust suction area being formed between the free end of the one-way valve 103 and the dust suction port 104, the dust suction included angle being greater than zero, and trash entering the dust box 100 through the dust suction area from the dust suction port 104.
[0181]
As at least one alternative embodiment, the step of determining a dust collection state of the dust box 100 according to the body posture information of the sweeping robot and the dust suction included angle includes:
    • [0182]comparing the dust suction included angle with a first threshold when the sweeping robot is in the first posture, where the first threshold is determined based on a real-time suction value of the fan, where
    • [0183]when the dust suction included angle is greater than or equal to the first threshold, the dust collection state of the dust box 100 is full;
    • [0184]or when the dust suction included angle is less than the first threshold, the dust collection state of the dust box 100 is not full.
[0185]
As at least one alternative embodiment, the step of determining a dust collection state of the dust box 100 according to the body posture information of the sweeping robot and the dust suction included angle further includes:
    • [0186]acquiring a first difference between the dust suction included angle and the first threshold when the sweeping robot is in the second posture, where
    • [0187]when the first difference is in an oscillating change state, and in the oscillating change process, the first difference oscillates above and below zero or at zero, the dust collection state of the dust box 100 is not full;
    • [0188]or when the first difference is not in the oscillating change state, and the first difference is greater than or equal to zero, the dust collection state of the dust box 100 is full.
[0189]
As at least one alternative embodiment, the step of determining a dust collection state of the dust box 100 according to the body posture information of the sweeping robot and the dust suction included angle further includes:
    • [0190]when the sweeping robot is in the third posture, the magnetic detection structure 102 stopping detecting magnetic force until the sweeping robot is not in the third posture.
[0191]
As at least one alternative embodiment, the step of determining a dust collection state of the dust box 100 according to the body posture information of the sweeping robot and the dust suction included angle further includes:
    • [0192]acquiring a first difference between the dust suction included angle and the first threshold when the sweeping robot is in the fourth posture, where
    • [0193]when the first difference is less than zero, the dust collection state of the dust box 100 is not full;
    • [0194]or when the first difference is greater than or equal to zero, the dust collection state of the dust box 100 is full.
[0195]
As at least one alternative embodiment, after judging the state of a fan of the sweeping robot, the method further includes:
    • [0196]acquiring the body posture information of the sweeping robot based on the posture detection structure when the fan is in the off state;
    • [0197]acquiring a magnetic value detected by the magnetic detection structure 102 when the sweeping robot is in the first posture, and determining the dust suction included angle according to the magnetic value; and
    • [0198]comparing the dust suction included angle with zero, where
    • [0199]when the dust suction included angle is greater than zero, the dust collection state of the dust box 100 is full; and
    • [0200]when the dust suction included angle is equal to zero, the dust collection state of the dust box 100 is not full.

[0201]An embodiment of this application further provides a computer-readable storage medium. The computer-readable storage medium includes a stored computer program. The computer program, when running, controls a device where the computer-readable storage medium is located to perform the above method.

[0202]Additionally, the other components and functions of the apparatus in this embodiment of this application are known to those skilled in the art, and are not further elaborated to reduce redundancy.

[0203]It should be noted that the logic and/or steps represented in the flowchart or described herein in other ways may, for example, be considered as a sequenced list of executable instructions for implementing logical functions, which may be specifically implemented in any computer-readable medium for use by, or in combination with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device). In terms of this specification, the “computer-readable medium” may be any apparatus that may include, store, communicate, propagate, or transmit a program for use by, or in combination with, the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium include as below: an electrical connecting portion (an electronic apparatus) with one or more wires, a portable computer diskette (a magnetic apparatus), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber apparatus, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium may even be paper or other suitable medium on which the program may be printed, as the program can be electronically obtained, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or processing in other appropriate ways if necessary, and then stored in a computer memory.

[0204]It should be understood that various parts of this application may be implemented in hardware, software, firmware, or a combination thereof. In the above implementations, the plurality of steps or methods may be implemented using software or firmware stored in memory and executed by an appropriate instruction execution system. For example, if implemented in hardware, as in another implementation, it may be implemented using any one or a combination of the following technologies known in the art: a discrete logic circuit with a logic gate circuit for implementing logical functions on data signals, an application-specific integrated circuit with an appropriate combinational logic gate circuit, a programmable gate array (PGA), a field-programmable gate array (FPGA), etc.

[0205]In the description of this specification, descriptions of reference terms “an embodiment”, “some embodiments”, “example”, “specific example”, “some examples”, or the like are intended to imply that specific features, structures, materials, or characteristics described in combination with the embodiment or the example are included in at least one embodiment or example of this application. In this specification, exemplary descriptions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the described specific features, structures, materials, or characteristics may be combined in a suitable manner in any one or more of the embodiments or examples.

[0206]In the description of this application, it should be understood that orientation or position relationships indicated by the terms such as “center”, “longitudinal”, “transverse”, “length”, “width”, “thickness”, “upper”, “lower”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “anticlockwise”, “axial direction”, “radial direction”, and “circumferential direction” are based on orientation or position relationships shown in the accompanying drawings, and are intended to facilitate the description of this application and simplify the description only, rather than indicate or imply that the mentioned apparatus or element must have a particular orientation or must be constructed and operated in a particular orientation. Therefore, such terms should not be construed as limiting this application.

[0207]Additionally, the terms “first” and “second” are used for descriptive purposes only, and cannot be construed as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Therefore, features defined with “first” and “second” may explicitly or implicitly include at least one of such features. In the description of this application, “a plurality of” means at least two, such as two or three, unless otherwise explicitly limited.

[0208]In this application, unless otherwise expressly specified and limited, the terms “mounted”, “linked”, “connected”, “fixed”, and the like are to be understood in a broad sense, for example, it may be a fixed connection, a detachable connection, or an integrated connection; it may be a mechanical connection or an electrical connection; it may be a direct connection, an indirect connection through an intermediate medium, an internal communication of two elements, or interaction between two elements, unless otherwise expressly limited. Those of ordinary skill in the art should understand specific meanings of the above terms in this application according to specific situations.

[0209]In this application, unless otherwise explicitly specified and limited, a first feature being “above” or “below” a second feature may be a direct contact between the first feature and the second feature, or an indirect contact between the first feature and the second feature through an intermediate medium. Moreover, the first feature being “over”, “above”, and “on” the second feature may be the first feature being over or above the second feature, or merely means that the first feature is at a higher horizontal level than the second feature. The first feature being “under”, “below”, and “underneath” the second feature may be the first feature being under or below the second feature, or merely means that the first feature is at a lower horizontal level than the second feature.

[0210]Although the embodiments of this application have been shown and described above, it should be understood that the above embodiments are exemplary and are not to be construed as limiting this application. Those of ordinary skill in the art may make changes, modifications, alterations, and variations to the above embodiments within the scope of this application.

Claims

1. A method for detecting a state of a sweeping robot, comprising:

judging a state of a fan of the sweeping robot;

acquiring body posture information of the sweeping robot based on a posture detection structure when the fan is in an on state;

acquiring a magnetic value based on a magnetic detection structure, and determining a dust suction included angle between a surface of a dust suction port of a dust box of the sweeping robot and a fixed end of a one-way valve according to the magnetic value, wherein an outer side of the one-way valve is provided with a magnetic structure, an outer side of a working surface of the dust box is provided with the magnetic detection structure, and the magnetic detection structure is configured to detect the magnetic value of the magnetic structure; and

determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle.

2. The method as claimed in claim 1, wherein the acquiring body posture information of the sweeping robot based on a posture detection structure comprises:

acquiring a body included angle between a body of the sweeping robot and a horizontal plane; and

determining a posture of the sweeping robot according to the body included angle, wherein the posture comprises a first posture, a second posture, a third posture, and a fourth posture,

when the body included angle is equal to zero, the sweeping robot is in the first posture;

when the body included angle is in an oscillating change state, the sweeping robot is in the second posture, and in the oscillating change process, the body included angle oscillates above and below zero or at zero;

when the body included angle is greater than zero, the sweeping robot is in the third posture; and

when the body included angle is less than zero, the sweeping robot is in the fourth posture.

3. The method as claimed in claim 1, wherein the acquiring a magnetic value based on a magnetic detection structure, and determining a dust suction included angle between a surface of a dust suction port of a dust box of the sweeping robot and a fixed end of a one-way valve according to the magnetic value comprises:

when a free end of the one-way valve is attached to an outer side of the working surface, the magnetic detection structure and the magnetic structure being in an opposite state, and the dust suction included angle being equal to zero; or

when the free end of the one-way valve is not attached to the outer side of the working surface, a dust suction area being formed between the free end of the one-way valve and the dust suction port, the dust suction included angle being greater than zero, and a trash entering the dust box through the dust suction area from the dust suction port.

4. The method as claimed in claim 2, wherein the determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle comprises:

comparing the dust suction included angle with a first threshold when the sweeping robot is in the first posture, wherein the first threshold is determined based on a real-time suction value of the fan,

when the dust suction included angle is greater than or equal to the first threshold, the dust collection state of the dust box is full;

or when the dust suction included angle is less than the first threshold, the dust collection state of the dust box is not full.

5. The method as claimed in claim 4, wherein the determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle further comprises:

acquiring a first difference between the dust suction included angle and the first threshold when the sweeping robot is in the second posture, wherein

when the first difference is in an oscillating change state, and in the oscillating change process, the first difference oscillates above and below zero or at zero, the dust collection state of the dust box is not full;

or when the first difference is not in the oscillating change state, and the first difference is greater than or equal to zero, the dust collection state of the dust box is full.

6. The method as claimed in claim 4, wherein the determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle further comprises:

when the sweeping robot is in the third posture, the magnetic detection structure stopping detecting magnetic force until the sweeping robot is not in the third posture.

7. The method as claimed in claim 4, wherein the determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle further comprises:

acquiring a first difference between the dust suction included angle and the first threshold when the sweeping robot is in the fourth posture, wherein

when the first difference is less than zero, the dust collection state of the dust box is not full;

or when the first difference is greater than or equal to zero, the dust collection state of the dust box is full.

8. The method as claimed in claim 4, wherein after the judging the state of a fan of the sweeping robot, the method further comprises:

acquiring the body posture information of the sweeping robot based on the posture detection structure when the fan is in an off state;

acquiring a magnetic value detected by the magnetic detection structure when the sweeping robot is in the first posture, and determining the dust suction included angle according to the magnetic value; and

comparing a dust suction included angle with zero, wherein

when the dust suction included angle is greater than zero, the dust collection state of the dust box is full; and

when the dust suction included angle is equal to zero, the dust collection state of the dust box is not full.

9. (canceled)

10. A sweeping robot, comprising: a dust box, a dust suction port being provided on a working surface of the dust box; and a one-way valve, a fixed end of the one-way valve being rotationally connected with an outer side of the working surface and the one-way valve covering an outer portion of the dust suction port, wherein the sweeping robot further comprises:

a posture detection structure, wherein the posture detection structure is arranged on an outer side of the sweeping robot, and the posture detection structure is configured to detect body posture information of the sweeping robot and send the body posture information to a controller;

a magnetic structure, arranged on an outer side of the one-way valve; and

a magnetic detection structure, arranged on the outer side of the working surface, wherein when a free end of the one-way valve is attached to the outer side of the working surface, the magnetic detection structure and the magnetic structure are in an opposite state; when the free end of the one-way valve is not attached to the outer side of the working surface, a dust suction area is formed between the free end of the one-way valve and the dust suction port, and a trash enters the dust box through the dust suction area from the dust suction port; and the magnetic detection structure is configured to detect received magnetic force, and send a detected magnetic value to the controller of the sweeping robot, and

the controller is configured to determine a dust collection state of the dust box according to the body posture information and the magnetic value.

11. A non-transitory computer-readable storage medium, comprising a stored computer program, wherein the computer program, when running, controls a device where the computer-readable storage medium is located to perform following actions:

judging a state of a fan of the sweeping robot;

acquiring body posture information of the sweeping robot based on a posture detection structure when the fan is in an on state;

acquiring a magnetic value based on a magnetic detection structure, and determining a dust suction included angle between a surface of a dust suction port of a dust box of the sweeping robot and a fixed end of a one-way valve according to the magnetic value, wherein an outer side of the one-way valve is provided with a magnetic structure, an outer side of a working surface of the dust box is provided with the magnetic detection structure, and the magnetic detection structure is configured to detect the magnetic value of the magnetic structure; and

determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle.

12. The sweeping robot as claimed in claim 10, wherein the posture detection structure is configured to:

acquire a body included angle between a body of the sweeping robot and a horizontal plane; and

determine a posture of the sweeping robot according to the body included angle, wherein the posture comprises a first posture, a second posture, a third posture, and a fourth posture,

when the body included angle is equal to zero, the sweeping robot is in the first posture;

when the body included angle is in an oscillating change state, the sweeping robot is in the second posture, and in the oscillating change process, the body included angle oscillates above and below zero or at zero;

when the body included angle is greater than zero, the sweeping robot is in the third posture; and

when the body included angle is less than zero, the sweeping robot is in the fourth posture.

13. The sweeping robot as claimed in claim 10, wherein the magnetic detection structure is configured to acquire a magnetic value based on a magnetic detection structure, and determine a dust suction included angle between a surface of a dust suction port of a dust box of the sweeping robot and a fixed end of a one-way valve according to the magnetic value comprises as follows:

when a free end of the one-way valve is attached to an outer side of the working surface, the magnetic detection structure and the magnetic structure being in an opposite state, and the dust suction included angle being equal to zero; or

when the free end of the one-way valve is not attached to the outer side of the working surface, a dust suction area being formed between the free end of the one-way valve and the dust suction port, the dust suction included angle being greater than zero, and a trash entering the dust box through the dust suction area from the dust suction port.

14. The sweeping robot as claimed in claim 12, wherein the controller is further configured to:

compare the dust suction included angle with a first threshold when the sweeping robot is in the first posture, wherein the first threshold is determined based on a real-time suction value of the fan,

when the dust suction included angle is greater than or equal to the first threshold, the dust collection state of the dust box is full;

or when the dust suction included angle is less than the first threshold, the dust collection state of the dust box is not full.

15. The sweeping robot as claimed in claim 14, wherein the controller is further configured to:

acquire a first difference between the dust suction included angle and the first threshold when the sweeping robot is in the second posture, wherein

when the first difference is in an oscillating change state, and in the oscillating change process, the first difference oscillates above and below zero or at zero, the dust collection state of the dust box is not full;

or when the first difference is not in the oscillating change state, and the first difference is greater than or equal to zero, the dust collection state of the dust box is full.

16. The sweeping robot as claimed in claim 14, wherein the controller is further configured to: when the sweeping robot is in the third posture, control the magnetic detection structure stopping detecting magnetic force until the sweeping robot is not in the third posture.

17. The method as claimed in claim 14, wherein the controller is further configured to:

acquire a first difference between the dust suction included angle and the first threshold when the sweeping robot is in the fourth posture, wherein

when the first difference is less than zero, the dust collection state of the dust box is not full;

or when the first difference is greater than or equal to zero, the dust collection state of the dust box is full.

18. The method as claimed in claim 14, wherein

the posture detection structure is further configured to acquire the body posture information of the sweeping robot based on the posture detection structure when the fan is in an off state;

the magnetic structure is further to acquire a magnetic value detected by the magnetic detection structure when the sweeping robot is in the first posture, and determining the dust suction included angle according to the magnetic value; and

the controller is further configured to compare a dust suction included angle with zero, wherein

when the dust suction included angle is greater than zero, the dust collection state of the dust box is full; and

when the dust suction included angle is equal to zero, the dust collection state of the dust box is not full.

19. The non-transitory computer-readable storage medium as claimed in claim 11, wherein the acquiring body posture information of the sweeping robot based on a posture detection structure comprises:

acquiring a body included angle between a body of the sweeping robot and a horizontal plane; and

determining a posture of the sweeping robot according to the body included angle, wherein the posture comprises a first posture, a second posture, a third posture, and a fourth posture,

when the body included angle is equal to zero, the sweeping robot is in the first posture;

when the body included angle is in an oscillating change state, the sweeping robot is in the second posture, and in the oscillating change process, the body included angle oscillates above and below zero or at zero;

when the body included angle is greater than zero, the sweeping robot is in the third posture; and

when the body included angle is less than zero, the sweeping robot is in the fourth posture.

20. The non-transitory computer-readable storage medium as claimed in claim 11, wherein the acquiring a magnetic value based on a magnetic detection structure, and determining a dust suction included angle between a surface of a dust suction port of a dust box of the sweeping robot and a fixed end of a one-way valve according to the magnetic value comprises:

when a free end of the one-way valve is attached to an outer side of the working surface, the magnetic detection structure and the magnetic structure being in an opposite state, and the dust suction included angle being equal to zero; or

when the free end of the one-way valve is not attached to the outer side of the working surface, a dust suction area being formed between the free end of the one-way valve and the dust suction port, the dust suction included angle being greater than zero, and a trash entering the dust box through the dust suction area from the dust suction port.

21. The non-transitory computer-readable storage medium as claimed in claim 20, wherein the determining a dust collection state of the dust box according to the body posture information of the sweeping robot and the dust suction included angle comprises:

comparing the dust suction included angle with a first threshold when the sweeping robot is in the first posture, wherein the first threshold is determined based on a real-time suction value of the fan,

when the dust suction included angle is greater than or equal to the first threshold, the dust collection state of the dust box is full;

or when the dust suction included angle is less than the first threshold, the dust collection state of the dust box is not full.