Cleaning obstacle avoidance method, device, electronic equipment and storage medium

By using a dynamic path planning method based on maps and obstacle mark information in the sweeper, combined with data and real-time information from the previous cleaning task, the problem of the small detection range and hysteresis of the ultrasonic sensor is solved, and efficient and accurate obstacle detection is achieved avoidance, improving cleaning efficiency and carpet protection.

CN114869175BActive Publication Date: 2024-09-20MIDEA ROBOZONE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210589989.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-26
Publication Date
2024-09-20
Estimated Expiration
2042-05-26

AI Technical Summary

Technical Problem

When the existing sweeper detects carpets in mopping mode, the ultrasonic sensor has high detection accuracy but a small range and hysteresis, resulting in reduced cleaning effect and efficiency, and it is easy to contaminate the carpet.

Method used

A path planning method based on maps and obstacle mark information is used, combined with data and real-time information from the previous cleaning task, to dynamically adjust the cleaning path to avoid obstacles, improve obstacle avoidance efficiency, and update obstacle information in a timely manner.

Benefits of technology

It achieves effective avoidance of obstacles without repeated trials, improves cleaning efficiency and accuracy, reduces the risk of carpet contamination, and adapts to changes in the cleaning environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114869175B
    Figure CN114869175B
Patent Text Reader

Abstract

The present invention relates to the technical field of smart home appliances, and provides a cleaning obstacle avoidance method, device, electronic device and storage medium. The method includes: performing path planning based on a map and first obstacle marking information of the map to determine a first cleaning path; traveling based on the first cleaning path and determining real-time information of the first obstacle marking information; determining a second cleaning path based on the real-time information of the first obstacle marking information and continuing to travel based on the second cleaning path. The present invention can effectively avoid obstacles and guide the route forward when the first obstacle marking information is not updated, without the need to repeatedly try to avoid obstacles that have been encountered during the last work and whose positions have not changed, thereby improving the efficiency of obstacle avoidance. It is also possible to use the real-time information of the first obstacle marking information during the current work to re-try when it is recognized that the position of the obstacle has changed, thereby achieving timely updating of the obstacle information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart home appliances, and in particular to a cleaning obstacle avoidance method, device, electronic equipment and storage medium. Background Art

[0002] With the rapid development of the sweeping robot industry in recent years, sweeping robots are facing more and more complex scenarios, such as carpet scenarios in mopping mode. In mopping mode, the rag will be wet and contaminated. In order to avoid the rag contaminating the carpet during the cleaning process, avoiding the carpet in mopping mode is a mainstream treatment method.

[0003] The mainstream carpet detection method now is ultrasonic sensors. Ultrasonic sensors have high detection accuracy, but a small detection range and hysteresis, which greatly reduces the cleaning effect and efficiency and easily contaminates the carpet. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the related art. To this end, the present invention proposes a cleaning obstacle avoidance method, which breaks the limitations of traditional obstacle avoidance methods. Each cleaning process can use the information stored in the previous cleaning to avoid obstacles, and can detect the location update information of obstacles to achieve real-time and efficient obstacle avoidance.

[0005] The invention also provides an obstacle avoidance device.

[0006] The invention also provides an electronic device.

[0007] The present invention also provides a non-transitory computer-readable storage medium.

[0008] The cleaning obstacle avoidance method according to the first aspect of the present invention includes:

[0009] Performing path planning based on the map and first obstacle marking information of the map to determine a first cleaning path;

[0010] traveling based on the first cleaning path and determining real-time information of the first obstacle marking information;

[0011] Based on the real-time information of the first obstacle mark information, a second cleaning path is determined and the process continues based on the second cleaning path.

