Edge cleaning path planning method and cleaning robot

Through the environment map and path planning algorithm combined with lidar information, the edge cleaning path is adjusted in real time, which solves the problem of impact and poor cleaning effects of the sweeping robot during edge cleaning, and achieves edge cleaning of the appropriate distance.

CN118542607BActive Publication Date: 2024-11-01SHENZHEN MAXVISION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411008320.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-01
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

Existing sweeping robots are difficult to effectively solve the problem that the robots can hit the wall or are too far away from the wall when cleaning the edge.

Method used

Provide an edge cleaning path planning method, use environmental map and path planning algorithm to plan the initial edge cleaning path, and adjust the path starting point through lidar, calculate the wall line segment and segmented scanning point collection, and fine-tune the cleaning according to the lidar feedback information in real time Path, ensure that the robot is at the right distance from the wall to avoid impact and improve cleaning effect.

Benefits of technology

It realizes real-time fine-tuning of the path during the embroidery cleaning process to avoid the risk of impact caused by being too close to the wall, and improves the effect of embroidery cleaning to ensure the smooth completion of the cleaning process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118542607B_ABST
    Figure CN118542607B_ABST
Patent Text Reader

Abstract

The present application discloses a method for planning a path for edge cleaning, which includes: planning an edge cleaning path based on a constructed environment map and a path planning algorithm; adjusting the path starting point of the edge cleaning path based on a laser radar installed on a robot to obtain a fine-tuning starting point; calculating the wall line segment for edge cleaning with the fine-tuning starting point as the starting point, and segmenting the wall line segment to obtain a segmentation scanning point set and a segmentation line segment set of the wall laser; when all the distance information and the segmentation scanning point set fed back by the laser radar meet the preset conditions, fine-tuning the cleaning path of the edge cleaning path when the robot is edge cleaning. The present application also provides a cleaning robot using the edge cleaning path planning method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robotics technology, and more specifically, to a path planning method for edge cleaning and a cleaning robot. Background Art

[0002] According to the planned path, the sweeping robot automatically cleans, which brings great convenience to people's lives. Most robots can achieve good cleaning effects in open areas, but it has always been difficult to clean the edges of special scenes that need to be close to the wall. If the robot is too close to the edge during cleaning, it is easy to cause the robot body to hit the wall, which is not only easy to cause damage to the body but also easy to cause the cleaning process to be stuck or unable to complete the cleaning smoothly. If the robot is too far away from the wall during cleaning, it is easy to operate the edge cleaning effect poorly. Summary of the invention

[0003] In view of the existing technology, the technical problem solved by the present application is to provide a method for planning an edge cleaning path and a cleaning robot. The method for planning an edge cleaning path can plan an edge cleaning path and can adjust the edge cleaning path in real time according to the feedback information from the laser radar to improve the edge cleaning effect.

[0004] In order to solve the above technical problems, in a first aspect, the present application provides a method for planning a path for edge cleaning, which comprises:

[0005] Plan the edge cleaning path based on the constructed environment map and path planning algorithm;

[0006] The starting point of the edge cleaning path is adjusted based on the laser radar installed on the robot to obtain a fine-tuning starting point;

[0007] Calculate the wall line segment for edge cleaning with the fine-tuning starting point as the starting point, and segment the wall line segment to obtain a segmentation scanning point set and a segmentation line segment set of the wall laser; and,

[0008] When all the distance information and the set of segmented scanning points fed back by the laser radar meet the preset conditions, the cleaning path of the robot during edge cleaning is fine-tuned.

[0009] In combination with the first aspect, in a possible implementation, planning an edge cleaning path based on a constructed environment map and a path planning algorithm includes:

[0010] Use the path planning algorithm to plan the initial edge cleaning path L in the environment map 1 ;

[0011] Along the initial edge cleaning path L 1 Select multiple edge points to obtain a first cleaning target point set;

[0012] According to the edge cost value Edge related to the robot size parameters cost Adjust each edge point in the first cleaning target point set to obtain a second cleaning target point set with edge optimization;

[0013] Combined with the edge cost value, the cost evaluation function F(m) is constructed, and the optimized edge cleaning path L is planned based on the path planning algorithm and the second cleaning target point set. 2 ;

[0014] Among them, the edge cost Edge cost for: ;

[0015] Among them, the cost evaluation function F(m):

[0016] ;

[0017] Among them, G(m) is the path cost from the starting point to any point m when the path planning algorithm performs path planning, and α is the set weight; is the cost value of point m in the cost map, D m k is the distance between point m and the target point when the path planning algorithm performs path planning; 1 is the adjustment parameter, d is the physical distance from the robot's geometric center to the wall to be cleaned, r is the radius of the robot's inscribed circle, and d is the set edge distance d welt and half the width of the robot.

[0018] In combination with the first aspect, in a possible implementation, the laser radar is a single-line laser radar, and the starting point of the edge cleaning path is adjusted based on the laser radar installed on the robot to obtain a fine-tuning starting point, which is:

[0019] The edge cleaning path L traversed in order 2 Each path point in

[0020] During each traversal, it is determined whether the path point currently traversed meets the first preset distance condition, and the path point currently traversed that meets the first preset distance condition is the fine-tuning starting point;

[0021] Among them, the first preset distance condition is: , ;

[0022] in, is the physical coordinate value of the robot center in the cost map, is the physical coordinate value of the traversed i-th path point in the cost map, It is the physical distance between the single-line laser radar installed on the robot and the center of the two driving wheels of the robot walking on the ground.

[0023] In combination with the first aspect, in a possible implementation, the wall line segment for edge cleaning is calculated with the fine-tuning starting point as the starting point, and the wall line segment is segmented to obtain a segmented scanning point set of the wall laser, including:

[0024] Find the wall laser scanning point P corresponding to the fine-tuning starting point start ;

[0025] Find the wall laser scanning point P corresponding to the cleaning end point of the optimized edge cleaning path end ;

[0026] Scan point P on the wall with laser start To the wall laser scanning point P end All the wall laser scanning points between them form a wall line segment;

[0027] The wall line segments are segmented to meet the preset conditions to obtain a set of segmented scanning points, including:

