Wall corner cleaning method, robot and computer readable storage medium

By clustering point-like obstacles in the corner area and planning avoidance paths, the problem of the robot colliding with small obstacles when cleaning corners is solved, improving cleaning efficiency and service life.

CN118557104APending Publication Date: 2024-08-30FOSHAN YINXING INTELLIGENT MFG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When the robot is cleaning the corner area, it is easy to collide with small obstacles, resulting in damage and prolonged cleaning time. It is difficult for existing technology to effectively identify and avoid these small obstacles.

Method used

By clustering point-like obstacles in the corner area, an obstacle group is formed, and avoidance paths are planned to reduce the probability of collision. Clean maps and path fitting technology are used to determine the walking path in the corner area.

Benefits of technology

It effectively avoids the loss of point obstacles in path planning, improves the cleaning efficiency and service life of the robot in the corner area, and reduces the probability of collision with obstacles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118557104A
    Figure CN118557104A
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of robots, in particular to a wall corner cleaning method, a robot and a computer readable storage medium. According to the embodiment, firstly, at least one point-shaped obstacle located in a wall corner area is clustered to obtain an obstacle group, so that the problem that information of the point-shaped obstacle is lost when a path is planned due to small occupied area of the point-shaped obstacle can be avoided, the plurality of point-shaped obstacles are clustered into the obstacle group, and the planning scientificity of path planning is improved. And secondly, the robot avoids the obstacle group to go to the wall corner area, so that the probability that the robot collides with point-shaped obstacles in the wall corner area can be reduced, the service life of the robot can be prolonged, and the cleaning efficiency of the robot can be improved. And finally, cleaning operation is performed on the wall corner area. In general, according to the embodiment, the at least one point-shaped obstacle is clustered into the obstacle group, so that the robot efficiently avoids the point-shaped obstacle, and the probability that the robot collides with the obstacle when cleaning the wall corner area is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of robot technology, and in particular, to a corner cleaning method, a robot, and a computer-readable storage medium. Background Art

[0002] When the robot provided by the related technology cleans the cleaning area, it first cleans along the edge of the wall of the cleaning area, and then cleans the middle part of the cleaning area in a bow-shaped path. When there are small obstacles such as stools in the corner area, the stool legs are small and only occupy a small number of grids in the grid map. Small obstacles such as stool legs are easily ignored during the map processing process, which makes it easy for the robot to collide with small obstacles when it goes to the corner area for cleaning, which can easily damage the robot. Summary of the invention

[0003] One purpose of the embodiments of the present application is to provide a corner cleaning method, a robot and a computer-readable storage medium to solve the technical problem that the robot provided by the related technology is prone to collide with obstacles when cleaning the corner area.

[0004] In a first aspect, an embodiment of the present application provides a corner cleaning method, which is applied to a robot, comprising:

[0005] Cluster at least one point obstacle located in the corner area to obtain an obstacle group;

[0006] Avoid the obstacle group and go to the corner area;

[0007] A cleaning operation is performed on the corner area.

[0008] Optionally, clustering at least one point obstacle located in a corner area to obtain an obstacle group includes:

[0009] Acquire a cleaning map, wherein the cleaning map includes at least one cleaning area;

[0010] Determining the corners of the cleaning area;

[0011] Taking the wall corner as a reference point, creating a wall corner area of ​​a specified size;

[0012] At least one point obstacle located in the corner area is clustered to obtain an obstacle group.

[0013] Optionally, determining the corner of the cleaning area includes:

[0014] Extracting a first maximum contour of the cleaning area, wherein the first maximum contour includes a plurality of contour points;

[0015] The contour points that meet the preset corner conditions are determined as corners.

[0016] Optionally, the creating a corner area of ​​a specified size with the corner as a reference point includes:

[0017] Acquire a first corner line segment and a second corner line segment, wherein the first corner line segment and the second corner line segment intersect at the corner, and the size of the first corner line segment and the size of the second corner line segment are both specified sizes;

[0018] A rectangular corner area is created with the corner as a vertex, the first corner line segment as a first side length, and the second corner line segment as a second side length.

[0019] Optionally, clustering at least one point obstacle located in the corner area to obtain an obstacle group includes:

[0020] Searching for at least one point obstacle located in the corner area;

[0021] At least one of the point obstacles is clustered according to a preset clustering algorithm to obtain an obstacle group.

[0022] Optionally, avoiding the obstacle group to move toward the corner area includes:

[0023] Determine a corner walking path in the corner area;

[0024] The walking path along the corner avoids the obstacle group and goes to the corner area.

[0025] Optionally, determining the corner walking path of the corner area includes:

[0026] Acquire a cleaning map, wherein the cleaning map includes at least one cleaning area;

[0027] Determine an inner contour, wherein the inner contour is a contour within the cleaning area that is spaced apart from a first maximum contour of the cleaning area and a second maximum contour of the obstacle group by a target width;

[0028] A straight line fitting is performed on the inner layer contour to obtain a cleaning path, wherein the cleaning path includes a corner walking path of the corner area.

[0029] Optionally, the cleaning area includes a plurality of grids, and the determining the inner layer contour includes:

[0030] Determine a target distance between a target grid and a target obstacle, wherein the target grid is one of the plurality of grids, and the target obstacle is an obstacle in the cleaning area that is closest to the target grid;

[0031] Determine the weight of the target grid according to the target distance, wherein the larger the target distance is, the larger the weight is, and the smaller the target distance is, the smaller the weight is;

[0032] A plurality of grids whose weights are equal to the specified weights are extracted and sequentially form an inner contour, and the width corresponding to the specified weights is the target width.