[0012] According to the cleaning obstacle avoidance method of the embodiment of the present invention, the first cleaning path is determined by the preset map and the first obstacle mark information updated during the last operation. The first cleaning path can effectively avoid obstacles and guide the forward route when the first obstacle mark information is not updated. There is no need to repeatedly try to avoid obstacles that have been encountered during the last operation and whose positions have not changed, thereby improving the efficiency of obstacle avoidance. At the same time, the real-time information of the first obstacle mark information during the last operation can be used to re-try to obtain the shape of the obstacle when the position of the obstacle is identified to change, thereby determining the second cleaning path as the forward route, thereby achieving timely update of obstacle information and timely avoidance of obstacles.

[0013] According to an embodiment of the present invention, the performing of path planning based on a map and first obstacle marking information on the map further includes:

[0014] The first obstacle mark information is determined based on data collected during a previous travel, wherein the first obstacle mark information includes obstacle coordinate information and obstacle shape information.

[0015] According to the cleaning obstacle avoidance method of an embodiment of the present invention, before executing the current cleaning task, the data collected during the previous trip will be identified and the first obstacle mark information will be marked on the map. When the execution subject executes the current cleaning task, the path will be planned according to the first obstacle mark information to avoid the position included in the first obstacle mark information, thereby ensuring thorough cleaning and complete avoidance of obstacle markers.

[0016] According to an embodiment of the present invention, determining the second cleaning path based on the real-time information of the first obstacle mark information includes:

[0017] Determining that the real-time information of the first obstacle marking information includes obstacle displacement information;

[0018] Determining an updated path based on the obstacle displacement information;

[0019] Based on the updated path, a second cleaning path is determined.

[0020] According to the cleaning obstacle avoidance method of an embodiment of the present invention, the identified real-time information shows that the first obstacle mark information contains displacement information, indicating that the position of the obstacle has moved or the obstacle has changed. At this time, it is necessary to re-plan the travel path of the cleaning task to achieve timely update of obstacle information to provide the most accurate and efficient cleaning route.

[0021] According to an embodiment of the present invention, the planning based on the obstacle displacement information includes:

[0022] Identifying the obstacle displacement information and determining updated first obstacle mark information;

[0023] Planning is performed based on the updated first obstacle marking information to determine the updated path.

[0024] According to an embodiment of the present invention, the planning based on the updated first obstacle marking information to determine the update path includes:

[0025] Based on the updated first obstacle mark information, determining updated obstacle coordinate information and updated obstacle shape information;

[0026] The updated path is determined based on the updated obstacle coordinate information, the updated obstacle shape information, and the first distance, wherein the first distance is a minimum distance for avoiding obstacles.

[0027] According to an embodiment of the present invention, determining the second cleaning path based on the real-time information of the first obstacle mark information further includes:

[0028] Determining that the real-time information of the first obstacle marking information does not include obstacle displacement information;

[0029] The second cleaning path is determined to be the first cleaning path.

[0030] According to an embodiment of the present invention, the first cleaning path and the second cleaning path are determined based on a global path planning algorithm.

[0031] An obstacle avoidance device according to a second aspect of the present invention includes:

[0032] A planning module, configured to perform path planning based on a map and first obstacle marking information on the map, and determine a first cleaning path;

[0033] an updating module, configured to proceed based on the first cleaning path and determine real-time information of the first obstacle marking information;

[0034] The obstacle avoidance module is used to determine a second cleaning path based on the real-time information of the first obstacle mark information and continue to move based on the second cleaning path.

[0035] According to the obstacle avoidance device of the embodiment of the present invention, the planning module can determine the first cleaning path through the preset map and the first obstacle marking information updated during the last operation. The first cleaning path can effectively avoid obstacles and guide the forward route when the first obstacle marking information is not updated. There is no need to repeatedly try to avoid obstacles that have been encountered during the last operation and whose positions have not changed, thereby improving the efficiency of obstacle avoidance. At the same time, the update module recognizes the real-time information of the first obstacle marking information during the current operation. The obstacle avoidance module can also use the real-time information of the first obstacle marking information during the current operation to re-try to obtain the shape of the obstacle when it recognizes that the position of the obstacle has changed, thereby determining the second cleaning path as the forward route, thereby realizing timely updating of obstacle information and timely avoidance of obstacles.