[0028] First segmentation: Set the wall laser scanning points P separately start and the wall laser scanning point P end The first starting point B 1 and the first tail point E 1 , traverse the first starting point B 1 and the first tail point E 1 All the wall laser scanning points between the two are selected as the first segmentation point of the segmentation scanning set. start , P 1 and P end Every two adjacent points in form a segment;

[0029] Second segmentation: Set the wall laser scanning points P separately start and the first split point P 1 The first starting point B 1 and the first tail point E 1 , respectively set the first segmentation point P 1 and the wall laser scanning point P end The second starting point B 2 and the second tail point E 2 ; Traverse the first starting point B 1 and the first tail point E 1 All the wall laser scanning points between the two are selected as the second segmentation point P belonging to the segmentation scanning point set. 2 ; Traverse the second starting point B 2 and the second tail point E 2All the wall laser scanning points between the two, take the laser scanning point that meets the second preset distance condition in the traversal as the third segmentation point P belonging to the segmentation scanning point set 3 ; Click P start , P 1 , P 2 , P 3 and P end Every two adjacent points in form a segment;

[0030] A laser scanning point satisfying the second preset distance condition is cyclically searched in each segmentation line segment obtained last time to obtain a new segmentation point, until each segmentation line segment obtained last time can no longer be segmented, and a segmentation scanning point set is formed by all the segmentation points, and each two adjacent points in the segmentation scanning point set form a segmentation line segment, thereby obtaining a segmentation line segment set.

[0031] In combination with the first aspect, in a possible implementation, the k-th starting point B k and the kth tail point E k A laser scanning point S between the kth starting point B and the kth starting point B satisfies the second preset distance condition: k and the kth tail point E k Among all the laser scanning points between laser scanning point S and point B k and point E k The perpendicular distance D of the line segment S The value is the largest and D S >D t ;

[0032] ;

[0033] ;

[0034] in,( , ) is the coordinate of the laser scanning point S in the cost map, ( , ) is the kth starting point B k The coordinates in the costmap, ( , ) is the kth tail point E k The coordinates in the costmap, is the kth starting point B k and the kth tail point E k The Euclidean distance between is the kth starting point B k and the kth tail point E k The angle between the straight line formed by the connecting line and the horizontal axis, D t To set the threshold.

[0035] In combination with the first aspect, in a possible implementation, the preset condition satisfied by all distance information and segmented scanning point sets fed back by the laser radar is to simultaneously satisfy conditions (I), (II) and (III):

[0036] (I) Traversing all the scanning distance information of the laser radar, there is a continuous distance information that is less than the set threshold T 1 ;

[0037] (II) The total number of all wall laser scanning points that form the wall segment is greater than the set threshold T 2 ;

[0038] (III) The wall to be cleaned along the edge is a straight wall.

[0039] In combination with the first aspect, in a possible implementation, the step of determining whether the wall surface to be cleaned along the edge is a straight wall surface is:

[0040] Traverse the edge cleaning path from the fine-tuning starting point, and calculate the Euclidean distance between each path point of the traversed edge cleaning path and all the wall laser scanning points;

[0041] Record the minimum Euclidean distance value DToWall minn , minimum Euclidean distance value DToWall min The corresponding wall laser scanning point Scan min Index Scan minindex , the minimum Euclidean distance value DToWall during the traversal process min The corresponding path point e min ;

[0042] Traverse the segment set and find the index Scan minindex The segment L belongs to, and the starting point and the ending point of the segment L are respectively recorded as e Lstart and e Lend ;

[0043] Calculate Scan minindex Solstice e Lstart and point e Lend The vertical distance of the fitted line DToLine;

[0044] If the minimum Euclidean distance value DToWall min The absolute value of the difference between the vertical distance DtoLine and the vertical distance DtoLine is less than the set threshold T 3 , it means that the wall to be cleaned along the edge is a straight wall.

[0045] In combination with the first aspect, in a possible implementation, the path point e is calculated min Solstice e Lstart and point e LendThe vertical distance DtoLine of the fitted straight line is:

[0046] ;

[0047] ;

[0048] ;

[0049] in,( , ) is point e Lstart The coordinates in the costmap, ( , ) is point e Lend The coordinates in the costmap, ( , ) is point e min The coordinates in the costmap, For point e Lstart and point e Lend The slope of the fitted straight line is For point e Lstart and point e Lend The intercept of the fitted line formed.

[0050] In combination with the first aspect, in a possible implementation, it is assumed that any path point e between the fine-tuning starting point and the path end point on the edge cleaning path i The coordinates of (x ei ,y ei ), fine-tune the cleaning path of the robot when cleaning along the edge, as follows:

[0051] When the wall is on the left side of the robot when cleaning along the edge, the path point e i The vertical axis is adjusted to :

[0052] ;

[0053] When the wall is on the right side of the robot when cleaning along the edge, the path point e i The vertical axis is adjusted to :

[0054] ;

[0055] in, ;

[0056] in, The amount of adjustment for each fine-tuning, is the width of the robot; d welt is the set edge distance; when the path point e iThe Euclidean distance calculated from all wall laser scanning points, is the minimum value among all Euclidean distance values.

[0057] In combination with the first aspect, in a possible implementation, fine-tuning the cleaning path of the robot during edge cleaning also includes connecting the path starting point and the fine-tuning starting point:

[0058] Assume e j (x ej ,y ej ) represents any path point between the path starting point and the fine-tuning starting point in the edge cleaning path, then the path point e(x ej ,y ej ) The adjusted coordinates are ( , ):

[0059] ; ;

[0060] in, and are the horizontal increment and the vertical increment respectively, ( , ) is the coordinate of the fine-tuning starting point, ( , ) are the coordinates of the starting point of the path, To fine-tune the index of the starting point in the edge sweeping path, is the path point e(x ej ,y ej ) in the edge sweeping path.

[0061] In a second aspect, the present application also provides a cleaning robot, which includes:

[0062] Body;

[0063] A driving device connected to the machine body, used to drive the machine body to move;

[0064] A laser radar is arranged on the body, and the laser radar is arranged at the front side of the walking direction when the body is walking;

[0065] A processor, communicatively connected to the laser radar and the driving device, and used to execute the method steps of the edge cleaning path planning method; and

