Edge cleaning control method, electronic equipment and storage medium

By detecting supplementary cleaning conditions in the cleaning equipment and performing target rotation, the problem of uncleaning of edge areas is solved, improving cleaning coverage and adaptability and reducing costs.

CN118902338APending Publication Date: 2024-11-08HANGZHOU HUACHENG SOFTWARE TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411078570.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The existing cleaning equipment has a gap area between the edge and the fuselage during cleaning, resulting in low cleaning coverage, and adding cleaning structures to solve this problem increases costs and limits adaptability.

Method used

By detecting the supplementary cleaning conditions of the cleaning equipment, the cleaning equipment is controlled to rotate the target, so that the target cleaning component is approaching the boundary, and after the rotation is completed, the uncleaned boundary section will continue to be cleaned along the edge, improving the cleaning coverage without adding new structures.

Benefits of technology

Improves cleaning coverage, adapts to more cleaning equipment types, reduces production costs, and achieves effective cleaning of edge areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118902338A_ABST
    Figure CN118902338A_ABST
Patent Text Reader

Abstract

The invention discloses an edge cleaning control method, electronic equipment and a storage medium, and the method comprises the steps: detecting that cleaning equipment currently meets a supplementary cleaning condition in a process that the cleaning equipment carries out edge cleaning on a target boundary; the cleaning equipment is controlled to perform target rotation, the target rotation can enable a target cleaning assembly of the cleaning equipment to be close to the target boundary, and the target cleaning assembly is in a working state in the target rotation process; and after the cleaning equipment completes the target rotation, the cleaning equipment is controlled to continuously carry out edge cleaning on the uncleaned boundary section of the target boundary. According to the scheme, the cleaning coverage rate can be increased, and the use range can be expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of cleaning robots, and in particular to an edge cleaning control method, electronic equipment, and storage medium. Background Art

[0002] The cleaning functions of cleaning equipment are becoming more and more complete, and the needs of sweeping and dusting the area to be cleaned can be met through side brush gathering, main brush cleaning, dust collection and storage, etc. However, in existing cleaning equipment, there is still a certain distance between the edge of its cleaning component and the edge of the cleaning equipment body, so that the area corresponding to this distance is ignored during the cleaning process of the cleaning equipment and is not cleaned. And the existing solution usually takes the approach of adding a corresponding cleaning structure to the cleaning equipment to clean the area. However, this solution makes the structure of the cleaning equipment more complicated, while also increasing the cost of the cleaning equipment and failing to adapt to more types of cleaning equipment. Summary of the invention

[0003] The present application at least provides an edge cleaning control method, electronic equipment, and storage medium, which can improve the cleaning coverage and expand the scope of use.

[0004] The first aspect of the present application provides an edge cleaning control method, the method comprising: during the process of edge cleaning of a target boundary by a cleaning device, detecting that the cleaning device currently meets the supplementary cleaning conditions; controlling the cleaning device to perform target rotation, the target rotation can make the target cleaning component of the cleaning device approach the target boundary, and the target cleaning component is in a working state during the target rotation; after the cleaning device completes the target rotation, controlling the cleaning device to continue to perform edge cleaning on the uncleaned boundary segment of the target boundary.

[0005] Controlling the cleaning device to perform target rotation includes: controlling the cleaning device to rotate in a direction to make the target cleaning component approach the target boundary; and controlling the cleaning device to stop rotating in response to the cleaning device satisfying a rotation stop condition.

[0006] The rotation stop condition includes at least one of the following: the current rotation angle of the cleaning device reaches a preset angle value, and the cleaning device collides.

[0007] Among them, before controlling the cleaning device to rotate to the target, it also includes: recording the current first posture information of the cleaning device, the first posture information includes the first posture; controlling the cleaning device to continue to perform edge cleaning on the uncleaned boundary segment of the target boundary, including: controlling the cleaning device to first turn back to the first posture, and then move toward the uncleaned boundary segment to perform edge cleaning; or, controlling the cleaning device to turn back to the first posture, and in the process of turning back to the first posture, start to move toward the uncleaned boundary segment to perform edge cleaning.

[0008] In which, during the process of the cleaning device turning back to the first posture, the angular velocity of the cleaning device changes with the current angle difference between the second posture and the first posture of the cleaning device; and / or, the cleaning device starts to move toward the uncleaned boundary segment during the process of turning back to the first posture, and during the process of the cleaning device turning back to the first posture, the movement speed of the cleaning device is related to the current angle difference.

[0009] Wherein, the angular velocity of the cleaning device is negatively correlated with the current angle difference; and / or, controlling the cleaning device to turn back to the first posture, including: determining the current angular velocity of the cleaning device based on the current angle difference; in response to the current angular velocity being not greater than the maximum angular velocity of the cleaning device, controlling the cleaning device to turn back at the current angular velocity; in response to the current angular velocity being greater than the maximum angular velocity of the cleaning device, controlling the cleaning device to turn back at the maximum angular velocity; repeating the steps of determining the current angular velocity of the cleaning device based on the current angle difference and subsequent steps until the current angle difference of the cleaning device is less than the first angle difference threshold.

[0010] Among them, the supplementary cleaning conditions include that the state of edge cleaning has not been ended, and the current position of the cleaning device is more than a first distance from the reference position, the reference position corresponding to the supplementary cleaning condition that triggers the first target rotation is the position when the cleaning device starts to perform edge cleaning, and the reference position corresponding to the supplementary cleaning condition that triggers the non-first target rotation is the position of the cleaning device when the target rotation was last performed; and / or, during the process of the cleaning device performing edge cleaning on the target boundary, before detecting that the cleaning device currently meets the supplementary cleaning conditions, it also includes: controlling the cleaning device to move along the target boundary; during the edge movement, in response to the distance between the cleaning device and the front obstacle being greater than the second distance and the distance to the side obstacle being less than the third distance, controlling the cleaning device to start edge cleaning, wherein the side obstacle is located on the side of the cleaning device close to the target boundary.

[0011] After the cleaning device starts edge cleaning, the method further includes: based on the posture information of the cleaning device during the edge cleaning process, detecting whether the cleaning device has finished edge cleaning.

[0012] Among them, based on the posture information of the cleaning device during the edge cleaning process, detecting whether the cleaning device has ended the edge cleaning state includes: recording the second posture information when the cleaning device starts to perform edge cleaning, and during the edge cleaning process of the cleaning device, each time the posture change angle of the cleaning device reaches a fourth angle difference threshold, recording the current second posture information of the cleaning device to obtain a first posture sequence; counting the angle difference between each two adjacent second posture information in the first posture sequence to obtain the angle difference statistics result; and determining whether the cleaning device has ended the edge cleaning state based on the angle difference statistics result.

