Map updating method and apparatus, and device and storage medium

Through the incremental update of SLAM technology and door opening and closing data, combined with watershed or morphological segmentation, the accuracy of the sweeping robot in segmenting clean areas in the home environment is improved, solving the problem of low area segmentation accuracy in the existing technology, and improving Partition cleaning effect.

WO2024222734A1PCT designated stage expired Publication Date: 2024-10-31MIDEA ROBOZONE TECH CO LTD

Patent Information

Application Number
PCT/CN2024/089527
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-25
Filing Date
2024-04-24
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing sweeping robots have low accuracy when segmenting cleaning areas in the home environment and cannot meet users' precise cleaning needs, especially in areas with frequent activities such as living rooms. Moreover, after the introduction of visual sensors, the door frame position recognition accuracy is limited, which affects area segmentation and Cleaning effect.

Method used

By obtaining the map information of the environmental area, we use SLAM technology to construct a two-dimensional grid map, and perform incremental area segmentation based on door opening and closing data, update the door line position and statistical times, and combine with watershed or morphological segmentation methods to improve the accuracy of area segmentation. Precision and cleaning results.

Benefits of technology

It achieves more precise area segmentation, improves the cleaning effect of the sweeping robot in partitions, meets users' cleaning needs for different areas, and improves the efficiency and accuracy of cleaning equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024089527_31102024_PF_FP_ABST
    Figure CN2024089527_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a map updating method and apparatus, and a device and a storage medium. The method comprises: acquiring map information of an environmental region; and on the basis of update data related to the environmental region, updating the map information, so as to obtain updated map information. In this way, incremental region segmentation can be implemented on the basis of update data related to an environmental region, thereby facilitating an improvement in the precision of region segmentation, and improving the effect of partition cleaning.
Need to check novelty before this filing date? Find Prior Art

Description

Map updating method, device, equipment and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number 202310449938.0 and application date of April 24, 2023, and the Chinese patent application with application number 202311242100.0 and application date of September 25, 2023, and claims the priority of the above-mentioned Chinese patent applications. The entire contents of the above-mentioned Chinese patent applications are hereby introduced into this application as a reference. Technical Field

[0003] The present application relates to the field of smart home control, and in particular to a map updating method, apparatus, device and storage medium. Background Art

[0004] With the development of science and technology, smart devices in smart home scenarios are becoming more and more abundant. For example, cleaning equipment such as sweeping robots and mopping robots can perform intelligent cleaning in the home environment based on user needs, thereby greatly liberating labor and becoming more and more popular among users.

[0005] In related technologies, sweeping robots generally use inertial navigation, lidar, or cameras for map planning and navigation. When a user sweeps the floor with a sweeping robot, they will see the cleaning area division in real time on their mobile device. However, this cleaning area division is not based on room unit division, but is simply divided into multiple zones based on the coordinate information of the cleaning area. However, since different areas in a home environment often have different cleaning requirements, if room unit-based zone division cannot be implemented, it will be difficult to meet the user's precise cleaning needs. For example, the living room is a frequently active area with a lot of dust, and the user may need to clean the living room frequently.

[0006] In order to achieve zoned cleaning by a sweeping robot, that is, to divide the home environment into multiple sub-areas for cleaning, the relevant area segmentation is often based on a grid map using watershed segmentation, morphological segmentation or other cutting methods. In the absence of third-party sensors, the accuracy of the segmented area is low; in addition, even if a visual sensor is introduced, the position accuracy of the door frame identified based on visual detection technology is limited, with an overall error of about 0.5 meters, which affects the accuracy of area segmentation and the effect of subsequent zoned cleaning.

[0007] Summary of the Invention

[0008] In view of this, embodiments of the present application provide a map updating method, apparatus, device, and storage medium, which aim to improve the accuracy of region segmentation and the effect of partition cleaning.

[0009] The technical solution of the embodiment of the present application is implemented as follows:

[0010] In a first aspect, an embodiment of the present application provides a map updating method, comprising:

[0011] Get map information of the environmental area;

[0012] The map information is updated based on the updated data related to the environmental area to obtain the updated map information.

[0013] In the above solution, updating the map information based on the updated data related to the environmental area includes:

[0014] Acquiring door opening and closing data within the environmental area;

[0015] The map information is initially segmented into regions based on the door opening and closing data to obtain a first partition result of the environmental region.

[0016] In the above solution, the step of obtaining the door opening and closing data within the environmental area includes:

[0017] If it is determined that the environmental area is segmented after the first segmentation, the door opening and closing data is updated based on the comparison result between the map information and the stored historical environmental map information.

[0018] In the above solution, updating the door opening and closing data based on the comparison result between the map information and the stored historical environment map information includes:

[0019] Based on a boundary comparison between the map information and the historical environment map information, it is determined that there is a first independent area corresponding to an open door and / or a second independent area corresponding to a closed door, and then the door line position of each independent area is extracted based on the boundary difference between the map information and the historical environment map information;

[0020] If it is determined that the extracted gate line position is an existing gate line position in the gate opening and closing data, the statistical number of the corresponding gate line position is increased by one;

[0021] If it is determined that the extracted door line position is a door line position not included in the door opening and closing data, the corresponding door line position is added to the door opening and closing data and the number of counts is set to one;

[0022] The door opening and closing data stores the door line position and the statistical number of the door line position.

[0023] In the above solution, the initial region segmentation of the map information based on the door opening and closing data to obtain the first partition result of the environmental area includes:

[0024] Extracting the gate line positions whose statistical number of times is greater than or equal to a set threshold from the gate opening and closing data, and taking the gate line positions whose statistical number of times is greater than or equal to the set threshold as target gate line positions;

[0025] The map information is initially divided into regions based on the target goal line position to obtain a first partition result of the environmental region.

[0026] In the above solution, the method further includes:

[0027] The environmental area is further segmented based on the first partitioning result to obtain a second partitioning result of the environmental area.

[0028] In the above solution, the step of further segmenting the area obtained by dividing the environment area based on the first partitioning result to obtain a second partitioning result of the environment area includes:

[0029] The area after the environmental area is divided based on the first partitioning result is segmented based on a watershed segmentation or morphological segmentation method to obtain a second partitioning result of the environmental area.

[0030] In the above solution, the method further includes:

[0031] If it is determined to perform the first regional segmentation on the environmental area, the acquired map information is regionally segmented based on watershed segmentation or morphological segmentation to obtain a third partition result of the environmental area, and the map information is saved as historical environmental map information.

[0032] In the above solution, if it is determined that the environmental area is segmented after the first segmentation, the method further includes:

[0033] The area sizes of the acquired map information and the stored historical environment map information are compared, and if the map information is larger than the historical environment map information, the stored historical environment map information is updated based on the map information.

[0034] In the above solution, updating the map information based on the updated data related to the environmental area includes:

[0035] Determining a newly added area of ​​the map information compared to the set map information, wherein the set map information represents a first map of the environmental area in which apartment type identification is pre-completed;

[0036] Determining an adjacent relationship between the newly added area and at least one first sub-area in the first map;

[0037] Determining a display state of the newly added area according to the adjacent relationship, where the display state includes an independent state or a fused state;

