Cleaning robot control method, device and equipment and storage medium

By determining the starting and ending positions of flexible obstacles in the environment map and controlling the cleaning robot to clean, the problem of missed scanning caused by flexible obstacles in the existing technology is solved, and the cleaning effect and the service life of the robot are improved.

CN118697250APending Publication Date: 2024-09-27IFLYTEK CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410880304.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When existing cleaning robots encounter flexible obstacles, they tend to avoid them directly, resulting in missed areas that could otherwise be passed, affecting the cleaning effect.

Method used

By determining the starting and ending positions of flexible obstacles in the environment map, the cleaning robot is controlled to clean from these positions to avoid avoiding obstacles directly, thereby ensuring that all possible areas can be cleaned.

Benefits of technology

The cleaning effect of the cleaning robot is improved, ensuring that the area where flexible obstacles are located can also be fully cleaned, and extending the service life of the cleaning robot.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118697250A
    Figure CN118697250A
Patent Text Reader

Abstract

The invention provides a control method, device and equipment for a cleaning robot and a storage medium, and the method comprises the steps: determining a first starting position and a first ending position based on the position of a target area in an environment map corresponding to a target place under the condition of determining the cleaning target area, the target area is an area where a flexible obstacle is located in the environment map; the first starting position is the position of a first edge in the target area, and the first ending position is the position of a second edge parallel to the first edge in the target area; and based on the first starting position and the first ending position, controlling the cleaning robot to clean the target area. According to the embodiment of the invention, the cleaning effect of the cleaning robot can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic control technology, and in particular to a control method, device, equipment and storage medium for a cleaning robot. Background Art

[0002] Currently, cleaning robots have been widely used in people's daily lives. Cleaning robots usually have the function of obstacle recognition. When the cleaning robot performs a cleaning task, it can avoid the obstacle when it recognizes it, thereby avoiding collisions.

[0003] In existing technologies, cleaning robots typically avoid obstacles by measuring the distance to them. However, when encountering flexible obstacles such as curtains and door drapes, this obstacle avoidance method either directly avoids the obstacle or cleans along the obstacle using signals detected by edge sensors. This method can cause the cleaning robot to miss areas it can normally pass through, such as areas where flexible obstacles are located, thus affecting the cleaning effect. Summary of the Invention

[0004] The present invention provides a control method, device, equipment and storage medium for a cleaning robot, which are used to solve the defect of poor cleaning effect of the cleaning robot in the prior art and achieve the purpose of improving the cleaning effect of the cleaning robot.

[0005] The present invention provides a control method for a cleaning robot, comprising: In the case of determining a cleaning target area, determining a first starting position and a first ending position based on a position of the target area in an environment map corresponding to the target location, wherein the target area is an area where the flexible obstacle is located in the environment map; the first starting position is a position of a first edge in the target area, and the first ending position is a position of a second edge in the target area that is parallel to the first edge; Based on the first starting position and the first ending position, the cleaning robot is controlled to clean the target area.

[0006] According to a control method of a cleaning robot provided by the present invention, controlling the cleaning robot to clean the target area based on the first starting position and the first ending position includes: If it is determined that an obstacle exists in the target area, determining a second starting position and a second ending position in the target area based on the position of the obstacle in the environment map, wherein the second starting position is a position that is a first preset distance from the obstacle and is between the position of the obstacle in the environment map and the first ending position, and the second ending position is a position that is a second preset distance from the obstacle and is between the position of the obstacle in the environment map and the first starting position; The cleaning machine is controlled to clean from the first starting position to the second ending position, and the cleaning robot is controlled to clean from the second starting position to the first ending position after avoiding the obstacle.

[0007] According to a control method of a cleaning robot provided by the present invention, controlling the cleaning robot to clean from the first starting position to the second ending position includes: When the cleaning robot reaches the first starting position, controlling the cleaning robot to move toward a wall close to the target area based on a first preset speed; When a collision signal is received during the moving process, the cleaning robot is controlled to retreat, and the cleaning robot is controlled to perform cleaning from the retreated position to the second end position.

[0008] According to a control method of a cleaning robot provided by the present invention, the method further includes: During the process of the cleaning robot cleaning the target area, if it is determined that the travel distance within the preset time period is less than the preset travel distance, obtaining the current position of the cleaning robot, and determining a third starting position of the target area based on the current position and the preset distance; After controlling the cleaning robot to avoid the area corresponding to the preset distance and reach the third starting position, the cleaning robot performs cleaning from the third starting position to the first ending position.

[0009] According to a control method of a cleaning robot provided by the present invention, the method comprises: When the same wall corresponds to at least two sub-areas, determining a distance between a first side of a first sub-area and a second side of a second sub-area; the first sub-area is adjacent to the second sub-area, the first side is a side close to the second sub-area, and the second side is a side close to the first sub-area; the sub-areas are areas where flexible obstacles are located in the environment map; When the distance is less than a preset distance, determining the target area based on the first sub-area, the second sub-area, and an area between the first sub-area and the second sub-area; When the distance is greater than or equal to the preset distance, the target area is determined based on the first sub-area and the second sub-area.

[0010] According to a control method of a cleaning robot provided by the present invention, the method comprises: In the case where the same wall corresponds to a sub-region, obtaining at least one historical region corresponding to the flexible obstacle represented by the sub-region; The historical area with the largest area among all the historical areas is determined as the target area.

[0011] According to a control method of a cleaning robot provided by the present invention, the method further includes: determining, upon receiving a cleaning instruction sent by a terminal device, a type of the cleaning instruction, where the cleaning instruction is generated by the terminal device based on information input by a user on the environment map indicating whether to clean a target area; Whether to clean the target area is determined based on the type of the cleaning instruction.

[0012] The present invention also provides a control device for a cleaning robot, comprising: a determination module, configured to, when determining a cleaning target area, determine a first starting position and a first ending position based on a position of the target area in an environment map corresponding to the target location, wherein the target area is an area in the environment map where the flexible obstacle is located; the first starting position is a position of a first edge in the target area, and the first ending position is a position of a second edge in the target area that is parallel to the first edge; A control module is configured to control the cleaning robot to clean the target area based on the first starting position and the first ending position.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a control method for a cleaning robot as described above is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described control methods for the cleaning robot.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the control method of the cleaning robot as described above is implemented.