[0013] Among them, based on the posture information of the cleaning device during the edge cleaning process, detecting whether the cleaning device has ended the edge cleaning state, also includes: recording the third posture information when the cleaning device starts to perform edge cleaning, and in the process of edge cleaning, whenever the cleaning device moves a fourth distance, recording the current third posture information of the cleaning device to obtain a second posture sequence; determining whether the cleaning device has ended the edge cleaning state based on the angle difference statistics, including: in response to the angle difference statistics not exceeding the first preset angle, determining that the cleaning device has not ended the edge cleaning state; in response to the angle difference statistics exceeding the first preset angle and not exceeding the second preset angle, obtaining the closest distance between the current cleaning device and each non-last third posture information in the second posture sequence, and in response to the closest distance being less than the fifth distance, determining that the cleaning device has ended the edge cleaning state, wherein the first preset angle is less than the second preset angle; in response to the angle difference statistics exceeding the second preset angle, determining that the cleaning device has ended the edge cleaning state.

[0014] Among them, before the cleaning device detects that the cleaning device currently meets the supplementary cleaning conditions during the process of cleaning the target boundary along the edge, it also includes: using the cleaning device to scan the area to be cleaned including the target boundary to obtain a global map corresponding to the area to be cleaned, wherein the global map is superimposed with information on target obstacles related to the target boundary in the area to be cleaned; selecting a local area corresponding to the target obstacle from the global map, and generating a local distance map of the local area; based on the local distance map, obtaining a number of edge distance points whose distances from the target boundary meet a preset edge distance; connecting a number of edge distance points to obtain an edge path corresponding to the target boundary, wherein the cleaning device moves along the edge path to perform edge cleaning on the target boundary.

[0015] Among them, connecting several along-edge distance points to obtain an along-edge path corresponding to the target boundary includes: selecting the along-edge distance point closest to the cleaning equipment from several along-edge distance points as the starting path point of the along-edge path; selecting the along-edge distance point closest to the most recently selected path point from the remaining several along-edge distance points as the next path point of the along-edge path; repeating the step of selecting the along-edge distance point closest to the most recently selected path point from the remaining several along-edge distance points as the next path point of the along-edge path until all along-edge distance points are selected to obtain the along-edge path.

[0016] Wherein, in the process of returning to the first posture, start moving toward the uncleaned boundary segment for edge cleaning, including: in the process of returning to the first posture, select the path point closest to the current second posture of the cleaning device from the remaining edge path as the target path point, wherein the distance between the line between the current second posture and the target path point and the side obstacle is less than the third distance; obtain the current angle difference between the current second posture and the target path point; in response to the absolute value of the current angle difference being greater than the second angle difference threshold, control the target moving speed of the cleaning device to be zero or less than the first speed value; in response to the absolute value of the current angle difference being greater than the third angle difference threshold and less than or equal to the second angle difference threshold, determine the target moving speed of the cleaning device using the maximum moving speed of the cleaning device and the absolute value of the current angle difference, and control the moving speed of the cleaning device to be the target moving speed, wherein the third angle difference threshold is less than the second angle difference threshold; in response to the absolute value of the current angle difference being less than or equal to the third angle difference threshold, control the target moving speed of the cleaning device to be the maximum moving speed; based on the target moving speed, control the cleaning device to move toward the target path point.

[0017] A second aspect of the present application provides an electronic device, comprising a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the edge cleaning control method in the first aspect.

[0018] A third aspect of the present application provides a computer-readable storage medium having program instructions stored thereon, and when the program instructions are executed by a processor, the edge cleaning control method in the first aspect described above is implemented.

[0019] In the above scheme, during the process of the cleaning device performing edge cleaning on the target boundary, when it is detected that the cleaning device currently meets the supplementary cleaning conditions, the cleaning device is controlled to perform target rotation, so that the target cleaning component of the cleaning device approaches the target boundary, and the target cleaning component is in a working state during the target rotation. After the cleaning device completes the target rotation, the cleaning device is controlled to continue to perform edge cleaning on the uncleaned boundary segment of the target boundary, so that the cleaning device can also clean the gap between the edge of the cleaning device body and the edge of the target cleaning component when performing edge cleaning, thereby improving the cleaning coverage rate. Compared with the prior art, there is no need to add new structures. The present scheme can be adapted to more types of cleaning equipment, making the adaptation range wider.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0022] Figure 1 It is a flow chart of an embodiment of the edge cleaning control method of the present application;

[0023] Figure 2 This is a schematic structural diagram of an embodiment of the cleaning device of the present application for edge cleaning;

[0024] Figure 3 This application is global Figure 1 A schematic diagram of an embodiment;

[0025] Figure 4 This is the local distance of this application Figure 1 A schematic diagram of an embodiment;

[0026] Figure 5 It is a flowchart of an embodiment of the method for generating an edge path of the present application;

[0027] Figure 6 It is a flow chart of another embodiment of the edge cleaning control method of the present application;

[0028] Figure 7 It is a schematic diagram of the framework of an embodiment of the edge cleaning control device of the present application;

[0029] Figure 8 It is a schematic diagram of the framework of an embodiment of the electronic device of the present application;

[0030] Fig. 9 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0031] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.

[0032] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.

[0033] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previously associated objects are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B and C.

[0034] See also Figure 1 , Figure 1 This is a flow chart of an embodiment of the edge cleaning control method of the present application. Specifically, it may include the following steps:

[0035] Step S110: During the process of the cleaning device performing edge cleaning on the target boundary, it is detected that the cleaning device currently meets the supplementary cleaning condition.

[0036] The present application is mainly applied to the field of cleaning equipment, and the cleaning equipment may be a sweeping robot, a mopping robot, etc. Existing cleaning equipment is generally circular, and the target cleaning component in the cleaning equipment is generally arranged at the bottom of the cleaning equipment. Therefore, this embodiment will take the cleaning equipment with a structural arrangement as an example for explanation. For details, please refer to Figure 2 , Figure 2 Figure a in the figure shows the process of the cleaning device 200 cleaning the target boundary 210 along the edge, and the direction indicated by the arrow in the cleaning device 200 is the forward direction of the cleaning device 200. Therefore, when the cleaning device 200 cleans the target boundary 210 along the edge, there is an uncleaned distance q between the rightmost contour of the cleaning device 200 and the rightmost edge of the target cleaning component 201, and the prior art often ignores this uncleaned distance q. However, when the present application detects that the cleaning device 200 currently meets the supplementary cleaning conditions, it will stop moving forward and control the cleaning device 200 to perform target rotation, so that the target cleaning component 201 rotates to the position of Figure b, thereby cleaning the uncleaned distance q. Therefore, this solution does not need to add a new structure, and can be adapted to various cleaning devices 200, thereby also reducing the production cost of the cleaning device 200.

