Key frame fusion control method and visual robot for multi-frame depth image positioning

Through the key frame fusion control method of multi-frame depth image fusion, the problem of difficulty in identifying obstacles by 3D-tof cameras after turning is solved, a local point cloud map with strong coverage is constructed, and the detection of obstacles that are close or too close is realized. Accurate positioning improves the stability and accuracy of robot navigation.

CN112288811BActive Publication Date: 2024-09-06AMICRO SEMICONDUCTOR CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202011192905.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2024-09-06
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

It is difficult for the 3D-Tof camera to identify and locate obstacles that are close to the edge of the robot or too close during the robot's turning process, resulting in positioning blind spots. Existing technology cannot effectively solve this problem.

Method used

The key frame fusion control method of multi-frame depth image fusion is adopted. By calculating the relative pose between the current frame depth image and the pre-collected key frames, key frames that meet the conditions of significant pose changes are selected and inserted into the sequence. Construct local point cloud maps to cover obstacle distribution.

Benefits of technology

It is possible to identify and locate obstacles close to the edge of the body or too close after turning, which enhances the robot's perception of the surrounding environment, avoids positioning blind spots, and improves navigation accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112288811B
    Figure CN112288811B
Patent Text Reader

Abstract

The present invention discloses a key frame fusion control method for multi-frame depth image positioning and a visual robot, the key frame fusion control method comprising: step 1, respectively calculating the relative posture between the current frame depth image collected by a 3D-TOF camera of a mobile robot and each key frame in a pre-collected key frame sequence; wherein the key frame sequence is a sequence of continuously arranged depth images pre-stored by the mobile robot; step 2, when all the calculated relative postures meet the preset significant posture change conditions, configuring the current frame depth image currently collected by the 3D-TOF camera as a new key frame, and then inserting the new key frame into the key frame sequence, so that the key frame participating in the aforementioned relative posture calculation next time reflects the latest position relationship of the mobile robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of visual SLAM technology, and in particular to a key frame fusion control method based on multi-frame depth image fusion and a visual robot. Background Art

[0002] 3D-TOF camera technology can restore three-dimensional point cloud maps within an effective range. Therefore, monocular navigation and binocular vision navigation are often used in the construction of local maps and navigation positioning. However, there are still problems in the process of using 3D-TOF cameras: the visual range of 3D-TOF cameras is fixed, and it is often difficult to identify and locate obstacles close to the edge of the robot body or obstacles too close to the robot body (considered to be at the same position as the robot body) during the robot's turning process, that is: in the prior art, when the mobile robot walks along the bow-shaped planned path, there are obstacles in the actual working environment that are very close to the body of the mobile robot, but after the mobile robot turns 90 degrees, the mobile robot cannot detect this obstacle when positioning based on the single-frame depth data collected in real time, which easily leads to positioning blind spots.

[0003] In addition, Chinese patent CN110782494A uses the temporal relationship between frames of the depth image to extract and match more complete feature line segments to construct a three-dimensional map. The inter-frame continuity is good and the posture accuracy is improved. It does not take into account that obstacles that are too close or too far will have obvious positioning errors, nor does it solve the problem that the robot has difficulty identifying and locating obstacles close to the edge of the body or obstacles that are too close to the body (considered to be at the same position as the body). Summary of the invention

[0004] In order to solve the above technical problems, the present invention discloses a key frame fusion control method for multi-frame depth image fusion and a visual robot. The key frame fusion control method is implemented on the visual robot. The visual robot uses the current frame depth image collected by the 3d-tof camera and the key frame depth image to perform a fusion operation on the collected posture, and obtains the posture change of the visual robot around the target obstacle, which is used to determine the update and record key frames, so as to obtain a reference map point cloud data reflecting the obstacle status in front of the visual robot through the updated key frame sequence, so that after the visual robot turns, even if the obstacle is completely attached to the vehicle body, it can be identified and located by fusing the depth data of the key frames recorded in the past. The specific technical solutions include:

[0005] A key frame fusion control method for multi-frame depth image positioning, comprising: step 1, respectively calculating the relative pose between the current frame depth image collected by a 3D-TOF camera of a mobile robot and each key frame in a pre-collected key frame sequence; wherein the key frame sequence is a sequence of continuously arranged depth images pre-stored by the mobile robot; step 2, when all calculated relative poses meet the preset significant pose change conditions, configuring the current frame depth image currently collected by the 3D-TOF camera as a new key frame, and then inserting the new key frame into the key frame sequence, so that the next key frame participating in the aforementioned relative pose calculation reflects the latest position relationship of the mobile robot. This technical solution uses the real-time pose of the current frame depth image captured by the 3d-tof camera and the real-time pose corresponding to all depth images captured in the key frame sequence to perform a fusion operation to obtain the relative pose that characterizes the position change of the mobile robot, and then selects the key frames that reflect clear and wide-area robot surrounding information according to the preset significant pose change conditions. Compared with the existing technology, the mobile robot uses these key frames to establish a local point cloud map that can cover the distribution of obstacles in front of the mobile robot in a large range, thereby solving the problem that the robot is difficult to identify and locate obstacles close to the edge of the body or obstacles too close to the body based on a single-frame depth image captured in real time by fusing the relative pose between the acquisition position of the current frame depth image and the acquisition positions of these key frames that support updates.

