Control method of cleaning equipment and cleaning equipment
By designing movable cleaning components and acquiring obstacle information, the cleaning equipment can more effectively clean along edges, corners, and small obstacle areas, solving the problem of missed cleaning, achieving higher cleaning coverage, and avoiding obstacle scratches.
Patent Information
- Application Number
- CN202410773289.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-14
- Filing Date
- 2024-06-14
- Publication Date
- 2024-11-12
AI Technical Summary
Existing cleaning equipment has the problem of missing areas when cleaning edges, corners, and small obstacles.
The cleaning components of the cleaning equipment are designed to be movable, with outward swing and inward retraction states. By acquiring obstacle information and controlling the movement of the cleaning equipment based on the obstacle information, a more comprehensive cleaning coverage can be achieved.
It improves cleaning coverage, reduces missed cleaning areas, and avoids scratching against obstacles.
Smart Images

Figure CN118924173A_ABST
Abstract
Description
[0001] This application claims the priority of PCT international application with application number PCT / CN2023 / 100199 filed on June 14, 2023 and application name “Control method and cleaning equipment for cleaning equipment”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present invention relates to the field of smart home, and more specifically, to a control method of a cleaning device and a cleaning device. Background Art
[0003] The cleaning device is a device that can automatically clean while traveling. The cleaning device can replace manual cleaning to a certain extent, reduces manual labor intensity, and has high cleaning efficiency.
[0004] In the related art, the cleaning equipment uses fixed cleaning parts, which may cause a large range of missed cleaning when cleaning areas such as edges, corners, and small obstacles. Summary of the invention
[0005] The purpose of this specification is to provide a control method and cleaning device for cleaning equipment to reduce the scope of missed cleaning. The purpose of this specification is achieved through the following technical solutions:
[0006] According to one aspect of an embodiment of the present specification, a cleaning control method is provided for a cleaning device, the cleaning device comprising a body and a cleaning component movably arranged on the body, the cleaning component having an outward swing state and an inward retracted state, and when the cleaning component is in the outward swing state, a portion of the cleaning component located outside the body is larger than a portion of the cleaning component located outside the body when the cleaning component is in the inward retracted state; the method comprises:
[0007] When the cleaning component is in the outward swing state, obtaining obstacle information in the direction of travel of the cleaning device;
[0008] When determining that the cleaning device is performing a preset cleaning task based on the obstacle information, determining whether the cleaning device meets a preset condition according to the obstacle information;
[0009] When the cleaning device meets the preset conditions, the action of the body is controlled according to the obstacle information to complete the preset cleaning task.
[0010] According to another aspect of the embodiments of this specification, a cleaning control method of a cleaning robot is provided, the method comprising:
[0011] Obtaining obstacle information in the forward direction of the cleaning robot; wherein the cleaning robot comprises a body and a cleaning component movably arranged on the body, the cleaning component having a retracted position close to the body and an extended position away from the body, and when the cleaning component is at the extended position, the portion of the cleaning component located outside the periphery of the body is larger than the portion of the cleaning component located outside the periphery of the body when the cleaning component is at the retracted position;
[0012] Determining whether the obstacle information contains obstacle data that meets a preset obstacle condition;
[0013] If the obstacle information includes obstacle data that meets the preset obstacle condition, the cleaning component is controlled to move to the retracted position.
[0014] According to another aspect of the embodiments of the present specification, a control method for a cleaning device is provided, wherein the cleaning device comprises a body and a cleaning component movably arranged on the body, wherein the cleaning component has an outward swing state and an inward retracted state, and when the cleaning component is in the outward swing state, a portion of the cleaning component located outside the body is larger than a portion of the cleaning component located outside the body when the cleaning component is in the inward retracted state; the method comprises:
[0015] Detect whether the cleaning equipment meets the base station return conditions;
[0016] If yes, when the cleaning component is in the outward swing state, the cleaning component is controlled to move to the inward retracted state;
[0017] When the cleaning component is in the retracted state, the cleaning device is controlled to move to the base station.
[0018] According to another aspect of the embodiments of the present specification, a control method for a cleaning device is provided, wherein the cleaning device comprises a body and a cleaning component movably disposed on the body, wherein the cleaning component is in a retracted state; the method comprises:
[0019] When the cleaning component is in a retracted state, controlling the cleaning device to clean along a first cleaning route, wherein a first side obstacle exists in front of the moving direction of the cleaning device;
[0020] When the cleaning component is in a retracted state, the body is controlled to clean along a first cleaning route, the first cleaning route is parallel to the second cleaning route, and the first cleaning route intersects with the obstacle;
[0021] When the distance between the fuselage and the obstacle meets the rotation condition, the fuselage is controlled to rotate so that the moving direction of the fuselage is parallel to the obstacle, and the fuselage is controlled to move forward;
[0022] Controlling the rotation of the fuselage so that the moving direction of the fuselage is parallel to the second cleaning route;
[0023] When the cleaning component is in the retracted state, the body is controlled to clean along a second cleaning route.
[0024] According to another aspect of the embodiments of the present specification, a method for controlling the movement of a cleaning device is provided, comprising: in response to an acquired rotation instruction, driving the rotating component of the cleaning device to rotate by the rotating driving component of the cleaning device to control the swinging component of the cleaning device to swing, wherein one end of the swinging component is connected to the cleaning component, and during the swinging of the swinging component, the cleaning component switches between an outward swing state and an inward retracted state, the outward swing state being a state in which at least a portion of the cleaning component is swung toward the outside of the cleaning device, and the inward retracted state being a state in which at least a portion of the cleaning component is retracted toward the inside of the cleaning device; detecting a detection trigger element on the rotating component by a detection component on the rotating driving component to determine the operating state of the cleaning component, wherein the detection trigger element is used to identify the rotation position of the rotating component; and in the case where it is determined that the operating state of the cleaning component is abnormal, controlling the cleaning device to perform a specified operation to restore the operating state of the cleaning component to normal.
[0025] According to another aspect of the embodiments of this specification, there is provided a cleaning device, comprising: a body, a cleaning component movably disposed on the body, a sensor disposed on the body, and a controller disposed on the body;
[0026] The cleaning component has an outward swing state and an inward retracted state, and when the cleaning component is in the outward swing state, the portion of the cleaning component located outside the periphery of the fuselage is larger than the portion of the cleaning component located outside the periphery of the fuselage when the cleaning component is in the inward retracted state;
[0027] The sensor is used to obtain obstacle information in the direction of travel of the cleaning device;
[0028] The controller is used to control the sensor to obtain the obstacle information when the cleaning component is in the outward swing state; when it is determined based on the obstacle information that the cleaning device is performing a preset cleaning task, determine whether the cleaning device meets the preset conditions according to the obstacle information; when the cleaning device meets the preset conditions, control the movement of the body according to the obstacle information to complete the preset cleaning task.
[0029] According to another aspect of the embodiments of this specification, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above control method when running.
[0030] In the embodiment of the present specification, the cleaning component on the cleaning device is configured to be able to swing, so as to provide a higher coverage rate, reduce the scope of missed cleaning, and also avoid scratching against obstacles. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.
[0032] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0033] Figure 1 A schematic diagram of the bottom view of the cleaning device provided in the embodiment of this specification;
[0034] Figure 2a to Figure 2b A bottom view schematic diagram of the rotation direction of the cleaning component provided in the embodiment of this specification;
[0035] Figure 3 A flow chart of a control method for a cleaning device provided in an embodiment of this specification;
[0036] Figure 4 A schematic top view of the route planning along the edge provided in the embodiment of this specification;
[0037] Figure 5 A schematic top view of the route planning along the edge provided in the embodiment of this specification;
[0038] Figure 6a to Figure 6b A schematic diagram of route planning along the border provided in the embodiments of this specification;
[0039] Figure 7 A flow chart of a control method for a cleaning device provided in an embodiment of this specification;
[0040] Figure 8 A schematic top view of the rotation angle provided in the embodiment of this specification;
[0041] Figure 9a to Figure 9c A schematic top view of the route planning along the edge provided in the embodiment of this specification;
[0042] Figure 10a to Figure 10b A schematic top view of the route planning along the edge provided in the embodiment of this specification;
[0043] Figure 11a to Figure 11b A schematic top view of the route planning along the edge provided in the embodiment of this specification;
[0044] Fig.12 A schematic top view of an inner corner edge cleaning process provided in an embodiment of this specification;
[0045] Fig.13 A schematic top view of an inner corner edge cleaning process provided in an embodiment of this specification;
[0046] Fig.14 A schematic top view of an inner corner edge cleaning process provided in an embodiment of this specification;
[0047] Figure 15a to Figure 15b A schematic top view of an outer corner edge cleaning process provided in an embodiment of this specification;
[0048] Fig.16 A flow chart of a control method for a cleaning device provided in an embodiment of this specification;
[0049] Fig.17 A schematic top view of a bow-shaped cleaning route provided in an embodiment of this specification;
[0050] Fig.18 A schematic top view of a bow-shaped cleaning route provided in an embodiment of this specification;
[0051] Fig.19 A schematic top view of a bow-shaped cleaning route provided in an embodiment of this specification;
[0052] Fig. 20 A flow chart of a method for controlling movement of a cleaning device provided in an embodiment of this specification;
[0053] Fig.21 A schematic diagram of a method for controlling movement of a cleaning device provided in an embodiment of this specification;
[0054] Fig. 22 A schematic diagram of a method for controlling movement of a cleaning device provided in an embodiment of this specification;
[0055] Fig.23 A flow chart of a method for controlling movement of a cleaning device provided in an embodiment of this specification;
[0056] Fig.24 A flow chart of a cleaning control method of a cleaning robot provided in an embodiment of this specification;
[0057] Fig.25 A simple bottom-up structural diagram of the cleaning robot provided in an embodiment of this specification;
[0058] Fig.26 A bottom-up structural schematic diagram of a cleaning robot provided in an embodiment of the present specification with a cleaning component in a retracted position;
[0059] Fig. 27 A flow chart of an edge cleaning method provided in an embodiment of this specification;
[0060] Fig.28 A top-down model diagram of an obstacle scene provided in an embodiment of this specification;
[0061] Fig.29 A top-down model diagram of an obstacle scene provided in an embodiment of this specification;
[0062] Figure 30a to Figure 30j A top-down model diagram of obstacle avoidance in an obstacle scenario provided in an embodiment of this specification;
[0063] Figure 31a to Figure 31j A top-down model diagram of obstacle avoidance in an obstacle scenario provided in an embodiment of this specification;
[0064] Fig.32 A structural block diagram of an electronic device provided in an embodiment of this specification;
[0065] Fig.33 It is a bottom view schematic diagram of a cleaning device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0066] The present specification will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments in the present specification can be combined with each other without conflict.
[0067] It should be noted that the terms "first", "second", etc. in this specification are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0068] The cleaning device may be an autonomous robot that can move autonomously in a working area and autonomously complete cleaning tasks without external human information input and control. The working area may include indoor areas and outdoor areas. The indoor area may include a family room, an office, a shopping mall, a factory workshop, etc. The outdoor area may include a lawn, a garden, a road, etc. The cleaning tasks may include sweeping (e.g., washing the floor, mopping the floor, sweeping the floor, etc.), mowing the lawn, removing snow, etc.
[0069] The cleaning equipment includes but is not limited to: a sweeping robot, a floor-washing robot, a robot that combines sweeping and mopping, a cleaning robot, a lawnmowing robot, a snow-clearing robot, etc. The cleaning equipment can clean by sweeping first and mopping later or by sweeping and mopping separately. Among them, the sweeping and mopping before the mopping method can sweep the floor and mop the floor at the same time, which can improve the cleaning efficiency. The sweeping and mopping separately method can sweep the floor first and then mop the floor after sweeping the floor, which can improve the cleaning effect.
[0070] The cleaning device may include a body, a controller, one or more cleaning components, one or more sensors, etc. The body may be in a circular, square or other shapes. For example, a portion of the body may be circular, and another portion may be square. The controller may include a microcontroller unit (MCU). Of course, the controller may also include other devices that may have control functions. The cleaning component may be in a circular, square or other shapes (e.g., semicircular, arc, triangular, etc.). The circular shape facilitates the cleaning component to perform rotary cleaning. The special shape facilitates the cleaning component to clean the corner area. The cleaning component may include a side brush, a roller brush (also known as a floor brush), a rag plate (also known as a mop plate), etc. The side brush can gather foreign matter and move the foreign matter toward the center of the bottom of the cleaning device. The roller brush can sweep up foreign matter at the bottom of the cleaning device and allow the foreign matter to enter the dust collection box through the suction port. The rag plate is used for wiping or mopping the floor. A rag is provided on the rag plate. A water tank is provided on the cleaning device. The water in the water tank flows to the rag through the hole to wet the rag. The wetted rag is used for mopping the floor. Foreign objects cleaned by the cleaning device include but are not limited to dust, hair, pet feces, etc. The sensor may include a laser radar sensor (such as a triangulation sensor, a TOF sensor, etc.), an infrared sensor, a line laser sensor, an edge sensor, a visual sensor (such as a camera, etc.). The sensor is used to obtain obstacle information around the cleaning device. The obstacle information is used to indicate one or more obstacles. The controller can control the cleaning device according to the obstacle information.
[0071] In an exemplary embodiment, the controller can control at least one cleaning component to swing. The swinging can include swinging out to the outside of the cleaning device and / or retracting into the inside of the cleaning device. In this way, during the edge cleaning process, the cleaning component can be controlled to swing out to the outside of the cleaning device to provide a higher coverage rate and reduce the scope of missed cleaning. In addition, considering that the cleaning component swung out to the outside increases the risk of the cleaning device being trapped or touching an obstacle (being contaminated by the obstacle or contaminating the obstacle), the cleaning component can also be controlled to retract into the inside of the cleaning device.
[0072] The edge cleaning may include cleaning the body along the contour boundary of the obstacle. The obstacle may include obstacles of any shape. For example, the obstacle may include a straight obstacle, the contour boundary of the straight obstacle may be a straight line, the straight obstacle may include a wall, the wall may include a real wall and a virtual wall, etc. For another example, the obstacle may also include a circular obstacle, the contour boundary of the circular obstacle may be an arc, the circular obstacle may include a cylinder, a table leg, a chair leg, etc. For another example, the obstacle may also include an irregular obstacle, and the irregular obstacle may include an obstacle with one or more protrusions.
[0073] All cleaning components of the cleaning device can be configured to be able to swing. Alternatively, in order to reduce the complexity of the structure of the cleaning device and reduce manufacturing costs, a part of the cleaning components of the cleaning device can be configured to be able to swing, and another part of the cleaning components can be configured not to be able to swing.
[0074] The swing distance of the cleaning component may be fixed. Specifically, the swinging out to the outside of the cleaning device may include moving to an outward swing state, and the retracting into the inside of the cleaning device may include moving to a retracted state. In this way, the cleaning component can switch between the outward swing state and the retracted state. Among them, the outward swing state can be a state in which at least part of the cleaning component is swung out to the outside of the cleaning device. The retracted state can be a state in which at least part of the cleaning component is retracted into the inside of the cleaning device. In the outward swing state, the portion of the cleaning component located outside the periphery of the fuselage is larger than the portion of the cleaning component located outside the periphery of the fuselage in the retracted state. Specifically, in the outward swing state, at least part of the cleaning component exceeds the maximum width position of the edge of the fuselage, or the cleaning component may exceed the edge of the fuselage of the cleaning device, but does not exceed the maximum width position of the edge of the fuselage. In the retracted state, the cleaning component does not exceed the edge of the fuselage of the cleaning device, or the cleaning component may exceed the edge of the fuselage of the cleaning device, but does not exceed the maximum width position of the edge of the fuselage.
[0075] It should be noted that a center point can be selected on the fuselage. For example, the shape of the cleaning device fuselage can be circular, and the center point can include the center of the circle. For another example, the shape of the cleaning device fuselage can be square, and the center point can include the center point of the square. For another example, the cleaning device can include two drive wheels, and the center point can include the center point of the line connecting the two drive wheels, for example, the center point can be the center point of the line connecting the rotation centers of the two drive wheels. Then, the maximum width position of the edge of the fuselage can include the position of the edge of the fuselage farthest from the center point in the width direction of the fuselage. In addition, in subsequent embodiments, the rotation of the fuselage can include the rotation of the fuselage with the center point as the rotation center. In addition, in subsequent embodiments, the distance between the fuselage and an obstacle can include the distance between the center point and the obstacle.
[0076] For example, the cleaning device may include at least one cleaning component. Exemplarily, the cleaning device includes two cleaning components. The forward direction of the cleaning device is the front, and the backward direction is the rear. The two cleaning components are arranged at the rear of the cleaning device. The left side of the forward direction is the left side of the cleaning device, and the right side of the forward direction is the right side of the cleaning device. The straight line passing through the center of the cleaning device and parallel to the front-to-back direction is the center line. The two cleaning components are symmetrically arranged on both sides of the center line. Under the condition that the two cleaning components are both configured to be able to swing, the two cleaning components can swing in the same direction. In this way, the two cleaning components can be closely connected during the swinging process to avoid gaps and avoid omissions during cleaning. Alternatively, the cleaning component located on the right side of the center line can be configured to be able to swing, and the cleaning component located on the left side of the center line can be configured not to be able to swing. In this way, edge cleaning can be performed by the cleaning component on the right. Please refer to Figure 1 The cleaning component located on the right side of the center line is in an outward swing state. In the outward swing state, at least part of the cleaning component exceeds the maximum width position of the edge of the fuselage.
[0077] Alternatively, the swing distance of the cleaning component may also be adjustable. This makes it easier for the cleaning component to fit closely to the outline boundary of the obstacle. For example, in the process of cleaning an irregular obstacle along the edge, by adjusting the swing distance of the cleaning component, the cleaning component can fit closely to the outline boundary of the obstacle, thereby improving the cleaning effect. Specifically, the swinging of the cleaning component to the outside of the cleaning device may include swinging a certain swing distance to the outside, and the retracting of the cleaning component to the inside of the cleaning device may include retracting a certain swing distance to the inside. The swing distance of the cleaning component may be adjusted in a smooth manner. Thus, the swing distance can be adjusted infinitely. Alternatively, the swing distance of the cleaning component may also be adjusted in a gear manner. Thus, the swing distance can be adjusted in multiple gears. Each gear may correspond to a swing distance outward. By controlling the cleaning component to be in different gears, the cleaning component can be swung out to different swing distances outward and retracted to different swing distances inward.
[0078] It should be noted that in the retracted state, the cleaning component can be considered to be in a retracted state and not swung out to the outside of the cleaning device. That is, in the retracted state, the distance the cleaning component is swung out to the outside can be considered to be zero. In the outward swing state, the distance the cleaning component is swung out to the outside can be considered to be MAX. Then, the controller can adjust the swing distance of the cleaning component within the range [0, MAX]. For example, with the center of the cleaning component as the reference point, the swing distance is the movement range of the center of the cleaning component in the width direction of the fuselage. When the cleaning component is in the retracted state, the swing distance of the center of the cleaning component is 0.
[0079] The cleaning device may include a first driving component. The first driving component may be connected to the cleaning component. The first driving component may include a rotating driving component. For example, the first driving component may include a motor, etc. The motor may include a brushed motor, a brushless motor, a stepping motor, a servo motor, etc. The controller may control the first driving component to rotate. The first driving component may drive the cleaning component to swing by rotating. Specifically, the controller may control the cleaning component to rotate in one rotation direction, thereby driving the cleaning component to swing outward to the outside of the cleaning device. The controller may also control the cleaning component to rotate in another rotation direction, thereby driving the cleaning component to retract into the inside of the cleaning device. The controller may control the cleaning component to swing outward or retract intoward by controlling the rotation direction of the first driving component. The controller may control the swing distance of the cleaning component by controlling the rotation time of the first driving component. For example, the controller may control the cleaning component to move from an outward swing state to an inward retracted state, from an inward retracted state to an outward swing state, swing outward by a certain swing distance, retract intoward by a certain swing distance, etc.
[0080] In an exemplary embodiment, the cleaning device may also include a swing transmission mechanism. The swing transmission mechanism may be connected to the first drive component and the cleaning component. The swing transmission mechanism may include gears, racks, screw sleeves, worm gears, etc. The swing transmission mechanism can convert the rotational motion of the first drive component into the reciprocating motion of the cleaning component, thereby driving the cleaning component to swing. Of course, the cleaning device may further include an elastic member. The elastic member can be deformed under the action of an external force to generate an elastic force. For example, the elastic member may include a torsion spring, and the elastic force may include the torsion of the torsion spring. Of course, the elastic member may also include other components that can generate elastic force, such as tension springs, compression springs, etc. The swing transmission mechanism may be connected to the first drive component and the elastic member, and the elastic member may be connected to the cleaning component.
[0081] The cleaning component can be driven to swing outward only by the elastic force of the elastic member.
[0082] Alternatively, the cleaning component can be driven to swing outward only by the first driving component. Specifically, the controller can control the first driving component to rotate in a rotation direction. The swing transmission mechanism can convert the rotational motion of the first driving component into a motion of the cleaning component swinging outward. The position of the cleaning component or the swing transmission mechanism can be detected by a position sensor to determine whether the cleaning component has reached a desired position. After reaching the desired position, the position sensor can send an in-position signal to the controller. The controller can control the first driving component to stop rotating according to the in-position signal.
[0083] Alternatively, the cleaning component can also be driven to swing outward through the cooperation of the elastic member and the first driving member. Specifically, the distance that the cleaning component needs to swing outward can be D, and the distance that the elastic member can drive the cleaning component to swing outward can be D1. Then the controller can determine that the distance that the first driving member drives the cleaning component to swing outward is D2 based on the distance D and the distance D1. D2≥D-D1. The controller can control the first driving member to rotate. The first driving member can drive the swing transmission mechanism and the cleaning component to swing outward to the outside of the cleaning device by rotating. The controller can detect the position of the cleaning component or the swing transmission mechanism through a position sensor to determine whether the cleaning component has reached the required position (the position corresponds to the distance D2). After reaching the required position, the position sensor can send an in-position signal to the controller. The controller can control the first driving member to stop rotating according to the in-position signal. In this way, during the edge cleaning process, on the one hand, the cleaning component can be close to the contour boundary of the obstacle, thereby improving the cleaning effect of irregular obstacles; on the other hand, based on the force of the obstacle, the elastic member can drive the cleaning component to swing toward the inside of the cleaning device to achieve a buffering or collision avoidance effect of the obstacle. In addition, during the edge cleaning process, the distance that the cleaning component actually swings outward can be changed by the elastic member, so that the distance that the cleaning component actually swings outward can be changed within the range [D2, D2+D1].
[0084] The cleaning component can be driven to retract inwardly by the first driving component. Specifically, the controller can control the first driving component to rotate in another rotation direction. The swing transmission mechanism can convert the rotational motion of the first driving component into the movement of the cleaning component to retract inwardly. The controller can detect the position of the cleaning component or the swing transmission mechanism through a position sensor to determine whether the cleaning component has reached the required position. After reaching the required position, the position sensor can send an in-position signal to the controller. The controller can control the first driving component to stop rotating according to the in-position signal.
[0085] After receiving the in-place signal, the controller directly controls the first drive component to stop rotating. Alternatively, considering the tolerance of the gear transmission, after receiving the in-place signal, the controller can also control the first drive component to continue rotating for a set time to offset the gear transmission tolerance. This ensures that the cleaning component can be swung outward and retracted into place. The set time length can be any length of time. For example, the set time length can be selected from 0 to 10 seconds. For example, the set time length can be 1 second, 2 seconds, 3 seconds, 4 seconds, 5 seconds, 9 seconds, 10 seconds, etc.
[0086] After the cleaning component reaches the required position (for example, the position corresponding to when the cleaning component is in an outward swing state, the position corresponding to when the cleaning component is in an inward retracted state, and the position corresponding to when the cleaning component moves any swing distance), the cleaning component may not be limited, or the cleaning component may be limited. The cleaning component can be kept in the required position by limiting the position and cannot change. The cleaning component can be limited by a self-locking structure. The self-locking structure may include a first drive mechanism. Specifically, the controller may send a self-locking signal to the first drive mechanism. The self-locking signal is used for the first drive mechanism to self-lock, so that the cleaning component can be kept in the required position. For example, a brushed motor may be used as the first drive component. Limiting is achieved by utilizing the brake function of the brushed motor. The controller short-circuits the positive and negative poles of the brushed motor to achieve the brake function, thereby achieving the limiting of the cleaning component. Short-circuiting the positive and negative poles of the brushed motor can generate the self-locking signal. Alternatively, the self-locking structure may also include a mechanical self-locking structure. While achieving the limiting of the cleaning component, the mechanical self-locking structure can also adjust the swing distance of the cleaning component according to the gear. For example, a plurality of retractable limiters may be provided on the cleaning device, each of which corresponds to the tooth groove of the gear on the first driving component. After the cleaning component reaches the required position, the retractable limiter may be driven to extend so as to insert the retractable limiter into the tooth groove to achieve mechanical self-locking according to the gear position. For another example, the swing transmission mechanism may include a rotating component and a swinging component. One end of the swinging component is connected to the cleaning component, and the other end is connected to the rotating component. The rotation of the rotating component is driven by the first driving component. The controller may issue a rotation instruction to the first driving component. After receiving the rotation instruction, the first driving component may drive the rotating component to rotate to control the swinging component to swing. The swinging of the swinging component may drive the cleaning component to swing outward or retract. The rotating component may be connected to the first driving component through a gear. A plurality of electromagnetic elements may be provided on the rotating component. The electromagnetic element may form an adsorption effect with the gear. When the rotating component rotates to a suitable position, the electromagnetic element may be controlled to conduct electricity to have an adsorption force, so as to keep the gear in the current position by adsorbing the gear.
[0087] It should be noted that the position sensor may include a signal receiver, a Hall sensor, an infrared sensor, a micro switch, etc. The following example illustrates the process of detecting the position by the position sensor.
[0088] For example, the swing transmission mechanism may include a rotating component and a swing component. One end of the swing component is connected to the cleaning component, and the other end is connected to the rotating component, and the rotation of the rotating component is driven by the first driving component. The controller may issue a rotation instruction to the first driving component. After receiving the rotation instruction, the first driving component may drive the rotating component to rotate to control the swing component to swing. The swinging of the swing component may drive the cleaning component to swing outward or retract.
[0089] The position sensor includes a detection component arranged on the first driving component. A corresponding detection trigger element is arranged on the rotating component. The detection trigger element on the rotating component can be detected by the detection component on the first driving component to determine the operating state of the cleaning component, and the operating state may include a retracted state and an outward swing state. The detection trigger element is used to control the position to which the rotating component is allowed to rotate, such as the position of the rotating component when the cleaning component is in the outward swing state, and the position of the rotating component when the cleaning component is in the retracted state. The detection component may be a sensor, which determines whether the detection trigger element is detected by sensing whether the detection trigger element is touched. Alternatively, the detection component may also be a signal receiver, which determines whether the detection trigger element is detected by receiving a signal sent by the detection trigger element and the signal strength. The rotating component may be connected to the first driving component through a gear, and the detection trigger element may include teeth protruding from the gear.
[0090] After the detection component detects that the detection trigger element rotates to a certain position, a position signal can be sent to the controller. The controller can control the first driving component to stop rotating according to the position signal.
[0091] For another example, the position sensor may include a Hall sensor. When the cleaning component is in an outward swing state or a retracted state, the Hall sensor can detect the metal on the swing transmission mechanism or the cleaning component and sense that it is in place, thereby sending a position signal to the controller. Alternatively, the position sensor may also include a micro switch, such as an optical coupler switch. When the cleaning component is in an outward swing state or a retracted state, the cleaning component or the swing transmission mechanism will contact the micro switch to trigger the micro switch. The triggered micro switch can send a position signal to the controller. Alternatively, the position sensor may also include an infrared sensor. The infrared sensor can detect the position of the cleaning component using the principle of a downward-looking sensor detecting a cliff, thereby sending a position signal to the controller. After receiving the signal sent by the position sensor, the controller can control the first drive component to stop rotating.
[0092] In an exemplary embodiment, the controller can control the cleaning component to be raised and lowered. By controlling the lifting, the cleaning component can be placed in a cleaning state, a raised state, or a separated state. In the cleaning state, the cleaning component contacts the cleaning surface to achieve cleaning. In the raised state, the cleaning component can be separated from the cleaning surface so that the cleaning device can smoothly pass over some obstacles (such as carpets). In the separated state, the cleaning component can be separated from the cleaning device to achieve automatic disassembly of the cleaning component.
[0093] The cleaning device may include a second driving component and a lifting mechanism. The second driving component may include a motor, etc. The lifting mechanism may be connected to the second driving component and the cleaning component, and may convert the rotational motion of the second driving component into the lifting of the cleaning component. The lifting mechanism may be in various forms, for example, the lifting mechanism may be a gear and rack, a threaded lifting mechanism, a cylinder, a lead screw, a worm gear, etc.
[0094] In an exemplary embodiment, the controller can control the cleaning component to rotate so that the cleaning component performs rotational cleaning. Specifically, the cleaning device may include a third driving component. The third driving component may include a motor, etc. The controller can control the third driving component to rotate along the central axis. The third driving component can drive the cleaning component to rotate by rotating. The controller can control the rotation direction of the cleaning component by controlling the rotation direction of the third driving component. The controller can control the rotation speed of the cleaning component by controlling the rotation speed of the third driving component.
[0095] The lifting and lowering process of the cleaning component is divided into two situations. The first situation is that the second driving component realizes the lifting and lowering movement by driving the cleaning component to rotate. Accordingly, during the outward swing and inward retraction process of the cleaning component, the cleaning component remains stationary. The second situation is that during the process of the second driving component driving the cleaning component to lift and lower, the cleaning component does not rotate. Accordingly, during the outward swing and inward retraction process of the cleaning component, the cleaning component may rotate or not rotate.
[0096] In the first case, the third driving component and the second driving component may be the same component, so that the same component can be used to drive the cleaning component to rise and fall and rotate, thereby reducing the manufacturing cost of the cleaning device.
[0097] At this time, the controller can control the cleaning component to rotate in one rotation direction. The lifting mechanism can convert the rotational motion of the second driving component into the lifting motion of the cleaning component. The controller can control the cleaning component to rotate in another rotational direction. The lifting mechanism can convert the rotational motion of the second driving component into the descending motion of the cleaning component.
[0098] For another example, if the cleaning component is in the raised state, when it is determined that the cleaning component needs to be lowered, the controller can control the second driving component to rotate in the second rotation direction. The second driving component can drive the cleaning component to descend by rotating in the second rotation direction, so that the cleaning component enters the cleaning state.
[0099] It should be noted that, for cleaning components located at different positions, the rotation direction during rotational cleaning may be different. For example, the forward direction of the cleaning device is the front, the backward direction is the rear, the left side of the forward direction is the left side of the cleaning device, and the right side of the forward direction is the right side of the cleaning device. Then, for the cleaning component located on the left side, the rotation direction during rotational cleaning may be the first rotation direction. For the cleaning component located on the right side, the rotation direction during rotational cleaning may be the second rotation direction.
[0100] In the second case, the third driving component and the second driving component can be different driving components. In this way, different components can be used to drive the cleaning component to rise and fall and rotate. The cleaning component can rotate or not rotate during the rising and falling process.
[0101] Considering that when the cleaning component is swung out to the outside of the cleaning device, if the cleaning component is directly lifted, it is possible that the cleaning component may rub against obstacles during the lifting process, affecting the service life of the cleaning component and leaving scratches on the obstacles. Therefore, if it is detected that the cleaning component is in the cleaning state and is swung out to the outside of the cleaning device, when it is necessary to lift the cleaning component, the controller can first control the cleaning component to retract into the inside of the cleaning device; after reaching the retracted state, the cleaning component is controlled to be lifted, so that the cleaning component enters the lifted state from the cleaning state.
[0102] For example, the third driving component and the second driving component may be the same component. Then the controller may control the second driving component (or the third driving component) to rotate along the first rotation direction. The second driving component (or the third driving component) may drive the cleaning component to be lifted by rotating along the first rotation direction, and at the same time, the cleaning component is driven to rotate along the first rotation direction, and the cleaning component rotates during the lifting process.
[0103] If the cleaning component is in the cleaning state, when it is determined that the cleaning component needs to be lifted, the controller can control the second driving component to rotate in the first rotation direction. The second driving component can drive the cleaning component to lift by rotating in the first rotation direction, so that the cleaning component enters the lifting state. After entering the lifting state, the controller can continue to control the second driving component to continue to rotate in the first rotation direction. The second driving component can drive the cleaning component to lift by rotating in the first rotation direction, so that the cleaning component is separated from the lifting mechanism, thereby realizing the disassembly of the cleaning component. Exemplarily, a magnetic part can be provided on the lifting mechanism. The magnetic part is used for magnetic connection between the cleaning component and the lifting mechanism. A blocking member is provided on the cleaning device, and the blocking member is used to limit the cleaning component from continuing to lift after the cleaning component is in the lifting state. After the cleaning component is in the lifting state, if the cleaning component is driven to continue to lift, the cleaning component is disconnected from the lifting mechanism by magnetic connection, and the cleaning component falls (separated state).
[0104] For another example, the third driving component and the second driving component may also be different components. The lifting movement of the cleaning component and the rotational movement (rotation) along the central axis of the third driving component are independent of each other. At this time, depending on the different implementation forms of the lifting mechanism connected to the second driving component, the cleaning component may rotate or not rotate during the lifting process.
[0105] The controller can control the second driving component to rotate in the first rotation direction. The second driving component can drive the cleaning component to lift by rotating in the first rotation direction. During the lifting process, the controller can control the third driving component not to rotate, so that the cleaning component does not rotate during the lifting process.
[0106] If it is detected that the cleaning component is in a raised state, when the cleaning component needs to be swung out to the outside of the cleaning device, the controller can first control the cleaning component to descend, so that the cleaning component enters the cleaning state from the raised state; after entering the cleaning state, the cleaning component is controlled to be swung out to the outside of the cleaning device.
[0107] For example, the third driving component and the second driving component may be the same component. Then the controller may control the second driving component (or the third driving component) to rotate along the second rotation direction. The second driving component (or the third driving component) may drive the cleaning component to descend and simultaneously drive the cleaning component to rotate along the second rotation direction by rotating along the second rotation direction.
[0108] For another example, the third driving component and the second driving component may be different components. The controller may control the second driving component to rotate along the second rotation direction. The second driving component may drive the cleaning component to descend by rotating along the second rotation direction. During the descent process, the controller may control the third driving component not to rotate, so that the cleaning component does not rotate during the descent process.
[0109] In an exemplary embodiment, the third driving component and the first driving component can be the same component. In this way, the same component can be used to drive the cleaning component to swing and rotate, reducing the manufacturing cost of the cleaning device. The swing and rotation of the cleaning component are related. Of course, the third driving component and the first driving component can be different driving components. In this way, different components can be used to drive the cleaning component to swing and rotate. The swing and rotation of the cleaning component are opposite to each other.
[0110] The cleaning component may not rotate during the process of being swung out to the outside. This can prevent the cleaning component from being skewed due to collision with obstacles. Alternatively, the cleaning component may rotate during the process of being swung out to the outside. This can avoid missed sweeps. During the process of being swung out to the outside, the controller can control the rotation direction of the cleaning component. For example, the controller can control the cleaning component to rotate toward the outside of the cleaning device. During the process of rotating the cleaning component toward the outside, based on the friction force of the cleaning component in contact with the ground, the cleaning component tends to move toward the outside of the cleaning component. Therefore, by rotating the cleaning component toward the outside, the driving force required for the cleaning component to be swung out to the outside can be reduced. Taking the cleaning component on the right side of the fuselage rotating outward as an example, when the cleaning component rotates outward, the magnitude of the friction between the left and right ends of the cleaning component and the ground can be the same, but the right end of the cleaning component is away from the swing center of the cleaning component when it swings outward relative to the left end, and the force arm from the right end of the cleaning component to the swing center is greater than the force arm from the left end of the cleaning component to the swing center. Therefore, the torque of the right end of the cleaning component is greater than the torque of the left end of the cleaning component. The torque of the right end of the cleaning component is the torque of outward movement, which is beneficial to reduce the driving force of the outward swing of the cleaning component when rotating outward.
[0111] Furthermore, during the swinging process, the controller can also control the rotation speed of the cleaning component. Specifically, the controller can control the cleaning component to rotate at a lower rotation speed; while the cleaning component is rotating, the cleaning component can be controlled to swing outward; after detecting that the cleaning component has reached the desired position, the cleaning component can be controlled to rotate at another higher rotation speed. In this way, the rotation speed of the cleaning component can be reduced during the swinging process, so as to prevent the cleaning component from being skewed due to collision with obstacles.
[0112] The cleaning component may not rotate during the process of retracting into the interior. Alternatively, the cleaning component may also rotate during the process of retracting into the interior. During the process of retracting into the interior, the controller may control the rotation direction of the cleaning component. For example, the controller may control the cleaning component to rotate toward the interior of the cleaning device. Similar to the process of the cleaning component swinging out to the outside, when the cleaning component is retracted into the interior, the cleaning component is controlled to rotate inwardly. Based on the friction between the cleaning component and the ground, the torque at the right end of the cleaning component is greater than the torque at the left end of the cleaning component. The torque at the right end of the cleaning component is the torque for moving inwardly, so when the cleaning component rotates inwardly, it is beneficial to reduce the driving force for the retraction of the cleaning component. Therefore, by rotating inwardly, the driving force required for the cleaning component to retract into the interior can be reduced. Further, during the process of retracting into the interior, the controller may also control the rotation speed of the cleaning component. Specifically, the controller may first reduce the rotation speed of the cleaning component, and then control the cleaning component to retract into the interior; after detecting that the cleaning component has reached the desired position, the cleaning component may be controlled to restore the original rotation speed, or the rotation speed of the cleaning component may be set to zero.
[0113] See also Figure 2a and Figure 2b . With the forward direction as the front and the backward direction as the rear, the left side of the forward direction is the left side of the cleaning device, and the right side of the forward direction is the right side of the cleaning device. The cleaning component on the right side can rotate along the first rotation direction when swinging outward. The cleaning component on the left side can rotate along the second rotation direction when swinging outward. This can reduce the driving force required when the cleaning component is swung outward. The cleaning component on the right side can rotate along the second rotation direction when retracting inward. The cleaning component on the left side can rotate along the first rotation direction when retracting inward. This can reduce the driving force required when the cleaning component is retracted inward.
[0114] In an exemplary embodiment, during the edge cleaning process of the cleaning device, the controller may control the cleaning component to swing outward, causing the cleaning component to fall due to collision with an obstacle.
[0115] To this end, the controller can detect whether the cleaning component is separated from the cleaning device. When detecting that the cleaning component is separated from the cleaning device, the controller can control the cleaning component to retract into the interior of the cleaning device; after reaching the retracted state, the cleaning component can be controlled to be lifted, so that the cleaning component enters the lifted state from the cleaning state. After entering the lifted state, the controller can detect again whether the cleaning component is separated from the cleaning device to confirm again whether the cleaning component is separated from the cleaning device.
[0116] If it is confirmed that the cleaning component is not separated from the cleaning device, the controller can control the cleaning component to descend, so that the cleaning component enters the cleaning state from the raised state; after entering the cleaning state, the cleaning component can be controlled to swing out to the outside of the cleaning device to continue edge cleaning.
[0117] If it is confirmed that the cleaning component is separated from the cleaning device, the controller can control the cleaning device to move to find the cleaning component. After finding the cleaning component, the controller can control the lifting mechanism to descend so that the lifting mechanism and the cleaning component are aligned and installed. After successful installation, the controller can control the cleaning component to swing out of the cleaning device so as to continue edge cleaning.
[0118] The lifting mechanism can be connected to the second driving component in a transmission connection, and can convert the rotation of the second driving component into the lifting of the cleaning component. A sensor can be provided on the transmission mechanism, and a corresponding induction member can be provided on the cleaning component. The controller can detect whether the cleaning component is separated from the transmission mechanism based on the sensor and the induction member. The sensor can include a Hall sensor, and the controller can detect whether the cleaning component is separated from the transmission mechanism based on the size of the Hall value. Exemplarily, a magnetic member can be provided on the lifting mechanism. The magnetic member is used for magnetic connection between the cleaning component and the lifting mechanism. After detecting that the cleaning component is separated, the controller can search for the cleaning component and install it. The controller can control the cleaning device to trace back the historical path to find the cleaning component, or it can also control the cleaning device to walk in the direction of increasing Hall value to find the cleaning component. After finding the cleaning component, the controller can control the lifting mechanism to descend, so that the cleaning component is installed on the lifting mechanism through magnetic connection. Exemplarily, other types of sensors can also be used, such as a magnetic proximity sensor, and in the process of finding the cleaning component, it walks in the direction of increasing sensor signal strength to find the cleaning component.
[0119] In an exemplary embodiment, the cleaning component is swung outward, which may cause the cleaning device to be trapped. To this end, the controller can determine whether the cleaning device is trapped; if the cleaning device is trapped, the operating state of the cleaning component can be determined; if the cleaning component is in an outward swing state, the cleaning component can be controlled to move to a retracted state, and then the cleaning device can be controlled to perform an obstacle-crossing action; if the cleaning component is in a retracted state, the cleaning device can be controlled to perform an obstacle-crossing action. The operating state of the cleaning component can be detected by a position sensor, and the specific process will not be repeated here. Of course, if the cleaning device is trapped, the cleaning device can also be directly controlled to perform an obstacle-crossing action. In this way, it is possible to perform an obstacle-crossing action under the condition that the cleaning component is in an outward swing state. As a result, the cleaning component is easily affected by the outside world and falls off.
[0120] One or more trapped conditions can be set. The trapped conditions may include: the slip coefficient is greater than or equal to the set value, the inclination angle of the cleaning device is greater than or equal to the set value, the current of the driving component (first driving component, second driving component, third driving component) is greater than or equal to the set value, and the continuous triggering time of the laser radar sensor (LDS) is greater than or equal to the set value. The controller can determine that the cleaning device is trapped when it detects that any one of the trapped conditions is met. Alternatively, the controller can also determine that the cleaning device is trapped when it detects that the number of trapped conditions is greater than or equal to a threshold. The process of the controller performing the obstacle crossing action can be found in the subsequent embodiments.
[0121] In an exemplary embodiment, when the cleaning component is in the outward swing state, the controller can control the cleaning component to move to the outward swing state at intervals of a first set time length. By forcing the cleaning component to swing outward at intervals of a set time length, it is possible to avoid the cleaning component from shrinking to a certain extent due to collision, resulting in the outward swing not being in place, thereby reducing the coverage range during edge cleaning. Specifically, the controller can control the first driving component to rotate at intervals of a set time length, thereby driving the cleaning component to move to the outward swing state.
[0122] The controller can directly control the cleaning component to move to the outward swing state at intervals of the first set time. Alternatively, the controller can detect the operating state of the cleaning component through a position sensor at intervals of the first set time; if the cleaning component is not in the outward swing state (for example, the cleaning component is in the retracted state, the cleaning component is swung outward a certain distance), the cleaning component can be controlled to move to the outward swing state.
[0123] When the cleaning component is in the retracted state, the controller can also control the cleaning component to move to the retracted state at intervals of a second set time length. By forcing the cleaning component to retract at intervals of a set time length, it is possible to prevent the cleaning component from swinging outward to a certain extent due to the vibration of the cleaning equipment during operation, resulting in a gap between the cleaning components (for example, between two rag plates) and unable to be tightly connected. The gap may cause omissions during cleaning. Specifically, the controller can control the first drive component to rotate at intervals of a set time length, thereby driving the cleaning component to move to the retracted state.
[0124] The controller can directly control the cleaning component to move to the retracted state at every second set time interval. Alternatively, the controller can also detect the operating state of the cleaning component through the position sensor at every second set time interval; if the cleaning component is not in the retracted state (for example, the cleaning component is in the outward swing state, the cleaning component is swung outward a certain distance), the cleaning component can be controlled to move to the retracted state.
[0125] The first set time length and the second set time length may be the same or different.
[0126] The first set time length and the second set time length may be any length of time. For example, the first set time length and the second set time length may be 5 minutes, 10 minutes, etc.
[0127] In one exemplary embodiment, a control method of a cleaning device is provided.
[0128] See also Figure 3 , the control method may include the following steps.
[0129] Step S31: Select a reference point on the protrusion of the obstacle;
[0130] Step S32: planning a route along the edge of the cleaning equipment according to the reference point;
[0131] Step S33: Control the cleaning device to move along the edge route to perform edge cleaning.
[0132] The obstacle may be irregular, with one or more protrusions. The protrusions may include arc-shaped protrusions, rectangular protrusions, and protrusions of any other shape. The controller may obtain obstacle information in the direction of travel of the cleaning device through sensors; may identify the protrusions on the obstacle based on the obstacle information; and may select a reference point on the protrusion of the obstacle based on the obstacle information. For example, the vertex of the protrusion or any other point may be selected as a reference point.
[0133] The controller can determine whether the reference points on the adjacent multiple protrusions can form a straight line. Specifically, it can be determined whether the reference points of the multiple protrusions can form a straight line based on the tangent lines at the reference points. If the tangent lines at the reference points have the same slope, it can be determined that the reference points of the multiple protrusions can form a straight line. If the tangent lines at the reference points have different slopes, it can be determined that the reference points of the multiple protrusions cannot form a straight line.
[0134] See also Figure 4 If the reference points on the adjacent protrusions can form a straight line, the controller can use the straight line formed by the reference points as the reference straight line; the edge route of the cleaning device can be determined based on the reference straight line. The edge route can include a straight line passing through the center point of the body. The reference straight line can include a tangent at the reference point. The distance between the edge route and the reference straight line can be the radius of the cleaning device body or other values. Please refer to Figure 5. If the reference points on multiple adjacent protrusions cannot form a straight line, the controller can determine the corresponding reference line segment according to the reference point on each protrusion; and can determine the corresponding sideline route segment according to each reference line segment. Among them, the reference line segment may include a straight line, and specifically may include a tangent at the reference point. The distance between the sideline route segment and the reference line segment may be the radius of the cleaning device body or other values. The sideline route segment may include a straight line passing through the center point of the body. A reference line can be obtained by splicing one or more reference line segments. A sideline route of the cleaning device can be obtained by splicing one or more sideline route segments.
[0135] During the process of walking along the edge route, the controller can control the cleaning component to be in an outward swing state. Alternatively, during the process of walking along the edge route, the controller can detect the distance between the body of the cleaning device and the obstacle through a sensor (such as an edge sensor); and according to the distance, the distance to which the cleaning component is swung outward can be controlled. In this way, the swinging distance of the cleaning component can be adjusted in real time. This can avoid the cleaning component from scratching against the protrusion and improve the coverage rate of edge cleaning.
[0136] In an exemplary embodiment, the controller can obtain obstacle information of the cleaning device in the direction of travel through a sensor; can identify the shape of the obstacle based on the obstacle information, and plan the edge route of the cleaning device by extracting the outline boundary of the obstacle. Exemplarily, the controller selects multiple reference points based on the shape of the obstacle; can determine the tangents at the multiple reference points; can plan a polygonal edge route based on the tangents at the multiple reference points; and can control the cleaning device to move along the polygonal edge route.
[0137] Exemplarily, the obstacle is a circular obstacle, and the tangents at the multiple reference points can constitute the circumscribed polygon of the circular obstacle. The number of sides of the circumscribed polygon can be equal to the number of sides of the polygon along the edge route. The distance between each side on the circumscribed polygon and the corresponding side on the polygon along the edge route can be the radius of the cleaning device body or other values. Exemplarily, when the cleaning device extracts tangents to the outline of the obstacle based on the reference points, based on the processing capacity of the controller, there are differences in the along the edge routes of the cleaning device for obstacles of different sizes. Specifically, the controller can determine the number of reference points according to the size of the circular obstacle, thereby determining the number of sides of the polygon along the edge route. The larger the size of the circular obstacle, the more sides the polygon along the edge route has. The smaller the size of the circular obstacle, the fewer sides the polygon along the edge route has. For example, for a small-sized circular obstacle, the number of sides of the along the edge route that can be extracted is small, and for a large-sized circular obstacle, the number of sides of the along the edge route that can be extracted is large. Exemplarily, the size can include the radius or diameter of the circular obstacle. When the size of the obstacle is less than or equal to the size threshold, the edge route of the cleaning device is a rectangular edge route, wherein the size threshold may be 8 mm, 9 mm, 8.5 mm, etc. For example, see Figure 6a For a circular obstacle of a relatively small size, the number of edges of the polygonal edge route can be 4, so that the polygonal edge route is a rectangular edge route. Figure 6b When the size of the obstacle is greater than the size threshold, for example, for a circular obstacle of a certain size, the polygonal route along the edge has more edges. When the size is large enough, the polygonal route along the edge can be close to the circular route.
[0138] In an exemplary embodiment, under the condition that the cleaning component is swung outward, the controller can control the fuselage to clean the obstacle along the edge. During the edge cleaning process, the controller can obtain the distance between the fuselage and the obstacle through the sensor. The sensor may include a lidar sensor (such as a triangulation sensor, a TOF sensor, etc.), an infrared sensor, a line laser sensor, an edge sensor, a visual sensor (such as a camera, etc.). However, in some scenarios, the obstacle has a low-positioned protrusion (such as a skirting on a wall). The position of a part of the sensors on the fuselage (such as a lidar sensor) is relatively high. It is possible that these sensors cannot obtain the distance between the fuselage and the protrusion, which is not conducive to controlling the cleaning device. For example, the obstacle may include a wall with a low-positioned skirting on the wall. The distance between the fuselage and the wall can be obtained through these sensors, but the distance between the fuselage and the skirting cannot be obtained.
[0139] To this end, the distance between the fuselage and the obstacle can be determined by the cooperation of multiple sensors. Specifically, the multiple sensors may include a first sensor and a second sensor. The first distance between the fuselage and the obstacle can be obtained by the first sensor, and the second distance between the fuselage and the obstacle can be obtained by the second sensor. The controller can calculate the difference between the first distance and the second distance; when the difference is less than a threshold value, it can be considered that there is no lower protrusion on the obstacle, and the first distance or the second distance can be used as the distance between the fuselage and the obstacle. When the difference is greater than or equal to the threshold value, it can be considered that there is a lower protrusion on the obstacle, and the smaller of the first distance and the second distance can be used as the distance between the fuselage and the obstacle. The smaller of the first distance and the second distance can represent the distance between the fuselage and the protrusion.
[0140] Exemplarily, the first sensor may be a collision detection sensor, and the second sensor may be a lidar sensor. When the fuselage moves along an obstacle and collides with the obstacle, it is determined based on the collision detection sensor and the lidar sensor that the obstacle has a lower protrusion (such as a skirting). At this time, the distance between the cleaning equipment and the obstacle is increased to continue the cleaning task.
[0141] Furthermore, after determining that the obstacle has a lower-positioned protrusion, the cleaning device increases the distance between the cleaning device and the obstacle to continue to perform the cleaning task, and stores each time a protrusion is detected, for example, it can be stored in a map of the cleaning device. The distance between the cleaning device and the obstacle when the protrusion is not detected is set to D3, and the distance between the cleaning device and the obstacle is adjusted to D4 after the protrusion on the obstacle is detected, and D4>D3. When the cleaning device performs the cleaning task for the next N times, the cleaning device maintains the adjusted distance D4 between the obstacle and performs the cleaning work based on the stored situation (for example, based on a map); when the cleaning device performs the cleaning task for the N+1th time, the cleaning device performs the cleaning task according to the distance D3 before adjustment. Exemplarily, the N times can be set to 3 times, 4 times, 5 times, etc. In the above manner, when performing the cleaning task, the collision between the cleaning device and the obstacle can be reduced. At the same time, when the obstacle changes, the obstacle can also be cleaned along the edge to avoid missing cleaning.
[0142] In one exemplary embodiment, a control method of a cleaning device is provided.
[0143] See also Figure 7 , the control method may include the following steps.
[0144] Step S71: Obtain obstacle information of the cleaning device in the moving direction;
[0145] Step S72: determining whether the cleaning device meets the preset conditions according to the obstacle information;
[0146] Step S73: When the cleaning device meets the preset conditions, the action of the cleaning device is controlled.
[0147] In an exemplary embodiment, during the execution of a preset cleaning task, the controller can control the cleaning component to swing outward. Specifically, the controller can control the distance that the cleaning component swings outward or control the cleaning component to swing outward to an outward swing state. Under the condition that the cleaning component swings outward, the controller can obtain obstacle information of the cleaning device in the direction of travel through a sensor; based on the obstacle information, it can be determined whether the cleaning device meets the preset conditions; when the cleaning device meets the preset conditions, the action of the cleaning device can be controlled to complete the preset cleaning task.
[0148] In an exemplary embodiment, the preset condition may include an obstacle avoidance condition. The obstacle avoidance condition may include an obstacle distance condition. The obstacle distance condition may include that the distance between the fuselage and the obstacle is less than or equal to a distance threshold. Specifically, the controller may obtain the distance between the fuselage and the obstacle based on the obstacle information; when the distance is less than or equal to the distance threshold, it may be determined that the cleaning device meets the obstacle avoidance condition; when the distance is greater than the distance threshold, it may be determined that the cleaning device does not meet the obstacle avoidance condition. Of course, the obstacle avoidance condition may also include an obstacle type condition. The obstacle type condition may include that the obstacle is an obstacle of a preset type. Specifically, the controller may obtain the distance between the fuselage and the obstacle and the type of the obstacle based on the obstacle information; when the distance is less than or equal to the distance threshold and the type of the obstacle is a preset type, it may be determined that the cleaning device meets the obstacle avoidance condition; otherwise, it may be determined that the cleaning device does not meet the obstacle avoidance condition. For identifying the type of obstacle based on the obstacle information, please refer to the subsequent embodiments. No further description will be given here.
[0149] The action of controlling the cleaning device may include: controlling the body to perform an obstacle avoidance action.
[0150] The controlling of the fuselage to perform the obstacle avoidance action may include: reducing the rotation speed of the cleaning component. By reducing the rotation speed of the cleaning component, it is possible to prevent the rotation speed of the cleaning component from being too high, so that the cleaning component is subjected to a greater force from the obstacle, causing the cleaning device to deviate from the planned route along the edge. Specifically, the controller may control the cleaning component to reduce a certain rotation speed based on the current rotation speed. Among them, the reduced rotation speed may be preset. Alternatively, the controller may also obtain the distance between the obstacle and the fuselage based on the obstacle information; and may determine the reduced rotation speed based on the distance between the obstacle and the fuselage. The smaller the distance between the obstacle and the fuselage, the greater the reduced rotation speed. The controller may subtract the reduced rotation speed from the current rotation speed of the cleaning component to obtain the reduced rotation speed of the cleaning component. The controller may specifically reduce the rotation speed of the cleaning component by reducing the rotation speed of the third driving component.
[0151] The controlling of the fuselage to perform the obstacle avoidance action may also include: controlling the cleaning component to retract inwardly. Avoiding collision between the cleaning component and the obstacle. Specifically, the controller may control the cleaning component to move to the retracted state, or may control the cleaning component to retract inwardly by a certain swing distance. The retracted swing distance may be preset. Alternatively, the controller may obtain the distance between the obstacle and the fuselage based on the obstacle information; and may determine the retracted swing distance based on the distance between the obstacle and the fuselage. The smaller the distance between the obstacle and the fuselage, the larger the retracted swing distance.
[0152] When the cleaning device performs edge cleaning on the first side obstacle, the cleaning component can be swung outward. The controller can identify the second side obstacle based on the obstacle information. The first side obstacle can be located on the left or right side of the direction of travel of the fuselage, and the second side obstacle can be located in front of the direction of travel of the fuselage. The controller can determine that it is necessary to control the fuselage to perform an obstacle avoidance action to avoid the second side obstacle based on the positional relationship between the first side obstacle and the second side obstacle. For example, the controller can determine that the first side obstacle and the second side obstacle are in contact, so that the cleaning device cannot pass between the first side obstacle and the second side obstacle, and thus it is necessary to control the fuselage to perform an obstacle avoidance action. For another example, the controller can determine that the first side obstacle and the second side obstacle are not in contact, but the distance between the first side obstacle and the second side obstacle is small, so that the cleaning device cannot pass between the first side obstacle and the second side obstacle, and thus it is necessary to control the fuselage to perform an obstacle avoidance action. Exemplarily, the first side obstacle can be a straight obstacle, such as a wall. The second side obstacle can be furniture such as tables and chairs, or shoes, toys, pets, etc. Wherein, the control of the fuselage to perform obstacle avoidance action may also include: controlling the cleaning component to move to a retracted state to provide space for the fuselage to turn; determining the rotation angle according to the orientation of the obstacle on the second side; and controlling the fuselage to rotate the rotation angle in a direction away from the obstacle on the first side to avoid the obstacle on the second side. The controller may control the cleaning component to swing outward during the movement of the fuselage. In this way, when the fuselage reaches the position of the obstacle on the second side, the cleaning component can be swung outward to the right position, thereby preventing the cleaning component from lagging behind in the outward swing. Wherein, please refer to Figure 8 For example, the controller may obtain the angle between the straight line formed by the second side obstacle and the fuselage and the first side obstacle contour boundary as the rotation angle. The magnitude of the rotation angle is related to the distance between the second side obstacle and the first side obstacle contour boundary. The greater the distance between the second side obstacle and the first side obstacle contour boundary, the greater the rotation angle.
[0153] Regarding controlling the cleaning component to move to the retracted state, at least the following two situations may be included. In one situation, the controller may obtain the distance between the fuselage and the obstacle on the second side according to the obstacle information; when the distance is less than or equal to the distance threshold, the moving speed of the fuselage may be controlled to be zero, and then the cleaning component may be controlled to move to the retracted state. In another situation, the controller may control the cleaning component to move to the retracted state while the fuselage is moving.
[0154] In an exemplary embodiment, the preset cleaning task may include a preset edge cleaning task. During the edge cleaning process, the controller may obtain obstacle information of the cleaning device in the direction of travel. The obstacle information may include point cloud data. The point cloud data is used to represent one or more obstacles. Each obstacle can be represented by one or more points. The controller may obtain the distance between the cleaning device body and the point in the point cloud data; it may determine whether the point cloud data contains one or more target points whose distance is less than or equal to a distance threshold; if so, it may be considered that the cleaning device meets the preset conditions and the movement of the body may be controlled. Specifically, the sensor (such as line laser detection) on the cleaning device may have errors, resulting in some discrete points in the point cloud data. The discrete points do not represent obstacles. In order to maintain continuity during edge cleaning, when the target point is included in the point cloud data, the controller may obtain the neighboring points of the target point. The neighboring points include points in the point cloud data whose distance from the target point is less than or equal to a certain threshold.
[0155] Exemplarily, the cleaning equipment needs to identify whether the target point represents an obstacle. For example, the target point and its neighboring points can be fitted. If the target point and its neighboring points can be fitted into a line segment or a curve, it is considered that the target point and its neighboring points form a dense point cloud, and the fuselage needs to perform obstacle avoidance action; conversely, if the target point and its neighboring points cannot be fitted into a line segment or a curve, it is considered that the target point and its neighboring points are discrete points, and the fuselage does not need to perform obstacle avoidance action.
[0156] For example, the number of neighboring points of the target point can be used to determine whether the target point is a discrete point or an obstacle (dense point cloud). Fig.10a and Fig.10b When the number of neighbor points is less than the number threshold, the controller may consider the target point as a discrete point and may maintain the current action of the fuselage. For example, the controller may maintain the fuselage to perform edge cleaning of obstacles without performing obstacle avoidance actions.
[0157] See also Fig.11a and Fig.11b When the number of neighbor points is greater than or equal to the number threshold, the controller may consider that the target point represents an obstacle, and may control the fuselage to perform an obstacle avoidance action. For example, the controller may control the cleaning component to retract inward, and / or reduce the rotation speed of the cleaning component. Of course, the controller may also control the fuselage to perform the following obstacle avoidance actions.
[0158] The controller can select a reference point on the obstacle represented by one or more target points; the edge route of the cleaning device can be planned according to the reference point; the cleaning device can be controlled to walk according to the edge route to perform edge cleaning. For example, the controller can obtain the tangent at the reference point as a reference straight line; the edge route can be determined according to the reference straight line. The edge route can include a straight line passing through the center point of the fuselage. The distance between the edge route and the reference straight line can be the radius of the cleaning device fuselage or other values. Among them, the reference point can include the vertex of the protrusion on the obstacle. Of course, the reference point can also include other points (such as target points). In the process of walking according to the edge route, the controller can detect the distance between the body of the cleaning device and the obstacle through a sensor (such as an edge sensor); according to the distance, the distance that the cleaning component is swung out can be controlled. In this way, the swing-out distance of the cleaning component can be adjusted in real time. To avoid scratches.
[0159] In an exemplary embodiment, the obstacles may include a first side obstacle and a second side obstacle according to the direction of travel of the cleaning device. The first side obstacle is located on the left or right side of the direction of travel. The second side obstacle is located on the front or rear side of the direction of travel. The first side obstacle and the second side obstacle may intersect. The angle formed by the intersection includes 30°, 60°, 90°, etc. In a specific implementation scenario, the first side obstacle includes a horizontal side obstacle, and the second side obstacle includes a vertical side obstacle. The angle formed by the intersection of the horizontal side obstacle and the vertical side obstacle is 90°. The vertical direction may include a direction perpendicular to the direction of travel of the cleaning device. The horizontal direction may include a direction parallel to the direction of travel of the cleaning device.
[0160] The cleaning device can perform edge cleaning on the first side obstacle and the second side obstacle. If, when cleaning the obstacle on one side (e.g., the first side obstacle), the obstacle on the other side (e.g., the second side obstacle) may become an obstacle to the cleaning device in the direction of travel, the edge cleaning of the first side obstacle and the second side obstacle can be called inner corner edge cleaning. If, when cleaning the obstacle on one side (e.g., the first side obstacle), the obstacle on the other side (e.g., the second side obstacle) will not become an obstacle to the cleaning device in the direction of travel, the edge cleaning of the first side obstacle and the second side obstacle can be called outer corner edge cleaning. For example, the first side obstacle includes a horizontal side obstacle, and the second side obstacle includes a vertical side obstacle. Then the inner corner cleaning may include inner right angle edge cleaning, and the outer corner cleaning may include outer right angle edge cleaning.
[0161] In an exemplary embodiment, when the fuselage is cleaning along the contour of the first side obstacle, the controller can obtain a first distance between the fuselage and the second side obstacle; and can determine whether the cleaning device meets the preset obstacle avoidance condition based on the first distance. Specifically, it can be determined whether the first distance is less than or equal to a first preset threshold. If so, the controller can consider that the cleaning device is close to the angle between the first side obstacle and the second side obstacle, and meets the obstacle avoidance condition.
[0162] When the cleaning device meets the preset obstacle avoidance condition, the controller can control the travel speed of the fuselage to be zero. Specifically, the controller can reduce the travel speed of the cleaning device. By reducing the travel speed, the inertia of the cleaning device can be reduced. After reducing the travel speed, the controller can continue to obtain the first distance between the fuselage of the cleaning device and the second side obstacle; it can be determined whether the obtained first distance is less than or equal to the second preset threshold; if so, it can be considered that the cleaning device has reached the angle position between the first side obstacle and the second side obstacle, and the travel speed can be reduced to zero.
[0163] See also Fig.12 After the travel speed is reduced to zero, the controller can control the cleaning component to retract inward; the cleaning device can be controlled to rotate in the direction close to the obstacle on the first side so that the travel direction of the body is parallel to the obstacle on the second side; after the travel direction is parallel to the obstacle on the second side, the cleaning component can be controlled to swing outward; under the condition that the cleaning component is swung outward, the body can be controlled to clean the obstacle on the second side along the edge at the set travel speed. In this way, when cleaning along the edge of the inner corner, the obstacle avoidance action of the cleaning device is reduced by controlling the retraction of the cleaning component.
[0164] The rotation in the direction approaching the first side obstacle may include: a side provided with a cleaning component (a cleaning component for cleaning along the edge) rotates in the direction approaching the first side obstacle. The rotation may be performed with the center point of the fuselage as the rotation center, and of course, it may also be performed with other points of the fuselage as the rotation center. Controlling the cleaning component to swing outward may include: controlling the cleaning component to move to an outward swing state, and controlling the cleaning component to swing outward a certain swing distance. The swinging distance may be preset. Alternatively, the controller may calculate the distance between the second side obstacle and the fuselage; and the swinging distance may be determined based on the distance between the second side obstacle and the fuselage. The smaller the distance between the second side obstacle and the fuselage, the larger the swinging distance.
[0165] Of course, after the travel speed drops to zero, the controller can control the side of the fuselage with the cleaning component to rotate in the direction away from the first side obstacle, so that the cleaning component deviates from the first side obstacle; the side of the fuselage with the cleaning component can be controlled to rotate in the direction close to the second side obstacle, so that the travel direction of the fuselage is parallel to the second side obstacle; the fuselage can be controlled to perform edge cleaning along the contour of the second side obstacle. In this way, when cleaning the inner corners and edges, the cleaning component can be kept swinging outward. On the one hand, the noise generated by the swinging of the cleaning component can be reduced, and on the other hand, the increase in the number of swings can be avoided, thereby affecting the service life of the cleaning equipment. The following introduces several specific implementations.
[0166] Implementation method 1
[0167] See also Fig.13 . After reducing the travel speed to zero, the controller can control the cleaning device to rotate to a set angle in the direction away from the first side obstacle; after rotating to the set angle, the cleaning device can be controlled to retreat until the first distance between the body of the cleaning device and the first side obstacle meets the rotation condition. In this way, the distance between the cleaning device and the first side obstacle and the second side obstacle can be increased at the same time, so that the cleaning device has enough space to rotate. After the rotation condition is met, the controller can control the cleaning device to rotate in the direction close to the first side obstacle until the travel direction of the cleaning device is parallel to the second side obstacle. The controller can control the cleaning device to retreat until the body of the cleaning device is close to the first side obstacle to minimize the missed cleaning range at the angle position. After approaching the first side obstacle, the controller can control the cleaning device to clean the second side obstacle along the edge at the set travel speed. In this way, when cleaning the inner corner and the edge, the cleaning component can be kept swinging outward. On the one hand, the noise generated by the swinging of the cleaning component can be reduced, and on the other hand, the service life of the cleaning device can be avoided from being affected by the increase in the number of swings.
[0168] The rotation in the direction away from the first side obstacle may include: the side provided with the cleaning component (cleaning component for edge cleaning) rotates in the direction away from the first side obstacle. The rotation in the direction close to the first side obstacle may include: the side provided with the cleaning component rotates in the direction close to the first side obstacle. The rotation may be performed with the center point of the fuselage as the rotation center, and of course it may also be performed with other points of the fuselage as the rotation center. The set angle may include 90°, 60°, 100°, etc. For example, in the scenario of internal right-angle cleaning, the set angle may be any angle selected from [0, 90°]. The rotation conditions may include: the distance to the obstacle is greater than or equal to the sum of R and H, R represents the radius of the cleaning device body, please refer to Fig.33, H represents the distance that the cleaning component exceeds the maximum width of the edge of the fuselage when it is in an outward swing state. When this distance condition is met, the cleaning component of the cleaning device will not scratch the first side obstacle or the second side obstacle when rotating. The distance to the obstacle is greater than or equal to the sum of R and H, which can ensure that the cleaning device will not scratch the first side obstacle when rotating. The body of the cleaning device close to the first side obstacle may include: the first distance between the fuselage and the first side obstacle is zero, and the first distance between the fuselage and the first side obstacle is a smaller value greater than zero. Among them, the distance condition may include the distance from the center point of the fuselage to the obstacle, for example, the closest distance from the center point of the fuselage to the outline of the obstacle.
[0169] Implementation method 2
[0170] See also Fig.14 . After reducing the travel speed to zero, the controller can control the cleaning device to retreat until the second distance between the body of the cleaning device and the second side obstacle meets the rotation condition; after meeting the rotation condition, the cleaning device can be controlled to rotate a set angle in the direction away from the first side obstacle until the first distance between the body of the cleaning device and the first side obstacle meets the rotation condition; after meeting the rotation condition, the cleaning device can be controlled to continue rotating in the same rotation direction until the travel direction of the cleaning device is parallel to the second side obstacle. The controller can control the cleaning device to retreat until the body of the cleaning device is close to the first side obstacle to minimize the missed cleaning range at the angle position. After approaching the first side obstacle, the controller can control the cleaning device to clean the second side obstacle along the edge. In this way, when cleaning the inner corners and edges, the cleaning components can be kept swinging outward. On the one hand, the noise generated by the swinging of the cleaning components can be reduced, and on the other hand, the service life of the cleaning device can be avoided from being affected by the increase in the number of swings.
[0171] The rotation in the direction away from the obstacle on the first side may include: a side provided with a cleaning component (a cleaning component for cleaning along the edge) rotates in the direction away from the obstacle on the first side. The rotation may be performed with the center point of the fuselage as the rotation center, and of course it may also be performed with other points of the fuselage as the rotation center. The set angle may include 100°, 180°, etc. For example, in the scenario of internal right-angle cleaning, the set angle may be 180°, and the angle at which the cleaning device continues to rotate may be 90°. The rotation conditions may include: the distance from the obstacle is greater than or equal to the sum of R and H, R represents the radius of the cleaning device body, and H represents the distance beyond the maximum width of the edge of the body when the cleaning component is in an outward swing state, please refer to Fig.33When the distance condition is met, the cleaning component of the cleaning device will not scratch the first side obstacle or the second side obstacle when rotating. The fuselage being close to the first side obstacle may include: the first distance between the fuselage and the first side obstacle is zero, and the first distance between the fuselage and the first side obstacle is a certain value greater than zero.
[0172] Implementation method three
[0173] Please refer to 30a~ Fig.30j . After reducing the travel speed to zero, the controller can control the action of the cleaning device according to the first action strategy to make the cleaning component deviate from the second side obstacle. Specifically, the controller can obtain the second distance between the cleaning device and the second side obstacle according to the obstacle information; the cleaning device can be controlled to rotate in the direction away from the second side obstacle, and at the same time control the cleaning device to move in the direction away from the first side obstacle, until the first distance is greater than or equal to the third preset threshold and the second distance is greater than or equal to the fourth preset threshold; the action of the cleaning device can be controlled according to the second action strategy to make the cleaning component bypass the first side obstacle. Specifically, the controller can obtain the third distance between the cleaning device and the first side obstacle according to the obstacle information; the cleaning device can be controlled to rotate in the direction close to the first side obstacle, and at the same time control the cleaning device to move in the direction close to the first side obstacle, until the first distance is less than or equal to the fifth preset threshold and the third distance is less than or equal to the sixth preset threshold; the action of the cleaning device can be controlled according to the third action strategy to perform edge cleaning of the second side obstacle. Specifically, the controller can control the cleaning device to move in the direction close to the obstacle on the first side until the third distance is less than or equal to the seventh preset threshold value, and then control the cleaning device to clean the obstacle on the second side along the edge according to the preset travel speed. In this way, when cleaning along the edge of the inner corner, the cleaning component can be kept swinging outward. On the one hand, the noise generated by the swinging of the cleaning component can be reduced, and on the other hand, the increase in the number of swings can also avoid affecting the service life of the cleaning device. Among them, the first action strategy, the second action strategy and the third action strategy can be specifically explained with reference to the subsequent embodiments, and will not be repeated here.
[0174] In an exemplary embodiment, under the condition that the cleaning component is swung outward, the controller can control the cleaning device to move forward to clean the first side obstacle along the edge. When the body is cleaning along the contour of the first side obstacle, the controller can obtain obstacle information of the cleaning device in the moving direction; according to the obstacle information, it can be determined whether the cleaning device has reached the decision position; after reaching the decision position, under the condition that the cleaning component is kept swung outward, the body can be controlled to rotate so that the moving direction of the body is parallel to the second side obstacle. In order to control the body to clean along the contour of the second side obstacle.
[0175] The cleaning component swinging outward may include: the cleaning component is in an outward swinging state, and the cleaning component swings outward a certain swinging distance. When the cleaning component is swung outward, the cleaning component may exceed the maximum width position of the edge of the fuselage, or may not exceed the maximum width position of the edge of the fuselage.
[0176] See also Fig.15a When the cleaning component does not exceed the maximum width position of the edge of the body, if the center point of the cleaning component is located inside the cleaning device, the decision position may include a position where the entire body reaches or exceeds the boundary of the second side obstacle contour. After reaching the decision position, the controller may control the cleaning device to rotate. Alternatively, refer to Fig.15b When the cleaning component does not exceed the maximum width position of the edge of the fuselage, if the center point of the cleaning component is located outside the cleaning device, the decision position may include a position where the center point of the cleaning component reaches or exceeds the boundary of the second side obstacle contour. After reaching the decision position, the controller may control the cleaning device to rotate.
[0177] When the cleaning component exceeds the maximum width position of the edge of the fuselage, if the center point of the cleaning component is located inside the cleaning device, the decision position may include the position where the fuselage as a whole reaches or exceeds the boundary of the second side obstacle contour. After reaching the decision position, the controller may control the cleaning device to continue to move forward a set distance; after moving the set distance, the cleaning device is controlled to rotate. Alternatively, when the cleaning component exceeds the maximum width position of the edge of the fuselage, if the center point of the cleaning component is located outside the cleaning device, the decision position may include the position where the center point of the cleaning component reaches or exceeds the boundary of the second side obstacle contour. After reaching the decision position, the controller may control the cleaning device to continue to move forward a set distance; after moving the set distance, the cleaning device is controlled to rotate. The set distance may include the distance that exceeds the maximum width of the edge of the fuselage when the cleaning component is in an outward swing state. Of course, the set distance may also include other distances greater than the distance. By setting the distance, space can be provided for the rotation of the cleaning device when the cleaning component is in an outward swing state.
[0178] The control of the cleaning device to rotate may include: a side of the body provided with a cleaning component (a cleaning component for edge cleaning) rotates in a direction close to the second side obstacle until the direction of travel of the body is parallel to the second side obstacle. The rotation may be performed with the center point of the body as the rotation center, or may be performed with other points of the body as the rotation center. After the rotation, the controller may control the cleaning device to perform edge cleaning on the second side obstacle.
[0179] The decision position may be a position for controlling the cleaning device to rotate. Depending on the shape of the cleaning component, the center point of the cleaning component may be different. For example, the shape of the cleaning component may be circular, and the center point may include the center of the circle. For another example, the shape of the cleaning component may be square, and the center point may include the center point of the square.
[0180] It should be noted that a corresponding coordinate system can be constructed based on the map of the working area. Then the second side obstacle contour boundary can have coordinate parameters in the coordinate system. The body of the cleaning device can also have coordinate parameters in the coordinate system. Therefore, it can be judged whether the entire body reaches or exceeds the second side obstacle contour boundary based on the coordinate parameters. The center point of the cleaning component can also have coordinate parameters in the coordinate system. Therefore, it can be judged whether the center point of the cleaning component reaches or exceeds the second side obstacle contour boundary based on the coordinate parameters. Alternatively, the distance between the fuselage and the second side obstacle can be obtained; based on the distance between the fuselage and the second side obstacle, it can be judged whether the entire body reaches or exceeds the second side obstacle contour boundary. The distance between the center point of the cleaning component and the second side obstacle can be calculated based on the distance between the fuselage and the second side obstacle, and the swing-out distance of the cleaning component; based on the distance between the center point of the cleaning component and the second side obstacle, it can be judged whether the center point of the cleaning component reaches or exceeds the second side obstacle contour boundary.
[0181] This embodiment can keep the cleaning component swinging outward when cleaning the outer corner edge, which can reduce the noise generated by the swing of the cleaning component and avoid the increase of the number of swings, thereby reducing the service life of the cleaning device.
[0182] In an exemplary embodiment, during the execution of a preset cleaning task, the controller may control the cleaning component to swing outward. The obstacle represented by the acquired obstacle information may include a second side obstacle, which is located at the front or rear side of the direction of travel of the fuselage. The preset condition may include an obstacle avoidance condition. The obstacle avoidance condition may include an obstacle distance condition and an obstacle type condition. The controller may acquire the type of the second side obstacle and the second distance between the second side obstacle and the fuselage according to the obstacle information; determine whether the cleaning device meets the obstacle avoidance condition according to the type and the second distance; when the second side obstacle is an obstacle of a preset type and the second distance between the second side obstacle and the fuselage is less than or equal to the distance threshold, it can be considered that the cleaning device has reached a relatively low obstacle (such as a carpet) and can perform an obstacle crossing action. Specifically, the controller may control the cleaning component to move to a retracted state, and then control the cleaning component to lift so that the fuselage can cross the second side obstacle. After crossing the second side obstacle, the controller may hold the cleaning component in a retracted state, or may also control the cleaning component to move to an outward swing state.
[0183] In one exemplary embodiment, a cleaning control method of a cleaning device is provided.
[0184] See also Fig.16 , the control method may include the following steps.
[0185] Step S161: when the cleaning component is in the retracted state, controlling the body to clean along a first cleaning route, the first cleaning route is parallel to the second cleaning route and intersects with the obstacle;
[0186] Step S162: When the distance between the fuselage and the obstacle meets the rotation condition, the fuselage is controlled to rotate so that the moving direction of the fuselage is parallel to the second cleaning route;
[0187] Step S163: when the cleaning component is in the retracted state, controlling the body to clean along a second cleaning route.
[0188] The cleaning device can use a bow-shaped cleaning method to clean the working area. The cleaning efficiency of the cleaning device can be improved by using the bow-shaped cleaning method. The first cleaning route and the second cleaning route can be two adjacent long sides when cleaning in a bow-shaped manner. The first cleaning route and the second cleaning route can be parallel. The first cleaning route and the second cleaning route can be straight lines. The distance between the first cleaning route and the second cleaning route can be determined according to the size of the cleaning component. For example, see Figure 1. The cleaning device may include two cleaning components, and the distance between the first cleaning route and the second cleaning route may be less than or equal to the sum of the sizes of the two cleaning components. Specifically, for example, the shape of the cleaning component may be circular, and the distance between the first cleaning route and the second cleaning route may be less than or equal to 4 times the radius of the cleaning component. In actual applications, the distance between the first cleaning route and the second cleaning route may be 3 times the radius, or, to ensure that the cleaning device has a better cleaning effect, the distance between the first cleaning route and the second cleaning route may also be 2 times the radius.
[0189] Please continue reading Figure 1 . The cleaning device may include two cleaning components. One cleaning component of the cleaning device may be configured to be able to swing, and the other cleaning component may be configured not to swing. If one of the cleaning components is swung outward, the two cleaning components cannot be closely connected, thereby creating a gap and causing omissions during cleaning. To this end, when the body of the cleaning device is cleaning along the first cleaning route and the second cleaning route, the controller may control the cleaning device to be in a retracted state so that the two cleaning components are closely connected to avoid creating a gap.
[0190] When the body is cleaning along the first cleaning route, the controller can obtain obstacle information in the direction of travel of the cleaning device; and can determine the positional relationship between the obstacle and the cleaning route based on the obstacle information. The positional relationship may include: the obstacle intersects the cleaning route. For example, the obstacle may be perpendicular to the cleaning route. The positional relationship may also include: the obstacle is parallel to the cleaning route.
[0191] When obstacles intersect the cleaning route, the following cleaning control methods can be adopted.
[0192] When the fuselage is cleaning along the first cleaning route, the controller may obtain obstacle information in the direction of travel of the cleaning device; and may obtain the distance between the fuselage and the obstacle in front of the direction of travel according to the obstacle information. When the distance between the fuselage and the obstacle meets the rotation condition, the controller may control the fuselage to rotate so that the direction of travel of the fuselage is parallel to the obstacle. The rotation condition may include: the distance between the fuselage and the obstacle is less than or equal to a distance threshold.
[0193] See also Fig.17. The cleaning equipment can rotate in a right-angle turn. Specifically, when the distance between the fuselage and the obstacle meets the rotation condition, the controller can reduce the travel speed to zero; then the fuselage can be controlled to rotate so that the travel direction of the fuselage is parallel to the obstacle; under the condition that the cleaning component is in a retracted state, the fuselage can be controlled to move forward until the fuselage reaches the second cleaning route; after the fuselage reaches the second cleaning route, the travel speed can be reduced to zero; then the fuselage can be controlled to rotate so that the travel direction of the fuselage is parallel to the second cleaning route; the fuselage can be controlled to clean along the second cleaning route. In this way, during the right-angle turn, the cleaning component is in a retracted state. On the one hand, the noise generated by the swinging of the cleaning component can be reduced, and on the other hand, the increase in the number of swings can be avoided, thereby affecting the service life of the cleaning equipment. Alternatively, when the distance between the fuselage and the obstacle meets the rotation condition, the controller can reduce the travel speed to zero; then the fuselage can be controlled to rotate so that the travel direction of the fuselage is parallel to the obstacle; the cleaning component can be controlled to move to an outward swing state; when the cleaning component is in the outward swing state, the fuselage can be controlled to move forward to clean the obstacle along the edge until the fuselage reaches the second cleaning route; after the fuselage reaches the second cleaning route, the travel speed can be reduced to zero; then the cleaning component can be moved to a retracted state; the fuselage can be controlled to rotate so that the travel direction of the fuselage is parallel to the second cleaning route; the fuselage can be controlled to clean along the second cleaning route. In this way, the obstacle can be cleaned along the edge during the turning process.
[0194] The body reaching the second cleaning route may include: the center point of the body reaching the second cleaning route. The distance threshold may include the radius of the cleaning device body or other values greater than the radius.
[0195] Alternatively, see Fig.18 The cleaning device can also rotate in an arc-shaped manner. Specifically, when the distance between the fuselage and the obstacle meets the rotation condition, the controller can control the rotation of the fuselage according to the turning radius while keeping the fuselage moving, so that the direction of the fuselage is parallel to the second cleaning route, and the fuselage reaches the second cleaning route; the fuselage can be controlled to clean along the second cleaning route. In this way, there is no need to set the walking speed to zero, which can improve the walking efficiency.
[0196] Specifically, the fuselage can be controlled to rotate according to the turning radius when the cleaning component is in the retracted state, so that the direction of the fuselage is parallel to the second cleaning route, and the fuselage reaches the second cleaning route. In this way, during the arc turning process, the cleaning component is in a retracted state. On the one hand, the noise generated by the swinging of the cleaning component can be reduced, and on the other hand, the increase in the number of swings can be avoided, thereby affecting the service life of the cleaning equipment. Alternatively, when the distance between the fuselage and the obstacle meets the rotation condition, the controller can control the cleaning component to move to the outward swing state; when the cleaning component is in the outward swing state, the fuselage can be controlled to rotate according to the turning radius, so that the direction of the fuselage is parallel to the second cleaning route, and the fuselage reaches the second cleaning route; after the fuselage reaches the second cleaning route, the cleaning component can be controlled to move to the retracted state; the fuselage can be controlled to clean along the second cleaning route. In this way, obstacles can be cleaned along the edge during the turning process.
[0197] Among them, the fuselage reaching the second cleaning route may include: the center point of the fuselage reaching the second cleaning route. The turning radius may be half the distance between the first cleaning route and the second cleaning route. Distance threshold T1≥ turning radius R1+radius R2 corresponding to the maximum width position of the fuselage+H. The H may represent the distance that the cleaning component exceeds the maximum width of the fuselage edge. In the retracted state, the cleaning component does not exceed the maximum width position of the fuselage edge, then H=0. In the outward swing state, the cleaning component may exceed the maximum width position of the fuselage edge, then H>0. Optionally, the distance threshold T1≤turning radius R1+radius R2 corresponding to the maximum width position of the fuselage+diameter of the cleaning component, at which time the cleaning device does not re-clean the edge cleaning area during the steering process.
[0198] It should be noted that during the process of rotating in a straight line or an arc, if the cleaning component always remains in a retracted state, obstacles on the boundary of the working area may be missed along the edge. For this reason, after the bow-shaped cleaning of the working area is completed, the controller can control the cleaning device to clean the obstacles on the boundary of the working area along the edge. Of course, the controller can also control the cleaning device to first clean the obstacles on the boundary of the working area along the edge, and then clean the working area in a bow shape. During the process of rotating in a straight line or an arc, if the cleaning component can be moved to an outward swing state, there is no need to clean the obstacles along the edge.
[0199] When the obstacle is parallel to the cleaning route, the following cleaning control methods can be adopted.
[0200] At this time, when the cleaning device moves along the first cleaning route, the obstacle may be located on the side of the cleaning device. Fig.19, it is necessary to avoid collision between the cleaning equipment and obstacles. Exemplarily, when the cleaning equipment moves along the first route or the last route of the bow-shaped route, the cleaning route of the cleaning equipment is parallel to the obstacle. Taking the first cleaning route as an example, which can be the first route or the last route, at this time, when the cleaning equipment moves along the first cleaning route, the distance T2 between the center point of the cleaning equipment and the obstacle in the width direction ≥ the radius R2 corresponding to the maximum width position of the fuselage + the fuselage fine-tuning distance X + H. The H can represent the distance that the cleaning component exceeds the maximum width of the fuselage edge. In the retracted state, the cleaning component does not exceed the maximum width position of the fuselage edge, then H=0. In the outward swing state, the cleaning component can exceed the maximum width position of the fuselage edge, then H>0. Among them, 0=<fuselage fine-tuning distance X<=the diameter of the cleaning component. By setting the fuselage fine-tuning distance, it is avoided that the cleaning equipment rubs against obstacles when walking, causing the cleaning component to separate from the fuselage.
[0201] Among them, when the cleaning device is parallel to the obstacle and the cleaning device moves along the first cleaning route, the cleaning component can be in an outward swing state or an inward retracted state during the walking process of the cleaning device. When the cleaning component is in the outward swing state, the cleaning component can simultaneously clean the obstacle along the edge, that is, it can clean along the edge when the first route or the last route is moved in a bow shape; when the cleaning component is in the inward retracted state, the cleaning device does not clean the obstacle along the edge, that is, it does not need to clean along the edge when the first route or the last route is moved in a bow shape.
[0202] The specific implementation of the control method in the embodiment of this specification is described in detail below with several examples.
[0203] Embodiment 1
[0204] The present specification provides a method for controlling the movement of a cleaning device. Fig. 20 As shown, the process of the method may include the following steps:
[0205] Step S1402, in response to the obtained rotation instruction, the rotating part of the cleaning device is driven to rotate by the rotating driving part of the cleaning device to control the swinging part of the cleaning device, wherein one end of the swinging part is connected to the cleaning part, and during the swinging of the swinging part, the cleaning part switches between an outward swing state and a retracted state, the outward swing state is a state in which at least a part of the cleaning part is swung toward the outside of the cleaning device, and the retracted state is a state in which at least a part of the cleaning part is retracted toward the inside of the cleaning device.
[0206] The mobile control method of the cleaning device in this embodiment can be applied to the scene where the cleaning device works in the target area. The above-mentioned target area can be an indoor area, for example, a user's family room, an office, a factory workshop, etc. A cleaning component can be installed on the cleaning device for cleaning the target area. The cleaning component may include but is not limited to at least one of the following: a roller brush (also called a floor brush), a mop, etc., and its shape may be round, square, etc., and the cleaning member may be a rotatable structure.
[0207] Conventional cleaning parts usually do not extend beyond the edge of the cleaning device. Even if the cleaning device reaches the edge of a wall corner, table leg, etc., its cleaning parts cannot clean the edge area well, resulting in poor mopping effect along the edge.
[0208] In order to improve the efficiency of edge cleaning, in this embodiment, the cleaning component can be set as a component that can partially exceed the edge of the body of the cleaning device. At the same time, considering that the cleaning component partially exceeds the edge of the body and may hinder the movement of the cleaning device, the cleaning component can be switched between an outward swing state and an inward retracted state. Here, the outward swing state can be a state in which at least a part of the cleaning component is swung toward the outside of the cleaning device, and the inward retracted state can be a state in which at least a part of the cleaning component is retracted toward the inside of the cleaning device.
[0209] In this embodiment, a rotation drive component, a rotating component, a swing component and a cleaning component can be arranged inside the cleaning device. One end of the swing component can be connected to the cleaning component, and the other end can be connected to the rotating module, and the rotation of the rotating module can be driven by the rotation drive component.
[0210] When it is determined that the cleaning component of the cleaning device is required to partially extend beyond the edge of the body or not extend beyond the edge of the body, a rotation instruction can be issued to the rotation drive component. In this embodiment, in response to the rotation instruction obtained, the rotation drive component of the cleaning device can drive the rotation component of the cleaning device to rotate, so as to control the swing component of the cleaning device to swing, and during the swinging process of the swing component, the cleaning component switches between the outward swing state and the retracted state.
[0211] Step S1404: The detection component on the rotating driving component detects the detection trigger element on the rotating component to determine the operating state of the cleaning component, wherein the detection trigger element is used to control the position to which the rotating component is allowed to rotate.
[0212] In order to avoid excessive swinging of the swinging member due to excessive rotation of the rotating member, which in turn causes the cleaning member to swing outward or retract excessively, thereby affecting the cleaning efficiency, in this embodiment, the detection trigger element on the rotating member can be detected by the detection member on the rotating drive member to determine the operating state of the cleaning member. Here, the detection trigger element can be used to control the position to which the rotating member is allowed to rotate. The operating state can be used to indicate the current state of the cleaning member, including the retracted state and the swing out state.
[0213] Optionally, the detection component on the rotating drive component may be fixed, and the detection trigger element on the rotating component may be fixed in position relative to the rotating component. During the rotation of the rotating component, the detection trigger element may rotate along with the rotating component.
[0214] Optionally, the detection component on the rotating drive component detects the detection trigger element on the rotating component, which may refer to the detection component detecting whether the detection trigger element appears. In the case of normal rotation, the detection trigger element can rotate from a position farther away from the detection component to a position closer to the detection component. The detection component can be a sensor, which determines whether the detection trigger element is detected by sensing the touch of the detection trigger element. The detection component can also be a signal receiver, which determines whether the detection trigger element is detected by receiving the signal sent by the detection trigger element and the signal strength. The detection component can also be other types of components, which are not limited in this embodiment.
[0215] Optionally, after the detection component detects that the detection trigger element has rotated to a certain position, a rotation instruction can be issued to control the rotating drive component to stop driving the rotating component to rotate, thereby achieving the maximum range of controlling the inward or outward swing of the cleaning component to avoid affecting the cleaning efficiency of the cleaning equipment.
[0216] Step S1406: When it is determined that the operating state of the cleaning component is abnormal, the cleaning device is controlled to perform a specified operation to restore the operating state of the cleaning component to normal.
[0217] According to the detection result of the detection trigger element by the detection component, it can be determined whether the operating state of the cleaning component is in the retracted or outward swing state. In addition, it can also be determined whether the operating state of the cleaning component is normal. For example, after the rotating drive component has been working for a period of time, the detection component still fails to detect the detection trigger element, or detects that the distance between the detection trigger element and the detection component is still far, it can be determined that the operating state of the cleaning component is abnormal. In addition, the above abnormality may be caused by the rotation of the rotating parts, swinging parts, etc. of the cleaning equipment being blocked or stuck, or the cleaning parts being blocked by obstacles and unable to move.
[0218] In this embodiment, when it is determined that the operating state of the cleaning component is abnormal, the cleaning device may be controlled to perform a designated operation to restore the operating state of the cleaning component to normal.
[0219] Optionally, the above-mentioned designated operation may include, but is not limited to, controlling the rotating driving component to drive the rotating component to rotate in a direction opposite to the previous direction, or controlling the body of the cleaning device to move in other directions, etc.
[0220] Through the above steps S1402 to S1406, in response to the acquired rotation instruction, the rotating part of the cleaning device is driven to rotate by the rotating driving part of the cleaning device to control the swinging part of the cleaning device to swing, wherein one end of the swinging part is connected to the cleaning part, and during the swinging of the swinging part, the cleaning part switches between an outward swing state and an inward retracted state, the outward swing state is a state in which at least a part of the cleaning part is swung toward the outside of the cleaning device, and the inward retracted state is a state in which at least a part of the cleaning part is retracted toward the inside of the cleaning device; the detection trigger element on the rotating part is detected by the detection part on the rotating driving part to determine the operating state of the cleaning part, wherein the detection trigger element is used to control the position to which the rotating part is allowed to rotate; when it is determined that the operating state of the cleaning part is abnormal, the cleaning device is controlled to perform a specified operation to restore the operating state of the cleaning part to normal, thereby solving the problem of low accuracy of state judgment in the prior art of judging the operating state of the cleaning device based on the residence time, and improving the accuracy of state judgment.
[0221] In an exemplary embodiment, the detection trigger element on the rotating component is detected by the detection component on the rotating driving component to determine the operating state of the cleaning component, including:
[0222] S11, when a first detection trigger element on the rotating component is detected by a first detection component on the rotating driving component, determining that the rotating component is rotated to a first preset position along a first rotation direction, wherein, in the first preset position, the cleaning component is in an outward swing state and is outwardly swung to the outermost position allowed to be outwardly swung;
[0223] S12, when the second detection trigger element on the rotating component is detected by the second detection component on the rotating driving component, it is determined that the rotating component rotates to a second preset position along the second rotation direction, wherein, in the second preset position, the cleaning component is in a retracted state and retracted to the innermost position allowed to be retracted.
[0224] In order to facilitate the detection of the rotation trigger element by the detection component, in this embodiment, the detection component may include a first detection component and a second detection component, and the detection trigger element may include a first detection trigger element and a second detection trigger element. Correspondingly, the first detection component may be used to detect the first detection trigger element, and the second detection component may be used to detect the second detection trigger component.
[0225] For example, Fig.21 As shown, the rotating component 1 can be connected to the swinging component 2 through the rotation center 6, the first detection component 4 and the second detection component 5 can be installed on the rotation driving component 3, and the rotating component 1 can have a first rotation trigger element 7 and a second rotation trigger element 8 (such as Fig. 22 shown).
[0226] In this embodiment, when the first detection trigger element on the rotating component is detected by the first detection component on the rotating drive component, it can be determined that the rotating component rotates to the first preset position along the first rotation direction. When the second detection trigger element on the rotating component is detected by the second detection component on the rotating drive component, it is determined that the rotating component rotates to the second preset position along the second rotation direction. Here, in the first preset position, the cleaning component is in an outward swing state and is swung outward to the outermost position allowed to be swung outward. In the second preset position, the cleaning component is in a retracted state and is retracted to the innermost position allowed to be retracted.
[0227] The first rotation direction may be as follows: Fig.21 The second rotation direction may be as shown in the counterclockwise direction. Fig.21 The outermost position and the innermost position may be positions limited by the first preset position and the second preset position, respectively. It should be noted that the cleaning component may swing in an arc. The first rotation direction and the second rotation direction may be the rotation direction when the arc is swung. Of course, in this embodiment and other embodiments in this specification, in addition to the arc swing, the cleaning component may also swing in a straight line.
[0228] For example, Fig. 22 As shown, the second rotation trigger element rotates to a position adjacent to the second detection component, that is, the second preset position, and the cleaning component is in a retracted state and retracted to the innermost position allowed to be retracted. Fig. 22 As shown, the first rotation trigger element rotates to a position adjacent to the first detection component, that is, the first preset position, and the cleaning component is in an outward swing state and is swung outward to the outermost position allowed.
[0229] Through this embodiment, the operating state of the cleaning component is determined by the positions to which the two detection trigger elements are rotated detected by the two detection components, which can improve the efficiency of limiting the moving range of the cleaning component and further improve the cleaning efficiency of the cleaning device.
[0230] For example, Fig.21 and Fig. 22 As shown, the rotating drive component 3 is connected to the rotating component 1 through gears, and a first detection component 4 and a second detection component 5 are respectively provided on both sides of the rotating drive component. Both ends of the gear of the rotating component 1 are respectively provided with a first rotating trigger element 7 and a second rotating trigger element 8 which are more protruding than other gears.
[0231] In an exemplary embodiment, after determining that the rotating component rotates to the first preset position along the first rotation direction, the method further includes:
[0232] S21, sending an outward swing-in position instruction to the rotation driving component through the first detection component to instruct the rotation driving component to stop driving the rotation component to continue rotating along the first rotation direction.
[0233] Optionally, the above-mentioned outward swing-in position instruction can be sent directly from the first detection component to the rotating drive component, or the first detection component can feed back the detection result to the platform or cleaning equipment, and then the platform or cleaning equipment sends it to the rotating drive component. This embodiment does not limit this.
[0234] Through this embodiment, the first detection component sends an outward swing-in position instruction to the rotation driving component to stop the rotation of the rotation component, which can improve the efficiency of stopping the rotation of the rotation component and avoid the cleaning component from moving too far.
[0235] In an exemplary embodiment, after determining that the rotating component rotates to the first preset position along the first rotation direction, the method further includes:
[0236] S31, in response to the acquired first state switching instruction, driving the rotating component to rotate along the second rotation direction through the rotating driving component, so as to control the working state of the cleaning component to switch from the outward swing state to the inward retracted state.
[0237] After determining that the rotating component rotates to the first preset position along the first rotation direction, when the cleaning component needs to be switched to the retracted state, the cleaning component can be controlled to switch from the outward swing state to the retracted state by sending a first state switching instruction.
[0238] Optionally, the first state switching instruction may be sent to the rotating drive component by the cleaning device, or may be sent to the rotating drive component via the platform or the client of the cleaning device, and this embodiment does not limit this. In addition, the first state switching instruction may be automatically generated by the cleaning device based on information about the current environment combined with the position and state of the cleaning device (e.g., the cleaning device is not in an area that requires edge cleaning, the cleaning work is completed, or there is an obstacle that requires the cleaning component to retract to avoid it, etc.), or it may be issued by the user of the cleaning device through the client.
[0239] In this embodiment, in response to the acquired first state switching instruction, the rotating component can be driven by the rotating driving component to rotate along the second rotation direction to control the working state of the cleaning component to switch from the outward swing state to the inward retracted state.
[0240] Through this embodiment, the switching of the cleaning component from swinging outward to retracting inward is triggered according to the state switching instruction, so that the efficiency of the switching of the working state of the cleaning component can be improved, thereby improving the flexibility of the cleaning device.
[0241] In an exemplary embodiment, after determining that the rotating component rotates to the second preset position along the second rotation direction, the method further includes:
[0242] S41, sending a retracting instruction to the rotation driving component through the second detection component to instruct the rotation driving component to stop driving the rotation component to continue rotating along the second rotation direction.
[0243] The sending method of the above-mentioned retracted-into-position instruction may be similar to the description of the above-mentioned swing-outto-position instruction, and will not be elaborated in this embodiment.
[0244] According to this embodiment, the second detecting component sends a retracting instruction to the rotating driving component to stop the rotation of the rotating component, thereby improving the efficiency of stopping the rotation of the rotating component and avoiding an excessively large movement range of the cleaning component.
[0245] In an exemplary embodiment, after determining that the rotating component rotates to the second preset position along the second rotation direction, the method further includes:
[0246] S51, in response to the acquired second state switching instruction, driving the rotating component to rotate along the first rotation direction through the rotating driving component, so as to control the working state of the cleaning component to switch from the retracted state to the outward swing state.
[0247] After determining that the rotating component rotates to the second preset position along the second rotation direction, when the cleaning component needs to be switched to the outward swing state, the cleaning component can be controlled to switch from the retracted state to the outward swing state by sending a second state switching instruction.
[0248] The second state switching instruction may be similar to the description of the first state switching instruction, and will not be described in detail in this embodiment.
[0249] In this embodiment, in response to the acquired second state switching instruction, the rotating component can be driven by the rotating driving component to rotate along the first rotation direction to control the working state of the cleaning component to switch from the retracted state to the outward swing state.
[0250] Through this embodiment, the switching of the cleaning component from retracting to swinging outward is triggered according to the state switching instruction, so that the efficiency of the working state switching of the cleaning component can be improved, thereby improving the flexibility of the cleaning device.
[0251] In an exemplary embodiment, the detection trigger element on the rotating component is detected by the detection component on the rotating driving component to determine the operating state of the cleaning component, and further includes:
[0252] S61, in the process of driving the rotating component to rotate along the first rotation direction by the rotation driving component, if the first detection component does not detect the first detection trigger element within the first time range, it is determined that the outer swing state of the cleaning device is abnormal;
[0253] S62, when the rotating component is driven to rotate along the second rotation direction by the rotating driving component, if the second detection module does not detect the second detection triggering element within the second time range, determining that the retracted state of the cleaning device is abnormal.
[0254] When the trigger element is detected by the detection component, the first time range and the second time range can be pre-set according to the rotation time corresponding to the retracted state and the outward swing state of the cleaning component under normal circumstances, so as to determine whether there is any abnormality in the operating state of the cleaning component of the cleaning equipment.
[0255] In this embodiment, when the rotating component is driven to rotate along the first rotation direction by the rotating driving component, if the first detection component does not detect the first detection trigger element within the first time range, it can be determined that the outer swing state of the cleaning device is abnormal.
[0256] Correspondingly, in the process of driving the rotating component to rotate along the second rotation direction by the rotating driving component, if the second detection module does not detect the second detection trigger element within the second time range, it can be determined that the retracted state of the cleaning device is abnormal. The above-mentioned first time range and second time range can be the same or different, and this embodiment does not limit this.
[0257] For example, the cleaning device is a machine, the retracted state is a retracted working condition, the retracted state is a retracted working condition, the rotation drive component is a rotation drive module, the first detection trigger element is detection element 1, the second detection trigger element is detection element 2, and the first time range and the second time range are the same as time T. Fig.23 As shown:
[0258] Step S501, the machine starts.
[0259] Step S502, analyzing whether the cleaning components of the machine need to be in a retracted state, if yes, executing step S503, otherwise executing step S510.
[0260] Step S503, when the cleaning component of the machine needs to be in the retracted state, determine whether the detection element 2 is working (ie, rotating). If yes, execute step S509, otherwise execute step S504.
[0261] Step S504: when the detection element 2 is not working, the rotation driving module is controlled to rotate forward (ie, rotate in a clockwise direction).
[0262] Step S505, determining whether the detection element 2 has completed its operation within the time T, that is, whether the detection element 2 has rotated to a position capable of triggering the detection module within the time T. If yes, execute step S509, otherwise execute step S506.
[0263] Step S506, when the machine cannot rotate to a position that can trigger the detection module within the time T, it is determined that the machine may be blocked, stuck, or other abnormalities, and an escape operation is performed.
[0264] Step S507, determine whether the machine is successfully rescued within time T1, if yes, execute step S509, otherwise execute step S508.
[0265] Step S508, an abnormal warning is issued and the work is stopped.
[0266] Step S509, determine that the machine is running normally and stop working.
[0267] Step S510, when the cleaning component of the machine does not need to be in the retracted working condition, determine whether the cleaning component needs to be in the swung out working condition, if yes, execute step S511, otherwise execute step S513.
[0268] Step S511, when the cleaning part of the machine needs to be in the external swing state, determine whether the detection element 1 is working, that is, whether the detection element 1 rotates to a position that can trigger the detection module. If yes, execute step S512, otherwise execute step S514.
[0269] Step S512, determine that the machine is running normally and stop working.
[0270] Step S513, an abnormal warning is issued and the work is stopped.
[0271] Step S514, when the detection element 1 is not working, the rotation driving module is controlled to reverse (ie, rotate counterclockwise) to stop the detection element 1 from working.
[0272] Step S515, determining whether the detection element 1 has completed its operation within the time T. If yes, execute step S512, otherwise execute step S516.
[0273] Step S516, when the machine cannot rotate to a position that can trigger the detection module within the time T, it is determined that the machine may be blocked, stuck, or other abnormalities, and an escape operation is performed.
[0274] Step S517, determine whether the machine is successfully rescued within time T1, if yes, execute step S512, otherwise execute step S518.
[0275] Step S518, an abnormal warning is issued and the work stops.
[0276] Through this embodiment, whether the cleaning device operates abnormally is determined based on the rotation time, which can improve the efficiency and accuracy of judging whether the cleaning device operates abnormally.
[0277] In an exemplary embodiment, when it is determined that the operating state of the cleaning component is abnormal, controlling the cleaning device to perform a specified operation to restore the operating state of the cleaning component to normal includes:
[0278] S71, when it is determined that the outer swing state of the cleaning device is abnormal, driving the rotating component to rotate along the second rotation direction through the rotation driving component;
[0279] S72: When the second detection module detects the second detection triggering element within the third time range, it is determined that the operating state of the cleaning device returns to normal.
[0280] When the operating state of the cleaning component is determined to be abnormal, the designated operation performed by controlling the cleaning device may be to control the rotating component to reverse. In this embodiment, when the swing-out state of the cleaning device is determined to be abnormal, the rotating component may be driven to rotate along the second rotation direction by the rotation drive component.
[0281] If the second detection module detects the second detection trigger element within the third time range, it can be determined that the abnormal state of the outer swing may be caused by obstacles or other reasons that cause the outer swing to be unable to rotate to the right position. If the retraction is completed normally, it can be determined that the operation state of the cleaning device has returned to normal. Here, the third time range can be the same as the first time range and the second time range, or different, and this embodiment does not limit this.
[0282] Optionally, when abnormal outward swing state occurs at different positions and inward retraction is completed normally, it can be determined that the abnormal outward swing state may be caused by the failure of components inside the cleaning device to rotate normally, and an abnormal alarm message can be directly issued to prompt the user to check the cleaning device.
[0283] Through this embodiment, when it is determined that the outward swing state of the cleaning component is abnormal, the efficiency of the cleaning device in getting out of trouble can be improved by reversing the rotating component to restore the operating state of the cleaning device.
[0284] In an exemplary embodiment, the method further comprises:
[0285] S81, when the second detection module does not detect the second detection trigger element within the third time range, control the rotation driving component to stop driving the rotation component to rotate, and issue an abnormal alarm message.
[0286] When it is determined that the outward swing state of the cleaning device is abnormal, and the rotating part is driven to rotate along the second rotation direction by the rotating drive part, if the second detection module does not detect the second detection trigger element within the third time range, it means that both the outward swing state and the inward retracted state of the cleaning device are abnormal, and the rotating drive part can be controlled to stop driving the rotating part to rotate, and an abnormal alarm message can be issued.
[0287] Through this embodiment, when both the outward swing state and the inward retracted state are abnormal, an abnormal alarm message is directly issued, which can avoid the cleaning device from wasting a long time in self-extrication and improve the intelligence of the cleaning device.
[0288] In an exemplary embodiment, when it is determined that the operating state of the cleaning component is abnormal, controlling the cleaning device to perform a specified operation to restore the operating state of the cleaning component to normal includes:
[0289] S91, when it is determined that the retracted state of the cleaning device is abnormal, controlling the cleaning device to move a certain distance along the target direction, and driving the rotating component to rotate along the second rotation direction through the rotation driving component;
[0290] S92: When the second detection module detects the second detection triggering element within a fourth time range, determine that the operating state of the cleaning device returns to normal.
[0291] Since the abnormality of the retracted state of the cleaning device may be caused by an external obstacle blocking the cleaning component, etc., which makes it impossible for the cleaning component to retract, in this embodiment, when it is determined that the retracted state of the cleaning device is abnormal, the cleaning device can be controlled to move a distance along the target direction. At the same time, after determining that the cleaning device may leave the obstacle, the cleaning component can be controlled to retract again, that is, the rotating component is driven to rotate along the second rotation direction by the rotating driving component. Here, the target direction can be a direction different from the moving direction of the cleaning device before the abnormality of the retracted state occurs.
[0292] Starting from driving the rotating component to rotate along the second rotation direction, if the second detection module detects the second detection trigger element within a fourth time range, it can be determined that the operating state of the cleaning device has returned to normal. The fourth time range can be the same as or different from the first time range, the second time range, or the third time range.
[0293] Optionally, when it is determined that the retracted state of the cleaning device is abnormal, the cleaning component can also be controlled to move in the opposite direction to the previous retracted state, that is, the rotating component is driven to rotate along the first rotation direction by the rotating driving component. And when the first detection module detects the first detection trigger element in the fifth time range, it is determined that the operating state of the cleaning device has returned to normal. Here, the fifth time range can be the same as the aforementioned first time range, second time range, third time range or the fourth time range, or it can be different.
[0294] Through this embodiment, when it is determined that the retracted state of the cleaning component is abnormal, the cleaning device is controlled to leave the current area and retract again to restore the operating state of the cleaning device, which can improve the escape efficiency of the cleaning device.
[0295] In an exemplary embodiment, the method further comprises:
[0296] S101, when the second detection module does not detect the second detection trigger element within a fourth time range, control the rotation driving component to stop driving the rotation component to rotate, and issue an abnormal alarm message.
[0297] Starting from driving the rotating component to rotate along the second rotation direction, if the second detection module does not detect the second detection trigger element within the fourth time range, it can be determined that the operating state of the cleaning equipment cannot be restored to normal by changing the position of the equipment. In this embodiment, the rotating driving component can be controlled to stop driving the rotating component to rotate, and an abnormal alarm message can be issued.
[0298] Optionally, when the cleaning device is restored to normal by driving the rotating component to rotate along the first rotation direction through the rotating driving component as mentioned above, if the first detection module does not detect the first detection trigger element within the fifth time range, the rotating driving component can also be controlled to stop driving the rotating component to rotate and issue an abnormal alarm message.
[0299] Through this embodiment, when the cleaning device still cannot be restored to normal after controlling the cleaning device to perform a specified operation, an abnormal alarm message is directly issued, which can avoid the cleaning device wasting a long time in self-rescuing and improve the intelligence of the cleaning device.
[0300] In an exemplary embodiment, the method further comprises:
[0301] S111, obtaining location information of a cleaning device, wherein the location information of the cleaning device is used to indicate the location of the cleaning device in a cleaning area;
[0302] S112, when it is determined according to the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is less than or equal to a preset distance threshold, generating a first rotation instruction, wherein the first rotation instruction is used to instruct the rotation driving component to drive the rotating component to rotate along a first rotation direction;
[0303] S113, when it is determined based on the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is greater than a preset distance threshold and the cleaning component is in an outward swing state, a second rotation instruction is generated, wherein the second rotation instruction is used to instruct the rotation driving component to drive the rotating component to rotate along a second rotation direction.
[0304] When it is determined based on the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is less than or equal to the preset distance threshold, it means that the distance between the cleaning device and the edge of the cleaning area is close and edge cleaning is required, and a first rotation instruction can be generated. Here, the preset distance threshold can be a pre-set distance threshold. The first rotation instruction can be used to instruct the rotation drive component to drive the rotating component to rotate along the first rotation direction.
[0305] When it is determined according to the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is greater than the preset distance threshold and the cleaning component is in the outward swing state, a second rotation instruction can be generated. Here, the second rotation instruction is used to instruct the rotation drive component to drive the rotating component to rotate along the second rotation direction.
[0306] Through this embodiment, the cleaning component can be controlled to swing outward or retract inward according to the distance between the position of the cleaning device and the edge of the cleaning area, which can improve the flexibility of the cleaning device and the efficiency of edge cleaning.
[0307] The following is an explanation of the mobile control method of the cleaning device in the embodiment of this specification in conjunction with an optional example. In this optional example, the cleaning device is a cleaning robot, and the first time range and the second time range are time T.
[0308] This optional example provides a method for controlling the motion of a swing-type cleaning module, such as Fig.21 and Fig. 22 As shown, the process of the mobile control method of the cleaning device in this optional example may include the following steps:
[0309] Step 1: determine the operating state (retracted or swung out) of the cleaning component according to the current position of the cleaning robot.
[0310] Step 2, when the cleaning component is in a retracted state and needs to be swung outward, the swinging component 2 is controlled to swing outward along the rotation center 6. When the rotating component 1 rotates to a certain position within time T, the detection trigger element 7 on the rotating component 1 triggers the detection component 4, thereby giving an instruction for the detection rotating module to rotate into position, and the rotating drive component 3 stops working.
[0311] Step 3: When the trigger element 7 fails to trigger the detection component 4 within the time T, it is determined that an abnormality occurs in the cleaning device, and an escape operation is performed.
[0312] Step 4: If the vehicle fails to escape within time T1, an abnormal warning is issued.
[0313] Step 5, when the cleaning component is in the outward swing state and needs to be retracted, the swinging component 2 is controlled to swing back inward along the rotation center 6. When the rotating component 1 rotates to a certain position within the time T, the detection trigger element 8 on the rotating component 1 triggers the detection component 5, thereby giving an instruction for the detection rotating module to rotate into position, and the rotating drive component 3 stops working.
[0314] Step 6: When the trigger element 8 fails to trigger the detection component 5 within the time T, it is determined that an abnormality occurs in the cleaning device, and an escape operation is performed.
[0315] Step 7: If the vehicle fails to escape within time T1, an abnormal warning is issued.
[0316] Through this optional example, whether the cleaning part needs to be swung outwards can be determined according to the position of the cleaning device in the cleaning area, thereby improving the cleaning efficiency of the cleaning area. In addition, whether the cleaning device is trapped can be determined according to the rotation time of the outward swing or retracted state, thereby improving the accuracy of judging the running state of the cleaning device.
[0317] Embodiment 2
[0318] Cleaning robots can move autonomously on the floor of a room and perform cleaning tasks. Usually, the actual working environment of a cleaning robot is a home environment, which often has various types of obstacles, such as plush toys, pet feces, wires, narrow passages, etc. The cleaning parts that are swung outward are more likely to touch these obstacles, contaminate the obstacles or be contaminated by the obstacles. For example, the cleaning parts may touch plush toys and make them dirty, or touch pet feces, causing the cleaning parts to be stained with feces, and when cleaning continues, more of the floor will be contaminated by feces. It is also possible that the cleaning parts get stuck between narrow obstacles, trapping the cleaning robot.
[0319] It can be seen that although swinging the cleaning components outward from the body of the cleaning robot can expand the cleaning range and improve the cleaning coverage of the ground along the sides, corners, small obstacles, etc., it also increases the risk of the cleaning robot getting stuck, touching obstacles, and causing contamination.
[0320] In order to solve the above problems, this embodiment provides a cleaning control method for a cleaning robot. Fig.24 As shown, in specific implementation, the cleaning control method provided in this specification may include the following steps:
[0321] S181, obtaining obstacle information in the forward direction of the cleaning robot;
[0322] S182, determining whether the obstacle information contains obstacle data that meets a preset obstacle condition;
[0323] S183: If the obstacle information includes obstacle data that meets a preset obstacle condition, control the cleaning robot to drive the cleaning component to move to the retracted position.
[0324] The cleaning robot is equipped with an obstacle detection sensor to obtain obstacle information in the direction of the cleaning robot. Obstacle detection sensors can include multiple types, such as lidar sensors, infrared sensors, line laser sensors, and edge sensors. Among them, lidar sensors include, for example, triangulation lidar sensors and ToF lidar sensors.
[0325] In some embodiments, the obstacle detection sensor may further include a visual sensor, which obtains obstacle information by acquiring a visual image of the forward direction, and identifying and processing the visual image.
[0326] After the cleaning robot obtains obstacle information in the direction of advance, it analyzes and processes the obstacle information to identify whether the obtained obstacle information contains obstacle data that meets the preset obstacle conditions. These obstacle data that meet the preset obstacle conditions are obstacles that may cause the cleaning parts to get stuck and contaminate, and it is necessary to control the cleaning parts to move to the retracted position in advance to avoid them, so as to reduce the risk of getting stuck and contaminating.
[0327] In a specific implementation scenario, a driving assembly (not shown) is disposed on the body 210, including a motor and a transmission mechanism connected to the motor, the transmission mechanism being used to convert the rotational motion of the motor into the reciprocating motion of the cleaning component 220. The transmission mechanism may include a variety of implementations, and an example is given below to illustrate that the transmission mechanism includes a driving gear and a linear rack, the linear rack is fixed to the body 210, the driving gear is connected to the cleaning component 220, the driving gear is rotationally connected to the linear rack and moves along the extension direction of the linear rack, so that the driving gear drives the cleaning component 220 to move, so as to realize the movement of the cleaning component 220 between the retracted position B and the extended position A. The transmission mechanism may also adopt a variety of other transmission schemes, such as a screw sleeve or a worm gear matching drive mode, as long as the rotational motion of the motor can be converted into the position movement of the cleaning component 220, and no further examples are given.
[0328] The above-mentioned "preset obstacle conditions" are preset. Specifically, the preset obstacle conditions include preset type conditions of obstacles and preset distance conditions between obstacles and the fuselage. Among them, only when the preset type conditions and the preset distance conditions are met at the same time, it is determined that the obstacle information contains obstacle data that meets the preset obstacle conditions. In a specific embodiment, the step of determining whether the obstacle information contains obstacle data that meets the preset obstacle conditions includes: determining whether the obstacle information contains obstacle data that meets the preset type conditions and the preset distance conditions.
[0329] In specific implementation, it is possible to first identify whether the obstacle information contains obstacle data that meets the preset type condition, and then determine whether the obstacle data of the preset type meets the preset distance condition, or to determine whether there is obstacle data of the preset type condition in the obstacle data that meets the preset distance condition. Of course, the above-mentioned preset type condition and preset distance condition can be determined at the same time.
[0330] The preset type condition is understood as preset specific types of obstacles, such as obstacles that are easily tangled, such as wires and wool, obstacles that are easily contaminated, such as carpets and stuffed toys, obstacles that are easily contaminated, and obstacles that are easily contaminated by pet feces. When the obstacle data shows that the corresponding obstacle is of the above preset type, it is considered that the preset type condition is met.
[0331] In a specific embodiment, the step of determining whether the obstacle information includes obstacle data that meets the preset type condition may include:
[0332] Determining whether the obstacle information includes an obstacle avoidance type;
[0333] If so, it is determined that the obstacle information includes obstacle data that meets the preset type condition.
[0334] In a specific embodiment, the preset type conditions are pre-set in the cleaning robot. For example, the preset type conditions include a variety of obstacle types, such as slender obstacles, plush obstacles, etc. The obstacle type data can be obtained by identifying and extracting the obstacle data in the obstacle information and performing feature comparison. The obstacle type data may include corners, sofas, tables and chairs, etc. Further, it is determined whether these obstacle type data are avoidance obstacle types, such as specifying some of the obstacle types as obstacles that need to be avoided. If it is detected that the obstacle type data includes avoidance obstacle types, it is determined that the obstacle information includes obstacle data that meets the preset type conditions.
[0335] In a specific embodiment, the step of determining whether the obstacle information includes an obstacle avoidance type further includes:
[0336] Obtaining the contour data of the obstacle corresponding to the obstacle information;
[0337] The contour data is compared with preset contour data to determine a matching degree between the contour data and the preset contour data, and when the matching degree satisfies a preset matching condition, it is determined that the obstacle information includes an avoidance obstacle type.
[0338] The above-mentioned "contour data" is obtained by extracting and fitting the point cloud data of the obstacle obtained by the obstacle detection sensor, and the contour data represents the direction and shape of the outer contour of the obstacle. The cleaning robot pre-stores preset contour data, determines the matching degree between the acquired contour data and the preset contour data, and determines that the obstacle information includes the obstacle avoidance type when the matching degree meets the preset matching condition. For example, if the matching degree exceeds 80%, the obstacle is determined to be the obstacle avoidance type.
[0339] In specific implementation scenarios, the working environment of the cleaning robot may include a variety of obstacle distribution situations, such as narrow passages caused by the distribution of obstacles, which can easily cause cleaning parts to get stuck. There are also some scenarios where the cleaning area is a dead end, an internal right angle, or between the legs of tables and chairs.
[0340] In order to reduce the risk of the cleaning component being stuck due to these obstacle scenarios, in some embodiments, the step of determining whether the obstacle information contains obstacle data that meets the preset type condition includes:
[0341] Determine the distribution data of the obstacle according to the obstacle information;
[0342] Comparing the distribution data with preset distribution data, and determining whether the obstacle distribution is a preset obstacle scenario according to the comparison result;
[0343] If so, it is determined that the obstacle information contains obstacle data that meets the preset type condition.
[0344] Among them, the above-mentioned "preset obstacle scene" is usually caused by densely distributed obstacles, and the cleaning area within the obstacle or between multiple obstacles is narrow, which can easily cause the cleaning parts to get stuck.
[0345] In a specific embodiment, the preset obstacle scene includes one or more of a narrow alley, a dead end, an inner right angle, and a table and chair leg, and the preset distribution data includes distribution data types corresponding to the preset obstacle scenes, which may include distribution data types corresponding to narrow alleys, dead ends, inner right angles, and table and chair legs. Determining whether the obstacle distribution is a preset obstacle scene according to the comparison result includes:
[0346] determining a distribution data type that matches the distribution data;
[0347] According to the matching distribution data type, the corresponding preset obstacle scenario is determined.
[0348] In a specific embodiment, the determining the distribution data type matching the distribution data includes:
[0349] The matching degree between the distribution data and the distribution data type is determined, and when the matching degree is greater than or equal to a preset distribution matching threshold, it is determined that the distribution data matches the distribution data type.
[0350] Taking the narrow alley distribution data type as an example, if it is determined that the distribution data matches the narrow alley distribution data type with a degree of match as high as 80%, which exceeds the preset distribution matching threshold of 70%, then the corresponding obstacle distribution is determined to be a narrow alley, and the cleaning robot 200 needs to control the cleaning component to move to the retracted position B while meeting the preset distance conditions, so as to reduce the risk of the cleaning robot getting stuck.
[0351] In a specific embodiment, the step of determining whether the obstacle information includes obstacle data that meets the preset distance condition specifically includes:
[0352] Determine whether the distance between the obstacle corresponding to the obstacle information and the aircraft body is less than or equal to a preset distance threshold;
[0353] When it is detected for the first time that the distance between the obstacle and the fuselage is less than or equal to the preset distance threshold, it is determined that the obstacle information contains obstacle data that meets the preset distance condition.
[0354] It is understandable that when the cleaning robot is moving in the initial state, the cleaning component protrudes outside the body, and the cleaning component contacts the obstacle first. By setting a preset distance threshold, when the cleaning component is about to contact the obstacle but has not yet contacted, if it is determined that the obstacle information contains obstacle data that meets the preset distance condition, the cleaning component can be immediately controlled to move to the retracted position to avoid contact with the obstacle. In a specific implementation, if the obstacle information also includes obstacle data that meets the preset type condition, when the distance between the obstacle and the body is first detected to be less than or equal to the preset distance threshold, it is determined that the preset distance condition is met. The distance margin between the cleaning component and the obstacle can be adjusted by the preset distance threshold to ensure that the cleaning component completes the action of moving to the retracted position before touching the obstacle, avoiding touching the obstacle and reducing the risk of getting stuck, contaminating the obstacle, and being contaminated by the obstacle.
[0355] The cleaning component cannot be moved to the retracted position too early, which will result in the corresponding obstacle being unable to be cleaned. The cleaning component cannot be moved to the retracted position too late. If it is moved to the retracted position too late, the risk of the cleaning component touching the obstacle will increase. In order to balance the cleaning coverage and reduce the risk of the cleaning component touching the obstacle, in some embodiments, the cleaning control method further includes:
[0356] Obtaining the driving speed of the cleaning robot;
[0357] The preset distance threshold is adjusted according to the driving speed.
[0358] That is, the cleaning robot adjusts the preset distance threshold according to the driving speed of the cleaning robot. When the driving speed is slow, the cleaning robot has enough time to move the cleaning component to the retracted position, so that the preset distance threshold can be adjusted to a smaller value, so as to clean the ground around the obstacle and improve the cleaning coverage around the obstacle. When the driving speed of the cleaning robot is fast, according to the current speed, the cleaning robot will reach the obstacle in a shorter time. At this time, according to the current speed, the preset distance threshold needs to be adjusted to a larger value, so as to avoid the risk of the cleaning component hitting the obstacle.
[0359] In some embodiments, in order to increase the ground coverage around obstacles, when the cleaning robot detects an obstacle that meets preset type conditions, the cleaning robot controls the driving speed of the cleaning robot to slow down and clean the area around the obstacle at a lower speed, so that the ground around the obstacle can be cleaned more closely while ensuring that the cleaning components do not contact the obstacle.
[0360] When it is detected that the obstacle information acquired by the cleaning robot does not contain obstacle data that meets the preset obstacle condition, the cleaning robot drives the cleaning component to move to the extended position A so as to maintain a high coverage rate.
[0361] See also Fig.25 and Fig.26 It should be noted that when the cleaning robot 200 is equipped with multiple cleaning components 220, taking two cleaning components 220 as an example, each cleaning component 220 can be driven independently to control whether it is located at the extended position A or the retracted position B. When obstacle data satisfying the preset obstacle condition is detected to be located in front of the left cleaning component 220, the left cleaning component can be independently controlled to move to the retracted position B ( Fig.25 When obstacle data satisfying the preset obstacle condition is detected in front of the right cleaning component 220, the right cleaning component can be controlled to move to the retracted position B, and the left cleaning component remains in the extended position. When obstacle data satisfying the preset obstacle condition is detected on both sides of the left side, the two cleaning components 220 can be moved to the retracted position B at the same time. Fig.26 As shown in the figure, the two cleaning components are driven independently to ensure a higher coverage rate.
[0362] Embodiment 3
[0363] Typically, the working environment of a cleaning robot is an indoor home environment. When performing edge cleaning tasks in an indoor home environment, the cleaning robot mainly cleans the boundaries of a certain cleaning area indoors.
[0364] By swinging the cleaning parts of the cleaning robot outward, the cleaning range can be expanded and the cleaning coverage rate can be increased, but the chance of scratches is increased, which affects the service life of the machine; and in order to avoid scratches caused by obstacles, the cleaning parts that are swung outward are retracted. On the one hand, it is impossible to ensure a high coverage rate of the machine, and on the other hand, it also causes an increase in the number of times the cleaning parts are retracted and released, which will also affect the service life of the machine. In order to solve the above technical problems, this manual proposes a method for cleaning along the edge, which can ensure a high coverage rate and reduce the problem of scratches caused by obstacles caused by the protruding cleaning parts without retracting the cleaning parts, thereby extending the service life of the machine.
[0365] In the following embodiments, the Fig.25 and Fig.26 The cleaning robot shown is used as an example for explanation. Fig.25 A bottom-up structural model diagram of a cleaning robot in which a cleaning component is in a retracted state is shown. In this working state, a portion of the cleaning component is located outside the periphery of the body and is in position A; Figure 4 A top-down structural model diagram of the cleaning robot with the cleaning component in an outward-swung state is shown. In this working state, a part of the cleaning component is also located outside the body, in position B, but the part outside the body is larger than the part outside the body when the cleaning component is in a retracted state, that is, a top-down structural model diagram of the working state that the cleaning robot in this embodiment always maintains.
[0366] Specifically, Fig.25 and Fig.26 As shown, the cleaning robot 200 includes a body 210 and a cleaning component 220 movably disposed on the body 210. More specifically, the cleaning component 220 is disposed at the bottom of the body 210, and the number thereof may be one or more, and may be any one of a side brush, a rag plate, and a roller brush, and the specific number and specific form thereof are not limited herein.
[0367] For the purpose of convenience of explanation, the forward direction of the fuselage 210 is taken as the forward direction, and the backward direction is taken as the backward direction. The forward side of the forward direction is the forward side of the fuselage, and the backward side is the backward side of the fuselage. The forward side of the fuselage and the backward side of the fuselage are collectively referred to as the vertical side of the fuselage. The left side of the forward direction is the left side of the fuselage, and the right side is the right side of the fuselage. The left side of the fuselage and the right side of the fuselage are collectively referred to as the horizontal side of the fuselage. The horizontal side of the fuselage and the vertical side of the fuselage are perpendicular to each other. When the forward direction of the cleaning robot is set to forward, the cleaning robot will move toward the forward side of the fuselage according to its forward direction (of course, the forward direction of the cleaning robot can also be set to backward. When it is set to backward, the cleaning robot will move backward toward the backward side of the fuselage according to its forward direction). When the cleaning robot 200 is in the process of performing the preset edge cleaning task, when the body 210 rotates with the center O1 of the body 210 as the center of the circle, the horizontal side of the body and the vertical side of the body before and after the rotation may be interchanged; for example, when the body 210 rotates 90° or 270° with the center O1 of the body as the center of the circle, the original horizontal side of the body will become the vertical side of the body, and the vertical side of the body will become the horizontal side of the body. The edge cleaning of this embodiment is a real-time control process, so it should be understood that the specific directions of the horizontal side and the vertical side of the body in this embodiment are not fixed relative to the cleaning area, and will change according to the movement of the body 210, which is understandable to those skilled in the art.
[0368] like Fig. 27 As shown, this embodiment provides a method for cleaning along the edge, the method comprising:
[0369] S1: When the cleaning component is in the outward swing state, obtain obstacle information in the moving direction of the cleaning robot in real time;
[0370] S2: when determining based on the obstacle information that the cleaning robot is performing a preset edge cleaning task, determining based on the obstacle information whether the cleaning robot meets a preset obstacle avoidance condition;
[0371] S3: When the cleaning robot meets the preset obstacle avoidance conditions, the movement of the body is controlled according to the obstacle information to complete the preset edge cleaning task to avoid scratches on the cleaning parts that are maintained in the outward swing state.
[0372] In this embodiment, when it is determined based on obstacle information that the cleaning robot is performing a preset edge cleaning task, there is an obstacle on the vertical side of the fuselage; wherein the obstacle on the vertical side of the fuselage is located on the front or rear side of the moving direction of the fuselage, and the second side obstacle includes the obstacle on the vertical side of the fuselage.
[0373] In this embodiment, when it is determined based on obstacle information that the cleaning robot is performing a preset edge cleaning task, there are also obstacles on the horizontal side of the fuselage; wherein the obstacles on the horizontal side of the fuselage are located on the left or right side of the moving direction of the fuselage, and the first side obstacles include the obstacles on the horizontal side of the fuselage.
[0374] When there are obstacles on both the vertical side and the horizontal side of the cleaning robot, it can be determined that the cleaning robot is in an obstacle scene for the preset edge cleaning task. Fig.28 The sum of the interior angles shown Fig.29 The legs of the table and chair shown in the figure, the vertical side of the fuselage and the horizontal side of the fuselage all have obstacles at the same time; of course, there are other obstacle scenes that meet the requirements, such as outer corners and dead ends. When the cleaning robot is in the above obstacle scenes and performs edge cleaning, its corresponding preset edge cleaning tasks are inner corner edge cleaning (i.e. Fig.28 edge cleaning tasks in the obstacle scenario shown), edge cleaning of table and chair legs (i.e. Fig.29 Edge cleaning tasks in the obstacle scenario shown), outer corner edge cleaning (not shown) and dead end edge cleaning (not shown).
[0375] In an optional embodiment, the edge cleaning method of this embodiment further includes:
[0376] S4: When it is determined according to the obstacle information that the cleaning robot does not meet the preset obstacle avoidance condition, the fourth action strategy is used to control the action of the body to complete the preset edge cleaning task.
[0377] When executing the preset edge cleaning task, the cleaning robot moves in real time. If it is determined that it does not meet the preset obstacle avoidance conditions, it still needs to continue the remaining edge cleaning and continue to judge in real time whether the subsequent movement process will meet the preset obstacle avoidance conditions. Therefore, this embodiment controls the movement of the fuselage according to the fourth action strategy to ensure the smooth completion of the preset edge cleaning task.
[0378] In this embodiment, the fourth action strategy is a pre-set strategy, which can control the action of the machine body by maintaining the current cleaning mode, for example, according to the current travel speed and the current travel direction, the machine body is controlled to continue to move forward to continue to clean along the edge. Of course, the current travel speed can also be increased or decreased according to actual needs, and the machine body can be controlled to accelerate or decelerate in the current travel direction to continue to clean along the edge.
[0379] The preset obstacle avoidance condition is a pre-set obstacle avoidance condition. In an optional embodiment, the preset obstacle avoidance condition includes a condition satisfied by a first distance between the fuselage and an obstacle on a vertical side of the fuselage.
[0380] In an optional embodiment, determining whether the cleaning robot meets a preset obstacle avoidance condition according to the obstacle information in S2 includes:
[0381] S21: Acquire a first distance between the fuselage and an obstacle on a vertical side of the fuselage according to the obstacle information;
[0382] S22: Determine whether the first distance is less than or equal to a first preset threshold;
[0383] S23A: If so, it is determined that the cleaning robot meets the preset obstacle avoidance condition.
[0384] It should be understood that the first distance specifically refers to the center of the fuselage (i.e. Fig.25 and Fig.26 The distance between the obstacle (O1) and the vertical side of the fuselage can be obtained by analyzing the obstacle point cloud data obtained by sensors such as lidar sensors to obtain the distance between the sensor and the obstacle on the vertical side of the fuselage, and then combining it with the inherent size of the cleaning robot; it can also be obtained by performing image analysis on the image obtained by the visual sensor to obtain the distance between the sensor and the vertical side obstacle, and then combining it with the inherent size of the cleaning robot (including the size of the fuselage, the distance between the sensor and the periphery of the fuselage, etc.).
[0385] Among them, the center of the fuselage can be the center point of the fuselage, the center point of the fuselage is the geometric center of the fuselage, and it may not be the geometric center of the fuselage. For example, when the fuselage is a standard circle, the center point of the fuselage can be the geometric center of the fuselage.
[0386] The first preset threshold in this embodiment can be pre-set and adjusted according to actual conditions. For example, when the size between the center of the cleaning robot's body and the outer periphery is 20 cm, the first preset threshold is set to 28 cm. Once the first distance reaches 28 cm, it means that the distance between the outer periphery of the body and the obstacle on the vertical side of the body is close (8 cm), and subsequent action control is performed.
[0387] In an optional embodiment, S3, when the cleaning robot meets the preset obstacle avoidance condition, the action of the body is controlled according to the obstacle information to complete the preset edge cleaning task to avoid scratches on the cleaning parts that are maintained in the outward swing state, including:
[0388] S31: obtaining the current speed of the aircraft body and reducing the current speed;
[0389] S32: determining whether the first distance obtained at the reduced current travel speed is less than or equal to a second preset threshold; wherein the second preset threshold is less than the first preset threshold;
[0390] S33A: If the acquired first distance is less than or equal to the second preset threshold, the current travel speed of the fuselage is controlled to be reduced to zero; and after the first preset time, the action of the fuselage is controlled according to the first action strategy so that the cleaning component deviates from the obstacle on the horizontal side of the fuselage.
[0391] Similar to the first preset threshold, the second preset threshold and the first preset time can be pre-set and adjusted according to actual conditions. For example, the second preset threshold is set to 21 cm (assuming that the size between the center of the cleaning robot's body and the outer periphery is 20 cm). Once the first distance reaches 21 cm, it means that the distance between the outer periphery of the body and the obstacle on the vertical side of the body is only 1 cm. If the obstacle on the vertical side of the body is almost touched, the machine will be braked; the first preset time is set to 1s, that is, the movement of the body is controlled according to the first action strategy 1 second after braking.
[0392] for Fig.28 The obstacle scene shown in Figure 1 shows the obstacle avoidance top-down model. Figures 30a to 30j As shown. Fig.30a In the example, when the distance between the cleaning robot's body (specifically, the center of the body) and the room wall in front of the body reaches 28 cm, the body begins to decelerate; Fig.30b In the process, when the distance between the body of the cleaning robot (specifically the center of the body) and the room wall in front of the body reaches 21 cm (that is, almost touching the room wall), the machine stops.
[0393] for Fig.29 The obstacle scene shown in Figure 1 shows the obstacle avoidance top-down model. Figures 31a to 31j As shown. Fig.31aIn the process, when the distance between the cleaning robot's body (specifically the center of the body) and the table and chair legs in front of the body reaches 28cm, the body begins to decelerate; Fig.31b In the process, when the distance between the body of the cleaning robot (specifically the center of the body) and the table and chair legs on the front side of the body reaches 21 cm (that is, almost touching the table and chair legs), the machine stops.
[0394] In an optional embodiment, when the cleaning robot meets the preset obstacle avoidance conditions, the action of the body is controlled according to the obstacle information to complete the preset edge cleaning task to avoid scratches on the cleaning parts that are maintained in the outward swing state, and further includes:
[0395] S33B: If the acquired first distance is greater than the second preset threshold, continue to reduce the current travel speed of the fuselage until the acquired first distance is less than or equal to the second preset threshold at the reduced current travel speed.
[0396] When the first distance obtained is greater than the second preset threshold value at the reduced current travel speed, it means that the cleaning robot has not yet encountered the obstacle on the vertical side of the fuselage. At this time, the current travel speed can be further reduced until the first distance is less than or equal to the second preset threshold value. Under the premise of ensuring that the cleaning components are not scratched, the cleaning robot can find the closest position to the obstacle on the vertical side of the fuselage, so that it can maximize the coverage of the area near the obstacle and maximize the edge cleaning effect.
[0397] In an optional embodiment, in S33A, according to the first action strategy, controlling the action of the body so that the cleaning component deviates from the obstacle on the horizontal side of the body includes:
[0398] S33A1: Acquire a second distance between the cleaning component and the obstacle on the horizontal side of the fuselage according to the obstacle information;
[0399] S33A2: After the first preset time, the side of the body provided with the cleaning component is controlled to rotate in a direction away from the obstacle on the horizontal side of the body with the center of the body as the center of the circle; and the body is controlled to move in a direction away from the obstacle on the vertical side of the body until the first distance is greater than or equal to the third preset threshold and the second distance is greater than or equal to the fourth preset threshold;
[0400] S33A3: After the second preset time period, according to the second action strategy, the movement of the fuselage is controlled so that the cleaning component bypasses the obstacle on the vertical side of the fuselage.
[0401] It should be understood that the second distance refers to the center of the cleaning member (i.e. Figure 3 and Figure 4 The distance between (O2) and the obstacle on the horizontal side of the fuselage, and its specific acquisition method is similar to the first distance.
[0402] for Fig.28The obstacle scenario shown in Fig.30b In the process, after the machine stops for 1 second, the obstacle on the horizontal side of the machine body (i.e. the wall on the right side of the machine body) is located on the right side of the machine body, and the cleaning component is located on the right rear side of the machine body. Fig.30c In the process, the fuselage starts to rotate toward its left rear side and moves away from the obstacle on the vertical side of the fuselage (i.e., the wall on the front side of the fuselage), forming a rotating backward effect; when the first distance (the distance between the fuselage and the wall on the front side of the fuselage) reaches the third preset threshold value (e.g., 27 cm), and the second distance (the distance between the cleaning component and the wall on the right side of the fuselage) reaches the fourth preset threshold value (e.g., 7 cm), that is Fig.30d At the middle position, the machine stops rotating and moving.
[0403] for Fig.29 The obstacle scenario shown in Fig.31b In the example, the machine stops for 1 second. Because the obstacle on the horizontal side of the machine body (i.e. the wall on the right side of the machine body) is located on the right side of the machine body, and the cleaning component is located on the right rear side of the machine body, Fig.31c In the process, the fuselage starts to rotate toward its left rear side and moves away from the obstacles on the vertical side of the fuselage (i.e., the legs of tables and chairs on the front side of the fuselage), forming a rotating backward effect; when the first distance (the distance between the fuselage and the legs of tables and chairs on the front side of the fuselage) reaches the third preset threshold value (e.g., 27 cm), and the second distance (the distance between the cleaning component and the wall on the right side of the fuselage) reaches the fourth preset threshold value (e.g., 7 cm), that is Fig.31d At the middle position, the machine stops rotating and moving.
[0404] In an optional embodiment, the above S33A3: after the second preset time, according to the second action strategy, controlling the action of the body so that the cleaning component bypasses the obstacle on the vertical side of the body, includes:
[0405] S33A31: acquiring a third distance between the cleaning component and the obstacle on the vertical side of the fuselage according to the obstacle information;
[0406] S33A32: After the second preset time, control the side of the body provided with the cleaning component to rotate toward the direction of the obstacle on the vertical side of the body with the center of the body as the center of the circle; and control the body to move toward the direction of the obstacle on the vertical side of the body until the first distance is less than or equal to the fifth preset threshold and the third distance is less than or equal to the sixth preset threshold;
[0407] S33A33: After the third preset time, the action of the fuselage is controlled according to the third action strategy to complete the preset edge cleaning task.
[0408] It should be understood that the third distance refers to the distance between the center of the cleaning component and the obstacle on the vertical side of the fuselage, and the specific acquisition method is similar to the second distance.
[0409] In an optional embodiment, the fifth preset threshold and the sixth preset threshold are both preset and adjusted according to actual conditions, for example, the fifth preset threshold is set to 26 cm (wherein the dimension between the center of the fuselage and the periphery of the fuselage is 20 cm, and the dimension between the center of the cleaning component and the periphery of the cleaning component is 5 cm), and the sixth preset threshold is set to 6 cm. The third preset duration is also a preset duration, for example, it can be set to 1 s or 0.1 s, and can be the same as or different from the first preset duration and the second preset duration.
[0410] for Fig.28 The obstacle scenario shown in Fig.30d In the example, after the machine stops rotating and moving for 1 second, the obstacle on the horizontal side of the machine body (i.e., the wall on the right side of the machine body) is located on the right side of the machine body, and the cleaning component is located on the right rear side of the machine body. Fig.30e In the process, the fuselage starts to rotate toward its left front side and moves toward the obstacle on the vertical side of the fuselage (i.e., the wall in front of the fuselage). Fig.30f As shown, a rotating forward effect is formed; when the first distance (the distance between the fuselage and the wall on the front side of the fuselage) reaches the fifth preset threshold value (for example, 26 cm), and the third distance (the distance between the cleaning component and the wall on the right side of the fuselage) reaches the sixth preset threshold value (for example, 6 cm), that is Figure 30g At the middle position, the machine stops rotating and moving.
[0411] for Fig.29 The obstacle scenario shown in Fig.31d In the example, after the machine stops rotating and moving for 1 second, the obstacle on the horizontal side of the machine body (i.e., the wall on the right side of the machine body) is located on the right side of the machine body, and the cleaning component is located on the right rear side of the machine body. Fig.31e In the process, the fuselage starts to rotate toward its left front side and moves toward the obstacle on the vertical side of the fuselage (i.e., the table and chair legs on the front side of the fuselage). Fig.31f As shown, a rotating forward effect is formed; when the first distance (the distance between the machine body and the table and chair legs on the front side of the machine body) reaches the fifth preset threshold value (for example, 26 cm), and the third distance (the distance between the cleaning component and the wall on the right side of the machine body) reaches the sixth preset threshold value (for example, 6 cm), that is Figure 31g At the middle position, the machine stops rotating and moving.
[0412] It should be understood that when the cleaning component bypasses the obstacle on the vertical side of the fuselage according to the above method, the original horizontal and vertical directions of the fuselage are interchanged, and then the obstacle on the horizontal side of the fuselage and the obstacle on the vertical side of the fuselage are interchanged.
[0413] In an optional embodiment, the above S33A33: after the third preset time, according to the third action strategy, controlling the action of the fuselage to complete the preset edge cleaning task includes:
[0414] After the third preset time, the fuselage is controlled to move toward the obstacle on the vertical side of the fuselage until the third distance is less than or equal to the seventh preset threshold. Then, the fuselage is controlled to clean along the contour of the obstacle on the horizontal side of the fuselage at the preset travel speed to complete the preset edge cleaning task.
[0415] The third preset time duration, the seventh preset threshold value and the preset travel speed in this embodiment are all pre-set parameters. For example, the third preset time duration is set to 1s or 0.1s, the seventh preset threshold value is set to 6cm (wherein the distance between the center of the cleaning component and the periphery of the cleaning component is 5cm), and the speed of the machine when it starts to perform the edge cleaning task is used as the preset travel speed.
[0416] for Fig.28 The obstacle scenario shown in Figure 30g In the process, the machine stops rotating and moving for 1 second. At this time, since the new vertical obstacle of the machine body (i.e. the wall on the rear side of the machine body) is located on the rear side of the machine body, the cleaning component is located on the right rear side of the machine body. Figure 30h In the process, the body starts to move toward its rear side to achieve the effect of retreat; when the third distance (the distance between the cleaning component and the wall on the rear side of the body) reaches the seventh preset threshold value (for example, 6 cm), that is, Fig.30i The machine stops moving backwards at the position in the middle; and continues to clean along the new obstacle on the horizontal side of the fuselage (i.e. the wall on the right side of the fuselage) after 1 second. Fig.30j shown.
[0417] for Fig.29 The obstacle scenario shown in Figure 31g In the process, the machine stops rotating and moving for 1 second. At this time, since the new vertical obstacle of the machine body (i.e. the wall on the rear side of the machine body) is located on the rear side of the machine body, the cleaning component is located on the right rear side of the machine body. Figure 31h In the process, the body starts to move toward its rear side to achieve the effect of retreat; when the third distance (the distance between the cleaning component and the wall on the rear side of the body) reaches the seventh preset threshold value (for example, 6 cm), that is, Fig.31i The machine stops moving backwards at the position in the middle; and after 1 second, it continues to clean along the new obstacle on the horizontal side of the machine body (i.e., the table and chair legs on the right side of the machine body). Fig.31j shown.
[0418] In an optional embodiment, the edge cleaning method further includes:
[0419] When it is determined based on the obstacle information that the cleaning robot is performing a non-preset edge cleaning task, the action of the body is controlled according to the fifth action strategy to complete the non-preset edge cleaning task.
[0420] In this embodiment, the fifth action strategy is a pre-set strategy, which can control the action of the fuselage by maintaining the current cleaning mode, for example, according to the current travel speed and the current travel direction, the fuselage is controlled to continue to move forward to continue cleaning. Of course, the current travel speed can also be increased or decreased according to actual needs, and the fuselage can be controlled to accelerate or decelerate in the current travel direction to continue cleaning. That is, the fifth action strategy can be the same as or different from the fourth action strategy.
[0421] In an optional embodiment, the above-mentioned determining whether the first distance acquired in real time satisfies a preset change condition includes:
[0422] If the first distance acquired in real time gradually decreases, it is determined that the first distance meets the preset change condition.
[0423] When the first distance between the fuselage and the obstacle on the vertical side of the fuselage gradually decreases, it means that the machine is performing edge cleaning in the obstacle scenario of the preset edge cleaning task. At the same time, there is also a risk of encountering obstacles on the vertical side of the fuselage. At this time, it is necessary to judge the preset obstacle avoidance conditions according to the aforementioned method of this embodiment, and control the fuselage when the cleaning robot meets the preset obstacle avoidance conditions to ensure that the cleaning robot performs the preset edge cleaning task. Under the premise of not retracting the cleaning parts that can be swung out to ensure a high coverage rate, the problem of scratches caused by obstacles caused by the protruding cleaning parts is reduced, thereby effectively extending the service life of the machine.
[0424] Embodiment 4
[0425] Based on the solution provided in the above embodiment, the present embodiment further provides a cleaning device, which may include a body, a first driving component, and a cleaning component movably arranged on the body, the first driving component may be used to drive the cleaning component to swing outward or retract inward relative to the body, the cleaning component having an outward swing state and a retracted state, when the cleaning component is in the outward swing state, the portion of the cleaning component located outside the periphery of the body is larger than the portion of the cleaning component located outside the periphery of the body when the cleaning component is in the retracted state; wherein, the swing distance of the cleaning component corresponding to the retracted state to swing outward is zero, and the swing distance of the cleaning component corresponding to the outward swing state to swing outward is a maximum value, and the swing distance is the moving range of the center of the cleaning component in the width direction of the body.
[0426] The cleaning component is arranged so that it can be swung outward relative to the body, and at least during the edge cleaning process, the cleaning component can be controlled to be swung outward toward the outside of the cleaning equipment, providing the cleaning equipment with higher coverage in the process of cleaning along the edge against obstacles and reducing the scope of missed cleaning; the cleaning component is arranged so that it can be retracted inward relative to the body, and the risk of the cleaning equipment being trapped or touching obstacles (being contaminated by obstacles or contaminating obstacles) caused by the cleaning component being swung outward can be reduced.
[0427] The swing distance of the cleaning member can be fixed. For example, the swing distance of the cleaning member to the outside can be only two values, that is, the swing distance of the cleaning member to the outside corresponding to the outward swing state and the swing distance of the cleaning member to the outside corresponding to the retracted state.
[0428] In some embodiments, the swing distance is infinitely adjustable, or the swing distance is multi-gear adjustable. The swing distance is infinitely adjustable, so that the cleaning component can stay at any desired position; the swing distance is multi-gear adjustable, so that the cleaning component can stay at multiple desired positions. Controlling the cleaning component to stay at multiple desired positions or any position can facilitate controlling the cleaning component to closely adhere to the contour boundary of the obstacle, especially for cleaning along the edge of irregular obstacles, thereby improving the cleaning effect.
[0429] The cleaning device may include a swing transmission mechanism, which is connected to the first driving member and the cleaning member, and the swing transmission mechanism can convert the rotational motion of the first driving member into the reciprocating motion of the cleaning member, thereby driving the cleaning member to swing. The cleaning device may also include an elastic member, which can drive the cleaning member to swing outward only by the elastic force of the elastic member.
[0430] In some other embodiments, the swing transmission mechanism may be connected to a first driving component and an elastic component, wherein the elastic component is connected to a cleaning component; wherein the elastic component cooperates with the first driving component to drive the cleaning component to swing outward; and the first driving component drives the cleaning component to retract inward. By setting the elastic component to cooperate with the first driving component to drive the cleaning component to swing outward, the cleaning component can adjust the position of the cleaning component based on the drive during the edge cleaning process, so that the cleaning component can actively adjust the contour boundary of the obstacle to improve the cleaning effect of irregular obstacles, and can also drive the cleaning component to swing toward the inside of the fuselage based on the force of the obstacle to achieve the effect of buffering or avoiding the collision of the obstacle.
[0431] In some other embodiments, the cleaning device may further include a position sensor, which detects the position of the cleaning component or the swing transmission mechanism to determine whether the cleaning component has reached the desired position, and after the cleaning component has reached the desired position, the position sensor sends an in-position signal to the controller, so that the controller controls the first driving component to stop rotating according to the in-position signal. By detecting the position of the cleaning component or the swing transmission mechanism by the position sensor, the cleaning component can be more accurately controlled to reach the desired position, thereby achieving accurate control of the outward swing and inward retraction of the cleaning component during the cleaning process, improving the cleaning coverage of the cleaning component in complex environments, and reducing the probability of the cleaning component getting stuck.
[0432] In some other embodiments, the cleaning device may further include a self-locking structure, which is used to limit the position of the cleaning component when the cleaning component reaches a desired position. After detecting that the cleaning component has run to a desired position, by limiting the position of the cleaning component, it is possible to prevent the cleaning component from deviating from the position where the cleaning component needs to stay during the operation of the cleaning device, thereby affecting the cleaning coverage or causing the cleaning component to get stuck.
[0433] The specific implementation method of the cleaning device provided in this embodiment can refer to the aforementioned embodiment and will not be described in detail here.
[0434] Embodiment 5
[0435] Based on the cleaning equipment provided in each embodiment of this specification, this embodiment also provides a control method for the cleaning equipment. The specific structure of the cleaning equipment can refer to the aforementioned embodiments and will not be described in detail here.
[0436] For example, the cleaning device may include a body, a first driving component, and a cleaning component movably arranged on the body, the first driving component being used to drive the cleaning component to swing outward or retract inward relative to the body, the cleaning component having an outward swing state and a retracted state, and when the cleaning component is in the outward swing state, the portion of the cleaning component located outside the body is larger than the portion of the cleaning component located outside the body when the cleaning component is in the retracted state; wherein, the swing distance of the cleaning component corresponding to the retracted state to swing outward is zero, and the swing distance of the cleaning component corresponding to the outward swing state to swing outward is a maximum value, and the swing distance is the moving range of the center of the cleaning component in the width direction of the body.
[0437] When the cleaning component is kept in a retracted state to perform edge cleaning on the obstacle, there is no missed cleaning area between the two cleaning components, and the area of the working area A that needs the cleaning device to perform bow cleaning is the working area A1.
[0438] When the cleaning components are controlled to swing outwards to a certain swing distance and the swing distance is greater than zero, when the obstacle is executed along the edge, there is a missed cleaning area A2 between the two cleaning components, so that the working area needs the cleaning device to perform bow cleaning. In addition to the working area A1, there is also a missed cleaning area A2 between the two cleaning components. Therefore, when the cleaning device performs bow cleaning, it is necessary to clean the working area A1 and the missed cleaning area A2. In order to ensure that the bow cleaning can cover the missed cleaning area A2, when planning the bow path, the working area except the coverage area of the cleaning components that swing outwards when following the edge can be fully covered.
[0439] For Fig.17 , Fig.18 The shown bow-shaped path is perpendicular to the route along the edge, and the fuselage is controlled to clean along the first cleaning route of the bow-shaped route; wherein the bow-shaped route includes a first cleaning route and a second cleaning route, the first cleaning route is parallel to the second cleaning route, and both the first cleaning route and the second cleaning route intersect with an obstacle; the fuselage performs edge cleaning for the obstacle when the cleaning component of the cleaning device is swung outward. When the distance between the fuselage and the obstacle meets the rotation condition, the fuselage is controlled to rotate so that the direction of movement of the fuselage is parallel to the second cleaning route, and the fuselage is controlled to clean along the second cleaning route. For example, when the cleaning component is in a retracted state, the fuselage can be controlled to clean along the first cleaning route and the second cleaning route of the bow-shaped route, and when the cleaning component is in a retracted state, the fuselage is controlled to rotate.
[0440] When the cleaning component is kept in a retracted state along the edge, since there is no missed cleaning area A2, full coverage of the edge and the junction of the bow can be achieved when the endpoints of the first and second cleaning routes of the bow are far away from the obstacle, so it is easy to achieve collision avoidance while ensuring full coverage. However, when the cleaning component is controlled to swing outward a certain distance and the swing distance is greater than zero, when the obstacle is executed along the edge, the positions of the endpoints of the first and second cleaning routes need to consider cleaning the missed cleaning area A2, so that the endpoints of the first and second cleaning routes are closer to the obstacle, thereby increasing the probability of the cleaning equipment colliding with the obstacle during the process of switching from the first cleaning route to the second cleaning route. In order to ensure collision avoidance while ensuring full coverage, it is necessary to consider avoiding collisions when designing the reserved distance for changing the bow cleaning line.
[0441] In the embodiment of this specification, the rotation condition includes that the distance between the center of the fuselage and the obstacle is less than or equal to the distance threshold T1. Distance threshold T1 ≥ turning radius R1 + radius R2 corresponding to the maximum width position of the fuselage + H, where H represents the distance of the cleaning component beyond the maximum width of the fuselage edge, and the turning radius R1 is half of the distance between the first cleaning route and the second cleaning route. Fig.19 As shown, the distance threshold T1 between the center of the fuselage (that is, the end point of the first cleaning route and the end point of the second cleaning route) and the obstacle boundary ≥ turning radius R1 + radius R2 corresponding to the maximum width position of the fuselage + H. The H can represent the distance that the cleaning component exceeds the maximum width of the fuselage edge. In the retracted state, the cleaning component does not exceed the maximum width position of the fuselage edge, then H = 0. In the outward swing state, the cleaning component can exceed the maximum width position of the fuselage edge, then H>0. Therefore, under the premise of ensuring full coverage, there will be no problem that the cleaning component rubs against the wall and causes the cleaning component to fall, or the cleaning equipment is too close to the wall and cannot turn or walk normally. Optionally, the distance threshold T1 ≤ turning radius R1 + radius R2 corresponding to the maximum width position of the fuselage + diameter of the cleaning component.
[0442] like Fig.19 The machine body is controlled to move along the first or last route of the bow-shaped route as shown, which is parallel to the route along the edge. For example, when the cleaning component is in a retracted state, the machine body is controlled to move along the first or last route of the bow-shaped route. The first or last route is parallel to the obstacle. When the cleaning component of the cleaning device is swung outward, the machine body performs edge cleaning for the obstacle.
[0443] Similarly, when the cleaning component is kept in a retracted state along the edge, since there is no missed cleaning area A2, full coverage of the junction between the edge and the bow can be achieved when the distance between the first route or the last route and the side obstacle is far, so it is easy to achieve collision avoidance under the premise of ensuring full coverage. However, when the cleaning component is controlled to swing outward a certain distance and the swing distance is greater than zero, when the obstacle is executed along the edge, the position of the first route or the last route needs to consider cleaning the missed cleaning area A2, so that the first route or the last route is closer to the side obstacle, thereby increasing the probability of collision between the cleaning component and the obstacle during the cleaning process of the cleaning device along the first route or the last route.
[0444] In the embodiment of this specification, when the cleaning device moves along the first route or the last route, the distance T2 between the center point of the cleaning device and the obstacle in the width direction ≥ the radius R2 corresponding to the maximum width position of the fuselage + the fuselage fine-tuning distance X + H, where H can represent the distance of the cleaning component beyond the maximum width of the fuselage edge, 0 = < fuselage fine-tuning distance X < = the diameter of the cleaning component. Thus, under the premise of ensuring full coverage, there will be no problem of the cleaning component rubbing against the wall and causing the cleaning component to fall, or the cleaning device being too close to the wall and being unable to turn or move normally when switching the bow-shaped route.
[0445] When the cleaning component is swung outward, the body can be controlled to perform edge cleaning on obstacles in the working area; after completing the edge cleaning of obstacles in the working area, the body can be controlled to perform cleaning along a bow route in the working area. When the cleaning device is cleaning along the edge of obstacles, there may be a variety of emergencies, making the missed cleaning area uncertain. First, along the edge and then in a bow route, the missed cleaning area can be better determined, and the missed cleaning area can be better covered during the bow process, thereby improving the cleaning efficiency.
[0446] Alternatively, the machine body may be controlled to clean along the bow-shaped route in the working area first; after the bow-shaped route in the working area is cleaned, the machine body may be controlled to clean along the edge of the obstacles in the working area when the cleaning component is swung outward. For areas where obstacles are distributed in a relatively regular manner, the bow-shaped route may be cleaned first, and then along the edge.
[0447] In this embodiment, the distance that the cleaning component swings outward can be fixed; or it can be adjustable, for example, the swing distance can be infinitely adjusted or the swing distance can be adjusted in multiple gears. For details, please refer to the above embodiments and will not be elaborated here.
[0448] The specific implementation scheme of this embodiment can refer to the aforementioned embodiment and will not be described in detail here.
[0449] The embodiments of this specification also provide a cleaning system.
[0450] The cleaning system may include multiple cleaning equipment, base stations, cloud platforms and terminal devices. Cleaning equipment, base stations, cloud platforms and terminal devices may communicate with each other. Specifically, cleaning equipment, base stations, cloud platforms and terminal devices may communicate via a communication network. The communication network may include a wireless communication network, such as 2G (second generation mobile communication technology) network, 3G (third generation mobile communication technology) network, 4G (fourth generation mobile communication technology) network, 5G (fifth generation mobile communication technology) etc. The communication network may also include a limited communication communication network. In addition, cleaning equipment and base stations, as well as cleaning equipment and terminal devices may also communicate via short-range wireless communication directions such as Bluetooth, infrared, wireless fidelity (WI-FI) etc.
[0451] The base station is used to disassemble and / or install cleaning components on the cleaning device, charge the cleaning device, and clean up debris in a dust box of the cleaning device.
[0452] The controller can detect whether the cleaning device meets the base station return condition. The base station return condition may include at least one of the following: the cleaning device is low on power, there are a lot of debris in the dust box of the cleaning device, the cleaning component is dirty and needs to be replaced, the carpet needs to be cleaned without a rag, etc. If so, the controller can detect the running state of the cleaning component through a position sensor; if the cleaning component is in an outward swing state, the cleaning component can be controlled to move to a retracted state; when the cleaning component is in a retracted state, the fuselage can be controlled to move to the base station. If the cleaning component is in a retracted state, the fuselage can be directly controlled to move to the base station. After arriving at the base station, when the cleaning component needs to be disassembled, the controller can detect whether the cleaning component is in a retracted state for confirmation; if so, the cleaning component can be disassembled; if not, the cleaning component can be controlled to move to a retracted state first, and then the cleaning component can be disassembled. After arriving at the base station, when the cleaning component needs to be installed, the controller can detect whether the swing transmission mechanism is in a retracted state for confirmation; if so, the cleaning component installation action can be performed; if not, the swing transmission mechanism can be controlled to move to a retracted state first, and then the cleaning component installation action can be performed. This can ensure that the structure of the cleaning device for installing the cleaning component is aligned with the cleaning component to be installed on the base station, thereby achieving smooth installation of the cleaning component.
[0453] In some implementation scenarios, the cleaning component needs to return to the base station for cleaning. Specifically, when the cleaning component needs to be cleaned, the controller controls the cleaning device to return to the base station. Before the cleaning device returns to the base station, the cleaning component needs to be controlled to be in a retracted state so that after the cleaning device returns to the base station, the cleaning component can be aligned with the cleaning mechanism of the cleaning component of the base station. Specifically, before the cleaning device returns to the base station, the cleaning component is controlled to retract; or, before the cleaning device returns to the base station, it is detected whether the cleaning component is in a retracted state, and if not, the cleaning component is controlled to retract. When the cleaning component is in a retracted state, the cleaning device is controlled to return to the base station.
[0454] The cloud platform may include a server, etc. The cloud platform may communicate with the cleaning device and / or the base station. In this way, the cleaning device and / or the base station may download data from the cloud platform, or may also upload data to the cloud platform. For example, the cleaning device and the base station may download driver software from the cloud platform.
[0455] The terminal device may include a smart phone, a tablet computer, etc. The terminal device may communicate with multiple base stations, cleaning equipment, and cloud platforms. The terminal device may obtain the operating status of the cleaning component; the operating status of the cleaning component may be displayed. Alternatively, the user may operate the terminal device so that the terminal device sends instructions to the cleaning device. After receiving the instructions from the terminal device, the cleaning device may control the cleaning component. For example, the instructions may include control instructions, through which the cleaning component may be controlled to move from an outward swing state to an inward retracted state, from an inward retracted state to an outward swing state, swing out a certain swing distance to the outside, retract a certain swing distance to the inside, etc. In this way, the operating status of the cleaning component can be controlled by the user.
[0456] Fig.32 is a structural block diagram of an optional electronic device according to an embodiment of this specification, such as Fig.32 As shown, it includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus, wherein the memory is used to store a computer program;
[0457] The processor is used to implement the method steps in the embodiments of this specification when executing the computer program stored in the memory.
[0458] Optionally, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.32 The communication interface is used for communication between the electronic device and other devices.
[0459] The above-mentioned memory may include RAM, or may include non-volatile memory (non-volatile memory), for example, at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the above-mentioned processor.
[0460] As an example, the memory may include but is not limited to the first drive unit, the detection unit and the first control unit in the mobile control device of the cleaning device. In addition, it may also include but is not limited to other module units in the mobile control device of the cleaning device, which will not be repeated in this example.
[0461] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0462] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0463] It can be understood by those skilled in the art that Fig.32 The structure shown is for illustration only. The device for implementing the mobile control method of the above-mentioned cleaning device may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Fig.32 The structure of the electronic device is not limited. Fig.32 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Fig.32 Different configurations shown.
[0464] In the above embodiments of this specification, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0465] In the several embodiments provided in this specification, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0466] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.
[0467] In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0468] The above is only a preferred implementation of the present specification. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present specification. These improvements and modifications should also be regarded as the scope of protection of the present specification.
Claims
1. A method for controlling a cleaning device, characterized in that: The cleaning device comprises a body, a first driving component, and a cleaning component movably arranged on the body, the first driving component being used to drive the cleaning component to swing outward or retract inward relative to the body, the cleaning component having an outward swing state and a retracted state, and when the cleaning component is in the outward swing state, the portion of the cleaning component located outside the periphery of the body is larger than the portion of the cleaning component located outside the periphery of the body when the cleaning component is in the retracted state; wherein the swing distance of the cleaning component swinging outward corresponding to the retracted state is zero, and the swing distance of the cleaning component swinging outward corresponding to the outward swing state is a maximum value, and the swing distance is the moving range of the center of the cleaning component in the width direction of the body; the method comprises: When the cleaning component is in a retracted state, the body is controlled to move along the first route or the last route in the bow-shaped route; wherein the first route or the last route is parallel to the obstacle; and the body performs edge cleaning for the obstacle when the cleaning component of the cleaning device is swung outward; When the cleaning equipment moves along the first route or the last route, the distance T2 between the center point of the cleaning equipment and the obstacle in the width direction ≥ the radius R2 corresponding to the maximum width position of the fuselage + the fuselage fine-tuning distance X + H, where H can represent the distance that the cleaning component exceeds the maximum width of the fuselage edge, and 0 = < fuselage fine-tuning distance X < = the diameter of the cleaning component.
2. A method for controlling a cleaning device, characterized in that: The cleaning device comprises a body, a first driving component, and a cleaning component movably arranged on the body, the first driving component being used to drive the cleaning component to swing outward or retract inward relative to the body, the cleaning component having an outward swing state and a retracted state, and when the cleaning component is in the outward swing state, the portion of the cleaning component located outside the periphery of the body is larger than the portion of the cleaning component located outside the periphery of the body when the cleaning component is in the retracted state; wherein the swing distance of the cleaning component swinging outward corresponding to the retracted state is zero, and the swing distance of the cleaning component swinging outward corresponding to the outward swing state is a maximum value, and the swing distance is the moving range of the center of the cleaning component in the width direction of the body; the method comprises: When the cleaning component is in a retracted state, the body is controlled to clean along a first cleaning route of a bow-shaped route; wherein the bow-shaped route includes a first cleaning route and a second cleaning route, the first cleaning route is parallel to the second cleaning route, and both the first cleaning route and the second cleaning route intersect with the obstacle; the body performs edge cleaning for the obstacle when the cleaning component of the cleaning device is swung outward; When the distance between the fuselage and the obstacle meets the rotation condition, the fuselage is controlled to rotate when the cleaning component is in the retracted state, so that the moving direction of the fuselage is parallel to the second cleaning route; wherein the rotation condition includes that the distance between the center of the fuselage and the obstacle is less than or equal to the distance threshold T1, and the distance threshold T1 ≥ turning radius R1 + radius R2 corresponding to the maximum width position of the fuselage + H, wherein H represents the distance that the cleaning component exceeds the maximum width of the edge of the fuselage, and the turning radius R1 is half of the distance between the first cleaning route and the second cleaning route; When the cleaning component is in the retracted state, the body is controlled to clean along a second cleaning route.
3. A method for controlling a cleaning device, characterized in that: The cleaning device comprises a body, a first driving component, and a cleaning component movably arranged on the body, the first driving component being used to drive the cleaning component to swing outward or retract inward relative to the body, the cleaning component having an outward swing state and a retracted state, and when the cleaning component is in the outward swing state, the portion of the cleaning component located outside the periphery of the body is larger than the portion of the cleaning component located outside the periphery of the body when the cleaning component is in the retracted state; wherein the swing distance of the cleaning component swinging outward corresponding to the retracted state is zero, and the swing distance of the cleaning component swinging outward corresponding to the outward swing state is a maximum value, and the swing distance is the moving range of the center of the cleaning component in the width direction of the body; the method comprises: Controlling the machine body to move along the first route or the last route in the bow-shaped route; wherein the first route or the last route is parallel to the obstacle; and the machine body performs edge cleaning for the obstacle when the cleaning component of the cleaning device is swung outward; When the cleaning equipment moves along the first route or the last route, the distance T2 between the center point of the cleaning equipment and the obstacle in the width direction ≥ the radius R2 corresponding to the maximum width position of the fuselage + the fuselage fine-tuning distance X + H, where H can represent the distance that the cleaning component exceeds the maximum width of the fuselage edge, and 0 = < fuselage fine-tuning distance X < = the diameter of the cleaning component.
4. A method for controlling a cleaning device, characterized in that: The cleaning device comprises a body, a first driving component, and a cleaning component movably arranged on the body, the first driving component being used to drive the cleaning component to swing outward or retract inward relative to the body, the cleaning component having an outward swing state and a retracted state, and when the cleaning component is in the outward swing state, the portion of the cleaning component located outside the periphery of the body is larger than the portion of the cleaning component located outside the periphery of the body when the cleaning component is in the retracted state; wherein the swing distance of the cleaning component swinging outward corresponding to the retracted state is zero, and the swing distance of the cleaning component swinging outward corresponding to the outward swing state is a maximum value, and the swing distance is the moving range of the center of the cleaning component in the width direction of the body; the method comprises: Controlling the machine body to clean along a first cleaning route of a bow-shaped route; wherein the bow-shaped route includes a first cleaning route and a second cleaning route, the first cleaning route is parallel to the second cleaning route, and both the first cleaning route and the second cleaning route intersect with an obstacle; the machine body performs edge cleaning for the obstacle when the cleaning component of the cleaning device is swung outward; When the distance between the fuselage and the obstacle meets the rotation condition, the fuselage is controlled to rotate so that the moving direction of the fuselage is parallel to the second cleaning route; wherein the rotation condition includes that the distance between the center of the fuselage and the obstacle is less than or equal to the distance threshold T1, and the distance threshold T1 ≥ turning radius R1 + radius R2 corresponding to the maximum width position of the fuselage + H, wherein H represents the distance of the cleaning component beyond the maximum width of the fuselage edge, and the turning radius R1 is half of the distance between the first cleaning route and the second cleaning route; The fuselage is controlled to be cleaned along a second cleaning route.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: When the cleaning component is swung outward, the body is controlled to perform edge cleaning on obstacles in the working area; After completing the edge cleaning of obstacles in the working area, the fuselage is controlled to perform cleaning along a zigzag route in the working area.
6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Controlling the machine body to clean along a bow-shaped route in the working area; After the bow-shaped route in the working area is cleaned, the body is controlled to perform edge cleaning on obstacles in the working area when the cleaning component is swung outward.
7. A cleaning device, characterized in that: The cleaning device comprises a body, a controller, a first driving component, and a cleaning component movably arranged on the body; The first driving component is used to drive the cleaning component to swing outward or retract inward relative to the body, the cleaning component has an outward swing state and a retracted state, and when the cleaning component is in the outward swing state, the portion of the cleaning component located outside the body is larger than the portion of the cleaning component located outside the body when the cleaning component is in the retracted state; wherein The swing distance of the cleaning component swinging outward corresponding to the retracted state is zero, and the swing distance of the cleaning component swinging outward corresponding to the outward state is a maximum value, and the swing distance is the moving range of the center of the cleaning component in the width direction of the fuselage; The swing distance is infinitely adjustable, or the swing distance is adjustable in multiple gears; The controller is used to execute the method according to any one of claims 1 to 6.
8. The cleaning device according to claim 7, characterized in that The cleaning device further comprises a swing transmission mechanism, wherein the swing transmission mechanism is connected to the first driving component and the cleaning component. The swing transmission mechanism is connected to the first driving component and the elastic component, and the elastic component is connected to the cleaning component; wherein the cooperation between the elastic component and the first driving component drives the cleaning component to swing outward; and the first driving component drives the cleaning component to retract inward.
9. The cleaning device according to claim 7, characterized in that: The cleaning device further comprises a swing transmission mechanism, wherein the swing transmission mechanism is connected to the first driving component and the cleaning component; The cleaning device also includes a position sensor, which detects the position of the cleaning component or the swing transmission mechanism to determine whether the cleaning component has reached a required position, and after the cleaning component has reached the required position, the position sensor sends a position signal to the controller so that the controller controls the first driving component to stop rotating according to the position signal.
10. The cleaning device according to claim 7, characterized in that The cleaning device may further include a self-locking structure, and the self-locking structure is used to limit the cleaning component when the cleaning component reaches a required position.