[0016] The control method, device, equipment, and storage medium of the cleaning robot provided by the present invention, when determining the target area where a flexible obstacle is located in an environmental map of a target location that needs to be cleaned, will determine the first starting position and the first ending position corresponding to the target area based on the position of the target area in the environmental map, and control the cleaning robot to clean the target area based on the first starting position and the first ending position. Since, when it is determined that the target area where the flexible obstacle is located needs to be cleaned, the cleaning robot can be controlled to run from the first starting position to the first ending position in the target area to perform cleaning, the phenomenon in the prior art of directly avoiding the flexible obstacle when the flexible obstacle is detected, thereby missing the area where the flexible obstacle is located, is avoided. Since the cleaning operation can be performed on the target area, the cleaning effect of the cleaning robot can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 A schematic flow chart of a control method for a cleaning robot provided in an embodiment of the present invention.

[0019] Figure 2 A schematic diagram of an environment map provided in an embodiment of the present invention.

[0020] Figure 3 A schematic diagram of a processed environment map provided by an embodiment of the present invention.

[0021] Figure 4 A schematic diagram of a wall provided in an embodiment of the present invention.

[0022] Figure 5 A comparative schematic diagram of different wall identification methods is provided for the embodiment of the present invention.

[0023] Figure 6 This is one of the schematic diagrams of the target area provided in the embodiment of the present invention.

[0024] Figure 7 This is a second schematic diagram of a target area provided by an embodiment of the present invention.

[0025] Figure 8This is a schematic diagram of controlling a cleaning robot to perform cleaning operations according to an embodiment of the present invention.

[0026] Figure 9 A schematic diagram of the cleaning process of the cleaning robot provided in an embodiment of the present invention.

[0027] Figure 10 A schematic diagram of the cleaning robot path planning provided by an embodiment of the present invention.

[0028] Figure 11 This is one of the schematic diagrams of the target area provided in the embodiment of the present invention.

[0029] Figure 12 This is a second schematic diagram of a target area provided by an embodiment of the present invention.

[0030] Figure 13 The third schematic diagram of the target area provided in the embodiment of the present invention.

[0031] Figure 14 This is a fourth schematic diagram of a target area provided in an embodiment of the present invention.

[0032] Figure 15 The fifth schematic diagram of the target area provided in the embodiment of the present invention.

[0033] Figure 16 This is a sixth schematic diagram of a target area provided in an embodiment of the present invention.

[0034] Figure 17 A schematic diagram of the interface of a terminal device provided in an embodiment of the present invention.

[0035] Figure 18 This is a schematic structural diagram of a control device for a cleaning robot provided by an embodiment of the present invention.

[0036] Figure 19 The following is a schematic diagram of the physical structure of an electronic device. DETAILED DESCRIPTION

[0037] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0038] With the development of artificial intelligence technology, household robots are gradually becoming part of people's daily lives. For example, cleaning robots, equipped with lidar and using a simultaneous localization and mapping (SLAM) algorithm, can autonomously explore and build a map of the home environment. They can then navigate based on this map, avoiding obstacles and reaching specific locations to perform cleaning operations. In existing technologies, cleaning robots typically use their onboard lidar to measure the distance to obstacles to determine their location and avoid them. However, this obstacle avoidance method will cause the cleaning robot to avoid flexible obstacles such as curtains, tablecloths, or door curtains. However, these areas are normally accessible and cleanable by the cleaning robot. Therefore, when cleaning using this obstacle avoidance method, the robot may miss areas that it can normally navigate, reducing its cleaning effectiveness.

[0039] Taking the above-mentioned problems into consideration, an embodiment of the present invention proposes a control method for a cleaning robot. In this method, when determining the target area where a flexible obstacle is located in an environmental map of a target location that needs to be cleaned, a first starting position and a first ending position corresponding to the target area are determined based on the position of the target area in the environmental map, and based on the first starting position and the first ending position, the cleaning robot is controlled to clean the target area. Since, when it is determined that the target area where the flexible obstacle is located needs to be cleaned, the cleaning robot can be controlled to run from the first starting position to the first ending position in the target area to perform cleaning, the phenomenon in the prior art where, when a flexible obstacle is detected, the flexible obstacle is directly avoided, thereby missing the area where the flexible obstacle is located is avoided. Since the cleaning operation can be performed on the target area, the cleaning effect of the cleaning robot can be improved.

[0040] The following combination Figures 1-17 The control method of the cleaning robot provided by the embodiment of the present invention is described. The embodiment of the present invention can be applied to the scenario of controlling the cleaning robot to perform cleaning operations on the target place, and in particular to the scenario of controlling the cleaning robot to perform cleaning operations on the target area where the flexible obstacles are located in the target place, wherein the target place can include, for example, places such as homes, offices or shopping malls. The executor of this method can be an electronic device such as a cleaning robot, a terminal device, a computer, a server, a server cluster or a specially designed control device for a cleaning robot, or a control device of the cleaning robot provided in the electronic device, and the control device of the cleaning robot can be implemented by software, hardware or a combination of the two.

[0041] Below, the cleaning robot involved in the embodiment of the present invention is first introduced. The cleaning robot has a rotating laser radar sensor that can measure the relative distance between the cleaning robot and surrounding obstacles of a specific height. The cleaning robot is also provided with an image sensor that can capture images of the home environment within a specific direction and a specific field of view. A collision sensor is also provided on the front of the cleaning robot's body, which can sense collision obstacles in front; the cleaning robot also has a gyroscope and / or a wheel speed meter for inertial navigation and motion control. Optionally, the side of the cleaning robot can also be provided with an edge sensor for traveling around obstacles close to the side; a forward-looking ranging obstacle avoidance sensor can also be provided on the front side for sensing obstacles of different heights within a specific angle field of view in front of the fuselage.