[0033] Optionally, the corner walking path includes at least one corner, and performing a cleaning operation on the corner area includes:

[0034] Determining a target corner type of the corner;

[0035] generating corner turning information according to the target corner type;

[0036] The corner area is cleaned according to the corner turning information.

[0037] Optionally, the corner is obtained by intersecting a first line segment and a second line segment connected in sequence, the wall corner type includes a positive angle type and a negative angle type, and the target wall corner type for determining the corner includes:

[0038] Determine a first vector of the first line segment and a second vector of the second line segment according to a preset cleaning direction;

[0039] Determine, according to the first vector and the second vector, whether the connection direction between the first line segment and the second line segment is clockwise;

[0040] If the connection order of the first line segment and the second line segment is clockwise, determining that the external angle type is the target wall corner type of the corner;

[0041] If the connection order of the first line segment and the second line segment is counterclockwise, the internal angle type is determined to be the target wall corner type of the corner.

[0042] Optionally, generating the corner turning information according to the target corner type includes:

[0043] If the target wall corner type of the corner is a positive angle type, determining an angle between the first vector and the second vector, and generating wall corner turning information according to the angle;

[0044] If the target corner type of the corner is a negative angle type, a third vector that intersects the first vector and the second vector respectively is determined, the vector direction of the third vector is reversed to obtain a reverse direction, and the corner turning information is generated according to the reverse direction.

[0045] In a second aspect, an embodiment of the present application provides a robot comprising a memory and a processor, wherein the memory is connected to the processor, and the processor is used to execute one or more computer programs stored in the memory. When the processor executes the one or more computer programs, the robot implements the above-mentioned corner cleaning method.

[0046] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the above-mentioned corner cleaning method.

[0047] The embodiments of the present application can achieve the following technical effects: First, the embodiments of the present application can cluster at least one point obstacle located in the corner area to obtain an obstacle group, so as to avoid the problem of losing the information of the point obstacles when planning the path due to the small footprint of the point obstacles. Clustering multiple point obstacles into obstacle groups is conducive to improving the scientific planning of the planned path. Secondly, the embodiments of the present application avoid the obstacle group to the corner area, so as to reduce the probability of collision with the point obstacles in the corner area, which is conducive to improving the service life and cleaning efficiency of the robot. Finally, the embodiments of the present application perform cleaning operations on the corner area. In general, the embodiments of the present application can cluster at least one point obstacle into an obstacle group to facilitate the robot to efficiently avoid each point obstacle, thereby reducing the probability of the robot colliding with the obstacle when cleaning the corner area. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0049] Figure 1 A schematic diagram of a process for cleaning a corner provided in an embodiment of the present application;

[0050] Figure 2 Schematic diagram of application scenarios of robot wall cleaning provided for related technologies;

[0051] Figure 3 A schematic diagram of an application scenario of a robot cleaning along a wall provided in an embodiment of the present application;

[0052] Figure 4 A schematic diagram of finding a wall corner on a first maximum contour of a cleaning area provided in an embodiment of the present application;

[0053] Figure 5 A schematic diagram of constructing a corner area using a corner as a reference point provided in an embodiment of the present application;

[0054] Figure 6 A schematic diagram of connecting an obstacle group and a wall as a whole provided in an embodiment of the present application;

[0055] Figure 7 A schematic diagram of generating a weight map provided in an embodiment of the present application;

[0056] Figure 8 A schematic diagram of generating a cleaning path based on a memory profile provided in an embodiment of the present application, wherein the cleaning path includes a corner walking path;

[0057] Fig. 9 A schematic diagram of another cleaning area provided in an embodiment of the present application, wherein the cleaning area presents a negative angle and a positive angle;

[0058] Fig.10 A schematic diagram of generating corner turning information when a robot encounters a concave corner provided in an embodiment of the present application;

[0059] Fig.11 A schematic diagram of a robot provided for related technologies colliding with multiple point obstacles in a corner area to move to the corner area;

[0060] Fig.12 A schematic structural diagram of a corner cleaning device provided in an embodiment of the present application;

[0061] Fig.13 A schematic diagram of the structure of a robot provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0063] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional module division is performed in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a sequence different from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in this application do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0064] In addition to the technical problems pointed out by the background technology, the inventors also found that the related technology also has the following technical problems, which are as follows:

[0065] When the robot cleans along the wall, it needs to clean the corner area. The related technology uses the following method to determine the corner of the corner area. First, when the robot collides with the wall while cleaning in the "bow-shaped cleaning mode", the robot switches the current "bow-shaped cleaning mode" to the "wall cleaning mode". Then, the robot performs straight line fitting based on the collected point cloud data at the current position to obtain multiple straight lines. Then, the robot sequentially obtains the coordinates of three positions on the same straight line according to the historical motion trajectory to determine the first straight line parallel to the wall. Then, in the process of following the wall, the robot detects whether the fourth position corresponding to the corresponding point cloud is on the first straight line. If it is, it continues to move. If not, the robot determines that a turning operation needs to be performed. Then, the robot obtains the fifth and sixth positions of the corresponding point cloud on the same straight line as the fourth position, and determines the second straight line parallel to the wall after turning according to the fourth, fifth and sixth positions. Then, the robot determines the intersection of the first straight line and the second straight line, which is the corner of the corner area. Finally, the robot goes to the corner and cleans the corner.

[0066] The above-mentioned corner cleaning method has the following technical problems:

[0067] 1. When the robot cleans the corners of the wall, it needs to collide with the corner before it can adjust its posture and continue cleaning. This will damage the robot due to the collision, and the robot needs to spend time adjusting its posture, which increases the cleaning time.

