Depth map acquisition method based on laser radar and monocular camera and sweeping robot

By combining lidar with a monocular camera, the depth information of the sweeping robot in the environment is obtained, which solves the problems of poor perception and high cost in strong light environments, achieves high-accuracy and low-cost environmental perception, and reduces the amount of calculations. .

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

Patent Information

Application Number
CN201910168751.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-03-06
Publication Date
2024-08-23
Estimated Expiration
2039-03-06

AI Technical Summary

Technical Problem

Existing sweeping robots have poor environmental perception capabilities in strong light environments, and the cost of structured light cameras is high, making it difficult to achieve low cost and improve the accuracy of environmental perception.

Method used

The depth map acquisition method based on lidar and monocular camera is used to obtain multi-frame images through the monocular camera for key frame extraction. Combined with the point cloud data obtained by lidar, the pose information and depth map of the sweeping robot are determined, avoiding the use of structured light. camera.

Benefits of technology

It improves the accuracy of the sweeping robot's perception of the environment, reduces the cost, reduces the amount of calculation, and enhances the calculation efficiency of the environmental space depth map.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111665826B
    Figure CN111665826B
Patent Text Reader

Abstract

The present application provides a method for acquiring a depth map based on a laser radar and a monocular camera and a sweeping robot, which are applied in the field of robotics. The method includes: determining the depth information of the sweeping robot in the environment space based on the laser radar and the monocular camera, avoiding the use of a structured light camera that is greatly affected by lighting conditions, easily disturbed and expensive, so that the sweeping robot is less affected by lighting conditions, thereby improving the accuracy of the sweeping robot's perception of the environment, and at the same time, reducing the cost of the sweeping robot. In addition, the present application determines the position information of the sweeping robot through the laser point cloud data obtained by the laser radar. Compared with the method of determining the position information of the sweeping robot through image feature matching based on the image obtained by the monocular camera, the required amount of calculation is relatively small, so that the position information of the sweeping robot can be determined with a small amount of calculation, thereby reducing the amount of calculation for determining the depth map of the environment space.
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. Specifically, the present application relates to a depth map acquisition method based on laser radar and a monocular camera and a sweeping robot. 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. In order to improve the automation of the sweeping robot, how to make the sweeping robot have a certain environmental perception ability has become a problem.

[0003] At present, as a solution for a sweeping robot to realize environmental perception, the sweeping robot can directly obtain the depth information of obstacles in the environment space where the sweeping robot is located by configuring a structured light camera, thereby realizing the sweeping robot's perception of the environment space. However, the structured light camera performs poorly in a strong light environment, is easily disturbed, and is relatively expensive. Therefore, how to provide a technical solution that is less affected by lighting conditions and has low cost to realize the sweeping robot's perception of the environment has become an urgent problem to be solved. Summary of the invention

[0004] This application provides a depth map acquisition method based on laser radar and monocular camera and a sweeping robot, which are used to improve the accuracy of the sweeping robot's environmental perception and reduce costs. The technical solutions adopted in this application are as follows:

[0005] In a first aspect, the present application provides a method for acquiring a depth map based on a laser radar and a monocular camera, the method comprising:

[0006] Perform key frame extraction based on multiple frames of images acquired through the monocular camera to obtain two frames of key frame images, wherein the two frames of key frame images include a current position image of the sweeping robot at the current position acquired through the monocular camera;

[0007] Based on the laser point cloud data obtained by the laser radar, the position and posture information of the sweeping robot corresponding to the two key frame images obtained by the monocular camera is determined;

[0008] Determine the depth value corresponding to each pixel point in the current position image based on the determined position information corresponding to the sweeping robot when the two key frame images are obtained;

[0009] A depth map of the cleaning robot at the current position is determined based on the depth values ​​corresponding to the respective pixels in the determined current position image.

[0010] Optionally, determining the depth value corresponding to each pixel point in the current position image based on the determined position information corresponding to the cleaning robot when the two key frame images are acquired includes:

[0011] Based on the determined position and posture information respectively corresponding to the sweeping robot when the two key frame images are shot, a depth value corresponding to each pixel point in the current position image is determined by a triangulation method.

[0012] Optionally, extracting key frames based on multiple frames of images acquired by a monocular camera to obtain two key frame images includes:

[0013] Determine that the acquired current position image of the cleaning robot at the current position is one of the two key frame images;

[0014] Determine that a candidate image among the multiple frames of images acquired by the monocular camera that meets a predetermined relationship with the current position image is another key frame image among the two key frame images, wherein the predetermined relationship includes that the rotation angle and / or position change of the sweeping robot when acquiring the current position image compared to when acquiring the candidate image meets a predetermined threshold condition.

[0015] Optionally, the determining, based on the laser point cloud data acquired by the laser radar, the posture information corresponding to the cleaning robot when the two key frame images are acquired by the monocular camera, includes:

[0016] Based on the laser point cloud data obtained by the laser radar, the position information of the sweeping robot at each position is determined by the corresponding point cloud matching algorithm;

[0017] Based on the determined position and posture information of the cleaning robot at each position, the position and posture information corresponding to the cleaning robot when the two key frame images are acquired by the monocular camera is determined through a time mapping relationship.