[0038] The newly added area is displayed in a second map corresponding to the map information according to the display state.

[0039] In the above solution, determining the newly added area of ​​the map information compared with the set map information includes:

[0040] Overlaying and displaying the first map and the second map;

[0041] The second map and the first map are compared to determine at least one newly added area.

[0042] In the above solution, determining the adjacent relationship between the newly added area and at least one first sub-area in the first map includes:

[0043] determining at least one of the first sub-areas in the first map;

[0044] Determine whether the newly added area is adjacent to any of the first sub-areas, and generate a determination result;

[0045] The neighbor relationship is determined according to the judgment result.

[0046] In the above solution, displaying the newly added area in the second map corresponding to the map information according to the display state includes:

[0047] Determining area parameters and shape parameters of the newly added area;

[0048] When the newly added area is adjacent to at least one of the first sub-areas, if the area parameter and the shape parameter meet a preset fusion threshold, the display state of the newly added area is determined to be a fusion state, and the newly added area is displayed in a fusion state with the first sub-area; otherwise, the display state of the newly added area is determined to be an independent state, and the newly added area is displayed independently in the second map.

[0049] In the above solution, determining the display status of the newly added area according to the neighbor relationship includes:

[0050] In the case of merging the newly added area with the first sub-area for display, determining whether the updated first sub-area after merging is separated;

[0051] If the updating of the first sub-region needs to be separated, the separated region is newly named and displayed independently, and the remaining region retains the original name.

[0052] In the above solution, displaying the newly added area in the second map corresponding to the map information according to the display state includes:

[0053] Determining outline boundary information of at least one second sub-area in the second map according to the display state of the newly added area;

[0054] A second map including the newly added area is generated according to the contour boundary information of all the second sub-areas.

[0055] In the above solution, obtaining map information of the environmental area includes:

[0056] Based on the Simultaneous Localization and Mapping (SLAM) technology, two-dimensional grid map data of the environmental area is constructed, and the two-dimensional grid map data is used as map information of the environmental area.

[0057] In a second aspect, an embodiment of the present application provides a map updating device, comprising:

[0058] an acquisition module configured to acquire map information of an environmental area;

[0059] The processing module is configured to update the map information based on the update data related to the environmental area to obtain the updated map information.

[0060] In a third aspect, an embodiment of the present application provides a cleaning device, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein the processor is configured to execute the steps of the method described in the first aspect of the embodiment of the present application when running the computer program.

[0061] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect of the embodiment of the present application are implemented.

[0062] The technical solution provided by the embodiments of this application obtains map information of an environmental area; then updates the map information based on updated data related to the environmental area to obtain updated map information. This allows for incremental segmentation based on updated data related to the environmental area, resulting in increasingly accurate segmentation results for the environmental area, thereby improving segmentation accuracy and the effectiveness of zoned cleaning. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] FIG1 is a flow chart of a map updating method according to an embodiment of the present application;

[0064] FIG2 is a flowchart of a map updating method according to another embodiment of the present application;

[0065] FIG3 is a schematic diagram of the door line positions and statistical times of each room in a home scene in an application example of the present application;

[0066] FIG4 is a flowchart of a map updating method in an application example of the present application;

[0067] FIG5 is a flowchart of a map updating method according to another embodiment of the present application;

[0068] FIG6 is a flowchart of a map updating method according to an embodiment of the present application;

[0069] FIG7 is a flowchart of a map updating method according to an embodiment of the present application;

[0070] FIG8 is a flowchart of a map updating method according to an embodiment of the present application;

[0071] FIG9 shows a schematic flow chart of a control method according to an embodiment of the present application;

[0072] FIG10 shows a schematic flow chart of a control method according to an embodiment of the present application;

[0073] FIG11 is a schematic structural diagram of a map updating device according to an embodiment of the present application;

[0074] FIG12 is a schematic structural diagram of the cleaning device according to an embodiment of the present application. DETAILED DESCRIPTION

[0075] The present application will be described in further detail below with reference to the accompanying drawings and embodiments.

[0076] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application pertains. The terms used herein in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application.

[0077] Before describing the region segmentation method according to the embodiment of the present application, a cleaning device to which the region segmentation method according to the embodiment of the present application is applied is exemplarily described.

[0078] The cleaning device can be a cleaning device that moves in an environment space with a high degree of autonomy, such as a sweeping robot, a mopping robot, etc. In other application examples, the region segmentation method can also be applied to other movable robots, such as a service robot, which is not limited in the embodiments of the present application.

[0079] In an embodiment of the present application, the cleaning device has a traveling device that can move autonomously within the current environment; in addition, the cleaning device also has various sensors, for example, including: at least one of a visual sensor and a laser sensor. Among them, the visual sensor can be a monocular camera, a binocular camera or a depth camera, etc., and the laser sensor includes but is not limited to: a line laser sensor, a surface laser sensor, etc. These sensors can collect surrounding environmental information during the movement of the cleaning device. For example, the visual sensor can collect images of the surrounding environment during the movement of the cleaning device, and the laser sensor can collect information about surrounding obstacles during the movement of the cleaning device. These environmental information provides data basis for positioning, navigating or avoiding obstacles for the cleaning device. Among them, in addition to relying on the environmental information collected in real time by these sensors, the positioning, navigation or obstacle avoidance of the cleaning device also needs to rely on the environmental map of the environment in which the cleaning device is located.

[0080] Furthermore, to achieve zoned cleaning of environmental areas, it is necessary to divide the environmental map into regions. Related technologies often use methods such as watershed segmentation and morphological segmentation to divide environmental maps into regions. These are one-time segmentation techniques that often suffer from low segmentation accuracy. For example, when there is a long corridor at the doorway or a small area with a narrow opening that is not obvious, the location of the dividing line is not easy to determine. Even with the introduction of visual sensors, the accuracy of the door frame position identified by visual detection technology is limited, with an overall error of around 0.5 meters, affecting the accuracy of the regional segmentation and the effectiveness of subsequent zone cleaning.

[0081] In various embodiments of the present application, considering that the usage scenarios of cleaning equipment are often fixed and multiple cleanings are required in the same environmental area, the map information of the environmental area is updated (for example, area segmentation) using the updated data related to the environmental area obtained during multiple cleanings, and the updated map information is obtained, thereby improving the accuracy of area segmentation and improving the effect of zoned cleaning.

[0082] As shown in FIG1 , an embodiment of the present application provides a map updating method, including:

[0083] Step 101: Obtain map information of an environmental area.

[0084] For example, the cleaning device can construct two-dimensional grid map data of the environmental area based on SLAM technology, and use the two-dimensional grid map data as map information of the environmental area. The map information can be understood as the current environmental map information of the environmental area.

[0085] Here, SLAM technology can be understood as: the robot starts moving from an unknown position in an unknown environment, positions itself according to the position and map during the movement, and builds an incremental map based on its own positioning to achieve autonomous positioning and navigation of the robot.

[0086] For example, the cleaning equipment can use the scanning data of the lidar based on the SLAM technology to build an incremental map based on its own positioning to obtain map information of the environmental area.

[0087] Step 102: updating the map information based on the updated data related to the environmental area to obtain updated map information.

