Search

EP-4578359-B1 - GROUND MEDIUM DETECTION METHOD AND APPARATUS AND CLEANING DEVICE

EP4578359B1EP 4578359 B1EP4578359 B1EP 4578359B1EP-4578359-B1

Inventors

  • WANG, JINTAO

Dates

Publication Date
20260506
Application Date
20230928

Claims (15)

  1. A method for exploring a substance contour on ground, characterized in that , the method comprises: triggering (210), in response to a cleaning device detecting a preset substance on ground, the cleaning device to alternately switch between an inner boundary exploration mode and an outer boundary exploration mode; controlling (220), in the inner boundary exploration mode and the outer boundary exploration mode, the cleaning device to detect a substance boundary point in a predetermined direction, to obtain a substance boundary point collection; and determining (230) a contour of the preset substance based on the substance boundary point collection; wherein the inner boundary exploration mode refers to that a sensor of the cleaning device for detecting an obstacle performs an edge exploration on the preset substance within the preset substance, and the outer boundary exploration mode refers to that the sensor of the cleaning device performs the edge exploration on the preset substance outside the preset substance.
  2. The method according to claim 1, wherein the triggering the cleaning device to alternately switch between the inner boundary exploration mode and the outer boundary exploration mode comprises: triggering the cleaning device to switch to the outer boundary exploration mode if at least one substance boundary point is detected in the inner boundary exploration mode; and triggering the cleaning device to switch to the inner boundary exploration mode if at least one substance boundary point is detected in the outer boundary exploration mode.
  3. The method according to claim 1, wherein the triggering the cleaning device to alternately switch between the inner boundary exploration mode and the outer boundary exploration mode comprises: controlling, if an obstacle is detected by the cleaning device in the inner boundary exploration mode, the cleaning device to perform a first scheduled action until the substance boundary point is detected, and triggering the cleaning device to switch to the outer boundary exploration mode; and controlling, if an obstacle is detected by the cleaning device in the outer boundary exploration mode, the cleaning device to perform a second scheduled action until the substance boundary point is detected, and triggering the cleaning device to switch to the inner boundary exploration mode.
  4. The method according to claim 3, wherein the controlling the cleaning device to perform the first scheduled action until the substance boundary point is detected, and triggering the cleaning device to switch to the outer boundary exploration mode comprises: controlling the cleaning device to rotate in place in a first predetermined direction until the substance boundary point is detected, and triggering the cleaning device to switch to the outer boundary exploration mode; or controlling the cleaning device to retreat or turn around and move forward until the substance boundary point is detected, and triggering the cleaning device to switch to the outer boundary exploration mode; wherein an exploration direction of the cleaning device in the outer boundary exploration mode is opposite to an exploration direction of the cleaning device in the inner boundary exploration mode.
  5. The method according to claim 1, wherein the controlling, in the inner boundary exploration mode and the outer boundary exploration mode, the cleaning device to detect the substance boundary point in the predetermined direction comprises: controlling, in the inner boundary exploration mode, the cleaning device to move in a first predetermined direction to detect the substance boundary point, the first predetermined direction comprising a clockwise direction or a counterclockwise direction; and controlling, in the outer boundary exploration mode, the cleaning device to move in a second predetermined direction to detect the substance boundary point, the second predetermined direction being opposite to the first predetermined direction.
  6. The method according to claim 5, wherein the method further comprises: monitoring, in the outer boundary exploration mode, a first angle variation of an orientation of the cleaning device in a detection process; and controlling, if the cleaning device fails to detect the substance boundary point and the first angle variation exceeds a first angle threshold, the cleaning device to rotate in place in the second predetermined direction until the substance boundary point is detected.
  7. The method according to claim 6, wherein the method further comprises: recording a second angle variation of the orientation of the cleaning device in a process of the cleaning device rotating in place in the second predetermined direction; controlling, if the second angle variation of the orientation of the cleaning device when the substance boundary point is detected exceeds a second angle threshold, the cleaning device to rotate in place in the first predetermined direction until a new substance boundary point is detected, and recording the newly detected substance boundary point to the substance boundary point collection; or recording, in case the substance boundary point is detected during a process of the cleaning device rotating in place in the second predetermined direction, a currently detected substance boundary point to the substance boundary point collection, and controlling the cleaning device to rotate in place in the first predetermined direction until a new substance boundary point is detected, to adjust an exploration direction of the cleaning device and switch to the inner boundary exploration mode.
  8. The method according to claim 5, wherein the method further comprises: monitoring, in the inner boundary exploration mode, a third angle variation of an orientation of the cleaning device in a detection process; and controlling, if the cleaning device fails to detect the substance boundary point and the third angle variation exceeds a third angle threshold, the cleaning device to rotate in place in the first predetermined direction until the substance boundary point is detected.
  9. The method according to claim 8, wherein the method further comprises: recording a fourth angle variation of the orientation of the cleaning device in a process of the cleaning device rotating in place in the first predetermined direction; controlling, if the fourth angle variation of the orientation of the cleaning device when the substance boundary point is detected exceeds a fourth angle threshold, the cleaning device to rotate in place in the second predetermined direction until a new substance boundary point is detected, and recording the newly detected substance boundary point to the substance boundary point collection; or recording, in case the substance boundary point is detected in a process of the cleaning device rotating in place in the first predetermined direction, a currently detected substance boundary point to the substance boundary point collection, and controlling the cleaning device to rotate in place in the second predetermined direction until a new substance boundary point is detected, to adjust an exploration direction of the cleaning device and switch to the outer boundary exploration mode.
  10. The method according to claim 1, wherein the controlling the cleaning device to detect the substance boundary point in the predetermined direction comprises: controlling the cleaning device to detect the substance boundary point in the predetermined direction until the cleaning device interrupts exploring, or until a distance between a substance boundary point currently detected by the cleaning device and a first detected substance boundary point is less than a preset distance threshold; or, the substance boundary point comprises a preset substance boundary point and a non-preset substance boundary point, the preset substance boundary point is a substance boundary point detected by the cleaning device in the inner boundary exploration mode, and the non-preset substance boundary point is a substance boundary point detected by the cleaning device in the outer boundary exploration mode.
  11. The method according to claim 1, wherein the method further comprises: determining (1101), if an exploration of the preset substance by the cleaning device is interrupted, an explored contour of the preset substance based on a detected substance boundary point collection; and exploring (1102) an unexplored preset substance based on the explored contour of the preset substance.
  12. The method according to claim 11, wherein the exploring the unexplored preset substance based on the explored contour of the preset substance comprises: determining a first substance boundary point that is first detected on the explored contour of the preset substance and a second substance boundary point that is last detected on the explored contour of the preset substance, and defining a connection line between the first substance boundary point and the second substance boundary point as an inner edge line of the unexplored preset substance; and determining a contour of an explored area of the preset substance based on the detected substance boundary points and the inner edge line, and exploring the unexplored preset substance based on the contour of the explored area of the preset substance.
  13. The method according to claim 1, wherein the method further comprises: obtaining contours of the preset substance determined by the cleaning device in an exploration; and splicing, if there is a common contour line between any two contours of the preset substance, the any two contours of the preset substance to obtain a spliced contour of the preset substance; or, a detection trajectory of the cleaning device detecting the substance boundary point in the predetermined direction comprises an arc trajectory; or the cleaning device is provided with an ultrasonic sensor arranged on a front side of a bottom of the cleaning device; and the controlling (220), in the inner boundary exploration mode and the outer boundary exploration mode, the cleaning device to detect a substance boundary point in a predetermined direction, to obtain a substance boundary point collection comprises: controlling, in the inner boundary exploration mode and the outer boundary exploration mode, the cleaning device to move in the predetermined direction to detect the substance boundary point by the ultrasonic sensor, to obtain the substance boundary point collection.
  14. A computer-readable storage medium, the computer-readable storage medium being stored with computer-executable instructions, wherein the computer-executable instructions, when being executed by a processor (1702), implement the operations of the method as claimed in any one of claims 1 to 13.
  15. A cleaning device, comprising one or more processors (1702) and one or more memories (1704), the one or more memories (1704) storing computer-executable instructions, wherein the computer-executable instructions, when being executed by the one or more processors (1702), implement the operations of the method as claimed in any one of claims 1 to 13.

