Three-dimensional map construction method, sweeping robot and electronic device

By combining laser point cloud data and depth information and using a three-dimensional map construction method, the problem of lidar SLAM technology being unable to detect vertical information of obstacles is solved, achieving a more comprehensive environmental space map construction and higher accuracy.

CN111609853BActive Publication Date: 2024-08-23BEIJING QIHOOD TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910138177.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-02-25
Publication Date
2024-08-23
Estimated Expiration
2039-02-25

AI Technical Summary

Technical Problem

The existing SLAM technology based only on lidar is unable to detect the vertical information of obstacles when constructing a map of the application environment space of the sweeping robot, resulting in insufficient map information and low accuracy, especially for special obstacles such as hollow structures. good.

Method used

Using a three-dimensional map construction method, the laser point cloud data and depth information are combined, a point cloud matching algorithm is used to determine the robot's pose, and the depth information is obtained through a depth camera to construct a three-dimensional sub-map, which is cyclically fused to form a global three-dimensional map to enhance the information richness of the map. sex and accuracy.

Benefits of technology

It achieves more comprehensive information collection and map construction of the environmental space, can detect obstacle information that cannot be detected by lidar, and significantly improves the accuracy and information richness of the map.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111609853B
    Figure CN111609853B
Patent Text Reader

Abstract

The present application provides a method for constructing a three-dimensional map, a sweeping robot and an electronic device. The method includes: step A, determining the posture information of the sweeping robot at the current position through the corresponding point cloud matching algorithm based on the acquired laser point cloud data, step B, constructing a three-dimensional sub-map of the environmental space based on the determined posture information of the sweeping robot at the current position and the depth information acquired by the sweeping robot at the current position, step C, controlling the sweeping robot to move to the next position that meets the predetermined conditions, executing steps A and B, and fusing the constructed three-dimensional sub-maps to obtain a merged three-dimensional map, and executing step C repeatedly until the obtained merged three-dimensional map is a global three-dimensional map of the environmental space. That is, the three-dimensional map constructed by the present application improves the richness of information contained in the constructed map and the accuracy of the constructed map compared with the two-dimensional map constructed based on the laser radar.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robotics technology, and more specifically, to a three-dimensional map construction method, a sweeping robot, and an electronic device. Background Art

[0002] As a smart appliance that can automatically clean the area to be cleaned, the sweeping robot can replace people to clean the floor, reducing the burden of housework, and is increasingly recognized by people. The construction of a map of the application environment space of the sweeping robot is the basis for the sweeping robot to perform cleaning work. How to construct a map of the application environment space of the sweeping robot has become a key issue.

[0003] The problem that the Simultaneous Localization and Mapping (SLAM) technology aims to solve is: if a robot is placed in an unknown position in an unknown environment, is there a way to allow the robot to gradually draw a map that is completely consistent with this environment while moving. At present, the construction of the map of the application environment space of the sweeping robot is realized by the SLAM technology based on laser radar, that is, the map is constructed only based on the laser point cloud data obtained by the laser radar of the sweeping robot. However, in the existing SLAM mapping method based only on laser radar, the laser radar can only detect the obstacle information of the 2D plane, and cannot detect the vertical direction of the obstacle. The constructed map is a two-dimensional map, and the information of the environmental space provided is limited. For some special obstacles (such as tables and chairs with hollow structures, etc.), it is impossible to effectively detect and process them through the laser radar. Therefore, the existing SLAM mapping method based only on laser radar has the problem that the constructed map provides little information and the mapping accuracy is low. Summary of the invention

[0004] The present application provides a three-dimensional map construction method, a sweeping robot, and an electronic device, which are used to improve the richness of information contained in the constructed map of the environment space and improve the accuracy of the constructed map. The technical solution adopted by the present application is as follows:

[0005] In a first aspect, the present application provides a method for constructing a three-dimensional map, the method comprising:

[0006] Step A, determining the position information of the sweeping robot at the current position through a corresponding point cloud matching algorithm based on the acquired laser point cloud data;

[0007] Step B: constructing a three-dimensional sub-map of the environment space based on the determined position information of the sweeping robot at the current position and the depth information obtained by the sweeping robot at the current position;

[0008] Step C, controlling the sweeping robot to move to the next position that meets the predetermined conditions, executing steps A and B, and fusing the constructed three-dimensional sub-maps to obtain a merged three-dimensional map;

[0009] Step C is executed repeatedly until the obtained merged three-dimensional map is a global three-dimensional map of the environment space.

[0010] Optionally, the corresponding point cloud matching algorithm includes any one of the following: an iterative nearest neighbor algorithm; a correlation matching algorithm based on a probability model.

[0011] Optionally, controlling the sweeping robot to move to a next position that meets a predetermined condition includes:

[0012] Determine movement information of the sweeping robot based on the three-dimensional sub-map or the combined three-dimensional map, where the movement information includes movement direction information and movement distance information;

[0013] The sweeping robot is controlled to move to a next position that meets predetermined conditions based on the movement information.

[0014] Furthermore, the method further comprises:

[0015] Based on the acquired laser point cloud data, a two-dimensional sub-map of the environment space is constructed through the simultaneous localization and mapping SLAM algorithm;

