A control method for robot edge cleaning, robot and storage medium

By obtaining lidar point clouds and cost maps for point cloud conversion processing, combining environmental perception data and static map data, a fused point cloud is generated and the robot movement strategy is adjusted, which solves the problem of unstable distance and unstable control when the robot cleans along the edge in the existing technology. Precise questions achieve a more efficient and smooth welt cleaning effect.

CN118550305BActive Publication Date: 2024-10-01KEENON ROBOTICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411018935.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-01
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

When the existing technology realizes robot edge cleaning without collision, there are problems such as unstable distance when working against the wall, low control accuracy, large errors and unsmooth operation. Especially in commercial scenarios, there are many dynamic obstacles and safety hazards are prone to occur. ACCIDENT.

Method used

By obtaining the lidar point cloud and cost map for point cloud conversion processing, combined with environmental perception data and static map data, a fusion point cloud is generated, and adaptive adjustments are made according to the target obstacle point cloud to realize the robot's edge cleaning movement strategy and ensure that it adheres Precise control of edge distance.

Benefits of technology

It realizes that without collision, the robot can perform edge cleaning at a closer distance, more accurately and smoothly, improves the accuracy and robustness of edge control, reduces the impact of sensor detection errors, and avoids the problem of virtual walls and entities. Difficulties in welding caused by boundary gaps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550305B_ABST
    Figure CN118550305B_ABST
Patent Text Reader

Abstract

The present application provides a control method, robot and storage medium for robot edge cleaning, the control method includes: determining that the robot enters the edge state, obtaining the laser radar point cloud, the first point cloud generated by the cost map point cloud conversion processing, and the area boundary; summarizing and fusing the laser radar point cloud, the first point cloud and the area boundary to determine the fused point cloud; partitioning the fused point cloud, screening according to the distance rule, and determining the target obstacle point cloud; according to the target obstacle point cloud, controlling the robot to execute the corresponding edge cleaning motion strategy according to the expected edge rule. By fusing the laser radar point cloud with the cost map point cloud and the area boundary, the edge accuracy can be improved, and by setting the expected edge rule, it is ensured that the robot does not collide when performing the edge cleaning operation, so that it can effectively achieve the cleaning operation as close to the edge as possible without collision, and then multi-scene edge cleaning operations can be performed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In the current smart home field, the application of cleaning robots has become quite popular. They have greatly reduced people's housework burden, especially floor cleaning. However, observing most sweeping robot products in the field of household cleaning, we can find that they generally adopt a more traditional and simple and direct method in the design of edge cleaning function: that is, edge cleaning is achieved through the collision sensor on the machine.

[0003] The principle of this technology is mainly to use the collision or contact sensing device installed on the body of the sweeping robot. When the machine touches obstacles such as walls and furniture legs during operation, the sensor will receive a signal, and then the system will control the robot to change its direction of travel, usually cleaning along the edge of the obstacle. However, this method relies on physical contact to identify the boundary, so in actual operation, the sweeping robot often needs to directly collide with the object to trigger the edge cleaning mode.

[0004] In the field of commercial cleaning robots, such as office buildings and hotels, when using cleaning robots for cleaning, the robots are large in size, the environment is changeable, and there are many dynamic obstacles such as pedestrians. It is not suitable to pass through the edge through collision, and safety accidents are prone to occur. Therefore, with the continuous advancement of technology, how to perform edge cleaning operations as close to the edge as possible without collision is an edge cleaning solution that the industry is exploring and needs to implement. Among them, CN115919214A discloses a control method for a cleaning robot, a robot, and a computer-readable storage medium, which determines the perception data for controlling the robot to perform wall cleaning through the difference between laser radar point cloud data and fusion data (the fusion data is determined by fusing the image data collected by the depth camera with the point cloud data collected by the laser radar).

[0005] However, the method provided by CN115919214A only selects one of the laser radar point cloud data and the fusion data as the perception data for controlling the robot to work against the wall, without considering the real-time data of other sensors, resulting in a large deviation in real-time obstacle positioning. In addition, static maps are not considered, and when the sensor has a detection error, it is easy to cause the robot to abnormally stick to the edge. Among them, the use of the cost map is only to directly use virtual walls and no-sweeping areas for area demarcation, and the error between the virtual wall and the physical boundary can easily cause the robot to be too far away from the physical boundary. Therefore, the method provided by CN115919214A still has the problem of being far away from the object to be cleaned along the edge (such as a wall) and the distance is unstable (low control accuracy, large error) when working against the wall, and the robot is not running smoothly and there is a jam. Summary of the invention

[0006] In view of this, the purpose of the present application is to provide a control method, robot and storage medium for edge cleaning of a robot, which can effectively realize edge cleaning operations as close to the edge as possible without collision, thereby enabling edge cleaning operations in multiple scenarios.

[0007] An embodiment of the present application provides a control method for edge cleaning of a robot, the control method comprising: determining that the robot enters an edge state, obtaining a laser radar point cloud, a first point cloud generated by point cloud conversion processing of a cost map, and an area boundary; the cost map is obtained by summarizing environmental perception data and static map data, and the environmental perception data at least includes stereoscopic vision data and laser radar data; the area boundary is obtained by expanding an initial edge route, and the initial edge route is generated by a static map after map construction is completed, and the initial edge route is a closed point set with a certain distance between them; the laser radar point cloud, the first point cloud and the area boundary are summarized and fused to determine a fused point cloud; the fused point cloud is partitioned, and filtered according to distance rules to determine a target obstacle point cloud; according to the target obstacle point cloud, the robot is controlled to execute a corresponding edge cleaning motion strategy according to the expected edge rule.

[0008] Optionally, the environmental perception data also includes odometer data and IMU data, and the first point cloud is generated by the following steps: traversing each grid of the cost map, converting the center position of the grid whose cost value meets the preset requirements into point cloud format coordinates to obtain the first point cloud.

[0009] Optionally, converting the center position of the grid whose cost value meets the preset requirements into point cloud format coordinates to obtain the first point cloud includes: converting the center position of the grid whose cost value meets the preset requirements into point cloud format coordinates to determine the initial point cloud; straightening the points in the initial point cloud that are located in the target dynamic area calibrated according to the current position of the robot; and determining the first point cloud based on the straightened point cloud.

[0010] Optionally, the region boundary is determined by the following steps: obtaining an initial edge route; based on the robot's external dimensions, expanding the initial edge route to determine an initial edge boundary; and smoothing the initial edge boundary to determine the region boundary.

[0011] Optionally, aggregating and fusing the lidar point cloud, the first point cloud and the area boundary to determine the fused point cloud includes: aggregating the lidar point cloud, the first point cloud and the area boundary into a lidar coordinate system to determine the fused point cloud, and the lidar coordinate system is a polar coordinate system.

[0012] Optionally, the fused point cloud is partitioned and filtered according to distance rules to determine the target obstacle point cloud, including: partitioning the fused point cloud according to performance parameters of the lidar to determine at least one point cloud partition; filtering out the points closest to the robot in each point cloud partition, and determining the target obstacle point cloud based on all the filtered points.