[0088] Here, the updated data related to the environmental area can include door opening and closing data within the environmental area, or it can include a newly added area compared to the set map information, where the set map information represents a map of the environmental area that has previously completed household type recognition. In other words, the newly added area can be understood as the area added to the map reconstructed using SLAM technology compared to the map that has previously completed household type recognition.

[0089] It can be understood that the method of the embodiment of the present application can realize incremental region segmentation based on the updated data in the environmental area, thereby making the partitioning results of the environmental area more and more accurate, which is conducive to improving the accuracy of region segmentation and improving the effect of partition cleaning.

[0090] It should be noted that the regional segmentation based on door opening and closing data can be based on the comparison results of map information and the saved historical environmental map information to learn the door opening and closing, and use the learning results of door opening and closing to perform incremental regional segmentation on the environmental area, thereby achieving the purpose of improving the accuracy of regional segmentation.

[0091] The following is an example of a case where the update data related to the environmental area is door opening and closing data. As shown in Figure 2, the embodiment of the present application provides a map update method that can be applied to cleaning equipment, the method comprising:

[0092] Step 201: Obtain map information of an environmental area.

[0093] Step 202: Obtain door opening and closing data within the environmental area.

[0094] Here, the door opening and closing data is used to store the door line position and the statistical number of each door line position in the environmental area.

[0095] Exemplarily, obtaining the door opening and closing data in the environmental area includes:

[0096] If it is determined that the environmental area is segmented after the first segmentation, the door opening and closing data is updated based on the comparison result between the map information and the stored historical environmental map information.

[0097] It should be noted that in the embodiment of the present application, if it is determined that the environmental area is to be segmented for the first time, the acquired map information is segmented based on a segmentation algorithm, such as watershed segmentation or morphological segmentation, to obtain a third partitioning result of the environmental area (i.e., the first partitioning result of the environmental area), and the map information is saved as historical environmental map information. It should be noted that this third partitioning result has the disadvantage of limited partitioning accuracy and is often difficult to meet the control requirements of partition cleaning.

[0098] Here, the watershed algorithm considers image segmentation based on the composition of the watershed. It is a segmentation method based on mathematical morphology of topological theory. The basic idea is to regard the image as a geodesic topological landform. The grayscale value of each pixel in the image represents the altitude of the point. Each local minimum and its affected area become a watershed, and the boundary of the watershed forms a watershed, which makes it possible to analyze the regional characteristics of the image. It is understandable that in the embodiment of the present application, the acquired map information is segmented based on the watershed algorithm, and the map can be divided into multiple regions based on the location of the narrow mouth of the map.

[0099] Here, the acquired map information is segmented into regions based on a morphological segmentation method, and the region segmentation may be performed using a model-based recognition method or a geometric feature-based recognition method.

[0100] For example, the model-based recognition method for region segmentation is as follows: for a specific application scenario, objects that can serve as spatial partitions in the application scenario can be collected. These objects and their images are then used as training samples for model training to obtain a partition recognition model. Based on this, after obtaining map information, the obtained map information can be input into the partition recognition model for recognition. The result is whether there are spatial partitions in the map information, and then region segmentation is performed based on the identified spatial partitions.

[0101] Exemplarily, the above-mentioned recognition method based on geometric features is specifically used for region segmentation as follows: after obtaining the map information, feature extraction can be performed on at least one object contained in the map information to obtain the geometric features of the at least one object. In this embodiment, the geometric features of the known space dividing body are maintained in advance. After obtaining the geometric features of each object in the map information, the geometric features of each object can be matched with the geometric features of the known space dividing body; if there is a match, it can be determined that the object corresponding to the matched geometric features is the space dividing body. For example, in a home environment, the known space dividing bodies include room doors, and the length, width and height of the room doors are known; assuming that objects such as room doors, tables, chairs, televisions, wardrobes, sofas, coffee tables and their geometric dimensions are identified from the map information, the geometric dimensions of each object are matched with the geometric dimensions of the known space dividing body, and it is found that the geometric dimensions of the room door are matched, then it can be determined that the room door in the map information is a specific space dividing body, and then the region segmentation is performed based on the identified space dividing body.

[0102] It can be understood that the cleaning device can determine whether it is a regional segmentation after the first regional segmentation of the environmental area based on whether historical environmental map information is saved. If historical environmental map information is saved, it is determined to be a regional segmentation after the first regional segmentation of the environmental area. At this time, the door opening and closing data can be updated based on the comparison result of the acquired map information and the saved historical environmental map information; and the map information can be initially segmented based on the door opening and closing data to obtain the first partition result of the environmental area.

[0103] Exemplarily, updating the door opening and closing data based on the comparison result between the map information and the stored historical environment map information includes:

[0104] Based on a boundary comparison between the map information and the historical environment map information, it is determined that there is a first independent area corresponding to an open door and / or a second independent area corresponding to a closed door, and then the door line position of each independent area is extracted based on the boundary difference between the map information and the historical environment map information;

[0105] If it is determined that the extracted gate line position is an existing gate line position in the gate opening and closing data, the statistical number of the corresponding gate line position is increased by one;

[0106] If it is determined that the extracted door line position is a door line position not included in the door opening and closing data, the corresponding door line position is added to the door opening and closing data and the number of counts is set to one;

[0107] The door opening and closing data stores the door line position and the statistical number of the door line position.

[0108] It can be understood that if there are door opening and / or door closing actions in the environmental area, there will be differences in the boundaries between the map information and the historical environmental map information. Specifically, if a door body is closed, a second independent area corresponding to the door closing will appear in the map information obtained based on the incremental map construction, and the corresponding door line position will be extracted based on the contour comparison; if a door body is a newly opened door body compared with the historical environmental map information, the first independent area corresponding to the door opening will be obtained by comparing the boundaries of the map information and the historical environmental map information, and the corresponding door line position will be extracted based on the contour comparison.

[0109] For example, Figure 3 shows the door line positions of each room in a home scene. The door line positions of each independent area can be extracted based on the boundary differences (i.e., contour differences) between the map information and the historical environment map information.

[0110] It should be noted that the door opening and closing data in the embodiment of the present application is incrementally updated based on multiple learning processes, wherein, if the door line position of the independent area extracted based on the boundary difference between the map information and the historical environment map information is the door line position already in the door opening and closing data, the statistical number of the corresponding door line position is increased by one; if it is determined that the extracted door line position is a door line position that is not in the door opening and closing data, it is determined to be a newly identified door line position, and the corresponding door line position is added to the door opening and closing data and the statistical number is set to one.

[0111] For example, as shown in Figure 3, in this recognition scenario, the door opening and closing data are as follows: the first door line position between room A and room C is counted 5 times, the second door line position between room B and room C is counted 2 times, the third door line position between room C and room D is counted 4 times, the fourth door line position between room C and room E is counted 1 time, and the door line position between room E and room F has not yet been identified.

[0112] Step 203 : performing initial region segmentation on the map information based on the door opening and closing data to obtain a first partition result of the environmental area.

[0113] Exemplarily, performing initial region segmentation on the map information based on the door opening and closing data to obtain a first partition result of the environmental area includes:

[0114] Extracting the gate line positions whose statistical number of times is greater than or equal to a set threshold from the gate opening and closing data, and taking the gate line positions whose statistical number of times is greater than or equal to the set threshold as target gate line positions;

[0115] The map information is initially divided into regions based on the target goal line position to obtain a first partition result of the environmental region.

[0116] It is understood that for door line positions with a statistical number greater than or equal to a set threshold, they can be determined to be authentic and reliable door bodies, and initial area division can be performed based on these authentic and reliable door bodies to obtain a first partition result of the environmental area. For example, the set threshold can be 1, 2, 3, or a natural number greater than 3. Those skilled in the art can reasonably set it based on control requirements, and this embodiment of the application does not limit this.

[0117] It is understandable that as the number of area segmentations of the environmental area increases, the door opening and closing data obtained through learning becomes more and more accurate, so that the first partitioning result formed in step 203 becomes closer and closer to the actual partitioning situation of the environmental area.

[0118] The map updating method of the embodiment of the present application can update the door opening and closing data based on the comparison results of the map information and the saved historical environmental map information in the scenario of regional segmentation after the first regional segmentation of the environmental area, and realize incremental regional segmentation based on the door opening and closing data, that is, as the number of regional segmentations of the environmental area increases, the learned door opening and closing data becomes more and more accurate, thereby making the partitioning results of the environmental area more and more accurate, which is conducive to improving the accuracy of regional segmentation and improving the partition cleaning effect of the cleaning equipment.

[0119] In some embodiments, the map updating method may further include:

[0120] The environmental area is further segmented based on the first partitioning result to obtain a second partitioning result of the environmental area.

[0121] It is understandable that since the initial regional segmentation of the map information based on the learned door opening and closing data may have the defect of incomplete regional segmentation, the environmental area can be further segmented based on the area divided by the first partitioning result to obtain a complete partitioning result.

[0122] Exemplarily, before continuing to segment the environment area into areas divided based on the first partitioning result, the method further includes:

[0123] It is determined whether the area after the environmental area is divided based on the first partitioning result meets the segmentation condition for continued segmentation. If so, the segmentation of the area after the environmental area is divided based on the first partitioning result is continued.

[0124] Here, the segmentation condition for continued segmentation can be set based on the area threshold of the region. For example, if the area of ​​the region divided by the first partition result is smaller than the set area threshold, it is determined that it does not meet the segmentation condition for continued segmentation. If the area of ​​the region divided by the first partition result is greater than or equal to the set area threshold, the environmental area is continued to be segmented based on the region divided by the first partition result.

[0125] Exemplarily, the step of continuing to segment the area divided based on the first partitioning result of the environmental area to obtain a final partitioning result of the environmental area includes:

[0126] The area after the environmental area is divided based on the first partitioning result is segmented based on a watershed segmentation or morphological segmentation method to obtain a second partitioning result of the environmental area.

[0127] Here, segmentation based on watershed segmentation or morphological segmentation can refer to the above description and will not be repeated here.

[0128] Exemplarily, if it is determined that the environmental area is segmented after the first segmentation, the method further includes:

[0129] The area sizes of the acquired map information and the stored historical environment map information are compared, and if the map information is larger than the historical environment map information, the stored historical environment map information is updated based on the map information.

[0130] It can be understood that the saved historical environmental map information is the largest raster map information in multiple area segmentations. This is conducive to the subsequent update of door opening and closing data, making the learned door line position more and more accurate and comprehensive, and thus making the partitioning results of the environmental area more and more accurate.

[0131] The map updating method of the embodiment of the present application is illustrated below with reference to an application example.

[0132] FIG4 shows a flowchart of a map updating method in this application example. The map updating method is applied to a cleaning device. As shown in FIG4 , the map updating method includes:

[0133] Step 401: Obtain map information.

[0134] Here, the cleaning equipment can use the scanning data of the lidar based on SLAM technology to build an incremental map based on its own positioning and obtain map information of the environmental area.

[0135] Step 402 , determining whether it is the first region segmentation, if so, executing steps 403 and 404 ; if not, executing step 405 .

[0136] Here, the cleaning device determines whether historical environmental map information is stored. If not, it is determined as the first regional segmentation of the environmental area. If so, it is determined as the regional segmentation after the first regional segmentation of the environmental area.

[0137] Step 403: Save the map information as historical environment map information.

[0138] Here, if the cleaning device determines to perform the first area segmentation on the environmental area, the acquired map information is saved as historical environmental map information.

[0139] Step 404: Morphological segmentation.

[0140] Here, the cleaning equipment can use morphological segmentation to segment the acquired map information into regions and obtain the initial partitioning result of the environmental area.

[0141] Step 405: Load historical environment map information and door opening and closing data.

[0142] Here, if the cleaning device determines that the environmental area is segmented after the first segmentation, the historical environmental map information and the door opening and closing data are loaded. It is understandable that the initial door opening and closing data can be empty. As the number of learning times increases, the door opening and closing data becomes more and more accurate and comprehensive.

[0143] Step 406: Update the door opening and closing data based on the comparison result of the map information and the historical environment map information.

[0144] It can be understood that if there are door opening and / or door closing actions in the environmental area, there will be differences in the boundaries between the map information and the historical environmental map information. Specifically, if a door body is closed, a second independent area corresponding to the door closing will appear in the map information obtained based on the incremental map construction, and the corresponding door line position will be extracted based on the contour comparison; if a door body is a newly opened door body compared with the historical environmental map information, the first independent area corresponding to the door opening will be obtained by comparing the boundaries of the map information and the historical environmental map information, and the corresponding door line position will be extracted based on the contour comparison.

[0145] If the extracted gate line position of the independent area is an existing gate line position in the door opening and closing data, the statistical number of the corresponding gate line position is increased by one; if it is determined that the extracted gate line position is a gate line position that is not in the door opening and closing data, it is determined to be a newly identified gate line position, and the corresponding gate line position is added to the door opening and closing data and the statistical number is set to one.

[0146] Step 407: Perform initial area segmentation on the map information based on the door opening and closing data.

[0147] Here, the goal line position with a statistical number of more than 3 times can be confirmed as the goal line position for real and reliable area segmentation (i.e., the target goal line position), and the map information is initially divided into regions based on the target goal line position to obtain the first partition result of the environmental area.

[0148] Step 408 , determining whether the conditions for continuing segmentation are met, if so, continuing to perform the aforementioned step 404 on the region after the initial region segmentation, and executing step 409 , if not, executing step 409 .

[0149] Here, it can be determined whether the area after the environmental area is divided based on the first partitioning result meets the segmentation conditions for continued segmentation. If so, the area after the environmental area is divided based on the first partitioning result is continued to be segmented, and step 409 is executed. If the area after the first partitioning result does not meet the conditions for continued segmentation, the first partitioning result is used as the partitioning result of the environmental area, and step 409 is executed.

[0150] Step 409: Update historical environment map information.

[0151] Here, the area sizes of the acquired map information and the stored historical environment map information may be compared. If the map information is larger than the historical environment map information, the stored historical environment map information may be updated based on the map information.