[0036] According to an embodiment of the third aspect of the present invention, the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the cleaning obstacle avoidance method is implemented when the processor executes the program.

[0037] According to the non-transitory computer-readable storage medium of the fourth aspect of the present invention, a computer program is stored thereon, and when the computer program is executed by a processor, the cleaning obstacle avoidance method is implemented.

[0038] The above one or more technical solutions in the embodiments of the present invention have at least one of the following technical effects: the planned first cleaning path can effectively avoid obstacles and guide the route forward when the first obstacle mark information is not updated, without the need to repeatedly try to avoid obstacles that have been encountered in the last work and whose positions have not changed, thereby improving the efficiency of obstacle avoidance. The planned second cleaning path can use the real-time information of the first obstacle mark information during the current work to re-try to obtain the obstacle shape when it is recognized that the obstacle position has changed, thereby realizing timely updating of obstacle information and timely avoidance of obstacles.

[0039] Furthermore, after completing a cleaning task, the embodiment of the present invention will integrate the collected data, mark it as the first obstacle marking information and save it in the layer. Each time the cleaning is completed, the first obstacle marking information in the layer will be updated to optimize the repeated avoidance of the same obstacle during multiple cleanings.

[0040] Furthermore, the embodiment of the present invention can update the cleaning path in real time according to the change of the first obstacle mark information, so as to better adapt to the change of the cleaning environment.

[0041] Furthermore, the embodiment of the present invention treats the obstacle area of ​​the first obstacle mark information as a restricted area and avoids it with a relatively smooth action.

[0042] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 It is a schematic flow chart of the cleaning obstacle avoidance method provided by an embodiment of the present invention;

[0045] Figure 2 is a schematic diagram of an unoptimized path provided by an embodiment of the present invention;

[0046] Figure 3 is a schematic diagram of an optimization path provided by an embodiment of the present invention;

[0047] Figure 4 is a schematic structural diagram of a cleaning obstacle avoidance device provided in an embodiment of the present invention;

[0048] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiments of the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradicting each other.

[0051] The following is a further detailed description of the implementation of the present application in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application but cannot be used to limit the scope of the present application.

[0052] Figure 1 The flowchart of the cleaning obstacle avoidance method provided by an embodiment of the present invention is illustrated, and the method at least includes the following steps:

[0053] Step 101: Perform path planning based on a map and first obstacle marking information of the map to determine a first cleaning path.

[0054] Step 102 : proceed based on the first cleaning path and determine real-time information of first obstacle mark information.

[0055] Step 103: Determine a second cleaning path based on the real-time information of the first obstacle mark information and continue to move based on the second cleaning path.

[0056] It should be noted that in actual application scenarios, the execution terminal of the method of the embodiment of the present invention can be a sweeping robot, an automatic cleaning machine, an intelligent vacuum cleaner, a robot vacuum cleaner and other devices, which are not limited here. In different cleaning scenarios, the execution terminal will first scan the scene to obtain a map of the scene and store it. When executing a cleaning task, the stored map can be directly called.

[0057] Taking a sweeping robot as an example, when executing the cleaning obstacle avoidance method of an embodiment of the present invention, the sweeping robot is first set to mopping mode. In mopping mode, it will avoid the target obstacle. Secondly, the sweeping robot will call the map of the current scene and read the first obstacle mark information updated in the last cleaning task to plan the path and obtain the first cleaning path. While cleaning along the first cleaning path, when approaching the obstacle corresponding to the first obstacle mark, real-time information will be collected, and a second cleaning path will be planned according to the changes in the real-time information and the robot will continue to move based on the second cleaning path.