[0013] Optionally, the robot is controlled to execute a corresponding edge cleaning motion strategy according to the target obstacle point cloud and the expected edge-adhering rule, including: adaptively adjusting the position and / or speed of the robot according to the target obstacle point cloud to control the wall side of the robot to maintain an expected edge distance with the wall to perform the edge cleaning task.

[0014] Optionally, the control method further includes: comparing the actual driving path area of ​​the robot to the current moment with the target edge path area determined according to the initial edge route to determine whether the target edge path area has been fully visited; if yes, ending the edge cleaning task;

[0015] Optionally, the control method also includes that the target edge path area is determined by the following steps: thinning the initial edge points on the initial edge route to determine multiple edge target points and the direction of each edge target point on the edge route; and expanding all edge target points according to the spacing between adjacent edge target points to determine the edge route area.

[0016] Optionally, the control method also includes: using the actual driving path area of ​​the robot to the current moment to compare with the target edge path area determined according to the initial edge route to determine whether the robot deviates from the target edge path area; if so, generating a regression route, and controlling the robot to travel along the regression route to return to the target edge path area.

[0017] Optionally, the target dynamic area is an area determined according to the current position of the robot and a preset area division rule; wherein the point cloud located in the target dynamic area is all of the initial point cloud or part of the initial point cloud.

[0018] Optionally, the fused point cloud is stored in a laser point cloud data format; wherein the stored data includes at least one of the following: point cloud range, angle interval, minimum angle, polar angle and polar distance of each point in the fused point cloud.

[0019] An embodiment of the present application also provides a control device for edge cleaning of a robot, the control device comprising: an acquisition module, used to determine whether the robot enters an edge state, obtain a laser radar point cloud, a first point cloud generated by point cloud conversion processing of a cost map, and an area boundary; a fusion module, used to aggregate and fuse the laser radar point cloud, the first point cloud and the area boundary to determine a fused point cloud; a screening module, used to partition the fused point cloud, screen it according to distance rules, and determine a target obstacle point cloud; an execution module, used to control the robot to execute a corresponding edge cleaning motion strategy according to the target obstacle point cloud and the expected edge rule.

[0020] Optionally, the control device also includes a generation module, which is used to generate a first point cloud through the following steps: traversing each grid of the cost map, converting the center position of the grid whose cost value meets preset requirements into point cloud format coordinates, and obtaining the first point cloud.

[0021] Optionally, when the generation module is used to convert the center position of the grid whose cost value meets the preset requirements into point cloud format coordinates to obtain the first point cloud, the generation module is used to: convert the center position of the grid whose cost value meets the preset requirements into point cloud format coordinates to determine the initial point cloud; straighten the points in the initial point cloud that are located in the target dynamic area calibrated according to the current position of the robot; and determine the first point cloud based on the straightened point cloud.

[0022] Optionally, the control device also includes a boundary determination module, which is used to determine the area boundary through the following steps: obtaining an initial edge route; based on the robot's external dimensions, expanding the initial edge route to determine an initial edge boundary; smoothing the initial edge boundary to determine the area boundary.

[0023] Optionally, when the fusion module is used to aggregate and fuse the lidar point cloud, the first point cloud and the area boundary to determine the fused point cloud, the fusion module is used to: aggregate the lidar point cloud, the first point cloud and the area boundary into a lidar coordinate system to determine the fused point cloud, and the lidar coordinate system is a polar coordinate system.

[0024] Optionally, when the screening module is used to partition the fused point cloud, filter according to distance rules, and determine the target obstacle point cloud, the screening module is used to: partition the fused point cloud according to the performance parameters of the lidar to determine at least one point cloud partition; filter out the points closest to the robot in each point cloud partition, and determine the target obstacle point cloud based on all the filtered points.

[0025] Optionally, when the execution module is used to control the robot to execute a corresponding edge cleaning motion strategy according to the target obstacle point cloud and the expected edge-adhering rule, the execution module is used to: adaptively adjust the position and / or speed of the robot according to the target obstacle point cloud to control the wall side of the robot to maintain the expected edge distance with the wall to perform the edge cleaning task.

[0026] Optionally, the control device also includes a first comparison module, which is used to: use the actual driving path area of ​​the robot to the current moment to compare with the target edge path area determined according to the initial edge route to determine whether the target edge path area has been fully visited; if so, end the edge cleaning task.

[0027] Optionally, the control device is also used to determine the target edge path area through the following steps: thinning the initial edge points on the initial edge route to determine multiple edge target points and the direction of each edge target point on the edge route; expanding all edge target points according to the spacing between adjacent edge target points to determine the edge route area.

[0028] Optionally, the control device also includes a second comparison module, which is used to: use the actual driving path area of ​​the robot to the current moment to compare with the target edge path area determined according to the initial edge route to determine whether the robot deviates from the target edge path area; if so, generate a regression route, and control the robot to travel along the regression route to return to the target edge path area.

[0029] An embodiment of the present application also provides a robot, comprising: a main body having a walking mechanism; a sensor, including a depth camera and a laser radar, installed on the main body and configured to detect the surrounding environment of the robot; a cleaning component for cleaning; and a processor coupled to the walking mechanism and the sensor, configured to execute the steps of the control method as described above.

[0030] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the control method described above are executed.

[0031] The embodiment of the present application provides a control method for robot edge cleaning, a robot and a storage medium, the control method comprising: determining that the robot enters an edge state, obtaining a laser radar point cloud, a first point cloud generated by point cloud conversion processing by a cost map, and an area boundary; the cost map is obtained by summarizing environmental perception data and static map data, and the environmental perception data at least includes stereoscopic vision data and laser radar data; the area boundary is obtained by expanding an initial edge route, and the initial edge route is generated by a static map after the map is built, and the initial edge route is a closed point set with a certain distance between them; the laser radar point cloud, the first point cloud and the area boundary are summarized and fused to determine a fused point cloud; the fused point cloud is partitioned, and filtered according to distance rules to determine a target obstacle point cloud; according to the target obstacle point cloud, the robot is controlled to execute a corresponding edge cleaning motion strategy according to the expected edge rule.