[0152] It can be understood that the method of this application example, as the number of regional segmentation of the environmental area increases, the learned door opening and closing data becomes more and more accurate, thereby making the partitioning results of the environmental area more and more accurate, which is conducive to improving the accuracy of regional segmentation. It can better overcome the defects of limited partitioning accuracy of traditional regional segmentation of environmental maps based on watershed segmentation, morphological segmentation, etc., and thus effectively improve the partition cleaning effect of cleaning equipment.

[0153] The following is an example description of the case where the updated data related to the environmental area is a newly added area compared to the set map information. As shown in Figure 5, the map update method includes:

[0154] Step 502: Acquire a first map for pre-completing house type recognition, and acquire a second map for simultaneous positioning and mapping during the movement of the sweeping robot.

[0155] Here, the first map corresponds to the aforementioned set map information, and the second map corresponds to the aforementioned map information.

[0156] Step 504: Determine the newly added area of ​​the second map compared to the first map.

[0157] Step 506: Determine the adjacent relationship between the newly added area and at least one first sub-area in the first map.

[0158] Step 508: Determine the display state of the newly added area according to the adjacent relationship. The display state includes an independent state and a fused state.

[0159] Step 510: Display the newly added area in the second map according to the display status.

[0160] The map update method provided in this embodiment is applied to cleaning equipment, such as a robot vacuum cleaner. First, a second map, pre-identified for the apartment type, is acquired. This map contains information about the room's structure and layout. Then, as the cleaning equipment moves, the second map is acquired in real time using synchronized positioning and mapping technology. This map contains information about the cleaning equipment's current location and surrounding environment. By comparing and analyzing the first and second maps, newly added areas in the second map relative to the first map are identified—that is, newly appeared areas not yet marked in the first map. For each newly added area, its adjacency relationship with at least one sub-area in the first map is determined, specifically which existing areas are closely connected to or adjacent to the newly added area. Based on these determined adjacency relationships, the display status of each newly added area is determined. Specifically, if the newly added area does not clearly overlap or touch an existing sub-area, it is set to an independent state; if the newly added area clearly overlaps or touches an existing sub-area, it is set to a fused state. Finally, the display status of each newly added area is determined, and the newly added area is marked or displayed in the second map to update the map and reflect its presence and location.

[0161] It can be understood that the solution proposed in this application can update the map in real time and identify newly added areas while the cleaning equipment is performing its tasks. It also determines the display status of the newly added areas based on the adjacent relationship between the newly added areas and the existing areas, thereby more accurately reflecting the structure of the actual environment in the map. Such an update method can improve the accuracy and visualization of the map, provide more precise navigation and cleaning instructions for the cleaning equipment, and improve the working efficiency and accuracy of the cleaning equipment. At the same time, it also improves the user experience, making the map display of the cleaning equipment more accurate and easy to understand.

[0162] It should be emphasized that this solution can determine the specific display status based on the adjacent relationship, so that small areas and elongated areas can be integrated with adjacent rooms, avoiding the generation of too many cumbersome new areas, and greatly optimizing the display after the map is updated.

[0163] In one embodiment, as shown in FIG6 , determining the newly added area of ​​the second map compared to the first map includes: step 5042 : displaying the first map and the second map in an overlay manner; and step 5044 : comparing the second map and the first map to determine at least one newly added area.

[0164] When determining the newly added areas, it is mainly achieved through superposition and comparison. Specifically, the first map and the second map can be superimposed together at an appropriate scale and position so that they are aligned in the same coordinate system, which facilitates comparative analysis. When making a comparison, all areas or grid cells of the second map will be traversed first: each area or grid cell in the second map will be traversed to check whether there is a corresponding area or grid cell in the first map, and then the newly added areas will be confirmed. For areas that exist in the second map but have no corresponding areas or grid cells in the first map, they are newly added areas. These newly added areas are marked for subsequent processing. It can be understood that this solution can accurately determine the newly added areas of the second map compared to the first map. These newly added areas can represent new areas or unknown environments detected during the movement of the cleaning equipment, and play an important role in updating and optimizing the map. In the next step, based on the specific situation of the newly added area, its adjacent relationship with the known sub-areas can be further determined, as well as whether it needs to be integrated into the adjacent room or displayed as an independent area.

[0165] Furthermore, for the newly detected areas, the boundaries may be further refined and smoothed to reduce jagged edges or discontinuities in the map display and improve the display effect.

[0166] For newly added areas, boundary outlines can be generated based on actual conditions to better show their shapes and locations on the map.

[0167] In one embodiment, determining the adjacent relationship between the newly added area and at least one first sub-area in the first map, as shown in FIG7 , includes: step 5062: determining at least one first sub-area in the first map; step 5064: determining whether the newly added area is adjacent to any first sub-area and generating a judgment result; step 5066: determining the adjacent relationship based on the judgment result.

[0168] Traverse all known areas or grid cells in the first map and divide them into different sub-areas. Common image processing and segmentation algorithms, such as region growing algorithm, watershed algorithm, etc., can be used to segment the map and obtain multiple sub-areas. Traverse the boundaries or grid cells of the newly added area and perform collision detection with all first sub-areas in the first map. If the boundaries or grid cells of the newly added area are adjacent to or overlap with the boundaries or grid cells of any first sub-area, they are determined to be adjacent. Record the judgment results. Boolean data structures or matrices can be used to represent the adjacent relationship between the newly added area and each first sub-area, or the structure of a graph can be used to represent the relationship between them. Finally, based on the judgment results, determine which first sub-areas in the first map the newly added area is adjacent to. If the newly added area is adjacent to multiple first sub-areas, the appropriate adjacent sub-area can be selected based on a trade-off between adjacent areas, distances, and other factors.

[0169] It can be understood that through the above steps, the adjacent relationship between the newly added area and at least one first sub-area in the first map can be determined. This helps determine whether to merge the newly added area into the adjacent sub-area or display it as an independent area, thereby optimizing the map display effect and the navigation performance of the cleaning robot during the map update process.

[0170] In one embodiment, as shown in FIG8 , displaying the newly added area in the second map according to the display status specifically includes: step 5102: determining the area parameters and shape parameters of the newly added area; step 5104: when the newly added area is adjacent to at least one first sub-area, if the area parameters and shape parameters meet a preset fusion threshold, determining that the display status of the newly added area is a fusion state, and displaying the newly added area in fusion with the first sub-area; otherwise, determining that the display status of the newly added area is an independent state, and displaying the newly added area independently in the second map.

[0171] When displaying a newly added area, it is necessary to first calculate the boundary or grid unit of the newly added area to obtain the area parameters of the newly added area to indicate the size of the newly added area. At the same time, the shape parameters of the newly added area, such as aspect ratio, contour shape, etc., can be calculated to describe the morphological characteristics of the newly added area. Then, the adjacent relationship between the newly added area and at least one first sub-area is determined in the first map. If the newly added area is adjacent to at least one first sub-area, the area parameters and shape parameters of the newly added area are compared with the preset fusion threshold. The preset fusion threshold is a parameter set according to actual conditions, which is used to determine whether the newly added area is fused with the adjacent first sub-area.