[0018] Optionally, the method further comprises:

[0019] Based on the obstacle distance information determined by the depth map, the travel information of the cleaning robot is determined, and the travel information includes direction information and / or speed information for controlling the travel of the cleaning robot.

[0020] Optionally, the method further comprises:

[0021] Based on the laser point cloud data acquired by the laser radar, a two-dimensional map of the sweeping robot in the environment space is constructed.

[0022] Optionally, the method further comprises:

[0023] Based on the constructed two-dimensional map of the cleaning robot in the environment space, the working path of the cleaning robot is planned, 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

[0024] In a second aspect, a sweeping robot is provided, the sweeping robot comprising

[0025] LiDAR, monocular camera and determination device;

[0026] The laser radar is used to obtain laser point cloud data at a corresponding position of the cleaning robot in the environment space;

[0027] The monocular camera is used to obtain an image of the cleaning robot at a corresponding position in the environment space;

[0028] The determining device comprises:

[0029] An extraction module, configured to extract key frames based on multiple frames of images acquired by the monocular camera to obtain two frames of key frame images, wherein the two frames of key frame images include a current position image of the sweeping robot at a current position acquired by the monocular camera;

[0030] A first determination module is used to determine, based on laser point cloud data acquired by a laser radar, the position and posture information corresponding to the two key frame images extracted by the extraction module and acquired by a monocular camera;

[0031] A second determination module is used to determine the depth value corresponding to each pixel point in the current position image based on the posture information corresponding to the cleaning robot when the two key frame images are obtained, which is determined by the first determination module;

[0032] The third determination module is used to determine the depth map of the cleaning robot at the current position based on the depth value corresponding to each pixel point in the current position image determined by the second determination module.

[0033] Optionally, the second determination module is specifically used to determine the depth value corresponding to each pixel point in the current position image by a triangulation method based on the determined posture information corresponding to the cleaning robot when the two frames of key frame images are taken.

[0034] Optionally, the extraction module includes:

[0035] A first determining unit, configured to determine that the acquired current position image of the cleaning robot at the current position is one of the two key frame images;

[0036] The second determination unit is used to determine that a candidate image among the multiple frames of images acquired by the monocular camera that meets a predetermined relationship with the current position image is another key frame image among the two key frame images, wherein the predetermined relationship includes that the rotation angle and / or position change of the sweeping robot when acquiring the current position image is compared with when acquiring the candidate image meets a predetermined threshold condition.

[0037] Optionally, the first determining module includes:

[0038] A third determination unit is used to determine the position and posture information of the sweeping robot at various positions through a corresponding point cloud matching algorithm based on the laser point cloud data obtained by the laser radar;

[0039] The fourth determining unit is used to determine the posture information corresponding to the cleaning robot when the two key frame images are acquired by the monocular camera based on the posture information of the cleaning robot at each position determined by the fourth determining unit through a time mapping relationship.

[0040] Furthermore, the determining device further comprises:

[0041] The fourth determination module is used to determine the travel information of the cleaning robot based on the obstacle distance information determined by the depth map, and the travel information includes direction information and / or speed information for controlling the travel of the cleaning robot.

[0042] Furthermore, the determining device further comprises:

[0043] A construction module is used to construct a two-dimensional map of the sweeping robot in the environment space based on the laser point cloud data obtained by the laser radar.

[0044] Furthermore, the determining device further comprises:

[0045] The planning module is used to plan the working path of the sweeping robot based on the two-dimensional map of the environment space of the sweeping robot, and 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.

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

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

[0048] A processor is used to execute a depth map acquisition method based on a laser radar and a monocular camera as shown in any implementation of the first aspect of the present application by calling an operation instruction.

[0049] 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 depth map acquisition method based on laser radar and a monocular camera shown in any embodiment of the first aspect of the present application.

[0050] The present application provides a depth map acquisition method based on laser radar and monocular camera and a sweeping robot. Compared with the prior art of acquiring depth information by configuring a structured light camera, the present application obtains two key frame images by performing key frame extraction based on multiple frames of images acquired by a monocular camera. The two key frame images include a current position image of the sweeping robot at the current position acquired by the monocular camera, and then based on the laser point cloud data acquired by the laser radar, the position and posture information corresponding to the two key frame images acquired by the monocular camera are determined, and then based on the determined position and posture information corresponding to the sweeping robot when the two key frame images are acquired, the depth value corresponding to each pixel point in the current position image is determined, and the depth map of the sweeping robot at the current position is determined based on the determined depth value corresponding to each pixel point in the current position image. That is, the present application determines the depth information of the sweeping robot in the environmental space based on the laser radar and the monocular camera, avoiding the use of structured light cameras that are greatly affected by lighting conditions, easily interfered with and expensive. Thus, the application is less affected by lighting conditions, thereby improving the accuracy of the sweeping robot's perception of the environment and reducing the cost of the sweeping robot. In addition, the present application determines the position information of the sweeping robot through the laser point cloud data obtained by the laser radar. Compared with determining the position information of the sweeping robot through feature matching based on the image obtained by the monocular camera, the required amount of calculation is relatively small, so that the position information of the sweeping robot can be determined with a smaller amount of calculation, thereby reducing the amount of calculation for determining the depth map of the environmental space.