[0042] Figure 1 A flow chart of a control method for a cleaning robot according to an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes: Step 101: When the cleaning target area is determined, a first starting position and a first ending position are determined based on the position of the target area in the environmental map corresponding to the target location. The target area is the area where the flexible obstacles are located in the environmental map; the first starting position is the position of the first edge in the target area, and the first ending position is the position of the second edge parallel to the first edge in the target area.

[0043] In this step, as the cleaning robot autonomously navigates within the target location, its radar sensor senses the relative distance between itself and surrounding obstacles. The SLAM algorithm then processes the radar data collected by the radar sensor to construct an environmental map corresponding to the target location. This radar data processing can include removing abnormal noise from the radar data using a dilation-erosion filtering algorithm, connecting small, partially disconnected areas, and repairing and straightening jagged map edges caused by radar data ranging errors using corner point finding and line segment fitting.

[0044] Figure 2 A schematic diagram of an environment map provided by an embodiment of the present invention, such as Figure 2 As shown in Figure 2, there are glitches in the original SLAM environment map built based on lidar data. Figure 3 A schematic diagram of the processed environment map provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, it is possible to Figure 2 The SLAM original environment map shown in is subjected to image processing, such as burr removal, to obtain an environment map with higher accuracy.

[0045] Figure 4 A schematic diagram of a wall provided by an embodiment of the present invention, such as Figure 4As shown, the walls in the environment map can be determined based on the connectivity relationship of the outermost edges in the environment map after burrs are removed. The connectivity relationship can be determined based on whether the wall grids in the environment map are continuously adjacent.

[0046] Furthermore, during autonomous movement, the cleaning robot can capture images of the target location using an image sensor. An image recognition algorithm can be used to identify walls, furniture, and obstacles within the captured images. Subsequently, coordinate transformation can be used to distinguish between walls and furniture and objects placed adjacent to them in the constructed environment map, thereby further clarifying the location of the walls. This coordinate transformation can be achieved by hardware calibration of the image sensor and radar sensor to determine the relative distances between pixels representing walls, furniture, or other obstacles at a specific height in the image, thereby determining the coordinate positions of the identified pixels representing the walls within the environment map. Alternatively, the relative distances between pixels representing the walls can be determined using other ranging sensors calibrated with the image sensor hardware, or using a visual depth estimation algorithm, thereby determining the coordinate positions of the walls within the environment map. It should be understood that identifying walls within the captured images can, on the one hand, distinguish between furniture and objects placed adjacent to the walls, and on the other hand, because horizontal laser radars can only detect obstacles at a specific height and can be obscured by objects adjacent to the walls, image recognition can pre-determine the locations of more obscured walls without being affected by object movement. Figure 5 The present invention provides a comparative schematic diagram of identifying a wall in different ways, such as Figure 5 As shown in the figure, when a radar sensor is used to identify a wall, since the radar sensor can only sense the distance of obstacles at a specific height, the identified wall may be blocked by objects next to the wall and misidentified. For example, Figure 5 In the left figure, the concave area is an obstacle next to the wall, but when the radar sensor is used for recognition, the area where the obstacle is located will be removed, thereby identifying the wall with the concave area. Figure 5 In the middle figure, when an object moves, such as an obstacle moves to the right, the wall identified by the radar data collected by the radar sensor will change. When the wall is identified by the image sensor, the position of more walls blocked by obstacles can be determined in advance without being affected by the movement of the object. Figure 5 In the figure on the right, when a wall is identified by visual recognition, moving the obstacle will not affect the position of the identified wall.

[0047] In addition, when performing cleaning or other specific tasks, the cleaning robot will continuously update the map and the positions of the pixel points used to represent the wall in the updated map through algorithms.

[0048] Furthermore, the image recognition algorithm can be used to identify the pixel points used to represent the flexible obstacles in the collected image, and the position of the pixel points representing the flexible obstacles in the environment map can be determined by coordinate transformation. The specific determination method is similar to the method of determining the position of the pixel points representing the wall in the environment map, and will not be repeated here.

[0049] For example, the target area can be determined based on the position coordinates of the pixel points representing the wall in the environment map and the position coordinates of the pixel points representing the flexible obstacle in the environment map, where the target area is the area where the flexible obstacle is located. For example, when the flexible obstacle is a curtain, the target area is the area where the curtain is located, or it can also be understood as the projection area of ​​the curtain on the ground.

[0050] In the specific implementation process, in the environmental map, among all flexible obstacle grids, the flexible obstacle grid whose minimum distance to the wall grid is less than a preset first distance threshold is determined, wherein the first distance threshold can be set according to actual conditions or experience, for example, it can be 50 cm, etc. The flexible obstacle grid can be, for example, a curtain grid.

[0051] After identifying flexible obstacle grids with a minimum distance less than a preset first distance threshold, the coordinate points of the remaining wall-side flexible obstacle grids in the environment map are merged based on their connectivity, thereby obtaining a target area, such as a curtain area. The connectivity of the wall-side flexible obstacle grids can be determined based on a preset second distance threshold. For example, when the distance between two flexible obstacle grids is less than the second distance threshold, the two flexible obstacle grids are determined to belong to the same target area. The second distance threshold can be set, for example, to the width of the cleaning robot.

[0052] It should be understood that the above-mentioned process of determining the target area can be performed by the cleaning robot each time it performs a cleaning task. In addition, considering that flexible obstacles in the target location generally do not move, the cleaning robot may determine the target area the first time it cleans the target location and not repeatedly determine the target area during subsequent cleaning tasks.

[0053] Figure 6 One of the schematic diagrams of the target area provided by the embodiment of the present invention is as follows: Figure 6As shown, when the user selects to clean a target area, after the cleaning robot approaches the flexible obstacle, it will determine a first starting position for starting to clean the target area and a first ending position for ending the cleaning task based on the location of the target area in the environment map. The first starting position is the location of the first edge of the target area, and the first ending position is the location of the second edge of the target area that is parallel to the first edge.

[0054] It should be understood that after determining the position of the target area in the environmental map, the center point of the first edge closer to the current position of the cleaning robot can be used as the first starting position, and the center point of the second edge farther from the current position of the cleaning robot can be used as the first ending position.

[0055] Step 102: Based on the first starting position and the first ending position, control the cleaning robot to clean the target area.