[0037] In some embodiments, during the process of the cleaning device 200 performing edge cleaning on the target boundary, a timing detection method can be used to detect whether the current cleaning device 200 meets the supplementary cleaning condition, for example, the timing is 0.3s, 0.5s, etc. Alternatively, the detection can also be performed in a real-time detection method, which is not specifically limited here. Among them, the detected supplementary cleaning condition may include that the state of edge cleaning has not ended, and the current position of the cleaning device 200 exceeds the first distance from the reference position, and the reference position corresponding to the supplementary cleaning condition that triggers the first target rotation is the position when the cleaning device 200 starts to perform edge cleaning, and the reference position corresponding to the supplementary cleaning condition that triggers the non-first target rotation is the position of the cleaning device 200 when the target rotation was last performed. Regarding the first triggering of the target rotation in the above, when the cleaning device 200 moves forward the first distance along the edge path when the position of the cleaning device 200 at the beginning of the edge cleaning, the cleaning device 200 is triggered for the first time to rotate the target. Regarding the non-first triggering, in fact, after the first triggering of the target rotation, the cleaning device 200 will also trigger the target rotation every time it advances the first distance, and the reference position of each subsequent triggering of the target rotation is the position of the cleaning device 200 when the target rotation was last performed. The first distance may be set to be half of the total length of the target cleaning component 201 .

[0038] In addition, the supplementary cleaning condition can also be to use the detection model to simulate the edge cleaning process of the cleaning device 200. When it is simulated that the uncleaned area of ​​the cleaning device 200 during the edge cleaning process reaches a preset length, the cleaning device 200 is controlled to perform a target rotation.

[0039] In order to determine whether the edge cleaning state of the cleaning device 200 is ended, it is necessary to first determine the position of the cleaning device 200 when the first target rotation is triggered, and in order to determine the position of the cleaning device 200 when the first target rotation is triggered, it is necessary to first determine the position of the cleaning device 200 when it starts to perform edge cleaning. Specifically, in order to determine the position of the cleaning device 200 when it starts to perform edge cleaning, it is necessary to first control the cleaning device 200 to move along the target boundary 210; during the edge movement, in response to the distance between the cleaning device 200 and the obstacle in front being greater than the second distance and the distance to the side obstacle being less than the third distance, the cleaning device 200 is controlled to start edge cleaning, wherein the side obstacle is located on the side of the cleaning device 200 close to the target boundary, so as to ensure that the cleaning device 200 does not deviate from the edge path during edge cleaning. Regarding the third distance and the second distance being different parameter values, for example, the second distance can be set to 1 and the third distance can be set to 2.

[0040] After the cleaning device 200 starts edge cleaning, it is also possible to detect whether the cleaning device 200 has finished edge cleaning based on the posture information of the cleaning device 200 during the edge cleaning process. The posture information includes position information and posture information.

[0041] In some embodiments, in order to detect whether the cleaning device 200 has ended the edge cleaning state, the second posture information of the cleaning device 200 when it starts to perform edge cleaning can be recorded first, and when the cleaning device 200 performs edge cleaning, whenever the posture change angle of the cleaning device 200 reaches the fourth angle difference threshold, the current second posture information of the cleaning device 200 is recorded to obtain the first posture sequence. And the angle difference between each two adjacent second posture information in the first posture sequence is counted to obtain the angle difference statistics result. Then, based on the angle difference statistics result, it is determined whether the cleaning device 200 has ended the edge cleaning state.

[0042] In other embodiments, in order to detect whether the cleaning device 200 has finished the edge cleaning state, the third posture information of the cleaning device 200 when it starts to perform edge cleaning can also be recorded first, and when the cleaning device 200 is in the edge cleaning process, each time the cleaning device 200 moves a fourth distance, the current third posture information of the cleaning device 200 is recorded to obtain a second posture sequence. Then, according to the total distance moved by the cleaning device 200 in the second posture sequence, it is determined whether the cleaning device 200 has finished the edge cleaning state.

[0043] In other embodiments, the second posture information and the third posture information of the cleaning device 200 can be recorded simultaneously, and the first posture sequence and the second posture sequence can be obtained. Therefore, the first posture sequence and the second posture sequence can be combined to determine whether the cleaning device 200 has ended the edge cleaning state. Specifically, the angle difference between each two adjacent second posture information in the first posture sequence is counted to obtain the angle difference statistics. If the angle difference statistics in the first posture sequence does not exceed the first preset angle, it is determined that the cleaning device has not ended the edge cleaning state; if the angle difference statistics exceed the first preset angle and do not exceed the second preset angle, the closest distance between the current cleaning device 200 and each non-last third posture information in the second posture sequence is obtained. If the closest distance is less than the fifth distance, it is determined that the cleaning device has ended the edge cleaning state, wherein the first preset angle is less than the second preset angle. In addition, if the angle difference statistics exceed the second preset angle, it is determined that the cleaning device has ended the edge cleaning state. It can be understood that the fifth distance can be 0.5 meters, 1 meter, etc., the first preset angle can be 360 ​​degrees, 720 degrees, etc., and the second preset angle can be 360 ​​degrees, 720 degrees, etc., which are not specifically limited here.

[0044] In order to enable the cleaning device 200 to perform edge cleaning stably and effectively during the process of edge cleaning of the target boundary 210, an edge path can be generated according to the target boundary 210 before edge cleaning, and the cleaning device 200 can be controlled to perform edge cleaning of the target boundary 210 along the edge path, thereby making the cleaning coverage of the cleaning device 200 higher and also improving the cleaning efficiency.

[0045] In a specific embodiment, in order to generate an edge path, the cleaning device 200 can be used to scan the area to be cleaned including the target boundary 210 to obtain a global map corresponding to the area to be cleaned, wherein the global map is superimposed with information of target obstacles related to the target boundary 210 in the area to be cleaned. Afterwards, a local area corresponding to the target obstacle is selected from the global map, and a local distance map of the local area is generated. Based on the local distance map, several edge distance points whose distances from the target boundary 210 meet the preset edge distance are obtained, and several edge distance points are connected to obtain an edge path corresponding to the target boundary 210, wherein the cleaning device 200 can move along the edge path to perform edge cleaning on the target boundary 210.