[0172] If both the area parameter and the shape parameter of the newly added region meet the conditions of the fusion threshold, the display state of the newly added region is determined to be a fusion state, and the newly added region is fused with the adjacent first sub-region for display.

[0173] If the area parameter and shape parameter of the newly added area do not meet the conditions of the fusion threshold, the display state of the newly added area is determined to be an independent state, and the newly added area is displayed independently in the second map.

[0174] If the newly added area is not adjacent to any first sub-area, its display state is independent, and the newly added area is displayed independently in the second map.

[0175] It will be appreciated that in this solution, the display status of the newly added areas can be determined based on area parameters, shape parameters, and neighboring relationships, thereby optimizing the map display effect in the second map. For larger newly added areas, if they have a similar shape to the adjacent first sub-area and a smaller area, they can be displayed as a fusion to avoid generating too many small newly added areas. For larger newly added areas, if they have a significantly different shape from the adjacent first sub-area or a larger area, they can be displayed as independent areas to maintain map clarity and aesthetics.

[0176] Based on any of the above embodiments, optionally, the display status of the newly added area is determined according to the adjacent relationship, specifically including: when the newly added area is displayed in a fusion with the first sub-area, determining whether the updated first sub-area after the fusion is separated; if the updated first sub-area needs to be separated, the separated area is newly named and displayed independently, and the remaining area retains the original name.

[0177] After the newly added area is merged with the first sub-area and displayed, the updated first sub-area is obtained. Determine whether the updated first sub-area is separated into multiple independent sub-areas by the newly added area. If the updated first sub-area is separated into multiple independent sub-areas by the newly added area, it is necessary to newly name these separated areas and display them independently in the second map. The new naming can adopt certain rules, such as using the name of the original area plus a serial number or letter identifier to keep the map neat and easy to understand. For the part that is not separated by the newly added area, that is, the area that retains the shape and name of the original first sub-area, its original name remains unchanged.

[0178] This solution integrates the newly added area and the first sub-area, while also creating new names and displaying separate areas, thus maintaining map cleanliness and readability. This update method effectively avoids the tedious display of newly added areas while improving the aesthetics and visualization of the map. During the real-time map update process, this strategy will help the robot vacuum generate more accurate, clear, and beautiful maps, improving its navigation and cleaning performance.

[0179] Based on any of the above embodiments, optionally, displaying a newly added area in the second map according to the display status includes: determining contour boundary information of at least one second sub-area in the second map according to the display status of the newly added area; and generating a second map including the newly added area according to the contour boundary information of all second sub-areas.

[0180] When displaying a newly added area, it is mainly classified and displayed according to the previously determined display status. Specifically, for a newly added area in an independent state, a new second sub-area is created in the second map, and its boundary information is set as the contour boundary information of the newly added area. For a newly added area in a fused state, based on the adjacent first sub-areas, the contour boundary information of the newly added area and the contour boundary information of the adjacent first sub-areas are merged to generate the contour boundary information of a new second sub-area. This new second sub-area will contain the fused area information. Finally, based on the contour boundary information of all second sub-areas, the information of the corresponding area in the second map is updated. The boundary information of the newly added area and other second sub-areas is merged to generate a second map containing the newly added area.

[0181] In this solution, the newly added area's outline boundary information can be accurately displayed in the second map based on its display status, and can be merged with other areas or displayed independently. This update method maintains the map's clarity and aesthetics, improving its readability and practicality. During the real-time map update process, this strategy will help the robot vacuum generate more accurate, clear, and aesthetically pleasing maps, improving its navigation and cleaning performance.

[0182] In a specific embodiment, as shown in FIG9 , a control method for a sweeping robot is provided, which is mainly used for map fusion and real-time display, including: step 902: obtaining a SLAM map and a region segmentation map; step 904: superimposing the two maps to obtain a newly added area; step 906: determining whether it is an isolated area; if so, step 908: displaying a gray newly added area, otherwise, step 910: determining the adjacent ID of the newly added area, step 912: if the area is less than 1 square meter or the width is less than 7 pixels, step 914: integrating the area into the adjacent ID, otherwise step 908: displaying a gray newly added area, and finally step 916: updating the boundary and internal obstacles.

[0183] The real-time update process includes the following steps: obtaining the current SLAM grid map and region segmentation map; comparing and analyzing the region segmentation map with the SLAM map to identify newly added regions; for each newly added region, analyzing and determining which sub-region it is adjacent to; based on the area and shape characteristics of the newly added region, determining whether to display it as an independent new region or integrate it into the adjacent room; finally, updating the region segmentation map based on the above analysis results to ensure that the map size is consistent with the latest SLAM map.

[0184] During real-time map updates, small and elongated areas are merged with adjacent rooms to avoid creating too many cumbersome new areas. At the same time, larger areas are displayed as separate new areas.

[0185] After the cleaning task is complete, the system performs a final segmentation. During this phase, larger newly added areas are re-segmented and optimized. This ensures that the map remains accurate and aesthetically pleasing throughout the continuous cleaning task, improving the user experience.

[0186] By adopting the method of the present invention, the problem of too many small areas and elongated areas in the existing map update strategy can be effectively solved, so that the cleaning robot has better navigation and cleaning performance when performing continuous cleaning tasks.

[0187] In a specific embodiment, as shown in Figure 10, a control method for a sweeping robot is provided, which is mainly used for updating the area segmentation map, including: step 902: obtaining a SLAM map and an area segmentation map; step 904: superimposing the two maps to obtain a newly added area; step 906: judging whether it is an isolated area; if so, step 9082: filtering small areas and assigning new IDs to large areas, otherwise, step 910: determining the adjacent IDs of the newly added area, step 913: if the area is greater than 3 square meters, step 914: merging the area with the adjacent area, otherwise step 915: assigning the fused area to the original ID, after step 914, executing step 9152: judging whether the fused area is separable, if so, step 9153: assigning a new ID to the separable new area, and the original area ID remains unchanged, otherwise step 915: assigning the fused area to the original ID; and finally step 9162: updating the boundary and obstacle information.

[0188] The region segmentation update strategy mainly includes the following: obtaining the current SLAM grid map and region segmentation map; comparing and analyzing the region segmentation map with the SLAM map to identify new regions; analyzing each new region and determining its adjacent sub-regions; based on the area and shape characteristics of the new region, integrating smaller regions into adjacent rooms; for larger new regions, treating them and adjacent rooms as a whole region and re-segmenting them. If these larger regions cannot be further subdivided, they are integrated into adjacent rooms; if they can be subdivided, they are displayed as new sub-regions; finally, updating the region boundary outline and internal obstacle information to ensure that the latest region segmentation map accurately reflects the actual environment.

[0189] By adopting this update strategy, the display effect and accuracy of the area segmentation map can be effectively optimized, thereby providing more accurate navigation and cleaning guidance for the cleaning robot.

[0190] Overall, this solution provides a real-time display and update of segmented maps for home environments, ensuring optimal visual quality while guaranteeing the authenticity and accuracy of the map in its current state. It can be widely used in scenarios such as smart homes and interior layout planning, helping users better understand and master the spatial conditions of their homes. It has broad applications in both commercial and home robotics. It focuses on real-time updates to existing segmented maps, ensuring optimal map display through filtering, deletion, and fusion of newly added areas. This not only improves map readability and user experience, but also provides a more precise reference for robot navigation and mission planning.