[0066] A cleaning brush is arranged at the bottom of the machine body and is used for cleaning the ground.

[0067] The beneficial effects of the edge cleaning path planning method and the cleaning robot provided in the embodiments of the present application are:

[0068] First, plan a cleaning path that is close to the wall. Then, during the cleaning process, fine-tune the cleaning path in real time based on all the distance information fed back by the lidar and the set of segmented scanning points of the lidar's wall laser. Fine-tune to achieve the appropriate distance from the wall to prevent the wall from being hit due to being too close and to ensure the cleaning effect close to the wall. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art 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 creative labor.

[0070] Figure 1 This is a structural diagram of the cleaning robot according to an embodiment of the present application.

[0071] Figure 2 This is a flow chart of the steps of the edge cleaning path planning method according to an embodiment of the present application.

[0072] Figure 3 This is a flow chart of the steps of planning an edge cleaning path based on a constructed environment map and a path planning algorithm in an embodiment of the present application.

[0073] Figure 4 is the edge cleaning path L in the cost map of the embodiment of the present application 1 Schematic diagram of .

[0074] Figure 5 A schematic diagram of multiple edge contact points set in an embodiment of the present application.

[0075] Figure 6 is the optimized edge cleaning path L in the cost map of the embodiment of the present application 2 Schematic diagram of .

[0076] Figure 7 This is a schematic diagram of the positions of the driving wheels and laser radar of the cleaning robot according to an embodiment of the present application.

[0077] Figure 8 This is a flow chart of the steps of obtaining a fine-tuning starting point according to an embodiment of the present application. DETAILED DESCRIPTION

[0078] In order to make the technical problems, technical solutions and beneficial effects to be solved by 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 used to limit the present application.

[0079] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.

[0080] It should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0081] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0082] The edge cleaning path planning method of the present application and the cleaning robot using the edge cleaning path planning method are now described in detail with reference to the accompanying drawings.

[0083] Please refer to Figure 1 The cleaning robot 100 provided in the embodiment of the present application includes a body 10, a driving device 20 connected to the body 10, a laser radar 30 arranged on the body 10, a cleaning brush 40 arranged at the bottom of the body 10 and used to clean the ground, and a processor. Among them, the driving device 20 is used to drive the body 10 to walk on the ground. The driving device 20 may include a motor arranged in the body 10 and a driving wheel 21 connected to the motor and arranged at the bottom of the body 10. When the motor drives the driving wheel 21 to rotate, the body 10 is driven to move. The driving wheels 21 may be two side by side. The laser radar 30 may be a single-line laser radar 30. During the walking process of the body 10, the laser radar 30 is arranged at the front side of the walking direction. The laser radar 30 is used for ranging and realizing SLAM composition; the two side-by-side driving wheels 21 are located at the rear side of the laser radar 30 and the laser radar 30 is located on the perpendicular bisector of the straight line formed by the line connecting the center points of the two driving wheels 21. The processor is communicatively connected to the laser radar 30 and the driving device 20. The processor can receive the detection information fed back by the laser radar 30 and execute the implementation process of the edge cleaning path planning method. The specific steps of the edge cleaning path planning method are as follows.

[0084] Please refer to Figure 2The edge cleaning path planning method provided in the embodiment of the present application includes the following steps S100 to S400:

[0085] Step S100: planning an edge cleaning path based on the constructed environment map and path planning algorithm;

[0086] Step S200: adjusting the starting point of the edge cleaning path based on the laser radar installed on the robot to obtain a fine-tuning starting point;

[0087] Step S300: Calculate the wall line segment for edge cleaning with the fine-tuning starting point as the starting point, and segment the wall line segment to obtain a segmentation scanning point set and a segmentation line segment set of the wall laser;

[0088] Step S400: When all the distance information and the set of segmented scanning points fed back by the laser radar meet the preset conditions, the cleaning path of the robot during edge cleaning is fine-tuned.

[0089] In the above-mentioned edge cleaning path planning method, the edge cleaning path is first planned, and then during the cleaning process, the edge cleaning path is fine-tuned in real time based on all distance information fed back by the lidar and the segmented scanning point set of the lidar's wall laser. The fine-tuning is performed to achieve an appropriate distance from the wall to prevent the wall from being hit due to being too close and to ensure the edge cleaning effect.

[0090] In one embodiment of the application, Figure 3 As shown, for step S100, planning the edge cleaning path based on the constructed environment map and the path planning algorithm includes the following steps S110 to S140.

[0091] Step S110: Use the path planning algorithm to plan an initial edge cleaning path L in the environment map 1 .

[0092] Before using the robot for cleaning, the robot can be controlled to walk around the area to be cleaned, and the environment map can be obtained by combining the laser radar detection information for SLAM composition. The process of using the radar for SLAM composition can adopt the existing SLAM algorithm, and then use any existing path planning algorithm to plan the initial edge cleaning path L 1 , where the path planning algorithm uses the A* (A Star) algorithm. Figure 4 The edge-sweeping path L in the displayed costmap 1 situation.

[0093] It is worth noting that during the edge cleaning process, the robot should not only be as close to the edge as possible to ensure the edge cleaning effect, but also the robot's external dimensions should be considered. It should not be too close to the edge, because too close to the edge will cause the robot body to hit the wall. In the embodiment of the present application, the robot body is projected onto the ground in a rectangular or positive direction. The following is combined with the robot body shape to plan the edge cleaning path L 2 .

[0094] Step S120: Clean along the initial edge cleaning path L 1 Select multiple edge points to obtain the first cleaning point set.

[0095] Among them, the initial edge cleaning path L 1 It is displayed in the cost map, then according to the initial edge cleaning path L 1 You can initially set multiple edge points, among which: Figure 5 This shows the situation of setting multiple edge points. Figure 5 A small rectangular dot in the middle represents the position of a touch point. The actual touch point size will not be as large as shown in the figure. In order to show the effect, Figure 5 The size of the welt points in the image is enlarged for easier display. Figure 4 In the figure, the cost value of the first area of ​​the first color is 0, and the robot can walk freely in this area; the cost value of the second area of ​​the second color is greater than 0 and less than 253, and this area is close to the wall; the cost value of the third area of ​​the third color is 253, and this area indicates an area that the robot cannot reach. Therefore, when selecting the edge point in step S120, the point in the third area cannot be selected, because the robot cannot reach it; the edge point should not be selected as the point in the first area, because the point in the first area is too far from the wall. However, when manually selecting multiple edge points, it is difficult to ensure that each edge point is located in the second area, so it is necessary to adjust the first cleaning point set of multiple edge points, and the adjustment process is as follows.