[0016] Control the sweeping robot to move to the next position that meets the predetermined conditions, including:

[0017] Determine the movement information of the sweeping robot based on the two-dimensional sub-map, where the movement information includes movement direction information and movement distance information;

[0018] The sweeping robot is controlled to move to a next position that meets predetermined conditions based on the movement information.

[0019] Furthermore, the method further comprises:

[0020] The working path of the cleaning robot is planned based on the global three-dimensional map, where the working path includes a route for the cleaning robot to reach the cleaning target area and / or a route for the cleaning robot to clean the cleaning target area.

[0021] Optionally, the global three-dimensional map includes three-dimensional information of each obstacle and / or cliff, and planning a working path of the sweeper based on the global three-dimensional map includes:

[0022] Determine a way for the cleaning robot to pass through each obstacle and / or cliff based on the three-dimensional information of each obstacle and / or cliff;

[0023] The working path of the sweeping robot is planned based on the determined way of passing through various obstacles and / or cliffs.

[0024] In a second aspect, a sweeping robot is provided, the sweeping robot comprising: a depth camera, a laser radar sensor, and a construction device;

[0025] Depth camera, used to obtain the depth information of the sweeping robot at its current location;

[0026] LiDAR sensor, used to obtain laser point cloud data;

[0027] The build setup includes:

[0028] A determination module, used to determine the position information of the sweeping robot at the current position through a corresponding point cloud matching algorithm based on the laser point cloud data obtained by the laser radar sensor;

[0029] A first construction module is used to construct a three-dimensional sub-map of the environment space based on the posture information of the cleaning robot at the current position determined by the determination module and the depth information of the cleaning robot at the current position obtained by the depth camera;

[0030] A control module, used for controlling the sweeping robot to move to a next position that meets a predetermined condition, executing the execution process of the determination module and the first construction module, and fusing the constructed three-dimensional sub-maps to obtain a merged three-dimensional map;

[0031] The loop module is used for looping the execution process of the control module until the obtained merged three-dimensional map is a global three-dimensional map of the environment space.

[0032] Optionally, the corresponding point cloud matching algorithm includes any one of the following: an iterative nearest neighbor algorithm; a correlation matching algorithm based on a probability model.

[0033] Optionally, the control module includes a first determination unit and a control unit;

[0034] A first determining unit, configured to determine movement information of the sweeping robot based on the three-dimensional sub-map or the combined three-dimensional map, where the movement information includes movement direction information and movement distance information;

[0035] The control unit is used to control the sweeping robot to move to a next position that meets predetermined conditions based on the movement information.

[0036] Furthermore, the construction device further comprises a second construction module;

[0037] The second construction module is used to construct a two-dimensional sub-map of the environment space based on the acquired laser point cloud data through a simultaneous localization and mapping SLAM algorithm;

[0038] The control module is used to determine the movement information of the sweeping robot based on the two-dimensional sub-map, the movement information including the movement direction information and the movement distance information, and to control the sweeping robot to move to the next position that meets the predetermined conditions based on the movement information.

[0039] Furthermore, the construction device also includes a planning module;

[0040] The planning module is used to plan the working path of the sweeping robot based on the global three-dimensional map. The working path includes the route of the sweeping robot to reach the cleaning target area and / or the route of the sweeping robot to clean the cleaning target area.

[0041] Optionally, the global three-dimensional map includes three-dimensional information of each obstacle and / or cliff, and the planning module includes a second determination unit and a planning unit;

[0042] A second determining unit, configured to determine a way for the cleaning robot to pass through each obstacle and / or cliff based on three-dimensional information of each obstacle and / or cliff;

[0043] The planning unit is used to plan a working path of the sweeping robot based on the way of passing through various obstacles and / or cliffs determined by the second determining unit.

[0044] In a third aspect, the present application provides an electronic device, the electronic device comprising: a processor and a memory;

[0045] A memory, used for storing operation instructions;

[0046] The processor is used to execute the three-dimensional map construction method as shown in any implementation of the first aspect of the present application by calling an operation instruction.

[0047] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for constructing a three-dimensional map shown in any implementation of the first aspect of the present application.

[0048] The present application provides a three-dimensional map construction method, a sweeping robot and an electronic device. Compared with the prior art that performs SLAM based only on laser radar, the present application, through step A, determines the posture information of the sweeping robot at the current position through a corresponding point cloud matching algorithm based on the acquired laser point cloud data; step B, constructs a three-dimensional sub-map of the environmental space based on the determined posture information of the sweeping robot at the current position and the depth information acquired by the sweeping robot at the current position; step C, controls the sweeping robot to move to the next position that meets predetermined conditions, executes steps A and B, and fuses the constructed three-dimensional sub-maps to obtain a merged three-dimensional map, and executes step C repeatedly until the obtained merged three-dimensional map is a global three-dimensional map of the environmental space. That is, the present application constructs a three-dimensional map of the environmental space based on the acquired depth information and laser point cloud data. Compared with the constructed two-dimensional map, the three-dimensional map contains information about obstacles in the vertical direction. Therefore, the three-dimensional map contains more information about the environmental space than the existing two-dimensional map constructed only based on lidar. At the same time, the depth camera that obtains the depth information of the spatial environment can detect information about obstacles such as hollow tables and chairs that cannot be detected by lidar, thereby improving the accuracy of the constructed map of the environmental space.