[0032] In this way, the determination of the target obstacle point cloud of this scheme fully considers the laser radar point cloud, the first point cloud that integrates dynamic and static data, and the adjusted regional boundary, which can achieve closer, more accurate and smoother edge-adhering. The first point cloud includes real-time data of multiple sensors (laser radar, stereo vision, odometer, IMU), which can accurately locate the obstacles detected in real time, so as to achieve accurate control of the edge-adhering distance; at the same time, the fusion of static map data can reduce the impact of sensor detection errors. Converting the cost map into point cloud data and then performing point cloud fusion can reduce the impact of the cost map grid accuracy on the edge-adhering accuracy and reduce the jamming of the robot when performing edge cleaning tasks; in addition, the introduction and processing of the regional boundary reduces the impact of the robot's inability to closely adhere to the edge due to the large gap between the virtual wall setting and the physical boundary. The closed point set reduces the amount of data processing and the real-time computing load of the robot. Smoothing can reduce the jagged edges of the regional boundary, which is conducive to improving the smoothness of the robot when running along the edge; according to the robot's external dimensions, the initial edge route is expanded and smoothed, and the regional boundary determined after the processing is more consistent with the actual area, so It can enable the robot to stick to the edge more accurately; therefore, by fusing the LiDAR point cloud with the first point cloud generated by the conversion process of the cost map and the regional boundary, a variety of dynamic and static data are fully combined, which can effectively avoid errors, improve the accuracy of the determined fused point cloud, and provide accurate data support for more precise edge control; furthermore, the fused point cloud determined by this solution is a point cloud in a polar coordinate system, which is more conducive to the precise and rapid processing and calculation of subsequent data, improving the smoothness of the robot's operation, and the target obstacle point cloud determined based on the fused point cloud is determined through partition screening, thereby improving the accuracy of the robot's posture control and achieving refined control. In summary, the technical solution of this application can effectively achieve closer, more precise and smooth edge control with higher robustness.

[0033] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 A schematic diagram of the structure of a robot provided in an embodiment of the present application;

[0036] Figure 2 A flow chart of a control method for edge cleaning of a robot provided in an embodiment of the present application;

[0037] Figure 3 A schematic diagram of a point cloud straightening processing result provided in this application;

[0038] Figure 4 A schematic diagram of a boundary smoothing processing result provided in this application;

[0039] Figure 5 A schematic diagram of a target obstacle point cloud determination process provided in this application;

[0040] Figure 6 A schematic diagram of robot posture adjustment provided in this application;

[0041] Figure 7 A schematic diagram of the structure of a control device for edge cleaning of a robot provided in an embodiment of the present application;

[0042] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0044] First, the application scenarios to which the present application is applicable are introduced. The present application is applied to the field of robots, and specifically, can be applied to the field of cleaning robots (such as household cleaning robots, commercial cleaning robots, etc.).

[0045] Cleaning robots, also commonly known as sweeping robots, automatic sweepers or smart vacuum cleaners, are a type of equipment in the field of smart home appliances. They are designed to automatically complete cleaning tasks in target areas. These robots have built-in artificial intelligence technology, can autonomously navigate and clean rooms, effectively remove dust, debris and other debris on the ground, and can also mop, wipe the floor and even automatically clean the mop, which can effectively improve cleaning efficiency and convenience. Among them, commercial cleaning robots are designed for large public places such as shopping malls, hospitals, office buildings, etc., while household cleaning robots are mainly aimed at home environments.

[0046] For example, see Figure 1 , Figure 1 This is a schematic diagram of the structure of a robot provided in an embodiment of the present application. Figure 1 As shown, the robot includes: a main body 10; a mobile chassis 20 is arranged in the main body, and the mobile chassis 20 has a walking mechanism; a sensor 30, including a depth camera 310 and a laser radar 320, is installed on the main body 10 and is configured to detect the surrounding environment of the robot; a cleaning component 40 is used for cleaning; a processor is coupled with the walking mechanism and the sensor 30, and is configured to execute a control method such as edge cleaning of the robot.

[0047] The robot also includes an automatic charging port 50, an anti-collision sensor 60 and a light strip 70, a function controller that provides user operations, a bottom-level controller for map generation and path planning, a component controller that controls a mobile unit and an environmental detection unit, and a joint calibration system.

[0048] At least one turn signal unit may be provided at the bottom of the mobile chassis 20, and each turn signal unit includes at least one turn signal; the mobile unit is provided with at least two sets of drive wheels, and each set of drive wheels is located on one side of the mobile chassis 20; the element controller controls the travel speed of the drive wheels; and controls the turn signal in the turn signal unit to light up in a preset manner when the robot turns.

[0049] Specifically, among the driving wheels provided in the mobile unit, at least one group of driving wheels is used as the left driving wheel, and at least one group of driving wheels is used as the right driving wheel, and the left driving wheel and the right driving wheel are located on opposite sides of the mobile chassis 20. Optionally, the mobile unit may further include at least two groups of driven wheels, one group of driving wheels corresponding to one group of driven wheels, wherein at least one group of driven wheels is used as the left driven wheel, and at least one group of driven wheels is used as the right driven wheel, and the left driven wheel and the right driven wheel are used to assist the left driving wheel and the right driving wheel in driving the robot housing and the mobile chassis 20 to move, thereby reducing the load pressure of the driving wheels.

[0050] The robot provided by the embodiment of the present invention can alert pedestrians by controlling the turn signal light to be lit by the component controller when the robot turns.

[0051] On the basis of the above technical solution, optionally, when the speed difference of the driving wheels on both sides of the mobile chassis 20 is greater than a preset value, the component controller controls the turn signal in the turn signal unit to light up in a preset manner.

[0052] Optionally, the robot further includes a voice module, which is electrically connected to the component controller; when the robot turns, the component controller controls the voice module to issue a voice prompt message.

[0053] The joint calibration system is arranged in the robot device, and the joint calibration system includes a laser radar 320, wherein the laser radar 320 can rotate along a set plane so that the photoelectric receiving array of the laser radar 320 forms a scanning cylinder.

[0054] For example, the laser radar 320 can be set at the slit of the robot shell, so that it is easy to send out laser signals to detect surrounding objects. The laser radar 320 includes a photoelectric receiving array and a laser emitting unit array, so that when the laser radar 320 rotates along the set plane, the photoelectric receiving array can form a scanning cylinder, thereby increasing the scanning area, facilitating the acquisition of the details of the object shape, and avoiding the robot device from colliding with obstacles. If the laser radar 320 only includes a single photoelectric receiving unit and a single laser emitting unit, the laser radar 320 can only measure the object shape of a circle after rotating along the set plane, and cannot obtain the shape of complex objects in time, which is easy to cause collisions and endanger personal and property safety. Optionally, the set plane can be a horizontal plane, which is convenient for the robot device to detect objects during movement. In addition, other set planes can be selected according to user needs, such as a vertical plane, etc., which is not limited in this embodiment.

[0055] Research has found that in the current smart home field, the application of cleaning robots has become quite popular. They have greatly reduced people's housework burden, especially floor cleaning. However, observing most sweeping robot products in the field of household cleaning, it can be found that they generally adopt a more traditional and simple and direct method in the design of edge cleaning function: that is, edge cleaning is achieved through the collision sensor on the machine.

[0056] The principle of this technology is mainly to use the collision or contact sensing device installed on the body of the sweeping robot. When the machine touches obstacles such as walls and furniture legs during operation, the sensor will receive a signal, and then the system will control the robot to change its direction of travel, usually cleaning along the edge of the obstacle. However, this method relies on physical contact to identify the boundary, so in actual operation, the sweeping robot often needs to directly collide with the object to trigger the edge cleaning mode.