[0096] Step S130: Based on the edge cost Edge related to the robot size parameters cost Each edge-adapting point in the first cleaning point set is adjusted to obtain a second cleaning point set with edge-adapting optimization.

[0097] Among them, the edge cost Edge cost for: ;k 1 is the adjustment parameter, d is the physical distance from the robot's geometric center to the wall to be cleaned, r is the radius of the robot's inscribed circle, and d is the set edge distance d welt and half the width of the robot.

[0098] Among them, when establishing the robot coordinate system, the center of the two driving wheels of the robot is taken as the origin, the walking direction of the robot is taken as the horizontal axis, and the vertical axis is taken as the vertical axis. It can be understood that when the robot is cleaning close to the edge, the robot walks along the wall, and the walking direction is the horizontal axis. Then the cost of cleaning close to the edge should be related to the distance d from the geometric center of the robot to the wall in the vertical direction, that is, the distance from the origin of the robot coordinate system to the wall. The aforementioned robot width refers to the length in the vertical direction; the inscribed circle radius r is the radius of the inscribed circle drawn with the origin of the robot coordinate system as the center. Since the shape of the robot body is determined, the inscribed circle radius r can also be determined. The edge distance d welt It can be set according to the actual situation. Understandably, in order to clean the two sides of the bottom edge of the robot, cleaning brushes such as side brushes are provided, and the edge distance d welt It can be understood as the length of the bristles of the side brush exposed relative to the robot body; the robot can clean the wall with the exposed bristles. welt Can be set to 0.05 meters, r=0.257, k 1 =2.65, half of the robot width is 0.293 meters, at this time Edge cost =200.

[0099] For example, for any selected edge point, the cost value of the edge point in the cost map is equal to the edge cost Edge cost If the absolute value of the difference between is less than the set threshold, then the edge point does not need to be adjusted; if the cost value of the edge point in the cost map is equal to the edge cost value Edge cost If the absolute value of the difference is greater than or equal to the set threshold, the edge point is adjusted. The adjustment process is: 1 Traverse each adjacent node X of the edge point for the current starting point 2 , if a certain adjacent node X 2 Cost value and edge cost in cost map cost When the absolute value of the difference is less than the set threshold, the adjacent node is the adjusted edge point, otherwise continue to traverse each adjacent node X 2 The adjacent node X 3 , and repeat this process until an adjacent node X is reached. 3 Cost value and edge cost in cost map cost The absolute value of the difference is less than the set threshold, and the adjacent node X 3 as the adjusted welt point.

[0100] Step S140: Construct a cost evaluation function F(m) based on the edge cost value, and plan an optimized edge cleaning path L based on the path planning algorithm and the second cleaning point set. 2 .

[0101] Among them, the cost evaluation function is:

[0102] .

[0103] G(m) is the path cost from the starting point to any point m when the path planning algorithm performs path planning, and α is the set weight; is the cost value of point m in the cost map, D m is the distance between point m and the target point when the path planning algorithm is performing path planning, D m Either Euclidean distance or Chebyshev distance can be used.

[0104] It can be understood that when selecting multiple edge points to form the first cleaning point set, they will follow the same direction along the initial edge cleaning path L 1 Select multiple edge points and number them in the order of selection. Then the multiple edge points of the second cleaning point set obtained by adjusting the first cleaning point set are also numbered in the previous order. Under the access cost of the constructed new cost evaluation function F(m), the A* path planning algorithm is used to plan a new edge cleaning path L 2 When , the path planning algorithm takes the first edge point of the second cleaning point set as the starting point and the second edge point as the target point during the search process. It starts from the starting point and searches the sub-grid points around the starting point. Each time, it selects a point with the lowest evaluation function from the surrounding sub-grid points as the next search node, which is called the current node. It searches all sub-grid points adjacent to the current node again, and re-searches the point with the lowest evaluation function as the new current node. It searches in sequence until the current node is the target point. It repeats the search until it reaches the last edge point of the second cleaning point set, and finally obtains the edge cleaning path L planned by the path planning algorithm under the access cost of the cost evaluation function F(m). 2 .in, Figure 6 is the optimized edge cleaning path L 2 Schematic diagram of the results.

[0105] It is worth noting that if Figure 7 As shown in the figure, the chassis of the robot is a differential chassis, that is, the robot's driving wheels are two driving wheels arranged side by side, and the robot's movement center is at the center of the two driving wheels. When the robot is moving, the single-line laser radar for detecting distance is located in front of the two driving wheels arranged side by side. That is, when the robot is moving along the labeling cleaning path, the laser radar acting as the eye detector is relative to the edge cleaning path L. 2 The starting point is in front, and the front is in front of the robot's walking direction. In this way, it is necessary to find the fine-tuning starting point corresponding to the laser radar according to the installation position of the laser radar.

[0106] In one embodiment of the application, for step S200, the starting point of the edge cleaning path is adjusted based on the laser radar installed on the robot to obtain the fine-tuning starting point, including:

[0107] The edge cleaning path L traversed in order 2 Each path point in

[0108] During each traversal, it is determined whether the path point currently traversed meets the first preset distance condition, and the path point currently traversed that meets the first preset distance condition is the fine-tuning starting point;

[0109] Among them, the first preset distance condition is: , ;

[0110] in, is the physical coordinate value of the robot center in the cost map, that is, the physical coordinate value of the center of the two driving wheels in the cost map, is the physical coordinate value of the traversed i-th path point in the cost map, It is the physical distance between the single-line laser radar installed on the robot and the center of the two driving wheels of the robot walking on the ground.

[0111] It is worth noting that the traversal process in step S200 starts from the starting point of the path, and each traversal calculates When the first traversed path point that meets the first preset condition is the fine-tuning starting point, the traversal is exited at this time, and the subsequent path points do not need to be traversed again.

