Room segmentation method, system, terminal and medium for mobile robot

Through environmental map processing and obstacle segment expansion detection, the mobile robot room segmentation is realized, which solves the planning efficiency and user experience problems caused by obstacle interference, and improves the efficiency of robot movement and the rationality of room division.

CN112015175BActive Publication Date: 2024-08-23SHENZHEN HUA XIN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010808090.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-12
Publication Date
2024-08-23
Estimated Expiration
2040-08-12

AI Technical Summary

Technical Problem

Existing mobile robots will encounter interference from many protruding wall obstacles when working, and only on-site dodge will lead to reduced motion planning efficiency and user experience.

Method used

By obtaining the environment map, calculating the room outline, expanding obstacle line segments, detecting closed boundary line segments, and overlaying them with the room outline, the closed areas are screened out to achieve room segmentation, thereby improving motion planning efficiency and user experience.

Benefits of technology

Effectively removes obstacle interference, improves the efficiency of robot motion planning and user experience, and makes room division more reasonable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112015175B
    Figure CN112015175B
Patent Text Reader

Abstract

The present application provides a room segmentation method, system, terminal and medium for a mobile robot, which solves the problem in the prior art that the mobile robot will encounter many interferences from protruding wall obstacles when working, and many problems will arise by only dodging on the spot, resulting in reduced robot motion planning efficiency and user experience. The present application establishes a room map through data, and the machine highlights wall obstacles and removes interference through image preprocessing, and then uses the line segments of the room walls on the map and the independent areas of the room area itself on the map to calculate closed room blocks. The room can be divided into different rooms according to the walls, making the room division more reasonable and improving motion planning efficiency and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and in particular to a room segmentation method, system, terminal and medium for a mobile robot. Background Art

[0002] With the improvement of the quality of life, robots are widely used. They automatically move around indoor locations and travel between rooms through ultrasound and collision sensing. Existing robots mostly use ultrasound and collision sensing to automatically detect obstacles and then avoid collisions and turn to move. However, mobile robots will encounter many protruding wall obstacles when working. Many problems will arise by only dodging on the spot, which will reduce the robot's motion planning efficiency and user experience.

[0003] Application Contents

[0004] In view of the shortcomings of the prior art mentioned above, the purpose of the present application is to provide a room segmentation method, system, terminal and medium for a mobile robot, which is used to solve the problem in the prior art that the mobile robot will encounter many protruding wall obstacles when working, and many problems will arise by dodging on the spot, resulting in reduced robot motion planning efficiency and user experience.

[0005] To achieve the above-mentioned purpose and other related purposes, the present application provides a room segmentation method for a mobile robot, comprising: obtaining a map constructed according to the current environment; calculating the outer contour of the room for the traversable area in the map; expanding the obstacle line segments in the map, and using the expanded obstacle lines to detect boundary line segments that can make the room closed; superimposing the outer contour of the room with the boundary line segments to obtain one or more closed areas; obtaining one or more closed contours based on the closed area detection; and screening the closed contours to obtain the room segmentation result.

[0006] In one embodiment of the present application, the method further includes: preprocessing a map constructed according to the current environment; wherein the preprocessing method includes: performing denoising and / or boundary smoothing on the map.

[0007] In one embodiment of the present application, the method of calculating the outer contour of a room in the traversable area in the map includes: calculating the outer contour of a room in the traversable area in the map based on a boundary calculation method of a topological structure.

[0008] In one embodiment of the present application, the step of expanding the obstacle line segments in the map and using the expanded obstacle line segments to detect boundary line segments that can close the room includes: expanding the obstacle line segments in the map; and detecting line segments used to fill the gaps to close the room based on the expanded obstacle line segments.

[0009] In one embodiment of the present application, the method of screening the closed contours to obtain the room segmentation result includes: removing the closed contours that do not conform to the size, level, shape and position relationship of the room to obtain the room segmentation result.

[0010] In one embodiment of the present application, the room segmentation result includes: a segmentation outline inside the room, an outline outside the room, and a grid map marking different rooms.