[0046] The area to be cleaned can be a bedroom, a living room, an office, etc. The laser sensor and other devices on the cleaning device 200 are used to scan the area to be cleaned, so as to obtain a global map. Figure 3 , Figure 3 The circle in the figure is the cleaning device 200, and the cleaning device 200 moves in the direction indicated by the arrow. The white area where the cleaning device 200 is located is the area to be cleaned. Among them, when the cleaning device 200 encounters an obstacle or cliff with a horizontal height lower than the ground during scanning, the laser sensor will feedback the information to the cleaning device 200 and superimpose the information on the global map. Similarly, if the information of various obstacles that need to be avoided is perceived by other perception modules (such as visual sensors) on the cleaning device 200, it will also be superimposed on the global map. In addition, the restricted area information specified by the target operation object (such as setting the toilet as a restricted area through the app) will also be superimposed on the global map. After combining various target obstacle information and restricted area information, the cleaning device 200 obtains the final global map. When the cleaning device 200 performs full coverage cleaning path planning, it uses this global map containing various types of information. Using this global map for edge path planning can isolate hardware changes and reduce the workload of code development. It only needs to convert the scanning results of the newly added hardware to the map for unified processing, so as to adapt to more types of cleaning devices 200.

[0047] Furthermore, the global map can also be generated based on the grid map, which contains three basic types: blank passable grids, unknown area grids and obstacle grids, among which the obstacle grids can be used as target obstacles to be cleaned. Therefore, the remaining grids in the global map except the blank passable grids and unknown area grids can be used as target obstacles, and these target obstacles need to be cleaned along the target boundary.

[0048] To reduce the amount of computation required to generate the path along the edge, you can first select the local area corresponding to the target obstacle from the global map, and then use the 8ssedt algorithm to generate a local distance map for the target obstacle in the local area. Figure 4 ,The dark area in the figure is the boundary, the lighter the color, the farther away from the boundary, and the bold line segment is the path along the edge.

[0049] In some embodiments, to obtain the edge path, the edge distance point closest to the cleaning device 200 can be selected from a plurality of edge distance points as the starting path point of the edge path, and then the edge distance point closest to the most recently selected path point can be selected from the remaining plurality of edge distance points as the next path point of the edge path. The above steps are repeated until the total length between all selected edge distance points exceeds the preset distance length, and the edge distance points are connected to obtain the edge path.

[0050] Specifically, after all the edge distance points that meet the above conditions are selected from the local distance map, they can be converted into global coordinates and rearranged in a certain order to obtain the edge path. In addition, the distance can be accumulated from the starting path point. If the accumulated distance exceeds the preset distance length, the search for the edge distance point is stopped.

[0051] Since the local distance map is generated based on the grid map, when selecting the edge distance point, the preset edge distance may not be an integer multiple of the grid length or width. In this case, two adjacent grids in the same row whose distance from the target boundary 210 is greater than the preset edge distance and less than the preset edge distance can be selected for interpolation to obtain the accurate coordinates of the edge distance point. In addition, the cleaning device 200 can perform edge cleaning in a clockwise or counterclockwise direction. If the cleaning device 200 performs counterclockwise cleaning along the target boundary 210, when the cleaning device 200 moves toward the nearest edge distance point, the grid distance on the right side of the line connecting the cleaning device 200 and the edge distance point must be greater than the preset edge distance to ensure that the cleaning device 200 is the right edge. Similarly, when the cleaning device 200 performs clockwise cleaning along the target boundary 210, the grid distance on the left side of the line connecting the cleaning device 200 and the edge distance point must be greater than the preset edge distance to ensure that the cleaning device 200 is the left edge.

[0052] Step S120: controlling the cleaning device to perform target rotation. The target rotation can make the target cleaning component of the cleaning device approach the target boundary, and the target cleaning component is in a working state during the target rotation.

[0053] In some embodiments, if it is detected that the cleaning device 200 has not ended the edge cleaning state, it can be further detected whether the cleaning device 200 meets the conditions for triggering the target rotation. If so, the cleaning device 200 is controlled to perform the target rotation and the target cleaning component 201 is in working state during the target rotation; if not, the cleaning device 200 is controlled to continue to perform edge cleaning on the target boundary 210 along the edge path.

[0054] Therefore, in order to detect whether the cleaning device 200 meets the conditions for triggering the target rotation, the current first posture information of the cleaning device 200 can be recorded first, and the first posture information includes the first posture and the first position. It is determined whether the distance between the current first position of the cleaning device 200 and the reference position is the first distance. If so, the cleaning device 200 is controlled to perform the target rotation; if not, the cleaning device 200 is controlled to continue to perform edge cleaning. Among them, the reference position corresponding to the first target rotation triggered by the cleaning device 200 is the position when the cleaning device 200 starts to perform edge cleaning, that is, the position of the cleaning device 200 triggering the first target rotation is the position of the cleaning device 200 after the first distance has been advanced from the position when the edge cleaning was started.

[0055] In some embodiments, after the cleaning device 200 triggers the target rotation state, the cleaning device 200 is controlled to rotate in a direction that makes the target cleaning component 201 approach the target boundary 210; in response to the cleaning device 200 meeting the rotation stop condition, the cleaning device is controlled to stop rotating.

[0056] The rotation stop condition includes at least one of the following: the current rotation angle of the cleaning device reaches a preset angle value, the cleaning device collides. It is understandable that the preset angle value can be 90°, 180°, etc., which is not specifically limited here.

[0057] Step S130: after the cleaning device completes the target rotation, the cleaning device is controlled to continue to perform edge cleaning on the uncleaned boundary segment of the target boundary.

[0058] In some embodiments, after the current rotation angle of the cleaning device 200 reaches a preset angle value or a collision occurs, the cleaning device 200 is controlled to first rotate back to the first posture, and then move to the uncleaned boundary segment to perform edge cleaning. At this time, the direction indicated by the first posture is consistent with the direction indicated by the edge path. In the process of the cleaning device 200 rotating back to the first posture, the angular velocity of the cleaning device 200 changes with the current angle difference between the second posture of the cleaning device 200 and the first posture. For example, the angular velocity of the cleaning device is negatively correlated with the current angle difference.