[0112] In one embodiment of the application, for step S300, if Figure 8 As shown, the wall line segment for edge cleaning is calculated with the fine-tuning starting point as the starting point, and the wall line segment is segmented to obtain the segmentation scanning point set and segmentation line segment set of the wall laser, including the following steps S310 to S340:

[0113] Step S310: Find the wall laser scanning point P corresponding to the fine-tuning starting point start .

[0114] Step S320: Finding the optimized edge cleaning path L 2 The wall laser scanning point P corresponding to the cleaning end point end ;

[0115] Step S330: Scan point P with wall laser start To the wall laser scanning point P end All the wall laser scanning points between them form a wall line segment;

[0116] Step S340: Segmenting the wall line segments to meet preset conditions to obtain a segmentation scanning point set, including:

[0117] First segmentation: Set the wall laser scanning points P separately start and the wall laser scanning point P end The first starting point B 1 and the first tail point E 1 , traverse the first starting point B 1 and the first tail point E 1 All the wall laser scanning points between the two are selected as the first segmentation point of the segmentation scanning set. start , P 1 and P end Every two adjacent points in form a segment;

[0118] Second segmentation: Set the wall laser scanning points P separately start and the first split point P 1 The first starting point B 1 and the first tail point E 1 , respectively set the first segmentation point P 1 and the wall laser scanning point P end The second starting point B 2 and the second tail point E 2 ; Traverse the first starting point B 1 and the first tail point E 1 All the wall laser scanning points between the two, take the laser scanning points that meet the second preset distance condition in the traversal as the second segmentation point P belonging to the segmentation scanning point set 2 ; Traverse the second starting point B 2 and the second tail point E 2 All the wall laser scanning points between the two, take the laser scanning point that meets the second preset distance condition in the traversal as the third segmentation point P belonging to the segmentation scanning point set 3 ; Click P start , P 1 , P 2 , P 3 and P end Every two adjacent points in form a segment;

[0119] A laser scanning point satisfying the second preset distance condition is cyclically searched in each segmentation line segment obtained last time to obtain a new segmentation point, until each segmentation line segment obtained last time can no longer be segmented, and a segmentation scanning point set is formed by all the segmentation points, and each two adjacent points in the segmentation scanning point set form a segmentation line segment, thereby obtaining a segmentation line segment set.

[0120] Among them, for a path point, the corresponding wall laser scanning point is solved. In the above step S310, the Euclidean distance is calculated between all the laser scanning points formed by the laser radar on the wall and the fine-tuning starting point. The wall laser scanning point corresponding to the minimum Euclidean distance value is the wall laser scanning point P start The same is true for the solution of step S320.

[0121] In the above step S340, the kth starting point B k and the kth tail point E k A laser scanning point S between the kth starting point B and the kth starting point B satisfies the second preset distance condition: k and the kth tail point E k Among all the laser scanning points between laser scanning point S and starting point B k and end point E k The perpendicular distance D of the line segment S The value is the largest and D S >D t ;

[0122] ;

[0123] ;

[0124] in,( , ) is the coordinate of the laser scanning point S in the cost map, ( , ) is the kth starting point B k The coordinates in the costmap, ( , ) is the kth tail point E k The coordinates in the costmap, is the kth starting point B k and the kth tail point E k The Euclidean distance between is the kth starting point B k and the kth tail point E k The angle between the straight line formed by the connecting line and the horizontal axis, D t To set the threshold, D t The acceptable value is 0.01 meter.

[0125] It is worth noting that the edge cleaning path L is obtained by planning in step S100. 2, the robot's automatic line patrol function can also complete the edge cleaning later. However, when the path calculation in step S100 is based on the cost map converted from the laser radar information, many thresholds are set based on experience, and there will be errors when actually cleaning the edge. Therefore, during the robot's edge cleaning process, it is necessary to consider the laser radar installation position in real time and adjust the edge cleaning path L based on the real-time feedback information of the laser radar. 2 Fine-tune; that is, during the edge cleaning process of the robot, fine-tune the edge cleaning path according to steps S200 to S400.

[0126] In one embodiment of the application, for step S400, the preset conditions satisfied by all distance information and segmented scanning point sets fed back by the laser radar are that conditions (I), (II) and (III) are satisfied at the same time:

[0127] (I) Traversing all the scanning distance information of the laser radar, there is a continuous distance information that is less than the set threshold T 1 ;

[0128] (II) The total number of all wall laser scanning points that form the wall segment is greater than the set threshold T 2 ;

[0129] (III) The wall to be cleaned along the edge is a straight wall.

[0130] Furthermore, determining whether the wall surface to be cleaned along the edge is a straight wall surface includes the following steps S410 to S440.

[0131] Step S410: traverse the edge cleaning path from the fine-tuning starting point, and calculate the Euclidean distance between each path point of the traversed edge cleaning path and all the wall laser scanning points.

[0132] Step S420: Record the minimum Euclidean distance value DToWall obtained in step S410 minn , minimum Euclidean distance value DToWall min The corresponding wall laser scanning point Scan min Index Scan minindex , the minimum Euclidean distance value DToWall during the traversal process min The corresponding path point e min .

[0133] During laser radar detection, multiple wall laser scanning points will be obtained, and the multiple wall laser scanning points will be numbered in the same direction. The index of one wall laser scanning point is the number corresponding to the wall laser scanning point.

[0134] Step S430: traverse the segment set and search for the index Scan minindexThe segment L belongs to, and the starting point and the ending point of the segment L are respectively recorded as e Lstart and e Lend .

[0135] As mentioned above, any segmentation line segment L is formed by two adjacent points in the segmentation scan point set. minindex The segment to which it belongs is the segment L: Index Scan minindex Between the indices of the two points that make up the segment L. For example, Scan minindex is numbered 4, the index number of the first endpoint of the segment L is 2 and the index number of the other endpoint is 7, then the index Scan minindex The dividing line segment to which belongs is dividing line segment L.

[0136] Step S440: Calculate path point e min Solstice e Lstart and point e Lend The vertical distance DtoLine of the fitted straight line.

[0137] ;

[0138] ;

[0139] ;

