A multi-machine joint mapping method integrating dynamic target perception
By integrating dynamic target sensing and visual inertial sensors, the multi-machine vision joint mapping method solves the problem of low accuracy of multi-machine collaborative positioning under dynamic interference, achieves efficient dynamic scene map construction and data management, and improves system adaptability and flexibility.
Patent Information
- Application Number
- CN202210999273.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-08-19
AI Technical Summary
The existing multi-machine joint mapping technology based on visual inertial sensors is difficult to achieve high-precision collaborative positioning in a dynamic interference environment, and the multi-machine data management efficiency is low, which affects the map construction accuracy and system flexibility.
A multi-machine vision joint mapping method that integrates dynamic target perception is adopted, and deep learning neural networks are used for image preprocessing, instance segmentation and tracking of dynamic interference objects, dynamic feature points are eliminated, and visual inertial sensors are combined for single-machine pose estimation and sub-map update. And perform bag-of-word model loopback detection and global map optimization on the server side.
It improves the accuracy and adaptability of the multi-machine vision joint mapping system in dynamic scenes, improves the map construction accuracy and system flexibility, and realizes efficient robot joint mapping.
Smart Images

Figure CN115355901B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of three-dimensional vision, and relates to a multi-machine joint mapping method for image preprocessing based on a visual sensor and an IMU sensor in combination with a dynamic target perception technology. Background Art
[0002] High-precision map information is the basis for mobile robots to perform tasks such as path planning. In recent years, as mapping technology has become increasingly mature, this technology has been increasingly used in rescue, exploration, autonomous driving, and virtual reality. Although current mapping technology has performed well in areas such as unmanned inspection and environmental modeling, it is mainly focused on single-machine mapping research and is difficult to directly apply to operational scenarios that require high mapping efficiency.
[0003] Multi-machine collaborative mapping technology can realize information sharing among multiple machines, accelerate the speed of global map fusion, and optimize the pose estimation of a single machine through data transmission between robots. Due to the advantages of high efficiency and strong environmental adaptability of such technology, multi-machine collaborative systems based on lidar or vision have emerged in recent years and have shown superior performance in structured environments with rich environmental texture information.
[0004] The multi-machine joint mapping system based on LiDAR is relatively accurate and has a simple error model, but LiDAR is expensive and difficult to use on a large scale. Visual sensors are inexpensive and can obtain rich environmental texture information, so they have great advantages in relocalization and scene classification. Inertial navigation algorithms have the advantages of high positioning frequency and are not easily affected by environmental interference, but they are prone to drift during long-term operation. By integrating the advantages of vision and inertial sensors, visual-inertial fusion technology has gradually become a research hotspot in the field of mapping.
[0005] Existing joint mapping technologies based on visual inertial sensors focus more on optimizing the posture of a single machine and allocating computing resources among multiple machines. However, in practical applications, they still face many challenges: accurate collaborative positioning in dynamic interference environments, and how to efficiently utilize and manage the large amount of data generated by multiple machines.
[0006] like Figure 1 As shown in the figure, a small indoor factory scene with dynamic target interference exists. The occlusion caused by the random motion of the dynamic target in this scene will interfere with the matching of static feature points in the image. The excessive number of dynamic feature point matches will also cause incorrect pose estimation, thereby reducing the accuracy of map construction. At the same time, the transmission and management of multiple robot data also poses challenges to the flexibility of the multi-machine collaborative mapping system. Therefore, how to solve the above problems is the key issue to achieve efficient and accurate joint mapping of robots in such scenes. Summary of the invention
[0007] In view of this, the present invention proposes a multi-machine vision joint mapping method that integrates dynamic target perception, which can overcome dynamic interference and improve the adaptability of the multi-machine vision joint mapping system in dynamic scenes. The present invention first adopts a method that integrates dynamic target perception to perform image frame preprocessing, realizes the tracking of dynamic targets, and improves the accuracy of subsequent single-machine map construction by eliminating dynamic feature points; secondly, a single-machine positioning and mapping module based on visual inertial sensors is run on the robot side to realize robot-side pose estimation and incremental update of single-machine sub-maps; finally, the updated single-machine sub-map and updated key frame data are uploaded to the server side via WiFi, the sub-map is restored on the server side, and the bag-of-words model is used for loop detection to complete the optimization of the sub-map and the pose association between different robots, thereby generating a global map.
[0008] The present invention proposes a multi-machine joint mapping method integrating dynamic target perception, comprising:
[0009] Step 1: Image preprocessing stage integrating dynamic target perception. In this stage, RGB image frames are continuously collected as input, instance segmentation and continuous tracking of dynamic interference objects (set as pedestrians) in image frame data are completed, ORB feature points are extracted, static and dynamic feature points are distinguished, and image frames and static feature points are transmitted to the next stage.
[0010] Step 1.1: Continuously acquire a sequence of RGB image frames through the camera on the robot; perform instance segmentation and prediction box extraction on potential random dynamic interference objects in the image frames based on the deep learning neural network framework YOLACT, and cover the random dynamic interference objects segmented in the image frames with masks; dynamic interference objects are represented by pixel-level instance segmentation representations in the image frames;
[0011] Step 1.2: Extract ORB feature points in the image frame and calculate the descriptors of the feature points;
[0012] Step 1.3: Based on the visual features of the ORB feature points extracted in step 1.2, the optical flow method is used to extract dynamic feature points in the image frame. If the extracted dynamic feature points are within the segmentation mask range of the dynamic interference object instance in step 1.1, they are judged as dynamic feature points that characterize random dynamic interference objects. The feature points in the ORB feature point visual feature points except the dynamic feature points that characterize random dynamic interference objects are static feature points.
[0013] Step 2: Using the IMU sensor data and preprocessed image data continuously acquired by the robot, run the visual inertial odometer on the robot to estimate the robot pose at the current moment, and run the sparse point cloud map reconstruction module at the same time, using the robot's currently updated key frame K iThe static feature points in the current key frame are mapped to the sub-map to realize the incremental construction of the sub-map on a single machine. At the same time, the newly added key frames and sub-map data are transmitted to the server via WiFi.
[0014] Step 2.1: Continuously receive IMU and preprocessed image data, and synchronize the preprocessed image frames and IMU data timestamps, where the preprocessed image data refers to the original image frames and static feature points; select two consecutive image frames that match a sufficient number of static feature points from the preprocessed image frames as initial key frames K0 and K1, triangulate the static feature points on the two initial key frames, and then initialize the submap;
[0015] Step 2.2: Based on the image frames and IMU data after time stamp synchronization, construct a visual inertial odometry to estimate the robot's position and posture;
[0016] Step 2.3: Run the sparse point cloud construction module to update the keyframes according to the co-viewing relationship between image frames, and use the updated keyframes K i Generate new map points based on the static feature points on the robot and the robot posture information estimated in 2.2, map the new map points to the three-dimensional sub-map, and continuously update the sub-map;
[0017] Step 2.4: Upload the updated keyframe and updated sub-map data to the server;
[0018] Step 3: Globally consistent pose association and joint mapping on the server side. This stage is used to receive the sub-map and key frame data uploaded by the robot side, restore the sub-map on the server side, and use the bag-of-words model for loop detection to complete the optimization of the sub-map and the pose association between different robots to generate a global map.
[0019] Step 3.1: Continue to receive the posture and key frame data from the robot, and restore the sub-map on the server;
[0020] Step 3.2: Use the bag-of-words model to perform loop detection, match the uploaded keyframe data with the keyframe sequence saved on the server, if the currently uploaded keyframe and the matched keyframe saved in the keyframe sequence on the server are both in the submap where the current keyframe is located, then use the BA method to optimize the map points and keyframe poses of the submap; if the matched keyframe is not in the submap where the currently uploaded keyframe is located, calculate the three-dimensional transformation relationship between the two matching keyframes, and transform the submap to the same coordinate system through the three-dimensional transformation relationship to generate a global map, and use the BA method to optimize the keyframe pose and map points of the global map;
[0021] Step 3.3: Eliminate redundant keyframes and map points from the global map generated in 3.2, traverse all keyframes within the global map range, eliminate redundant keyframes and duplicate map points based on the co-viewing redundancy of feature points, run the global BA method, optimize and update the global map and robot pose. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings in the specification, which constitute a part of the present application, are used to provide further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.
[0023] Figure 1 It is the dynamic scene involved in the present invention;
[0024] Figure 2 It is a schematic diagram of the overall framework of the present invention;
[0025] Figure 3 It is the multi-target tracking process of the present invention;
[0026] Figure 4 The present invention is a dynamic target tracking result;
[0027] Figure 5 This is the visual inertial mileage calculation method process of the present invention;
[0028] Figure 6 This is the result of the multi-machine joint map construction of the present invention. DETAILED DESCRIPTION
[0029] The following is a general overview of one or more aspects to provide a basic understanding of these aspects. This overview cannot describe all conceived aspects in detail, and its only purpose is to give some concepts of one or more aspects in a simplified form as a prelude to a more detailed description to be given later. Note that the aspects described below in conjunction with the drawings and specific embodiments are only exemplary and should not be understood as limiting the scope of protection of the present invention in any way.
[0030] Figure 2 The framework of the multi-machine joint mapping system of the present invention is demonstrated, in which MH01 and MH02 in the EuRoC dataset are used as the data sequences collected by the two robot ends, a desktop computer is used as the server end, and two laptops are used as the robot ends, and Ubuntu 18.04 and ROS Melodic are installed on both. Data between the robot end and the server end are transmitted via WiFi. A multi-machine joint mapping method integrating dynamic target perception is mainly divided into three stages: image preprocessing stage integrating dynamic target perception, robot end pose estimation and single-machine sub-map maintenance stage, server end globally consistent pose association and joint mapping stage.
[0031] Step 1: The image preprocessing stage integrating dynamic target perception runs the following steps: Based on the RGB image frame data continuously acquired by the robot, for the random dynamic interference objects in the dynamic scene, assuming that the potential random dynamic interference objects are pedestrians, each frame of the image is preprocessed to segment and track the dynamic interference objects; ORB visual feature points are extracted, and dynamic visual feature points and static visual feature points are distinguished. By eliminating dynamic feature points, the accuracy of subsequent positioning and mapping is improved.
[0032] Step 1.1: Continuously acquire a sequence of RGB image frames through the camera on the robot, and perform instance segmentation and target tracking on potential random dynamic interference objects in the image frames, specifically:
[0033] Based on the deep learning neural network framework YOLACT, instance segmentation and prediction box extraction are performed on potential random dynamic interference objects in the image frame, and the segmentation results of random dynamic interference objects in the image frame are covered with masks; wherein the dynamic interference objects are represented by the instance segmentation results of the pixel level in the image frame;
[0034] DeepSORT is used to track the predicted frame of the extracted dynamic interference object, and the predicted pedestrian target is tracked and the corresponding pedestrian ID is generated. The algorithm flow is as follows: Figure 3 As shown;
[0035] Step 1.2: Extract ORB feature points in the image frame and use the BRIEF feature description algorithm to calculate the descriptor of the feature points;
[0036] Step 1.3: Based on the ORB visual features extracted in step 1.2, the dynamic feature points are extracted and removed by combining the optical flow method with the random dynamic target instance segmentation method described in step 1.1. Specifically:
[0037] Use optical flow method to extract dynamic feature points in image frames;
[0038] If the extracted dynamic feature point is within the segmentation mask range of the dynamic interference object instance in step 1.1, it is judged as a dynamic feature point representing a random dynamic interference object, and the other feature points in the ORB visual feature points except the dynamic feature points representing the random dynamic interference object are static feature points;
[0039] The original image frame and static feature point data are input into the single-machine positioning and mapping module.
[0040] Step 2: The robot-side camera pose estimation and stand-alone sub-map maintenance phase runs the following steps: input the preprocessed image data and the linear acceleration and angular velocity data collected by the IMU sensor, run the visual inertial odometry to track the camera pose, and run the sparse point cloud map reconstruction module at the same time. Use the robot's currently updated key frame pose to map the static feature points in the current key frame to the sub-map, realize the incremental construction of the stand-alone sub-map, and optimize the sub-map and robot pose through the bundle adjustment optimization algorithm; at the same time, upload the updated sub-map data and the updated key frame data to the server.
[0041] Among them, the updated key frame data and sub-map data transmitted from the robot end to the server end include: the newly added key frame K i , newly added map point series L i The robot transmits data to the server in batches at a fixed frequency.
[0042] Step 2.1: Continue to receive IMU and pre-processed image data, and send the currently received i-th image frame I i Synchronize with the IMU data timestamp, where the preprocessed image data refers to the original image frame and static feature points; select two consecutive image frames that match a sufficient number of static feature points from the preprocessed image frames as the initial key frames, triangulate the static feature points, and then initialize the submap;
[0043] Step 2.2: Construct a visual inertial odometer (such as Figure 5 As shown), for the current image frame I i and the reference key frame K j Construct a visual reprojection error model and perform i and the reference key frame K j The IMU data within the time range is pre-integrated to build an IMU error model. The nonlinear optimization function is constructed to jointly optimize the visual reprojection error and the IMU error to estimate the robot pose in the current frame. Specifically:
[0044] Construct the current image frame I t and the reference key frame K j The visual reprojection error model is based on the matched feature point set x (here x is the current image frame I t and the reference key frame K j The set of all matched feature points) is used to calculate the image frame I by minimizing the reprojection error of the feature point set x. t The visual reprojection error model is defined as follows:
[0045]
[0046] where x k is the coordinate of the feature point matched by the kth map point in the pixel coordinate system of the current image frame, ∑ is the summation symbol, is the 3D coordinate (coordinate system coordinate) of the kth map point in the camera coordinate system C of the current image frame, ρ() is the robust kernel function, It is the projection coordinate of the kth map point in the camera coordinate system of the current image frame mapped to the pixel coordinate system according to the camera pose (including camera rotation and translation).
[0047] For the current image frame I i and the reference key frame K j The IMU data within the time range is pre-integrated, the IMU coordinate system is established according to the output of the gyroscope, the position and velocity information of the robot carrier itself is calculated through the output of the accelerometer, and a residual model of the difference between the pre-integrated calculated value and the measured value of the IMU is constructed; wherein, the IMU device includes an accelerometer and a gyroscope, which can measure the linear acceleration and angular velocity of the carrier relative to the inertial coordinate system in real time, and calculate the position and velocity information of the robot itself by integration.
[0048] A nonlinear optimization function is constructed through the reprojection error of the visual feature matching point pair and the IMU error to optimize the robot's position, speed, and IMU drift. The overall estimated state vector of the joint optimization of vision and IMU is:
[0049]
[0050] The first part of the optimization function is the visual residual term ∑E of the current i-th image frame proj (j) represents the residual generated by the projection of the feature point on the map point under the camera. The second part is the residual of the IMU motion model between the current i-th image frame and the reference key frame j, which represents the residual generated by the IMU between the two frames of images. θ contains the current robot's rotation, translation, speed, and IMU bias information. The least squares method is used to achieve nonlinear optimization, and then the robot's posture is obtained through the obtained θ.
[0051] Step 2.3: Run the sparse point cloud construction module, update the keyframes according to the co-viewing relationship between the image frames, and generate new map points using the static feature points on the newly added keyframes and the robot pose information estimated in step 2.2. Map the new map points to the three-dimensional submap and continuously update the submap.
[0052] Key frame update strategy: According to the co-viewing relationship between image frames, it is determined whether the current frame can be inserted into the key frame sequence of the previous j key frames as a key frame. Specifically, when the current frame I i Observed feature point L i The number is less than the reference key frame Kj 90% of the number of common view feature points, or the distance inserted into the previous key frame K j If the poses of 20 image frames have been tracked without inserting key frames, the current frame can be inserted as a key frame into the key frame sequence of the first j key frames.
[0053] Step 2.4: Upload the updated sub-map data and key frame data to the server via WiFi.
[0054] Step 3: Globally consistent pose association and joint mapping on the server side. In this stage, the updated sub-map data and updated key frame data uploaded by the robot side are received, and the sub-map optimization, pose association and sub-map fusion between different robots are completed to generate a global map.
[0055] The data managed by the server mainly includes: the sub-map sequence M={M0,M1,…,M n ,}(the restored sub-map contains map points and key frame sequences, IMU constraints between key frames, and observation models between key frames and map points), a global map (containing a series of key frame data and map points, as well as IMU constraints between key frames and key frames, and observation models between key frames and map points).
[0056] Step 3.1: The server receives the updated keyframes and sub-map data uploaded by the robot via WiFi, and restores the sub-map on the server. There is no limit on the number of receiving robots, allowing them to join dynamically during the mission, and restores the newly added sub-map on the server for each newly connected robot.
[0057] Step 3.2: Use the bag-of-words model based on visual features to perform loop detection, and compare the uploaded key frame data with the historical key frame sequence K = {K0, K1, …, K n ,} to complete the loop detection and optimization of the sub-map, or the fusion of different sub-maps to generate a global map. Specifically:
[0058] If the currently uploaded key frame K i The key frame K that matches the key frame sequence saved on the server j , all in the submap M where the current keyframe is located c If the sub-map is within the range of , the BA method is used to optimize the map points and key frame poses of the sub-map;
[0059] If the matched key frame K j Do not upload keyframe K at the current time i Submap M cIf , the three-dimensional transformation relationship T between the two matching key frames is calculated ij , through this three-dimensional transformation relationship, the submap M c and keyframe K j Submap M f Convert to the same coordinate system, generate a global map, and use the BA method to optimize the global map key frame pose and map points;
[0060] Step 3.3: Eliminate redundant keyframes and map points from the global map generated in 3.2. Traverse all keyframes within the global map range. Eliminate redundant keyframes and duplicate map points (project map points to keyframes and select map points with the most observations) based on the degree of co-viewing redundancy of feature points (90% of map points in keyframes can be found in other keyframes). Run the global BA method to optimize and update the global map and robot pose.
[0061] Regularly remove redundant keyframes in the global map and perform global BA optimization to reduce the cumulative drift of the camera. Here, each keyframe KF in the global map k The redundancy value calculation formula is:
[0062]
[0063] in is the key frame KF k For the observed map points, the function τ(obs(LM)) calculates the number of observations of each map point LM. The more observations, the greater the redundancy value. If the redundancy value exceeds the threshold, the key frame is judged to be a redundant key frame, and the key frame and the map point associated with it are deleted from the key frame sequence of the global map. Finally, global BA optimization is performed to reduce the cumulative drift of the global map and the robot posture.
[0064] Figure 6 A global consistency map generated for the system.
[0065] In order to simplify the explanation of the article, the above-mentioned diagrams and texts are described as a series of steps, but it should be understood and appreciated that these methods are not limited by the order of operation. Because one or more steps are implemented, some actions may occur in different orders, but those skilled in the art can understand the principles of their actions.
[0066] Although the illustrative specific embodiments of the present invention have been gradually described so that those skilled in the art can understand them, the present invention is not limited to the scope of the specific embodiments. Those skilled in the art can make various changes or modifications within the scope of the claims, as long as the various changes are within the spirit and scope of the present invention as defined and determined by the appended claims.
Claims
1. A multi-machine joint mapping method integrating dynamic target perception, characterized in that: The method comprises the following steps: Step 1: Image preprocessing stage integrating dynamic target perception, in which RGB image frames are continuously collected as input, instance segmentation and continuous tracking of dynamic interference objects in image frame data are completed, ORB feature point extraction is performed, static feature points and dynamic feature points are distinguished, and image frames and static feature points are transmitted to the next stage; Step 2: Using the IMU sensor data and preprocessed image data continuously acquired by the robot, run the visual inertial odometer on the robot to estimate the robot pose at the current moment, and run the sparse point cloud map reconstruction module at the same time, using the robot's currently updated key frame K i The static feature points in the current keyframe are mapped to the submap to achieve incremental construction of the submap on a single machine. At the same time, the newly added keyframes and submap data are transmitted to the server via WiFi. Step 3: Globally consistent pose association and joint mapping on the server side. This stage is used to receive the submap and keyframe data uploaded by the robot side, restore the submap on the server side, and use the bag-of-words model for loop detection to complete the optimization of the submap and the pose association between different robots to generate a global map. Step 1 further comprises the following steps: Step 1.1: Continuously acquire a sequence of RGB image frames through the camera on the robot; perform instance segmentation and prediction box extraction on potential random dynamic interference objects in the image frames based on the deep learning neural network framework YOLACT, and cover the random dynamic interference objects segmented in the image frames with masks; dynamic interference objects are represented by pixel-level instance segmentation representations in the image frames; DeepSORT is used to track the predicted boxes of the extracted dynamic interference objects, and the predicted pedestrian targets are tracked and the corresponding pedestrian IDs are generated; Step 1.2: Extract ORB feature points in the image frame and calculate the descriptors of the feature points; Step 1.3: Based on the ORB feature points extracted in step 1.2, the dynamic feature points in the image frame are extracted using the optical flow method. If the extracted dynamic feature points are within the segmentation mask range of the dynamic interference object instance in step 1.1, they are judged as dynamic feature points representing random dynamic interference objects. The feature points in the ORB feature points except the dynamic feature points representing random dynamic interference objects are static feature points. Step 2 further comprises the following steps: Step 2.1: Continuously receive IMU and pre-processed image data, and synchronize the pre-processed image frame and IMU data timestamps, where the pre-processed image data refers to the original image frame and static feature points; Select two consecutive image frames that match a sufficient number of static feature points from the preprocessed image frames as the initial key frames K0 and K1, triangulate the static feature points on the two initial key frames, and then initialize the submap; Step 2.2: Construct a visual inertial odometer based on the image frames and IMU data after timestamp synchronization to estimate the robot's position and posture; Step 2.3: Run the sparse point cloud construction module to update the keyframes according to the co-viewing relationship between image frames, and use the updated keyframes K i Generate new map points based on the static feature points on the robot and the robot posture information estimated in 2.2, map the new map points to the three-dimensional sub-map, and continuously update the sub-map; Step 2.4: Upload the updated key frame data and updated sub-map data to the server; Step 3 further includes the following steps: Step 3.1: Continue to receive the posture and keyframe data from the robot, and restore the submap on the server; the restored submap contains map points and keyframe sequences, IMU constraints between keyframes, and observation models between keyframes and map points; Step 3.2: Use the bag-of-words model to perform loop detection, match the uploaded keyframe data with the keyframe sequence saved on the server, if the currently uploaded keyframe and the matched keyframe saved in the keyframe sequence on the server are both in the submap where the current keyframe is located, then use the BA method to optimize the map points and keyframe poses of the submap; if the matched keyframe is not in the submap where the currently uploaded keyframe is located, calculate the three-dimensional transformation relationship between the two matching keyframes, and transform the submap to the same coordinate system through the three-dimensional transformation relationship to generate a global map, and use the BA method to optimize the keyframe pose and map points of the global map; Step 3.3: Eliminate redundant keyframes and map points from the global map generated in 3.2, traverse all keyframes within the global map range, eliminate redundant keyframes and duplicate map points based on the co-viewing redundancy of feature points, run the global BA method, optimize and update the global map and robot pose.
2. According to the multi-machine joint mapping method integrating dynamic target perception according to claim 1, it is characterized in that: There is no limit on the number of receiving robots in step 3.1, allowing them to join dynamically during the mission, and restoring the newly added submap on the server side for each newly connected robot.
3. The multi-machine joint mapping method integrating dynamic target perception according to claim 1 is characterized in that: Step 3.3 Regularly remove redundant keyframes in the global map and perform global BA optimization to reduce the cumulative drift of the camera. The keyframe KF in each global map k The redundancy value calculation formula is: in is the key frame KF k For the observed map points, the function τ(obs(LM)) calculates the number of observations of each map point LM. The more observations, the greater the redundancy value. If the redundancy value exceeds the threshold, the key frame is judged to be a redundant key frame, and the key frame and the map point associated with it are deleted from the key frame sequence of the global map. Finally, global BA optimization is performed to reduce the cumulative drift of the global map and the robot posture.