[0051] 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

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in describing the embodiments of the present application.

[0053] Figure 1 A schematic diagram of a process for obtaining a depth map based on a laser radar and a monocular camera provided in an embodiment of the present application;

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

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

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

[0057] 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.

[0058] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", 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.

[0059] 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.

[0060] An embodiment of the present application provides a depth map acquisition method based on a laser radar and a monocular camera, such as Figure 1 As shown, the method includes:

[0061] Step S101, performing key frame extraction based on multiple frames of images acquired by a monocular camera to obtain two frames of key frame images, wherein the two frames of key frame images include a current position image of the sweeping robot at a current position acquired by the monocular camera;

[0062] Specifically, the sweeping robot is configured with a corresponding monocular camera, wherein the monocular camera can be an ordinary camera, through which multiple frames of images of the sweeping robot in the environment space can be obtained, and two frames are extracted from the multiple frames of images as key frame images through a corresponding key frame extraction method; wherein the two key frame images include a current position image of the sweeping robot at the current position obtained by the monocular camera; wherein the two key frame images can also be obtained by obtaining a corresponding video of the sweeping robot in the environment space through the monocular camera, and extracting video frames from the video through a corresponding key frame extraction method.

[0063] Step S102, based on the laser point cloud data obtained by the laser radar, determining the posture information of the cleaning robot corresponding to the two key frame images obtained by the monocular camera;

[0064] Specifically, the sweeping robot is equipped with a corresponding laser radar, through which the laser point cloud data of the sweeping robot in the environment can be obtained, and the obtained laser point cloud data can be processed by a corresponding data processing method to determine the posture information corresponding to the two frames of key frame images obtained by the monocular camera, wherein the posture information includes the position information and posture information of the sweeping robot; wherein the laser radar can be a mechanical laser radar (such as a single-line laser radar, a multi-line laser radar) or a solid-state laser radar, wherein the biggest structural feature of the mechanical laser radar is that it has a mechanical rotating mechanism, so that it can rotate, and the biggest structural feature of the solid-state laser radar is that it has no rotating parts, so it occupies relatively small space; wherein the implementation method of the solid-state laser radar can be any of the following: based on a phased array method; based on a Flash method; based on a micro-electromechanical system method.

[0065] Step S103, determining a depth value corresponding to each pixel point in the current position image based on the determined position information corresponding to the cleaning robot when the two key frame images are obtained;

[0066] For the embodiments of the present application, recovering the depth information of a scene from a two-dimensional image is one of the core issues in the field of computer vision. The image acquired by the monocular camera configured by the sweeping robot is a two-dimensional image, and the depth information of the environment space in which the sweeping robot is located is lost. Specifically, based on the determined posture information corresponding to the sweeping robot when the two frames of key frame images are acquired, and based on the corresponding depth information recovery method, the depth value corresponding to each pixel point in the current position image can be determined, wherein the depth value can be the distance between the sweeping robot and the obstacle.

[0067] Step S104: determining a depth map of the cleaning robot at the current position based on the determined depth values ​​corresponding to the respective pixel points in the current position image.

[0068] Specifically, the depth values ​​corresponding to the pixels in the determined current position image are processed accordingly to determine a depth map of the sweeping robot at the current position, wherein the depth map may be point cloud data, thereby restoring the depth information of the scene from the two-dimensional image.

[0069] The embodiment of the present application provides a method for acquiring a depth map based on a laser radar and a monocular camera. Compared with the prior art of acquiring depth information by configuring a structured light camera, the embodiment of the present application obtains two key frame images by performing key frame extraction based on multiple frames of images acquired by a monocular camera. The two key frame images include a current position image of a sweeping robot at its current position acquired by a monocular camera, and then based on the laser point cloud data acquired by the laser radar, the position and posture information corresponding to the sweeping robot when the two key frame images are acquired by the monocular camera are determined, and then based on the determined position and posture information corresponding to the sweeping robot when the two key frame images are acquired, the depth value corresponding to each pixel point in the current position image is determined, and based on the determined depth value corresponding to each pixel point in the current position image, the depth map of the sweeping robot at the current position is determined. That is, the present application determines the depth information of the sweeping robot in the environmental space based on the laser radar and the monocular camera, avoiding the use of structured light cameras that are greatly affected by lighting conditions, easily interfered with and expensive. Thus, the application is less affected by lighting conditions, thereby improving the accuracy of the sweeping robot's perception of the environment and reducing the cost of the sweeping robot. In addition, the present application determines the position information of the sweeping robot through the laser point cloud data obtained by the laser radar. Compared with determining the position information of the sweeping robot through feature matching based on the image obtained by the monocular camera, the required amount of calculation is relatively small, so that the position information of the sweeping robot can be determined with a smaller amount of calculation, thereby reducing the amount of calculation for determining the depth map of the environmental space.

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

[0071] Step S1031 (not shown in the figure), based on the determined posture information corresponding to the cleaning robot when the two key frame images are taken, the depth value corresponding to each pixel point in the current position image is determined by a triangulation method.