[0057] In the field of commercial cleaning robots, such as office buildings and hotels, when using cleaning robots for cleaning, the robots are large in size, the environment is changeable, and there are many dynamic obstacles such as pedestrians. It is not suitable to collide with the edge, which is prone to safety accidents. Therefore, with the continuous advancement of technology, how to clean the edge as close as possible to the edge without collision is the edge cleaning solution that the industry is exploring and needs to implement.

[0058] The existing technologies usually adopt the following edge cleaning solutions: Method 1: In indoor scenarios, when the robot performs regional cleaning, the edge and coverage routes use the same planner, and the edge routes and coverage routes are sent to the local route follower for tracking in stages, and the obstacle avoidance route is avoided through A* planning (global route planner). Method 2: Simple speed interpolation tracking is performed on the edge cleaning route, and point-to-point navigation is called for obstacle avoidance when encountering obstacles.

[0059] However, for method 1, the robot positioning will have a jumping problem, which will cause the machine route to often fall on the boundary of the obstacle expansion layer of the cost map, and the route needs to be replanned. The phenomenon is that the machine frequently bypasses obstacles when following the edge and the distance from the wall is sometimes far and sometimes close. In addition, the principle of the local route follower is to stay away from obstacles as much as possible, while the requirement along the edge is to get as close to the obstacle as possible. The two are contradictory, so it is difficult to achieve close to the edge with a small interval distance under this solution.

[0060] For method 2, calling point-to-point navigation will cause high CPU usage. Point-to-point navigation has a large overhead, and frequent switching will also cause lags; the principle of point-to-point navigation is to stay away from obstacles, while along the edge you need to get close to obstacles; if the target point of point-to-point navigation is too close to the wall, it will be unreachable.

[0061] Based on this, the embodiments of the present application provide a control method, robot and storage medium for edge cleaning of a robot, which can effectively achieve edge cleaning operations as close to the edge as possible without collision, thereby enabling edge cleaning operations in multiple scenarios.

[0062] See also Figure 2 , Figure 2 This is a flow chart of a control method for edge cleaning of a robot provided in an embodiment of the present application. Figure 2 As shown in , the control method provided by the embodiment of the present application includes:

[0063] S201, determine that the robot enters the edge state, obtain the laser radar point cloud, the first point cloud generated by the point cloud conversion processing of the cost map, and the area boundary.

[0064] S202: Summarize and fuse the laser radar point cloud, the first point cloud, and the region boundary to determine a fused point cloud.

[0065] S203: partition the fused point cloud, screen it according to the distance rule, and determine the target obstacle point cloud.

[0066] S204 , according to the target obstacle point cloud, controlling the robot to execute a corresponding edge cleaning motion strategy according to a desired edge-adhering rule.

[0067] The embodiment of the present application provides a control method for edge cleaning of a robot. First, the working state of a robot that can perform edge cleaning tasks is identified in real time. When it is determined that the robot enters the edge state (i.e., the edge cleaning state), the laser radar point cloud, the first point cloud generated by the point cloud conversion processing of the cost map, and the area boundary are obtained; then, the obtained laser radar point cloud, the first point cloud, and the area boundary are summarized and fused to obtain a fused point cloud including multiple information. Then, according to the preset distance rule, the fused point cloud is partitioned and screened to determine the target obstacle point cloud (i.e., the point cloud close to the robot); finally, according to the target obstacle point cloud, the robot is controlled to execute the corresponding edge cleaning motion strategy according to the expected edge-adhering rule to achieve the cleaning work of adhering to the edge but without collision.

[0068] In this way, the fusion of the real-time acquired lidar data and the first point cloud is more conducive to edge adhesion, and when executing the edge cleaning motion strategy, it is executed according to the expected edge adhesion rules, thereby effectively avoiding collisions. Therefore, the technical solution provided in this application can effectively realize edge cleaning work as close to the edge as possible without collision.

[0069] Here, it should be noted that taking the LiDAR data separately is more conducive to wall-adhering because the positioning algorithm will match the static map according to the laser shape to obtain the current position of the robot. However, due to the low accuracy of the static map grid when building the map (such as 10cm), there will be an error of about 10cm in positioning. This error will appear on the cost map when adhering to the edge, and the static map will appear to be closer to the machine than the laser. In this way, the robot actually adheres to the edge in the algorithm, but it does not appear to be adhering to the edge. Taking the LiDAR point cloud data separately and fusing it with the cost map point cloud and the area boundary can effectively avoid this error, which is more conducive to adhering to the edge.

[0070] For step S201, the robot may be a cleaning robot, and when determining that the robot enters the edge state, it may specifically include: after receiving the area cleaning task, the robot moves to the starting point of the area to be cleaned and enters the edge state. The edge state may specifically be the edge cleaning state.

[0071] When the robot moves toward the starting point of the area to be cleaned, it can use point-to-point navigation technology to move.

[0072] Continuing with step S201, the cost map is obtained by summarizing the environmental perception data and the static map data, wherein the environmental perception data includes at least stereoscopic vision data and lidar data; the area boundary is obtained by expanding the initial edge route, and the initial edge route is generated by the static map after the map is built, and the initial edge route is a set of closed points spaced at a certain distance.

[0073] For example, the laser radar point cloud may be collected by a laser radar provided on the robot.

[0074] The cost map is a two-dimensional or three-dimensional map including all or part of the environmental information in the cleaning area, and the cost map at least incorporates stereoscopic vision data collected by a depth camera on the robot.

[0075] The area boundary is the boundary of the area to be cleaned when the robot performs this cleaning task.

[0076] With respect to step S201, the environmental perception data further includes odometer data and IMU data. In one implementation provided in the present application, a first point cloud is generated by the following steps:

[0077] S301, traversing each grid of the cost map, converting the center position of the grid whose cost value meets the preset requirements into point cloud format coordinates to obtain a first point cloud.

[0078] In summary, the environmental perception data may include one or more of stereo vision data, lidar data, odometer data, inertial measurement data, etc.

[0079] Here, the environmental perception data may be real-time or dynamic, and is collected by a variety of sensors installed on the cleaning robot (such as laser radar, depth camera, inertial measurement unit, odometer, etc.), which reflect the state of the current environment.

[0080] Static map data: Compared with environmental perception data, static map data is pre-made and stored, and can be obtained when the robot builds a map. It can contain information that does not change frequently, such as elevators, tables and chairs, gates, fixed ornaments, etc. Among them, the static map data may include wall data and no-scanning area information. Wall data can be obtained by scanning the wall with a sensor, and the no-scanning area can be set manually.

[0081] Exemplarily, the cost map is an enhanced map representation method, in which a plurality of grids are included, and each grid may correspond to a cost value. For example, it is assumed that the cost map in this solution includes a 200*200 grid, and each grid corresponds to a cost value.

[0082] For step S301, in this step, each grid in the cost map is identified in real time, the cost value of each grid is determined, and the grid whose cost value meets the requirements is extracted and determined as the target grid; for each target grid, coordinate conversion processing is performed according to the center position of the grid and converted into point cloud format coordinates; and the first point cloud is determined based on the converted point cloud.

[0083] Here, when selecting grids whose cost values ​​meet preset requirements, a cost value threshold may be preset.