[0011] To achieve the above-mentioned purpose and other related purposes, the present application provides a room segmentation system for a mobile robot, comprising: an acquisition module, used to acquire a map constructed according to the current environment; an outer contour module, used to calculate the outer contour of the room for the passable area in the map; a closed line segment detection module, used to expand the obstacle line segments in the map, and use the expanded obstacle lines to detect the boundary line segments that can make the room closed; a superposition module, used to superimpose the outer contour of the room with the boundary line segments to obtain one or more closed areas; a closed contour module, used to obtain one or more closed contours based on the closed area detection; a segmentation result acquisition module, used to screen the closed contours to obtain the room segmentation result.

[0012] To achieve the above-mentioned objectives and other related objectives, the present application provides a room segmentation terminal for a mobile robot, comprising: one or more interfaces for communicating with external devices; a memory for storing computer programs; and a processor for running the computer program to execute the room segmentation method for a mobile robot.

[0013] To achieve the above-mentioned purpose and other related purposes, the present application provides a computer-readable storage medium storing a computer program, which implements the room segmentation method for a mobile robot when executed.

[0014] As described above, the room segmentation method, system, terminal and medium for mobile robots of the present application have the following beneficial effects: the present application establishes a room map through data, the machine highlights wall obstacles and removes interference through image preprocessing, and then uses the line segments of the room walls on the map and the independent areas of the room area itself on the map to calculate the closed room blocks, which can be divided into different rooms according to the walls, making the room division more reasonable and improving motion planning efficiency and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 Shown is a flow chart of a room segmentation method for a mobile robot in one embodiment of the present application.

[0016] Figure 2 Shown is a schematic diagram of the structure of a room partitioning system for a mobile robot in one embodiment of the present application.

[0017] Figure 3 Shown is a schematic diagram of the structure of a room partitioning terminal for a mobile robot in one embodiment of the present application. DETAILED DESCRIPTION

[0018] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0019] It should be noted that in the following description, reference is made to the accompanying drawings, which describe several embodiments of the present application. It should be understood that other embodiments may also be used, and that mechanical composition, structure, electrical and operational changes may be made without departing from the spirit and scope of the present application. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present application is limited only by the claims of the published patents. The terms used here are only for describing specific embodiments and are not intended to limit the present application. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.

[0020] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.

[0021] The present application provides a room segmentation method for a mobile robot, which is used to solve the problem in the prior art that the mobile robot will encounter many interferences from protruding wall obstacles when working, and many problems will arise by only dodging on the spot, resulting in reduced robot motion planning efficiency and user experience. The present application establishes a room map through data, and the machine highlights wall obstacles and removes interference through image preprocessing, and then uses the line segments of the room walls on the map and the independent areas of the room area itself on the map to calculate closed room blocks. The room can be divided into different rooms according to the walls, making the room division more reasonable and improving motion planning efficiency and user experience.

[0022] The following is attached Figure 1 For reference, the embodiments of the present application are described in detail so that those skilled in the art can easily implement the present application. The present application can be embodied in many different forms and is not limited to the embodiments described herein.

[0023] like Figure 1 As shown, a schematic flow chart of a room segmentation method for a mobile robot in one embodiment is shown, which includes the following steps:

[0024] Step S11: Obtain a map constructed according to the current environment.

[0025] Optionally, get a binary grid map constructed based on the current environment as a whole.

[0026] Optionally, the binary grid map is converted into a mat image that complies with the Opencv standard.

[0027] Optionally, the mobile robot builds a map of the current environment based on one or more of an odometer, monocular / binocular vision, 3D lidar, 2D lidar, and RGB-D / TOF sensor.

[0028] Step S12: Calculate the outer contour of the room for the traversable area in the map.

[0029] Optionally, the edge of the traversable area in the map is calculated to obtain the outer contour of the room.

[0030] Optionally, the method of calculating the outer contour of the room in the traversable area in the map includes: calculating the outer contour of the room in the traversable area in the map based on a boundary calculation method of a topological structure.

[0031] Optionally, the traversable area in the map is represented as a white area in the map, that is, the edge of the white area in the map is calculated based on a boundary calculation method of a topological structure to obtain an outer contour of the room.

[0032] Optionally, the outer contour of the room is stored.

[0033] Step S13: expanding the obstacle line segments in the map, and using the expanded obstacle lines to detect boundary line segments that can close the room.