[0072] Specifically, triangulation is simply to observe the same three-dimensional point P (x, y, z) at different positions. Given the two-dimensional projection points X1 (x1, y1) and X2 (x2, y2) of the three-dimensional point observed at different positions, the depth information z of the three-dimensional point can be restored using the triangular relationship.

[0073] Specifically, image feature extraction can be performed on two key frame images respectively through a corresponding feature extraction method, and then a plurality of identical image features can be determined through a corresponding image feature matching method, and based on the determined position information corresponding to the sweeping robot when shooting the two key frame images, the positions of the plurality of identical image features in the two key frame images can be determined respectively, and then the depth information corresponding to the plurality of identical image features can be determined through a corresponding triangular relationship; wherein the image feature can be a corner detection feature. Specifically, according to the depth information of the plurality of identical image features in the two key frame images, the depth value corresponding to each pixel in the current position image can be determined through a mean absolute difference algorithm, an error mean sum algorithm, an absolute error sum algorithm, a normalized product correlation algorithm, or an absolute transformation error sum algorithm.

[0074] For the embodiment of the present application, based on the posture information corresponding to the sweeping robot when taking two frames of key frame images, the depth value corresponding to each pixel point in the current position image is determined by a triangulation method, thereby solving the problem of determining the depth value corresponding to each pixel point in the current position.

[0075] This embodiment of the application provides a possible implementation method, step S101 includes:

[0076] Step S1011 (not shown in the figure), determining that the acquired current position image of the cleaning robot at the current position is one of the two key frame images.

[0077] Step S1012 (not shown in the figure) determines that a candidate image in the multiple frames of images acquired by the monocular camera that meets a predetermined relationship with the current position image is another key frame image in the two key frame images, wherein the predetermined relationship includes that the rotation angle and / or position change of the sweeping robot when acquiring the current position image is compared with when acquiring the candidate image, meets a predetermined threshold condition.

[0078] Specifically, the current position image obtained when the sweeping robot moves to the current position is determined as one of the two key frame images, and then a predetermined condition is selected based on the pre-set key frame, and a candidate image is determined from the multiple frames of images obtained by the monocular camera as the other key frame image of the two key frame images; wherein, the predetermined relationship can be that the change in the rotation angle of the sweeping robot when obtaining the current position image is compared with the time when the candidate image is obtained reaches a certain threshold (such as the rotation angle change reaches 5 degrees), or the position change of the sweeping robot meets a predetermined threshold condition, such as the sweeping robot moves 10 centimeters.

[0079] For the embodiment of the present application, the problem of determining two key frame images is solved, which provides a basis for subsequently determining the depth map of the current position.

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

[0081] Step S1021 (not shown in the figure), determining the position information of the sweeping robot at each position through a corresponding point cloud matching algorithm based on the laser point cloud data obtained by the laser radar;

[0082] 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.

[0083] Specifically, the corresponding point cloud matching algorithm can be used to perform corresponding matching processing on the acquired laser point cloud data, thereby determining the position and posture information of the sweeping robot at each position; wherein 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; specifically, 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 acquired 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. wherein, a matching threshold can be set to filter out invalid associated features to accurately obtain the transformation parameters (R, T).

[0084] Step S1022 (not shown in the figure) determines the posture information of the cleaning robot corresponding to the two key frame images when the monocular camera is used to obtain the two key frame images based on the determined posture information of the cleaning robot at each position through the time mapping relationship.

[0085] Specifically, when the sweeping robot obtains laser point cloud data through the laser radar, the corresponding time information is recorded, so that the position information of the sweeping robot at each corresponding moment can be determined. When the sweeping robot obtains images through the monocular camera, the corresponding time information is also recorded. Then, according to the corresponding time mapping relationship, the corresponding position information of the sweeping robot when obtaining two frames of key frame images can be determined.

[0086] For the embodiment of the present application, the posture information of the sweeping robot at each position is determined based on the laser point cloud data obtained by the laser radar, and the posture information corresponding to the sweeping robot when acquiring two frames of key frame images is determined based on the determined posture information at each position, thereby solving the problem of determining the posture information corresponding to the sweeping robot when acquiring two frames of key frame images.

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

[0088] Step S105 (not shown in the figure), based on the obstacle distance information determined by the depth map, determining the travel information of the cleaning robot, the travel information including the direction information and / or speed information for controlling the travel of the cleaning robot.

[0089] Specifically, each pixel value of the depth map is the distance information from the obstacle to the sweeping robot, and the travel information of the sweeping robot can be determined based on the distance information; wherein, the travel information can be the speed information of the sweeping robot, such as when the distance between the sweeping robot and the obstacle is greater than a first threshold, the sweeping robot is controlled to move at a first travel speed, when the distance between the sweeping robot and the obstacle is less than the first threshold and greater than the second threshold, the sweeping robot is controlled to move at a second travel speed, when the distance between the sweeping robot and the obstacle is less than the second threshold, the sweeping robot is controlled to move at a third travel speed, wherein the first travel speed is greater than the second travel speed, and the second travel speed is greater than the third travel speed; wherein, the travel information can also be the direction of travel information, such as when the distance between the sweeping robot and the obstacle is greater than a fourth threshold, the sweeping robot moves in the current direction, and when the distance between the sweeping robot and the obstacle is less than the fourth threshold, the sweeping robot is controlled to change the direction of travel, such as maintaining a certain arc of travel.