[0049] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0051] Figure 1 A schematic diagram of a process for constructing a three-dimensional map provided in an embodiment of the present application;

[0052] Figure 2 A schematic diagram of the structure of a sweeping robot provided in an embodiment of the present application;

[0053] Figure 3 A schematic diagram of the structure of another sweeping robot provided in an embodiment of the present application;

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

[0055] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present invention.

[0056] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "an" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0057] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0058] An embodiment of the present application provides a method for constructing a three-dimensional map. Figure 1 As shown, the method includes:

[0059] Step S101, determining the position information of the sweeping robot at the current position through a corresponding point cloud matching algorithm based on the acquired laser point cloud data;

[0060] For the embodiment of the present application, the sweeping robot is configured with a corresponding laser radar sensor, through which laser point cloud data can be acquired, wherein the laser radar sensor can be a single-line laser radar or a multi-line laser radar.

[0061] Point cloud matching is the process of obtaining a perfect coordinate transformation by calculating and integrating point cloud data at different perspectives into a specified coordinate system through rigid transformations such as rotation and translation. In other words, the two point clouds to be registered can completely overlap each other through position transformations such as rotation and translation. Therefore, the two point clouds belong to rigid transformations, that is, the shapes and sizes are exactly the same, but the coordinate positions are different. Point cloud registration is to find the coordinate position transformation relationship between the two point clouds.

[0062] Specifically, the acquired laser point cloud data can be matched and processed accordingly through a corresponding point cloud matching algorithm, thereby determining the position information of the sweeping robot at the current position.

[0063] Step S102, constructing a three-dimensional sub-map of the environment space based on the determined position information of the cleaning robot at the current position and the depth information obtained by the cleaning robot at the current position;

[0064] Specifically, the depth information may be a depth map obtained by a depth camera configured by the sweeping robot, wherein each pixel in the depth map corresponds to a point of an obstacle detected in the environment space, and the corresponding position of each pixel in each depth information in the world coordinate system may be determined according to the determined posture information of the sweeping robot, thereby constructing a three-dimensional sub-map of the sweeping robot at the current position. The depth camera configured by the sweeping robot may be any one of a ToF-based depth camera, an RGB binocular depth camera, a structured light depth camera, and a binocular structured light depth camera, which are not limited here.

[0065] Step S103, controlling the sweeping robot to move to a next position that meets a predetermined condition, executing steps S101 and S102, and fusing the constructed three-dimensional sub-maps to obtain a merged three-dimensional map;

[0066] Among them, when the sweeping robot is placed in an unknown environment, there is no map of the environmental space yet, and its initial position that meets the predetermined conditions can be randomly determined, and can be a position reached by moving a certain threshold distance or a position reached by moving a certain threshold time; after the sweeping robot constructs the corresponding three-dimensional sub-map or merged three-dimensional map, the subsequent position of the sweeping robot that meets the predetermined conditions can be determined based on the constructed three-dimensional sub-map or merged three-dimensional map.

[0067] Specifically, the constructed 3D submap of the current position can be fused with each previously constructed 3D submap to obtain a merged 3D map; or the 3D submap constructed at the current position can be fused with the previously fused merged 3D map to obtain the current merged 3D map. The fusion process can be splicing the 3D submaps to be fused, and the overlapping map parts can be deleted during the splicing process.

[0068] Step S104, looping through step S103 until the obtained merged three-dimensional map is a global three-dimensional map of the environment space.

[0069] For the embodiment of the present application, step S103 is executed repeatedly until the obtained merged 3D map is a global 3D map of the environment space. The method for judging whether the global 3D map is successfully constructed can be based on the corresponding 3D sub-map or merged 3D sub-map, and there is no corresponding position that meets the predetermined conditions, or the 3D sub-map constructed at the current position completely overlaps with the merged 3D sub-map or 3D sub-map constructed previously, or it can be based on a combination of the above two methods to comprehensively judge whether the global 3D map is successfully constructed.

[0070] An embodiment of the present application provides a method for constructing a three-dimensional map. Compared with the prior art that performs SLAM based only on laser radar, the present application, through step A, determines the posture information of the sweeping robot at the current position based on the acquired laser point cloud data through a corresponding point cloud matching algorithm; step B, constructs a three-dimensional sub-map of the environmental space based on the determined posture information of the sweeping robot at the current position and the depth information acquired by the sweeping robot at the current position; step C, controls the sweeping robot to move to the next position that meets predetermined conditions, executes steps A and B, and fuses the constructed three-dimensional sub-maps to obtain a merged three-dimensional map, and executes step C repeatedly until the obtained merged three-dimensional map is a global three-dimensional map of the environmental space. That is, the present application constructs a three-dimensional map of the environmental space based on the acquired depth information and laser point cloud data. Compared with the constructed two-dimensional map, the three-dimensional map contains information about obstacles in the vertical direction. Therefore, the three-dimensional map contains more information about the environmental space than the existing two-dimensional map constructed only based on lidar. At the same time, the depth camera that obtains the depth information of the spatial environment can detect information about obstacles such as hollow tables and chairs that cannot be detected by lidar, thereby improving the accuracy of the constructed map of the environmental space.