[0034] Optionally, the obstacle line segments in the map are expanded, and the expanded obstacle lines are used to detect boundary line segments that meet the room closure standard.

[0035] Optionally, the expanding the obstacle line segments in the map and using the expanded obstacle line segments to detect boundary line segments that can close the room include: expanding the obstacle line segments in the map; and detecting line segments used to fill gaps to close the room based on the expanded obstacle line segments.

[0036] Specifically, the probability of successful detection of the same wall is increased by expanding the line segment, so that the door is completely filled and the room is closed. The method of filling the gap in the detection line segment is adopted, and the parameters are controlled to ensure that the same wall is completely detected.

[0037] Step S14: superimposing the room outer contour and the boundary line segment to obtain one or more closed areas.

[0038] Optionally, by superimposing the outer contour of the room with the detected boundary line segments, the contour inside each room will be relatively complete, so as to ensure the integrity of the edge.

[0039] Optionally, the detected boundary line segments are equivalent to the walls and doors in the room, and by coinciding with the outer contour of the room, a complete space in the room is obtained, which is divided into several sub-rooms.

[0040] Step S15: Obtain one or more closed contours according to the closed area detection.

[0041] Optionally, the room outline is detected by closed areas, and all closed areas are detected as an independent outline.

[0042] Optionally, the method of obtaining one or more closed contours according to the closed area detection includes: detecting each closed area as a closed contour corresponding thereto, wherein the closed contour is the contour of a sub-room in the room.

[0043] Step S16: Screening the closed contour to obtain a room segmentation result.

[0044] Optionally, the method of screening the closed contours to obtain the room segmentation result includes: removing closed contours that do not conform to the size, level, shape and position relationship of the room to obtain the room segmentation result.

[0045] For example, if the size of the closed outline is larger than the size of the room, it does not meet the requirements and the closed outline is removed.

[0046] Optionally, the room segmentation result includes: a segmentation outline inside the room, an outline outside the room, and a grid map marking different rooms.

[0047] The segmented contour inside the room is obtained by the closed contour after screening, and the outer contour of the room is obtained by the above steps, and different rooms are marked on the map according to the above information.

[0048] Optionally, the room segmentation result includes a room contour point set, a room outer contour point set, and a grid map marking different rooms.

[0049] Optionally, the method further includes: preprocessing a map constructed according to the current environment; wherein the preprocessing method includes: performing denoising and / or boundary smoothing on the map.

[0050] Optionally, the denoising process includes: removing scattered black and white dots in the map to reduce the probability of detecting an erroneous contour.

[0051] Optionally, the boundary smoothing process includes: smoothing the boundary of the map to improve the accuracy of contour detection.

[0052] Similar to the principles of the above embodiments, the present application provides a room partitioning system for a mobile robot.

[0053] The following provides specific embodiments in conjunction with the accompanying drawings:

[0054] like Figure 2 The figure shows a structural schematic diagram of a room partitioning system for a mobile robot in an embodiment of the present application.

[0055] The system comprises:

[0056] An acquisition module 21 is used to acquire a map constructed according to the current environment;

[0057] An outer contour module 22, used for calculating the outer contour of the room for the traversable area in the map;

[0058] A closed line segment detection module 23, used to expand the obstacle line segments in the map, and use the expanded obstacle lines to detect boundary line segments that can close the room;

[0059] A superposition module 24, used for superimposing the outer contour of the room with the boundary line segment to obtain one or more closed areas;

[0060] A closed contour module 25, configured to obtain one or more closed contours according to the closed area detection;

[0061] The segmentation result acquisition module 26 is used to screen the closed contour to obtain the room segmentation result.

[0062] Optionally, the acquisition module 21 is connected to the outer contour module 22, the outer contour module 22 is connected to the closed line segment detection module 23, the closed line segment detection module 23 is connected to the superposition module 24, the superposition module 24 is connected to the closed contour module 25, and the closed contour module 25 is connected to the segmentation result acquisition module 26.

[0063] Optionally, the acquisition module 21 acquires a binary grid map constructed according to the entire current environment.

[0064] Optionally, the acquisition module 21 converts the binary grid map into a mat image that complies with the Opencv standard.