[0006] As a technical solution for processing visual feature points, step 1 includes: respectively calculating the relative poses of the preset effective feature points in the current frame depth image currently collected by the 3d-tof camera of the mobile robot and the same preset effective feature points in each key frame in the key frame sequence after the pose transformation; this pose transformation is: the distance and deflection angle of the preset effective feature points in each key frame in the key frame sequence and the 3d-tof camera under the corresponding key frame are converted to the camera coordinate system corresponding to the current frame depth image by translation and rotation, and a local point cloud map is constructed; then, the rigidity of the body center of the mobile robot and the 3d-tof camera is used to calculate the relative poses of the preset effective feature points in each key frame in the key frame sequence and the distance and deflection angle of the 3d-tof camera under the corresponding key frame are converted to the camera coordinate system corresponding to the current frame depth image by translation and rotation, and a local point cloud map is constructed; then, the rigidity of the body center of the mobile robot and the 3d-tof camera is used to calculate the relative poses of the preset effective feature points in each key frame in the key frame sequence and the corresponding key frame. The body connection relationship is determined by performing another translation and rotation on the aforementioned distance and the aforementioned deflection angle in the camera coordinate system corresponding to the current frame depth image, so as to mark the movement trajectory of the mobile robot collecting the preset valid feature points on the local point cloud map; wherein the map coordinate system of the local point cloud map is the camera coordinate system corresponding to the current frame depth image; wherein the preset valid feature points are converted into point clouds in the local point cloud map through the aforementioned coordinate system; wherein the preset valid feature points are the distribution position characteristics of obstacles in front of the mobile robot within the viewing angle of the 3d-tof camera, and the distribution position characteristics of the obstacles include the presence of obstacles and / or the absence of obstacles. Compared with the prior art, the present technical solution calculates the relative pose between the preset valid feature points in the current frame depth image and the preset valid feature points in each key frame to obtain the position change between the preset valid feature points collected by the mobile robot, which is conducive to building a more accurate local point cloud map and facilitating the real-time positioning and navigation of the mobile robot.

[0007] Furthermore, all the calculated relative postures satisfy the preset significant posture change conditions, specifically: the calculated relative postures include: the depth distance changes and the corresponding deflection angle changes between the preset valid feature points in the current frame depth image currently collected by the 3d-tof camera of the mobile robot and the same preset valid feature points in each key frame in the key frame sequence after the posture transformation; when all the depth distance changes are greater than the preset distance change threshold, and all the deflection angle changes are greater than the preset angle change threshold, it is determined that the preset significant posture change conditions are satisfied.

[0008] Compared with the prior art, the technical solution characterizes whether the displacement of the body is large enough or the rotation angle of the body is large enough by judging whether the change in the distance between the actual position point (considered to be fixed) corresponding to the preset effective feature point between the two frames of depth images and the 3d-tof camera is large enough, and judging whether the change in the actual position point (considered to be fixed) corresponding to the preset effective feature point between the two frames of depth images relative to the deflection angle of the 3d-tof camera is large enough, so that the gap between the depth image configured as a new key frame and the current frame depth image is large enough, and clear and wide-area robot surrounding information can be provided, so that the visual range covered by the depth image in the key frame sequence is large enough (for example, angle, one looking from the left and the other looking from the right, or displacement, looking close and looking far, where the robot posture transformation between these angle positions must be large enough), so that the depth image in the key frame sequence has both key frames including obstacles and key frames including obstacles.

[0009] Furthermore, the distance between the same preset effective feature point in each key frame in the key frame sequence and the 3d-tof camera in its corresponding key frame is: the depth distance from the actual position point corresponding to the preset effective feature point of the depth image pre-collected and inserted by the 3d-tof camera into the key frame sequence to the imaging plane of the 3d-tof camera, and the change in this depth distance is used to indicate the magnitude of the displacement of the mobile robot; the deflection angle of the same preset effective feature point in each key frame in the key frame sequence relative to the 3d-tof camera in its corresponding key frame is: the lens orientation angle of the 3d-tof camera when the depth image is collected and inserted into the key frame sequence, and the change in this lens orientation angle is used to indicate the rotation angle of the mobile robot. Compared with the existing technology, it is easy to filter out: multiple key frames representing relatively large relative postures of the mobile robot, especially after the body of the mobile robot rotates at a large angle or undergoes a large displacement, if the 3d-tof camera cannot identify an obstacle that is too close, the effective feature points associated with the pre-stored key frame sequence (i.e., the pre-saved key frames including the obstacle) are used to assist in locating the precise position of the obstacle that is too close.

[0010] As a technical solution for processing inertial data, the step 1 includes: when the 3D-TOF camera of the mobile robot currently collects the current frame depth image, calling the inertial sensor set inside the mobile robot to measure the current posture of the mobile robot and save it; then calling the real-time posture of the mobile robot corresponding to each key frame in the pre-saved key frame sequence, respectively calculating the relative posture between the current posture of the mobile robot and the real-time posture of the mobile robot corresponding to each key frame. Compared with the prior art, the technical solution uses the inertial sensor inside the body to calculate the relative posture between the effective collection position of the current frame depth image and the effective collection position of each key frame, so as to directly obtain the position change between the preset effective feature points collected by the mobile robot, which is conducive to simplifying the robot positioning operation and facilitating the real-time positioning and navigation of the mobile robot.