[0090] For the embodiment of the present application, the travel information of the sweeping robot is determined based on the obstacle distance information determined by the depth map, which solves the problem of determining the travel information of the sweeping robot. At the same time, the determined obstacle distance information also provides a basis for the sweeping robot to avoid obstacles.

[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), based on the laser point cloud data obtained by the laser radar, construct a two-dimensional map of the sweeping robot in the environment space.

[0093] Specifically, the Simultaneous Localization and Mapping (SLAM) problem can be described as: if a robot is placed in an unknown location in an unknown environment, is there a way to make the robot gradually draw a completely consistent map of the environment while moving? Specifically, based on the laser point cloud data obtained by the lidar, the SLAM algorithm can construct a two-dimensional map of the environment space where the sweeping robot is located.

[0094] For the embodiment of the present application, based on the laser point cloud data obtained by the laser radar, a two-dimensional map of the sweeping robot in the environmental space is constructed, which solves the problem of constructing the map of the environmental space and provides a basis for the navigation of the sweeping robot.

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

[0096] Step S107 (not shown in the figure) plans the working path of the sweeping robot based on the constructed two-dimensional map of the sweeping robot in the environmental space. The working path includes the route for the sweeping robot to reach the cleaning target area and / or the route for the sweeping robot to clean the cleaning target area.

[0097] Specifically, the working path of the sweeping robot can be planned according to the received cleaning instructions and the constructed two-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.

[0098] 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.

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

[0100] The laser radar 201 is used to obtain laser point cloud data at a corresponding position of the cleaning robot in the environment space;

[0101] The monocular camera 202 is used to obtain an image of the cleaning robot at a corresponding position in the environment space;

[0102] The determining means 203 comprises:

[0103] An extraction module 2031 is used to extract key frames based on the multiple frames of images acquired by the monocular camera 202 to obtain two frames of key frame images, wherein the two frames of key frame images include a current position image of the sweeping robot at a current position acquired by the monocular camera;

[0104] The first determination module 2032 is used to determine the position information of the cleaning robot corresponding to the two key frame images extracted by the extraction module 2031 and obtained by the monocular camera 202 based on the laser point cloud data obtained by the laser radar 201;

[0105] A second determination module 2033 is used to determine the depth value corresponding to each pixel point in the current position image based on the posture information corresponding to the cleaning robot when the two key frame images are obtained, which is determined by the first determination module 2032;

[0106] The third determining module 2034 is used to determine the depth map of the cleaning robot at the current position based on the depth value corresponding to each pixel point in the current position image determined by the second determining module 2033.

[0107] The present embodiment provides a sweeping robot. Compared with the prior art that obtains depth information by configuring a structured light camera, the embodiment of the present application obtains two key frame images by performing key frame extraction based on multiple frames of images obtained by a monocular camera, and the two key frame images include a current position image of the sweeping robot at the current position obtained by the monocular camera, and then based on the laser point cloud data obtained by a lidar, the position and posture information corresponding to the two key frame images obtained by the monocular camera are determined, and then based on the determined position and posture information corresponding to the sweeping robot when the two key frame images are obtained, the depth value corresponding to each pixel point in the current position image is determined, and based on the determined depth value corresponding to each pixel point in the current position image, the depth map of the sweeping robot at the current position is determined. That is, the present application determines the depth information of the sweeping robot in the environmental space based on the laser radar and the monocular camera, avoiding the use of structured light cameras that are greatly affected by lighting conditions, easily interfered with and expensive. Thus, the application is less affected by lighting conditions, thereby improving the accuracy of the sweeping robot's perception of the environment and reducing the cost of the sweeping robot. In addition, the present application determines the position information of the sweeping robot through the laser point cloud data obtained by the laser radar. Compared with determining the position information of the sweeping robot through feature matching based on the image obtained by the monocular camera, the required amount of calculation is relatively small, so that the position information of the sweeping robot can be determined with a smaller amount of calculation, thereby reducing the amount of calculation for determining the depth map of the environmental space.

[0108] The sweeping robot of this embodiment can execute a depth map acquisition method based on laser radar and monocular camera provided in the above embodiments of this application. The implementation principle is similar and will not be repeated here.

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

[0110] The laser radar 301 is used to obtain laser point cloud data at a corresponding position of the cleaning robot in the environment space;

[0111] in, Figure 3 The laser radar 301 and Figure 2 The function of the laser radar 201 is the same or similar.

[0112] The monocular camera 302 is used to obtain an image of the cleaning robot at a corresponding position in the environment space;

[0113] in, Figure 3 The monocular camera 302 and Figure 2The function of the monocular camera 202 in is the same or similar.

[0114] The determining means 303 comprises:

[0115] An extraction module 3031 is used to extract key frames based on the multiple frames of images acquired by the monocular camera 302 to obtain two frames of key frame images, wherein the two frames of key frame images include a current position image of the sweeping robot at the current position acquired by the monocular camera;