[0140] In the above formula, ( , ) is point e Lstart The coordinates in the costmap, ( , ) is point e Lend The coordinates in the costmap, ( , ) is point e min The coordinates in the costmap, For point e Lstart and point e Lend The slope of the fitted straight line is For point e Lstart and point e Lend The intercept of the fitted line formed.

[0141] Step S450: If the minimum Euclidean distance value DToWall min The absolute value of the difference between the vertical distance DtoLine and the vertical distance DtoLine is less than the set threshold T 3 , it means that the wall to be cleaned along the edge is a straight wall.

[0142] In one embodiment of the application, when the above conditions (I), (II), and (III) are met, the cleaning path of the robot is fine-tuned during the edge cleaning process. Assume that any path point e between the fine-tuning starting point and the path end point on the edge cleaning path is i The coordinates of (x ei ,y ei ), fine-tune the cleaning path of the robot when cleaning along the edge, as follows:

[0143] When the wall is on the left side of the robot when cleaning along the edge, the path point e i The vertical axis is adjusted to :

[0144] ;

[0145] When the wall is on the right side of the robot when cleaning along the edge, the path point e i The vertical axis is adjusted to :

[0146] ;

[0147] in, ; The amount of adjustment for each fine-tuning, is the width of the robot; d welt is the set edge distance; when the path point e i The Euclidean distance calculated from all wall laser scanning points, is the minimum value among all Euclidean distance values.

[0148] Furthermore, for the above step S450, the left and right sides of the robot when walking are set according to the scanning angle range of the single-line laser radar. The origin of the robot coordinate system is the center of the two driving wheels, the positive direction of the horizontal axis of the robot coordinate system is the walking direction of the robot, and the vertical axis of the robot coordinate system is perpendicular to the horizontal axis and the positive direction of the vertical axis points to the wall next to it. The single-line laser radar rotates in front of the robot's walking direction to emit laser scanning, wherein the laser radar 0° is facing straight ahead and consistent with the positive direction of the horizontal axis of the robot coordinate system, and the scanning angle range of the single-line laser radar [-105°, -75°] is selected to correspond to the left side of the robot and the scanning angle range of the single-line laser radar [75°, 105°] is selected to correspond to the right side of the robot.

[0149] Furthermore, for the above step S450, it can be determined whether the wall to be cleaned along the edge is on the left or right side of the robot based on the minimum distance detected by the single-line laser radar at the current moment. It is understandable that when cleaning along the edge, the minimum distance detected by the single-line laser radar is on the side of the wall. Then, when the minimum detection distance fed back by the single-line laser radar is obtained when the scanning angle range is [-105°, -75°], the wall is located on the right side of the robot; when the minimum detection distance fed back by the single-line laser radar is obtained when the scanning angle range is [75°, 105°], the wall is located on the left side of the robot.

[0150] In another embodiment of the application, since the robot needs to obtain the edge cleaning path at regular intervals, it is also necessary to continuously judge whether all the distance information and the segmented scanning point set fed back by the laser radar satisfy the preset conditions of simultaneously satisfying conditions (I), (II) and (III) according to the information fed back by the laser radar on the robot during the cleaning process. If so, the edge cleaning path in step S400 is fine-tuned at this moment. In order to make the robot's walking path smoother during multiple adjustments, a fixed path is not used every time when adjusting the path. The adjustment amount is based on the number of adjustments. Make the appropriate adjustments:

[0151] If it is the adjustCountth time to perform path fine-tuning, that is, if it is the adjustCountth time to perform path fine-tuning in step S400, ,in is the set number of thresholds, Can be set to 30.

[0152] Among them, the above two application embodiments are for any path point e between the fine-tuning starting point and the path end point on the cleaning path. i During the fine-tuning process, how to fine-tune the path segment between the path starting point and the fine-tuning starting point when the robot is walking? Connect the path starting point and the fine-tuning starting point as follows:

[0153] Assume e j (x ej ,y ej ) represents any path point between the path starting point and the fine-tuning starting point in the edge cleaning path, then the path point e(x ej ,y ej ) The adjusted coordinates are ( , ):

[0154] ; ;

[0155] in, and are the horizontal increment and the vertical increment respectively, ( , ) is the coordinate of the fine-tuning starting point, ( , ) are the coordinates of the starting point of the path, To fine-tune the index of the starting point in the edge sweeping path, is the path point e(x ej ,y ej ) is the index in the edge-sweeping path. Each path point in the edge-sweeping path is numbered in the same direction. The index of the path point is the number. The index of the nth path point is n.

[0156] Furthermore, during the edge cleaning process, the edge cleaning path planning method further includes:

[0157] Real-time detection of convex corners ahead, and

[0158] The straight-line walking time through the convex corner is calculated based on the convex corner point and the linear speed of the robot's walking, or the edge cleaning path is adjusted based on the convex corner point and the robot size.

[0159] Among them, the real-time detection of whether there is a convex corner in front is based on the laser radar installed on the robot body to detect the convex corner point in front of the robot:

[0160] For the multiple detection scanning points fed back by the single-line laser radar at the current moment, when the detection distance corresponding to any detection scanning point increases and meets the preset change conditions, there is a convex corner in front of the robot;

[0161] The detection scanning point that meets the preset change conditions is the convex corner point Corner.

[0162] Among them, the change preset condition is: ScanRange i [current]>scanRange i [before]*γ;ScanRange i is the detection scanning point of a detection angle θ of the single-line laser radar, ScanRange i [current] is the detection angle θ of the single-line laser radar at the current moment, and the feedback detection distance is scanRange i [before] is the detection distance fed back by the detection angle θ of the single-line laser radar at the previous moment, and γ is the set multiple threshold, where γ≥2.

[0163] During the robot's edge cleaning process, the single-line laser radar rotates and emits laser scanning in front of the robot's walking direction. When a convex corner (yang corner) appears in front of the wall, the detection distance fed back by a certain detection angle will change suddenly when the single-line laser radar encounters the convex corner, and will be larger than the moment before the convex corner is encountered. In this way, based on the distance information fed back by the single-line laser radar, it can be known whether a convex corner appears in front and when a convex corner is detected, it can be known which detection scanning point of the single-line laser radar corresponds to the convex corner point.