[0084] By way of example, the implementation process of step S301 is explained through the following content: traverse the 200*200 grid of the cost map, determine the grid with a cost value equal to 100 (equal to 100 represents an obstacle) as the target grid, obtain the center position of each grid, and convert it into coordinates in Cartesian point cloud format.

[0085] In this way, because the cost map is rasterized, jagged edges will appear. When the robot performs edge cleaning tasks based on the cost map, the machine will be farther away from the wall and there will be problems such as lag. By converting the cost map into a point cloud, such problems can be effectively avoided, thereby improving work efficiency and result accuracy.

[0086] With respect to step S301, in an implementation manner provided in the present application, converting the center position of the grid whose cost value meets the preset requirements into point cloud format coordinates to obtain the first point cloud includes:

[0087] S3011, converting the center position of the grid whose cost value meets the preset requirements into point cloud format coordinates to determine the initial point cloud.

[0088] S3012, straightening the points in the initial point cloud that are located in the target dynamic area calibrated according to the current position of the robot.

[0089] S3013. Determine a first point cloud based on the straightened point cloud.

[0090] For step S3011, for example, the pixel center position of the grid whose cost value meets the preset requirement is converted into a point cloud in a Cartesian coordinate system; and an initial point cloud is determined based on the converted point cloud.

[0091] With respect to step S3012, the target dynamic area is an area determined according to the current position of the robot and a preset area division rule.

[0092] The point cloud located in the target dynamic area may be all of the initial point cloud or part of the initial point cloud. Exemplarily, the target dynamic area may be determined according to the edge side and edge distance of the robot.

[0093] When straightening the initial point cloud in the target dynamic region, the following processing means may be used as an example: fitting the initial point cloud in the target dynamic region.

[0094] With respect to step S2013, the point cloud located in the target area after the straightening process is determined as the first point cloud.

[0095] Here, the first point cloud and the lidar point cloud are determined in real time according to the collection cycle or action position of the robot.

[0096] For examples, see Figure 3 , Figure 3 This is a schematic diagram of a point cloud straightening processing result provided in this application. Figure 3 As shown in the figure, the triangle represents the robot, and the rectangular area is the target dynamic area that moves with the robot when the robot is cleaning along the left side. Figure 3 The left side in the middle is the initial point cloud before point cloud straightening. Figure 3 The middle right picture is the first point cloud determined after point cloud straightening processing.

[0097] In this way, since the initial point cloud is determined based on the center coordinates of the target grid in the cost map, the determined initial point cloud may be scattered and discontinuous, and there may also be some error point clouds. By setting the target dynamic area and straightening the initial point cloud in the target dynamic area, some redundant point clouds can be deleted, thereby reducing the amount of subsequent data processing and improving the accuracy of the processing results. The first point cloud after straightening can effectively avoid subsequent robot movement jams and further improve the robot's wall distance.

[0098] Continuing with step S201, in one implementation provided in the present application, the region boundary is determined by the following steps:

[0099] S401, obtaining an initial edge route.

[0100] S402: Based on the outer dimensions of the robot, the initial edge route is expanded to determine an initial edge boundary.

[0101] S403: Smoothing the initial edge boundary to determine the region boundary.

[0102] With respect to step S401, the initial edge route is the edge route of the area to be cleaned acquired after the robot enters the edge state.

[0103] Here, the initial route along the edge may be a set of closed points spaced at a certain distance; for example, the initial route along the edge is a set of closed points spaced at 0.1 m.

[0104] The initial edge route may be generated by a static map after the map is built. For example, it may be determined by retracting the boundary of the clean area in the static map by a certain distance; for example, the initial edge route is obtained by retracting the clean area by about 20 cm.

[0105] With respect to step S402, the outward expansion size is determined according to the outer dimensions of the robot, and the initial edge route is outward expanded according to the determined outward expansion size to determine the initial edge boundary.

[0106] For example, assuming that the robot has a width of 40 cm, the outer extension dimension is determined to be 40 cm, and the initial edge boundary is determined by expanding the initial edge route by 40 cm. In order to reduce the amount of data, the contour of the cleaning area is not used, but the edge route expansion is directly used.

[0107] With respect to step S403, when the initial smoothing process is performed along the edge, it may include but is not limited to: filtering smoothing process and Gaussian smoothing process.

[0108] Here, when cleaning the edges of a certain area, it is sufficient to determine the area boundary once.

[0109] In this example, the initial edge boundary is generally generated using a grid map, which usually results in jagged edges. Smoothing the generated initial edge boundary can remove the jagged edges, thereby making the determined area boundary smooth, thereby effectively ensuring that the robot does not experience lag when moving along the edge. Generating the area boundary can also effectively monitor the robot's range of motion.

[0110] For examples, see Figure 4 , Figure 4 This is a schematic diagram of a boundary smoothing result provided by this application. Figure 4 As shown, Figure 4 The left side in the middle is the initial edge boundary determined before smoothing. Figure 4 The middle right side is the area boundary determined after smoothing. In this way, according to the determined smooth area boundary, the robot can effectively avoid jamming when walking along the area boundary, which not only improves the cleaning efficiency but also protects the service life of the machine.

[0111] With respect to step S202, in an implementation manner provided in the present application, the step of aggregating and fusing the laser radar point cloud, the first point cloud, and the region boundary to determine a fused point cloud includes: aggregating the laser radar point cloud, the first point cloud, and the region boundary into a laser radar coordinate system to determine the fused point cloud;

[0112] Here, the laser radar coordinate system is a polar coordinate system.

[0113] Among them, according to the TF coordinate conversion processing, the laser radar point cloud, the first point cloud and the area boundary can be summarized into the laser radar coordinate system to determine the fused point cloud.

[0114] In this example, the fused point cloud in polar coordinates is obtained because in polar coordinates, the length can be obtained based on the distance from the point to the origin, and the angle can be obtained based on the inverse tangent, which is beneficial for subsequent data processing, such as removing jagged edges and obtaining precise positions. The laser data format can be merged with real-time laser data (laser is recorded in polar coordinates, and the point closest to the robot is used to replace the distance corresponding to the current angle) because laser is a polar coordinate system, which is also a type of point cloud, but the coordinate format is different from that of the Cartesian coordinate system. Data in the polar coordinate system only needs to traverse the angle, which is more convenient for calculation.