[0116] in, Figure 3 The extraction module 3031 in Figure 2 The function of the extraction module 2031 in is the same or similar.

[0117] A first determination module 3032 is used to determine, based on the laser point cloud data obtained by the laser radar 301, the position and posture information of the cleaning robot corresponding to the two key frame images extracted by the extraction module 3031 and obtained by the monocular camera 302;

[0118] in, Figure 3 The first determination module 3032 in Figure 2 The function of the first determination module 2032 in is the same or similar.

[0119] A second determination module 3033 is used to determine the depth value corresponding to each pixel point in the current position image based on the posture information corresponding to the cleaning robot when the two key frame images are obtained, which is determined by the first determination module 3032;

[0120] in, Figure 3 The second determination module 3033 in Figure 2 The function of the second determination module 2033 in is the same or similar.

[0121] The third determination module 3034 is used to determine the depth map of the cleaning robot at the current position based on the depth value corresponding to each pixel point in the current position image determined by the second determination module 3033.

[0122] in, Figure 3 The third determination module 3034 in Figure 2 The function of the third determination module 2034 in is the same or similar.

[0123] An embodiment of the present application provides a possible implementation method. Specifically, the second determination module is specifically used to determine the depth value corresponding to each pixel point in the current position image through a triangulation method based on the posture information corresponding to the sweeping robot when the two frames of key frame images are taken.

[0124] For the embodiment of the present application, based on the posture information corresponding to the sweeping robot when taking two frames of key frame images, the depth value corresponding to each pixel point in the current position image is determined by a triangulation method, thereby solving the problem of determining the depth value corresponding to each pixel point in the current position.

[0125] The embodiment of the present application provides a possible implementation method. Specifically, the extraction module 3031 includes:

[0126] The first determining unit 30311 is used to determine that the acquired current position image of the cleaning robot at the current position is one of the two key frame images;

[0127] The second determination unit 30312 is used to determine that a candidate image among the multiple frames of images acquired by the monocular camera that meets a predetermined relationship with the current position image is another key frame image among the two key frame images, wherein the predetermined relationship includes that the rotation angle and / or position change of the sweeping robot when the current position image is acquired compared to when the candidate image is acquired meets a predetermined threshold condition.

[0128] For the embodiment of the present application, the problem of determining two key frame images is solved, which provides a basis for subsequently determining the depth map of the current position.

[0129] The embodiment of the present application provides a possible implementation manner. Specifically, the first determining module 3032 includes:

[0130] The third determining unit 30321 is used to determine the position and posture information of the sweeping robot at each position through a corresponding point cloud matching algorithm based on the laser point cloud data obtained by the laser radar;

[0131] The fourth determining unit 30322 is used to determine the posture information corresponding to the cleaning robot when the two key frame images are acquired by the monocular camera based on the posture information of the cleaning robot at each position determined by the fourth determining unit through a time mapping relationship.

[0132] For the embodiment of the present application, the posture information of the sweeping robot at each position is determined based on the laser point cloud data obtained by the laser radar, and the posture information corresponding to the sweeping robot when acquiring two frames of key frame images is determined based on the determined posture information at each position, thereby solving the problem of determining the posture information corresponding to the sweeping robot when acquiring two frames of key frame images.

[0133] The embodiment of the present application provides a possible implementation manner. Further, the determining means 303 further includes:

[0134] The fourth determination module 3035 is used to determine the travel information of the cleaning robot based on the obstacle distance information determined by the depth map, and the travel information includes direction information and / or speed information for controlling the travel of the cleaning robot.

[0135] For the embodiment of the present application, the travel information of the sweeping robot is determined based on the obstacle distance information determined by the depth map, which solves the problem of determining the travel information of the sweeping robot. At the same time, the determined obstacle distance information also provides a basis for the sweeping robot to avoid obstacles.

[0136] The embodiment of the present application provides a possible implementation manner. Further, the determining means 303 further includes:

[0137] The construction module 3036 is used to construct a two-dimensional map of the cleaning robot in the environment space based on the laser point cloud data obtained by the laser radar.

[0138] For the embodiment of the present application, based on the laser point cloud data obtained by the laser radar, a two-dimensional map of the sweeping robot in the environmental space is constructed, which solves the problem of constructing the map of the environmental space and provides a basis for the navigation of the sweeping robot.

[0139] The embodiment of the present application provides a possible implementation manner. Further, the determining means 303 further includes:

[0140] The planning module 3037 is used to plan the working path of the sweeping robot based on the two-dimensional map of the sweeping robot in the environment space. The working path includes the route for the sweeping robot to reach the cleaning target area and / or the route for the sweeping robot to clean the cleaning target area.

[0141] 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.