[0011] Furthermore, all the calculated relative postures satisfy the preset significant posture change conditions, specifically: the calculated relative postures include: the walking distance change of the mobile robot between the preset valid feature points in the current frame depth image currently captured by the 3d-tof camera of the mobile robot and the preset valid feature points of the same or same type pre-captured in the key frame, and the deflection angle change occurring in the same acquisition process; when all the walking distance changes are greater than the preset distance change threshold, and all the deflection angle changes are greater than the preset angle change threshold, it is determined that the preset significant posture change conditions are satisfied; wherein, the preset valid feature points are the distribution position characteristics of the obstacles in front of the mobile robot within the viewing angle of the 3d-tof camera, and the distribution position characteristics of the obstacles include the presence of obstacles and / or the absence of obstacles.

[0012] Compared with the prior art, the technical solution characterizes whether the displacement of the body is large enough or the rotation angle of the body is large enough by judging whether the change of the actual acquisition position points corresponding to the two frames of depth images is large enough, and judging whether the change of the actual body deflection angle corresponding to the two frames of depth images is large enough, so that the gap between the depth image configured as the new key frame and the current frame depth image is large enough, and clear and wide-area robot surrounding information can be provided, so that the visual range covered by the depth image in the key frame sequence is large enough (for example, angle, one viewed from the left and the other viewed from the right, or displacement, close viewing and far viewing, where the robot posture transformation between these angle positions must be large enough), so that the depth image in the key frame sequence contains both key frames including obstacles and key frames including obstacles.

[0013] Furthermore, the inertial sensor includes a code disk installed in the body center of the mobile robot and a gyroscope installed in the body center of the mobile robot, the code disk is used to measure the change in the walking distance of the mobile robot, and the gyroscope is used to measure the change in the deflection angle of the mobile robot during the same acquisition process; wherein, the position coordinates of the mobile robot measured by the code disk are converted to the camera coordinate system corresponding to the current frame depth image through the rigid body connection relationship between the body center of the mobile robot and the 3d-tof camera, so as to construct a local point cloud map.

[0014] In the above technical solution, there are three or more depth images in the key frame sequence, which are used to construct the local point cloud map. This technical solution can provide more sufficient point cloud samples for constructing the local point cloud map and locating obstacles through effective feature points, making the local point cloud map more stable and effective.

[0015] Furthermore, the mobile robot uses a first-in-first-out memory storage format to cache the key frame sequence, so that the mobile robot refreshes the key frame that is most recently inserted in the key frame sequence during movement, and obtains the key frame that is closest in time to a frame of depth image currently captured in real time by the 3D-TOF camera. In order to optimize storage space, the technical solution uses a first-in-first-out storage queue to store the most recently filtered and inserted key frames, ensuring that only the most effective frame sequence is stored, which can be the three frames of depth image closest to the current frame.

[0016] Furthermore, the characteristic points of the target obstacles on the key frames in the key frame sequence include non-overexposed points, non-underexposed points, non-too far points, non-too close points, and pixel points with a maximum vertical height greater than 20 mm, wherein the depth values ​​of the non-too far points and the non-too close points are both between 200 mm and 500 mm. This eliminates unreliable pixel points in the depth image, including overexposed points and underexposed points that are greatly affected by light illumination, and too far points and too close points that are greatly affected by distance errors. This improves the stability of depth image positioning.

[0017] Furthermore, the preset effective feature points are feature points used to characterize the obstacles, or feature points used to characterize standard road signs other than the obstacles; wherein the 3D-TOF camera collects different frame depth images of the preset effective feature points from different directions during the movement of the mobile robot, thereby characterizing the distribution position characteristics of the obstacles in front of the mobile robot within the viewing angle of the 3D-TOF camera.

[0018] A visual robot comprises: a 3d-tof camera and a processing unit, wherein: the processing unit is used to execute the key frame fusion control method based on multi-frame depth image positioning; the 3d-tof camera is mounted on the body of the visual robot so that the viewing angle of the 3d-tof camera covers the target obstacle. This allows the visual robot to re-identify obstacles close to the edge of the body or obstacles too close to the body (regarded as the same position as the body) that it has identified within the viewing angle before turning during the turning process. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flowchart of a key frame fusion control method for multi-frame depth image fusion provided by an embodiment of the present invention.

[0020] Figure 2 It is a flowchart of another key frame fusion control method for multi-frame depth image fusion provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0022] There are two main walking rules for mobile robots, including along the edge and in a bow shape. Among them, the bow-shaped walking is used to achieve cleaning of open areas. The mobile robot will encounter different obstacles during the bow-shaped walking process. If a very close obstacle is detected before turning 90 degrees along the bow-shaped path, the same obstacle will not be detected during the 90-degree turn, because the planned bow-shaped path must choose a relatively large angle of rotation according to the direction of the obstacle, so that the sweeping robot rotates in the direction away from the obstacle to bypass the obstacle.

[0023] The embodiment of the present invention discloses a key frame fusion control method for multi-frame depth image fusion, the key frame fusion control method is implemented on a mobile robot equipped with a 3D-TOF camera in front of the body, the key frame fusion control method comprises: step 1, respectively calculating the relative pose between the current frame depth image captured by the 3D-TOF camera of the mobile robot and each key frame in a pre-captured key frame sequence; wherein the key frame sequence is a sequence of continuously arranged depth images pre-stored by the mobile robot; the relative pose here comprises: the relative pose between the pose of a preset effective feature point on the same target object in the current frame depth image and its pose in each key frame in the pre-captured key frame sequence; or, the relative pose between the pose of the mobile robot that currently captures the current frame depth image and the pose of the mobile robot that pre-captures each key frame in the key frame sequence. Step 2: When all calculated relative poses meet the preset significant pose change conditions, the current frame depth image currently captured by the 3d-tof camera is configured as a new key frame, and then the new key frame is inserted into the key frame sequence, so that the next key frame participating in the aforementioned relative pose calculation reflects the latest position relationship of the mobile robot.