[0068] 2. Since the relevant technology uses point cloud fitting to generate straight lines, it is easy to lose information about small obstacles. For example, the stool mentioned in the background technology is easy to lose information about the stool as an obstacle, which makes it easy for the robot to collide with the stool when it goes to the corner.

[0069] 3. Related technologies fit straight lines based on historical motion trajectories and detect corners based on straight lines. Since the robot needs to use historical motion trajectories to determine corners, the robot needs to determine corners while it is moving. The robot cannot respond to corner searches in a timely and rapid manner, and the robot needs to be near the corners to determine the corners, which reduces the efficiency of finding corners.

[0070] Based on this, the present application embodiment provides a corner cleaning method, which is applied to a robot. Figure 1 , corner cleaning methods include:

[0071] S11: cluster at least one point obstacle located in the corner area to obtain an obstacle group.

[0072] In this step, the corner area is an area with a corner as the vertex and a specified area. The specified area can be customized by the designer according to business needs. For example, the specified area is 0.01m 2 or 1m 2 Point obstacles are obstacles with an area smaller than the preset area threshold, and the preset area threshold is 0.0025m 2 or 0.005m 2 Etc. In the embodiment of the present application, in the corner area, obstacles with an area smaller than a preset area threshold are clustered as point obstacles, thereby obtaining an obstacle group.

[0073] S12: Avoid obstacles and head to the corner area.

[0074] In this step, the embodiment of the present application can plan a corner walking path for avoiding the obstacle group according to any path planning algorithm, and avoid the obstacle group through the corner walking path.

[0075] S13: Perform a cleaning operation on the corner area.

[0076] In this step, the embodiment of the present application can clean the corner area through the side sweeping component of the robot, wherein, in some embodiments, when the robot walks to the corner of the corner area, the robot controls the mechanical arm to drive the cleaning member to extend into the corner for cleaning. In some embodiments, when the robot walks to the corner of the corner area, the robot increases the suction strength to absorb the garbage remaining in the corner.

[0077] In order to elaborate on the technical effect achieved by the corner cleaning method provided by the embodiment of the present application, the embodiment of the present application is combined with Figure 2 and Figure 3 This is elaborated in detail as follows:

[0078] The robot 20 performs a cleaning operation on the cleaning area 21, wherein the cleaning area 21 is formed by a first wall 211, a second wall 212, a third wall 213, and a fourth wall 214. The robot 20 walks and cleans along the first wall 211, the second wall 212, the third wall 213, and the fourth wall 214 in a counterclockwise direction, wherein a stool 216, a trash can 217, and a flower pot 218 are located near a corner 215 where the first wall 211 and the fourth wall 214 intersect.

[0079] See also Figure 2 In the related art, since the stool 216, the trash can 217 and the flower pot 218 occupy a small area, the information of the stool 216, the trash can 217 and the flower pot 218 is easily lost when processing the map. When the robot 20 first encounters the stool 216, the robot 20 collides with the stool 216. After the collision, the robot 20 adjusts its posture and walks along the first path 22, wherein, Figure 2 The first dotted line shape 23 indicates the position of the stool 216 after being knocked away by the robot 20 .

[0080] When the robot 20 walks along the first path 22, the robot 20 encounters the trash can 217, and the robot 20 collides with the trash can 217. After the collision, the robot 20 adjusts its posture and walks along the second path 24. Figure 2 The second dotted line shape 25 represents the position of the trash can 217 after being knocked open by the robot 20 .

[0081] When the robot 20 walks along the second path 24, the robot 20 encounters the flower pot 218, and the robot 20 collides with the flower pot 218. After the collision, the robot 20 adjusts its posture and walks along the third path 26 to the corner 215 of the corner area, wherein: Figure 2 The third dotted line shape 27 represents the position of the flower pot 218 after being knocked away by the robot 20 .

[0082] It can be seen that when the robot provided by the relevant technology encounters a point obstacle in the corner area, it uses a collision method to go to the corner, which can easily damage the robot, and constantly adjusts its posture during the period, thereby extending the cleaning time and reducing the user experience.

[0083] See also Figure 3, the embodiment of the present application clusters the stool 216, the trash can 217 and the flower pot 218 into an obstacle group 30, and plans a corner walking path 31 for the obstacle group 30. When the robot 20 walks along the corner walking path 31, it can avoid the stool 216, the trash can 217 and the flower pot 218, and will not collide with the stool 216, the trash can 217 and the flower pot 218, which is conducive to improving the service life of the robot 20, and there is no need to frequently adjust the posture, which is conducive to saving cleaning time and improving the user experience.

[0084] In general, the embodiments of the present application can cluster at least one point obstacle into an obstacle group, which can avoid the problem of losing information about the point obstacles when planning the path due to their small footprint. Clustering multiple point obstacles into obstacle groups is beneficial to improving the scientific nature of the planned path, and can also facilitate the robot to efficiently avoid various point obstacles, thereby reducing the probability of the robot colliding with obstacles when cleaning corner areas, which is beneficial to improving the robot's service life and cleaning efficiency.

[0085] In some embodiments, clustering at least one point obstacle located in a corner area to obtain an obstacle group includes the following steps:

[0086] S111: Acquire a cleaning map, where the cleaning map includes at least one cleaning area.

[0087] S112: Determine the corners of the cleaning area.

[0088] S113: Using the wall corner as a reference point, create a wall corner area of ​​a specified size.

[0089] S114: Clustering at least one point obstacle located in the corner area to obtain an obstacle group.