[0056] In this step, continue to refer to Figure 6 As shown, after determining the first starting position and the first ending position, the cleaning robot can be controlled to perform the cleaning operation along the wall, with the first starting position pointing to the first ending position as the target moving direction and the distance between the first starting position and the first ending position as the target moving distance.

[0057] The control method for a cleaning robot provided by an embodiment of the present invention determines a target area where a flexible obstacle is located in an environmental map of a target location that needs to be cleaned. The method determines a first starting position and a first ending position corresponding to the target area based on the position of the target area in the environmental map, and controls the cleaning robot to clean the target area based on the first starting position and the first ending position. Since, when it is determined that the target area where the flexible obstacle is located needs to be cleaned, the cleaning robot can be controlled to run from the first starting position to the first ending position in the target area to perform cleaning, the phenomenon in the prior art of directly avoiding the flexible obstacle when the flexible obstacle is detected, thereby missing the area where the flexible obstacle is located, is avoided. Since the cleaning operation can be performed on the target area, the cleaning effect of the cleaning robot can be improved.

[0058] For example, based on the above embodiment, when controlling the cleaning robot to clean the target area based on the first starting position and the first ending position, the cleaning robot may be controlled in the following manner: When it is determined that there is an obstacle in the target area, a second starting position and a second ending position in the target area are determined based on the position of the obstacle in the environmental map, the second starting position being a position at a first preset distance from the obstacle, and the second starting position being between the position of the obstacle in the environmental map and the first ending position, and the second ending position being a position at a second preset distance from the obstacle, and the second ending position being between the position of the obstacle in the environmental map and the first starting position; the cleaning machine is controlled to clean from the first starting position to the second ending position, and the cleaning robot is controlled to clean from the second starting position to the first ending position after avoiding the obstacle.

[0059] Specifically, while the cleaning robot is moving, it can use a radar sensor or image sensor to sense in advance whether there are obstacles in the target area. Pre-sensing whether there are obstacles in the target area can be understood as determining whether there are obstacles in the target area before the cleaning robot reaches the target area. When it is determined that there are obstacles in the target area, the hardware calibration relationship between the radar sensor and the image sensor can be used to determine the position of the obstacle in the environmental map through coordinate conversion.

[0060] Further, Figure 7 The second schematic diagram of the target area provided by the embodiment of the present invention is as follows: Figure 7 As shown, the second starting position and the second ending position in the target area can be determined based on the position of the obstacle in the environmental map. The second ending position is between the position of the obstacle in the environmental map and the first starting position, and there is a second preset distance between the second ending position and the obstacle. In other words, the second ending position is the position where the cleaning robot is close to the obstacle but has not yet collided with it when it starts to shuttle from the first starting position in the target area. The second ending position can be determined based on the distance between the cleaning robot and the obstacle measured by the radar sensor. The second starting position is between the position of the obstacle in the environmental map and the first ending position, and there is a first preset distance between the second starting position and the obstacle. In other words, the second starting position is the position where the cleaning robot returns to the target area after cleaning around the obstacle from the second ending position, for example, returning to the bottom of the curtain.

[0061] Furthermore, the cleaning robot can be controlled to perform a cleaning operation along the wall, with the first starting position pointing to the second end position as the target travel direction, and the distance between the first starting position and the second end position as the first target travel distance. After the cleaning robot reaches the second end position, it will bypass the obstacle and return to the second starting position, and continue the cleaning operation with the second starting position pointing to the first end position as the target travel direction, and the distance between the second starting position and the first end position as the second target travel distance.

[0062] In this embodiment, when the presence of an obstacle in the target area is sensed in advance, a second starting position and a second ending position in the target area can be determined based on the location of the obstacle in the environment map, and the cleaning machine can be controlled to clean from the first starting position to the second ending position. After avoiding the obstacle, the cleaning robot can be controlled to clean from the second starting position to the first ending position. Since targeted path planning can be performed based on the location of the obstacle sensed in advance, it can facilitate the cleaning robot's movement within the target area and reduce collisions with obstacles. This not only improves the cleaning effect of the cleaning robot, but also extends the cleaning robot's service life.

[0063] For example, based on the above embodiment, when controlling the cleaning machine to clean from the first starting position to the second ending position, it can be performed in the following manner: When the cleaning robot reaches the first starting position, the cleaning robot is controlled to move toward the wall close to the target area based on a first preset speed. If a collision signal is received during the movement, the cleaning robot is controlled to retreat, and the cleaning robot is controlled to clean from the retreated position to the second end position.

[0064] Specifically, Figure 8 A schematic diagram of controlling a cleaning robot to perform a cleaning operation according to an embodiment of the present invention is shown in FIG. Figure 8 As shown, when the cleaning robot is cleaning from a first starting position to a second ending position, the cleaning robot can be first controlled to navigate to the first starting position. Subsequently, the cleaning robot can be controlled to move toward the wall in a direction perpendicular to the wall of the target area at a first preset speed. The first preset speed is generally lower than the cleaning speed of the cleaning robot, thereby ensuring that the cleaning robot's impact with the wall is as light as possible.

[0065] When the cleaning robot moves toward a wall and contacts the wall, a collision sensor located on the front of the cleaning robot generates a collision signal. In one possible implementation, upon receiving the collision signal, the cleaning robot is controlled to retreat until the collision sensor no longer triggers and generates the collision signal. In another possible implementation, upon receiving the collision signal, the cleaning robot is controlled to retreat a preset distance.

[0066] After the cleaning robot is controlled to perform the backward operation, it will start from the backward position and move toward the second end position to perform the cleaning operation. Figure 9 A cleaning schematic diagram of a cleaning robot provided in an embodiment of the present invention is shown in FIG. Figure 9As shown, after the cleaning robot is close to the wall, it will be controlled to rotate in place, facing Figure 7 , and advances according to the first target travel distance, thereby performing a cleaning operation.

[0067] In this embodiment, by controlling the cleaning robot to move toward the wall near the target area, when a collision signal is received, the cleaning robot is controlled to retreat so that the cleaning robot does not collide with the wall, thereby reducing the friction between the cleaning robot and the wall, extending the service life of the cleaning robot, and also achieving the purpose of avoiding damage to the wall.