[0059] In other embodiments, after the cleaning device 200 completes the target rotation, in order to improve the cleaning efficiency, the cleaning device 200 can be controlled to move along the edge when the cleaning device 200 turns back to a certain angle, without waiting until it is completely turned back. And considering that the cleaning device 200 may deviate from the direction indicated by the edge path during the process of moving along the edge path, if the deviation occurs in the first posture that triggers the target rotation, the cleaning device 200 will not be able to return to the first posture. Therefore, in the process of controlling the cleaning device 200 to turn back to the first posture, the cleaning device 200 is controlled to turn back to the desired direction, that is, the direction indicated by the edge path. Among them, the cleaning device 200 starts to move toward the uncleaned boundary segment during the process of turning back to the first posture, and the moving speed of the cleaning device is related to the current angle difference during the process of the cleaning device 200 turning back to the first posture.

[0060] Specifically, in the process of the cleaning device 200 turning back to the desired direction, the path point closest to the current second posture of the cleaning device is selected from the remaining side path as the target path point, wherein the distance between the line between the current second posture and the target path point and the side obstacle is less than the third distance; the current angle difference between the current second posture of the cleaning device and the target path point is obtained. In response to the absolute value of the current angle difference being greater than the second angle difference threshold, the target moving speed of the cleaning device 200 is controlled to be zero or less than the first speed value; in response to the absolute value of the current angle difference being greater than the third angle difference threshold and less than or equal to the second angle difference threshold, the target moving speed of the cleaning device 200 is determined by using the maximum moving speed of the cleaning device 200 and the absolute value of the current angle difference, and the moving speed of the cleaning device 200 is controlled to be the target moving speed, wherein the third angle difference threshold is less than the second angle difference threshold; in response to the absolute value of the current angle difference being less than or equal to the third angle difference threshold, the target moving speed of the cleaning device 200 is controlled to be the maximum moving speed; based on the target moving speed, the cleaning device 200 is controlled to move toward the target path point. The above steps are repeated until the current angle difference of the cleaning device 200 is smaller than the first angle difference threshold, and the first angle difference threshold is smaller than the third angle difference threshold.

[0061] For example, the first angle difference threshold is set to 3°, the second angle difference threshold is set to 45°, the third angle difference threshold is set to 5°, the current angle difference is set to theta, and the maximum moving speed is set to vmax. Then, the control formula of the moving speed of the cleaning device 200 is:

[0062] V=0,if|theta|>45°;

[0063] V=vmax*(45-|theta|) / 40, if 5<|theta|<=45;

[0064] V=vmax,if 5>=|theta|。 (Formula 1)

[0065] Considering that when the cleaning device 200 turns back to the desired direction, due to the effect of inertia, the angle of rotation of the cleaning device 200 during the actual turning back may be greater than or less than the preset angle value, the first angle difference threshold is set to 3°. When the cleaning device 200 turns back to the first posture, if the difference between the rotation angle and the preset angle value fluctuates within a range of 3°, it is considered that the cleaning device 200 has turned back to the edge path.

[0066] In some embodiments, during the process of the cleaning device 200 turning back to the first posture, the angular velocity of the cleaning device 200 may also be controlled. Specifically, based on the current angle difference, the current angular velocity of the cleaning device 200 is determined. In response to the current angular velocity being not greater than the maximum angular velocity of the cleaning device 200, the cleaning device 200 is controlled to turn back according to the current angular velocity; in response to the current angular velocity being greater than the maximum angular velocity of the cleaning device 200, the cleaning device 200 is controlled to turn back according to the maximum angular velocity. Repeat the above steps until the current angle difference of the cleaning device 200 is less than the first angle difference threshold.

[0067] For example, if the maximum angular velocity is set to wmax and the current angular velocity is set to w, then the control formula for the current angular velocity is:

[0068] w = -k*theta;

[0069] w=sign(w)*wmax, if |w|>wmax. (Formula 2)

[0070] Where k is the recovery constant and sign() is the sign function: if the input value is positive, it returns 1; if the input value is negative, it returns -1; if the input value is 0, it returns 0.

[0071] In a specific application scenario, the cleaning device 200 is a sweeper, the target cleaning component 201 is a cleaning rag set at the bottom of the sweeper, and the target boundary 210 is a wall, so as to control the sweeper to perform edge cleaning along the edge of the wall, and the edge cleaning method is right edge cleaning, that is, the wall is located on the right side of the sweeper. First, please refer to Figure 5 ,Use the laser sensor on the sweeper to scan the room and get a global map, such as Figure 3 Then, a local area corresponding to the wall is selected from the global map, and the local area is used to generate a local distance map using the 8ssedt algorithm, for example: Figure 4 . According to the local distance map, several points whose distance from the wall is equal to the preset edge distance d can be directly obtained as edge distance points, and the edge distance point with the shortest straight-line distance to the sweeper is selected as the starting path point. According to the edge cleaning method of the right edge of the sweeper, the edge distance point closest to the most recently selected path point is selected from the remaining edge distance points as the next path point of the edge path. The distances of all selected edge distance points are counted. When the total length is greater than the preset path distance L, the edge distance points are stopped from being selected, and the selected edge distance points are arranged in a certain order to generate an edge path. After the sweeper reaches the starting path point, track the next edge distance point to be passed by the sweeper.

[0072] After the robot reaches the starting path point and adjusts its position, the robot's first position information is recorded and it starts to move along the edge. Figure 6 When the sweeper starts to perform edge cleaning along the edge path from the starting path point, the position information of the sweeper is judged. If the distance of the obstacle in front of the sweeper is greater than the second distance and the distance to the obstacle on the right is less than the third distance, the current first position information of the sweeper is recorded; if not, the position of the sweeper is adjusted so that the sweeper moves according to the edge cleaning state. When the distance of the obstacle in front of the sweeper is greater than the second distance and the distance to the obstacle on the right is less than the third distance, the sweeper starts to perform edge cleaning.

[0073] During the edge cleaning process, in order to determine whether the edge cleaning state is over, two sequences can be generated: a first posture sequence and a second posture sequence. Before the sweeper starts to perform edge cleaning, the first posture sequence and the second posture sequence are cleared. When the sweeper starts to perform edge cleaning, the first posture information of the sweeper at the starting path point is stored in the first posture sequence and the second posture sequence respectively. During the edge cleaning process of the sweeper, whenever the posture change angle of the sweeper reaches the fourth angle difference threshold, the current second posture information of the sweeper is recorded and stored in the first posture sequence. During the edge cleaning process of the sweeper, whenever the sweeper moves the fourth distance, the current third posture information of the sweeper is recorded and stored at the end of the second posture sequence. And the angle difference between each two adjacent second posture information in the first posture sequence is counted to obtain the angle difference statistics. If the angle difference statistics in the first posture sequence does not exceed the first preset angle of 360°, it is determined that the sweeper has not ended the edge cleaning state; if the angle difference statistics exceed the first preset angle of 360° and do not exceed the second preset angle of 720°, then the closest distance between the current sweeper and each non-last third posture information in the second posture sequence is obtained. If the closest distance is less than the fifth distance, it is determined that the sweeper has ended the edge cleaning state; if the angle difference statistics exceed the second preset angle of 720°, it is determined that the sweeper has ended the edge cleaning state. In addition, if no suitable edge distance point can be extracted in the local distance map, the edge cleaning state is ended.