[0115] In this way, the determination of the target obstacle point cloud of this scheme fully considers the laser radar point cloud, the first point cloud that integrates dynamic and static data, and the adjusted regional boundary, which can achieve closer, more accurate and smoother edge-adhering. The first point cloud includes real-time data of multiple sensors (laser radar, stereo vision, odometer, IMU), which can accurately locate the obstacles detected in real time, so as to achieve accurate control of the edge-adhering distance; at the same time, the fusion of static map data can reduce the impact of sensor detection errors. Converting the cost map into point cloud data and then performing point cloud fusion can reduce the impact of the cost map grid accuracy on the edge-adhering accuracy and reduce the jamming of the robot when performing edge cleaning tasks; in addition, the introduction and processing of the regional boundary reduces the impact of the robot's inability to closely adhere to the edge due to the large gap between the virtual wall setting and the physical boundary. The closed point set reduces the amount of data processing and the real-time computing load of the robot. Smoothing can reduce the jagged edges of the regional boundary, which is conducive to improving the smoothness of the robot when running along the edge; according to the robot's external dimensions, the initial edge route is expanded and smoothed, and the regional boundary determined after the processing is more consistent with the actual area, so It can enable the robot to stick to the edge more accurately; therefore, by fusing the LiDAR point cloud with the first point cloud generated by the conversion process of the cost map and the regional boundary, a variety of dynamic and static data are fully combined, which can effectively avoid errors, improve the accuracy of the determined fused point cloud, and provide accurate data support for more precise edge control; furthermore, the fused point cloud determined by this solution is a point cloud in a polar coordinate system, which is more conducive to the precise and rapid processing and calculation of subsequent data, improving the smoothness of the robot's operation, and the target obstacle point cloud determined based on the fused point cloud is determined through partition screening, thereby improving the accuracy of the robot's posture control and achieving refined control. In summary, the technical solution of this application can effectively achieve closer, more precise and smooth edge control with higher robustness.

[0116] For step S203, in this step, the fused point cloud is divided into at least one point cloud sub-area; for each point cloud sub-area, according to the distance rule, the points in the point cloud sub-area that meet the requirements are screened out as target obstacle points, and at least one target obstacle point is obtained; based on all the target obstacle points, a target obstacle point cloud is obtained.

[0117] Here, the distance rule may be a rule of being closest to the robot.

[0118] With respect to step S203, in an implementation manner provided in the present application, the step of partitioning the fused point cloud and screening according to a distance rule to determine the target obstacle point cloud includes:

[0119] S2031. Partition the fused point cloud according to performance parameters of the laser radar to determine at least one point cloud partition.

[0120] S2032: Filter out the points closest to the robot in each point cloud partition, and determine the target obstacle point cloud based on all the filtered points.

[0121] For step S2031, for example, the performance parameter may include at least one of the following: sensing range, functional partition, and distance partition. In addition, the performance parameter may also include other parameters, which are not limited here.

[0122] Continuing with step S2031, for example, the fused point cloud is partitioned according to the performance parameters of the laser radar to determine at least one point cloud partition, including: according to the perception range of the laser radar, the fused point cloud is partitioned at preset interval angles to determine at least one point cloud partition.

[0123] The preset interval angle can be determined according to the angle interval value in the data storage format of the fused point cloud, which can facilitate data traversal and improve data processing speed.

[0124] Here, when the fused point cloud is stored in a laser point cloud data format, the stored data includes at least one of the following: point cloud range, angle interval, minimum angle, polar angle and polar distance of each point in the fused point cloud. Here, the polar distance of each point in the fused point cloud is the distance between the point and the robot.

[0125] Among them, in the laser point cloud data format, the point cloud range, angle interval, minimum angle, polar angle and polar distance of each point in the fused point cloud have corresponding identification characters or parameters, which can be easily searched.

[0126] For example, when the fused point cloud is partitioned according to the preset interval angles based on the perception range of the lidar, the value corresponding to angle_min can be found in the stored data packet, and the minimum angle can be determined. Then, starting from the minimum angle, n angle_increment (angle interval) can be added to obtain a point cloud partition. By analogy, at least one point cloud partition can be determined.

[0127] With respect to step S2032, for each point cloud partition containing the fused point cloud, the distance between each point in the point cloud partition and the robot is calculated, the point with the closest distance is screened out, and the target obstacle point cloud is determined based on all the screened out points.

[0128] Here, because the fused point cloud is a point cloud in polar coordinates, the angle information and distance information of each point are stored. For all points in each point cloud partition, the minimum distance value is checked, and the point corresponding to the minimum distance value is determined as the point closest to the robot in the point cloud partition.

[0129] For examples, see Figure 5 , Figure 5 A schematic diagram of the target obstacle point cloud determination process provided in this application. Figure 5 As shown in the figure, according to the performance parameters of the laser radar (perception range and / or functional partition and / or distance partition), three point cloud partitions (first partition, second partition, and third partition) are divided; the distance between the points in each point cloud partition and the robot is calculated respectively (the figure does not show all the points included in each point cloud partition), and the closest point to the robot is selected, assuming that point A, point B, and point C are determined; finally, the target obstacle point cloud is determined based on the determined points A, B, and C. After the target obstacle point cloud is determined, the distance between each obstacle point and the robot is also determined based on the coordinate information of the included obstacle points.

[0130] When cleaning along the left edge, point A is the closest point and angle to the left edge of the robot, and point B is the closest point and angle when the robot is rotating. The function of point B is to determine whether the robot can rotate according to the position information of the obstacle on the right side when the robot rotates during movement.

[0131] In this way, by partitioning the fused point cloud and screening out the obstacle points closest to the robot in each area, the target obstacle point cloud is obtained, thereby improving the accuracy of the robot's posture control and achieving refined control.

[0132] Regarding step S204, the expected edge-adjacent rule defines an expected edge-adjacent distance.

[0133] In this step, the target driving parameters of the robot are determined according to the target obstacle point cloud and the expected edge distance specified in the expected edge rule, and the robot is controlled to execute the corresponding edge cleaning motion strategy according to the target driving parameters.

[0134] Here, when determining the target driving parameters of the robot according to the target obstacle point cloud, the target driving parameters of the robot are determined according to the distance and angle information between each point in the target obstacle point cloud and the robot and the expected edge distance specified in the expected edge rule.

[0135] For example, the edge cleaning motion strategy may include a path tracking cleaning strategy and an edge cleaning strategy.

[0136] For step S204, in one embodiment provided in the present application, the robot is controlled to execute a corresponding edge cleaning motion strategy according to the target obstacle point cloud and the expected edge-adhering rule, including: according to the target obstacle point cloud, the posture and / or speed of the robot is adaptively adjusted to control the wall side of the robot to maintain the expected edge distance with the wall to perform the edge cleaning task.

[0137] Here, according to the target obstacle point cloud, the position and / or speed of the robot is adaptively adjusted to control the robot to be at a desired edge distance (for example, 2 to 5 cm, or smaller or larger, depending on the actual situation) from the obstacle (such as a wall), and not to collide with the inner obstacle when rotating, so as to control the robot to perform edge cleaning tasks.

[0138] As the robot moves along the edge, the acquisition of the target obstacle point cloud is ongoing to ensure that the robot moves along the edge in real time.

[0139] The speed may include linear speed and angular speed. The linear speed may be controlled according to the distance from the obstacle. The angular speed may be adjusted to control the direction of the robot so that the machine moves away from or close to the obstacle. Based on the desired angular speed, the edge distance is adjusted by adjusting the robot's traveling posture, so as to achieve the desired edge distance and desired posture, thereby ensuring the stability of the target posture output. Specifically, the angular speed and linear speed of the robot may be adjusted by the PID algorithm so that the robot's posture is adjusted to be parallel to the target obstacle point cloud.