[0024] The mobile robot uses the real-time pose of the current frame depth image collected by the 3D-TOF camera and the real-time pose corresponding to all the depth images collected in the key frame sequence to perform fusion calculation, including visually using the feature points of the depth image for fusion calculation, and using the sensing position data of the inertial sensor for direct fusion calculation, so as to obtain the pose change of the mobile robot around the target obstacle, which is used to determine the update of the recorded key frame, so as to obtain a reference map point cloud data reflecting the obstacle status in front of the mobile robot through the updated key frame sequence, so that after the mobile robot turns, even if the obstacle is completely attached to the vehicle body, it can be identified and located by fusing the depth data of the key frames recorded in the past. Therefore, compared with the prior art, the mobile robot uses these key frames to establish a local point cloud map that can cover the obstacle distribution status in front of the mobile robot in a large range, so as to solve the problem that the robot is difficult to identify and locate obstacles close to the edge of the body or obstacles too close to the body based on the single-frame depth image collected in real time.

[0025] It should be noted that the mobile robot can be a sweeping robot, also known as an automatic cleaning machine, smart vacuum cleaner, robot vacuum cleaner, etc. It is a kind of smart home appliance that can automatically complete bow-shaped cleaning work in the room with certain artificial intelligence.

[0026] As an example, Figure 1As shown, the specific steps of the key frame fusion control method include:

[0027] Step S101, the mobile robot moves along a pre-planned bow-shaped path in the current working area, and the mobile robot uses a 3d-tof camera to collect a depth image in the current working area, including a depth image of obstacles during the movement; then proceeds to step S102;

[0028] Step S102, respectively calculate the relative pose of the preset effective feature points in the current frame depth image currently collected by the 3d-tof camera of the mobile robot and the same preset effective feature points in each key frame in the key frame sequence after the pose transformation; wherein the preset effective feature points are not all the feature points on a frame of depth image; then enter step S103. Wherein, the key frame sequence is a sequence of depth images including preset effective feature points that are pre-stored by the mobile robot and are arranged continuously, and is used to store the relative position information of the body and the orientation information of the camera in each frame of the continuous depth image frame, including the depth image information of obstacles that are too close to the body or close to the body that have been traversed and identified, so that when this type of obstacle cannot be identified later, the reference coordinate information of these associated depth images is used to assist positioning. Wherein, the preset effective feature points are the distribution position characteristics of the obstacles in front of the mobile robot within the viewing angle of the 3d-tof camera, and the distribution position characteristics of the obstacles include the existence of obstacles and / or the absence of obstacles.

[0029] The posture transformation includes: the distance and deflection angle of the preset effective feature point in each key frame in the key frame sequence and the 3d-tof camera under the corresponding key frame are converted to the camera coordinate system corresponding to the current frame depth image by translation and rotation, and a local point cloud map is constructed. Then, the rigid body connection relationship between the body center of the mobile robot and the 3d-tof camera, that is, the relative position relationship between the body center of the mobile robot and the assembly position of the 3d-tof camera, is used to convert the aforementioned distance and the aforementioned deflection angle into the camera coordinate system corresponding to the current frame depth image. The deflection angle is translated and rotated again, and converted into the coordinate change of the mobile robot in the camera coordinate system, so as to mark the movement trajectory of the mobile robot collecting the preset effective feature points on the local point cloud map; this embodiment converts the three-dimensional coordinates (relative distance information and deflection angle information) into the local point cloud map to determine the relative posture of the mobile robot, and it is also convenient to judge whether there are obstacles in front of the mobile robot; at the same time, the movement trajectory of the mobile robot collecting the preset effective feature points is marked; wherein, the map coordinate system of the local point cloud map is the camera coordinate system corresponding to the current frame depth image. This embodiment is conducive to restoring a more accurate local point cloud map, which is convenient for the real-time positioning and navigation of the mobile robot.

[0030] Preferably, feature points about the same target obstacle in each key frame in the key frame sequence are converted to the same local point cloud map through posture transformation, which is used to mark the same target obstacle to obtain the posture of the mobile robot in different key frames.

[0031] Step S103: determine whether all the relative postures calculated in step S102 meet the preset significant posture change condition. If yes, proceed to step S104; otherwise, proceed to step S105. This step is used to determine the relative posture between the depth image currently collected by the 3D-TOF camera of the mobile robot and each depth image in the key frame sequence, so as to subsequently screen out depth images with a sufficiently significant displacement of the body or a sufficiently significant rotation of the body.

[0032] Step S104, determine that the deflection angle and relative distance included in the relative posture calculated in step S102 are relatively large, indicating that the mobile robot has a large displacement or a significant angle change, configure the current frame depth image currently collected by the 3d-tof camera as a new key frame, and then insert this new key frame into the key frame sequence, so that the next key frame participating in the aforementioned relative posture calculation reflects the latest relative position relationship of the mobile robot; then return to step S101 to continue moving and collecting the depth image in the current working area.

[0033] Step S105, determine that the deflection angle and relative distance included in the relative posture calculated in step S102 are relatively small, indicating that when the mobile robot has a small displacement or a not very obvious angle change, the current frame depth image currently collected by the 3d-tof camera is not configured as a new key frame, and then return to step S101 to continue moving and collecting the depth image in the current working area.