[0065] Optionally, the mobile robot builds a map of the current environment based on one or more of an odometer, monocular / binocular vision, 3D lidar, 2D lidar, and RGB-D / TOF sensor.

[0066] Optionally, the outer contour module 22 calculates the edge of the traversable area in the map to obtain the outer contour of the room.

[0067] Optionally, the outer contour module 22 calculates the outer contour of the room for the passable area in the map in a manner including: calculating the outer contour of the room for the passable area in the map based on a boundary calculation method of a topological structure.

[0068] Optionally, the traversable area in the map is represented as a white area in the map, that is, the edge of the white area in the map is calculated based on a boundary calculation method of a topological structure to obtain an outer contour of the room.

[0069] Optionally, the outer contour module 22 stores the outer contour of the room.

[0070] Optionally, the obstacle line segments in the map are expanded, and the expanded obstacle lines are used to detect boundary line segments that meet the room closure standard.

[0071] Optionally, the closed line segment detection module 23 expands the obstacle line segments in the map, and uses the expanded obstacle line segments to detect boundary line segments that can close the room, including: expanding the obstacle line segments in the map; and detecting line segments used to fill the gaps to close the room based on the expanded obstacle line segments.

[0072] Specifically, the closed line segment detection module 23 increases the probability of successful detection of the same wall by line segment expansion, thereby filling the door completely and making the room closed. A method of filling gaps is used in detecting line segments, and parameters are controlled to ensure that the same wall is completely detected.

[0073] Optionally, the superimposition module 24 superimposes the outer contour of the room with the detected boundary line segments so that the contour inside each room is relatively complete, thereby ensuring the integrity of the edge.

[0074] Optionally, the boundary line segments detected by the superposition module 24 are equivalent to the walls and doors in the room, and are overlapped with the outer contour of the room to obtain a complete space in the room, which is divided into several sub-rooms.

[0075] Optionally, the closed contour module 25 detects the room contour through closed areas, and all closed areas are detected as an independent contour.

[0076] Optionally, the closed contour module 25 obtains one or more closed contours according to the closed area detection, including: detecting each closed area as a closed contour corresponding thereto, wherein the closed contour is the contour of a sub-room in the room.

[0077] Optionally, the segmentation result acquisition module 26 screens the closed contours to obtain the room segmentation result, including: removing closed contours that do not conform to the size, level, shape and position relationship of the room to obtain the room segmentation result.

[0078] For example, if the size of the closed outline is larger than the size of the room, it does not meet the requirements and the closed outline is removed.

[0079] Optionally, the room segmentation result includes: a segmentation outline inside the room, an outline outside the room, and a grid map marking different rooms.

[0080] The segmented contour inside the room is obtained by the closed contour after screening, and the outer contour of the room is obtained by the above steps, and different rooms are marked on the map according to the above information.

[0081] Optionally, the room segmentation result includes a room contour point set, a room outer contour point set, and a grid map marking different rooms.

[0082] like Figure 3 As shown, a schematic diagram of the structure of a room partitioning terminal 30 for a mobile robot in an embodiment of the present application is shown.

[0083] The room segmentation terminal 30 for the mobile robot comprises:

[0084] One or more interfaces 31 are used to communicate with external devices; different interfaces can transmit the different room segmentation results, or transmit them to different external devices.

[0085] The memory 32 is used to store computer programs; the processor 33 runs the computer program to implement the following Figure 1 The room segmentation method for a mobile robot is described.

[0086] Optionally, the number of the memory 32 can be one or more, and the number of the processor 33 can be one or more. Figure 3 Take one as an example.

[0087] Optionally, the external device may be an external terminal, for example, any device such as a mobile terminal and a control terminal of the robot, which is not limited in the present application.

[0088] Optionally, the processor 33 in the room segmentation terminal 30 for the mobile robot will perform the following operations: Figure 1 According to the steps described above, one or more instructions corresponding to the process of the application are loaded into the memory 32, and the processor 33 runs the application stored in the memory 32, thereby achieving the following Figure 1 Various functions in the described room segmentation method for a mobile robot.