[0090] In S111, in some embodiments, obtaining a cleaning map includes the following steps: obtaining environmental data collected by the robot in real time, processing the environmental data according to a preset map building algorithm, and obtaining a cleaning map. In some embodiments, obtaining a cleaning map includes the following steps: sending a map request to a server, so that the server returns a cleaning map in response to the map request. In some embodiments, obtaining a cleaning map includes the following steps: calling a cleaning map pre-stored locally by the robot.

[0091] The cleaning area is an area where the robot needs to perform a cleaning operation. It is understandable that the cleaning area may be a cleaning area obtained after the robot partitions the cleaning map or a cleaning area directly extracted from the cleaning map.

[0092] In S112, the wall corner is the position where two adjacent walls intersect. It can be understood that the wall can be a cement wall, a wooden wall, a plastic wall or other types of walls.

[0093] Determining the corner of the cleaning area includes the following steps: extracting a first maximum contour of the cleaning area, the first maximum contour includes a plurality of contour points, and determining the contour points that meet the preset corner conditions as the corners.

[0094] Determining that a contour point that meets a preset corner condition is a corner includes the following steps: performing straight line fitting on all contour points to obtain a plurality of line segments, finding two line segments with an intersection in the plurality of line segments and using them as a first reference line segment and a second reference line segment respectively, taking the intersection as a center point, determining a contour point on the first reference line segment whose distance from the intersection is equal to a specified distance as a first contour point, determining a contour point on the second reference line segment whose distance from the intersection is equal to a specified distance as a second contour point, calculating a relative distance between the first contour point and the second contour point, and an angle between a first sub-line segment and a second sub-line segment, wherein the first sub-line segment is a line segment formed by the first contour point and the intersection, and the second sub-line segment is a line segment formed by the second contour point and the intersection, if the relative distance is greater than or equal to a preset distance threshold and the angle is less than or equal to a preset angle threshold, determining that the intersection meets the preset corner condition and the intersection is a corner, and if the relative distance is less than or equal to the preset distance threshold or the angle is greater than or equal to the preset angle threshold, determining that the intersection does not meet the preset corner condition.

[0095] It is understandable that the specified distance, the preset distance threshold and the preset angle threshold are customized by the designer according to business requirements. For example, when the shape of the robot is circular, the specified distance is a distance greater than twice the diameter of the robot. The preset distance threshold is a value greater than 1 times the diameter of the robot. The preset angle threshold is a value less than or equal to 90 degrees.

[0096] It can also be understood that the first sub-segment can be equal to the second sub-segment, or the first sub-segment is not equal to the second sub-segment.

[0097] See also Figure 4 , the present application embodiment provides such Figure 4 The cleaning area 40 shown in the figure is extracted, and the first maximum contour of the cleaning area 40 is extracted, and then point P is selected as the intersection point on the first maximum contour, and a contour point A greater than twice the diameter of the robot is selected as the first contour point on the first reference line segment 41, and a contour point B greater than twice the diameter of the robot is selected as the second contour point on the second reference line segment 42. Since the relative distance AB is greater than 1 times the diameter of the robot, and the angle between the first sub-line segment PA and the second sub-line segment PB is less than 90 degrees, point P is used as the wall corner.

[0098] In S113 , the designated size may be customized by the designer according to business requirements. For example, the designated size may be the length of the first sub-segment or the length of the second sub-segment described in the above embodiment.

[0099] Taking the corner as a reference point, creating a corner area of ​​a specified size includes the following steps: obtaining a first corner line segment and a second corner line segment, the first corner line segment and the second corner line segment intersecting at the corner, the size of the first corner line segment and the size of the second corner line segment both being the specified size, taking the corner as the vertex, the first corner line segment as the first side length and the second corner line segment as the second side length, and creating a rectangular corner area.

[0100] See also Figure 5 As mentioned above, point P is a corner. In the embodiment of the present application, point P is used as a reference point, the first sub-segment PA is a first corner segment, and the second sub-segment PB is a second corner segment to construct a rectangle, wherein the area defined by the rectangle is a corner area 51, wherein various point obstacles 52 are scattered in the corner area 51.

[0101] In S114, the embodiment of the present application searches for at least one point obstacle in the corner area, and clusters the at least one point obstacle according to a preset clustering algorithm to obtain an obstacle group. The preset clustering algorithm may be a K-Means clustering algorithm or the like.

[0102] The embodiment of the present application creates a corner area to collect at least one point obstacle located in the corner area, which is conducive to generating an accurate obstacle group, and further helps the robot to reliably avoid obstacles in the corner area.

[0103] In some embodiments, after the embodiment of the present application determines the obstacle group, the minimum distance between the obstacle group and the wall is calculated, and it is determined whether the minimum distance is greater than a specified distance threshold. If it is greater, the step of avoiding the obstacle group to move to the corner area is entered; if it is less than or equal to, the obstacle group is connected to the wall.

[0104] Connecting the obstacle group with the wall includes the following steps: determining the target position point with the shortest distance from the wall in the obstacle group, determining the target wall point that reaches the wall according to the minimum distance from the target position point, and setting the target line segment formed by the target position point and the target wall point as an obstacle.

[0105] See also Figure 6 , each point obstacle is clustered into an obstacle group 52. In the embodiment of the present application, a target segment 53 is drawn between the obstacle group 52 and the first sub-segment PA (representing a wall), wherein the target segment is black, and black represents that the target segment is set as an obstacle in the map.

[0106] In the embodiment of the present application, when the minimum distance is less than the specified distance threshold, a line segment is drawn between the obstacle group and the wall to represent the obstacle. This is conducive to planning a scientific, low-collision rate corner walking path, avoiding planning an unreasonable path in the blank area between the obstacle group and the wall, and preventing the robot from constantly colliding in the blank area along the unreasonable path.

[0107] In some embodiments, avoiding the obstacle group and heading to the corner area includes the following steps:

[0108] S121: Determine a corner walking path in the corner area.

[0109] S122: Walk along the corner path to avoid obstacles and head to the corner area.

[0110] In S121, the corner walking path is the path that the robot takes to clean the corner area. Determining the corner walking path of the corner area includes the following steps: obtaining a cleaning map, the cleaning map includes at least one cleaning area, determining an inner contour, the inner contour is a contour within the cleaning area that is spaced from a first maximum contour of the cleaning area and a second maximum contour of the obstacle group by a target width, performing a straight line fitting on the inner contour to obtain a cleaning path, the cleaning path including the corner walking path of the corner area.

[0111] The cleaning map is a rasterized map, wherein the cleaning area includes multiple grids, and determining the inner contour includes the following steps: determining the target distance between the target grid and the target obstacle, the target grid is one of the multiple grids, the target obstacle is the obstacle closest to the target grid in the cleaning area, and determining the weight of the target grid according to the target distance, wherein the greater the target distance, the greater the weight, and the smaller the target distance, the smaller the weight, extracting multiple grids with weights equal to the specified weights in sequence to form the inner contour, and the width corresponding to the specified weight is the target width.

[0112] Determining the target distance between the target grid and the target obstacle includes the following steps: obtaining the target distance between the target grid and the target obstacle according to a preset distance transformation algorithm, wherein the preset distance transformation algorithm includes Euclidean distance, city block distance, chessboard distance, etc.

[0113] Determining the weight of the target grid according to the target distance includes the following steps: determining the number of grids corresponding to the target distance, multiplying the number of grids by the weight constant, and obtaining the weight of the target grid. For example, if the target distance is 15 cm, the width of one grid represents 5 cm, the number of grids corresponding to 15 cm is 3, the weight constant is 5, and the weight of the target grid is 15. If the target distance is 20 cm, the weight of the target grid is 20.

[0114] See also Figure 7 , for the first maximum contour 71 of the cleaning area, the smaller the target distance between the target grid and the nearest contour point of the first maximum contour 71, the smaller the weight of the target grid, and the larger the target distance, the larger the weight of the target grid, for example, Figure 7 As shown in the figure, the smaller the weight, the smaller the pixel value of the target grid, and the closer it is to black. The larger the weight, the larger the pixel value of the target grid, and the closer it is to white.

[0115] Similarly, for the second largest contour of the obstacle group, the smaller the target distance between the target grid and the nearest contour point of the second largest contour, the smaller the weight of the target grid, and the larger the target distance, the larger the weight of the target grid. The smaller the weight, the smaller the pixel value of the target grid, and the closer it is to black. The larger the weight, the larger the pixel value of the target grid, and the closer it is to white.

[0116] In the embodiment of the present application, a straight line fitting is performed on the inner layer profile to obtain a cleaning path. Figure 8 After the inner contour 81 is processed by straight line fitting, a cleaning path 82 is obtained, and the cleaning path 82 is composed of multiple broken lines. Among them, the cleaning path 82 includes a corner walking path 84 of the corner area 83. Therefore, the robot moves to the corner area 83 along the corner walking path 84 to avoid the obstacle group.

[0117] It is understandable that the corner walking path is also formed by bending multiple line segments. After the robot walks along a line segment in the corner walking path, it needs to rotate the corresponding angle so that the next line segment can be cleaned. When the corner formed by the two line segments is a positive corner, since garbage is not easy to accumulate in the positive corner, the robot only needs to clean up the garbage at the positive corner in a normal walking manner. When the corner formed by the two line segments is a negative corner, since garbage is easy to accumulate in the negative corner, the robot needs to control the side sweeping component to extend into the negative corner or control the robot arm to carry the cleaning part to extend into the negative corner for cleaning, so as to clean the garbage in the negative corner. Among them, the positive corner is the current position relative to the robot, and the corner point is facing the corner close to the robot side. The negative corner is the current position relative to the robot, and the corner point is facing the corner away from the robot side, wherein the corner can be a wall corner or other corner point area.

[0118] See also Fig. 9 , an embodiment of the present application provides another cleaning area, wherein the cleaning area 91 is formed by sequentially connecting points D / E / F / G / H / I / J / K, wherein, relative to the current position of the robot 92, the corner formed by line segment DE and line segment EF, and the corner formed by line segment GH and line segment HI are both negative angles, and the corner formed by line segment EF and line segment FG, and the corner formed by line segment FG and line segment GH are both positive angles.

[0119] Depend on Fig. 9It can be seen that if the cleaning direction is counterclockwise, the connection between the vector corresponding to line segment ED and the vector corresponding to line segment EF is counterclockwise, and the connection between the vector corresponding to line segment HG and the vector corresponding to line segment HI is counterclockwise. The connection between the vector corresponding to line segment FE and the vector corresponding to line segment FG is clockwise, and the connection between the vector corresponding to line segment GF and the vector corresponding to line segment GH is clockwise. Therefore, when the two vectors corresponding to the two line segments forming a corner are connected counterclockwise, the corner is a negative angle, and when the two vectors corresponding to the two line segments forming a corner are connected clockwise, the corner is a positive angle.

[0120] If the cleaning direction is clockwise, the connection between the vector corresponding to line segment EF and the vector corresponding to line segment ED is clockwise, and the connection between the vector corresponding to line segment HI and the vector corresponding to line segment HG is clockwise. The connection between the vector corresponding to line segment GH and the vector corresponding to line segment GF is counterclockwise, and the connection between the vector corresponding to line segment FG and the vector corresponding to line segment FE is counterclockwise. Therefore, when the two vectors corresponding to the two line segments forming a corner are connected clockwise, the corner is a negative angle, and when the two vectors corresponding to the two line segments forming a corner are connected counterclockwise, the corner is a positive angle.