[0034] The above-mentioned steps use the preset effective feature points of the current frame depth image collected by the 3d-tof camera and the preset effective feature points of all depth images in the key frame sequence to perform a fusion operation to obtain the relative posture that characterizes the position change of the mobile robot, and then select the key frames that reflect clear and wide-area robot surrounding information according to the preset significant posture change conditions. Compared with the existing technology, the mobile robot uses these key frames to establish a local point cloud map that can cover the distribution of obstacles in front of the mobile robot in a large range, thereby solving the problem that the robot is difficult to identify and locate obstacles close to the edge of the body or obstacles too close to the body based on a single-frame depth image collected in real time by fusing the relative posture of the current frame depth image and these key frames that support updates.

[0035] It should be noted that in order to solve the problem that the mobile robot cannot be detected when there are obstacles very close to the fuselage after turning 90 degrees during bow-shaped cleaning, the depth image in the pre-stored image sequence is used in this embodiment. For example, if the current acquisition time is t, the depth image frames acquired at time t-1, time t-2, and time t-3 can be used, or other key frame images with time sequence longer ago can be used, but the obstacles do not necessarily correspond to the edges of the depth image. As long as the valid points in the key frame appear in front of the fuselage, they can be used to fuse the current frame to calculate the relative pose.

[0036] As an embodiment, all the calculated relative postures satisfy the preset significant posture change conditions as follows: the calculated relative postures include: the depth distance changes and the corresponding deflection angle changes between the preset effective feature points in the current frame depth image currently collected by the 3D-TOF camera of the mobile robot and the same preset effective feature points in each key frame in the key frame sequence after the posture transformation occurs, indicating the displacement change (corresponding to the depth distance change) of the mobile robot relative to the fixed preset effective feature point, and the angular deflection (corresponding to the deflection angle change) around the preset effective feature point; when all the depth distance changes are greater than the preset distance change threshold, and all the deflection angle changes are greater than the preset angle change threshold, it is determined that the preset significant posture change conditions are satisfied, indicating that the mobile robot has a large displacement or a more obvious angle change (such as a 90-degree turn during bow-shaped planning walking). Compared with the prior art, this embodiment characterizes whether the displacement of the body is large enough or the rotation angle of the body is large enough by judging whether the change in the distance between the actual position point (considered to be fixed) corresponding to the preset effective feature point between the two frames of depth images and the 3d-tof camera is large enough, and judging whether the change in the actual position point (considered to be fixed) corresponding to the preset effective feature point between the two frames of depth images relative to the deflection angle of the 3d-tof camera is large enough, so that the gap between the depth image configured as a new key frame and the depth image of the current frame is large enough, and clear and wide-area robot surrounding information can be provided, so that the visual range covered by the depth image in the key frame sequence is large enough (for example, angle, one from the left, one from the right, or displacement, close and far, where the robot posture transformation between these angle positions is large enough), so that the depth image in the key frame sequence has both key frames including obstacles and key frames including obstacles, and assists the information of the local point cloud map to achieve accurate positioning of the obstacles.

[0037] Preferably, the distance between the same preset effective feature point in each key frame in the key frame sequence and the 3d-tof camera in its corresponding key frame is: the depth distance from the actual position point corresponding to the preset effective feature point of the depth image pre-collected and inserted by the 3d-tof camera into the key frame sequence to the imaging plane of the 3d-tof camera, and the change in this depth distance is used to indicate the magnitude of the displacement of the mobile robot; the deflection angle of the same preset effective feature point in each key frame in the key frame sequence relative to the 3d-tof camera in its corresponding key frame is: the lens orientation angle of the 3d-tof camera when the depth image is collected and inserted into the key frame sequence, and the change in this lens orientation angle is used to indicate the rotation angle of the mobile robot. Compared with the prior art, this embodiment extracts the posture information of preset effective feature points and participates in the offset comparison operation between frames, so as to facilitate the screening of: multi-frame key frames representing a relatively large relative posture of the mobile robot, especially after the body of the mobile robot rotates at a large angle or undergoes a large displacement, if the 3d-tof camera cannot identify an obstacle that is too close, it will assist in locating the precise position of the obstacle that is too close from the effective feature points associated with the pre-stored key frame sequence (i.e., the pre-saved key frames including the obstacle).

[0038] In summary, this embodiment first considers whether the relative posture meets the rotational motion change characteristics of the body (necessary), then considers inserting candidate key frames in sequence (enhancing accuracy), and then considers the first-in-first-out of the key frames collected in real time to ensure that the distance of the obstacle to be identified and located is the closest (optimization effect, not necessarily necessary), so that the generated three-dimensional dot map is a local point cloud map that timely reflects the obstacles that are too close to the body. The mobile robot continuously refreshes the storage queue during the movement process, and timely obtains a nearby reference point cloud data (corresponding to the key frame) through the aforementioned preset significant posture change condition judgment, so that after the mobile robot turns, even if it is an obstacle that is completely attached to the body, it can be judged through the key frames recorded in the past, thereby overcoming the problem that the mobile robot cannot identify obstacles that are too close to the body when positioning based on the depth data of a single frame during the turning process, and thus cannot overcome the blind spot problem of the 3d-tof camera.

[0039] As another example, Figure 2 As shown, the specific steps of the key frame fusion control method include:

[0040] Step S201: The mobile robot moves along a pre-planned bow-shaped path in the current working area. During the movement, the mobile robot uses a 3D-TOF camera to collect a depth image in the current working area, including a depth image of obstacles; then proceeds to step S202;

[0041] Step S202, when the 3d-tof camera of the mobile robot currently captures the depth image of the current frame, the inertial sensor set inside the mobile robot is called to measure the current posture of the mobile robot and save it. It should be noted that the depth image captured by the 3d-tof camera contains valid feature points in front of the body, including non-overexposed points, non-underexposed points, non-too far points, non-too close points and pixel points with a maximum vertical height greater than 20mm. This step can be executed; then enter step S203.

[0042] Step S203, calling the real-time pose (collection position) of the mobile robot corresponding to each key frame in the pre-saved key frame sequence, and respectively calculating the relative pose between the current pose of the mobile robot and the real-time pose (pre-stored collection position) of the mobile robot corresponding to each key frame. Then enter step S204. Preferably, the key frame sequence is a sequence of depth images including preset effective feature points that are arranged continuously and stored in advance by the mobile robot, which is used to store the relative position information of the body and the orientation information of the camera in each frame of the continuous depth image frame, including the depth image information of obstacles that are too close to the body or close to the body that have been traversed and identified, so that when this type of obstacle cannot be identified later, the inertial information collected synchronously with these depth images is used to assist positioning. Among them, the preset effective feature points are the distribution position characteristics of the obstacles in front of the mobile robot within the viewing angle of the 3d-tof camera, and the distribution position characteristics of the obstacles include the existence of obstacles and / or the absence of obstacles.

[0043] The specific condition that all the calculated relative postures meet the preset significant posture change condition is: the calculated relative posture includes: the walking distance change of the mobile robot between the preset effective feature points in the current frame depth image currently collected by the 3D-TOF camera of the mobile robot and the preset effective feature points of the same or the same type collected in the key frame in advance, and the deflection angle change that occurs in the same collection process. When all the walking distance changes are greater than the preset distance change threshold, and all the deflection angle changes are greater than the preset angle change threshold, it is determined that the preset significant posture change condition is met. It should be noted that the inertial sensor includes a code disk installed in the body center of the mobile robot and a gyroscope installed in the body center of the mobile robot, the code disk is used to measure the change in the walking distance of the mobile robot, and the gyroscope is used to measure the change in the deflection angle of the mobile robot during the same acquisition process; wherein, the position coordinates of the mobile robot measured by the code disk are converted to the camera coordinate system corresponding to the current frame depth image through the rigid body connection relationship between the body center of the mobile robot and the 3d-tof camera, so as to construct a local point cloud map, thereby marking the movement trajectory of the mobile robot when collecting the preset valid feature points on the local point cloud map; since this embodiment uses inertial data to directly obtain the posture change information of the mobile robot, the calculation amount of the relative posture is simplified compared with the feature point calculation of the previous embodiment.

[0044] Preferably, feature points about the same target obstacle in each key frame in the key frame sequence are converted to the same local point cloud map through posture transformation, which is used to mark the same target obstacle to obtain the posture of the mobile robot in different key frames.

[0045] Step S204: determine whether all the relative postures calculated in step S203 meet the preset significant posture change condition. If yes, proceed to step S205; otherwise, proceed to step S206. This step is used to determine the relative posture size between the robot posture corresponding to the current frame depth image and the robot posture corresponding to each frame depth image in the key frame sequence, so as to subsequently screen out depth images with a sufficiently significant displacement of the body or a sufficiently significant rotation of the body.

[0046] Step S205, determine that the deflection angle and relative distance included in the relative posture calculated in step S203 are relatively large, indicating that the mobile robot has a large displacement or a significant angle change, configure the current frame depth image currently collected by the 3d-tof camera as a new key frame, and then insert this new key frame into the key frame sequence, so that the next key frame participating in the aforementioned relative posture calculation reflects the latest relative position relationship of the mobile robot; then return to step S201 to continue moving and collecting depth images in the current working area.

[0047] Step S206, determine that the deflection angle and relative distance included in the relative posture calculated in step S203 are relatively small, indicating that when the mobile robot has a small displacement or a not very obvious angle change, the current frame depth image currently collected by the 3d-tof camera is not configured as a new key frame, and then return to step S201 to continue moving and collecting the depth image in the current working area.

[0048] The above-mentioned steps use the inertial data synchronously acquired when the 3d-tof camera collects the current frame depth image, and the inertial data synchronously acquired when all the depth images in the key frame sequence are collected to perform a fusion operation to obtain the relative posture that characterizes the position change of the mobile robot, and then select the key frames that reflect clear and wide-area robot surrounding information according to the preset significant posture change conditions. Compared with the existing technology, the mobile robot uses these key frames to establish a local point cloud map that can cover the distribution of obstacles in front of the mobile robot in a large range, thereby solving the problem that the robot is difficult to identify and locate obstacles close to the edge of the body or obstacles too close to the body based on a single-frame depth image collected in real time by fusing the relative posture of the current frame depth image and these key frames that support updates.

[0049] It should be noted that in order to solve the problem that when the mobile robot is cleaning in a bow shape, after turning 90 degrees, there are obstacles that cannot be detected when they are very close to the fuselage, in this embodiment, the depth image in the pre-stored image sequence is used. For example, if the current acquisition time is t, the depth image frames acquired at time t-1, time t-2, and time t-3 can be used, or other key frame images with time sequence longer ago, but not necessarily the obstacles corresponding to the edge of the depth image. Any valid point in the key frame that appears in front of the fuselage can be used to fuse the current frame to calculate the relative posture. At the same time, it is also necessary to obtain the position information collected in real time by the inertial sensor at the center of the body.