[0068] It should be noted that the process of controlling the cleaning robot to clean from the second starting position to the first ending position is similar to the process of controlling the cleaning robot to clean from the first starting position to the second ending position in the above embodiment, and will not be repeated here.

[0069] It should be understood that when the cleaning robot is performing the above-mentioned cleaning operation, since the cleaning robot is shuttling and cleaning in the target area, such as the bottom of a flexible obstacle, the flexible obstacle may block the radar sensor on the top of the cleaning robot, the edge sensor on the side, and the forward-looking ranging obstacle avoidance sensor in front of the fuselage. Therefore, when the cleaning robot is moving along the wall to clean the bottom of the flexible obstacle, the signals of the above-mentioned sensors need to be ignored, that is, the signals collected by the above-mentioned sensors are not used as references for obstacle avoidance. Instead, the light touch collision of the collision sensor is used for obstacle avoidance, and the wheel speed meter and / or gyroscope are used for inertial navigation or motion control, so that the cleaning robot avoids the influence of the flexible obstacle blocking the sensor signal, thereby traveling the target distance in the target direction and completing the shuttle cleaning in the target area.

[0070] Exemplarily, based on the above embodiments, during the process of the cleaning robot cleaning the target area, when it is determined that the travel distance within the preset time is less than the preset travel distance, the current position of the cleaning robot is obtained, and the third starting position of the target area is determined based on the current position and the preset distance. After the cleaning robot is controlled to avoid the area corresponding to the preset distance and reach the third starting position, it cleans from the third starting position to the first end position.

[0071] Specifically, because the cleaning robot is obstructed by flexible obstacles while navigating within the target area, it cannot use signals collected by the radar sensor, forward-looking range-finding obstacle avoidance sensor, and image sensor to avoid obstacles. Instead, it relies on light touch collisions detected by the collision sensor. When the front end of the cleaning robot collides with an obstacle while navigating within the target area, the collision sensor triggers a collision signal. Furthermore, the cleaning robot also relies on the relative deviation of the wheel speed meter and gyroscope to detect slippage. In actual use, due to the height of the cleaning robot's body, if the bottom structure, which is lower than the body of the cleaning robot, contacts an insurmountable obstacle, the cleaning robot's forward movement is blocked. However, the collision sensor on the front of the cleaning robot cannot detect the obstacle. In this case, the cleaning robot may slip but will not collide. When the cleaning robot's actual travel distance within a preset time period, as determined by the wheel speed meter and gyroscope, is less than a preset travel distance, the cleaning robot is determined to have slipped. Among them, the preset travel distance can be set according to actual conditions or experience, for example, it can be set to the body length of the cleaning robot or 40 cm, etc. The embodiment of the present invention does not limit the specific value of the preset travel distance.

[0072] When the cleaning robot receives a collision signal or a slipping state detection signal during movement, that is, when a collision or slip occurs, in an embodiment of the present invention, the cleaning robot may be processed in the following manner: Figure 10 A schematic diagram of the cleaning robot path planning provided by an embodiment of the present invention is shown in FIG. Figure 10 As shown, when the cleaning robot encounters a collision or slipping state while shuttling and cleaning in the target area, the cleaning robot will end the cleaning movement of the target area in advance, and infer and record the current position coordinates based on the gyroscope data, that is, the position coordinates when the slip or collision occurs. In addition, the cleaning robot will be controlled to leave the target area by retreating, rotating or moving forward in an arc, and the local map features will be obtained again through radar data and compared with the global map to correct the posture of the cleaning robot. Among them, when the cleaning robot leaves the target area, it can be determined by the completeness of the data detected by the radar sensor. When the data detected by the radar sensor exceeds the preset ratio and is no longer affected by the obstruction of flexible obstacles, it can be regarded as leaving the target area. The preset ratio is an empirical value. For example, when the radar sensor's perception range is omnidirectional on the horizontal plane, it can be set to 70%.

[0073] After the cleaning robot reconfirms its position, it will replan a third starting position in the target area, i.e., a new starting point, based on its current position and the preset distance. Specifically, the third starting position can be the position obtained by skipping forward a preset distance from the current position along the cleaning robot's direction of travel. Therefore, the third starting position is on the ray originally planned from the first starting position to the first ending position. The preset distance is an empirical value and can be set to one body width or 40 cm in actual implementation.

[0074] After determining the third starting position, the cleaning robot can be controlled to avoid the area corresponding to the preset distance and reach the third starting position. Starting from the third starting position, it rotates and moves forward close to the wall until it reaches the first end position, thereby completing the shuttle cleaning in the target area.

[0075] It should be understood that when the cleaning robot encounters slippage or collision again, in one possible implementation, the above-mentioned processing method can be repeated, and then the cleaning can be continued in the target area. The specific implementation method can refer to the description in the above embodiment and will not be repeated here. In another possible implementation, the cleaning robot can be controlled to give up cleaning the target area, and the user can be prompted on the interface of the remote terminal device and / or through the cleaning robot speaker that there are many obstacles in the target area, and the cleaning action of the current target area is abandoned. The radar sensor and the edge sensor are used to control the cleaning robot to complete the subsequent cleaning action along the boundary of the flexible obstacle.

[0076] In this embodiment, when it is determined that the travel distance of the cleaning robot within the preset time period is less than the preset distance, that is, when the cleaning robot slips, the third starting position will be determined based on the current position of the cleaning robot and the preset distance, and the cleaning robot will be controlled to avoid the area corresponding to the preset distance and reach the third starting position, and then clean from the third starting position to the first end position, so that the cleaning robot can avoid obstacles to perform cleaning operations, thereby improving the cleaning effect on the target area.

[0077] Exemplarily, based on the above embodiments, when determining the target area, when the same wall corresponds to at least two sub-areas, the distance between the first side of the first sub-area and the second side of the second sub-area is determined; the first sub-area is adjacent to the second sub-area, the first side is the side close to the second sub-area, the second side is the side close to the first sub-area, and the sub-area is the area where the flexible obstacle is located in the environmental map; when the distance is less than the preset distance, the target area is determined based on the first sub-area, the second sub-area, and the area between the first sub-area and the second sub-area; when the distance is greater than or equal to the preset distance, the target area is determined based on the first sub-area and the second sub-area.

