Region segmentation method and device, equipment and storage medium
By monitoring and updating bump information in real time, identifying and setting up dynamic virtual walls, it solves the problem of sweepers identifying high and low thresholds and sliding doors in home environments, improves cleaning efficiency and user experience, and extends equipment life.
Patent Information
- Application Number
- CN202410640886.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-08-30
AI Technical Summary
It is difficult for existing sweepers to accurately identify and handle special structures such as high and low thresholds and sliding doors in a home environment, resulting in inaccurate cleaning paths, causing bumps, and affecting cleaning efficiency and user experience.
By monitoring the posture information of the sweeper in real time, the bump count in the grid map is updated, a bump map is constructed, and the bump area is clustered and length calculated. When the length of the bump area is greater than the length of the sweeper body, a dynamic virtual wall is set to Divide the area.
It achieves intelligent identification and avoidance of bumpy areas in the home environment, improves cleaning efficiency, shortens cleaning time, enhances user experience, and extends the service life of the sweeper.
Smart Images

Figure CN118570228A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of sweeping robots, and in particular to a region segmentation method, device, equipment and storage medium. Background Art
[0002] In the field of smart home, sweepers are used more and more widely as an automated cleaning device. However, in the home environment, areas such as kitchens and balconies are usually designed with high and low thresholds and sliding doors. These special structures bring many challenges to the cleaning work of sweepers.
[0003] The traditional sweeper cleaning strategy usually performs full coverage cleaning based on the room boundary contour, that is, first determine the cleaning starting point, then walk counterclockwise along the room boundary to return to the starting point, and calculate the cleaning path based on this. However, when this cleaning path crosses the threshold area, due to the height difference of the threshold, the sweeper is prone to bumps during the movement, which not only generates noise, but also may cause garbage to fall, greatly affecting the user experience. In order to solve this problem, the existing technology attempts to divide the cleaning area into two or more sub-areas through the threshold recognition method based on laser maps and door width prior knowledge, so as to prevent the sweeper from crossing the threshold. However, in actual applications, the width of the sliding door at the connection between the balcony and the living room space is often significantly different from the width of the traditional room door, which makes it impossible to accurately divide the cleaning area, and due to the accumulated errors of the laser ranging accuracy and the mapping algorithm, there is often a deviation between the threshold position on the laser map and the actual threshold position, which causes the sweeper to still touch the threshold during the cleaning process, causing bumps. Summary of the invention
[0004] In order to solve the problem that the existing technology cannot accurately identify and process special structures such as thresholds and sliding doors in the home environment, and accurately separate the home area, thereby affecting the cleaning efficiency and user experience of the sweeper in the home environment.
[0005] The present application provides a region segmentation method, comprising the following steps:
[0006] Get the environment grid map constructed by the sweeper;
[0007] When the sweeping robot is cleaning the room, the posture information of the sweeping robot body is monitored in real time;
[0008] updating the bump count in the grid map according to the posture information monitored in real time;
[0009] After the cleaning is completed, a bump map is constructed based on the updated bump count;
[0010] Clustering bumpy areas in the bumpy map;
[0011] Calculate the length of each bumpy area after clustering;
[0012] When the length of the bumpy area is greater than the body length of the sweeping machine, the corresponding bumpy area is set as a dynamic virtual wall to achieve area segmentation.
[0013] Furthermore, the posture information of the sweeping robot body includes roll angle and pitch angle information.
[0014] Further, updating the bump count in the grid map according to the posture information monitored in real time includes:
[0015] When the rolling angle of the sweeper is greater than a preset rolling angle threshold or the pitch angle is greater than a preset pitch angle threshold, the bump count of the current grid is increased;
[0016] When the rolling angle of the sweeping machine is less than a preset rolling angle threshold and the pitching angle is less than a preset pitching threshold, and the current position grid has a bump count, the bump count of the current position grid is reduced.
[0017] Furthermore, the step of constructing a bump map according to the updated bump count includes:
[0018] Iterate through each grid in the grid map and read the bump count of each grid;
[0019] If the bump count of the grid is greater than a preset count threshold, the corresponding grid position in the bump map is marked as a bump state.
[0020] Furthermore, the step of clustering the bumpy areas in the bumpy map includes:
[0021] Iterate through each grid in the bump map;
[0022] If the current grid is in a bumpy state, then check its adjacent grids;
[0023] If there is a bumpy state in the adjacent grid, the current grid is moved one step in that direction, and new adjacent grids are continuously checked until there are no grids in the bumpy state around.
[0024] Furthermore, the step of calculating the length of each bumpy area after clustering includes:
[0025] Extracting each bumpy area clustered in the bumpy map;
[0026] The length of each of the bumpy regions is calculated, and the length can be obtained by calculating the number of grids contained in each of the bumpy regions or the length information of a straight line after fitting the shape of each of the bumpy regions.
[0027] Furthermore, when the length of the bumpy area is greater than the length of the body of the sweeper, the step of setting the corresponding bumpy area as a dynamic virtual wall includes:
[0028] Go through each bumpy area;
[0029] If the length of the bumpy area is greater than the body length of the sweeping machine, the corresponding bumpy area is set as a dynamic virtual wall to prevent the sweeping machine from entering the bumpy area, thereby achieving area segmentation.
[0030] The present application also provides a region segmentation device, comprising:
[0031] Grid map acquisition module: used to obtain the environmental grid map constructed by the sweeper;
[0032] Monitoring module: used for real-time monitoring of the posture information of the body of the sweeping machine when the sweeping machine is cleaning the room;
[0033] A grid bump counting module; updating the bump count in the grid map according to the posture information monitored in real time;
[0034] Bump map construction module: used to construct a bump map according to the updated bump count after cleaning is completed;
[0035] Clustering module: used for clustering the bumpy areas in the bumpy map;
[0036] Calculation module: used to calculate the length of each bumpy area after clustering;
[0037] Dynamic virtual wall construction module: when the length of the bumpy area is greater than the body length of the sweeper, the corresponding bumpy area is set as a dynamic virtual wall to achieve area segmentation.
[0038] The present application also provides a region segmentation device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the region segmentation method.
[0039] The present application also provides a storage medium, in which at least one instruction or at least one program is stored. The at least one instruction or the at least one program is loaded and executed by a processor to implement the region segmentation method.
[0040] Implementing the embodiments of the present invention has the following beneficial effects:
[0041] This application can adaptively identify the bumpy areas in the home environment by real-time monitoring of the posture information of the sweeper and updating the bump count in the grid map; after cleaning, a bump map is constructed according to the updated bump count; by clustering the bumpy areas in the bump map and calculating the length of each bumpy area after clustering; when the length of the bumpy area is greater than the length of the body of the sweeper, the corresponding bumpy area is set as a dynamic virtual wall, thereby realizing the intelligent segmentation of the cleaning area. By dynamically identifying and avoiding bumpy areas, the sweeper can dynamically identify the bumpy areas of the home, so that the planned cleaning path does not intersect with the bumpy areas, focusing on cleaning flat areas, thereby reducing the dwelling time in unnecessary areas and significantly improving the cleaning efficiency. This not only shortens the cleaning time, but also provides users with a better user experience. And the setting of the dynamic virtual wall effectively prevents the sweeper from entering unsafe bumpy areas with uneven heights, which not only protects the safety of the sweeper, but also reduces the damage to the machine caused by bumps, thereby extending the service life of the sweeper. As multiple cleanings are performed, the robot vacuum cleaner is able to continuously learn and optimize its ability to identify and handle bumpy areas, making it more flexible and efficient in adapting to different home environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 is a flow chart of a region segmentation method according to an embodiment of the present invention;
[0044] Figure 2 is a flow chart of updating the bump count in the grid map in real time according to an embodiment of the present invention;
[0045] Figure 3 is a flow chart of constructing a bumpy map according to an embodiment of the present invention;
[0046] Figure 4 is a flow chart of clustering bumpy areas according to an embodiment of the present invention;
[0047] Figure 5 is a flow chart of calculating the length of a bumpy area according to an embodiment of the present invention;
[0048] Figure 6 is a flow chart of setting a dynamic virtual wall according to an embodiment of the present invention;
[0049] Figure 7 This is an application scenario diagram of the region segmentation method according to an embodiment of the present invention;
[0050] Figure 8 The present invention is a hardware structure block diagram of a server of a region segmentation method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0052] For the following defined terms, these definitions shall apply unless a different definition is given in the claims or elsewhere in this specification. All numerical values, whether or not explicitly indicated, are defined herein as modified by the term "about". The term "about" generally refers to a numerical range that a person of ordinary skill in the art considers to be equivalent to the stated values to produce substantially the same properties, functions, results, etc. A numerical range indicated by a lower value and a higher value is defined to include all numerical values included in the numerical range and all subranges included in the numerical range.
[0053] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0054] The following combination Figure 1-7 The regional segmentation method provided in the embodiment of the present application is introduced. This specification provides method operation steps such as the embodiment or flow chart, but more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the order of many steps and does not represent the only execution order. When the preparation method is actually executed, it can be executed in the order of the method shown in the embodiment or the accompanying drawings or in parallel. The regional segmentation method may include the following steps:
[0055] S10, obtaining an environment grid map constructed by the sweeping robot.
[0056] Specifically, the sweeper constructs an environmental grid map through built-in lidar or cameras, and converts environmental information into grid data.
[0057] S20, when the sweeping robot is cleaning the room, the posture information of the sweeping robot body is monitored in real time.
[0058] Specifically, the posture information of the sweeping machine body includes at least roll angle information and pitch angle information. During the cleaning process, the sweeping machine can obtain the roll angle and pitch angle of the body in real time through IMU (inertial measurement unit) or other posture sensors. Among them, the roll angle information represents the degree of left and right tilt of the sweeping machine, and the pitch angle information represents the degree of front and back tilt of the sweeping machine. Real-time monitoring of the roll angle and pitch angle provides a basis for accurately judging whether the sweeping machine has entered a bumpy area, thereby improving the accuracy of bumpy area identification.
[0059] S30, updating the bump count in the grid map according to the real-time monitored posture information. Specifically, it includes:
[0060] S31, when the rolling angle of the sweeping machine is greater than a preset rolling angle threshold or the pitching angle is greater than a preset pitching angle threshold, increasing the bump count of the current grid;
[0061] S32, when the rolling angle of the sweeping machine is less than the preset rolling angle threshold and the pitch angle is less than the preset pitch threshold, and the bump count stored in the current position grid is greater than 0 and there is a bump count, the bump count of the current position grid is reduced.
[0062] Specifically, if the roll angle of the sweeper is greater than the preset roll angle threshold or the pitch angle is greater than the preset pitch angle threshold, the bump count of the current grid is increased by 1; if the roll angle of the sweeper is less than the preset roll angle threshold and the pitch angle is less than the preset pitch threshold, and the bump count stored in the current position grid is greater than 0, then the bump count of the current position grid is reduced by 1. By counting the bumps of the grid map, the bumps of the sweeper in the environment can be accurately reflected, avoiding misjudgments caused by single posture abnormalities. Real-time updating of the bump count in the grid map can form more accurate map information, reflecting the unevenness of the ground and the distribution of obstacles, and providing data support for building an accurate bump map.
[0063] It should be noted that the preset roll angle threshold can be a preset roll angle that can reflect the actual bumpy situation but is not too sensitive as a threshold. The preset pitch angle threshold can be a preset pitch angle that can reflect the actual bumpy situation and ensure the safety and stability of the sweeper. In some possible implementations, the setting of the preset roll angle threshold and the preset pitch angle threshold needs to comprehensively consider multiple factors such as the working environment, work requirements, safety, stability and actual test results of the sweeper. Through reasonable settings and optimizations, it can be ensured that the sweeper can accurately detect and record bumpy conditions, providing valuable information for subsequent map construction and path planning.
[0064] S40, after the cleaning is completed, a bump map is constructed according to the updated bump count.
[0065] Specifically, after the cleaning task is completed, a bump map of the entire environment is constructed based on the bump count of each grid. The constructed bump map has the same height and width as the grid map, and can intuitively display the bump distribution of the sweeper in the environment. The specific steps of constructing the bump map based on the updated bump count include:
[0066] S41, traverse each grid in the grid map, and read the bump count of each grid.
[0067] S42: If the bump count of the grid is greater than a preset count threshold, the corresponding grid position in the bump map is marked as a bump state.
[0068] Specifically, the bump state can be a set bump mark. Exemplarily, if the bump count of the grid is greater than a preset count threshold, the grid at the corresponding position in the bump map is marked as a mark array or a similar data structure representing the bump state, and the bump default value of the bump map is 0, which means no bump. The count threshold can be a pre-set reasonable bump count threshold. This threshold means that if more than a certain number of bump events occur in the area, it is considered that there is a significant bump problem in the area.
[0069] S50: Clustering the bumpy areas in the bumpy map.
[0070] Specifically, clustering is performed on continuous bumpy areas in the bumpy map to form independent bumpy areas. This simplifies the subsequent processing and improves computational efficiency. In the embodiment of the present application, the step of clustering the bumpy areas in the bumpy map includes:
[0071] S51, iteratively visit each grid in the bump map.
[0072] S52: If the current grid is in a bumpy state, check its adjacent grids. By checking the states of the adjacent grids, continuous bumpy areas can be identified.
[0073] S53, if there is a bumpy state in the adjacent grid, move the current grid one step in that direction, and continue to check new adjacent grids until there are no bumpy grids around.
[0074] Specifically, the adjacent grids include grids in eight directions, namely, the front, back, left, right, left front, right front, left rear, and right rear of the current position. In practical applications, a starting grid is first set, and each grid in the bumpy map is visited starting from the starting grid in a certain traversal order, such as from left to right or from top to bottom. For each visited grid, it is checked whether it is in a bumpy state; if the current grid is in a bumpy state, its adjacent grids are checked; if there is a bumpy state in the adjacent grids, one of the directions is selected for movement, and after the current grid is moved to the new position, the adjacent grids of the position are continued to be checked. When all adjacent grids are no longer in a bumpy state, the recursive check is stopped.
[0075] The method for clustering bumpy areas in a bumpy map in an embodiment of the present application can ensure that the clustering results maintain the continuity of the bumpy areas through adjacent grids, avoiding unnecessary calculations, and through continuous movement and checking, it can ensure that all continuous bumpy areas are fully identified, thereby improving the accuracy and efficiency of the clustering results.
[0076] S60, calculating the length of each bumpy area after clustering. Specifically, it includes:
[0077] S61, extracting each bumpy area clustered in the bumpy map.
[0078] After the clustering step is completed, a bump map containing multiple clustered bump regions is obtained. Traverse the entire bump map and identify the bump regions for each cluster. Each region consists of a series of consecutive grids marked as bumpy. For each identified bump region, extract its boundary information and internal grid data. This can usually be achieved by using a marked array or similar data structure, where the state of each grid is clearly marked as bumpy or non-bumpy.
[0079] S62, calculating the length of each bumpy area, where the length can be obtained by calculating the number of grids contained in each bumpy area or the length of a straight line after fitting the shape of each bumpy area.
[0080] In some possible implementations, the length of the bumpy region can be calculated by a grid count method. Specifically, the grids inside each bumpy region are traversed and counted. The grid count directly reflects the size of the region; according to the actual length represented by each grid in the real world, the grid count can be converted into a more specific length unit (such as meter or centimeter).
[0081] In some other possible implementations, the length of the bumpy region can be calculated by shape fitting. Specifically, all boundary points, i.e., the grid at the edge of the region, are extracted from each bumpy region. These boundary points are fitted to a straight line by a fitting algorithm, such as the least squares method; and its length is calculated based on the fitted shape.
[0082] In the embodiment of the present application, the length of each clustered bumpy area is calculated, which provides an accurate basis for setting a dynamic virtual wall.
[0083] S70: When the length of the bumpy area is greater than the length of the body of the sweeper, the corresponding bumpy area is set as a dynamic virtual wall to achieve area segmentation. Specifically, the method includes:
[0084] S71, traverse each bumpy area.
[0085] The sweeper or related control system will first identify and mark all bumpy areas in the working environment. This can be achieved through built-in sensors or external devices such as lidar or cameras. Then, the sweeper will traverse these marked bumpy areas one by one for subsequent judgment and processing.
[0086] S72: If the length of the bumpy area is greater than the body length of the sweeping robot, the corresponding bumpy area is set as a dynamic virtual wall to prevent the sweeping robot from entering the bumpy area, thereby achieving area segmentation.
[0087] Specifically, for each traversed bumpy area, if the length of the bumpy area is greater than the body length of the sweeper, the control system will set the area as a dynamic virtual wall or set a dynamic virtual wall around the area. The body length is the larger dimension of the length and width of the sweeper.
[0088] In some possible implementations, the dynamic virtual wall can be implemented in a variety of ways, such as by marking a virtual boundary through wireless signals (such as Wi-Fi, Bluetooth, etc.) or physical signals (such as infrared, ultrasound, etc.), so that the sweeper can sense and change its direction when approaching this boundary. The setting of the dynamic virtual wall can prevent the sweeper from entering, effectively isolating the sweeper from contact with the bumpy area, and improving the safety and cleaning efficiency of the sweeper.
[0089] By applying the above region segmentation method, after multiple cleanings, the sweeper can dynamically identify the bumpy area of the home, so that the sweeping path planned by the sweeper does not intersect with the bumpy area. Figure 7As shown, by applying the area segmentation method of the present application, a virtual wall is set in the sliding door area between the balcony and the interior of bedroom two, and the area is divided into two areas, so that the bow-shaped cleaning route planned by the sweeper does not intersect with the sliding door area. This area segmentation method is not only applicable to typical home environments such as thresholds and sliding doors between the living room and kitchen, bathroom, and bedroom, but also can be used in various public and non-public environments, especially in complex scenes with bumpy areas. It shows its strong adaptability and effectiveness. It improves the cleaning efficiency of the sweeper in complex environments and avoids unnecessary consumption in bumpy areas. The setting of dynamic virtual walls can intelligently prevent the sweeper from entering unsafe areas, thereby improving the safety and service life of the sweeper.
[0090] This application can adaptively identify the bumpy areas in the home environment by real-time monitoring of the posture information of the sweeper and updating the bump count in the grid map; after cleaning, a bump map is constructed according to the updated bump count; by clustering the bumpy areas in the bump map and calculating the length of each bumpy area after clustering; when the length of the bumpy area is greater than the length of the body of the sweeper, the corresponding bumpy area is set as a dynamic virtual wall, thereby realizing the intelligent segmentation of the cleaning area. By dynamically identifying and avoiding bumpy areas, the sweeper can dynamically identify the bumpy areas of the home, so that the planned cleaning path does not intersect with the bumpy areas, focusing on cleaning flat areas, thereby reducing the dwelling time in unnecessary areas and significantly improving the cleaning efficiency. This not only shortens the cleaning time, but also provides users with a better user experience. And the setting of the dynamic virtual wall effectively prevents the sweeper from entering unsafe bumpy areas with uneven heights, which not only protects the safety of the sweeper, but also reduces the damage to the machine caused by bumps, thereby extending the service life of the sweeper. As multiple cleanings are performed, the robot vacuum cleaner is able to continuously learn and optimize its ability to identify and handle bumpy areas, making it more flexible and efficient in adapting to different home environments.
[0091] The present application also provides a region segmentation device, including:
[0092] Grid map acquisition module: used to obtain the environmental grid map constructed by the sweeper;
[0093] Monitoring module: used to monitor the posture information of the sweeper in real time when the sweeper is cleaning the room;
[0094] Grid bump counting module: updates the bump count in the grid map based on the real-time monitored posture information;
[0095] Bump map construction module: used to build a bump map based on the updated bump count after cleaning is completed;
[0096] Clustering module: used to cluster bumpy areas in bumpy maps;
[0097] Calculation module: used to calculate the length of each bumpy area after clustering;
[0098] Dynamic virtual wall construction module: when the length of the bumpy area is greater than the length of the body of the sweeper, the corresponding bumpy area is set as a dynamic virtual wall to achieve area segmentation.
[0099] The region segmentation device provided in the embodiment of the present application realizes an intelligent region segmentation method, improves the intelligence level and user experience of the sweeping machine, and the modules work together to ensure the accuracy and efficiency of region segmentation.
[0100] Specifically, the grid bump counting module includes:
[0101] The first counting unit is used to increase the bump count of the current grid when the rolling angle of the sweeping machine is greater than a preset rolling angle threshold or the pitch angle is greater than a preset pitch angle threshold;
[0102] The first counting unit is used to reduce the bump count of the current position grid when the rolling angle of the sweeper is less than the preset rolling angle threshold and the pitch angle is less than the preset pitch threshold, and the current position grid has a bump count.
[0103] Specifically, the bump map construction module includes:
[0104] Raster traversal unit: used to traverse each raster in the raster map and read the bump count of each raster.
[0105] State marking unit: used to mark the corresponding grid position in the bump map as a bump state if the bump count of the grid is greater than a preset count threshold.
[0106] Specifically, the clustering module includes:
[0107] Iteration unit: used to iterate over each grid in the bump map.
[0108] Recursive check unit: if the current grid is in a bumpy state, check its adjacent grids. If there is a bumpy state in the adjacent grid, move the current grid one step in that direction and continue to check new adjacent grids until there are no bumpy grids around.
[0109] Specifically, the calculation module includes:
[0110] Bumping area extraction unit: used to extract each bumping area clustered in the bumping map.
[0111] Calculation unit: used to calculate the length of each bumpy area. The length can be obtained by calculating the number of grids contained in each bumpy area or the length of the straight line after fitting the shape of each bumpy area.
[0112] Specifically, the dynamic virtual wall construction module includes:
[0113] Bumping area traversal unit: used to traverse each bumping area.
[0114] Dynamic virtual wall setting unit: if the length of the bumpy area is greater than the body length of the sweeper, the corresponding bumpy area is set as a dynamic virtual wall to prevent the sweeper from entering the bumpy area and realize area segmentation.
[0115] An embodiment of the present application also provides a region segmentation device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the region segmentation method.
[0116] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0117] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking running on a server as an example, Figure 8 is a hardware structure block diagram of a server of a region segmentation method provided in an embodiment of the present application. Figure 8As shown, the server 100 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 110 (the processor 110 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 130 for storing data, and one or more storage media 120 (such as one or more mass storage devices) for storing application programs 123 or data 122. Among them, the memory 130 and the storage medium 120 can be short-term storage or permanent storage. The program stored in the storage medium 120 may include one or more modules, each of which may include a series of instruction operations in the server. Furthermore, the central processing unit 110 may be configured to communicate with the storage medium 120 and execute a series of instruction operations in the storage medium 120 on the server 100. The server 100 may also include one or more power supplies 160, one or more wired or wireless network interfaces 150, one or more input and output interfaces 140, and / or one or more operating systems 121, such as Wi ndows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0118] The input / output interface 140 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 100. In one example, the input / output interface 140 includes a network adapter (NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 140 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0119] It can be understood by those skilled in the art that Figure 8 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 8 More or fewer components as shown, or with Figure 8 Different configurations shown.
[0120] An embodiment of the present application also provides a storage medium, in which at least one instruction or at least one program is stored. The at least one instruction or the at least one program is loaded and executed by a processor to implement the region segmentation method.
[0121] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0122] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0123] The present application discloses a method, device, equipment and storage medium for area segmentation. By real-time monitoring of the posture information of a sweeping machine and updating the bump count in a grid map, the method can adaptively identify bumpy areas in a home environment. After cleaning is completed, a bump map is constructed according to the updated bump count. The bumpy areas in the bump map are clustered and the length of each bumpy area after clustering is calculated. When the length of the bumpy area is greater than the body length of the sweeping machine, the corresponding bumpy area is set as a dynamic virtual wall, thereby realizing intelligent segmentation of the cleaning area.
[0124] By dynamically identifying and avoiding bumpy areas, the sweeper can dynamically identify bumpy areas in the home so that the planned cleaning path does not intersect with the bumpy areas and focuses on cleaning flat areas, thereby reducing the time spent in unnecessary areas and significantly improving cleaning efficiency. This not only shortens the cleaning time, but also provides users with a better user experience. The setting of the dynamic virtual wall effectively prevents the sweeper from entering unsafe, uneven, bumpy areas, which not only protects the safety of the sweeper, but also reduces damage to the machine caused by bumps, thereby extending the service life of the sweeper. As multiple cleanings proceed, the sweeper can continuously learn and optimize its ability to identify and process bumpy areas, making the sweeper more flexible and efficient in adapting to different home environments.
[0125] Obviously, the embodiments described above are only embodiments of a part of the embodiments of this specification, rather than all embodiments. Based on the embodiments in the embodiments of this specification, ordinary technicians in this field can make other different forms of changes or modifications without making creative work, which should all fall within the scope of protection of the embodiments of this specification.
[0126] Those skilled in the art will readily appreciate other implementations of the embodiments of the present specification after considering the specification and practicing the invention disclosed herein. The present specification is intended to cover any variations, uses, or adaptations of the embodiments of the present specification that follow the general principles of the embodiments of the present specification and include common knowledge or customary techniques in the art that are not disclosed in the embodiments of the present specification. The description and embodiments are to be considered merely as exemplary, and the true scope and spirit of the embodiments of the present specification are indicated by the claims below.
[0127] It should be understood that the embodiments of the present specification are not limited to the precise structures described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the embodiments of the present specification is limited only by the appended claims.
Claims
1. A region segmentation method, It is characterized in that The following steps are involved: Get the environment grid map constructed by the sweeper; When the sweeping robot is cleaning the room, the posture information of the sweeping robot body is monitored in real time; updating the bump count in the grid map according to the posture information monitored in real time; After the cleaning is completed, a bump map is constructed based on the updated bump count; Clustering bumpy areas in the bumpy map; Calculate the length of each bumpy area after clustering; When the length of the bumpy area is greater than the body length of the sweeping machine, the corresponding bumpy area is set as a dynamic virtual wall to achieve area segmentation.
2. A region segmentation method according to claim 1, It is characterized in that The posture information of the sweeping machine body includes rolling angle and pitch angle information.
3. A region segmentation method according to claim 2, It is characterized in that The updating of the bump count in the grid map according to the posture information monitored in real time comprises: When the rolling angle of the sweeper is greater than a preset rolling angle threshold or the pitch angle is greater than a preset pitch angle threshold, the bump count of the current grid is increased; When the rolling angle of the sweeping machine is less than a preset rolling angle threshold and the pitching angle is less than a preset pitching threshold, and the current position grid has a bump count, the bump count of the current position grid is reduced.
4. A region segmentation method according to claim 1, It is characterized in that The step of constructing a bump map according to the updated bump count comprises: Iterate through each grid in the grid map and read the bump count of each grid; If the bump count of the grid is greater than a preset count threshold, the corresponding grid position in the bump map is marked as a bump state.
5. A region segmentation method according to claim 4, It is characterized in that The step of clustering the bumpy areas in the bumpy map comprises: Iterate each grid in the bump map; If the current grid is in a bumpy state, then check its adjacent grids; If there is a bumpy state in the adjacent grid, the current grid is moved one step in that direction, and new adjacent grids are continuously checked until there are no grids in the bumpy state around.
6. A region segmentation method according to claim 1, It is characterized in that The step of calculating the length of each bumpy area after clustering comprises: Extracting each bumpy area clustered in the bumpy map; The length of each of the bumpy regions is calculated, and the length can be obtained by calculating the number of grids contained in each of the bumpy regions or the length information of a straight line after fitting the shape of each of the bumpy regions.
7. A region segmentation method according to claim 1, It is characterized in that When the length of the bumpy area is greater than the length of the body of the sweeper, the step of setting the corresponding bumpy area as a dynamic virtual wall comprises: Go through each bumpy area; If the length of the bumpy area is greater than the body length of the sweeping machine, the corresponding bumpy area is set as a dynamic virtual wall to prevent the sweeping machine from entering the bumpy area, thereby achieving area segmentation.
8. A region segmentation device, It is characterized in that include: Grid map acquisition module: used to obtain the environmental grid map constructed by the sweeper; Monitoring module: used for real-time monitoring of the posture information of the body of the sweeping machine when the sweeping machine is cleaning the room; A grid bump counting module; updating the bump count in the grid map according to the posture information monitored in real time; Bump map construction module: used to construct a bump map according to the updated bump count after cleaning is completed; Clustering module: used for clustering the bumpy areas in the bumpy map; Calculation module: used to calculate the length of each bumpy area after clustering; Dynamic virtual wall construction module: when the length of the bumpy area is greater than the body length of the sweeper, the corresponding bumpy area is set as a dynamic virtual wall to achieve area segmentation.
9. A region segmentation device, It is characterized in that The region segmentation device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the region segmentation method as described in any one of claims 1 to 7.
10. A storage medium, It is characterized in that The storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the region segmentation method according to any one of claims 1 to 7.