[0164] In one embodiment, the straight walking time through the convex corner is calculated based on the convex corner point and the linear speed of the robot walking, which is:

[0165] ;

[0166] in, is the time to travel over the convex corner, τ is the adjustment parameter, is the linear velocity of the robot, It is the horizontal axis coordinate of the convex corner point Corner in the cost map.

[0167] After calculating the straight walking time Time, the robot goes straight for Time and no longer walks along the original turning edge cleaning path. τ is an adjustable parameter. For robots with different external dimensions, k can take different values ​​according to the specific situation, that is, τ can be adjusted according to the size of the robot. In a specific embodiment, when the width of the robot is 60cm and the length is 80cm, τ can take a value of 2. After the convex corner point is detected, the straight walking time Time can make the tail of the robot pass the convex corner point. When going straight through the convex corner within the Time time, the angular velocity of the robot is set to 0. The straight walking means that when the convex corner point is detected, the robot goes straight in the direction of advance when the convex corner point is detected. Time, you don't have to follow the original cleaning path.

[0168] In another embodiment, adjusting the edge cleaning path based on the salient corner points and the robot size includes the following steps:

[0169] Traverse the current edge cleaning path and find the path point e closest to the convex corner point Corner Cor And record the path point e Cor Index in the current edge sweeping path ecor ;

[0170] Calculate the horizontal increment of the path adjustment : ;

[0171] Performs a path adjustment operation.

[0172] In the above steps, traverse each path point of the current edge cleaning path, calculate the Euclidean distance between each path point and the convex corner point Corner, sort all the Euclidean distance values, and select the path point e corresponding to the minimum Euclidean distance value. Cor , waypoint e Cor Index ecor Represents: waypoint e Cor It is the number of points in the edge cleaning path. It is used for the adjustment amount in the horizontal direction during subsequent path adjustment. The total number of path points of the current edge-sweeping path; During the path adjustment process, the horizontal axis direction is adjusted to be parallel to the horizontal axis direction of the robot coordinate system, and the vertical axis direction is adjusted to be parallel to the horizontal axis direction of the robot coordinate system.

[0173] Further, performing a path adjustment operation includes:

[0174] From waypoint e Cor The next path point to the end point of the current edge cleaning path e end To perform lateral adjustments parallel to the robot's walking direction: ;

[0175] Calculate the fine-tuning starting point corresponding to the starting point of the current edge cleaning path according to the position of the single-line laser radar installed on the aircraft body;

[0176] From the fine-tuning starting point to the end point of the front edge cleaning path e end , perform a vertical adjustment operation perpendicular to the horizontal direction: .

[0177] In the above steps, the calculation of the fine-tuning starting point is the same as the above calculation method, which will not be repeated here. Where n and m are both the indexes of the path points. Represented as path point e Cor The next path point to the end point e end Any path point between Indicates waypoints The horizontal axis coordinate in the cost map, the waypoint For waypoints The previous waypoint of Indicates the path point fine-tuning starting point to the end point of the current edge cleaning path e end Any path point between Represented as waypoints The vertical coordinate in the costmap.

[0178] It is worth noting that after detecting the convex corner, the robot calculates the time it takes to go straight through the convex corner to avoid the risk of hitting the wall by directly following the original edge cleaning path. After detecting the convex corner, the edge cleaning path is adjusted to avoid the risk of hitting the wall by walking directly along the path that originally turned at the convex corner.

[0179] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for planning a path for edge cleaning, characterized in that: include: Plan the edge cleaning path based on the constructed environment map and path planning algorithm; The starting point of the edge cleaning path is adjusted based on the laser radar installed on the robot to obtain a fine-tuning starting point; Calculating the wall line segment for edge cleaning with the fine-tuning starting point as the starting point, and segmenting the wall line segment to obtain a segmentation scanning point set and a segmentation line segment set of the wall laser; and When all the distance information and the set of segmented scanning points fed back by the laser radar meet the preset conditions, the cleaning path of the robot is fine-tuned when cleaning along the edge; The edge cleaning path is planned based on the constructed environment map and path planning algorithm, including: Use the path planning algorithm to plan the initial edge cleaning path L1 in the environment map; Select multiple edge points along the initial edge cleaning path L1 to obtain a first cleaning target point set; According to the edge cost value Edge related to the robot size parameters cost Adjust each edge point in the first cleaning target point set to obtain a second cleaning target point set with edge optimization; The cost evaluation function F(m) is constructed by combining the edge cost value, and the optimized edge cleaning path L2 is planned based on the path planning algorithm and the second cleaning target point set; Among them, the edge cost Edge cost for: ; Among them, the cost evaluation function F(m): ; Among them, G(m) is the path cost from the starting point to any point m when the path planning algorithm performs path planning, and α is the set weight; is the cost value of point m in the cost map, D m k is the distance between point m and the target point when the path planning algorithm performs path planning; 1 is the adjustment parameter, d is the physical distance from the robot's geometric center to the wall to be cleaned, r is the radius of the robot's inscribed circle, and d is the set edge distance d welt and half the width of the robot.

2. The edge cleaning path planning method according to claim 1, characterized in that: The laser radar is a single-line laser radar. Based on the laser radar installed on the robot, the starting point of the edge cleaning path is adjusted to obtain a fine-tuning starting point, which is: Each path point in the edge cleaning path L2 is traversed in order; During each traversal, it is determined whether the path point currently traversed meets the first preset distance condition, and the path point currently traversed that meets the first preset distance condition is the fine-tuning starting point; Among them, the first preset distance condition is: , ; in, is the physical coordinate value of the robot center in the cost map, is the physical coordinate value of the traversed i-th path point in the cost map, It is the physical distance between the single-line laser radar installed on the robot and the center of the two driving wheels of the robot walking on the ground.

