Cleaning equipment control method, cleaning equipment and storage medium
By swinging and switching routes near obstacles by cleaning equipment, the blind spot problem of cleaning robots being difficult to clean is solved, and the cleaning coverage and user experience are improved.
Patent Information
- Application Number
- CN202410941604.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-07-15
AI Technical Summary
In the indoor environment, due to path planning and obstacle occlusion, cleaning robots have parts that are difficult to clean for a long time, forming a cleaning blind spot and affecting the user experience.
By controlling the cleaning equipment to swing N times near the obstacle and switching the cleaning route along the edge, ensuring that the distance between the cleaning components and the obstacle is within the preset range, cleaning the obstacles along the edges and reducing cleaning blind spots.
It effectively reduces cleaning blind spots, improves cleaning coverage and user experience, and ensures sufficient cleaning of obstacle edges.
Smart Images

Figure CN118452748B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and more particularly to a cleaning device control method, a cleaning device, and a storage medium. Background Art
[0002] With the development of science and technology and the improvement of living standards, robots such as cleaning robots used to clean the environment (sweeping robots, floor washing robots, sweeping and mopping robots) have become increasingly popular, reducing the burden of human housework.
[0003] The working scenes of cleaning robots usually include indoor environments such as residences. Indoor environments are relatively complex. Due to reasons such as path planning and obstacles, cleaning robots may have areas that are difficult to clean for a long time, thus forming cleaning blind spots. The long-term accumulation of cleaning blind spots affects the user experience. Summary of the invention
[0004] The present disclosure provides a cleaning device control method, a cleaning device and a storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a cleaning device control method, wherein the cleaning device includes a cleaning component, and the cleaning device control method includes:
[0006] In the process of the cleaning device moving along the first route along the edge with respect to the obstacle, when the cleaning device moves from a position where the distance between the cleaning device and the obstacle is less than a first threshold to a first position where the distance between the cleaning device and the obstacle is greater than the first threshold, the cleaning device is controlled to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move toward a first direction close to the obstacle;
[0007] After completing the N swings, the cleaning device is controlled to move along a second route toward the obstacle, wherein the directions of the first route and the second route are different, and the distance between the cleaning device and the obstacle at at least part of the position on the second route is smaller than the distance between the cleaning device and the obstacle at the first position.
[0008] In some embodiments, the N swings also include M second rotations, wherein the second rotation causes the cleaning component to move in a second direction away from the obstacle; one second rotation corresponds to one first rotation, wherein M is an integer less than or equal to N, and the first direction is opposite to the second direction.
[0009] In some embodiments, the first rotation comprises a rotation of the cleaning device in the first direction;
[0010] The second rotation includes a rotation of the cleaning device in the second direction.
[0011] In some embodiments, controlling the cleaning device to swing N times includes:
[0012] During the first rotation of the cleaning device, when the distance between the cleaning component and the obstacle is less than a second threshold, the cleaning device is controlled to stop the first rotation.
[0013] In some embodiments, the rotation angle of the first rotation is a predetermined angle.
[0014] In some embodiments, the distance between the cleaning component and the obstacle is positively correlated with the predetermined angle.
[0015] In some embodiments, the obstacles that can be cleaned around obstacles include: columnar obstacles, the size of the columnar obstacles is smaller than a third threshold, and the columnar obstacles include obstacles such as table and chair legs.
[0016] In some embodiments, the first route and the second route are straight routes respectively, and the first route and the second route form at least a portion of the route for cleaning around the obstacle.
[0017] In some embodiments, the first route and the second route are any two adjacent routes among J routes for cleaning around the obstacle, and the J routes for cleaning around the obstacle form a circumscribed polygon around the obstacle, and J is positively correlated with the size of the obstacle.
[0018] In some embodiments, the cleaning component has a retracted position and an outward swing position swung toward the outside of the cleaning device body, and when the cleaning device moves along the first route and the second route, the cleaning component is in the outward swing position to perform edge cleaning on the obstacle.
[0019] In some embodiments, the method includes: while the cleaning device is performing edge cleaning along the first route and / or the second route for an obstacle, adjusting the outward swing distance of the cleaning component to the outward swing position so that the distance between the cleaning component and the obstacle meets a preset distance range.
[0020] In some embodiments, the method includes adjusting the walking path of the first route and / or the second route so that the distance between the cleaning device and the cleaning component and the obstacle meets a preset distance range.
[0021] In some embodiments, the cleaning component is located at the front end of the cleaning device, and the first rotation causes the front end of the body to move toward the obstacle, wherein the front end of the cleaning device faces the forward direction of the cleaning device, and the cleaning component includes a side brush assembly; and / or
[0022] The cleaning component is located at the rear end of the cleaning device. The first rotation causes the rear end of the body to move toward the obstacle, and the rear end of the cleaning device faces away from the forward direction of the cleaning device. The cleaning component includes a rag assembly.
[0023] In some embodiments, controlling the cleaning device to move along the second route along the obstacle includes:
[0024] The cleaning device is controlled to move along a second route from the first position to the obstacle.
[0025] In a second aspect, an embodiment of the present disclosure provides a cleaning device control method, wherein the cleaning device includes a cleaning component, wherein the cleaning component has an inwardly retracted position and an outwardly swung position swung toward the outer side of a body of the cleaning device, and the cleaning device control method includes:
[0026] In the process of the cleaning device moving along the first route along the edge of an obstacle that can be cleaned around, the cleaning component is in an outward swing position to perform edge cleaning on the obstacle, and when the cleaning device moves to a first position where the distance between the cleaning device and the obstacle is greater than a first threshold, the cleaning device is controlled to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move toward a first direction close to the obstacle;
[0027] After completing the N swings, the cleaning device is controlled to move along a second route with the first position as the starting point toward the obstacle, wherein the directions of the first route and the second route are different, and the distance between the cleaning device and the obstacle at at least part of the position on the second route is smaller than the distance between the cleaning device and the obstacle at the first position.
[0028] In some embodiments, the obstacles that can be cleaned around obstacles include: columnar obstacles, the size of the columnar obstacles is smaller than a third threshold, and the columnar obstacles include obstacles such as table and chair legs.
[0029] In some embodiments, when the cleaning device performs a non-edge cleaning task, the cleaning component is in a retracted position; when the cleaning device performs a non-edge cleaning task and recognizes the existence of the obstacle, before moving along the edge of the obstacle, the cleaning component switches from the retracted position to the outward swing position.
[0030] In some embodiments, when the cleaning device performs a non-edge cleaning task, the cleaning component is in an outward swing position; when the cleaning device performs a non-edge cleaning task and recognizes the existence of the obstacle, the outward swing distance of the cleaning component to the outward swing position is adjusted so that the distance between the cleaning component and the obstacle meets a preset distance range.
[0031] In a third aspect, an embodiment of the present disclosure provides a cleaning device control method, wherein the cleaning device includes a cleaning component, and the method includes:
[0032] When the cleaning device performs edge cleaning on an obstacle that can be cleaned around an obstacle, when the distance between the cleaning device and the obstacle is less than a first threshold, the cleaning device moves along a first route with respect to the obstacle, and when the cleaning device moves to a first position where the distance between the cleaning device and the obstacle is greater than the first threshold, the cleaning device is controlled to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move toward a first direction close to the obstacle;
[0033] After completing the N swings, the cleaning device is controlled to move along a second route with the first position as the starting point toward the obstacle, wherein the directions of the first route and the second route are different, and the distance between the cleaning device and the obstacle at at least part of the position on the second route is smaller than the distance between the cleaning device and the obstacle at the first position.
[0034] In a fourth aspect, an embodiment of the present disclosure provides a cleaning device, the cleaning device comprising a control device and a cleaning component, the control device being used to:
[0035] During the process of the cleaning device moving along a first route along an obstacle that can be cleaned around, at a first position where the distance between the cleaning device and the obstacle is greater than a first threshold, the cleaning device is controlled to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move toward a first direction close to the obstacle;
[0036] After completing the N swings, the first position of the cleaning device is controlled to move along a second route with respect to the obstacle, wherein the directions of the first route and the second route are different, and the distance between the cleaning device and the obstacle at at least part of the position on the second route is smaller than the distance between the cleaning device and the obstacle at the first position.
[0037] In a fifth aspect, an embodiment of the present disclosure provides a cleaning device, comprising:
[0038] at least one processor; and,
[0039] a memory communicatively connected to the at least one processor; wherein,
[0040] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the cleaning device control method described in the first aspect, the second aspect, or the third aspect.
[0041] In a sixth aspect, an embodiment of the present disclosure proposes a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is run, the cleaning equipment control method described in the first aspect, the second aspect, or the third aspect is executed.
[0042] A cleaning device control method proposed in an embodiment of the present disclosure includes: in a process in which the cleaning device moves along a first route along an edge toward an obstacle, at a first position where the distance between the cleaning device and the obstacle is greater than a first threshold, controlling the cleaning device to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move in a first direction close to the obstacle; after completing the N swings, controlling the cleaning device to move along a second route along an edge toward the obstacle, wherein the directions of the first route and the second route are different. In this way, when the cleaning device is cleaning the edge of an obstacle, multiple routes are formed along the periphery of the obstacle, and the cleaning device switches different routes in time to form a surround cleaning or a partial surround cleaning of the edge of the obstacle; when the cleaning device is moving along different routes, at adjacent routes, the cleaning device turns from the first route to the second route, at which time the cleaning device turns or advances toward the second route, and the cleaning component may be relatively far away from the obstacle, making it difficult to effectively clean the angle area formed by the first route and the second route, and the path planning of the cleaning device is difficult to cover the angle area. By introducing a swinging motion, the cleaning device performs a swinging motion when the distance between the cleaning device and the obstacle is greater than a first threshold, so that the cleaning component moves toward the obstacle, so as to clean closer to the obstacle area and clean the angle area at the same time. In this way, it is possible to reduce cleaning blind spots, increase cleaning coverage, and enhance user experience.
[0043] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of this specification, the drawings required for use in the embodiments will be briefly introduced below. The drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 is a schematic diagram of the structure of a cleaning device according to an exemplary embodiment;
[0046] Figure 2 is a schematic diagram of the turning of a cleaning device according to an exemplary embodiment;
[0047] Figure 3 is a schematic diagram of the turning of a cleaning device according to an exemplary embodiment;
[0048] Figure 4is a flow chart of a cleaning equipment control method according to an exemplary embodiment;
[0049] Figure 5 is a schematic diagram of a cleaning route of a cleaning device according to an exemplary embodiment;
[0050] Figure 6 is a schematic diagram showing a cleaning device performing a first rotation according to an exemplary embodiment;
[0051] Figure 7 is a schematic diagram showing a cleaning device performing a first rotation according to an exemplary embodiment;
[0052] Figure 8 is a flow chart of a cleaning equipment control method according to an exemplary embodiment;
[0053] Fig. 9 is a flow chart of a cleaning equipment control method according to an exemplary embodiment;
[0054] Fig.10 is a schematic diagram showing a cleaning device performing a second rotation according to an exemplary embodiment;
[0055] Fig.11 is a schematic diagram of the turning of a cleaning device according to an exemplary embodiment;
[0056] Fig.12 is a schematic diagram of the turning of a cleaning device according to an exemplary embodiment;
[0057] Fig.13 is a schematic diagram showing a cleaning device performing a first rotation according to an exemplary embodiment;
[0058] Fig.14 is a schematic diagram showing a cleaning device performing a second rotation according to an exemplary embodiment;
[0059] Fig.15 The figure is a schematic diagram of a cleaning route of a cleaning device according to an exemplary embodiment. DETAILED DESCRIPTION
[0060] In order to make the technical solutions and beneficial effects of the present invention more clearly understandable, the following is a detailed description by listing specific embodiments. The drawings are not necessarily drawn to scale, and local features may be enlarged or reduced to more clearly show the details of the local features; unless otherwise defined, the technical and scientific terms used herein have the same meanings as those in the technical field to which this application belongs.
[0061] The embodiments of the present disclosure are not exhaustive, but are only illustrative of some embodiments, and are not intended to be a specific limitation on the scope of protection of the present disclosure. In the absence of contradiction, each step in a certain embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a certain embodiment can also be implemented as an independent embodiment, and the order of the steps in a certain embodiment can be arbitrarily exchanged. In addition, the optional implementation methods in a certain embodiment can be arbitrarily combined; in addition, the embodiments can be arbitrarily combined, for example, some or all of the steps of different embodiments can be arbitrarily combined, and a certain embodiment can be arbitrarily combined with the optional implementation methods of other embodiments.
[0062] In each embodiment of the present disclosure, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form a new embodiment based on their internal logical relationships.
[0063] The terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.
[0064] In the embodiments of the present disclosure, unless otherwise specified, elements expressed in the singular form, such as "a", "an", "the", "above", "said", "aforementioned", "this", etc., may mean "one and only one", or "one or more", "at least one", etc. For example, when using articles such as "a", "an", "the" in English in translation, the noun after the article may be understood as a singular expression or a plural expression.
[0065] In the embodiments of the present disclosure, “plurality” refers to two or more.
[0066] In some embodiments, the terms “at least one”, “one or more”, “a plurality of”, “multiple”, etc. can be used interchangeably.
[0067] In some embodiments, "at least one of A and B", "A and / or B", "A in one case, B in another case", "A in one case, B in another case", etc., may include the following technical solutions according to the situation: in some embodiments, A (A is executed independently of B); in some embodiments, B (B is executed independently of A); in some embodiments, execution is selected from A and B (A and B are selectively executed); in some embodiments, A and B (A and B are both executed). When there are more branches such as A, B, C, etc., the above is also similar.
[0068] In some embodiments, the recording method of "A or B" may include the following technical solutions according to the situation: in some embodiments, A (A is executed independently of B); in some embodiments, B (B is executed independently of A); in some embodiments, execution is selected from A and B (A and B are selectively executed). When there are more branches such as A, B, C, etc., the above is also similar.
[0069] The prefixes such as "first" and "second" in the embodiments of the present disclosure are only used to distinguish different description objects, and do not constitute restrictions on the position, order, priority, value or content of the description objects. The statement of the description object refers to the description in the context of the claims or embodiments, and should not constitute redundant restrictions due to the use of prefixes. For example, if the description object is a "field", the ordinal number before the "field" in the "first field" and the "second field" does not limit the position or order between the "fields", and the "first" and "second" do not limit whether the "fields" they modify are in the same message, nor do they limit the order of the "first field" and the "second field". For another example, if the description object is a "level", the ordinal number before the "level" in the "first level" and the "second level" does not limit the priority between the "levels". For another example, the numerical value of the description object is not limited by the ordinal number, and can be one or more. Taking the "first device" as an example, the numerical value of the "device" can be one or more. In addition, the objects modified by different prefixes may be the same or different. For example, if the description object is "device", then the "first device" and the "second device" may be the same device or different devices, and their types may be the same or different. For another example, if the description object is "information", then the "first information" and the "second information" may be the same information or different information, and their contents may be the same or different.
[0070] In some embodiments, “including A”, “comprising A”, “used to indicate A”, and “carrying A” can be interpreted as directly carrying A or indirectly indicating A.
[0071] In some embodiments, terms such as “…”, “determine…”, “in the case of…”, “at the time of…”, “when…”, “if…”, “if…”, etc. can be used interchangeably.
[0072] In some embodiments, terms such as "greater than", "greater than or equal to", "not less than", "more than", "more than or equal to", "not less than", "higher than", "higher than or equal to", "not lower than", and "above" can be replaced with each other, and terms such as "less than", "less than or equal to", "not greater than", "less than", "less than or equal to", "no more than", "lower than", "lower than or equal to", "not higher than", and "below" can be replaced with each other.
[0073] In some embodiments, devices, etc. can be interpreted as physical or virtual, and their names are not limited to the names recorded in the embodiments. Terms such as "device", "equipment", "device", "circuit", "network element", "node", "function", "unit", "section", "system", "network", "chip", "chip system", "entity", and "subject" can be used interchangeably.
[0074] In addition, each element, each row, or each column in the table of the embodiments of the present disclosure may be implemented as an independent embodiment, and the combination of any elements, any rows, and any columns may also be implemented as an independent embodiment.
[0075] This specification embodiment provides a robot. Figure 1 .
[0076] The above-mentioned robot can specifically be a cleaning robot or other cleaning equipment. Figure 1 The bottom view of the cleaning robot. The cleaning robot can move autonomously in the working area and complete the cleaning task autonomously without external human information input and control. The working area can include indoor areas and outdoor areas. Indoor areas can include family rooms, offices, shopping malls, factory workshops, etc. Outdoor areas can include lawns, gardens, roads, etc. Cleaning tasks can include sweeping (such as washing, mopping, sweeping, etc.), mowing the lawn, snow removal, etc.
[0077] The above-mentioned cleaning robots include but are not limited to: sweeping robots, floor scrubbers, sweeping and mopping robots, lawn mowers, snow sweeping robots, etc. The cleaning robots can clean by sweeping first and mopping second or by sweeping and mopping separately. Among them, the sweeping and mopping second 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.
[0078] For details, see Figure 1 As shown, the cleaning robot 100 at least includes a body 100, a controller (not shown), one or more cleaning components (120), a walking system and a sensing system (not shown).
[0079] The above-mentioned cleaning components may specifically include one or more of the following: a side brush, a main brush (or roller brush), a rag plate (or mop plate), etc.
[0080] The shape of the fuselage may be circular, square or other shapes. For example, a part of the fuselage may be circular, and another part may be square.
[0081] The controller may include a microcontroller unit (MCU). Of course, the controller may also include other devices that can have control functions.
[0082] The shape of the cleaning component can be circular, square or other shapes (such as semicircular, arc, triangular and other special shapes). The circular shape facilitates the cleaning component to perform rotational cleaning. The special shape facilitates the cleaning component to clean corner areas.
[0083] In a possible implementation, the side brush can gather foreign matter and move it toward the center of the bottom of the cleaning robot. The roller brush can sweep up foreign matter at the bottom of the cleaning robot 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.
[0084] In a possible implementation, a rag is disposed on the rag tray. A water tank is disposed on the cleaning robot. 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.
[0085] In a possible implementation, the main brush is disposed in a main brush cavity at the bottom of the body of the cleaning robot. The main brush cavity is connected to a dust suction channel of the cleaning robot. Smaller garbage such as dust and hair swept up by the main brush and / or the side brush will be sucked into the cleaning robot through the main brush cavity.
[0086] refer to Figure 1 The walking system is arranged on the fuselage, and is used to drive the walking function realized by the fuselage. The walking system generally includes a driver and a walking part, and the driver drives the walking part to move. There can generally be two walking parts, and the two walking parts are symmetrically arranged on the fuselage. The walking parts can be but are not limited to driving wheels, track wheels or steering wheels with adjustable steering. For example: the steering wheel is a Mecanum wheel. In addition, the walking system can be swingably arranged on the fuselage so that the cleaning robot has the function of crossing obstacles during walking. The walking functions here include but are not limited to: straight line walking, self-rotation, and rotation around a predetermined position.
[0087] The sensor system can obtain two-dimensional or three-dimensional information of obstacles, and the cleaning robot can detect and identify obstacles based on the two-dimensional or three-dimensional information of obstacles obtained by the sensor system. Furthermore, the controller can control the cleaning robot accordingly based on the detected and identified obstacles, such as doors.
[0088] The perception system includes a two-dimensional laser radar or a three-dimensional laser radar located above the fuselage, as well as a buffer, a line laser sensor, a visual sensor located at the front of the fuselage, and edge sensors located on the side walls of the fuselage, an ultrasonic sensor and a downward-looking sensor located at the bottom of the fuselage, an inertial measurement unit and an odometer located inside the robot and other sensor devices.
[0089] The recognition system can recognize the environment and obstacles based on the perception data of the perception system. The recognition system can also be implemented by at least one of the following: the perception system, the control system, and a system other than the cleaning robot (such as a cloud server).
[0090] Among them, the buffer can perform obstacle detection by colliding with the obstacle. The edge sensor can detect the distance of the obstacle so that the robot can perform edge cleaning for the obstacle based on the information detected by the edge sensor. Two-dimensional laser radar or three-dimensional laser radar, line laser sensor can collect distance information of obstacles; visual sensors can also be used to identify images of the environment in which the cleaning robot is located; the control system can determine the distance of the obstacle, the outline of the obstacle and the type of obstacle based on the information collected by the two-dimensional laser radar or three-dimensional laser radar, line laser sensor, and visual sensor, and then realize map building, and control the cleaning robot to perform obstacle avoidance / obstacle crossing / edge, etc. The downward sensor is used for cliff detection. The inertial measurement unit can be a device for measuring the three-axis attitude angle (or angular rate) and acceleration of the object to obtain the motion attitude information of the cleaning robot in real time. The odometer can be used to determine the position of the cleaning robot in the map, that is, to locate the cleaning robot. The ultrasonic sensor is used to identify the carpet signal, and the control system controls the cleaning parts of the wet cleaning module of the cleaning robot to lift according to this signal, or controls the cleaning robot to return to the base station to disassemble the cleaning parts of the wet cleaning module. Of course, the above-mentioned perception system is only an example and does not constitute a limitation of the embodiments of this specification.
[0091] It is understandable that the above-mentioned robots are merely illustrative and do not constitute limitations of the embodiments of this specification.
[0092] In some embodiments, Figure 2The cleaning device 100 shown includes a body 110 and a cleaning component 120. The cleaning component is located at the rear of the body. The cleaning component is exemplarily a mop assembly, and the mop assembly can wet mop the cleaning surface. In other embodiments, the cleaning component is exemplarily a side brush assembly, and the side brush assembly can gather the garbage on the cleaning surface to the inner side of the body for suction through the roller brush cavity.
[0093] There are many types of obstacles in the working scene of the cleaning equipment. For example, for obstacles such as electric wires, the cleaning equipment needs to avoid them in time to prevent the electric wires from being drawn into the cleaning equipment and causing damage. For obstacles such as table and chair legs, the cleaning equipment needs to be as close to the edge of the obstacle as possible to achieve full cleaning of the edge of the table and chair legs, avoiding multiple cleaning failures and forming blind spots. Taking the cleaning component as a mop assembly as an example, the mop assembly includes a rag plate and a mop connected to the rag plate. The rag plate is usually at least partially a rigid structure, such as supported by plastic parts. In order to enable the cleaning equipment to fully clean the edge of the obstacle, it is usually necessary to make the cleaning equipment walk as close to the obstacle as possible, but this will make the path planning of the cleaning equipment more difficult, and it is easy for the cleaning equipment to collide with the obstacle. The edge sensor of the cleaning equipment may also have inaccurate detection when it is too close to the obstacle. In addition, when the cleaning equipment is too close to the obstacle, the cleaning component itself may also collide with the obstacle. For example, the collision between the rag plate and the obstacle may cause the rag plate to fall. Therefore, when the cleaning equipment walks around the obstacle, it is usually necessary to keep an appropriate distance from the obstacle. For example, in one embodiment of the present application, the cleaning device may form a plurality of routes on the periphery of the obstacle, and the cleaning robot cleans the edge of the obstacle by walking along the plurality of routes.
[0094] It is understandable that when the cleaning device moves along multiple routes of the obstacle, when the obstacle moves along the first route, after completing the first route, the obstacle needs to adjust the direction of travel to continue to move along the second route; when the cleaning device adjusts the route of travel, the need for the cleaning device to adjust the route of travel and the need for the cleaning device to clean close to the edge of the obstacle are difficult to meet at the same time. For example, when the cleaning component is a mop component and is arranged on the rear side of the cleaning device, when the cleaning device needs to adjust the direction of travel, the cleaning device turns or moves in the direction close to the obstacle. At this time, the front end of the cleaning device deflects in the direction close to the obstacle, and correspondingly, the rear end of the cleaning device deflects in the direction away from the obstacle, that is, the cleaning component generates a movement relatively away from the obstacle at this time. Therefore, it is difficult to clean the edge of the obstacle, so that when switching from the first route to the second route, there is a blind spot for cleaning, which causes missed sweeping and affects the user experience. Therefore, it is necessary to properly handle the blind spot of the cleaning device cleaning along the edge of the obstacle based on the planned route of the cleaning device.
[0095] Figure 2 During the process of the cleaning device cleaning the obstacle 200 along the edge, taking the cleaning component arranged on the rear side of the cleaning device as an example, when the front end of the cleaning device rotates clockwise to approach the obstacle, the cleaning component moves counterclockwise accordingly, thereby creating a cleaning blind spot. Figure 2 This is a state diagram of the cleaning device at different times (time a, time b and time c) during the rotation process. Figure 3 This is an overlapping diagram of the cleaning device at different times (time a, time b and time c) during the rotation process. Figure 3 In the rotating scenario shown, a cleaning component (such as a rag plate) will have a cleaning blind spot 300 at the corner. Therefore, how to reduce the cleaning blind spot, improve the cleaning coverage, and enhance the user experience is an urgent problem to be solved. At the same time, in the process of the cleaning device moving along the first route and / or the second route, since the edge of the obstacle is not necessarily parallel to the first route and / or the second route, the distance between the cleaning component and the edge of the obstacle may also change during the process of the cleaning device moving along the first route and / or the second route, thereby generating an uncleaned blind spot. Therefore, how to reduce the cleaning blind spot generated during the first route and the second route, improve the cleaning coverage, and enhance the user experience is also an urgent problem to be solved.
[0096] The present disclosure provides a method for controlling a cleaning device, wherein the cleaning device includes a cleaning component such as Figure 4 As shown, the cleaning equipment control method includes:
[0097] Step 401: During the process of the cleaning device moving along the first route along the edge of an obstacle that can be cleaned around, when the cleaning device moves from a position where the distance between the cleaning device and the obstacle is less than a first threshold to a first position where the distance between the cleaning device and the obstacle is greater than the first threshold, controlling the cleaning device to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move toward a first direction close to the obstacle;
[0098] Step 402: After completing the N swings, control the cleaning device to move along a second route toward the obstacle, wherein the directions of the first route and the second route are different, and the distance between the cleaning device and the obstacle at at least part of the second route is smaller than the distance between the cleaning device and the obstacle at the first position.
[0099] In a possible implementation, the cleaning device control method in the embodiment of the present disclosure may be executed by a controller of the cleaning device or the like.
[0100] Here, cleaning equipment includes but is not limited to Figure 1 The cleaning robot shown in the figure includes a side brush, and / or a rag plate, etc.
[0101] Obstacle-avoidable cleaning can be a cleaning method in which the cleaning device uses a cleaning route around the obstacle when cleaning the surrounding area of the obstacle. Obstacles that can be cleaned around obstacles can be obstacles that the cleaning device can or needs to use a route around the obstacle to clean the ground around the obstacle.
[0102] The obstacles in this embodiment, unless otherwise specified, are obstacles that can be cleaned around. Obstacles that can be cleaned around include table legs, chair legs, etc. The cleaning device can move along the edge of the table legs and chair legs to clean the ground around the obstacle. Moving along the edge of the obstacle can include moving along the edge of the entire obstacle or moving along the edge of a portion of the obstacle.
[0103] In one possible implementation, the route around the obstacle may include surrounding a portion of the obstacle. For example, for a chair leg disposed against a wall, the cleaning device may perform surrounding cleaning on the side other than the chair leg and the side against the wall.
[0104] In some embodiments, the terms "surrounding", "encircling", "wrapping" and the like can be used interchangeably. In one possible implementation, the cleaning device can use a perception system to perceive an obstacle and its surrounding environment, and then determine whether the obstacle is an obstacle that can be cleaned by circumventing the obstacle. For example, the perception system can determine a point cloud of the obstacle and its surrounding environment, and the processor determines whether the obstacle is a circumventable obstacle based on the point cloud.
[0105] Here, edgewise travel may include a route that keeps the body of the cleaning device and / or the cleaning components within a predetermined distance range of obstacles. For example, if the cleaning components are within the body of the cleaning device, then edgewise travel may include a route that keeps the body of the cleaning device within a predetermined distance range of obstacles. For example, if the cleaning components are within the body of the cleaning device, then edgewise travel may include a route that keeps the body of the cleaning device within a predetermined distance range of obstacles.
[0106] Among them, moving along the edge may include causing the cleaning device to move in a circumferential manner around the obstacle so that the edge of the obstacle is cleaned. For example, when the obstacle is a table leg or a chair leg, the cleaning device may form a circumferential path along the circumference of the table or chair leg to clean the circumferential edge of the table or chair leg; or, moving along the edge may include causing the cleaning device to move in a circumferential manner around part of the obstacle. For example, when the obstacle is a table or chair leg, but the table or chair leg is placed against a wall, there are areas that the cleaning device cannot reach when moving along the table or chair leg. Therefore, only a partial circumferential walking trajectory can be planned for the table or chair leg.
[0107] In a possible implementation, when cleaning along the edge, if the cleaning component is in an outward swing position, the cleaning component can be controlled to maintain a distance from the obstacle within a predetermined distance range to improve the cleaning effect around the obstacle.
[0108] In one possible implementation, the first route and the second route are routes for cleaning along the edge of an obstacle, wherein the first route and the second route may be any two adjacent routes among a plurality of routes for cleaning along the edge around the obstacle, such as two adjacent routes among a plurality of routes when a cleaning device performs a surround cleaning of the obstacle; or, the first route and the second route may be two paths that partially surround the obstacle.
[0109] When the cleaning device moves along the edge, for example, it performs at least partial surrounding cleaning on the obstacle to fully clean the edge of the obstacle. When the cleaning device moves along the obstacle, the cleaning device needs to switch the direction of travel so that the distance between the cleaning device and the obstacle is within a preset distance range to avoid missing the cleaning due to the distance between the cleaning device and the obstacle being too far.
[0110] For example, if the obstacle is small (such as a diameter less than 5CM), the cleaning device can use multiple straight lines to clean the obstacle along the edge and surround the obstacle. The first route and the second route can be two adjacent routes in the process of moving along the edge of the obstacle. When the cleaning device moves along the first route, based on the shape of the obstacle, or based on the path planning of the cleaning device, the distance between the cleaning device and the obstacle does not remain unchanged. For example, when the obstacle is a cylindrical obstacle, when the cleaning device moves in a straight line along the obstacle, the distance between the cleaning device and the obstacle may change from near to far. When the cleaning device moves to the first position where the distance between the cleaning device and the obstacle is greater than the first threshold, the distance between the cleaning device and the obstacle is relatively far, and the direction of travel of the cleaning device needs to be changed so that the cleaning device moves in the direction close to the obstacle, so that the cleaning device can adjust the travel route in time through the cleaning device so that the distance between the cleaning device and the obstacle always meets the preset distance condition, avoiding the cleaning device from walking away from the obstacle. The first position may include the position where the cleaning device turns from the first route to the second route. The first position is the vertex position where the first route and the second route intersect, or the first position connects the first route and the second route, and when the cleaning device moves from the first route to the first position, the second route starts to move from the first position. When multiple routes (such as the first route and the second route) are used to clean the obstacle along the edge, the direction of the cleaning along the edge can be adjusted in time according to the distance between the obstacle and the cleaning device, so that the cleaning device can always be close to the obstacle, so as to improve the cleaning effect of the obstacle along the edge.
[0111] When the cleaning device moves along a first route and a second route, the travel directions of the first route and the second route are different, and an angle may be formed between the first route and the second route. Based on the aforementioned reasons, there may be missed scanning at the angle between the first route and the second route. The cleaning device is controlled to swing at the first position, and the cleaning component swings toward the direction close to the obstacle to achieve at least partial cleaning of the angle, thereby improving the cleaning effect of the cleaning device and reducing or even eliminating cleaning blind spots.
[0112] The first position can be determined in real time by the cleaning device while it is traveling along the first route. Figure 5 As shown, the first route may be a route in which the cleaning device approaches the obstacle from far to near, and moves away from the obstacle from near to far.
[0113] When the cleaning device is moving from a position where the distance between the cleaning device and the obstacle is less than a first threshold value to a first position where the distance between the cleaning device and the obstacle is greater than the first threshold value, it indicates that the distance between the cleaning device and the obstacle is relatively large at this time, and the walking direction of the cleaning device needs to be adjusted so that the cleaning device is close to the obstacle; when switching from the first route to the second route, at least part of the position on the second route, the distance between the cleaning device and the obstacle is less than the distance between the cleaning device and the obstacle at the first position, so that when the cleaning device is relatively far away from the obstacle, it moves in a direction close to the obstacle. Optionally, when the cleaning device is moving along the second route, when the distance between the cleaning device and the obstacle is greater than the first threshold value again, the cleaning device changes its route to move along a third route to approach the obstacle. In this way, the cleaning device can always clean the surrounding area close to the obstacle close to the obstacle, reduce the cleaning blind spot, and improve the cleaning effect.
[0114] Here, if Figure 5 The second route shown may be a route for the cleaning device to move from a position on the first route where the cleaning device is far away from the obstacle and then approach the obstacle again. The first route and the second route are used to achieve partial or complete surrounding of the obstacle.
[0115] The first route and the second route do not overlap, so as to achieve cleaning of different edges of the obstacle.
[0116] In a possible implementation, the first position may include a position where the distance between the cleaning device and the obstacle is greater than a first threshold value, determined during the process of the cleaning device moving along the first route from close to far away from the obstacle. For example, the first threshold value may be 5 cm. Figure 5 As shown, in the first position, the cleaning device is far away from the obstacle, so it needs to adjust the direction of travel and move closer to the obstacle for cleaning, that is, turn to the second route for cleaning. Figure 3 As shown, when the cleaning device turns from the first route to the second route, the cleaning component will move outward (ie, move away from the obstacle), so that a cleaning blind spot appears between the cleaning component and the obstacle. Therefore, the first position cleans the cleaning blind spot by swinging.
[0117] In a possible implementation, the first position may include a position where the distance between the cleaning device and the obstacle is greater than the first threshold and less than a fourth threshold. If the distance between the cleaning device and the obstacle is greater than or equal to the fourth threshold, it means that the cleaning device is far away from the obstacle, and a larger cleaning blind spot will be formed during the process of the cleaning device turning to the second route, or the effect of the swing on cleaning the cleaning blind spot will be reduced, reducing the cleaning efficiency, or when the cleaning device is too far away from the obstacle, the obstacle may not be identified, resulting in missed scanning of the obstacle.
[0118] like Figure 5 As shown, the route along the edge of the obstacle (such as the first route) is usually approaching the obstacle from far to near, and then moving away from the obstacle from near to far, and the first position can be determined based on the characteristics of the route. When the distance between the cleaning device and the obstacle is less than the first threshold, it is equivalent to the cleaning device being in the process of approaching the obstacle or moving away from the obstacle from near to far, and the cleaning device can continue to move along the first route. When the cleaning device moves to the first position where the distance between the cleaning device and the obstacle is greater than the first threshold, it means that the cleaning device has experienced approaching the obstacle and is in the process of moving away from the obstacle, and needs to adjust to the second route. By continuously judging from less than the first threshold to greater than the first threshold, the change in the positional relationship of the cleaning device relative to the obstacle can be determined, so that the first position can be accurately judged. This reduces the situation of position judgment errors and wrong turns caused by only judging that the distance is greater than the first threshold and ignoring the change in the distance to the obstacle on the route.
[0119] The distance between the cleaning device and the obstacle may include the distance between a preset component of the cleaning device and the obstacle. The preset component may include one of the following: a cleaning device body, a cleaning component, and a sensor in a sensing system. The relative positions of the components of the cleaning device are determined, and therefore, the distance between the sensing system and the obstacle can be determined by using the sensor in the sensing system, and then the distance between each component and the obstacle can be determined.
[0120] The distance between the cleaning device and the obstacle may include the distance between a preset component of the cleaning device and the center of the obstacle, or may include the distance between the preset component of the cleaning device and the surface of the obstacle.
[0121] In a possible implementation, the distance between the cleaning device and the obstacle may be a minimum distance between the cleaning device and the obstacle.
[0122] In a possible implementation, the distance between the cleaning device and the obstacle can be measured by a perception system. For example, the cleaning device can scan the obstacle in real time through a line laser sensor to determine the distance between the cleaning device and the obstacle.
[0123] In a possible implementation, the distance between the cleaning device and the obstacle at the second moment may be determined by the distance between the cleaning device and the obstacle at the first moment, based on the travel speed and route of the cleaning device.
[0124] In a possible implementation, the distance between the cleaning device and the obstacle at the second moment can be determined by the time interval between the moment when the perception system last perceived the obstacle and the current moment.
[0125] For example, an obstacle can be sensed by an edge sensor on the side of the cleaning device body. After the edge sensor senses the obstacle, the edge sensor can no longer sense the obstacle (for example, it cannot receive a reflected signal from the obstacle) as a starting point. The cleaning device travels a predetermined distance (such as 5 cm) from the starting point, and then it is considered that the distance between the cleaning device and the obstacle is greater than the first threshold. Here, the predetermined travel distance is positively correlated with the size of the obstacle.
[0126] If the distance between the cleaning device and the obstacle is greater than the first threshold, it means that the cleaning device will leave the edge of the obstacle and needs to plan a second route to continue cleaning the edge of other uncleaned parts of the obstacle.
[0127] like Figure 3 As shown, when the cleaning device turns from the first route to the second route, a cleaning blind area will be generated. Here, the cleaning device can be controlled to swing. The swing includes a first rotation of the cleaning device to move the cleaning component toward the obstacle. Figure 6 As shown, the cleaning device performs a first rotation in a first direction as shown by an arrow at a first position. Figure 6 As shown, the cleaning component deflects toward the cleaning blind area to clean the cleaning blind area. Figure 7 As shown, the cleaning device cleans along a first route, and a cleaning blind area is generated at a first position when the first route turns to a second route. The cleaning device swings at the first position to ensure that the cleaning component can cover at least part of the cleaning blind area, thereby reducing the cleaning blind area and improving the cleaning effect.
[0128] In one possible implementation, the rotation angle of the first rotation can be determined based on the rotation route of the cleaning device when it turns from the first route to the second route. For example, the rotation angle of the first rotation can be determined based on the radius of the arc of the cleaning device rotation route. The rotation angle of the first rotation is negatively correlated with the radius of the arc of the cleaning device rotation route.
[0129] Here, the cleaning device can swing once or multiple times, that is, the cleaning device can clean the blind spot once or multiple times according to the control, thereby improving the cleaning effect of the blind spot.
[0130] In a possible implementation, the first position may include a position where the distance between the cleaning device and the obstacle is greater than the first threshold and less than a fourth threshold. If the distance between the cleaning device and the obstacle is greater than or equal to the fourth threshold, it means that the cleaning device is far away from the obstacle, and the swinging cannot play a role in cleaning the blind spot well.
[0131] After completing the swing, the cleaning device can turn to the second route and continue to edge the obstacle along the second route.
[0132] In this way, when the cleaning device is cleaning the obstacle along the edge, the first route and the second route form an angle position. When the cleaning device is turning from the first route to the second route, due to the walking route, the cleaning component cannot always be close to the obstacle for cleaning, so that a cleaning blind spot appears between the cleaning component and the obstacle, and the cleaning component cannot clean the cleaning blind spot during the normal movement of the cleaning device. The cleaning device changes the position of the cleaning component relative to the obstacle by swinging, and then can clean this blind spot, thereby reducing the cleaning blind spot, increasing the cleaning coverage rate, and improving the user experience.
[0133] The present disclosure provides a method for controlling a cleaning device, wherein the cleaning device includes a cleaning component such as Figure 8 As shown, the cleaning equipment control method includes:
[0134] Step 801: During the process of the cleaning device moving along the first route along the edge of an obstacle, the cleaning component is in an outward swing position to perform edge cleaning on the obstacle, and when the cleaning device moves to a first position where the distance between the cleaning device and the obstacle is greater than a first threshold, the cleaning device is controlled to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move toward a first direction close to the obstacle;
[0135] Step 802: After completing the N swings, control the cleaning device to move along a second route with the first position as a starting point with respect to the obstacle, wherein the directions of the first route and the second route are different.
[0136] In the absence of contradiction, step 801 and / or step 802 may be implemented separately or in combination with step 401 and / or step 402. The same or similar parts of step 801 and / or step 802 as those of step 401 and / or step 402 are not described in detail here.
[0137] In a possible implementation, the cleaning component has a retracted position and an outward swing position that swings toward the outside of the cleaning device. When the cleaning device moves along an obstacle to clean along the edge, the cleaning device may not be able to move completely close to the obstacle due to volume limitations. By setting the cleaning component to have an outward swing position, when the cleaning device cannot move close to the obstacle, the cleaning component can be relatively close to the obstacle to clean the edge of the obstacle.
[0138] In a possible implementation, the cleaning component may be in an outward swing position. The cleaning device may perform edge cleaning on obstacles when the cleaning component is in the outward swing position.
[0139] Compared with the retracted position, when the cleaning component is in the outward swing position, the area of the cleaning component outside the cleaning device body is larger, which is more conducive to cleaning close to obstacles to improve cleaning efficiency.
[0140] In a possible implementation, when the cleaning component is in the retracted position, the cleaning component may be at least partially located within the cleaning device body; when the cleaning component is in the swing-out position, the cleaning component may be partially or completely located outside the cleaning device body.
[0141] In a possible implementation, the swing-out position is a plurality of discrete positions, that is, the swing-out position has a plurality of gears, and the cleaning device can switch the cleaning component to one of the plurality of swing-out positions.
[0142] In a possible implementation, the outward swing position is a linearly adjustable position, that is, the outward swing position is an infinitely adjustable position.
[0143] In a possible implementation, the swing-out position is a fixed position, and when the cleaning component is switched from the retracted position to the swing-out position, it can be maintained at a fixed position to achieve edge cleaning.
[0144] The cleaning component is in the outward swing position to perform edge cleaning on obstacles. Compared with the retracted position, on the one hand, it can cover a larger cleaning area. On the other hand, when cleaning along the edges of obstacles, it can reduce the impact of the cleaning equipment body on the edge route, allowing the cleaning component to be closer to the obstacle, thereby improving the edge cleaning effect.
[0145] In a possible implementation, after completing N swings, the cleaning device turns from the first position to the second route. Turning from the first position to the second route can reduce the cleaning omission area caused by the change in the position of the cleaning device during the rotation from the first route to the second route, thereby improving the cleaning effect.
[0146] When the first route and the second route form an angle, the cleaning device cannot maintain a position close to the obstacle due to the travel route when it turns from the first route to the second route, resulting in a cleaning blind spot between the cleaning component and the obstacle. The cleaning component cannot clean the blind spot during the normal movement of the cleaning device. The cleaning device changes the position of the cleaning component relative to the obstacle by swinging, and can then clean the blind spot. During the swinging process, the body rotates the same angle, and the cleaning component in the outward swing position relative to the retracted position of the embodiment of the present disclosure can cover a wider range, thereby improving the coverage of the cleaning blind spot and improving the cleaning efficiency.
[0147] In some embodiments, the distance between the cleaning device and the obstacle at at least a portion of the second route is smaller than the distance between the cleaning device and the obstacle at the first position.
[0148] like Figure 5 As shown, the route along the edge of the obstacle (such as the first route) is usually approaching the obstacle from far to near, and then moving away from the obstacle from near to far, and the first position can be determined based on the characteristics of the route. When the distance between the cleaning device and the obstacle is less than the first threshold, it is equivalent to the cleaning device being in the process of approaching the obstacle or moving away from the obstacle from near to far, and the cleaning device can continue to move along the first route. When the cleaning device moves to the first position where the distance between the cleaning device and the obstacle is greater than the first threshold, it means that the cleaning device has experienced approaching the obstacle and is in the process of moving away from the obstacle, and needs to adjust to the second route. By continuously judging from less than the first threshold to greater than the first threshold, the change in the positional relationship of the cleaning device relative to the obstacle can be determined, so that the first position can be accurately judged. This reduces the situation where the position judgment error and wrong turn are caused by only judging that the distance is greater than the first threshold and ignoring the change in the distance to the obstacle on the route.
[0149] In some embodiments, when the cleaning device performs a non-edge cleaning task, the cleaning component is in a retracted position; when the cleaning device performs a non-edge cleaning task and recognizes the existence of the obstacle, before moving along the edge of the obstacle, the cleaning component switches from the retracted position to the outward swing position.
[0150] In some embodiments, when the cleaning device performs a non-edge cleaning task, the cleaning component is in an outward swing position; when the cleaning device performs a non-edge cleaning task and recognizes the existence of the obstacle, the outward swing distance of the cleaning component to the outward swing position is adjusted so that the distance between the cleaning component and the obstacle meets a preset distance range.
[0151] The cleaning equipment can switch the position of cleaning parts according to different scenarios, and also meet different cleaning scenarios.
[0152] The cleaning device may have multiple cleaning components, such as the cleaning device may have two rag plates. When the cleaning components are in the retracted position, there is no gap between the cleaning components, and no missed sweeping space will be generated during the cleaning process. When the cleaning device performs non-edge cleaning tasks (such as bow-shaped route cleaning of an open space), the cleaning components are in the retracted position, which can reduce the missed sweeping space caused by the gaps between the cleaning components and improve the cleaning effect. When the cleaning device moves along an obstacle to clean along the edge, the cleaning device may not be able to move completely close to the obstacle due to volume limitations (such as the cleaning components are within the coverage of the fuselage). By setting the cleaning components to have an outward swing position, the cleaning components can be relatively close to the obstacle to achieve cleaning of the edge of the obstacle.
[0153] In a possible implementation, the outward swing position of the cleaning component is adjustable. By adjusting the outward swing position, on the one hand, the degree of fit between the cleaning component and the obstacle bracket can be improved. On the other hand, by adjusting the outward swing position according to the outer edge of the obstacle, the collision between the cleaning component and the obstacle can also be reduced. A cleaning device control method is provided, wherein the cleaning device includes a cleaning component, such as Fig. 9 As shown, the cleaning equipment control method includes:
[0154] Step 901: when the cleaning device performs edge cleaning on an obstacle, when the distance between the cleaning device and the obstacle is less than a first threshold, the cleaning device moves along a first route with respect to the obstacle, and when the cleaning device moves to a first position where the distance between the cleaning device and the obstacle is greater than the first threshold, the cleaning device is controlled to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move toward a first direction close to the obstacle;
[0155] Step 902: After completing the N swings, control the cleaning device to move along a second route with the first position as a starting point with respect to the obstacle, wherein the first route and the second route have different directions.
[0156] Here, if there is no contradiction, step 901 and / or step 902 can be implemented separately, or can be implemented in combination with step 401, step 402, step 801 and / or step 802. The same or similar parts of step 901 and / or step 902 as step 401, step 402, step 801 and / or step 802 are not repeated here.
[0157] Here, when the distance between the cleaning device and the obstacle is less than the first threshold, the cleaning device moves along the first route. At this time, the distance between the cleaning device and the obstacle is small, which can achieve a better cleaning effect along the edge. When the cleaning device moves to the first position where the distance between the cleaning device and the obstacle is greater than the first threshold, the distance between the cleaning device and the obstacle is large, and a cleaning blind spot may be generated between the cleaning component and the obstacle. At this time, the cleaning device can turn to the second route. For the cleaning blind spot generated during the turning process, the cleaning identification can swing N times to clean the cleaning blind spot.
[0158] In a possible implementation, after completing N swings, the cleaning device turns from the first position to the second route. Turning from the first position to the second route can reduce the cleaning omission area caused by the change in the position of the cleaning device during the rotation from the first route to the second route, thereby improving the cleaning effect.
[0159] In some embodiments, the distance between the cleaning device and the obstacle at at least a portion of the second route is smaller than the distance between the cleaning device and the obstacle at the first position.
[0160] Here, the second route may be a route for the cleaning device to clean along the edge close to the obstacle. Figure 5 As shown, the cleaning device turns to the second route at the first position. Since the distance between the cleaning device and the obstacle is large at the first position, a blind spot will be generated during edge cleaning. Therefore, the cleaning device can turn to a route close to the obstacle on the second route. In this way, edge cleaning on the second route can reduce the blind spot caused by the cleaning device being far away from the obstacle, and improve the effect of edge cleaning on the obstacle.
[0161] When the first route and the second route form an angle, the cleaning device cannot maintain a position close to the obstacle due to the travel route when it turns from the first route to the second route, resulting in a blind spot between the cleaning component and the obstacle. The cleaning component cannot clean the blind spot during the normal travel of the cleaning device. The cleaning device changes the position of the cleaning component relative to the obstacle by swinging, and can then clean the blind spot, thereby reducing the blind spot, increasing the cleaning coverage, and improving the user experience.
[0162] After the swing is completed, the cleaning device turns from the first position to the second route. Turning from the first position to the second route can reduce the cleaning omission area caused by the position change of the cleaning device during the rotation from the first route to the second route, thereby improving the cleaning effect.
[0163] In some embodiments, the N swings also include M second rotations, wherein the second rotation causes the cleaning component to move in a second direction away from the obstacle; one second rotation corresponds to one first rotation, wherein M is an integer less than or equal to N, and the first direction is opposite to the second direction.
[0164] relatively Figure 6 The first rotation shown, Fig.10 As shown, the second rotation may include the cleaning device being in a position after the first rotation, rotating in a direction opposite to the first rotation, that is, in a second direction indicated by an arrow.
[0165] In a possible implementation, M=0. The swinging of the cleaning device may not include the second rotation. For example, the cleaning device may not perform the second rotation after the first rotation, but directly turn to the second route at the position after completing the first rotation for subsequent cleaning.
[0166] In a possible implementation, M=N. In the swinging of the cleaning device, each first rotation may correspond to a second rotation. That is, one swinging includes one first rotation and one second rotation. For example, the cleaning device may perform a second rotation after the first rotation, and the second rotation may enable the cleaning component to move away from obstacles and prepare for the next swinging.
[0167] In a possible implementation, the second rotation restores the cleaning device to a position before the first rotation.
[0168] In some embodiments, controlling the cleaning device to move along the second route with respect to the obstacle comprises: controlling the cleaning device to move along the second route with respect to the obstacle from the first position.
[0169] Turning from the first position to the second route can reduce the cleaning omission area caused by the change in the position of the cleaning device during the rotation from the first route to the second route, thereby improving the cleaning effect. In a possible implementation, after completing N swings, the cleaning device turns from the first position to the second route.
[0170] In a possible implementation, M=N-1. In the swing of the cleaning device, each first rotation in the first M swings may correspond to a second rotation. The Nth swing may include only the first rotation but not the second rotation. For example, the cleaning device may perform multiple first rotations, perform the second rotation after each first rotation, and prepare for the next first rotation. After the last first rotation, the second rotation is not performed, but the cleaning device turns to the second route at the position after the last first rotation.
[0171] In a possible implementation, the cleaning device can achieve the first rotation and the second rotation through the rotating wheels in the traveling system.
[0172] The second rotation can move the cleaning component away from obstacles, leaving rotation space for the subsequent first rotation, thereby achieving multiple first rotations, improving the cleaning effect of blind spots, and improving user experience; in addition, the second rotation can make the cleaning component at least partially restore the position before the first rotation, so as to facilitate the cleaning device to switch from the first route to the second route.
[0173] In some embodiments, the first rotation includes the self-rotation of the cleaning device in the first direction; and the second rotation includes the self-rotation of the cleaning device in the second direction.
[0174] Here, the first rotation and the second rotation can timely rotate the cleaning device around its own rotation center. The self-rotation of the cleaning device can reduce the offset of the cleaning device relative to the first position during the rotation process, thereby reducing the cleaning blind area and route offset caused by the offset, and improving the route accuracy and cleaning effect.
[0175] In a possible implementation, the first rotation and the second rotation have the same rotation amplitude. That is, after the cleaning device performs the second rotation, it can be restored to the position before the cleaning identification performs the first rotation; or, the first rotation and the second rotation amplitude can be different, for example, the second rotation amplitude can be greater than the first rotation amplitude, so that after completing the second rotation, the cleaning device can directly move along the second route to perform edge cleaning.
[0176] In a possible implementation, the first rotation and the second rotation may be rotations along a predetermined arc.
[0177] In some embodiments, the cleaning component is located at the front end of the cleaning device, and the first rotation causes the front end of the body to move toward the obstacle, wherein the front end of the cleaning device faces the forward direction of the cleaning device, and the cleaning component includes a side brush assembly; and / or the cleaning component is located at the rear end of the cleaning device, and the first rotation causes the rear end of the body to move toward the obstacle, and the rear end of the cleaning device faces away from the forward direction of the cleaning device, and the cleaning component includes a rag assembly.
[0178] Figure 2 In the cleaning device shown, the cleaning component is located at the rear end of the machine body. Fig.11 The cleaning device shown has a cleaning component located at the front end of the body.
[0179] The cleaning component is located at the front end of the machine body. When the cleaning device turns from the first route to the second route, the cleaning component is located at the far end away from the obstacle. Therefore, when the cleaning device turns, the cleaning component cannot cover the corner area due to the turning radius and other reasons. For example, Fig.11 This is a state diagram of a cleaning device whose cleaning component is located at the front end of a machine body at different times (time a, time b and time c) during the rotation process. Fig.12 for Fig.11 The state overlap diagram of the cleaning device at different times (time a, time b and time c) during its rotation is shown. Fig.12 As described above, when the cleaning component is located at the front end of the fuselage and turns, the cleaning component cannot cover the corner area, thereby generating a cleaning blind area.
[0180] The cleaning device with the cleaning component located at the front end of the cleaning device and the cleaning device with the cleaning component located at the rear end of the cleaning device can both perform a first rotation at the first position so that the cleaning component cleans the cleaning blind area.
[0181] Figure 6 and Fig.10 The first rotation direction and the second rotation direction of the cleaning device whose cleaning component is located at the rear end of the fuselage are respectively shown.
[0182] Fig.13 and Fig.14 The first rotation direction and the second rotation direction of the cleaning device whose cleaning component is located at the front end of the body are respectively shown.
[0183] In this way, no matter the cleaning component is located at the front end or the rear end of the cleaning device, when the cleaning device is cleaning the edge of an obstacle, the cleaning blind spot caused by the turning of the cleaning device can be cleaned by swinging before turning, thereby reducing the cleaning blind spot, increasing the cleaning coverage rate, and improving the user experience.
[0184] In some embodiments, controlling the cleaning device to swing N times includes:
[0185] During the first rotation of the cleaning device, when the distance between the cleaning component and the obstacle is less than a second threshold, the cleaning device is controlled to stop the first rotation.
[0186] Here, the controller may control the stopping of the first rotation based on the distance between the cleaning member and the obstacle.
[0187] The distance between the cleaning component and the obstacle can be determined based on the perception of the perception system. The perception system can sense the distance between the cleaning device and the obstacle, and the relative positions between the components of the cleaning device are determined. Therefore, the distance between the cleaning component and the obstacle can be determined by the distance between the sensor and the obstacle that can be determined by the sensor in the perception system.
[0188] In a possible implementation, the second threshold value may be equal to 0. That is, the first rotation is stopped when the cleaning component comes into contact with the obstacle.
[0189] In a possible implementation, the controller may stop the first rotation by braking the steering wheels of the cleaning device.
[0190] Being too close to obstacles can easily lead to collision risks. For example, after a collision, the rag plate may fall outside the sensing range of the cleaning device (or the cleaning device base station), making it difficult for the cleaning device to find and install the rag plate, resulting in abnormal cleaning.
[0191] By controlling the stopping of the first rotation according to the distance between the cleaning component and the obstacle, the cleaning component can be enabled to perform cleaning as required and the collision between the cleaning component and the obstacle can be reduced.
[0192] In some embodiments, the rotation angle of the first rotation is a predetermined angle.
[0193] Here, the cleaning device may perform a first rotation at a predetermined angle. The predetermined angle may be determined based on at least one of the following judgment conditions: the distance between the cleaning device and the obstacle; the turning angle of the cleaning device from the first route to the second route; and the turning arc parameters (such as the radius of the arc, etc.) of the cleaning device from the first route to the second route.
[0194] In a possible implementation, the plurality of first rotations may all adopt a predetermined angle.
[0195] Performing the first rotation at a predetermined angle can reduce the measurement of the distance between the cleaning component and the obstacle during the rotation process, reduce the burden on the sensing system and the controller, and reduce the complexity of the swing.
[0196] In a possible implementation, in a plurality of first rotations, the predetermined angle of each first rotation may be determined based on a judgment condition before the rotation.
[0197] In a possible implementation, the cleaning device may make a first rotation at a predetermined angle, and during the first rotation of the cleaning device, if the distance between the cleaning component and the obstacle is less than or equal to a second threshold, the cleaning device is controlled to stop the first rotation.
[0198] In some embodiments, the distance between the cleaning component and the obstacle is positively correlated with the predetermined angle.
[0199] The greater the distance between the cleaning component and the obstacle, the greater the swing amplitude required, so the cleaning device needs to rotate to a larger predetermined angle, so that the cleaning device can clean more blind areas during the first rotation process.
[0200] In a possible implementation, the predetermined angle is negatively correlated with the size of the obstacle. The smaller the obstacle, the larger the angle between the first route and the second route, the larger the cleaning blind area, and thus the larger the swing amplitude required, so the cleaning device needs to rotate a larger predetermined angle.
[0201] In some embodiments, the first route and the second route are straight routes respectively, and the first route and the second route form at least a portion of the route for cleaning around the obstacle.
[0202] like Figure 5 As shown, the first route and the second route constitute partial routes for performing edge cleaning around obstacles.
[0203] In a possible implementation, the route for cleaning around obstacles only includes the first route and the second route. For example, when the chair legs are arranged against the wall, the first route and the second route realize the surrounding of the chair legs.
[0204] The first route and the second route can adopt a straight line route. On the one hand, the use of a straight line route can reduce the complexity of route control. On the other hand, when a straight line route is adopted, the cleaning coverage area of the cleaning equipment is relatively fixed. Compared with a curved route, a straight line route can reduce the missed cleaning area generated by the cleaning equipment during the turning process.
[0205] In some embodiments, the first route and the second route are any two adjacent routes among J routes for cleaning around the obstacle, and the J routes for cleaning around the obstacle form a circumscribed polygon around the obstacle, and J is positively correlated with the size of the obstacle.
[0206] Wherein, J is an integer greater than or equal to 2.
[0207] like Fig.15 As shown, the route for edge cleaning of the obstacle cleaning device may include J straight line routes.
[0208] In a possible implementation, J straight lines may form a closed graph.
[0209] In a possible implementation, the J straight lines may form an incomplete graph.
[0210] In a possible implementation, two adjacent straight lines have an intersection point, which may be the first position where the cleaning device swings.
[0211] The first route and the second route may be any two adjacent straight paths among the J straight routes. That is, the cleaning device may swing at the intersection of any two adjacent straight routes among the J straight routes to clean the cleaning blind area generated when the cleaning device rotates from one straight route to another straight route.
[0212] In some possible implementations, the first route and the second route may be straight routes as a whole. Due to the influence of the cleaning equipment's ability to move in a straight line, the ground environment, etc., the cleaning equipment may deviate from the straight line, make a callback, etc. during the straight line movement, so there may be some curved sections in the straight route.
[0213] In some embodiments, the obstacles that can be cleaned around obstacles include: columnar obstacles, the size of the columnar obstacles is smaller than a third threshold, and the columnar obstacles include obstacles such as table and chair legs.
[0214] In some possible implementations, the size of the columnar obstacle is greater than or equal to the third threshold, and the cleaning device may not perform edge cleaning through J straight routes. For example, when the size of the columnar obstacle is greater than or equal to the third threshold, the cleaning recognition may directly walk along the edge of the columnar obstacle to perform edge cleaning. In some possible implementations, the size of the columnar obstacle is less than the third threshold, and the cleaning device may perform surround cleaning on the columnar obstacle. Surround cleaning may include at least cleaning along the continuous first route and the second route.
[0215] Here, the obstacles may include columnar obstacles such as table legs, chair legs, etc. For columnar obstacles, the cleaning device needs to be able to perform edge cleaning around the columnar obstacles.
[0216] Obstacles such as table and chair legs may include columnar supports of furniture such as tables and chairs.
[0217] The J straight lines form tangents surrounding the cylindrical obstacle. In this way, the cleaning device can be relatively close to the obstacle when moving along the straight line, thereby improving the cleaning effect along the edge.
[0218] The size of the cylindrical obstacle may include at least one of the following: the radial size of the cylindrical obstacle; the circumferential size of the cylindrical obstacle; the circumference of the cross section of the cylindrical obstacle; the distance between two predetermined points of the cross section of the cylindrical obstacle (such as the length of a rectangular cross section, the width of a rectangular cross section, etc.).
[0219] In a possible implementation, the cleaning device may use a perception system to perceive obstacles. For example, the cleaning device may use a line laser sensor to scan obstacles to obtain a point cloud of the obstacles. The shape and / or size of the obstacles are determined through the point cloud.
[0220] The smaller the obstacle, the larger the angle between the first route and the second route, and the larger the cleaning blind area, so the required swing amplitude is larger, so the cleaning device needs to rotate to a larger predetermined angle. The larger the obstacle, the larger the angle between the first route and the second route, and the smaller the cleaning blind area. When the size of the columnar obstacle is greater than or equal to the third threshold, the cleaning blind area can be ignored. If the size of the columnar obstacle is less than the third threshold and the resulting cleaning blind area is large, swinging is performed during the edge cleaning process of the obstacle to achieve cleaning of the cleaning blind area.
[0221] In one possible implementation, if the cleaning identification determines that the obstacle is a cylindrical obstacle and the size of the cylindrical obstacle is smaller than a third threshold, it is determined to perform circumferential edge cleaning, and to swing between two straight line routes during the circumferential edge cleaning to clean the blind spot.
[0222] In some embodiments, the J straight lines of the edge cleaning form a circumscribed polygon surrounding the obstacle, and J is positively correlated with the size of the obstacle.
[0223] For example, Fig.15 As shown, J straight lines form a circumscribed polygon, and the cleaning device can clean the surroundings of the obstacle when moving along the edge of the circumscribed polygon.
[0224] Here, the larger the size of the obstacle, the larger J. The smaller the size of the obstacle, the smaller J.
[0225] In some embodiments, the cleaning component has a retracted position and an outward swing position swung toward the outside of the cleaning device body, and when the cleaning device moves along the first route and the second route, the cleaning component is in the outward swing position to perform edge cleaning on the obstacle.
[0226] The cleaning component is in the outward swing position to perform edge cleaning on obstacles. Compared with the inward position, on the one hand, it can cover a larger cleaning area. On the other hand, when cleaning along the edges of obstacles, it can reduce the impact of the cleaning equipment body on the edge route, so that the cleaning component can be closer to the obstacle, thereby improving the edge cleaning effect.
[0227] In some embodiments, the method further includes: while the cleaning device is performing edge cleaning along the first route and / or the second route for an obstacle, adjusting the outward swing distance of the cleaning component to the outward swing position so that the distance between the cleaning component and the obstacle meets a preset distance range.
[0228] During the cleaning process of cleaning identification, the cleaning device can sense the distance between the cleaning component and the obstacle through the sensing system. The way in which the sensing system senses the distance between the cleaning component and the obstacle is as described above and will not be repeated here.
[0229] During the process of the cleaning device moving along the first route and / or the second route, since the edge of the obstacle is not necessarily parallel to the first route and / or the second route, the distance between the cleaning component and the edge of the obstacle may also change during the process of the cleaning device moving along the first route and / or the second route, thereby generating uncleaned areas.
[0230] The cleaning device can adjust the distance between the cleaning component and the obstacle by self-rotation and swinging or adjusting the relative position of the cleaning component and the cleaning device body through a driving component while moving along the first route and / or the second route, thereby achieving a predetermined distance between the cleaning component and the obstacle, thereby reducing the uncleaned area during the moving along the edge.
[0231] The cleaning equipment can plan a first route and / or a second route to keep the cleaning equipment at a reasonable distance from obstacles, or to keep the cleaning components at a reasonable distance from obstacles. On the one hand, this can reduce collisions with obstacles caused by the cleaning equipment being too close to obstacles, and on the other hand, it can reduce cleaning blind spots caused by the cleaning equipment being too far from obstacles.
[0232] For example, when the cleaning component is far away from the obstacle, the cleaning device can adjust the distance of the cleaning component so that the cleaning component is relatively close to the obstacle; when the cleaning component is close to the obstacle, the cleaning device can adjust the distance of the cleaning component so that the cleaning component is relatively far away from the obstacle.
[0233] In a possible implementation, the predetermined distance may include a predetermined distance range.
[0234] In a possible implementation, the relative predetermined distance between the cleaning component and the obstacle may be 0. That is, the cleaning component and the obstacle may maintain a contact state.
[0235] In a possible implementation, the first rotation during the swinging process may include adjusting the rotation speed. The rotation speed of the first rotation is negatively correlated with the distance between the cleaning component and the obstacle. For example, at the beginning of the first rotation, since the cleaning component is far away from the obstacle, a larger rotation speed is used. When the cleaning component approaches the obstacle, the rotation speed can be reduced. When the distance between the cleaning component and the obstacle reaches a distance threshold (such as 0), the rotation speed of the first rotation is 0. After the first rotation is completed, the second rotation can be performed.
[0236] In a possible implementation, the rotation speed of the first rotation is linearly negatively correlated with the distance between the cleaning component and the obstacle.
[0237] In a possible implementation, a plurality of different rotation speeds of the first rotation respectively correspond to different distance ranges between the cleaning component and the obstacle.
[0238] In some embodiments, the cleaning device further comprises a driving structure, wherein the driving component is used to drive the cleaning component to move between a retracted position and an outward swing position, and to adjust a distance by which the cleaning component swings outward from the body of the cleaning device;
[0239] The adjusting the position of the cleaning component so that the cleaning component maintains a predetermined distance from the obstacle includes at least one of the following:
[0240] The outward swing position is fixed, and the first route and / or the second route are adjusted so that the cleaning device drives the cleaning component to maintain a predetermined distance from the obstacle;
[0241] The swing-out position is adjustable, and the swing-out position is adjusted so that the cleaning component maintains a predetermined distance from the obstacle. In a possible implementation, the swing-out position is a plurality of discrete positions. That is, the swing-out position has a plurality of gears, and the cleaning device can switch the cleaning component to one of the plurality of swing-out positions.
[0242] In a possible implementation, the outward swing position is a linearly adjustable position, that is, the outward swing position is an infinitely adjustable position.
[0243] The cleaning equipment can adjust the outward swing distance through multiple outward swing positions. The outward swing distance can be adjusted in real time according to the distance between the cleaning equipment and the obstacle, thereby increasing the probability of the cleaning parts getting close to the obstacle. The cleaning parts can also be swung inward in time when the cleaning equipment is close to the obstacle, thereby reducing the collision between the cleaning parts and the obstacle.
[0244] When the cleaning component is in the retracted position, the cleaning component is located within the cleaning device body. When the cleaning component is in the swing-out position, the cleaning component is partially or completely located outside the cleaning device body.
[0245] In some embodiments, the method includes adjusting the walking path of the first route and / or the second route so that the distance between the cleaning device and the cleaning component and the obstacle meets a preset distance range.
[0246] In a possible implementation, the swing-out position is fixed, including that the cleaning component has only one swing-out position. That is, the cleaning component can only be located in a retracted position, or in a swing-out position fixed relative to the cleaning device body. Then, in order to maintain a predetermined distance between the cleaning component and the obstacle during the process of the cleaning device moving along the first route and / or the second route along the edge of the obstacle, the first route and / or the second route can be adjusted so that the cleaning component maintains a distance from the obstacle.
[0247] In a possible implementation, adjusting the first route and / or the second route may include causing the cleaning device to rotate while traveling along the first route and / or the second route, so as to drive the cleaning component to move relative to the obstacle.
[0248] In a possible implementation, the swing-out position is adjustable, and the cleaning component may have a plurality of swing-out positions. Then, in order to maintain a predetermined distance between the cleaning component and the obstacle during the process of the cleaning device moving along the first route and / or the second route along the edge, the swing-out position of the cleaning component may be adjusted so that the cleaning component maintains a predetermined distance from the obstacle.
[0249] During the swinging process, the body rotates at the same angle, and the cleaning components in the outward swing position relative to the retracted position can cover a larger range, thereby improving the coverage of the cleaning blind area and improving the cleaning efficiency.
[0250] By adjusting the first route and / or the second route, or by adjusting the outward swing position of the cleaning component, the cleaning component can maintain a distance from obstacles, reduce uncleaned areas during the edge process, improve the cleaning effect, and enhance the user experience.
[0251] The present application also provides a cleaning device, such as a cleaning robot, etc. The cleaning device includes a control device.
[0252] In a possible implementation, the cleaning device further includes a walking system for enabling the cleaning device to walk, such as wheels, tracks, driving components, and the like.
[0253] The control device is used to execute any of the above cleaning equipment control methods.
[0254] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above cleaning equipment control method is implemented.
[0255] The computer-readable storage medium provided in this embodiment can execute the cleaning equipment control method of the above-mentioned embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0256] The computer-readable storage medium mentioned above may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium may be any available medium that can be accessed by a general or special-purpose computer.
[0257] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in an electronic device or a main control device.
[0258] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0259] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0260] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A cleaning equipment control method, characterized in that: The cleaning device includes a cleaning component, and the cleaning device control method includes: In the process of the cleaning device moving along the first route along the edge of an obstacle that can be cleaned around, when the cleaning device moves from a position where the distance between the cleaning device and the obstacle is less than a first threshold to a first position where the distance between the cleaning device and the obstacle is greater than the first threshold, the cleaning device is controlled to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move toward a first direction close to the obstacle; After completing the N swings, controlling the cleaning device to move along a second route with respect to the obstacle, wherein the directions of the first route and the second route are different, and the distance between the cleaning device and the obstacle at at least a portion of the second route is smaller than the distance between the cleaning device and the obstacle at the first position; The N swings also include M second rotations, wherein the second rotation causes the cleaning component to move in a second direction away from the obstacle; one second rotation corresponds to one first rotation, wherein M is an integer less than or equal to N, and the first direction is opposite to the second direction.
2. The method according to claim 1, characterized in that The first rotation includes the self-rotation of the cleaning device in the first direction; The second rotation includes a rotation of the cleaning device in the second direction.
3. The method according to claim 1 or 2, characterized in that: The controlling the cleaning device to swing N times comprises: During the first rotation of the cleaning device, when the distance between the cleaning component and the obstacle is less than a second threshold, the cleaning device is controlled to stop the first rotation.
4. The method according to claim 1 or 2, characterized in that: The rotation angle of the first rotation is a predetermined angle.
5. The method according to claim 4, characterized in that The distance between the cleaning component and the obstacle is positively correlated with the predetermined angle.
6. The method according to claim 1 or 2, characterized in that: The obstacles that can be cleaned around obstacles include: columnar obstacles, the size of the columnar obstacles is smaller than a third threshold, and the columnar obstacles include obstacles such as table and chair legs.
7. The method according to claim 1 or 2, characterized in that: The first route and the second route are respectively straight routes, and the first route and the second route form at least a portion of a route for cleaning around the obstacle.
8. The method according to claim 7, characterized in that The first route and the second route are any two adjacent routes among J routes for cleaning around the obstacle, and the J routes for cleaning around the obstacle form a circumscribed polygon around the obstacle, and J is positively correlated with the size of the obstacle.
9. The method according to claim 1 or 2, characterized in that: The cleaning component has a retracted position and an outward swing position swung toward the outside of the body of the cleaning device. When the cleaning device travels along the first route and the second route, the cleaning component is in the outward swing position to perform edge cleaning on the obstacle.
10. The method according to claim 9, characterized in that The method comprises: during the process of the cleaning device performing edge cleaning along the first route and / or the second route for an obstacle, adjusting the outward swing distance of the cleaning component to the outward swing position so that the distance between the cleaning component and the obstacle meets a preset distance range.
11. The method according to claim 9, characterized in that The method includes adjusting the walking path of the first route and / or the second route so that the distance between the cleaning device and the cleaning component and the obstacle meets a preset distance range.
12. The method according to claim 1 or 2, characterized in that: The cleaning component is located at the front end of the cleaning device, and the first rotation causes the front end of the body to move toward the obstacle, wherein the front end of the cleaning device faces the forward direction of the cleaning device, and the cleaning component includes a side brush assembly; and / or, The cleaning component is located at the rear end of the cleaning device. The first rotation causes the rear end of the body to move toward the obstacle, and the rear end of the cleaning device faces away from the forward direction of the cleaning device. The cleaning component includes a rag assembly.
13. The method according to claim 1 or 2, characterized in that: The step of controlling the cleaning device to move along the second route along the obstacle comprises: The cleaning device is controlled to move along a second route from the first position to the obstacle.
14. A cleaning equipment control method, characterized in that: The cleaning device comprises a cleaning component, wherein the cleaning component has a retracted position and an outward swing position swinging toward the outside of a body of the cleaning device, and the cleaning device control method comprises: In the process of the cleaning device moving along the first route along the edge of an obstacle that can be cleaned around, the cleaning component is in an outward swing position to perform edge cleaning on the obstacle, and when the cleaning device moves to a first position where the distance between the cleaning device and the obstacle is greater than a first threshold, the cleaning device is controlled to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move toward a first direction close to the obstacle; After completing the N swings, controlling the cleaning device to move along a second route with the first position as a starting point with respect to the obstacle, wherein the directions of the first route and the second route are different, and the distance between the cleaning device and the obstacle at at least part of the position on the second route is smaller than the distance between the cleaning device and the obstacle at the first position; The N swings also include M second rotations, wherein the second rotation causes the cleaning component to move in a second direction away from the obstacle; one second rotation corresponds to one first rotation, wherein M is an integer less than or equal to N, and the first direction is opposite to the second direction.
15. The method according to claim 14, characterized in that The obstacles that can be cleaned around obstacles include: columnar obstacles, the size of the columnar obstacles is smaller than a third threshold, and the columnar obstacles include obstacles such as table and chair legs.
16. The method according to claim 14, characterized in that When the cleaning device performs a non-edge cleaning task, the cleaning component is in a retracted position; when the cleaning device performs a non-edge cleaning task and identifies the existence of the obstacle, before moving along the edge of the obstacle, the cleaning component switches from the retracted position to the outward swing position.
17. The method according to claim 14, characterized in that When the cleaning device performs a non-edge cleaning task, the cleaning component is in an outward swing position; when the cleaning device performs a non-edge cleaning task and recognizes the existence of the obstacle, the outward swing distance of the cleaning component to the outward swing position is adjusted so that the distance between the cleaning component and the obstacle meets a preset distance range.
18. A cleaning equipment control method, characterized in that: The cleaning device comprises a cleaning component, and the method comprises: When the cleaning device performs edge cleaning on an obstacle that can be cleaned around an obstacle, when the distance between the cleaning device and the obstacle is less than a first threshold, the cleaning device moves along a first route with respect to the obstacle, and when the cleaning device moves to a first position where the distance between the cleaning device and the obstacle is greater than the first threshold, the cleaning device is controlled to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move toward a first direction close to the obstacle; After completing the N swings, controlling the cleaning device to move along a second route with the first position as a starting point with respect to the obstacle, wherein the directions of the first route and the second route are different, and the distance between the cleaning device and the obstacle at at least part of the position on the second route is smaller than the distance between the cleaning device and the obstacle at the first position; The N swings also include M second rotations, wherein the second rotation causes the cleaning component to move in a second direction away from the obstacle; one second rotation corresponds to one first rotation, wherein M is an integer less than or equal to N, and the first direction is opposite to the second direction.
19. A cleaning device, characterized in that: The cleaning device comprises a control device and a cleaning component, wherein the control device is used to: During the process of the cleaning device moving along a first route along an obstacle that can be cleaned around, at a first position where the distance between the cleaning device and the obstacle is greater than a first threshold, the cleaning device is controlled to swing N times, where N is an integer greater than or equal to 1, wherein one swing includes a first rotation of the cleaning device; wherein the first rotation causes the cleaning component to move toward a first direction close to the obstacle; After completing the N swings, controlling the first position of the cleaning device to move along a second route with respect to the obstacle, wherein the directions of the first route and the second route are different, and the distance between the cleaning device and the obstacle at at least a portion of the second route is smaller than the distance between the cleaning device and the obstacle at the first position; The N swings also include M second rotations, wherein the second rotation causes the cleaning component to move in a second direction away from the obstacle; one second rotation corresponds to one first rotation, wherein M is an integer less than or equal to N, and the first direction is opposite to the second direction.
20. A cleaning device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the cleaning device control method according to any one of claims 1 to 18.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the cleaning device control method according to any one of claims 1 to 18 is executed when the program is executed.