[0071] The embodiment of the present application provides a possible implementation method, wherein the corresponding point cloud matching algorithm includes but is not limited to any one of the following: an iterative nearest neighbor algorithm; a correlation matching algorithm based on a probability model.

[0072] Specifically, the corresponding point cloud matching algorithm can be based on an iterative nearest neighbor algorithm or a correlation matching algorithm based on a probability model.

[0073] The process of determining the position and posture of the sweeping robot at the current position based on the iterative nearest neighbor algorithm (ICP) can be: 1. Extract features from two adjacent frames of laser point cloud data respectively; 2. Pair the associated feature points of two adjacent frames of laser point cloud data; 3. Use the partial iteration method to solve the overall matching parameter rotation matrix R and translation matrix T of the two adjacent frames of laser point cloud data; 4. Calculate the motion increment of the sweeping robot in adjacent sampling periods to determine the position and posture of the sweeping robot at the current position. The matching threshold can be set to filter out invalid associated features to accurately obtain the transformation parameters (R, T).

[0074] Among them, the correlation matching algorithm based on the probability model starts from the idea of ​​probability, uses the correlation between laser point cloud data, searches in the entire credible space of the initial value provided by the odometer, and finds the best match between two adjacent frames of laser point cloud data, that is, the rigid body transformation with the highest correlation coefficient.

[0075] For the embodiments of the present application, the problem of determining the position and posture information of the sweeping robot at the current position is solved by matching laser point cloud data based on an iterative nearest neighbor algorithm or a correlation matching algorithm based on a probability model.

[0076] The embodiment of the present application provides a possible implementation method. Specifically, step S103 includes:

[0077] Step S1031 (not shown in the figure), determining movement information of the sweeping robot based on the three-dimensional sub-map or the combined three-dimensional map, the movement information including movement direction information and movement distance information;

[0078] Step S1032 (not shown in the figure), based on the movement information, the sweeping robot is controlled to move to the next position that meets the predetermined conditions.

[0079] Among them, the next position that meets the predetermined conditions can be determined based on the constructed three-dimensional sub-map or the combined three-dimensional map and the effective detection range of the depth camera configured for the sweeping robot. For example, if the effective detection range of the depth camera is 3m, the position 2 meters in the current direction of the sweeping robot can be determined as the next position that meets the predetermined conditions.

[0080] Among them, the corresponding position can also be determined in the area that the corresponding sweeping robot can reach but has not yet reached based on the constructed three-dimensional sub-map or merged three-dimensional map. For example, if there is a corresponding corner that the sweeping robot can pass through 2 meters away from the current position in the currently constructed map, the corresponding next position that meets the predetermined conditions can be determined in the corner area.

[0081] Specifically, the movement information of the sweeping robot can be determined according to the constructed three-dimensional sub-map or the merged three-dimensional map, and based on the movement information, the sweeping robot can be controlled to move to the next position that meets the predetermined conditions.

[0082] The embodiment of the present application solves the problem of how the sweeping robot reaches the next position that meets the predetermined conditions, and provides a basis for constructing a three-dimensional sub-map at the next position that meets the predetermined conditions.

[0083] The embodiment of the present application provides a possible implementation manner. Further, the method also includes:

[0084] Step S105 (not shown in the figure), constructing a two-dimensional sub-map of the environment space through a simultaneous localization and mapping SLAM algorithm based on the acquired laser point cloud data;

[0085] Step S103 specifically also includes:

[0086] Step S1033 (not shown in the figure), determining the movement information of the sweeping robot based on the two-dimensional sub-map, the movement information including the movement direction information and the movement distance information;

[0087] Step S1034 (not shown in the figure), based on the movement information, the sweeping robot is controlled to move to the next position that meets the predetermined conditions.

[0088] Among them, the simultaneous localization and mapping (SLAM) problem can be described as: if a robot is placed in an unknown position in an unknown environment, is there a way to make the robot gradually draw a completely consistent map of the environment while moving?

[0089] Specifically, the laser radar sensor configured on the sweeping robot can be controlled to rotate 360 ​​degrees to obtain the laser point cloud data of the sweeping robot in the environment space, and the local two-dimensional sub-map of the environment space can be constructed through the SLAM algorithm based on the laser point cloud data obtained by the sweeping robot. Specifically, based on the constructed two-dimensional sub-map of the environment space, the sweeping robot can be controlled to move to the next position that meets the predetermined conditions.

[0090] The embodiment of the present application solves the problem of how the sweeping robot reaches the next position that meets the predetermined conditions, and provides a basis for constructing a three-dimensional sub-map at the next position that meets the predetermined conditions.

[0091] The embodiment of the present application provides a possible implementation manner. Further, the method also includes:

[0092] Step S106 (not shown in the figure), planning the working path of the sweeping robot based on the global three-dimensional map, the working path including the route of the sweeping robot to reach the cleaning target area and / or the route of the sweeping robot to clean the cleaning target area.

[0093] Specifically, the working path of the sweeping robot can be planned according to the received cleaning instructions and the constructed global three-dimensional map of the environmental space, wherein the working path may include the route of the sweeping robot to reach the cleaning area and / or the route of how the sweeping robot cleans the target cleaning area.

[0094] For the embodiment of the present application, the working path of the sweeping robot is planned based on the constructed global three-dimensional map, thereby solving the navigation problem of the sweeping robot.

[0095] The embodiment of the present application provides a possible implementation method. Specifically, the global three-dimensional map includes three-dimensional information of each obstacle and / or cliff. Step S106 of planning the working path of the sweeping robot based on the global three-dimensional map includes:

[0096] Step S1061 (not shown in the figure), determining a way for the cleaning robot to pass through each obstacle and / or cliff based on the three-dimensional information of each obstacle and / or cliff;

[0097] Specifically, the way to pass through each obstacle can be determined based on the three-dimensional information of each obstacle. For example, when it is determined that the obstacle can be directly crossed based on the three-dimensional information of an obstacle (such as the height of the obstacle is 3 cm), the way to pass through the obstacle is determined to be crossing the obstacle. When it is determined that the obstacle cannot be directly crossed based on the semantic information of an obstacle (such as the height of the obstacle is 10 cm), the way to pass through the obstacle can be determined to be bypassing the obstacle.

[0098] Specifically, the way to pass through each cliff may be determined based on the three-dimensional information of each cliff. For example, the way to pass through the cliff may be determined to be crossing the cliff or avoiding the cliff according to the depth and width information of the cliff.

[0099] Step S1062 (not shown in the figure), planning the working path of the cleaning robot based on the determined way of passing through various obstacles and / or cliffs.

[0100] Specifically, the working plan of the sweeping robot can be planned according to the determined way of passing through each obstacle and / or cliff. For example, when the way of passing through an obstacle is to cross the obstacle, there is no need to adjust the corresponding travel path. When the way of passing through an obstacle is to bypass the obstacle, a corresponding bypass route is formulated and the travel path is adjusted.

[0101] According to the embodiment of the present application, the working path of the sweeping robot is planned by passing through various obstacles and / or cliffs, thereby solving the problem of how to plan the traveling path of the sweeping robot.

[0102] The present application also provides a sweeping robot. Figure 2 As shown, the cleaning robot 20 may include: a depth camera 201, a laser radar sensor 202, and a construction device 203;

[0103] The depth camera 201 is used to obtain the depth information of the cleaning robot at the current position;

[0104] A laser radar sensor 202, used to obtain laser point cloud data;

[0105] The construction device 203 comprises:

[0106] The determination module 2031 is used to determine the position information of the cleaning robot at the current position through the corresponding point cloud matching algorithm based on the laser point cloud data obtained by the laser radar sensor 202;

[0107] A first constructing module 2032 is used to construct a three-dimensional sub-map of the environment space based on the posture information of the cleaning robot at the current position determined by the determining module 2031 and the depth information of the cleaning robot at the current position obtained by the depth camera 201;

[0108] The control module 2033 is used to control the sweeping robot to move to the next position that meets the predetermined conditions, execute the execution process of the determination module 2031 and the first construction module 2032, and fuse the constructed three-dimensional sub-maps to obtain a merged three-dimensional map;

[0109] The loop module 2034 is used to loop the execution process of the control module 2033 until the obtained merged three-dimensional map is a global three-dimensional map of the environment space.

[0110] This embodiment provides a sweeping robot. Compared with the prior art that performs SLAM based only on laser radar, this application, through step A, determines the position information of the sweeping robot at the current position through the corresponding point cloud matching algorithm based on the acquired laser point cloud data, step B, constructs a three-dimensional sub-map of the environmental space based on the determined position information of the sweeping robot at the current position and the depth information acquired by the sweeping robot at the current position, step C, controls the sweeping robot to move to the next position that meets the predetermined conditions, executes steps A and B, and fuses each constructed three-dimensional sub-map to obtain a merged three-dimensional map, and executes step C repeatedly until the obtained merged three-dimensional map is a global three-dimensional map of the environmental space. That is, this application constructs a three-dimensional map of the environmental space based on the acquired depth information and laser point cloud data. Compared with the constructed two-dimensional map, the three-dimensional map contains the information of obstacles in the vertical direction. Therefore, the three-dimensional map contains more information of the environmental space than the existing two-dimensional map constructed only based on laser radar. At the same time, the depth camera that obtains the depth information of the spatial environment can detect the information of obstacles such as hollow tables and chairs that cannot be detected by laser radar, thereby improving the accuracy of the constructed map of the environmental space.

[0111] The sweeping robot of this embodiment can execute a three-dimensional map construction method provided in the above embodiments of the present application, and its implementation principle is similar and will not be repeated here.

[0112] The present application embodiment provides another sweeping robot, such as Figure 3 As shown, the cleaning robot 30 of this embodiment includes: a depth camera 301, a laser radar sensor 302 and a construction device 303;