[0050] As an embodiment, when all depth distance changes are greater than a preset distance change threshold, and all deflection angle changes are greater than a preset angle change threshold, it is determined that the preset significant posture change condition is met, indicating that the mobile robot has a large displacement or a more obvious angle change (such as turning 90 degrees during bow-shaped planning walking). Compared with the prior art, the technical solution characterizes whether the displacement of the body is large enough or the rotation angle of the body is large enough by judging whether the change of the actual acquisition position points corresponding to the two frames of depth images is large enough, and judging whether the change of the actual body deflection angle corresponding to the two frames of depth images is large enough, so that the gap between the depth image configured as the new key frame and the current frame depth image is large enough, and clear and wide-area robot surrounding information can be provided, so that the visual range covered by the depth image in the key frame sequence is large enough (for example, angle, one viewed from the left and the other viewed from the right, or displacement, close viewing and far viewing, where the robot posture transformation between these angle positions must be large enough), so that the depth image in the key frame sequence contains both key frames including obstacles and key frames including obstacles, and simplifies the information of the local point cloud map to realize the positioning calculation of the obstacle.

[0051] On the basis of the above-mentioned embodiment, there are three or more depth images in the key frame sequence, which are used to construct the local point cloud map, and can provide more sufficient point cloud samples for constructing the local point cloud map and locating obstacles through effective feature points, making the local point cloud map more stable and effective. Among them, the preset effective feature points are converted into point clouds in the local point cloud map through the above-mentioned coordinate system, that is, the location information of the preset effective feature points in the actual environment.

[0052] Preferably, the mobile robot uses a first-in-first-out (FIFO queue) memory storage format to cache the key frame sequence, so that the mobile robot refreshes the most recently inserted key frame in the key frame sequence during movement, and obtains the key frame that is closest in time to a frame of depth image currently captured in real time by the 3d-tof camera. In order to optimize the storage space, this embodiment uses a first-in-first-out storage queue to store the most recently filtered and inserted key frames, ensuring that only the most effective frame sequence is stored, which can be the three frames of depth image closest to the current frame. The depth image data cached in the form of a first-in-first-out (FIFO queue) is not redundant, and further accurately maintains the effective visual positioning information around the robot.

[0053] Preferably, the preset valid feature points on the key frames in the key frame sequence include non-overexposed points, non-underexposed points, non-too far points, non-too close points, and pixels with a maximum vertical height greater than 20 mm, wherein the depth values ​​of non-too far points and non-too close points are both between 200 mm and 500 mm. In this embodiment, non-overexposed points and non-underexposed points are directly obtained based on the 3d-tof camera. For each pixel point in each frame of the depth image, there are four states, including overexposed, underexposed, too far, and too close. Overexposed points and underexposed points are both unreliable points; too close points and too far points will not be stored in the queue. Thereby, unreliable pixel points in the depth image are excluded, including overexposed points and underexposed points that are greatly affected by light brightness, and too far points and too close points that are greatly affected by distance errors. The stability of depth image positioning is improved.

[0054] In the aforementioned embodiment, the preset effective feature points include feature points for characterizing the obstacles, or feature points for characterizing standard road signs other than the obstacles, specifically: feature points of effective markers in the forward direction of the mobile robot. The 3d-tof camera collects different frame depth images of the preset effective feature points from different directions during the movement of the mobile robot, including collecting from the left, close to, right, and far away from the preset effective feature points during the turning process. Thereby characterizing the distribution position characteristics of the obstacles in front of the mobile robot within the field of view of the 3d-tof camera.

[0055] The embodiment of the present invention also discloses a visual robot, including: a 3d-tof camera and a processing unit. Optionally, a code disk and a gyroscope are also provided at the center of the body of the visual robot to cooperate in measuring the posture of the robot. Wherein: the processing unit is used to execute the key frame fusion control method based on multi-frame depth image positioning of the aforementioned embodiment; the 3d-tof camera is mounted on the body of the visual robot so that the viewing angle of the 3d-tof camera covers the distribution of obstacles in front of the visual robot, including the presence and absence of obstacles. Wherein, the optical axis direction of the 3d-tof camera is the same as the forward direction of the visual robot, and the optical axis direction of the 3d-tof camera points to the front of the body of the visual robot. The visual robot is enabled to re-identify during the turning process: obstacles close to the edge of the body or obstacles too close to the body that have been identified within the viewing angle before turning (regarded as the same position as the body).