[0074] If the edge cleaning state is not ended, it can be further determined whether the distance between the current first position of the sweeper and the reference position is the first distance. If so, the target rotation is triggered; if not, the sweeper continues to move along the edge path. When the target rotation is triggered, the sweeper will no longer move forward, and record the first posture information, and then start to rotate so that the cleaning cloth rotates in the direction close to the wall. When the rotation angle reaches the preset angle value of 90° or a collision occurs, the rotation stops and the recovery state begins. The path point closest to the current second posture of the sweeper in the remaining edge path is selected as the target path point, and the sweeper is controlled to move to the target path point. In the process of moving to the target path point, the moving speed and angular velocity of the sweeper can be controlled in combination with the above formulas 1 and 2. After the sweeper reaches the target path point, the posture of the sweeper is adjusted so that the posture of the sweeper is consistent with the direction indicated by the edge path. If the sweeper returns to the target path point or collides, the sweeper will no longer continue to recover. At this time, the current position information of the sweeper can be recorded, and the sweeper can be controlled to continue cleaning along the edge; if the sweeper does not return to the target path point or collides, the sweeper is controlled to continue rotating until it returns to the target path point.

[0075] Repeat the above steps until the sweeper finishes the edge cleaning state.

[0076] This solution can clean the gap left between the target cleaning component and the outermost extension of the cleaning device during the edge cleaning process, improving the coverage of the boundary sweeping and mopping cleaning of the area to be cleaned, without adding new structures, with a wider range of applicability and lower costs. In addition, this solution performs edge cleaning based on the edge path generated by the local distance map. This method shields the differences between different types of sensors, realizes the unification of the development of edge movement methods, and facilitates migration and reuse.

[0077] This solution also provides a method for determining when the edge cleaning state ends, and provides an exit mechanism for the cleaning equipment to end edge cleaning.

[0078] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0079] See also Figure 7 , Figure 7 It is a framework schematic diagram of an embodiment of an edge cleaning control device 700 of the present application. The edge cleaning control device 700 includes a detection module 710, a rotation control module 720 and a recovery module 730. The detection module 710 is executed when the cleaning device performs edge cleaning on the target boundary and detects that the cleaning device currently meets the supplementary cleaning conditions. The rotation control module 720 controls the cleaning device to perform target rotation. The target rotation can make the target cleaning component of the cleaning device approach the target boundary, and the target cleaning component is in a working state during the target rotation. The recovery module 730 controls the cleaning device to continue to perform edge cleaning on the uncleaned boundary segment of the target boundary after the cleaning device completes the target rotation.

[0080] In some embodiments, the rotation control module 720 controls the cleaning device to perform a target rotation, including: controlling the cleaning device to rotate in a direction that causes the target cleaning component to approach the target boundary; and controlling the cleaning device to stop rotating in response to the cleaning device satisfying a rotation stop condition.

[0081] In some embodiments, the rotation control module 720 executes the rotation stop condition including at least one of the following: the current rotation angle of the cleaning device reaches a preset angle value, and the cleaning device collides.

[0082] In some embodiments, before controlling the cleaning device to perform a target rotation, the rotation control module 720 also includes: recording the current first posture information of the cleaning device, the first posture information including the first posture; controlling the cleaning device to continue to perform edge cleaning on the uncleaned boundary segment of the target boundary, including: controlling the cleaning device to first return to the first posture, and then move toward the uncleaned boundary segment to perform edge cleaning; or, controlling the cleaning device to return to the first posture, and in the process of returning to the first posture, start to move toward the uncleaned boundary segment to perform edge cleaning.

[0083] In some embodiments, the recovery module 730 executes a process in which the angular velocity of the cleaning device changes with the current angle difference between the second posture and the first posture of the cleaning device during the process of the cleaning device turning back to the first posture; and / or, the cleaning device starts to move toward the uncleaned boundary segment during the process of turning back to the first posture, and the movement speed of the cleaning device is related to the current angle difference during the process of the cleaning device turning back to the first posture.

[0084] In some embodiments, the recovery module 730 executes the angular velocity of the cleaning device being negatively correlated with the current angle difference; and / or, controls the cleaning device to turn back to the first posture, including: determining the current angular velocity of the cleaning device based on the current angle difference; in response to the current angular velocity being not greater than the maximum angular velocity of the cleaning device, controlling the cleaning device to turn back at the current angular velocity; in response to the current angular velocity being greater than the maximum angular velocity of the cleaning device, controlling the cleaning device to turn back at the maximum angular velocity; repeating the steps of determining the current angular velocity of the cleaning device based on the current angle difference and subsequent steps until the current angle difference of the cleaning device is less than the first angle difference threshold.

[0085] In some embodiments, the recovery module 730 executes, during the process of returning to the first posture, to start moving toward the uncleaned boundary segment for edge cleaning, including: during the process of returning to the first posture, obtaining the current angle difference between the current second posture of the cleaning device and the first posture; in response to the absolute value of the current angle difference being greater than the second angle difference threshold, controlling the moving speed of the cleaning device to be zero or less than the first speed value; in response to the absolute value of the current angle difference being greater than the third angle difference threshold and less than or equal to the second angle difference threshold, determining the target moving speed of the cleaning device using the maximum moving speed of the cleaning device and the absolute value of the current angle difference, and controlling the moving speed of the cleaning device to be the target moving speed, wherein the third angle difference threshold is less than the second angle difference threshold; in response to the absolute value of the current angle difference being less than or equal to the third angle difference threshold, controlling the moving speed of the cleaning device to be the maximum moving speed; repeating the process of obtaining the current angle difference between the current second posture of the cleaning device and the first posture and subsequent steps during the process of returning to the first posture until the current angle difference of the cleaning device is less than the first angle difference threshold, and the first angle difference threshold is less than the third angle difference threshold.