[0113] The depth camera 301 is used to obtain the depth information of the cleaning robot at the current position;

[0114] in, Figure 3 The depth camera 301 and Figure 2 The function of the depth camera 201 in is the same or similar.

[0115] A laser radar sensor 302, used to obtain laser point cloud data;

[0116] in, Figure 3 The laser radar sensor 302 in Figure 2 The function of the lidar sensor 202 is the same or similar.

[0117] The construction means 303 comprises:

[0118] The determination module 3031 is used to determine the posture information of the sweeping robot at the current position through the corresponding point cloud matching algorithm based on the laser point cloud data obtained by the laser radar sensor 302;

[0119] in, Figure 3 The determination module 3031 and Figure 2 The function of the determination module 2031 in is the same or similar.

[0120] A first construction module 3032 is used to construct a three-dimensional sub-map of the environment space based on the posture information of the cleaning robot at the current position determined by the determination module 3031 and the depth information of the cleaning robot at the current position obtained by the depth camera 301;

[0121] in, Figure 3 The first building block 3032 in Figure 2 The function of the first building block 2032 in is the same or similar.

[0122] The control module 3033 is used to control the sweeping robot to move to the next position that meets the predetermined conditions, execute the execution process of the determination module 3031 and the first construction module 3032, and fuse the constructed three-dimensional sub-maps to obtain a merged three-dimensional map;

[0123] in, Figure 3 The control module 3033 in Figure 2 The functions of the control module 2033 in are the same or similar.

[0124] The loop module 3034 is used to loop the execution process of the control module 3033 until the obtained merged three-dimensional map is a global three-dimensional map of the environment space.

[0125] in, Figure 3 The loop module 3034 in Figure 2 The function of the loop module 2034 in is the same or similar.

[0126] The embodiment of the present application provides a possible implementation method, wherein the corresponding point cloud matching algorithm includes any one of the following: an iterative nearest neighbor algorithm; a correlation matching algorithm based on a probability model.

[0127] For the embodiments of the present application, the problem of determining the position and posture information of the sweeping robot at the current position is solved by matching laser point cloud data based on an iterative nearest neighbor algorithm or a correlation matching algorithm based on a probability model.

[0128] The embodiment of the present application provides a possible implementation method. Specifically, the control module 3033 includes a first determination unit 30331 and a control unit 30332;

[0129] A first determining unit 30331 is used to determine movement information of the sweeping robot based on the three-dimensional sub-map or the combined three-dimensional map, where the movement information includes movement direction information and movement distance information;

[0130] The control unit 30332 is used to control the sweeping robot to move to the next position that meets the predetermined conditions based on the movement information.

[0131] The embodiment of the present application solves the problem of how the sweeping robot reaches the next position that meets the predetermined conditions, and provides a basis for constructing a three-dimensional sub-map at the next position that meets the predetermined conditions.

[0132] The embodiment of the present application provides a possible implementation method. Further, the construction device 303 also includes a second construction module 3035;

[0133] The second construction module 3035 is used to construct a two-dimensional sub-map of the environment space through a simultaneous localization and mapping SLAM algorithm based on the acquired laser point cloud data;

[0134] The control module 3033 is specifically used to determine the movement information of the sweeping robot based on the two-dimensional sub-map, the movement information including the movement direction information and the movement distance information, and to control the sweeping robot to move to the next position that meets the predetermined conditions based on the movement information.

[0135] The embodiment of the present application solves the problem of how the sweeping robot reaches the next position that meets the predetermined conditions, and provides a basis for constructing a three-dimensional sub-map at the next position that meets the predetermined conditions.

[0136] The embodiment of the present application provides a possible implementation method. Further, the construction device 303 also includes a planning module 3036;

[0137] The planning module 3036 is used to plan the working path of the cleaning robot based on the global three-dimensional map. The working path includes the route for the cleaning robot to reach the cleaning target area and / or the route for the cleaning robot to clean the cleaning target area.

[0138] For the embodiment of the present application, the working path of the sweeping robot is planned based on the constructed global three-dimensional map, thereby solving the navigation problem of the sweeping robot.

[0139] The embodiment of the present application provides a possible implementation method. Specifically, the global three-dimensional map includes three-dimensional information of each obstacle and / or cliff, and the planning module 3036 includes a second determination unit 30361 and a planning unit 30362;

[0140] The second determining unit 30361 is used to determine the way for the cleaning robot to pass through each obstacle and / or cliff based on the three-dimensional information of each obstacle and / or cliff;

[0141] The planning unit 30362 is used to plan the working path of the sweeping robot based on the way of passing through various obstacles and / or cliffs determined by the second determination unit.

[0142] According to the embodiment of the present application, the working path of the sweeping robot is planned by passing through various obstacles and / or cliffs, thereby solving the problem of how to plan the traveling path of the sweeping robot.