[0121] For the two line segments that form the corner, let the vector of one of the line segments be a, and the vector of the other line segment be b, where the unit vector of vector a is e_a=a / ||a||, and the unit vector of vector b is e_b=b / ||b||. From the definition of the cross product, we can know that e_a×e_b=||e_a||*||e_b||*sinθ*n, where n is the direction of the plane formed by vectors a and b, determined by the right-hand rule, and θ is the angle between vector a and vector b.

[0122] If the cleaning direction is counterclockwise, when the cross product is less than 0, vector a and vector b are connected in a clockwise manner, and when the cross product is greater than 0, vector a and vector b are connected in a counterclockwise manner.

[0123] If the cleaning direction is clockwise, when the cross product is less than 0, vector a and vector b are connected in a counterclockwise manner, and when the cross product is greater than 0, vector a and vector b are connected in a clockwise manner.

[0124] In some embodiments, the corner walking path includes at least one corner, and performing a cleaning operation on the corner area includes the following steps: determining a target corner type of the corner, generating corner turning information according to the target corner type, and cleaning the corner area according to the corner turning information.

[0125] The corner is obtained by intersecting the first line segment and the second line segment connected in sequence. The wall corner type includes a positive angle type and a negative angle type. The positive angle type is used to indicate that the corner is a positive angle, and the negative angle type is used to indicate that the corner is a negative angle.

[0126] Determining the target corner type of a corner includes the following steps: determining the first vector of the first line segment and the second vector of the second line segment according to a preset cleaning direction, and determining whether the connection direction of the first line segment and the second line segment is clockwise based on the first vector and the second vector; if the connection sequence of the first line segment and the second line segment is clockwise, determining that the positive angle type is the target corner type of the corner; if the connection sequence of the first line segment and the second line segment is counterclockwise, determining that the negative angle type is the target corner type of the corner.

[0127] According to the first vector and the second vector, determining whether the connection direction between the first line segment and the second line segment is clockwise includes the following steps: obtaining the angle between the first vector and the second vector, and determining whether the connection direction between the first line segment and the second line segment is clockwise according to the angle and the preset cleaning direction.

[0128] Determining whether the connection direction between the first line segment and the second line segment is clockwise based on the angle and the preset cleaning direction includes the following steps: if the preset cleaning direction is counterclockwise and the angle is greater than 90 degrees, then the connection direction between the first line segment and the second line segment is determined to be clockwise; if the preset cleaning direction is counterclockwise and the angle is less than 90 degrees, then the connection direction between the first line segment and the second line segment is determined to be counterclockwise; if the preset cleaning direction is clockwise and the angle is greater than 90 degrees, then the connection direction between the first line segment and the second line segment is determined to be counterclockwise; if the preset cleaning direction is clockwise and the angle is less than 90 degrees, then the connection direction between the first line segment and the second line segment is determined to be clockwise.

[0129] Generating corner steering information according to the target corner type includes: if the target corner type of the corner is a yang angle type, determining the angle between the first vector and the second vector, and generating the corner steering information according to the angle; if the target corner type of the corner is a yin angle type, determining a third vector that intersects the first vector and the second vector respectively, inverting the vector direction of the third vector to obtain a reversed direction, and generating the corner steering information according to the reversed direction.

[0130] If the target corner type of the corner is a positive corner type, the angle θ between the first vector and the second vector is arcsin((e_a×e_b) / n). Since the robot can easily clean up the garbage accumulated in the positive corner, after the robot has walked the line segment corresponding to vector a, it only needs to use the angle θ as the corner turning information, rotate according to the angle, and reach the line segment corresponding to vector b for cleaning.

[0131] If the target corner type of the corner is a negative corner type, since garbage is easily accumulated in the negative corner and it is not easy for the robot to clean the garbage in the negative corner using the cleaning method of the positive corner, the robot needs to control the side sweep component to extend into the negative corner or control the robotic arm carrying the cleaning component to extend into the negative corner for cleaning, so as to clean the garbage in the negative corner.

[0132] See also Fig.10 , vector c is the third vector, wherein vector c intersects with vector a as the first vector and vector b as the second vector respectively, and according to the definition of vector addition, c=a+b. In the embodiment of the present application, a vector rc is determined to have a direction opposite to that of vector c, and the direction of vector rc is determined as the direction of taking the direction, and the robot rotates according to the direction of taking the direction, so that the side sweeping component or the mechanical arm faces the inner corner, and then the side sweeping component is controlled to extend into the inner corner or the mechanical arm is controlled to carry the cleaning part into the inner corner for cleaning. When the robot finishes cleaning the inner corner, the robot rotates to the line segment corresponding to vector b for cleaning until the wall cleaning operation is completed. In the embodiment of the present application, the corner type of the corner can be distinguished so that the robot can rotate to the direction corresponding to the corner turning information, which is conducive to the robot adopting a suitable cleaning strategy to clean the corner, so as to ensure that the corner can be effectively cleaned.

[0133] In order to understand the corner cleaning method provided by the embodiment of the present application in detail, the embodiment of the present application is combined with Fig.11 and Figure 8 This is elaborated in detail as follows:

[0134] In the related art, when a plurality of point-shaped obstacles 110 are scattered in the corner area 83, as shown in FIG. Fig.11 As shown, the robot needs to continuously collide with each point obstacle 110, and after each collision, the robot needs to adjust its posture. Fig.11 As shown, after the robot collides with multiple point obstacles 110, it undergoes multiple posture adjustments before it can go to the corner and clean the corner.