[0142] An embodiment of the present application provides a sweeping robot. Compared with the prior art that obtains depth information by configuring a structured light camera, the embodiment of the present application obtains two key frame images by performing key frame extraction based on multiple frames of images obtained by a monocular camera, and the two key frame images include a current position image of the sweeping robot at the current position obtained by the monocular camera, and then based on the laser point cloud data obtained by a lidar, the position and posture information corresponding to the two key frame images obtained by the monocular camera are determined, and then based on the determined position and posture information corresponding to the sweeping robot when the two key frame images are obtained, the depth value corresponding to each pixel point in the current position image is determined, and based on the determined depth value corresponding to each pixel point in the current position image, the depth map of the sweeping robot at the current position is determined. That is, the present application determines the depth information of the sweeping robot in the environmental space based on the laser radar and the monocular camera, avoiding the use of structured light cameras that are greatly affected by lighting conditions, easily interfered with and expensive. Thus, the application is less affected by lighting conditions, thereby improving the accuracy of the sweeping robot's perception of the environment and reducing the cost of the sweeping robot. In addition, the present application determines the position information of the sweeping robot through the laser point cloud data obtained by the laser radar. Compared with determining the position information of the sweeping robot through feature matching based on the image obtained by the monocular camera, the required amount of calculation is relatively small, so that the position information of the sweeping robot can be determined with a smaller amount of calculation, thereby reducing the amount of calculation for determining the depth map of the environmental space.

[0143] 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.

[0144] 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.

[0145] The processor 4001 is used in the embodiment of the present application to implement Figure 2 or Figure 3 The laser radar, monocular camera and the functions of the determination device are shown. The transceiver 4004 includes a receiver and a transmitter.

[0146] 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.

[0147] 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.

[0148] 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.

[0149] 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.

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

[0151] An embodiment of the present application provides an electronic device. Compared with the prior art that obtains depth information by configuring a structured light camera, the embodiment of the present application obtains two key frame images by performing key frame extraction based on multiple frames of images obtained by a monocular camera, and the two key frame images include a current position image of a sweeping robot at a current position obtained by the monocular camera, and then based on laser point cloud data obtained by a lidar, the position and posture information corresponding to the two key frame images obtained by the monocular camera are determined, and then based on the determined position and posture information corresponding to the sweeping robot when the two key frame images are obtained, the depth value corresponding to each pixel point in the current position image is determined, and based on the determined depth value corresponding to each pixel point in the current position image, the depth map of the sweeping robot at the current position is determined. That is, the present application determines the depth information of the sweeping robot in the environmental space based on the laser radar and the monocular camera, avoiding the use of structured light cameras that are greatly affected by lighting conditions, easily interfered with and expensive. Thus, the application is less affected by lighting conditions, thereby improving the accuracy of the sweeping robot's perception of the environment and reducing the cost of the sweeping robot. In addition, the present application determines the position information of the sweeping robot through the laser point cloud data obtained by the laser radar. Compared with determining the position information of the sweeping robot through feature matching based on the image obtained by the monocular camera, the required amount of calculation is relatively small, so that the position information of the sweeping robot can be determined with a smaller amount of calculation, thereby reducing the amount of calculation for determining the depth map of the environmental space.

[0152] 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.

[0153] An embodiment of the present application provides a computer-readable storage medium. Compared with the prior art of acquiring depth information by configuring a structured light camera, the embodiment of the present application obtains two key frame images by performing key frame extraction based on multiple frames of images acquired by a monocular camera, wherein the two key frame images include a current position image of a sweeping robot at a current position acquired by the monocular camera, and then based on laser point cloud data acquired by a lidar, the position and posture information corresponding to the two key frame images acquired by the monocular camera are determined, and then based on the determined position and posture information corresponding to the sweeping robot when the two key frame images are acquired, the depth value corresponding to each pixel point in the current position image is determined, and based on the determined depth value corresponding to each pixel point in the current position image, the depth map of the sweeping robot at the current position is determined. That is, the present application determines the depth information of the sweeping robot in the environmental space based on the laser radar and the monocular camera, avoiding the use of structured light cameras that are greatly affected by lighting conditions, easily interfered with and expensive. Thus, the application is less affected by lighting conditions, thereby improving the accuracy of the sweeping robot's perception of the environment and reducing the cost of the sweeping robot. In addition, the present application determines the position information of the sweeping robot through the laser point cloud data obtained by the laser radar. Compared with determining the position information of the sweeping robot through feature matching based on the image obtained by the monocular camera, the required amount of calculation is relatively small, so that the position information of the sweeping robot can be determined with a smaller amount of calculation, thereby reducing the amount of calculation for determining the depth map of the environmental space.

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

[0155] 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.

[0156] 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 depth map acquisition method based on laser radar and monocular camera, characterized in that: include: Perform key frame extraction based on multiple frames of images acquired by the monocular camera to obtain two frames of key frame images, wherein the two frames of key frame images include a current position image of the sweeping robot at the current position acquired by the monocular camera; Based on the laser point cloud data obtained by the laser radar, determining the posture information corresponding to the two key frame images obtained by the monocular camera; Determine the depth value corresponding to each pixel point in the current position image based on the determined position information corresponding to the cleaning robot when the two key frame images are obtained; Determine a depth map of the cleaning robot at the current position based on the determined depth values ​​corresponding to each pixel point in the current position image; Wherein, the determining, based on the laser point cloud data obtained by the laser radar, the posture information corresponding to the sweeping robot when the two key frame images are obtained by the monocular camera, includes: Based on the laser point cloud data obtained by the laser radar, the position information of the sweeping robot at each position is determined by the corresponding point cloud matching algorithm; Based on the determined position and posture information of the cleaning robot at each position, the position and posture information corresponding to the cleaning robot when the two key frame images are acquired by the monocular camera is determined through a time mapping relationship.