[0140] In addition, during the robot's edge cleaning process, its driving speed needs to be constrained (the maximum speed and minimum speed can be set) to ensure the robot's movement safety.

[0141] For examples, see Figure 6 , Figure 6 A schematic diagram of robot posture adjustment provided in this application. Figure 6As shown, Figure 6 The left side shows the process of the robot identifying obstacles in real time during movement and determining the point closest to the obstacle. And according to the closest distance and the expected edge rule, it determines whether to adjust the posture. When necessary, as shown in the right figure, the posture is adjusted from the posture shown by the dotted coordinates to the posture shown by the solid coordinates.

[0142] Among them, the robot's posture and even driving parameters such as speed and angle can be adjusted through the PID algorithm.

[0143] In this way, the robot's driving parameters (position and / or speed) are adjusted according to the position information of the nearest obstacles in all directions around it, so that the robot can maintain a certain safe distance from obstacles in multiple directions around it during the cleaning process to prevent collisions and damage to the robot. Therefore, it is possible to achieve edge cleaning without collision and as close to the edge as possible.

[0144] Optionally, in another implementation manner provided in the present application, the control method further includes:

[0145] S501, using the actual driving path area of ​​the robot to the current moment to compare with the target edge path area determined according to the initial edge route, to determine whether the target edge path area has been fully visited.

[0146] S502: If all visits have been completed, the edge cleaning task is terminated.

[0147] For step S501, the actual driving path area of ​​the robot is obtained in real time, and after each acquisition, the actual driving path area is compared with the target edge path area to determine the overlap between the two, and based on the overlap, it is determined whether the target robot has completed the visit to the target edge path area.

[0148] Here, when comparing the actual driving path area with the target edge path area, each time a edge target point is passed, the state of the edge target point can be changed, for example, the corresponding value (such as 1) can be changed to another value (such as 2), or the edge target point can be lit.

[0149] With respect to step S501, in one implementation manner provided in the present application, the target edge path area is determined by the following steps:

[0150] S601: Perform a thinning process on the initial edge points on the initial edge route to determine a plurality of edge target points and the direction of each edge target point on the edge route.

[0151] S602: Perform expansion processing on all the target points along the edge according to the distances between adjacent target points along the edge, and determine the route area along the edge.

[0152] For step S601, the initial edge points on the initial edge route are thinned to determine multiple edge target points, including: starting from the starting point on the initial edge route, along the direction of the initial edge route, one initial edge point is selected as the edge target point every N (for example, 3) points, to obtain multiple edge target points.

[0153] When determining the direction of each edge target point on the edge route, specifically: determine the direction from the current edge target point to the next edge target point as the direction of the edge target point on the edge route.

[0154] With respect to step S602, an expansion size is determined according to the spacing between adjacent edge target points; all edge target points are expanded along the direction of the edge target points on the edge route according to the determined expansion size to determine the edge route area.

[0155] For example, assuming that the distance between adjacent edge target points is 50 cm, and the expansion size is determined to be 50 cm, the determined edge route area is the expansion area obtained by expanding each edge target point by 50 cm.

[0156] In this example, through route thinning processing, multiple edge target points are determined, and the edge route area is determined based on collision processing of the edge target points, so that the robot can know the current edge position when it is along the edge, and can also be used to end the task (visit the last edge target point in the edge route area) and return to the route after leaving the route. In this way, the execution progress of the edge cleaning task can be determined in real time to avoid repeated execution of edge cleaning.

[0157] With respect to step S502, when the overlap between the actual driving path area and the target edge path area is 100%, or reaches a preset threshold, it is determined that the edge cleaning task is completed, and an end operation is performed.

[0158] For example, the user can be notified through the APP or voice module to complete the edge cleaning task.

[0159] Optionally, in another implementation manner provided in the present application, the control method further includes:

[0160] S701: compare the actual driving path area of ​​the robot to the current moment with the target edge path area determined according to the initial edge route to determine whether the robot deviates from the target edge path area.

[0161] S702: If yes, generate a regression route, and control the robot to travel along the regression route to return to the target edge path area.

[0162] In this embodiment, during the entire edge cleaning process of the robot, real-time detection is performed to determine whether the robot is in the target edge path area. If it is detected that the robot deviates from the target edge path area, the robot is controlled to execute a path tracking strategy, and a regression route is generated according to the known map navigation, and the robot is controlled to move to the target edge path area according to the regression route.

[0163] Among them, the reason why the robot deviates from the target edge path area may be because an obstacle suddenly appears and the robot performs an obstacle avoidance operation.

[0164] In this way, by performing obstacle avoidance identification, a regression route is generated according to obstacle information and target edge path area information, and the robot is controlled to travel along the regression route to return to the target edge path area. This ensures that the robot returns to the target route in time when it deviates, thereby ensuring the completion of the edge cleaning task.

[0165] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of a control device for edge cleaning of a robot provided in an embodiment of the present application. Figure 7 As shown, the control device 600 includes:

[0166] The acquisition module 610 is used to determine that the robot enters the edge state, obtain the laser radar point cloud, the first point cloud generated by the cost map through point cloud conversion processing, and the area boundary; the cost map is obtained by summarizing the environmental perception data and the static map data, and the environmental perception data at least includes stereoscopic vision data and laser radar data; the area boundary is obtained by expanding the initial edge route, and the initial edge route is generated by the static map after the map is built, and the initial edge route is a closed point set with a certain distance between them;

[0167] A fusion module 620 is used to aggregate and fuse the laser radar point cloud, the first point cloud and the region boundary to determine a fused point cloud;

[0168] A screening module 630 is used to partition the fused point cloud, screen it according to the distance rule, and determine the target obstacle point cloud;

[0169] The execution module 640 is used to control the robot to execute a corresponding edge cleaning motion strategy according to the target obstacle point cloud and the expected edge-adhering rule.

[0170] Optionally, the environmental perception data further includes odometer data and IMU data, and the control device 600 further includes a generation module 650 (not shown in the figure), and the generation module 650 (not shown in the figure) is used to generate a first point cloud through the following steps:

[0171] Each grid of the cost map is traversed, and the center position of the grid whose cost value meets the preset requirements is converted into point cloud format coordinates to obtain a first point cloud.

[0172] Optionally, when the generating module 650 (not shown in the figure) is used to convert the center position of the grid whose cost value meets the preset requirements into point cloud format coordinates to obtain the first point cloud, the generating module 650 (not shown in the figure) is used to:

[0173] The center position of the grid whose cost value meets the preset requirements is converted into point cloud format coordinates to determine the initial point cloud;

[0174] Straighten the points in the initial point cloud that are located in the target dynamic area calibrated according to the current position of the robot;

[0175] According to the straightened point cloud, a first point cloud is determined.

[0176] Optionally, the control device 600 further includes a boundary determination module 660 (not shown in the figure), and the boundary determination module 660 is used to determine the region boundary through the following steps:

[0177] Get the initial edge route;