[0086] In some embodiments, the detection module 710 executes the supplementary cleaning condition including that the state of edge cleaning has not ended, and the current position of the cleaning device is more than a first distance from the reference position, the reference position corresponding to the supplementary cleaning condition that triggers the first target rotation is the position when the cleaning device starts to perform edge cleaning, and the reference position corresponding to the supplementary cleaning condition that triggers the non-first target rotation is the position of the cleaning device when the target rotation was last performed; and / or, during the process of the cleaning device performing edge cleaning on the target boundary, before detecting that the cleaning device currently meets the supplementary cleaning condition, it also includes: controlling the cleaning device to move along the target boundary; during the edge movement, in response to the distance between the cleaning device and the front obstacle being greater than the second distance and the distance between the cleaning device and the side obstacle being less than the third distance, controlling the cleaning device to start edge cleaning, wherein the side obstacle is located on the side of the cleaning device close to the target boundary.

[0087] In some embodiments, after the detection module 710 is executed after the cleaning device starts edge cleaning, the method further includes: based on the posture information of the cleaning device during the edge cleaning process, detecting whether the cleaning device has finished edge cleaning.

[0088] In some embodiments, the detection module 710 executes detection of whether the cleaning device has ended the edge cleaning state based on the posture information of the cleaning device during the edge cleaning process, including: recording the second posture information when the cleaning device starts to perform edge cleaning, and during the edge cleaning process, whenever the posture change angle of the cleaning device reaches a fourth angle difference threshold, recording the current second posture information of the cleaning device to obtain a first posture sequence; counting the angle difference between each two adjacent second posture information in the first posture sequence to obtain the angle difference statistical results; and determining whether the cleaning device has ended the edge cleaning state based on the angle difference statistical results.

[0089] In some embodiments, the detection module 710 performs detection of whether the cleaning device has ended edge cleaning based on the posture information of the cleaning device during the edge cleaning process, and also includes: recording the third posture information when the cleaning device starts to perform edge cleaning, and during the edge cleaning process, each time the cleaning device moves a fourth distance, recording the current third posture information of the cleaning device to obtain a second posture sequence; determining whether the cleaning device has ended edge cleaning based on the angle difference statistics, including: in response to the angle difference statistics not exceeding the first preset angle, determining that the cleaning device has not ended edge cleaning; in response to the angle difference statistics exceeding the first preset angle and not exceeding the second preset angle, obtaining the closest distance between the current cleaning device and each non-last third posture information in the second posture sequence, and in response to the closest distance being less than the fifth distance, determining that the cleaning device has ended edge cleaning, wherein the first preset angle is less than the second preset angle; in response to the angle difference statistics exceeding the second preset angle, determining that the cleaning device has ended edge cleaning.

[0090] In some embodiments, the detection module 710 is executed during the process of the cleaning device performing edge cleaning on the target boundary, and before it detects that the cleaning device currently meets the supplementary cleaning conditions, it also includes: using the cleaning device to scan the area to be cleaned including the target boundary, and obtaining a global map corresponding to the area to be cleaned, wherein the global map is superimposed with information on target obstacles related to the target boundary in the area to be cleaned; selecting a local area corresponding to the target obstacle from the global map, and generating a local distance map of the local area; based on the local distance map, obtaining a number of edge distance points whose distance to the target boundary meets a preset edge distance; connecting a number of edge distance points to obtain an edge path corresponding to the target boundary, wherein the cleaning device moves along the edge path to perform edge cleaning on the target boundary.

[0091] In some embodiments, the detection module 710 executes connecting several edge distance points to obtain an edge path corresponding to the target boundary, including: selecting the edge distance point closest to the cleaning equipment from several edge distance points as the starting path point of the edge path; selecting the edge distance point closest to the most recently selected path point from the remaining several edge distance points as the next path point of the edge path; repeating the step of selecting the edge distance point closest to the most recently selected path point from the remaining several edge distance points as the next path point of the edge path, until all edge distance points are selected to obtain the edge path.

[0092] See also Figure 8 , Figure 8: is a schematic diagram of a framework of an embodiment of an electronic device 80 of the present application. The electronic device 80 includes a memory 81 and a processor 82 coupled to each other, and the processor 82 is used to execute program instructions stored in the memory 81 to implement the steps in any of the above-mentioned edge cleaning control method embodiments. In a specific implementation scenario, the electronic device 80 may include but is not limited to: a microcomputer, a server, and in addition, the electronic device 80 may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.

[0093] Specifically, the processor 82 is used to control itself and the memory 81 to implement the steps in any of the above-mentioned edge cleaning control method embodiments. The processor 82 can also be called a CPU (Central Processing Unit). The processor 82 may be an integrated circuit chip with signal processing capabilities. The processor 82 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 82 can be implemented by an integrated circuit chip.

[0094] See also Fig. 9 , Fig. 9 1 is a schematic diagram of a framework of an embodiment of a computer-readable storage medium 90 of the present application. The computer-readable storage medium 90 stores program instructions 901 that can be executed by a processor, and the program instructions 901 are used to implement the steps in any of the above-mentioned edge cleaning control method embodiments.

[0095] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0096] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0097] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0098] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0099] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

Claims

1. A method for controlling edge cleaning, characterized in that: The method comprises: During the process of edge cleaning of the target boundary by the cleaning device, it is detected that the cleaning device currently meets the supplementary cleaning condition; Controlling the cleaning device to perform target rotation, wherein the target rotation can make the target cleaning component of the cleaning device approach the target boundary, and the target cleaning component is in a working state during the target rotation; After the cleaning device completes the rotation of the target, the cleaning device is controlled to continue to perform edge cleaning on the uncleaned boundary section of the target boundary.

2. The method according to claim 1, characterized in that The controlling the cleaning device to perform target rotation comprises: Controlling the cleaning device to rotate in a direction that causes the target cleaning component to approach the target boundary; In response to the cleaning device satisfying a rotation stop condition, the cleaning device is controlled to stop rotating.

3. The method according to claim 2, characterized in that The rotation stop condition includes at least one of the following: a current rotation angle of the cleaning device reaches a preset angle value, and a collision occurs to the cleaning device.

4. The method according to claim 1, characterized in that: Before controlling the cleaning device to perform target rotation, the method further includes: Recording the current first posture information of the cleaning device, wherein the first posture information includes a first posture; The controlling the cleaning device to continue to perform edge cleaning on the uncleaned boundary section of the target boundary includes: Control the cleaning device to first return to the first posture, and then move toward the uncleaned boundary section to perform edge cleaning; or, The cleaning device is controlled to rotate back to the first posture, and in the process of rotating back to the first posture, starts to move toward the uncleaned boundary section to perform edge cleaning.