[0058] According to the cleaning obstacle avoidance method of the embodiment of the present invention, the planned first cleaning path can effectively avoid obstacles and guide the route forward when the first obstacle mark information is not updated, and there is no need to repeatedly try to avoid obstacles that have been encountered in the last work and whose positions have not changed, thereby improving the efficiency of obstacle avoidance. The planned second cleaning path can use the real-time information of the first obstacle mark information during the current work to re-try to obtain the obstacle shape when it is recognized that the obstacle position has changed, thereby achieving timely update of obstacle information and timely avoidance of obstacles.

[0059] It can be understood that the path planning based on the map and the first obstacle marking information of the map also includes:

[0060] Based on the data collected during the previous travel, first obstacle mark information is determined, wherein the first obstacle mark information includes obstacle coordinate information and obstacle shape information.

[0061] It should be noted that the collected data can be computer vision data or sensor data. If the data is collected by computer vision methods, the execution terminal can collect images of the front area in real time or at regular intervals through the camera, and use image processing technology for detection. For example, it can be based on Convolutional Neural Network (CNN) for obstacle recognition, and can also use RCNN, Fast RCNN and other algorithms for image processing to detect and identify obstacles. If the data is collected by sensing methods, the execution terminal needs to be equipped with corresponding sensors, such as ultrasonic sensors. The ultrasonic detection equipment generates ultrasonic echo signals of different intensities based on the surface density of the object to be cleaned, and identifies obstacle information according to the intensity of the ultrasonic echo signal. Due to the different surface densities of the objects to be identified, the ultrasonic sensor pre-configured by the execution terminal will receive ultrasonic echo signals of different intensities when detecting the ground. By comparing the intensity of the ultrasonic echo signal with the pre-set threshold, the type of the object to be cleaned can be determined, such as floor tiles, liquid stains or carpets.

[0062] When the obstacle included in the first obstacle marking information is a carpet and the current cleaning mode is the mopping mode, after completing a cleaning task, the execution terminal will integrate the data collected by the ultrasonic wave, mark it as a complete carpet and save it in the layer. Each time the cleaning is completed, the coordinates and shape of the carpet in the layer will be updated.

[0063] The cleaning obstacle avoidance method according to the embodiment of the present invention can solve the problem in the traditional method that each time an obstacle that has been avoided is encountered during cleaning, it is necessary to repeat the trial and avoidance, which affects the cleaning efficiency. For example, when encountering a carpet that has been avoided, it is necessary to repeat the action of putting on the carpet-putting down the carpet-rotating forward to avoid it again, and it is not possible to avoid the carpet directly. The method of the embodiment of the present invention effectively uses historical collection data to mark obstacles, which facilitates the efficient implementation of subsequent cleaning tasks.

[0064] It can be understood that determining the second cleaning path based on the real-time information of the first obstacle marking information includes:

[0065] The real-time information of determining the first obstacle mark information includes obstacle displacement information.

[0066] Based on the obstacle displacement information, the updated path is determined.

[0067] Based on the updated path, a second cleaning path is determined.

[0068] It should be noted that the real-time information includes obstacle displacement information, indicating that the obstacle position has moved or the obstacle has been replaced. In either case, the first obstacle mark information needs to be updated. At this time, the execution terminal needs to collect the obstacle displacement information and perform path planning based on the displacement information. If the obstacle disappears, the mark of the first obstacle information on the map can be cancelled, and the original mark will be re-established as an area that can be cleaned; if the obstacle moves, the first obstacle information needs to be updated according to the position of the obstacle after the movement; if the obstacle is replaced, the first obstacle information needs to be updated according to the shape of the replaced obstacle.

[0069] According to the cleaning obstacle avoidance method of an embodiment of the present invention, the first obstacle mark information contains displacement information according to the identified real-time information, indicating that the position of the obstacle has moved or the obstacle has changed, and the path of the cleaning task needs to be replanned. Through real-time detection and judgment, the obstacle information is updated in time and the most accurate and efficient cleaning route is provided.

[0070] It can be understood that planning based on obstacle displacement information includes:

[0071] The obstacle displacement information is identified to determine updated first obstacle mark information.

[0072] Planning is performed based on the updated first obstacle marking information to determine an updated path.

[0073] It should be noted that, in the process of executing the cleaning task, when the execution terminal recognizes the existence of obstacle displacement information, it will reconstruct the first obstacle mark information, including the position and shape of the obstacle. For example, when the obstacle is a carpet, the execution terminal detects through visual information or sensor information that the boundary of the carpet in the carpet restricted area circled by the original first obstacle mark information has shifted. At this time, the execution terminal needs to re-sense the new position of the carpet and store the new position of the carpet to obtain the reconstructed first obstacle mark information.

[0074] After completing a cleaning task, the execution terminal will mark the first obstacle mark information on the map and save it in a layer. At this time, the first obstacle mark information may not be changed or may be rebuilt based on real-time information perception. In short, each time a cleaning task is completed, the first terminal will update the first obstacle mark information in the layer to ensure the timeliness of the first obstacle information. The first obstacle mark information marked in the layer can be displayed to the user through the user interface (APP).

[0075] In addition, it should be noted that when the mark is moved or marked incorrectly, the user can also directly delete the first obstacle mark information through the user interface (APP), and the execution terminal will re-mark the first obstacle mark information in the new cleaning task. The user can directly revise the first obstacle information to ensure the accuracy of the first obstacle mark. For example, the user can delete the marked carpet in the user interface to handle the scenario of incorrectly marked carpets and carpets moving.

[0076] According to the cleaning obstacle avoidance method of the embodiment of the present invention, the accuracy of the first obstacle mark information can be ensured through self-identification and user correction, thereby ensuring that the planned update path can avoid obstacles and will not wet the carpet while completing the cleaning to the greatest extent.

[0077] It can be understood that planning based on the updated first obstacle marking information to determine the update path includes:

[0078] Based on the updated first obstacle mark information, determining updated obstacle coordinate information and updated obstacle shape information;

[0079] An updated path is determined based on the updated obstacle coordinate information, the updated obstacle shape information, and the first distance, wherein the first distance is a minimum distance for avoiding the obstacle.

[0080] Specifically, the first distance may be half the length of the terminal body. For example, if the obstacle is a carpet, after the carpet movement is detected and the position and shape of the carpet are reconstructed, the updated path may be a closed trajectory that goes around the carpet and is greater than half the length of the carpet edge.

[0081] It can be understood that determining the second cleaning path based on the real-time information of the first obstacle mark information further includes:

[0082] Determining that the real-time information of the first obstacle marking information does not include obstacle displacement information;

[0083] The second cleaning path is determined to be the first cleaning path.

[0084] It should be noted that in many actual situations, the position of the first obstacle will not change. Therefore, when the real-time information does not include obstacle displacement information, the embodiment of the present invention can perform the cleaning task according to the planned first cleaning path to avoid obstacles, without repeatedly probing obstacles to avoid them, and optimize the repeated avoidance of the same obstacle during multiple cleanings. For example, in mopping mode, when the obstacle is a carpet, if the traditional method is used without planning the route in advance, it is easy to cause contamination of the corners of the carpet while cleaning and probing the position of the carpet. After completing a cleaning task, the method of the embodiment of the present invention will use a more efficient method to avoid the carpet in subsequent cleaning tasks.

[0085] Reference Figure 2 The embodiment of the present invention provides a schematic diagram of the non-optimized path of the traditional method, with the obstacle as the carpet distance. The existing avoidance method is to let the machine go on the carpet. After detecting the carpet, the machine first goes down the carpet, then rotates forward, and repeats this action until the entire carpet contour is traversed or interrupted for other reasons. For the avoided carpet, no record is saved, and when a new cleaning task is started, the same avoidance action will still be repeated on the original carpet.