[0135] In the embodiments of the present application, Figure 8 As shown, the robot clusters each point-shaped obstacle to obtain an obstacle group 83, and plans a corner walking path 84 based on the obstacle group 83. The robot goes to the corner along the corner walking path 84 and cleans the corner. During this process, the robot will not collide with each point-shaped obstacle, and can still go to the corner for cleaning. Therefore, by using the method provided in the embodiment of the present application, the robot can reduce the probability of collision with the point-shaped obstacles, which is conducive to improving the service life and cleaning efficiency.

[0136] It should be noted that, in each of the above-mentioned embodiments, there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of the present application, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.

[0137] As another aspect of the embodiment of the present application, the embodiment of the present application provides a corner cleaning device, which is applied to a robot. The corner cleaning device can be a software module, which includes a number of instructions stored in a memory, and the processor can access the memory and call the instructions for execution to complete the corner cleaning method described in the above embodiments.

[0138] In some embodiments, the corner cleaning device can also be constructed by hardware devices, for example, the corner cleaning device can be constructed by one or more chips, and the chips can work in coordination with each other to complete the corner cleaning methods described in the above embodiments. For another example, the corner cleaning device can also be constructed by various logic devices, such as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.

[0139] See also Fig.12 The corner cleaning device 120 includes a clustering module 121 , an avoidance module 122 and a cleaning module 123 .

[0140] The clustering module 121 is used to cluster at least one point obstacle in the corner area to obtain an obstacle group. The avoidance module 122 is used to avoid the obstacle group to the corner area. The cleaning module 123 is used to perform a cleaning operation on the corner area. The embodiment of the present application can cluster at least one point obstacle into an obstacle group, so that the robot can efficiently avoid each point obstacle, thereby reducing the probability of the robot colliding with the obstacle when cleaning the corner area.

[0141] In some embodiments, the clustering module 121 is specifically used to: obtain a cleaning map, the cleaning map includes at least one cleaning area, determine the corners of the cleaning area, use the corners as reference points, create corner areas of specified sizes, cluster at least one point obstacle located in the corner area, and obtain an obstacle group.

[0142] In some embodiments, the clustering module 121 is further specifically used to: extract a first maximum contour of the cleaning area, the first maximum contour includes a plurality of contour points, and determine that the contour points that meet a preset corner condition are corners.

[0143] In some embodiments, the clustering module 121 is also specifically used to: obtain a first corner line segment and a second corner line segment, the first corner line segment and the second corner line segment intersect at a corner, the size of the first corner line segment and the size of the second corner line segment are both specified sizes, and a rectangular corner area is created with the corner as the vertex, the first corner line segment as the first side length, and the second corner line segment as the second side length.

[0144] In some embodiments, the clustering module 121 is further specifically used to: search for at least one point obstacle located in the corner area, and cluster the at least one point obstacle according to a preset clustering algorithm to obtain an obstacle group.

[0145] In some embodiments, the avoidance module 122 is specifically used to: determine a corner walking path in the corner area, and move toward the corner area along the corner walking path to avoid the obstacle group.

[0146] In some embodiments, the avoidance module 122 is specifically used to: obtain a cleaning map, the cleaning map includes at least one cleaning area, determine an inner contour, the inner contour is a contour within the cleaning area that is spaced from a first maximum contour of the cleaning area and a second maximum contour of the obstacle group by a target width, perform a straight line fitting on the inner contour to obtain a cleaning path, the cleaning path includes a corner walking path in the corner area.

[0147] In some embodiments, the cleaning area includes multiple grids, and the avoidance module 122 is specifically used to: determine the target distance between the target grid and the target obstacle, the target grid is one of the multiple grids, and the target obstacle is the obstacle closest to the target grid in the cleaning area, and determine the weight of the target grid according to the target distance, wherein the larger the target distance, the larger the weight, and the smaller the target distance, the smaller the weight, and extract multiple grids with weights equal to the specified weights in sequence to form an inner contour, and the width corresponding to the specified weight is the target width.

[0148] In some embodiments, the corner walking path includes at least one corner, and the cleaning module 123 is specifically used to: determine the target corner type of the corner, generate corner turning information according to the target corner type, and clean the corner area according to the corner turning information.

[0149] In some embodiments, the corner is obtained by the intersection of a first line segment and a second line segment connected in sequence, and the wall corner type includes a positive angle type and a negative angle type. The cleaning module 123 is also specifically used to: determine the first vector of the first line segment and the second vector of the second line segment according to a preset cleaning direction, and determine whether the connection direction of the first line segment and the second line segment is clockwise based on the first vector and the second vector. If the connection sequence of the first line segment and the second line segment is clockwise, then the positive angle type is determined to be the target wall corner type of the corner; if the connection sequence of the first line segment and the second line segment is counterclockwise, then the negative angle type is determined to be the target wall corner type of the corner.

[0150] In some embodiments, the cleaning module 123 is also specifically used for: if the target corner type of the corner is a yang angle type, then determining the angle between the first vector and the second vector, and generating corner steering information based on the angle; if the target corner type of the corner is a yin angle type, then determining a third vector that intersects the first vector and the second vector respectively, inverting the vector direction of the third vector to obtain the inverted direction, and generating corner steering information based on the inverted direction.

[0151] It should be noted that the above-mentioned corner cleaning device can execute the corner cleaning method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the corner cleaning device, please refer to the corner cleaning method provided in the embodiment of the present application.

[0152] See also Fig.13 , Fig.13 A schematic diagram of the structure of a robot provided in an embodiment of the present application. The robot 130 includes one or more processors 131 and a memory 132. The memory 132 is connected to the one or more processors, for example, connected to the processor 131 via a bus.