[0143] The embodiment of the present application provides a sweeping robot. Compared with the prior art that performs SLAM based only on laser radar, the present application determines the posture information of the sweeping robot at the current position through the corresponding point cloud matching algorithm based on the acquired laser point cloud data through step A, builds a three-dimensional sub-map of the environment space based on the determined posture information of the sweeping robot at the current position and the depth information acquired by the sweeping robot at the current position through step B, controls the sweeping robot to move to the next position that meets the predetermined conditions, executes steps A and B, and fuses the constructed three-dimensional sub-maps to obtain a merged three-dimensional map, and executes step C repeatedly until the merged three-dimensional map obtained is a global three-dimensional map of the environment space. That is, the present application constructs a three-dimensional map of the environment space based on the acquired depth information and laser point cloud data. Compared with the constructed two-dimensional map, the three-dimensional map contains the information of obstacles in the vertical direction. Therefore, the three-dimensional map contains more information of the environment space than the existing two-dimensional map constructed only based on laser radar. At the same time, the depth camera that obtains the depth information of the spatial environment can detect the information of obstacles such as hollow tables and chairs that cannot be detected by laser radar, thereby improving the accuracy of the constructed map of the environment space.

[0144] The sweeping robot provided in the embodiment of the present application is applicable to the above-mentioned method embodiment, which will not be described in detail here.

[0145] The present application embodiment provides an electronic device, such as Figure 4 As shown, Figure 4 The electronic device 40 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Further, the electronic device 40 may also include a transceiver 4004. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 400 does not constitute a limitation on the embodiments of the present application.

[0146] The processor 4001 is used in the embodiment of the present application to implement Figure 2 or Figure 3 The depth camera, lidar sensor, and functions of the construction device are shown. The transceiver 4004 includes a receiver and a transmitter.

[0147] Processor 4001 may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0148] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI bus or an EISA bus, etc. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0149] Memory 4003 can be ROM or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.

[0150] The memory 4003 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement Figure 2 or Figure 3 The functions of the sweeping robot provided by the illustrated embodiment.

[0151] The present application embodiment provides an electronic device applicable to the above method embodiment, which will not be described in detail here.

[0152] The embodiment of the present application provides an electronic device. Compared with the prior art that performs SLAM based only on laser radar, the present application determines the posture information of the sweeping robot at the current position through the corresponding point cloud matching algorithm based on the acquired laser point cloud data through step A, builds a three-dimensional sub-map of the environment space based on the determined posture information of the sweeping robot at the current position and the depth information acquired by the sweeping robot at the current position through step B, controls the sweeping robot to move to the next position that meets the predetermined conditions, executes steps A and B, and fuses each constructed three-dimensional sub-map to obtain a merged three-dimensional map, and executes step C repeatedly until the merged three-dimensional map obtained is a global three-dimensional map of the environment space. That is, the present application constructs a three-dimensional map of the environment space based on the acquired depth information and laser point cloud data. Compared with the constructed two-dimensional map, the three-dimensional map contains the information of obstacles in the vertical direction. Therefore, the three-dimensional map contains more information of the environment space than the existing two-dimensional map constructed only based on laser radar. At the same time, the depth camera that obtains the depth information of the spatial environment can detect the information of obstacles such as hollow tables and chairs that cannot be detected by laser radar, thereby improving the accuracy of the constructed map of the environment space.

[0153] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method shown in the above embodiment is implemented.

[0154] The embodiment of the present application provides a computer-readable storage medium. Compared with the prior art that performs SLAM based only on laser radar, the present application determines the posture information of the sweeping robot at the current position through the corresponding point cloud matching algorithm based on the acquired laser point cloud data through step A, builds a three-dimensional sub-map of the environment space based on the determined posture information of the sweeping robot at the current position and the depth information acquired by the sweeping robot at the current position through step B, controls the sweeping robot to move to the next position that meets the predetermined conditions, executes steps A and B, and fuses the constructed three-dimensional sub-maps to obtain a merged three-dimensional map, and executes step C repeatedly until the merged three-dimensional map obtained is a global three-dimensional map of the environment space. That is, the present application constructs a three-dimensional map of the environment space based on the acquired depth information and laser point cloud data. Compared with the constructed two-dimensional map, the three-dimensional map contains the information of obstacles in the vertical direction. Therefore, the three-dimensional map contains more information of the environment space than the existing two-dimensional map constructed only based on laser radar. At the same time, the depth camera that obtains the depth information of the space environment can detect the information of obstacles such as hollow tables and chairs that cannot be detected by laser radar, thereby improving the accuracy of the constructed map of the environment space.

[0155] The present application embodiment provides a computer-readable storage medium applicable to the above method embodiment, which will not be described in detail here.

[0156] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0157] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for constructing a three-dimensional map, It is characterized in that include: Step A, determining the position information of the sweeping robot at the current position through a corresponding point cloud matching algorithm based on the acquired laser point cloud data; Step B: constructing a three-dimensional sub-map of the environment space based on the determined position information of the cleaning robot at the current position and the depth information obtained by the cleaning robot at the current position; Step C, controlling the sweeping robot to move to a next position that meets a predetermined condition, executing steps A and B, and fusing the constructed three-dimensional sub-maps to obtain a merged three-dimensional map; Execute step C repeatedly until the obtained merged three-dimensional map is a global three-dimensional map of the environment space; The method further includes: constructing a two-dimensional sub-map of the environment space through a simultaneous positioning and mapping SLAM algorithm based on the acquired laser point cloud data; The controlling the sweeping robot to move to a next position meeting a predetermined condition comprises: Determine movement information of the sweeping robot based on the two-dimensional sub-map, where the movement information includes movement direction information and movement distance information; Controlling the cleaning robot to move to a next position that meets a predetermined condition based on the movement information; Among them, the next position that meets the predetermined conditions is determined based on the constructed three-dimensional sub-map or the combined three-dimensional map and the effective detection range of the depth camera configured by the sweeping robot, and the next position that meets the predetermined conditions is determined in an area that the sweeping robot can reach but has not yet reached.