[0086] Reference Figure 3 The embodiment of the present invention provides a schematic diagram of the travel path after the cleaning obstacle avoidance method is optimized, and the complete carpet is marked by the collected sensor data or visual data for secondary carpet avoidance in subsequent cleaning tasks. As shown in the figure, the machine can directly avoid the carpet along the planned straight path. The planned path is close to but does not touch the carpet, which optimizes the repeated avoidance action of the same carpet and improves the smoothness of the carpet avoidance movement.

[0087] It is understandable that the first cleaning path and the second cleaning path are determined based on the global path planning algorithm. It should be noted that there are many obstacles in the environment where the cleaning task is performed, so when planning the path, the influence of other obstacles in the environment needs to be considered. Under the requirements of avoiding different obstacles, the shortest path is found through the global path planning method to construct the most reasonable cleaning trajectory.

[0088] Specifically, the global path planning method in the embodiment of the present invention may be a classical algorithm such as Dijikstra algorithm, A* algorithm, Rapidly Exploring Random Tree (RRT) algorithm, or an intelligent algorithm such as an ant colony algorithm and a genetic algorithm.

[0089] The cleaning obstacle avoidance device provided by the present invention is described below. The cleaning obstacle avoidance device described below and the cleaning obstacle avoidance method described above can be referred to in correspondence with each other. Figure 4 As shown, the embodiment of the present invention further discloses a cleaning obstacle avoidance device, comprising:

[0090] A planning module 401 is used to perform path planning based on a map and first obstacle marking information on the map to determine a first cleaning path;

[0091] An updating module 402 is used to travel based on the first cleaning path and determine real-time information of the first obstacle marking information;

[0092] The obstacle avoidance module 403 is used to determine a second cleaning path based on the real-time information of the first obstacle mark information and continue to move based on the second cleaning path.

[0093] According to the obstacle avoidance device of the embodiment of the present invention, the planning module 401 can determine the first cleaning path through the preset map and the first obstacle marking information updated during the last operation. The first cleaning path can effectively avoid obstacles and guide the forward route when the first obstacle marking information is not updated. There is no need to repeatedly try to avoid obstacles that have been encountered during the last operation and whose positions have not changed, thereby improving the efficiency of obstacle avoidance. At the same time, the updating module 402 recognizes the real-time information of the first obstacle marking information during the current operation, and the obstacle avoidance module 403 can also use the real-time information of the first obstacle marking information during the current operation to re-try to obtain the shape of the obstacle when it is recognized that the position of the obstacle has changed, thereby determining the second cleaning path as the forward route, realizing the timely update of obstacle information and timely avoidance of obstacles.

[0094] It can be understood that the planning module 401 performs path planning based on the map and the first obstacle marking information on the map, and also includes:

[0095] Based on the data collected during the previous travel, first obstacle mark information is determined, wherein the first obstacle mark information includes obstacle coordinate information and obstacle shape information.

[0096] It can be understood that the obstacle avoidance module 403 determines the second cleaning path based on the real-time information of the first obstacle marking information, including:

[0097] Determining that the real-time information of the first obstacle marking information includes obstacle displacement information;

[0098] Based on the obstacle displacement information, determine the updated path;

[0099] Based on the updated path, a second cleaning path is determined.

[0100] It can be understood that planning based on obstacle displacement information includes:

[0101] Identify the obstacle based on its displacement information and update the first obstacle mark information;

[0102] Planning is performed based on the updated first obstacle marking information to determine an updated path.

[0103] It can be understood that planning based on the updated first obstacle marking information to determine the update path includes:

[0104] Based on the updated first obstacle mark information, obtaining updated obstacle coordinate information and updated obstacle shape information;

[0105] An updated path is determined based on the updated obstacle coordinate information, the updated obstacle shape information, and the first distance, wherein the first distance is a minimum distance for avoiding the obstacle.

[0106] It can be understood that determining the second cleaning path based on the real-time information of the first obstacle mark information further includes:

[0107] Determining that the real-time information of the first obstacle marking information does not include obstacle displacement information;

[0108] The second cleaning path is determined to be the first cleaning path.

[0109] It can be understood that the first cleaning path and the second cleaning path are determined based on a global path planning algorithm.

[0110] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the following method:

[0111] Performing path planning based on the map and first obstacle marking information on the map to determine a first cleaning path;

[0112] traveling based on the first cleaning path and determining real-time information of first obstacle marking information;

[0113] Based on the real-time information of the first obstacle marking information, a second cleaning path is determined and travel is continued based on the second cleaning path.

[0114] According to the electronic device of the embodiment of the present invention, the first cleaning path is determined by the preset map and the first obstacle mark information updated during the last operation. The first cleaning path can effectively avoid obstacles and guide the route forward when the first obstacle mark information is not updated, and there is no need to repeatedly try to avoid obstacles that have been encountered during the last operation and whose positions have not changed, thereby improving the efficiency of obstacle avoidance. At the same time, through the real-time information of the first obstacle mark information during the last operation, when it is recognized that the position of the obstacle has changed, the obstacle shape can be re-tried to determine the second cleaning path as the forward route, thereby realizing timely updating of obstacle information and timely avoidance of obstacles.

[0115] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0116] On the other hand, an embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can perform the methods provided by the above-mentioned method embodiments, for example, including:

[0117] Performing path planning based on the map and first obstacle marking information on the map to determine a first cleaning path;

[0118] traveling based on the first cleaning path and determining real-time information of first obstacle marking information;

[0119] Based on the real-time information of the first obstacle marking information, a second cleaning path is determined and travel is continued based on the second cleaning path.

[0120] According to the computer program product of the embodiment of the present invention, the first cleaning path is determined by the preset map and the first obstacle mark information updated during the last operation. The first cleaning path can effectively avoid obstacles and guide the route forward when the first obstacle mark information is not updated, and there is no need to repeatedly try to avoid obstacles that have been encountered during the last operation and whose positions have not changed, thereby improving the efficiency of obstacle avoidance. At the same time, through the real-time information of the first obstacle mark information during the last operation, when it is recognized that the position of the obstacle has changed, the obstacle shape can be re-tried to determine the second cleaning path as the forward route, thereby realizing timely updating of obstacle information and timely avoidance of obstacles.

[0121] In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the transmission method provided in the above embodiments, for example, including:

[0122] Performing path planning based on the map and first obstacle marking information on the map to determine a first cleaning path;

[0123] traveling based on the first cleaning path and determining real-time information of first obstacle marking information;

[0124] Based on the real-time information of the first obstacle marking information, a second cleaning path is determined and travel is continued based on the second cleaning path.

[0125] According to the non-transitory computer-readable storage medium of the embodiment of the present invention, the first cleaning path is determined by the preset map and the first obstacle mark information updated during the last operation. The first cleaning path can effectively avoid obstacles and guide the route forward when the first obstacle mark information is not updated, and there is no need to repeatedly try to avoid obstacles that have been encountered during the last operation and whose positions have not changed, thereby improving the efficiency of obstacle avoidance. At the same time, through the real-time information of the first obstacle mark information during the last operation, when it is recognized that the position of the obstacle has changed, the obstacle shape can be re-tried to determine the second cleaning path as the forward route, thereby realizing the timely update of obstacle information and timely avoidance of obstacles.

[0126] The device embodiments described above are merely illustrative, wherein 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, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0128] Finally, it should be noted that the above embodiments are only used to illustrate the present invention, rather than to limit the present invention. Although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that various combinations, modifications or equivalent substitutions of the technical solutions of the present invention do not depart from the spirit and scope of the technical solutions of the present invention, and should all be included in the scope of the present invention.

Claims