3. The edge cleaning path planning method according to claim 1, characterized in that: The wall line segment for edge cleaning is calculated with the fine-tuning starting point as the starting point, and the wall line segment is segmented to obtain a set of segmented scanning points of the wall laser, including: Find the wall laser scanning point P corresponding to the fine-tuning starting point start ; Find the wall laser scanning point P corresponding to the cleaning end point of the optimized edge cleaning path end ; Scan point P on the wall with laser start To the wall laser scanning point P end All the wall laser scanning points between them form a wall line segment; The wall line segments are segmented to meet the preset conditions to obtain a set of segmented scanning points, including: First segmentation: Set the wall laser scanning points P separately start and the wall laser scanning point P end The first starting point B1 and the first end point E1 are traversed, and all the wall laser scanning points between the first starting point B1 and the first end point E1 are selected as the first segmentation point belonging to the segmentation scanning set. start , P1 and P end Every two adjacent points in form a segment; Second segmentation: Set the wall laser scanning points P separately start The first segmentation point P1 and the first starting point B1 and the first end point E1 are respectively set as the first segmentation point P1 and the wall laser scanning point P end The second starting point B2 and the second end point E2 are traversed; all the wall laser scanning points between the first starting point B1 and the first end point E1 are traversed, and the laser scanning points that meet the second preset distance condition in the traversal are selected as the second segmentation point P2 belonging to the segmentation scanning point set; all the wall laser scanning points between the second starting point B2 and the second end point E2 are traversed, and the laser scanning points that meet the second preset distance condition in the traversal are selected as the third segmentation point P3 belonging to the segmentation scanning point set; point P start , P1, P2, P3 and P end Every two adjacent points in form a segment; A laser scanning point satisfying the second preset distance condition is cyclically searched in each segmentation line segment obtained last time to obtain a new segmentation point, until each segmentation line segment obtained last time can no longer be segmented, and a segmentation scanning point set is formed by all the segmentation points, and each two adjacent points in the segmentation scanning point set form a segmentation line segment, thereby obtaining a segmentation line segment set.

4. The edge cleaning path planning method according to claim 3, characterized in that: in, The kth starting point B k and the kth tail point E k A laser scanning point S between the kth starting point B and the kth starting point B satisfies the second preset distance condition: k and the kth tail point E k Among all the laser scanning points between laser scanning point S and starting point B k and end point E k The perpendicular distance D of the line segment S The value is the largest and D S >D t ; ; ; in,( , ) is the coordinate of the laser scanning point S in the cost map, ( , ) is the kth starting point B k The coordinates in the costmap, ( , ) is the kth tail point E k The coordinates in the costmap, is the kth starting point B k and the kth tail point E k The Euclidean distance between is the kth starting point B k and the kth tail point E k The angle between the straight line formed by the connecting line and the horizontal axis, D t To set the threshold.

5. The edge cleaning path planning method according to claim 3, characterized in that: The preset conditions satisfied by all distance information and segmented scanning point sets fed back by the laser radar are that conditions (I), (II) and (III) are satisfied at the same time: (I) After traversing all the scanning distance information of the laser radar, there is a continuous period of distance information that is less than the set threshold T1; (II) The total number of all wall laser scanning points that form the wall line segment is greater than the set threshold T2; (III) The wall to be cleaned along the edge is a straight wall.

6. The edge cleaning path planning method according to claim 5, characterized in that: The steps to determine whether the wall to be cleaned along the edge is a straight wall are as follows: Traverse the edge cleaning path from the fine-tuning starting point, and calculate the Euclidean distance between each path point of the traversed edge cleaning path and all the wall laser scanning points. Record the minimum Euclidean distance value DToWall minn , minimum Euclidean distance value DToWall min The corresponding wall laser scanning point Scan min Index Scan minindex , the minimum Euclidean distance value DToWall during the traversal process min The corresponding path point e min ; Traverse the segment set and find the index Scan minindex The segment L belongs to, and the starting point and the ending point of the segment L are respectively recorded as e Lstart and e Lend ; Calculate the path point e min Solstice e Lstart and point e Lend The vertical distance of the fitted line DToLine; If the minimum Euclidean distance value DToWall min If the absolute value of the difference between the vertical distance DtoLine and the vertical distance DtoLine is less than the set threshold value T3, it indicates that the wall surface being cleaned along the edge is a straight wall surface.

7. The edge cleaning path planning method according to claim 6, characterized in that: Calculate the path point e min Solstice e Lstart and point e Lend The vertical distance DtoLine of the fitted straight line is: ; ; ; in,( , ) is point e Lstart The coordinates in the costmap, ( , ) is point e Lend The coordinates in the costmap, ( , ) is point e min The coordinates in the costmap, For point e Lstart and point e Lend The slope of the fitted straight line is For point e Lstart and point e Lend The intercept of the fitted line formed.

8. The edge cleaning path planning method according to claim 1, characterized in that: Assume that any path point e between the fine-tuning starting point and the path end point on the edge cleaning path i The coordinates of (x ei ,y ei ), fine-tune the cleaning path of the robot when cleaning along the edge, as follows: When the wall is on the left side of the robot when cleaning along the edge, the path point e i The vertical axis is adjusted to : ; When the wall is on the right side of the robot when cleaning along the edge, the path point e i The vertical axis is adjusted to : ; in, ; in, The amount of adjustment for each fine-tuning, is the width of the robot; d welt is the set edge distance; when the path point e i The Euclidean distance calculated from all wall laser scanning points, is the minimum value among all Euclidean distance values.

9. The edge cleaning path planning method according to claim 1, characterized in that: When fine-tuning the cleaning path of the robot during edge cleaning, it also includes connecting the path starting point and the fine-tuning starting point: Assume e j (x ej ,y ej ) represents any path point between the path starting point and the fine-tuning starting point in the edge cleaning path, then the path point e(x ej ,y ej ) The adjusted coordinates are ( , ): ; ; in, and are the horizontal increment and the vertical increment respectively, ( , ) is the coordinate of the fine-tuning starting point, ( , ) are the coordinates of the starting point of the path, To fine-tune the index of the starting point in the edge sweeping path, is the path point e(x ej ,y ej ) in the edge sweeping path.

10. A cleaning robot, characterized in that: include: Body; A driving device connected to the machine body, used to drive the machine body to move; A laser radar is arranged on the body, and the laser radar is arranged at the front side of the walking direction when the body is walking; A processor, communicatively connected to the laser radar and the driving device, and used to execute the method steps of the edge cleaning path planning method according to any one of claims 1 to 9; and A cleaning brush is arranged at the bottom of the machine body and is used for cleaning the ground.