[0056] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A key frame fusion control method for multi-frame depth image positioning, characterized in that: include: Step 1: Calculate the relative pose between the current frame depth image captured by the mobile robot's 3D-TOF camera and each key frame in the key frame sequence; wherein the key frame sequence is a sequence of continuously arranged depth images pre-stored by the mobile robot; Step 2: When all calculated relative poses meet the preset significant pose change conditions, the current frame depth image currently captured by the 3D-TOF camera is configured as a new key frame, and then this new key frame is inserted into the key frame sequence so that the next key frame participating in the aforementioned relative pose calculation reflects the latest position relationship of the mobile robot; There are three or more depth images in the key frame sequence; The step 1 specifically includes: Calculate the relative poses of the preset valid feature points in the current frame depth image currently captured by the 3D-TOF camera of the mobile robot and the same preset valid feature points in each key frame in the key frame sequence after pose transformation; The pose transformation is as follows: the distance and deflection angle of the preset valid feature points in each key frame in the key frame sequence and the 3D-TOF camera in the corresponding key frame are converted to the camera coordinate system corresponding to the depth image of the current frame by translation and rotation, and a local point cloud map is constructed; The map coordinate system of the local point cloud map is the camera coordinate system corresponding to the current frame depth image; The preset valid feature points are converted into point clouds in the local point cloud map through the aforementioned coordinate system; The preset valid feature points are the distribution position features of the obstacles in front of the mobile robot within the viewing angle of the 3D-TOF camera, and the distribution position features of the obstacles include the presence and / or absence of obstacles; All the calculated relative poses satisfy the preset significant pose change conditions, specifically: The calculated relative posture includes: the depth distance change between the preset valid feature points in the current frame depth image currently captured by the 3D-TOF camera of the mobile robot and the same preset valid feature points in each key frame in the key frame sequence after the posture transformation occurs, and the corresponding deflection angle change; When all depth distance changes are greater than a preset distance change threshold, and all deflection angle changes are greater than a preset angle change threshold, determining that the preset significant posture change condition is met; The distance between the same preset effective feature point in each key frame in the key frame sequence and the 3D-TOF camera under the corresponding key frame is: the depth distance between the actual position point corresponding to the preset effective feature point in the depth image pre-captured and inserted into the key frame sequence by the 3D-TOF camera and the imaging plane of the 3D-TOF camera, and the change in this depth distance is used to represent the magnitude of the displacement of the mobile robot; The deflection angle of the same preset valid feature point in each key frame in the key frame sequence relative to the 3D-TOF camera under its corresponding key frame is: the lens orientation angle of the 3D-TOF camera when collecting the depth image inserted into the key frame sequence, and the change in this lens orientation angle is used to represent the rotation angle of the mobile robot.

2. The key frame fusion control method according to claim 1, characterized in that: The step 1 specifically includes: When the 3D-TOF camera of the mobile robot currently captures the depth image of the current frame, the inertial sensor set inside the mobile robot is called to measure the current posture of the mobile robot; Then, the real-time pose of the mobile robot corresponding to each key frame in the pre-saved key frame sequence is called, and the relative pose between the current pose of the mobile robot and the real-time pose of the mobile robot corresponding to each key frame is calculated respectively.

3. The key frame fusion control method according to claim 2, characterized in that: All the calculated relative poses satisfy the preset significant pose change conditions, specifically: The calculated relative pose includes: the change in the mobile robot's travel distance between the preset valid feature points in the current frame depth image currently captured by the mobile robot's 3D-TOF camera and the same or the same type of preset valid feature points previously captured in the key frame, and the change in the deflection angle occurring during the same capture process; When all walking distance changes are greater than a preset distance change threshold, and all deflection angle changes are greater than a preset angle change threshold, determining that the preset significant posture change condition is met; The preset effective feature points are distribution position features of obstacles in front of the mobile robot within the viewing angle of the 3D-TOF camera, and the distribution position features of the obstacles include the presence of obstacles and / or the absence of obstacles.

4. The key frame fusion control method according to claim 3, characterized in that: The inertial sensor includes a code disk and a gyroscope provided in the center of the mobile robot body. The code disk is used to measure the change in the walking distance of the mobile robot, and the gyroscope is used to measure the change in the deflection angle of the mobile robot during the same acquisition process. Among them, the position coordinates of the mobile robot measured by the encoder are converted to the camera coordinate system corresponding to the current frame depth image through the rigid body connection relationship between the body center of the mobile robot and the 3D-TOF camera to construct a local point cloud map.

5. The key frame fusion control method according to claim 1, characterized in that: The mobile robot uses a first-in-first-out memory storage format to cache the key frame sequence, so that the mobile robot obtains the key frame that is closest in time to a frame of depth image currently captured in real time by a 3D-TOF camera during movement.

6. The key frame fusion control method according to claim 3, characterized in that: The preset valid feature points on the key frames in the key frame sequence include non-overexposed points, non-underexposed points, non-too-far points, non-too-near points, and pixel points with a maximum vertical height greater than 20 mm, wherein the depth values ​​of the non-too-far points and the non-too-near points are both between 200 mm and 500 mm.

7. The key frame fusion control method according to claim 6, characterized in that: The preset valid feature points are feature points used to characterize the obstacle, or feature points used to characterize standard road signs other than the obstacle; The 3D-TOF camera collects different frame depth images of the preset effective feature points from different directions during the movement of the mobile robot.

8. A visual robot, characterized in that: include: A 3D-TOF camera and a processing unit, the processing unit being configured to execute the key frame fusion control method for multi-frame depth image positioning according to any one of claims 1 to 5; The 3D-TOF camera is mounted on the body of the visual robot so that the viewing angle of the 3D-TOF camera covers the obstacle distribution conditions in front of the visual robot, including the presence and absence of obstacles.

Citation Information

Patent Citations

  • Visual SLAM method based on point-line fusion

    CN110782494A

  • Positioning device and method based on depth vision and robot

    CN108406731A

  • Key frame extraction method in simultaneous localization and mapping, key frame extraction device in simultaneous localization and mapping and intelligent equipment

    CN109579847A

  • Robot positioning and mapping method and device based on depth image

    CN110866496A