[0178] Based on the robot's external dimensions, the initial edge route is expanded to determine an initial edge boundary;

[0179] The initial edge boundary is smoothed to determine the region boundary.

[0180] Optionally, when the fusion module 620 is used to aggregate and fuse the laser radar point cloud, the first point cloud, and the region boundary to determine a fused point cloud, the fusion module 620 is used to:

[0181] The laser radar point cloud, the first point cloud and the area boundary are aggregated into a laser radar coordinate system to determine the fused point cloud, and the laser radar coordinate system is a polar coordinate system.

[0182] Optionally, when the screening module 630 is used to partition the fused point cloud, screen according to the distance rule, and determine the target obstacle point cloud, the screening module 630 is used to:

[0183] Partitioning the fused point cloud according to the performance parameters of the laser radar to determine at least one point cloud partition;

[0184] The points closest to the robot in each point cloud partition are screened out, and the target obstacle point cloud is determined based on all the screened points.

[0185] Optionally, when the execution module 640 is used to control the robot to execute a corresponding edge cleaning motion strategy according to the target obstacle point cloud and the expected edge-adhering rule, the execution module 640 is used to:

[0186] According to the target obstacle point cloud, the position and / or speed of the robot is adaptively adjusted to control the wall side of the robot to maintain a desired edge distance with the wall to perform the edge cleaning task.

[0187] Optionally, the control device 600 further includes a first comparison module 670 (not shown in the figure), and the first comparison module 670 (not shown in the figure) is used to:

[0188] Compare the actual driving path area of ​​the robot to the current moment with the target path area along the edge determined according to the initial path along the edge to determine whether the target path area along the edge has been fully visited;

[0189] If yes, end the edge cleaning task.

[0190] Optionally, the control device is further configured to determine the target edge path area through the following steps:

[0191] Performing a sparse processing on the initial edge points on the initial edge route to determine a plurality of edge target points and a direction of each edge target point on the edge route;

[0192] According to the distance between adjacent edge target points, all edge target points are expanded to determine the edge route area.

[0193] Optionally, the control device 600 further includes a second comparison module 680 (not shown in the figure), and the second comparison module 680 (not shown in the figure) is used to:

[0194] Compare the actual driving path area of ​​the robot to the current moment with the target side path area determined according to the initial side route to determine whether the robot deviates from the target side path area;

[0195] If yes, a regression route is generated, and the robot is controlled to travel along the regression route to return to the target edge path area.

[0196] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 As shown in , the electronic device 700 includes a processor 710 , a memory 720 and a bus 730 .

[0197] The memory 720 stores machine-readable instructions executable by the processor 710. When the electronic device 700 is running, the processor 710 communicates with the memory 720 via the bus 730. When the machine-readable instructions are executed by the processor 710, the above-mentioned Figures 2 to 6 The specific implementation of the steps in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0198] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figures 2 to 6 The specific implementation of the steps in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0199] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

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

[0201] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0202] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0203] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0204] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A control method for edge cleaning of a robot, It is characterized in that The control method comprises: Determine that the robot enters the edge state, obtain the laser radar point cloud, the first point cloud generated by the cost map through point cloud conversion processing, and the area boundary; the cost map is obtained by summarizing the environmental perception data and the static map data, and the environmental perception data at least includes stereoscopic vision data and laser radar data; the area boundary is obtained by expanding the initial edge route, and the initial edge route is generated by the static map after the map is built, and the initial edge route is a closed point set with a certain distance between them; Summarizing and fusing the laser radar point cloud, the first point cloud, and the region boundary to determine a fused point cloud; Partitioning the fused point cloud, screening it according to the distance rule, and determining the target obstacle point cloud; According to the target obstacle point cloud, the robot is controlled to execute a corresponding edge cleaning motion strategy according to the expected edge-adhering rule; The environmental perception data also includes odometer data and IMU data, and a first point cloud is generated by the following steps: traversing each grid of the cost map, converting the center position of the grid whose cost value meets the preset requirements into point cloud format coordinates to obtain a first point cloud; The region boundary is determined by the following steps: obtaining an initial edge route; based on the robot's external dimensions, performing an outward expansion process on the initial edge route to determine an initial edge boundary; and performing a smoothing process on the initial edge boundary to determine a region boundary; The aggregating and fusing the laser radar point cloud, the first point cloud and the area boundary to determine the fused point cloud includes: aggregating the laser radar point cloud, the first point cloud and the area boundary into a laser radar coordinate system to determine the fused point cloud, and the laser radar coordinate system is a polar coordinate system.

2. The control method according to claim 1, It is characterized in that The step of converting the center position of the grid whose cost value meets the preset requirements into point cloud format coordinates to obtain the first point cloud includes: The center position of the grid whose cost value meets the preset requirements is converted into point cloud format coordinates to determine the initial point cloud; Straighten the points in the initial point cloud that are located in the target dynamic area calibrated according to the current position of the robot; According to the straightened point cloud, a first point cloud is determined.

3. The control method according to claim 1, It is characterized in that Partitioning the fused point cloud, screening according to distance rules, and determining the target obstacle point cloud includes: Partitioning the fused point cloud according to the performance parameters of the laser radar to determine at least one point cloud partition; The points closest to the robot in each point cloud partition are screened out, and the target obstacle point cloud is determined based on all the screened points.

4. The control method according to claim 1, It is characterized in that The step of controlling the robot to execute a corresponding edge cleaning motion strategy according to the target obstacle point cloud and the expected edge-adhering rule includes: According to the target obstacle point cloud, the position and / or speed of the robot is adaptively adjusted to control the wall side of the robot to maintain a desired edge distance with the wall to perform the edge cleaning task.

5. The control method according to claim 1, It is characterized in that The control method further comprises: Compare the actual driving path area of ​​the robot to the current moment with the target path area along the edge determined according to the initial path along the edge to determine whether the target path area along the edge has been fully visited; If yes, end the edge cleaning task.

6. The control method according to claim 5, It is characterized in that The target edge path area is determined by the following steps: Performing a sparse processing on the initial edge points on the initial edge route to determine a plurality of edge target points and a direction of each edge target point on the edge route; According to the distance between adjacent edge target points, all edge target points are expanded to determine the edge route area.

7. The control method according to claim 2, It is characterized in that The target dynamic area is an area determined according to the current position of the robot and a preset area division rule; wherein the point cloud located in the target dynamic area is all or part of the initial point cloud.

8. The control method according to claim 1, It is characterized in that The fused point cloud is stored in a laser point cloud data format; wherein the stored data includes at least one of the following: point cloud range, angle interval, minimum angle, polar angle and polar distance of each point in the fused point cloud.

9. A robot, It is characterized in that include: A main body having a walking mechanism; a sensor including a depth camera and a laser radar, mounted on the main body and configured to detect the surrounding environment of the robot; Cleaning parts, for cleaning; A processor, coupled to the walking mechanism and the sensor, is configured to execute the control method as described in any one of claims 1-8.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the control method according to any one of claims 1 to 8 are executed.