[0089] Optionally, the memory 32 may include but is not limited to high-speed random access memory and non-volatile memory. For example, one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices; the processor 31 may include but is not limited to a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0090] Optionally, the processor 33 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0091] The present application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed, Figure 1 The room segmentation method for a mobile robot is shown. The computer-readable storage medium may include, but is not limited to, a floppy disk, an optical disk, a CD-ROM (Compact Disc Read Only Memory), a magneto-optical disk, a ROM (Read Only Memory), a RAM (Random Access Memory), an EPROM (Erasable Programmable Read Only Memory), an EEPROM (Electrically Erasable Programmable Read Only Memory), a magnetic card or an optical card, a flash memory, or other types of media / machine-readable media suitable for storing machine-executable instructions. The computer-readable storage medium may be a product that is not connected to a computer device, or may be a component that is connected to a computer device for use.

[0092] In summary, the room segmentation method, system, terminal and medium for mobile robots in the present application solve the problem in the prior art that mobile robots encounter many interferences from protruding wall obstacles when working, and many problems will occur only by dodging on the spot, resulting in reduced robot motion planning efficiency and user experience. The present application establishes a room map through data, and the machine highlights wall obstacles and removes interference through image preprocessing, and then uses the line segments of the room walls on the map and the independent areas of the room area itself on the map to calculate the closed room blocks, which can be divided into different rooms according to the walls, making the room division more reasonable and improving motion planning efficiency and user experience. Therefore, the present application effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.

[0093] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A room segmentation method for a mobile robot, characterized in that: The method comprises: Get a map built based on the current environment; Preprocessing the map constructed according to the current environment; wherein the preprocessing method includes: performing denoising and boundary smoothing on the map; Calculating the outer contour of the room for the traversable area in the preprocessed map, including: calculating the outer contour of the room for the traversable area in the preprocessed map based on a boundary calculation method of a topological structure; Expanding the obstacle line segments in the pre-processed map, and using the expanded obstacle line segments to detect boundary line segments that can close the room; including: expanding the obstacle line segments in the pre-processed map; detecting line segments used to fill the gaps to close the room based on the expanded obstacle line segments; Superimposing the outer contour of the room with the boundary line segment to obtain one or more closed areas; Obtain one or more closed contours according to the closed area detection; The closed contour is screened to obtain a room segmentation result, wherein the room segmentation result includes: a segmentation contour inside the room, an outer contour of the room, and a grid map marking different rooms.

2. The room segmentation method for a mobile robot according to claim 1, characterized in that: The method of obtaining one or more closed contours according to the closed area detection includes: detecting each closed area as a closed contour corresponding thereto.

3. The room segmentation method for a mobile robot according to claim 1, characterized in that: The method of screening the closed contour to obtain the room segmentation result includes: The closed contours that do not conform to the size, level, shape and position relationship of the room are removed to obtain the room segmentation result.

4. A room segmentation system for a mobile robot, characterized in that: include: The acquisition module is used to obtain the map built according to the current environment; A preprocessing module, used for preprocessing the map constructed according to the current environment; wherein the preprocessing method includes: performing denoising and boundary smoothing on the map; An outer contour module is used to calculate the outer contour of the room for the traversable area in the preprocessed map; wherein the outer contour of the room is calculated for the traversable area in the preprocessed map based on a boundary calculation method of a topological structure; A closed line segment detection module is used to expand the obstacle line segments in the pre-processed map, and use the expanded obstacle line segments to detect the boundary line segments that can make the room closed; wherein the obstacle line segments in the pre-processed map are expanded; and the line segments used to fill the gaps to make the room closed are detected based on the expanded obstacle line segments; A superposition module, used for superimposing the outer contour of the room with the boundary line segment to obtain one or more closed areas; A closed contour module, used for obtaining one or more closed contours according to the closed area detection; The segmentation result acquisition module is used to screen the closed contour to obtain the room segmentation result, wherein the room segmentation result includes: the segmentation contour inside the room, the contour outside the room, and a grid map marking different rooms.

5. A room segmentation terminal for a mobile robot, characterized in that: include: One or more interfaces for communicating with external devices; Memory for storing computer programs; A processor, configured to run the computer program to execute the room segmentation method for a mobile robot according to any one of claims 1 to 3.

6. A computer storage medium, characterized in that: A computer program is stored, and when the computer program is run, the room segmentation method for a mobile robot according to any one of claims 1 to 3 is implemented.