[0078] Specifically, when the flexible obstacle is a curtain or other obstacle with an open or closed state, since its open or closed state often changes, the length of the obstructed area of ​​the flexible obstacle detected by the cleaning robot during each cleaning process may be different. Therefore, after determining the inflection point of the wall in the environmental map, the same wall can be determined based on the inflection point. When the same wall has at least two sub-areas where flexible obstacles are located, for example, when there are at least two curtain bottom areas, the distance between the two adjacent sub-areas can be further determined to determine whether to merge the two sub-areas. In a specific implementation, for adjacent first and second sub-areas, the distance between the first side of the first sub-area close to the second sub-area and the second side of the second sub-area close to the first sub-area can be determined. If this distance is less than a preset distance, it means that the first and second sub-areas are relatively close. In this case, the first sub-area, the second sub-area, and the area between the first and second sub-areas can be collectively determined as the target area. That is, the first sub-area, the second sub-area, and the area between the first and second sub-areas can be merged to obtain the target area. If the distance is greater than or equal to the preset distance, it indicates that the first sub-region and the second sub-region are relatively far apart. In this case, the first sub-region and the second sub-region can be determined as target regions separately, that is, the first sub-region and the second sub-region are not merged. The preset distance can be set based on actual conditions or experience, for example, it can be set to 1 meter. The specific value of the preset distance is not limited in this embodiment of the present invention.

[0079] Figure 11 One of the schematic diagrams of the target area provided by the embodiment of the present invention is as follows: Figure 11 As shown, taking the flexible obstacle as a curtain as an example, assuming that the same wall corresponds to two curtain sub-areas, when the curtains on both sides are in a partially open state, each curtain on each side will determine its corresponding curtain sub-area. When the distance between the two curtain sub-areas is less than the preset distance, the two curtain sub-areas and the area between the two curtain sub-areas will be merged to obtain the target area.

[0080] Figure 12 The second schematic diagram of the target area provided by the embodiment of the present invention is as follows: Figure 12 As shown, continuing to take the flexible obstacle as a curtain as an example, assuming that the same wall corresponds to two curtain sub-areas, when the curtains on both sides are in a completely closed state, the distance between the curtain sub-areas corresponding to each side of the curtain will be less than the preset distance or overlap. Therefore, the two curtain sub-areas and the area between the two curtain sub-areas will be merged to obtain the target area.

[0081] Figure 13 The third schematic diagram of the target area provided by the embodiment of the present invention is as follows: Figure 13As shown, assuming that there are two curtain sub-areas corresponding to the same wall, when the curtains on both sides are in a partially open state, each curtain on each side will determine its own corresponding curtain sub-area. When the distance between the two curtain sub-areas is greater than or equal to the preset distance, the two curtain sub-areas will not be merged, and each curtain sub-area will be determined as a target area. At this time, the target area will include at least two.

[0082] In this embodiment, the distance between the first side of the first sub-area and the second side of the second sub-area is compared with a preset distance, and based on the comparison result, a determination is made as to whether to merge the first and second sub-areas. This allows for flexible determination of the target area based on the open or closed state of the flexible obstacle. Furthermore, when the distance is less than the preset distance, the first and second sub-areas are merged, avoiding the need to frequently determine the starting and ending positions, thus conserving system resources.

[0083] Exemplarily, when the same wall corresponds to a sub-region, at least one historical region corresponding to the flexible obstacle represented by the sub-region is obtained, and the historical region with the largest area among all historical regions is determined as the target region.

[0084] Specifically, for a given wall, once a sub-area corresponding to a flexible obstacle is identified, its longest historical coverage length can be recorded on the environment map using a method that only adds, not subtracts. This means the largest historical area is designated as the target area. Alternatively, the entire length of the wall can be designated as the target area covered by the flexible obstacle.

[0085] Figure 14 The fourth schematic diagram of the target area provided by the embodiment of the present invention is as follows: Figure 14 As shown, taking the flexible obstacle as a curtain as an example, assuming that the same wall corresponds to a curtain sub-area, that is, when the curtain on one side is in a partially open state, the curtain sub-area determined by the curtain on that side can be directly determined as the target area.

[0086] Figure 15 The fifth schematic diagram of the target area provided by the embodiment of the present invention is as follows: Figure 15 As shown, continuing with the example of a curtain as a flexible obstacle, assuming that a single wall corresponds to a curtain sub-region, that is, when a single curtain is open, at least one historical region corresponding to the curtain can be determined. Each historical region can be used to represent the degree of opening or the state of the curtain at a certain time in the past. The historical region with the largest area among all historical regions can be determined as the target region.

[0087] Figure 16 The sixth schematic diagram of the target area provided by the embodiment of the present invention is as follows: Figure 16As shown, continuing to take the flexible obstacle as a curtain as an example, assuming that the same wall corresponds to a curtain sub-area, that is, when the curtain on one side is in a completely closed state, the entire length of the wall can be determined as the target area.

[0088] In this embodiment, when the same wall corresponds to a sub-area, the historical area with the largest area can be determined as the target area. This can avoid the phenomenon that the target area needs to be re-determined due to the flexible obstacles opening or closing that affect the target area during the cleaning robot's cleaning task, thereby improving the intelligence of the cleaning robot when performing cleaning tasks.

[0089] Illustratively, based on the above embodiments, when determining whether the target area needs to be cleaned, the type of cleaning instruction can be determined when a cleaning instruction sent by a terminal device is received. The cleaning instruction is generated by the terminal device based on the information on whether the target area is to be cleaned input by the user on the environmental map, and whether to clean the target area is determined based on the type of cleaning instruction.