[0191] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a map updating device, which corresponds to the above-mentioned map updating method. The various steps in the above-mentioned map updating method embodiment are also fully applicable to this map updating device embodiment.

[0192] As shown in Figure 11, the map updating device includes an acquisition module 1101 and a processing module 1102. The acquisition module 1101 is configured to acquire map information of an environmental area; the processing module 1102 is configured to update the map information based on update data related to the environmental area to obtain the updated map information.

[0193] In some embodiments, the processing module 1102 is configured to:

[0194] Acquiring door opening and closing data within the environmental area;

[0195] The map information is initially segmented into regions based on the door opening and closing data to obtain a first partition result of the environmental region.

[0196] In some embodiments, the processing module 1102 obtains the door opening and closing data in the environmental area, including:

[0197] If it is determined that the environmental area is segmented after the first segmentation, the door opening and closing data is updated based on the comparison result between the map information and the stored historical environmental map information.

[0198] In some embodiments, updating the door opening and closing data based on the comparison result between the map information and the stored historical environment map information includes:

[0199] Based on a boundary comparison between the map information and the historical environment map information, it is determined that there is a first independent area corresponding to an open door and / or a second independent area corresponding to a closed door, and then the door line position of each independent area is extracted based on the boundary difference between the map information and the historical environment map information;

[0200] If it is determined that the extracted gate line position is an existing gate line position in the gate opening and closing data, the statistical number of the corresponding gate line position is increased by one;

[0201] If it is determined that the extracted door line position is a door line position not included in the door opening and closing data, the corresponding door line position is added to the door opening and closing data and the number of counts is set to one;

[0202] The door opening and closing data stores the door line position and the statistical number of the door line position.

[0203] In some embodiments, performing initial region segmentation on the map information based on the door opening and closing data to obtain a first partition result of the environmental area includes:

[0204] Extracting the gate line positions whose statistical number of times is greater than or equal to a set threshold from the gate opening and closing data, and taking the gate line positions whose statistical number of times is greater than or equal to the set threshold as target gate line positions;

[0205] The map information is initially divided into regions based on the target goal line position to obtain a first partition result of the environmental region.

[0206] In some embodiments, the processing module 1102 is further configured to:

[0207] The environmental area is further segmented based on the first partitioning result to obtain a second partitioning result of the environmental area.

[0208] Exemplarily, the further segmenting of the environmental area based on the first partitioning result to obtain a second partitioning result of the environmental area includes:

[0209] The area after the environmental area is divided based on the first partitioning result is segmented based on a watershed segmentation or morphological segmentation method to obtain a second partitioning result of the environmental area.

[0210] Exemplarily, the processing module 1102 is further configured to:

[0211] If it is determined to perform the first regional segmentation on the environmental area, the acquired map information is regionally segmented based on watershed segmentation or morphological segmentation to obtain a third partition result of the environmental area, and the map information is saved as historical environmental map information.

[0212] Exemplarily, if it is determined that the environmental area is segmented after the first segmentation, the processing module 1102 is further configured to:

[0213] The area sizes of the acquired map information and the stored historical environment map information are compared, and if the map information is larger than the historical environment map information, the stored historical environment map information is updated based on the map information.

[0214] In some embodiments, the processing module 1102 is configured to:

[0215] Determining a newly added area of ​​the map information compared to the set map information, wherein the set map information represents a first map of the environmental area in which apartment type identification is pre-completed;

[0216] Determining an adjacent relationship between the newly added area and at least one first sub-area in the first map;

[0217] Determining a display state of the newly added area according to the adjacent relationship, where the display state includes an independent state and a fused state;

[0218] The newly added area is displayed in a second map corresponding to the map information according to the display state.

[0219] Exemplarily, determining the newly added area of ​​the map information compared to the set map information includes:

[0220] Overlaying and displaying the first map and the second map;

[0221] The second map and the first map are compared to determine at least one newly added area.

[0222] Exemplarily, determining the adjacent relationship between the newly added area and at least one first sub-area in the first map includes:

[0223] determining at least one of the first sub-areas in the first map;

[0224] Determine whether the newly added area is adjacent to any of the first sub-areas, and generate a determination result;

[0225] The neighbor relationship is determined according to the judgment result.

[0226] Exemplarily, displaying the newly added area in the second map corresponding to the map information according to the display state includes:

[0227] Determining area parameters and shape parameters of the newly added area;

[0228] When the newly added area is adjacent to at least one of the first sub-areas, if the area parameter and the shape parameter meet a preset fusion threshold, the display state of the newly added area is determined to be a fusion state, and the newly added area is displayed in a fusion state with the first sub-area; otherwise, the display state of the newly added area is determined to be an independent state, and the newly added area is displayed independently in the second map.

[0229] Exemplarily, determining the display state of the newly added area according to the neighbor relationship includes:

[0230] In the case of merging the newly added area with the first sub-area for display, determining whether the updated first sub-area after merging is separated;

[0231] If the updating of the first sub-region needs to be separated, the separated region is newly named and displayed independently, and the remaining region retains the original name.

[0232] Exemplarily, displaying the newly added area in the second map corresponding to the map information according to the display state includes:

[0233] Determining outline boundary information of at least one second sub-area in the second map according to the display state of the newly added area;

[0234] A second map including the newly added area is generated according to the contour boundary information of all the second sub-areas.

[0235] Exemplarily, the acquisition module 1101 is specifically configured as follows:

[0236] Based on the SLAM technology, two-dimensional grid map data of the environmental area is constructed, and the two-dimensional grid map data is used as map information of the environmental area.

[0237] In actual application, the acquisition module 1101 and the processing module 1102 can be implemented by a processor of the cleaning device. Of course, the processor needs to run the computer program in the memory to implement its functions.

[0238] It should be noted that the map updating device provided in the above embodiment, when controlling cleaning equipment, is merely illustrated by the division of the aforementioned program modules. In actual applications, the aforementioned processes can be assigned to different program modules as needed, i.e., the internal structure of the device can be divided into different program modules to complete all or part of the aforementioned processes. Furthermore, the map updating device provided in the above embodiment and the map updating method embodiment share the same concept. The specific implementation process is detailed in the method embodiment and will not be further elaborated here.

[0239] Based on the hardware implementation of the above program modules and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a cleaning device. Figure 12 only shows an exemplary structure of the cleaning device rather than the entire structure. Part or all of the structure shown in Figure 12 can be implemented as needed.

[0240] As shown in Figure 12, the cleaning equipment 1200 that the embodiment of the present application provides comprises: at least one processor 1201, memory 1202 and user interface 1203.The various components in the cleaning equipment 1200 are coupled together by bus system 1204.It will be appreciated that bus system 1204 is used to realize the connection communication between these components.Bus system 1204 also comprises power bus, control bus and status signal bus except comprising data bus.But for the sake of clear explanation, various buses are all marked as bus system 1204 in Figure 12.

[0241] The user interface 1203 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.

[0242] The memory 1202 in the embodiment of the present application is used to store various types of data to support the operation of the cleaning device. Examples of such data include: any computer program used to operate on the cleaning device.