Description

TECHNICAL FIELD The present invention relates to the technical field of cleaning device controlling, in particular to a method and apparatus for exploring a substance contour on ground, and a cleaning device. BACKGROUND Currently, for cleaning devices including sweeping robots, in a process of exploring substances on ground, such as exploring a carpet on ground, it is commonly necessary to explore the contour of the carpet. For example, in the process of exploring the contour of the carpet, the sweeping robot of related art generally explores on the outside of the contour of the carpet, which needs the sweeping robot to rotate in place to adjust an exploration direction, leading to a decreased efficiency of exploring the contour of the substance on ground. Therefore, how to improve the efficiency of the cleaning device exploring the contour of the substance is a technical problem to be solved. A method for exploring a substance contour on ground according to the preamble of claim 1 is already known e.g. from CN-A-114869175. SUMMARY Embodiments of the present invention provide a method and apparatus for exploring a substance contour on ground, and a cleaning device, to improve the efficiency of the cleaning device exploring the substance contour on ground. Other features and advantages of the present invention will become apparent through the detailed description below, or will be partially learned through the practice of the present invention. According to a first aspect, an embodiment of the present invention provides a method for exploring a substance contour on ground. The method includes: triggering, in response to a cleaning device detecting a preset substance, the cleaning device to alternately switch between an inner boundary exploration mode and an outer boundary exploration mode; controlling, in the inner boundary exploration mode and the outer boundary exploration mode, the cleaning device to detect a substance boundary point in a predetermined direction, to obtain a substance boundary point collection; and determining a contour of the preset substance based on the substance boundary point collection. In some embodiments, based on the foregoing solution, the triggering the cleaning device to alternately switch between the inner boundary exploration mode and the outer boundary exploration mode includes: triggering the cleaning device to switch to the outer boundary exploration mode if at least one substance boundary point is detected in the inner boundary exploration mode; and triggering the cleaning device to switch to the inner boundary exploration mode if at least one substance boundary point is detected in the outer boundary exploration mode. In some embodiments, based on the foregoing solution, the triggering the cleaning device to alternately switch between the inner boundary exploration mode and the outer boundary exploration mode includes: controlling, if an obstacle is detected by the cleaning device in the inner boundary exploration mode, the cleaning device to perform a first scheduled action until the substance boundary point is detected, and triggering the cleaning device to switch to the outer boundary exploration mode; and controlling, if an obstacle is detected by the cleaning device in the outer boundary exploration mode, the cleaning device to perform a second scheduled action until the substance boundary point is detected, and triggering the cleaning device to switch to the inner boundary exploration mode. In some embodiments, based on the foregoing solution, the controlling the cleaning device to perform the first scheduled action until the substance boundary point is detected, and triggering the cleaning device to switch to the outer boundary exploration mode includes: controlling the cleaning device to rotate in place in a first predetermined direction until the substance boundary point is detected, and triggering the cleaning device to switch to the outer boundary exploration mode; or controlling the cleaning device to retreat or turn around and move forward until the substance boundary point is detected, and triggering the cleaning device to switch to the outer boundary exploration mode. An exploration direction of the cleaning device in the outer boundary exploration mode is opposite to an exploration direction of the cleaning device in the inner boundary exploration mode. In some embodiments, based on the foregoing solution, the controlling, in the inner boundary exploration mode and the outer boundary exploration mode, the cleaning device to detect the substance boundary point in the predetermined direction includes: controlling, in the inner boundary exploration mode, the cleaning device to move in a first predetermined direction to detect the substance boundary point, the first predetermined direction including a clockwise direction or a counterclockwise direction; and controlling, in the outer boundary exploration mode, the cleaning device to move in a second predeterm