[0090] Specifically, Figure 17 This is a schematic diagram of the interface of the terminal device provided by the embodiment of the present invention, such as Figure 17 As shown, taking the flexible obstacle as a curtain as an example, after the cleaning robot constructs an environmental map, it can send the environmental map to a terminal device, where the terminal device can be, for example, a user's remote device. For each target area identified in the environmental map, such as the curtain area, a rectangular frame is drawn in the terminal device interface according to the length and preset width of each curtain area for interactive display. The preset width can be the actual maximum width of the identified curtain bottom area, or it can be a fixed width, such as 20 cm, which only needs to meet the needs of facilitating user interaction on the terminal device interface.

[0091] For each curtain area displayed on the terminal device, the user can interactively set a cleaning strategy, such as inputting on the environment map whether to clean the curtain area. Upon receiving these user inputs, the terminal device generates a cleaning instruction and sends it to the cleaning robot. Upon receiving the cleaning instruction, the cleaning robot determines the type of cleaning instruction and, based on the instruction type, whether to clean the curtain area. The cleaning instruction types include avoiding curtains and cleaning the bottom of curtains. If no user setting is made, the default cleaning method is to avoid curtains.

[0092] It should be understood that, given the varying opening and closing states of curtains, the length of the curtain-covered area seen by the cleaning robot during each mission may vary, and the length of the curtain area displayed on the map may change. For curtain areas for which the user has set cleaning policies on the terminal device, an overlap-and-merge approach is adopted to account for updates, merging, and handling of dependencies when their area ranges change. Specifically, for curtain areas on the same wall that overlap with historical curtain areas, the same curtain area will be merged, and the cleaning policy set on the terminal device will continue to be applied.

[0093] In addition, since the cleaning robot is blocked by the curtains while moving through the curtain area, it cannot refer to the radar sensor, forward-looking ranging obstacle avoidance sensor and image sensor signals for obstacle avoidance, and can only rely on the collision sensor for collision avoidance. Therefore, when the curtain area is displayed on the terminal device, if the user chooses to clean the bottom of the curtain, the user can be reminded through text or voice on the terminal device that there may be a risk of the cleaning robot being trapped by low obstacles or causing a collision when cleaning the curtain area.

[0094] In this embodiment, the user can input information on whether to clean the target area into the terminal device, which allows the user to flexibly set the cleaning method for the target area, thereby improving the user experience. In addition, through the interaction between the cleaning robot and the terminal device, the cleaning robot can determine whether to clean the target area based on the type of cleaning instruction sent by the terminal device, thereby making the cleaning robot's determination of whether to clean the target area more intelligent.

[0095] For example, if the user has not set a cleaning strategy for a target area or has set a cleaning strategy to avoid flexible obstacles, the cleaning robot will use a radar sensor to sense the relative distance to the flexible obstacle in real time during the cleaning process. It will then proceed along the boundary of the flexible obstacle at a preset fixed distance to avoid the flexible obstacle. Alternatively, the cleaning robot can use the relative distance to the flexible obstacle sensed in real time by an edge sensor located on the side of the robot body to maintain a preset distance while cleaning along the boundary of the flexible obstacle. The preset distance can be, for example, 1 cm.

[0096] The control device of the cleaning robot provided by the present invention is described below. The control device of the cleaning robot described below and the control method of the cleaning robot described above can be referred to each other.

[0097] Figure 18 A schematic diagram of the structure of the control device of the cleaning robot provided by the embodiment of the present invention, referring to Figure 18 As shown, the control device 1800 of the cleaning robot includes: Determining module 1801 is configured to determine, when a cleaning target area is determined, a first starting position and a first ending position based on a position of the target area in an environment map corresponding to the target location, wherein the target area is an area in the environment map where the flexible obstacle is located; the first starting position is a position of a first edge in the target area, and the first ending position is a position of a second edge in the target area that is parallel to the first edge; The control module 1802 is configured to control the cleaning robot to clean the target area based on the first starting position and the first ending position.

[0098] In an exemplary embodiment, the control module 1802 is specifically configured to: If it is determined that an obstacle exists in the target area, determining a second starting position and a second ending position in the target area based on the position of the obstacle in the environment map, wherein the second starting position is a position that is a first preset distance from the obstacle and is between the position of the obstacle in the environment map and the first ending position, and the second ending position is a position that is a second preset distance from the obstacle and is between the position of the obstacle in the environment map and the first starting position; The cleaning machine is controlled to clean from the first starting position to the second ending position, and the cleaning robot is controlled to clean from the second starting position to the first ending position after avoiding the obstacle.

[0099] In an exemplary embodiment, the control module 1802 is specifically configured to: When the cleaning robot reaches the first starting position, controlling the cleaning robot to move toward a wall close to the target area based on a first preset speed; When a collision signal is received during the moving process, the cleaning robot is controlled to retreat, and the cleaning robot is controlled to perform cleaning from the retreated position to the second end position.

[0100] In an exemplary embodiment, the apparatus further includes: an acquisition module, wherein: an acquisition module, configured to acquire the current position of the cleaning robot when it is determined that the travel distance within a preset time period is less than a preset travel distance during the process of the cleaning robot cleaning the target area; The determining module 1801 is further configured to determine a third starting position of the target area based on the current position and a preset distance; The control module 1802 is configured to control the cleaning robot to avoid the area corresponding to the preset distance and reach the third starting position, and then perform cleaning from the third starting position to the first ending position.

[0101] In an exemplary embodiment, the determination module 1801 is further configured to determine, when the same wall corresponds to at least two sub-areas, a distance between a first side of a first sub-area and a second side of a second sub-area; the first sub-area is adjacent to the second sub-area, the first side is an side close to the second sub-area, and the second side is an side close to the first sub-area; the sub-areas are areas in the environment map where flexible obstacles are located; The determining module 1801 is further configured to determine the target area based on the first sub-area, the second sub-area, and the area between the first sub-area and the second sub-area when the distance is less than a preset distance; The determination module 1801 is further configured to determine the target area based on the first sub-area and the second sub-area when the distance is greater than or equal to the preset distance.

[0102] In an exemplary embodiment, the acquisition module is configured to, when a same wall corresponds to a sub-region, acquire at least one historical region corresponding to a flexible obstacle represented by the sub-region; The determination module 1801 is further configured to determine the historical area with the largest area among all the historical areas as the target area.