2. The method according to claim 1, It is characterized in that The corresponding point cloud matching algorithm includes any one of the following: an iterative nearest neighbor algorithm; a correlation matching algorithm based on a probability model.

3. The method according to claim 1, It is characterized in that The controlling the sweeping robot to move to a next position meeting a predetermined condition comprises: Determine movement information of the cleaning robot based on the three-dimensional sub-map or the combined three-dimensional map, wherein the movement information includes movement direction information and movement distance information; The cleaning robot is controlled to move to a next position that meets a predetermined condition based on the movement information.

4. The method according to claims 1-3, It is characterized in that The method further includes: A working path of the cleaning robot is planned based on the global three-dimensional map, where the working path includes a route for the cleaning robot to reach a cleaning target area and / or a route for the cleaning robot to clean the cleaning target area.

5. The method according to claim 4, It is characterized in that The global three-dimensional map includes three-dimensional information of each obstacle and / or cliff, and the planning of the working path of the sweeper based on the global three-dimensional map includes: Determining a way for the cleaning robot to pass through each obstacle and / or cliff based on the three-dimensional information of each obstacle and / or cliff; The working path of the cleaning robot is planned based on the determined way of passing through various obstacles and / or cliffs.

6. A sweeping robot, It is characterized in that The sweeping robot includes: a depth camera, a laser radar sensor and a construction device; The depth camera is used to obtain the depth information of the cleaning robot at the current position; The laser radar sensor is used to obtain laser point cloud data; The construction device comprises: A determination module, used to determine the position information of the sweeping robot at the current position through a corresponding point cloud matching algorithm based on the laser point cloud data obtained by the laser radar sensor; A first construction module, configured to construct a three-dimensional sub-map of the environment space based on the posture information of the cleaning robot at the current position determined by the determination module and the depth information of the cleaning robot at the current position obtained by the depth camera; A control module, used for controlling the sweeping robot to move to a next position that meets a predetermined condition, executing the execution process of the determination module and the first construction module, and fusing the constructed three-dimensional sub-maps to obtain a merged three-dimensional map; A loop module, used for looping the execution process of the control module until the obtained merged three-dimensional map is a global three-dimensional map of the environment space; The construction device also includes a second construction module; The second construction module is used to construct a two-dimensional sub-map of the environment space through a simultaneous localization and mapping SLAM algorithm based on the acquired laser point cloud data; The control module is used to determine the movement information of the sweeping robot based on the two-dimensional sub-map, wherein the movement information includes movement direction information and movement distance information, and to control the sweeping robot to move to a next position that meets a predetermined condition based on the movement information; Among them, the next position that meets the predetermined conditions is determined based on the constructed three-dimensional sub-map or the combined three-dimensional map and the effective detection range of the depth camera configured by the sweeping robot, and the next position that meets the predetermined conditions is determined in an area that the sweeping robot can reach but has not yet reached.

7. The sweeping robot according to claim 6, It is characterized in that The corresponding point cloud matching algorithm includes any one of the following: an iterative nearest neighbor algorithm; a correlation matching algorithm based on a probability model.

8. The sweeping robot according to claim 6, It is characterized in that The control module includes a first determination unit and a control unit; The first determining unit is used to determine the movement information of the sweeping robot based on the three-dimensional sub-map or the combined three-dimensional map, wherein the movement information includes movement direction information and movement distance information; The control unit is used to control the sweeping robot to move to a next position that meets a predetermined condition based on the movement information.

9. The sweeping robot according to claims 6-8, It is characterized in that The construction device also includes a planning module; The planning module is used to plan the working path of the cleaning robot based on the global three-dimensional map, and the working path includes the route of the cleaning robot to reach the cleaning target area and / or the route of the cleaning robot to clean the cleaning target area.

10. The sweeping robot according to claim 9, It is characterized in that The global three-dimensional map includes three-dimensional information of each obstacle and / or cliff, and the planning module includes a second determination unit and a planning unit; The second determining unit is used to determine the way in which the cleaning robot passes through each obstacle and / or cliff based on the three-dimensional information of each obstacle and / or cliff; The planning unit is used to plan the working path of the cleaning robot based on the way of passing through various obstacles and / or cliffs determined by the second determining unit.

11. An electronic device, It is characterized in that It includes a processor and a memory; The memory is used to store operation instructions; The processor is used to execute the three-dimensional map construction method described in any one of claims 1 to 5 by calling the operation instruction.

12. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method for constructing a three-dimensional map described in any one of claims 1 to 5 is implemented.