2. The method according to claim 1, characterized in that: The determining of the depth value corresponding to each pixel point in the current position image based on the determined position information corresponding to the cleaning robot when the two key frame images are obtained includes: Based on the determined position and posture information respectively corresponding to the sweeping robot when the two key frame images are shot, a depth value corresponding to each pixel point in the current position image is determined by a triangulation method.

3. The method according to claim 1, characterized in that The key frame extraction is performed based on multiple frames of images acquired by a monocular camera to obtain two key frame images, including: Determine that the acquired current position image of the cleaning robot at the current position is one of the two key frame images; Determine that a candidate image among the multiple frames of images acquired by the monocular camera that meets a predetermined relationship with the current position image is another key frame image among the two key frame images, wherein the predetermined relationship includes that the rotation angle and / or position change of the sweeping robot when acquiring the current position image compared to when acquiring the candidate image meets a predetermined threshold condition.

4. The method according to claim 1, characterized in that: The method further includes: Based on the obstacle distance information determined by the depth map, the travel information of the cleaning robot is determined, and the travel information includes direction information and / or speed information for controlling the travel of the cleaning robot.

5. The method according to claim 1, characterized in that The method further includes: Based on the laser point cloud data acquired by the laser radar, a two-dimensional map of the sweeping robot in the environment space is constructed.

6. The method according to claim 5, characterized in that The method further includes: Based on the constructed two-dimensional map of the sweeping robot in the environment space, the working path of the sweeping robot is planned, and 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.

7. A sweeping robot, characterized in that: The sweeping robot comprises: a laser radar, a monocular camera and a determination device; The laser radar is used to obtain laser point cloud data at a corresponding position of the cleaning robot in the environment space; The monocular camera is used to obtain an image of the cleaning robot at a corresponding position in the environment space; The determining device comprises: An extraction module, configured to extract key frames based on multiple frames of images acquired by the monocular camera to obtain two frames of key frame images, wherein the two frames of key frame images include a current position image of the sweeping robot at a current position acquired by the monocular camera; A first determination module is used to determine, based on laser point cloud data acquired by a laser radar, the position and posture information corresponding to the two key frame images extracted by the extraction module and acquired by a monocular camera; A second determination module is used to determine the depth value corresponding to each pixel point in the current position image based on the posture information corresponding to the cleaning robot when the two key frame images are obtained, which is determined by the first determination module; A third determination module, configured to determine a depth map of the cleaning robot at a current position based on the depth values ​​corresponding to the respective pixel points in the current position image determined by the second determination module; The first determining module comprises: A third determination unit is used to determine the position and posture information of the sweeping robot at various positions through a corresponding point cloud matching algorithm based on the laser point cloud data obtained by the laser radar; The fourth determining unit is used to determine the posture information corresponding to the cleaning robot when the two key frame images are acquired by the monocular camera based on the posture information of the cleaning robot at each position determined by the fourth determining unit through a time mapping relationship.

8. The sweeping robot according to claim 7, characterized in that: The second determination module is specifically used to determine the depth value corresponding to each pixel point in the current position image by a triangulation method based on the determined posture information corresponding to the cleaning robot when the two frames of key frame images are taken.

9. The sweeping robot according to claim 8, characterized in that: The extraction module comprises: A first determining unit, configured to determine that the acquired current position image of the cleaning robot at the current position is one of the two key frame images; The second determination unit is used to determine that a candidate image among the multiple frames of images acquired by the monocular camera that meets a predetermined relationship with the current position image is another key frame image among the two key frame images, wherein the predetermined relationship includes that the rotation angle and / or position change of the sweeping robot when acquiring the current position image is compared with when acquiring the candidate image meets a predetermined threshold condition.

10. The sweeping robot according to claim 8, characterized in that: The determining device also includes: The fourth determination module is used to determine the travel information of the cleaning robot based on the obstacle distance information determined by the depth map, and the travel information includes direction information and / or speed information for controlling the travel of the cleaning robot.

11. The sweeping robot according to claim 8, characterized in that: The determining device also includes: A construction module is used to construct a two-dimensional map of the sweeping robot in the environment space based on the laser point cloud data obtained by the laser radar.

12. The sweeping robot according to claim 11, characterized in that: The determining device also includes: The planning module is used to plan the working path of the sweeping robot based on the two-dimensional map of the environment space of the sweeping robot, and 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.

13. An electronic device, 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 depth map acquisition method based on laser radar and monocular camera described in any one of claims 1 to 6 by calling the operation instruction.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the depth map acquisition method based on laser radar and monocular camera described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method and device for creating depth maps

    CN101582171A

  • Mobile robot three-dimensional mapping and obstacle avoidance method based on space bag of words model

    CN105843223A

  • Relocating method and apparatus of indoor robot

    CN106092104A

  • Method and device for cleaning processing of sweeping robot

    CN106913289A

  • Sweeping robot navigation system and navigation method thereof

    CN107357297A