[0243] The map update method disclosed in the embodiments of this application can be applied to or implemented by processor 1201. Processor 1201 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the map update method can be completed by hardware integrated logic circuits or software instructions in processor 1201. Processor 1201 can be a general-purpose processor, a digital signal processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. Processor 1201 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium located in memory 1202. Processor 1201 reads information from memory 1202 and, in conjunction with its hardware, completes the steps of the map update method provided in the embodiments of this application.

[0244] In an exemplary embodiment, the cleaning device can be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.

[0245] It is understood that memory 1202 can be volatile memory or non-volatile memory, or can include both volatile and non-volatile memory. Non-volatile memory can include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disk, or compact disc read-only memory (CD-ROM); magnetic surface memory can include magnetic disk storage or tape storage. Volatile memory can include random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memories.

[0246] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, which can be a computer-readable storage medium, for example, including a memory 1202 storing a computer program. The computer program can be executed by the processor 1201 of the cleaning device to complete the steps of the method of the embodiment of the present application. The computer-readable storage medium can be a memory such as ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0247] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0248] In addition, the technical solutions described in the embodiments of the present application can be arbitrarily combined without conflict.

[0249] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A map updating method, comprising: Get map information of the environmental area; Based on the update data related to the environmental area, the map information is updated to obtain updated map information.

2. The method according to claim 1, wherein: The updating of the map information based on the update data related to the environmental area includes: Acquiring door opening and closing data in the environmental area; The map information is initially segmented into regions based on the door opening and closing data to obtain a first partition result of the environmental region.

3. The method according to claim 2, wherein: The acquiring of the door opening and closing data in the environmental area includes: If it is determined that the environmental area is segmented after the first segmentation, the door opening and closing data is updated based on the comparison result between the map information and the stored historical environmental map information.

4. The method according to claim 3, wherein: The updating of the door opening and closing data based on the comparison result between the map information and the stored historical environment map information includes: Based on the boundary comparison between the map information and the historical environment map information, it is determined that there is a first independent area corresponding to the door opening and / or a second independent area corresponding to the door closing, and the door line position of each independent area is extracted based on the boundary difference between the map information and the historical environment map information; If it is determined that the extracted gate line position is an existing gate line position in the gate opening and closing data, the statistical number of the corresponding gate line position is increased by one; If it is determined that the extracted door line position is a door line position not included in the door opening and closing data, the corresponding door line position is added to the door opening and closing data and the number of statistics is set to one; The door opening and closing data stores the door line position and the statistical number of the door line position.

5. The method according to claim 2, wherein: The initial area segmentation of the map information based on the door opening and closing data to obtain a first partition result of the environmental area includes: Extracting the door line positions whose statistical times are greater than or equal to a set threshold in the door opening and closing data, and taking the door line positions whose statistical times are greater than or equal to the set threshold as the target door line positions; The map information is initially divided into regions based on the target gate line position to obtain a first partition result of the environmental region.

6. The method according to claim 2, wherein: The method further comprises: The area of ​​the environmental area divided based on the first partition result is further segmented to obtain a second partition result of the environmental area.

7. The method according to claim 6, wherein: The step of continuing to segment the area divided based on the first partition result of the environment area to obtain a second partition result of the environment area includes: The area after the environmental area is divided based on the first partition result is segmented based on a watershed segmentation or a morphological segmentation method to obtain a second partition result of the environmental area.

8. The method according to claim 2, wherein: The method further comprises: If it is determined to perform the first regional segmentation on the environmental area, the acquired map information is segmented based on watershed segmentation or morphological segmentation to obtain a third partition result of the environmental area, and the map information is saved as historical environmental map information.

9. The method according to claim 3, wherein: If it is determined that the environmental area is segmented after the first segmentation, the method further includes: The area sizes of the acquired map information and the stored historical environment map information are compared, and if the map information is larger than the historical environment map information, the stored historical environment map information is updated based on the map information.

10. The method according to claim 1, wherein: The updating of the map information based on the update data related to the environmental area includes: Determine a newly added area of ​​the map information compared to the set map information, wherein the set map information represents a first map of the environmental area in which the house type identification is completed in advance; Determine an adjacent relationship between the newly added area and at least one first sub-area in the first map; Determine a display state of the newly added area according to the adjacent relationship, where the display state includes an independent state or a fused state; The newly added area is displayed in a second map corresponding to the map information according to the display state.

11. The method according to claim 10, wherein: The determining the newly added area of ​​the map information compared with the set map information includes: Overlaying and displaying the first map and the second map; The second map is compared with the first map to determine at least one newly added area.

12. The method according to claim 11, wherein: The determining the adjacent relationship between the newly added area and at least one first sub-area in the first map includes: determining at least one of the first sub-areas in the first map; Determine whether the newly added area is adjacent to any of the first sub-areas, and generate a determination result; The neighbor relationship is determined according to the judgment result.

13. The method according to claim 10, wherein: The displaying the newly added area in the second map corresponding to the map information according to the display state includes: Determining area parameters and shape parameters of the newly added area; In the case that the newly added area is adjacent to at least one of the first sub-areas, if the area parameter and the shape parameter meet the preset fusion threshold, the display state of the newly added area is determined to be a fusion state, and the newly added area is displayed fused with the first sub-area; otherwise, the display state of the newly added area is determined to be an independent state, and the newly added area is displayed independently in the second map.

14. The method according to claim 13, wherein: The determining the display state of the newly added area according to the neighbor relationship includes: In the case where the newly added area is displayed in a fused manner with the first sub-area, determining whether the fused updated first sub-area is separated; If the updating of the first sub-region needs to be separated, a new name is given to the separated region and it is displayed independently, and the remaining region retains the original name.

15. The method according to any one of claims 10 to 14, wherein: The displaying the newly added area in the second map corresponding to the map information according to the display state includes: Determining outline boundary information of at least one second sub-area in the second map according to the display state of the newly added area; A second map including the newly added area is generated according to the contour boundary information of all the second sub-areas.

16. The method according to claim 1, wherein: The obtaining of map information of the environmental area includes: Based on the simultaneous positioning and mapping SLAM technology, two-dimensional grid map data of the environmental area is constructed, and the two-dimensional grid map data is used as map information of the environmental area.

17. A map updating device, comprising: An acquisition module configured to acquire map information of an environmental area; The processing module is configured to update the map information based on the update data related to the environmental area to obtain the updated map information.

18. A cleaning device comprising: A processor and a memory for storing a computer program that can be executed on the processor, wherein: The processor is configured to execute the steps of the method according to any one of claims 1 to 16 when running a computer program.

19. A computer storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 16 are implemented.

Citation Information

Patent Citations

  • Robot partition map establishing method and device and robot

    CN113503877A

  • Autonomous mobile device control method, apparatus and device, and readable storage medium

    CN113703439A

  • Environment map construction method and device and storage medium

    CN114332289A

  • Method for traversing a subarea, method for cleaning, and cleaning robot thereof

    US20200192399A1

Cited By

  • Robot navigation method, robot and computer readable storage medium

    CN120820161A

  • Map fusion method, related device, equipment and medium

    CN121527102A