5. The method according to claim 4, characterized in that During the process of the cleaning device returning to the first posture, the angular velocity of the cleaning device changes with the current angular difference between the current second posture of the cleaning device and the first posture; And / or, the cleaning device starts to move toward the uncleaned boundary segment during the process of returning to the first posture, and during the process of returning to the first posture, the moving speed of the cleaning device is related to the current angle difference.

6. The method according to claim 5, characterized in that The angular velocity of the cleaning device is negatively correlated with the current angle difference; And / or, controlling the cleaning device to return to the first posture comprises: Based on the current angular difference, determining a current angular velocity of the cleaning device; In response to the current angular velocity being not greater than the maximum angular velocity of the cleaning device, controlling the cleaning device to rotate back according to the current angular velocity; In response to the current angular velocity being greater than the maximum angular velocity of the cleaning device, controlling the cleaning device to rotate back according to the maximum angular velocity; The step of determining the current angular velocity of the cleaning device based on the current angular difference and subsequent steps are repeated until the current angular difference of the cleaning device is less than a first angular difference threshold.

7. The method according to claim 1, characterized in that The supplementary cleaning condition includes that the state of the edge cleaning has not ended, and the current position of the cleaning device exceeds a first distance from the reference position, the reference position corresponding to the supplementary cleaning condition that triggers the first rotation of the target is the position of the cleaning device when it starts to perform edge cleaning, and the reference position corresponding to the supplementary cleaning condition that triggers the non-first rotation of the target is the position of the cleaning device when the target rotation was last performed; And / or, before detecting that the cleaning device currently meets the supplementary cleaning condition during the cleaning process of the target boundary by the cleaning device, the method further includes: Controlling the cleaning device to move along the target boundary; During the edge movement, in response to the distance between the cleaning device and the front obstacle being greater than the second distance and the distance between the cleaning device and the side obstacle being less than the third distance, the cleaning device is controlled to start the edge cleaning, wherein the side obstacle is located on the side of the cleaning device close to the target boundary.

8. The method according to claim 1, characterized in that After the cleaning device starts the edge cleaning, the method further includes: Based on the position information of the cleaning device during the edge cleaning process, it is detected whether the cleaning device has finished the edge cleaning.

9. The method according to claim 8, characterized in that The detecting whether the cleaning device has ended the edge cleaning based on the posture information of the cleaning device during the edge cleaning process includes: Recording the second posture information of the cleaning device when it starts to perform the edge cleaning, and during the edge cleaning process of the cleaning device, whenever the posture change angle of the cleaning device reaches a fourth angle difference threshold, recording the current second posture information of the cleaning device to obtain a first posture sequence; Counting the angle difference between each adjacent two pieces of the second posture information in the first posture sequence to obtain an angle difference statistical result; Based on the angle difference statistics, it is determined whether the cleaning device ends the edge cleaning state.

10. The method according to claim 9, characterized in that The step of detecting whether the cleaning device has finished the edge cleaning based on the posture information of the cleaning device during the edge cleaning process further includes: Recording the third posture information when the cleaning device starts to perform the edge cleaning, and during the edge cleaning process, whenever the cleaning device moves a fourth distance, recording the current third posture information of the cleaning device to obtain a second posture sequence; determining whether the cleaning device has ended the edge cleaning based on the angle difference statistics, including: In response to the angle difference statistics result not exceeding the first preset angle, determining that the cleaning device has not ended the edge cleaning; In response to the angle difference statistics exceeding the first preset angle and not exceeding the second preset angle, obtaining the closest distance between the cleaning device and each non-last third posture information in the second posture sequence, and in response to the closest distance being less than the fifth distance, determining that the cleaning device has ended the edge cleaning, wherein the first preset angle is less than the second preset angle; In response to the angle difference statistics exceeding a second preset angle, it is determined that the cleaning device has ended the edge cleaning.

11. The method according to claim 1, characterized in that: In the process of performing edge cleaning on the target boundary by the cleaning device, before detecting that the cleaning device currently meets the supplementary cleaning condition, the method further includes: Scanning the area to be cleaned including the target boundary using the cleaning device to obtain a global map corresponding to the area to be cleaned, wherein information of target obstacles related to the target boundary in the area to be cleaned is superimposed on the global map; Select the local area corresponding to the target obstacle from the global map, and generate a local distance map of the local area. Based on the local distance map, a plurality of edge distance points whose distances from the target boundary meet a preset edge distance are obtained; The plurality of edge distance points are connected to obtain an edge path corresponding to the target boundary, wherein the cleaning device moves along the edge path to perform edge cleaning on the target boundary.

12. The method according to claim 11, characterized in that The connecting the plurality of edge distance points to obtain an edge path corresponding to the target boundary includes: Selecting the edge distance point closest to the cleaning device from the plurality of edge distance points as the starting path point of the edge path; From the remaining plurality of edge distance points, select the edge distance point closest to the most recently selected path point as the next path point of the edge path; Repeat the step of selecting the edge distance point closest to the most recently selected path point from the remaining edge distance points as the next path point of the edge path until the total length between all selected edge distance points exceeds the preset distance length to obtain the edge path.

13. The method according to claims 5 and 12, characterized in that In the process of returning to the first posture, starting to move toward the uncleaned boundary section to perform edge cleaning, comprises: In the process of returning to the first posture, selecting a path point closest to the current second posture of the cleaning device from the remaining edge paths as a target path point, wherein the distance between a line connecting the current second posture and the target path point and the side obstacle is less than a third distance; Obtaining a current angle difference between the current second posture and the target path point; In response to the absolute value of the current angle difference being greater than a second angle difference threshold, controlling the target moving speed of the cleaning device to be zero or less than a first speed value; In response to the absolute value of the current angle difference being greater than a third angle difference threshold and less than or equal to the second angle difference threshold, determining a target moving speed of the cleaning device using the maximum moving speed of the cleaning device and the absolute value of the current angle difference, and controlling the moving speed of the cleaning device to be the target moving speed, wherein the third angle difference threshold is less than the second angle difference threshold; In response to the absolute value of the current angle difference being less than or equal to a third angle difference threshold, controlling the target moving speed of the cleaning device to be the maximum moving speed; Based on the target moving speed, the cleaning device is controlled to move toward the target path point.

14. An electronic device, characterized in that: It comprises a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the edge cleaning control method according to any one of claims 1 to 13.

15. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the edge cleaning control method according to any one of claims 1 to 13 is implemented.

Citation Information

Cited By

  • Control method and apparatus for cleaning device, cleaning device, and readable storage medium

    WO2026103564A1