[0153] The processor 131 is configured to support the robot to perform the corresponding functions in the method in the above method embodiment. The processor can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof. The above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0154] The memory 132 is used to store program codes, etc. The memory 132 may include a volatile memory (VM), such as a random access memory (RAM); the memory may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory may also include a combination of the above types of memory.

[0155] The memory 132 may be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the corner cleaning method in the embodiment of the present application. The processor executes various functional applications and data processing of the corner cleaning method and the corner cleaning device by running the non-volatile software programs, instructions and modules stored in the memory, that is, realizes the functions of the corner cleaning method and the various modules or units of the corner cleaning device provided in the above method embodiment.

[0156] The memory 132 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function. The data storage area may store data created according to the use of the corner cleaning device, etc. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the corner cleaning device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0157] The one or more modules are stored in the memory, and when executed by the one or more processors, the corner cleaning method in any of the above method embodiments is executed, for example, the method steps described in the above method embodiments are executed to realize the functions of the modules described in the above device embodiments.

[0158] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a robot, the robot executes the method described in the aforementioned embodiment.

[0159] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0160] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A corner cleaning method, applied to a robot, characterized in that: include: Cluster at least one point obstacle located in the corner area to obtain an obstacle group; Avoid the obstacle group and go to the corner area; A cleaning operation is performed on the corner area.

2. The corner cleaning method according to claim 1, characterized in that: The clustering is performed on at least one point obstacle located in the corner area, and the obtained obstacle group includes: Acquire a cleaning map, wherein the cleaning map includes at least one cleaning area; Determining the corners of the cleaning area; Taking the wall corner as a reference point, creating a wall corner area of ​​a specified size; At least one point obstacle located in the corner area is clustered to obtain an obstacle group.

3. The corner cleaning method according to claim 2, characterized in that: Determining the corner of the cleaning area includes: Extracting a first maximum contour of the cleaning area, wherein the first maximum contour includes a plurality of contour points; The contour points that meet the preset corner conditions are determined as corners.

4. The corner cleaning method according to claim 2, characterized in that: The step of creating a corner area of ​​a specified size with the corner as a reference point includes: Acquire a first corner line segment and a second corner line segment, wherein the first corner line segment and the second corner line segment intersect at the corner, and the size of the first corner line segment and the size of the second corner line segment are both specified sizes; A rectangular corner area is created with the corner as a vertex, the first corner line segment as a first side length, and the second corner line segment as a second side length.

5. The corner cleaning method according to claim 2, characterized in that: The clustering of at least one point obstacle located in the corner area to obtain an obstacle group includes: Searching for at least one point obstacle located in the corner area; At least one of the point obstacles is clustered according to a preset clustering algorithm to obtain an obstacle group.

6. The corner cleaning method according to any one of claims 1 to 5, characterized in that: The step of avoiding the obstacle group from moving toward the corner area includes: Determine a corner walking path in the corner area; The walking path along the corner avoids the obstacle group and goes to the corner area.

7. The corner cleaning method according to claim 6, characterized in that: Determining the corner walking path of the corner area includes: Acquire a cleaning map, wherein the cleaning map includes at least one cleaning area; Determine an inner contour, wherein the inner contour is a contour within the cleaning area that is spaced apart from a first maximum contour of the cleaning area and a second maximum contour of the obstacle group by a target width; A straight line fitting is performed on the inner layer contour to obtain a cleaning path, wherein the cleaning path includes a corner walking path of the corner area.

8. The corner cleaning method according to claim 7, characterized in that: The cleaning area includes a plurality of grids, and determining the inner layer contour includes: Determine a target distance between a target grid and a target obstacle, wherein the target grid is one of the plurality of grids, and the target obstacle is an obstacle in the cleaning area that is closest to the target grid; Determine the weight of the target grid according to the target distance, wherein the larger the target distance is, the larger the weight is, and the smaller the target distance is, the smaller the weight is; A plurality of grids whose weights are equal to the specified weights are extracted and sequentially form an inner contour, and the width corresponding to the specified weights is the target width.

9. The corner cleaning method according to claim 6, characterized in that: The corner walking path includes at least one corner, and performing a cleaning operation on the corner area includes Determining a target corner type of the corner; generating corner turning information according to the target corner type; The corner area is cleaned according to the corner turning information.

10. The corner cleaning method according to claim 9, characterized in that: The corner is obtained by intersecting a first line segment and a second line segment connected in sequence, the wall corner type includes a positive angle type and a negative angle type, and the target wall corner type for determining the corner includes: Determine a first vector of the first line segment and a second vector of the second line segment according to a preset cleaning direction; Determine, according to the first vector and the second vector, whether the connection direction between the first line segment and the second line segment is clockwise; If the connection order of the first line segment and the second line segment is clockwise, determining that the external angle type is the target wall corner type of the corner; If the connection order of the first line segment and the second line segment is counterclockwise, the internal angle type is determined to be the target wall corner type of the corner.

11. The corner cleaning method according to claim 9, characterized in that: The generating of the corner turning information according to the target corner type comprises: If the target wall corner type of the corner is a positive angle type, determining an angle between the first vector and the second vector, and generating wall corner turning information according to the angle; If the target corner type of the corner is a negative angle type, a third vector that intersects the first vector and the second vector respectively is determined, the vector direction of the third vector is reversed to obtain a reverse direction, and the corner turning information is generated according to the reverse direction.

12. A robot, characterized in that: It includes a memory and a processor, the memory is connected to the processor, the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the robot implements the corner cleaning method as described in any one of claims 1-11.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the corner cleaning method according to any one of claims 1 to 11.