State determination method and apparatus for cleaning robot
AssigneeBeijing Roborock Innovation Technology Co., Ltd.
InventorsLei Wang, Yansheng Niu
Life of this patent
Estimating the term…
Abstract
A state determination method and apparatus for a cleaning robot are provided. The method includes: acquiring a working mode of the cleaning robot in real time; based on the working mode, acquiring a target accumulation threshold corresponding to the working mode; based on the target accumulation threshold, performing selection and accumulation of respective angle change values detected within a preset duration to obtain an accumulated change value; and determining a state of the cleaning robot based on the accumulated change value.
Claims13
A state determination method for a cleaning robot, comprising:
- acquiring a working mode of the cleaning robot in real time;
- based on the working mode, acquiring a target accumulation threshold corresponding to the working mode;
- based on the target accumulation threshold, performing selection and accumulation of respective angle change values detected within a preset duration to obtain an accumulated change value;
- and
- determining a state of the cleaning robot based on the accumulated change value;
- wherein before acquiring the working mode of the cleaning robot in real time, the method further comprises:
- establishing a mapping relationship between working modes and accumulation thresholds based on respective working modes and respective accumulation thresholds;
- and
- wherein acquiring the target accumulation threshold corresponding to the working mode based on the working mode comprises:
- acquiring the target accumulation threshold corresponding to the working mode by looking up the mapping relationship based on the working mode.
A non-transitory storage medium storing a computer program, wherein when the computer program is executed by a processor of an electronic device, the electronic device is caused to:
- acquire a working mode of a cleaning robot in real time;
- based on the working mode, acquire a target accumulation threshold corresponding to the working mode;
- based on the target accumulation threshold, perform selection and accumulation of respective angle change values detected within a preset duration to obtain an accumulated change value;
- and
- determine a state of the cleaning robot based on the accumulated change value;
- wherein when the computer program is executed by the processor, the electronic device is caused to
- before the working mode of the cleaning robot is acquired in real time, establish a mapping relationship between working modes and accumulation thresholds based on respective working modes and respective accumulation thresholds;
- and
- wherein acquiring the target accumulation threshold corresponding to the working mode based on the working mode comprises:
- acquiring the target accumulation threshold corresponding to the working mode by looking up the mapping relationship based on the working mode.
An electronic device comprising a memory and a processor, wherein the memory stores a computer program thereon, and when the computer program is executed by the processor, the electronic device is caused to:
- acquire a working mode of the cleaning robot in real time;
- based on the working mode, acquire a target accumulation threshold corresponding to the working mode;
- based on the target accumulation threshold, perform selection and accumulation of respective angle change values detected within a preset duration to obtain an accumulated change value;
- and
- determine a state of the cleaning robot based on the accumulated change value;
- wherein when the computer program is executed by the processor, the electronic device is caused to
- before the working mode of the cleaning robot is acquired in real time, establish a mapping relationship between working modes and accumulation thresholds based on respective working modes and respective accumulation thresholds;
- and
- wherein acquiring the target accumulation threshold corresponding to the working mode based on the working mode comprises:
- acquiring the target accumulation threshold corresponding to the working mode by looking up the mapping relationship based on the working mode.
Dependencies are inferred from the claim text.