1. A cleaning obstacle avoidance method, characterized in that: include: Performing path planning based on a map of the current scene and first obstacle marking information of the map to determine a first cleaning path; The first obstacle mark information is determined based on data collected during a previous trip and includes carpet coordinate information and carpet shape information; the map includes the first obstacle mark information updated after the last cleaning task and the first obstacle mark information is updated through self-identification and user correction; the carpet coordinate information and the carpet shape information are determined based on ultrasonic echo signals of different intensities generated by ultrasonic sensors; Based on the first cleaning path, the real-time information of the first obstacle mark information is determined; the real-time information of the first obstacle mark information is information collected when approaching the carpet corresponding to the first obstacle mark information; determining a second cleaning path based on the real-time information of the first obstacle marking information and continuing to move based on the second cleaning path; The second cleaning path is planned according to the change of the real-time information of the first obstacle marking information; Wherein, determining the second cleaning path based on the real-time information of the first obstacle mark information includes: determining that the real-time information of the first obstacle mark information includes carpet displacement information; the carpet displacement information is used to determine that the carpet disappears, the carpet moves, or the carpet is replaced; determining an update path based on the carpet displacement information; determining the second cleaning path based on the update path; Based on the carpet displacement information, determining an update path includes: identifying the carpet displacement information to determine the updated first obstacle mark information; based on the updated first obstacle mark information, determining updated carpet coordinate information and updated carpet shape information; based on the updated carpet coordinate information, the updated carpet shape information and a first distance, determining the update path, wherein the first distance is a minimum distance for avoiding the carpet; when the first distance is half the body length of the execution terminal, the update path is a closed trajectory that goes around the carpet and is greater than half the body length of the carpet edge.

2. The cleaning obstacle avoidance method according to claim 1, characterized in that: The determining of the second cleaning path based on the real-time information of the first obstacle mark information further includes: Determining that the real-time information of the first obstacle marking information does not include obstacle displacement information; The second cleaning path is determined to be the first cleaning path.

3. The cleaning obstacle avoidance method according to claim 1 or 2, characterized in that: The first cleaning path and the second cleaning path are determined based on a global path planning algorithm.

4. An obstacle avoidance device, characterized in that: include: A planning module, configured to perform path planning based on a map of a current scene and first obstacle marking information of the map, and determine a first cleaning path; The first obstacle mark information is determined based on data collected during a previous trip and includes carpet coordinate information and carpet shape information; the map includes the first obstacle mark information updated after the last cleaning task and the first obstacle mark information is updated through self-identification and user correction; the carpet coordinate information and the carpet shape information are determined based on ultrasonic echo signals of different intensities generated by ultrasonic sensors; an updating module, configured to proceed based on the first cleaning path and determine real-time information of the first obstacle marking information; The real-time information of the first obstacle mark information is information collected when approaching the carpet corresponding to the first obstacle mark information; an obstacle avoidance module, configured to determine a second cleaning path based on the real-time information of the first obstacle marking information and continue to move based on the second cleaning path; The second cleaning path is planned according to the change of the real-time information of the first obstacle marking information; Wherein, determining the second cleaning path based on the real-time information of the first obstacle mark information includes: determining that the real-time information of the first obstacle mark information includes carpet displacement information; the carpet displacement information is used to determine that the carpet disappears, the carpet moves, or the carpet is replaced; determining an update path based on the carpet displacement information; determining the second cleaning path based on the update path; Based on the carpet displacement information, determining an update path includes: identifying the carpet displacement information to determine the updated first obstacle mark information; based on the updated first obstacle mark information, determining updated carpet coordinate information and updated carpet shape information; based on the updated carpet coordinate information, the updated carpet shape information and a first distance, determining the update path, wherein the first distance is a minimum distance for avoiding the carpet; when the first distance is half the body length of the execution terminal, the update path is a closed trajectory that goes around the carpet and is greater than half the body length of the carpet edge.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the cleaning obstacle avoidance method as described in any one of claims 1 to 3 is implemented.

6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the cleaning obstacle avoidance method as described in any one of claims 1 to 3 is implemented.