[0103] In an exemplary embodiment, the determination module 1801 is further configured to, upon receiving a cleaning instruction sent by a terminal device, determine a type of the cleaning instruction, where the cleaning instruction is generated by the terminal device based on information input by a user on the environment map indicating whether to clean a target area; The determination module 1801 is further configured to determine whether to clean the target area based on the type of the cleaning instruction.

[0104] The device of this embodiment can be used to execute the method of any embodiment in the control method embodiment of the cleaning robot. Its specific implementation process and technical effects are similar to those in the control method embodiment of the cleaning robot. For details, please refer to the detailed description in the control method embodiment of the cleaning robot, which will not be repeated here.

[0105] Figure 19 An example of a physical structure diagram of an electronic device is shown below. Figure 19As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call the logic instructions in the memory 830 to execute the control method of the cleaning robot, the method comprising: in the case of determining the cleaning target area, based on the position of the target area in the environment map corresponding to the target place, determining a first starting position and a first ending position, the target area being the area where the flexible obstacle is located in the environment map; the first starting position is the position of the first edge in the target area, and the first ending position is the position of the second edge parallel to the first edge in the target area; based on the first starting position and the first ending position, controlling the cleaning robot to clean the target area.

[0106] Furthermore, the logic instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product, stored in a storage medium, includes instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.

[0107] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the control method of the cleaning robot provided by the above methods, the method including: when determining the cleaning target area, determining a first starting position and a first ending position based on the position of the target area in the environmental map corresponding to the target place, the target area is the area where the flexible obstacle is located in the environmental map; the first starting position is the position of the first edge in the target area, and the first ending position is the position of the second edge parallel to the first edge in the target area; based on the first starting position and the first ending position, controlling the cleaning robot to clean the target area.

[0108] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the control method of the cleaning robot provided by the above-mentioned methods, the method comprising: when determining the cleaning target area, determining a first starting position and a first ending position based on the position of the target area in the environmental map corresponding to the target place, the target area being the area where the flexible obstacles are located in the environmental map; the first starting position is the position of the first edge in the target area, and the first ending position is the position of the second edge parallel to the first edge in the target area; based on the first starting position and the first ending position, controlling the cleaning robot to clean the target area.

[0109] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0110] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.

[0111] 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A control method for a cleaning robot, characterized in that: include: In the case of determining a cleaning target area, determining a first starting position and a first ending position based on the position of the target area in the environment map corresponding to the target location, wherein the target area is the area where the flexible obstacle is located in the environment map; the first starting position is the position of the first edge in the target area, and the first ending position is the position of the second edge in the target area that is parallel to the first edge; Based on the first starting position and the first ending position, the cleaning robot is controlled to clean the target area.

2. The control method of the cleaning robot according to claim 1, characterized in that: The controlling the cleaning robot to clean the target area based on the first starting position and the first ending position includes: In the case where it is determined that there is an obstacle in the target area, determining a second starting position and a second ending position in the target area based on the position of the obstacle in the environment map, wherein the second starting position is a position at a first preset distance from the obstacle, and the second starting position is located between the position of the obstacle in the environment map and the first ending position, and the second ending position is a position at a second preset distance from the obstacle, and the second ending position is located between the position of the obstacle in the environment map and the first starting position; The cleaning machine is controlled to clean from the first starting position to the second ending position, and the cleaning robot is controlled to clean from the second starting position to the first ending position after avoiding the obstacle.

3. The control method of the cleaning robot according to claim 2, characterized in that: The controlling the cleaning machine to clean from the first starting position to the second ending position includes: When the cleaning robot reaches the first starting position, controlling the cleaning robot to move toward a wall close to the target area based on a first preset speed; When a collision signal is received during the moving process, the cleaning robot is controlled to retreat, and the cleaning robot is controlled to perform cleaning from the retreated position to the second end position.

4. The control method of the cleaning robot according to claim 1, characterized in that: The method further comprises: During the process of the cleaning robot cleaning the target area, when it is determined that the travel distance within the preset time period is less than the preset travel distance, obtaining the current position of the cleaning robot, and determining a third starting position of the target area based on the current position and the preset distance; After controlling the cleaning robot to avoid the area corresponding to the preset distance and reach the third starting position, the cleaning robot performs cleaning from the third starting position to the first ending position.

5. The control method of the cleaning robot according to claim 1, characterized in that: The method comprises: In the case where the same wall corresponds to at least two sub-areas, determining the distance between a first side of a first sub-area and a second side of a second sub-area; the first sub-area is adjacent to the second sub-area, the first side is an side close to the second sub-area, and the second side is an side close to the first sub-area; the sub-area is an area where the flexible obstacle is located in the environment map; When the distance is less than a preset distance, determining the target area based on the first sub-area, the second sub-area, and an area between the first sub-area and the second sub-area; When the distance is greater than or equal to the preset distance, the target area is determined based on the first sub-area and the second sub-area.

6. The control method of the cleaning robot according to claim 1, characterized in that: The method comprises: In the case where the same wall corresponds to a sub-region, obtaining at least one historical region corresponding to the flexible obstacle represented by the sub-region; The historical area with the largest area among all the historical areas is determined as the target area.

7. The control method of the cleaning robot according to any one of claims 1 to 6, characterized in that: The method further comprises: In the case of receiving a cleaning instruction sent by a terminal device, determining a type of the cleaning instruction, where the cleaning instruction is generated by the terminal device based on information input by a user on the environment map indicating whether to clean a target area; Whether to clean the target area is determined based on the type of the cleaning instruction.

8. A control device for a cleaning robot, characterized in that: include: A determination module, configured to determine a first starting position and a first ending position based on a position of the target area in an environment map corresponding to a target location when a cleaning target area is determined, wherein the target area is an area where a flexible obstacle is located in the environment map; the first starting position is a position where a first edge in the target area is located, and the first ending position is a position where a second edge in the target area that is parallel to the first edge is located; A control module is used to control the cleaning robot to clean the target area based on the first starting position and the first ending position.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the control method of the cleaning robot according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the control method of the cleaning robot according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Cleaning robot control method and apparatus, and cleaning robot and storage medium

    WO2026086713A1