Device and method for performing simultaneous positioning and mapping
Through modular processing architecture and multi-sensor fusion, the problem of multi-sensor combination and distributed processing in SLAM is solved, real-time and efficient SLAM map update and GPS correction are achieved, and positioning accuracy and processing efficiency are improved.
Patent Information
- Application Number
- CN201880096440.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-09-07
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2038-09-07
AI Technical Summary
Existing simultaneous localization and mapping (SLAM) technology is difficult to effectively combine multiple sensors, such as GPS and IMU, and lacks a distributed processing architecture to fully utilize the advantages of crowdsourcing algorithms, especially in the map creation process.
Adopting a modular processing architecture, the SLAM process is divided into three stages: preprocessing, sequence mapping and graph update, using visual feature sets and sensor readings to perform real-time distributed operations, and integrating GPS and IMU through local and global beam adjustment data, enabling multi-sensor fusion and separating processing stages in distributed devices to improve efficiency.
It achieves efficient SLAM in real-time and distributed environments, reduces the data transmission rate, can continuously update the global map, and corrects GPS deviations through the overlap of multiple sequences, improving positioning accuracy and processing efficiency.
Smart Images

Figure CN112567429B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of simultaneous localization and mapping (SLAM). In particular, the present invention provides a device and method for performing SLAM. Therefore, the device and method are capable of combining camera images with multiple sensor readings to perform the SLAM. Background Art
[0002] The next generation of safety and vehicle automation will rely on precise positioning, but positioning based on the Global Positioning System (GPS) is hampered by the fact that GPS signals are frequently blocked, even in normal driving situations. One of the main technical issues facing positioning is map creation, or map building. For successful map building, positioning is required. Therefore, the so-called SLAM must be performed.
[0003] Traditional SLAM methods using stereo cameras include ORB-SLAM2 and stereo LSD-SLAM, which are feature-based methods and direct methods, respectively (https: / / medium.com / @j.zijlmans / lsd-slam-vs-orb-slam2-a-literature-based-comparison-20732df431d). The present invention relates to the feature-based method.
[0004] Extending the SLAM combination sensor is still an open research topic. For example, the first approach (R. Mur-Artal and J.D. Dardós, Visual-Inertial Monocular SLAM With Map Reuse, IEEE Robotics and Automation Letters, Vol. 2, No. 2, pp. 796-803, April 2017) combines monocular ORB-SLAM with an inertial measurement unit (IMU). The second approach (M. Lhuillier, Incremental Fusion of Structure-from-Motion and GPS Using Constrained Bundle Adjustments, IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 34, No. 12, pp. 2489-2495, December 2012) combines a bundle adjustment (BA) technique similar to ORB-SLAM with GPS.
[0005] In the first approach described above, the ORB-SLAM architecture is modified to include IMU readings in tracking, local bundle adjustment (LBA), and global bundle adjustment. Results show that monocular ORB-SLAM with a known scale performs better than visual-inertial monocular ORB-SLAM.
[0006] In the second approach mentioned above, there are two types of BA, namely standard BA and fusion BA. Standard BA minimizes the reprojection error of 3D point features, and the result of this BA is used to incorporate fusion BA with GPS. This approach includes three proposed methods, each with its own focus. The first method is to minimize the reprojection error and GPS error as the sum of squared differences, and the other two methods are to optimize the obstacle term of the reprojection error or GPS error. The results show that the obstacle term optimization is better than the first method.
[0007] However, the problem of combining multiple sensors (e.g., GPS and IMU) with SLAM has not been solved so far. In addition, distributed processing architectures for SLAM have not yet been developed. Therefore, the advantages of so-called crowdsourcing algorithms have not been exploited so far. Summary of the invention
[0008] In view of the above problems, embodiments of the present invention aim to improve the traditional SLAM method. The purpose is to improve the feature-based map building process in terms of modularity and expand it to include multiple sensors, in particular both GPS and IMU. Another purpose is real-time distributed operation. In particular, the advantages of crowdsourcing algorithms should be exploited, for example, where multiple devices (e.g., vehicles) contribute to map creation by uploading their respective sensor readings to, for example, the cloud.
[0009] Said object is achieved by the embodiments of the invention provided in the attached independent claims. Advantageous implementations of the embodiments of the invention are further defined in the dependent claims.
[0010] A first aspect of the present invention provides a device for performing SLAM, wherein the device includes at least one processor for: in a first processing stage, preprocessing a received data sequence to obtain a frame sequence, wherein the received data sequence includes multiple images recorded by a camera and sensor readings from multiple sensors, wherein each frame includes a set of visual features associated with one of the images at a determined time instance and the sensor reading of the time instance; in a second processing stage, sequentially processing the frames based on the set of visual features and the sensor readings included in each frame of the frame sequence to generate a sequence mapping diagram; in a third processing stage, merging the sequence mapping diagram with at least one other diagram to generate or update a full diagram.
[0011] A "time instance" may be a determined time point or time interval, or a time point or time interval relative to a certain starting time point. For example, a "time instance" may be a time interval between consecutive images in a data sequence. That is, the first image in the data sequence may be captured at a first time point, the second image in the data sequence may be captured at a second time point, and the third image may be captured at a third time point. In this case, the "time instance" of the second image may be the time interval between the first time point and the second time point. In this case, the sensor readings of the "time instance" (i.e., the same "time instance" of the second image) include all sensor readings between the first time point and the second time point. It is worth noting that there may be no sensor readings during a "time instance", for example, if the frequency at which the sensor operates is slower than the frequency at which the camera captures the images. Further, the "time instance" of the third image starts from the second time point.
[0012] The modularity of the device, i.e. the division into the three processing stages, enables real-time and distributed SLAM. In particular, the separation of the second processing stage and the third processing stage allows information to be obtained from multiple data sequences. The third processing stage can correct sensor readings, for example, GPS bias can be corrected, because multiple overlapping data sequences can be obtained (for example, from different devices). For example, the sensor readings allow the fusion of GPS and IMU readings with visual information obtained by one or more cameras. The structure of the frame further results in less data needing to be passed to the next processing stage (compared to passing the entire image).
[0013] In an implementation of the first aspect, the visual feature set includes: an image feature set, the image feature set including one or more 2D key points extracted from the relevant image; descriptors corresponding to the 2D key points; and disparity and / or depth information of the 2D key points.
[0014] Thus, the frame comprises less information than the entire image, but comprises enough characteristic visual information to allow the sequence mapping to be performed. An advantage is that the pre-processed frames to be used in the second processing stage can be stored, for example, which facilitates the debugging process. Furthermore, for example, less information needs to be transferred from one processor to another in a distributed device. The disparity and / or depth information can allow 3D keypoints to be calculated based on the corresponding 2D keypoints.
[0015] In another implementation of the first aspect, the at least one processor is used to, in the first processing stage: extract an image from the data sequence; correct the image; extract 2D key points from the corrected image; and generate an image feature set based on the extracted 2D key points.
[0016] In another implementation of the first aspect, the at least one processor is used to, in the first processing stage: assign one or more semantic labels to pixels of the corrected image; and filter the image feature set based on the semantic labels to remove 2D key points associated with objects marked as dynamic objects from the image feature set.
[0017] This removes unnecessary 2D keypoints, helping to reduce processing load.
[0018] In another implementation of the first aspect, the at least one processor is further used to, in the first processing stage: generate a visual feature set by adding a bag-of-words descriptor to the filtered image feature set, and optionally adding a hash table for searching the 2D key points; and generate a frame by merging the visual feature set with sensor readings at the same time instance of the image.
[0019] This adds more information to the visual feature set. The hash table can further increase the speed and robustness of the process. Sensor information can also be processed in this way.
[0020] In another implementation of the first aspect, the at least one processor is used to, in the second processing stage: based on the visual feature set included in the frame, perform camera tracking by matching 2D key points in the visual feature set with locally stored 3D key points to obtain a camera pose associated with the frame.
[0021] In another implementation of the first aspect, the at least one processor is configured to determine whether the frame is a key frame based on a number of matched 2D key points.
[0022] In another implementation of the first aspect, the at least one processor is used to, in the second processing stage: if the frame is determined to be a key frame, then: perform a first local bundle adjustment (LBA) based on the camera pose to obtain visual odometry information and an LBA map; calculate a fused camera pose based on the visual odometry information and the sensor readings included in the frame; and perform a second LBA based on the fused camera pose and the LBA map to obtain the sequence mapping map.
[0023] Therefore, the feature matching process in the first LBA is not affected by noisy sensor readings etc., thereby preventing inliers from being lost and tracking failures. The second LBA allows the fusion of GPS and / or IMU etc. with visual odometry data.
[0024] In another implementation of the first aspect, the at least one processor is further used to, in the third processing stage: detect that there are one or more shared loops and / or overlapping areas between the sequence mapping diagram and the at least one other diagram; merge the sequence mapping diagram and the at least one other diagram to obtain an intermediate diagram; and optimize the intermediate diagram based on the detected loops and / or overlapping areas to obtain the full diagram.
[0025] For example, if a loop or overlap area is available, GPS bias can be corrected.
[0026] In another implementation of the first aspect, at least two of the three processing stages are executed in different processors.
[0027] This enables distributed processing of the SLAM.
[0028] In another implementation of the first aspect, the device is a distributed device, including at least one terminal device and at least one network device, wherein the processor of the terminal device is used to execute the first processing stage and transmit the obtained frame sequence to the network device; and the processor of the network device is used to execute the second processing stage and the third processing stage.
[0029] This can be implemented, for example, in vehicle automation systems. The preprocessing can be performed in real time in the vehicle.
[0030] In another implementation of the first aspect, the processor of the terminal device is further used to: perform real-time positioning based on the frame sequence obtained in the first processing stage.
[0031] Therefore, the real-time localization is separated from the map update. It is worth noting that for simplicity, since there is usually a rigid transformation between the camera pose and the car pose (if the camera is mounted on the car), the two terms can be used interchangeably, because given the other pose, either pose can be directly obtained by the rigid transformation.
[0032] In another implementation of the first aspect, the processor of the terminal device is also used to: perform the real-time positioning according to the second processing stage described above, wherein the second LBA is replaced by a fusion tracking program based on the fused camera pose, the LBA map and the current full map to obtain the current camera pose.
[0033] In another implementation of the first aspect, the terminal device is located in a vehicle, and the vehicle includes the at least one camera and a plurality of sensors.
[0034] The second aspect of the present invention provides a method for performing SLAM, wherein the method comprises: in a first processing stage, preprocessing a received data sequence to obtain a frame sequence, wherein the received data sequence includes multiple images recorded by a camera and sensor readings from multiple sensors, wherein each frame includes a set of visual features associated with one of the images at a determined time instance and the sensor reading of the time instance; in a second processing stage, sequentially processing the frames based on the set of visual features and the sensor readings included in each frame of the frame sequence to generate a sequence mapping diagram; in a third processing stage, merging the sequence mapping diagram with at least one other diagram to generate or update a full diagram.
[0035] In an implementation of the second aspect, the visual feature set includes: an image feature set, the image feature set including one or more 2D key points extracted from the relevant image; descriptors corresponding to the 2D key points; and disparity information and / or depth information of the 2D key points.
[0036] In another implementation of the second aspect, the method includes, in the first processing stage: extracting an image from the data sequence; correcting the image; extracting 2D key points from the corrected image; and generating an image feature set based on the extracted 2D key points.
[0037] In another implementation of the second aspect, the method includes, in the first processing stage: assigning one or more semantic labels to pixels of the corrected image; filtering the image feature set based on the semantic labels to remove 2D key points associated with objects marked as dynamic objects from the image feature set.
[0038] In another implementation of the second aspect, the method further includes, in the first processing stage: generating a visual feature set by adding a bag-of-words descriptor to the filtered image feature set, and optionally adding a hash table for searching the 2D key points; generating a frame by merging the visual feature set with sensor readings at the same time instance of the image.
[0039] In another implementation of the second aspect, the method includes, in the second processing stage: based on the visual feature set included in the frame, performing camera tracking by matching 2D key points in the visual feature set with locally stored 3D key points to obtain a camera pose associated with the frame.
[0040] In another implementation of the second aspect, the method includes: determining whether the frame is a key frame based on a number of matched 2D key points.
[0041] In another implementation of the second aspect, the method further includes, in the second processing stage: if the frame is determined to be a key frame, then: performing a first LBA based on the camera pose to obtain visual odometry information and an LBA map; calculating a fused camera pose based on the visual odometry information and the sensor reading included in the frame; and performing a second LBA based on the fused camera pose and the LBA map to obtain the sequence mapping map.
[0042] In another implementation of the second aspect, the method further includes, in the third processing stage: detecting the existence of one or more shared loops and / or overlapping areas between the sequence mapping diagram and the at least one other diagram; merging the sequence mapping diagram and the at least one other diagram to obtain an intermediate diagram; and optimizing the intermediate diagram based on the detected loops and / or overlapping areas to obtain the full diagram.
[0043] In another implementation of the second aspect, at least two of the three processing stages are executed in different processors.
[0044] In another implementation of the second aspect, the method is performed in a distributed device, wherein the distributed device includes at least one terminal device and at least one network device, wherein the terminal device performs the first processing stage and transmits the obtained frame sequence to the network device; and the network device performs the second processing stage and the third processing stage.
[0045] In another implementation of the second aspect, the terminal device also performs real-time positioning based on the frame sequence obtained in the first processing stage.
[0046] In another implementation of the second aspect, the terminal also performs the real-time positioning according to the second processing stage described above, wherein the second LBA is replaced by a fusion tracking program based on the fused camera pose, the LBA map and the current full map to obtain the current camera pose.
[0047] In another implementation of the second aspect, the terminal device is located in a vehicle, and the vehicle includes the at least one camera and a plurality of sensors.
[0048] Through the method of the second aspect and its implementation, the above advantages and effects of the device of the first aspect and its corresponding implementation are achieved.
[0049] In summary, the embodiments of the present invention are based on several improvements described below:
[0050] Software Architecture: The processing architecture of the device (divided into three processing stages) supports a modular approach that can be used for real-time distributed SLAM. In this way, the full map (global map) can be updated all the time while localization is being performed, and only the extracted features need to be transmitted, rather than the entire image (i.e., lower data rate).
[0051] Separation of sequence mapping from final map optimization: The process of mapping sequences focuses on accurate output based on visual information, and is separated from the full map (global map) update, which takes into account the availability of multiple overlapping sequences for the final overall optimization. This allows all information from all sequences to be used appropriately due to the separation of processes rather than having a single process when doing the map update. Additionally, the map update can correct for GPS biases as this is observable due to the availability of multiple overlapping sequences.
[0052] Multi-sensor fusion: Bundle adjustment is used during the sequence mapping, where the first LBA is called the standard LBA and the second LBA fuses the output of the first LBA with a fused camera pose based on GPS, IMU readings, visual odometry information, etc. The goal is to have two separate processes of reprojection error optimization (done in the first LBA) and GPS / IMU fusion before another optimization in the second LBA. This way, the feature matching process in the first LBA is not affected by noisy GPS / IMU readings. Compared to the second approach above, IMU readings are also fused.
[0053] It should be noted that all devices, elements, units and components described in this application can be implemented in software or hardware elements or any combination thereof. All steps performed by various entities described in this application and the functions described to be performed by various entities are intended to indicate that each entity is suitable for or used to perform respective steps and functions. Even if, in the description of the following specific embodiments, a specific function or step to be performed by an external entity is not reflected in the description of the specific detailed elements of the entity that performs the specific step or function, it should be clear to the technician that these methods and functions can be implemented in corresponding software or hardware elements, or any combination thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The above aspects and implementation forms of the present invention will be explained in the following description of specific embodiments in conjunction with the accompanying drawings, in which:
[0055] Figure 1 A device according to an embodiment of the present invention is shown;
[0056] Figure 2 shows a first processing stage of an apparatus according to an embodiment of the present invention;
[0057] Figure 3 shows a second processing stage of an apparatus according to an embodiment of the present invention;
[0058] Figure 4 shows a third processing stage of an apparatus according to an embodiment of the present invention;
[0059] Figure 5 An apparatus for distributed processing according to an embodiment of the present invention is shown;
[0060] Figure 6 The real-time positioning in the device for distributed processing according to the embodiment of the present invention is shown;
[0061] Figure 7 A method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0062] Figure 1 The device 100 according to an embodiment of the present invention is shown. The device 100 is used to perform SLAM, in particular to perform a feature-based SLAM method. Figure 1 The modularization of this SLAM method that can be performed in the offline map construction process is shown. It is assumed that there are several recorded sequences available for processing. The feature-based SLAM method performed by the device 100 is specifically divided into three processing stages: a first processing stage 102 ("pre-processing"), a second processing stage 104 ("sequence mapping") and a third processing stage 106 ("map update", also known as "global map update").
[0063] The device 100 includes at least one processor, which is used to execute processing stages 102, 104 and 106 respectively. At least two of the three processing stages 102, 104 and 106 can be executed in different processors of the device 100. In this case, the device 100 can be a distributed device (for example, a terminal device and a network device). It is also possible that each processing stage 102, 104 and 106 is executed in a different processor.
[0064] In a first processing stage 102, the received data sequence 101 is preprocessed. The data sequence 101 comprises at least a plurality of images recorded by a camera (or by a plurality of cameras) and sensor readings from a plurality of sensors 501 (see Figure 5 ) to obtain a frame sequence 103. The plurality of sensors may include a GPS and an IMU. The frame sequence 103 includes one or more frames arranged in sequence. Each frame in the frame sequence 103 includes a set of visual features associated with one of the images in the data sequence 101 (i.e., an image taken at a determined time instance), and also includes a sensor reading 502 at that time instance (e.g., see Figure 5 ). That is, the data sequence 101 includes images that are temporally correlated with the sensor readings 502. Therefore, a time instance can be a certain time point or time interval, or a point or time interval relative to a certain starting point.
[0065] In the second processing stage 104, the frames in the frame sequence 103 are processed in sequence based on the visual feature set and sensor readings 502 included in each frame to generate a sequence map 105. The visual feature set may include: an image feature set, the image feature set including one or more 2D key points extracted from the relevant image; a descriptor corresponding to the 2D key point; and disparity information and / or depth information of the 2D key point.
[0066] In a third processing stage 106, the sequence map 105 is merged with at least one other map 400 (see, for example, Figure 4 , where the sequence map 105 is merged with the "initial map") to generate or update the full map 107 (also called a "complete map" or "global map").
[0067] Figure 2 An example of a first "pre-processing" stage 102 is shown in more detail. The processing stage 102 aims at processing a certain recorded data sequence 101 (data sequence i) to output a sequence 103 of frames. Thus, for example, at each discrete time t, a frame consists of a set of visual features corresponding to an image in the data sequence 101 at time t and sensor readings 502 (e.g., GPS readings and IMU readings) between times (t-1, t], etc. included in the data sequence 101. It can be assumed that the data sequence 101 includes stereo images. The visual feature set may include an image feature set (e.g., a stereo feature set in the case of stereo images) and a Bag-of-words (BoW) descriptor after removing points corresponding to dynamic objects. In addition, a hash table may be created so that key points can be searched in specific areas of the image. The stereo feature set may include stereo 2D key points extracted from the stereo images by a feature extractor method such as ORB and their corresponding descriptors, and may also include the disparity and depth of each stereo match that forms a 3D key point. An advantage is that pre-processed frames in the frame sequence 103 can be stored for use in the next processing stage 104. This will help the debugging process by allowing only relevant information to be stored, rather than the entire image.
[0068] During the first processing stage 102, first, the image extractor unit 200 extracts an image (here exemplarily a stereo image) from the recorded data sequence 101. Secondly, the correction unit 201 processes the stereo image to transform the image onto a common image plane, thereby generating a corrected stereo image. Again, in a processing branch, the corrected stereo image is input into the feature extractor unit 204 to extract 2D key points (i.e., left and right) in each image. Then, these 2D key points are further processed by a stereo matching procedure to find 2D key points with stereo correspondence. Finally, a 3D reconstruction procedure is performed to place those 2D key points in a 3D coordinate system based on the disparity information / depth information obtained from the stereo matching. 2D key points without stereo correspondence can still be retained. It is worth noting that when extracting the 2D key points, corresponding feature descriptors can also be extracted and can be included in the output, i.e., in the stereo feature set.
[0069] In another processing branch, the rectified image is input into a classifier unit 203 using conventional concepts to output a set of semantic labels assigned to image pixels of the rectified image. It may be helpful to downsample the input rectified image to make the processing faster.
[0070] Furthermore, a dynamic object filtering unit 205 subsequently processes the input stereo feature set by removing 2D key points corresponding to semantic labels belonging to dynamic objects such as cars, bicycles, motorcycles, etc. Furthermore, an appearance descriptor unit 206 is used to add more information to the input filtered stereo feature set, in particular by appending BoW descriptors and optionally a hash table (which is constructed to further improve speed and robustness) to finally complete the content of the visual feature set. The appearance descriptor unit may be an optional processing unit if there are restrictions on the data size of the output frame sequence. The actual processing may be done directly in the unit that requires the information, for example, in Figure 3 The camera tracking 301 in the hash table is completed. Figure 4 The loop detection and merging in 401 complete the BoW descriptor.
[0071] In the last step, the extracted sensor readings (here exemplarily GPS readings and IMU readings) between two consecutive images are processed by the GPS / IMU parser 202 and appended to the visual feature set by the container unit 207 to form an output frame. Since the offline processing may involve the use of multi-threaded processing in some or all of the above processing units, it can be guaranteed that the output sequence forms an ordered frame sequence 103 based on the timestamp.
[0072] Figure 3An example of a second processing stage 104, namely "sequence mapping", is depicted in more detail, where the frames of a frame sequence 103 are processed sequentially. The goal of this processing stage 104 is to create a "partial graph" (or "partial map") or "sequence map" from the input frame sequence 103. A graph usually consists of vertices and edges, and there are two types of vertices in a sequence map, namely camera poses and corresponding keyframes and 3D keypoints. A keyframe simply refers to a frame that has been selected to be part of the graph. An edge simply shows the relationship between these two types of vertices. Technically speaking, each edge associates a 3D keypoint with a camera pose by calculating the reprojection error of the point for a given camera pose. If the reprojection error is less than a certain threshold, the edge is established.
[0073] In one processing branch of the second processing stage 104, the visual feature parser unit 300 extracts a visual feature set for the frame at time t, which is then processed locally by the camera tracker 301. Figure 3 The D key points are reprojected onto the 2D plane of the current image, and the 2D key points of the current frame are compared with the stored local Figure 3 D key points. To achieve this, the current image camera pose is predicted (for example, by adopting a motion model for past camera poses), and then an iterative algorithm is performed to slowly modify the camera pose based on the initial predicted pose to minimize the reprojection error. Outliers can also be filtered during this iteration by, for example, removing points where the minimum reprojection error is greater than a certain reprojection error threshold. This will result in the final output being a filtered set of visual features and an optimized camera pose. The filtered set of visual features may include additional information, which may be the relationship between the 2D key points of the frame and the local Figure 3 D The correspondence between key points.
[0074] Once the optimized camera pose is obtained, it can be decided to insert the frame into the standard LBA map, taking into account the number of tracked and untracked points. When certain conditions are met, the frame is inserted into the map and the frame is called a keyframe with the corresponding camera pose. Figure 3 The 2D key points that do not have corresponding relationships are inserted into the graph as new local points. Figure 3 D key point, the new local Figure 3The 3D positions of the D keypoints are taken from the 3D keypoints of the frame. It is worth noting that those 2D keypoints in the frame that do not have any 3D keypoints (stereo correspondences) can be discarded. The corresponding optimized camera pose is forming an initial pose guess for the next step, where the map is locally optimized by standard local bundle adjustment 303. Here, "local" means that there is a time observation window extending into the past; here, "standard" means that only the camera sensor is used; BA is a method of finding an optimized camera pose and 3D keypoint positions that minimizes the reprojection error given a filtered set of visual feature information.
[0075] The final output is a local optimization graph, and the optimized camera pose of the new keyframe is sent to the Extended Kalman Filter (EKF) unit 305 as visual odometry (relative camera pose change) information. The EKF unit 305 then fuses the visual odometry information with sensor readings (from GPS and IMU, obtained from the frame sequence 103 through the GPS / IMU parser unit 302) to output a fused camera pose; wherein the sensor readings are obtained between the past image and the current image.
[0076] When the frame is not considered a keyframe, the process continues by bypassing the standard LBA unit 303 and sending the optimized camera pose as visual odometry information to the EKF unit 304. The EKF unit 304 uses this information to update its internal state and no further processing is required (nor is fusion LBA 305 required). The entire sequence mapping process 104 continues to process the next frame t+1.
[0077] The fused camera pose and the previously obtained standard LBA map are then input into the fused LBA 305 to output an optimized fused LBA map or sequence map 105. This map 105 is different from the ORB-SLAM map and the above-mentioned standard LBA map because the key frames of the map 105 correspond to the optimized camera poses, rather than the camera poses after taking into account the sensor readings, while still retaining the 3D key point information. Then, as shown in the second means above, an obstacle term is used for the reprojection error. For example, this can prevent the system from overfitting the GPS and IMU data, and being prone to internal point loss and tracking failure. Compared to the second means, the EKF unit 304 processes multiple sensor readings, that is, here exemplarily processing both GPS readings and IMU readings, rather than just GPS readings.
[0078] The Fusion LBA (FLBA) optimization proposed in unit 305 may be as follows:
[0079]
[0080] in are optimization parameters, namely local camera pose and local 3D key points; γ is a constant variable; e t is the obstacle threshold term, slightly larger than the residual standard LBA e r (x LBA );e r (x) is the overall reprojection error term; e EKF (x) is the EKF error term.
[0081]
[0082] Among them G L is a set of local key frames; G F is the set of co-viewable keyframes (keyframes that also observe local keypoints); M k is the set of 3D key points observed from key frame k; ρ() is the Huber norm; Δz i (x) is the single reprojection error term for keypoint i; Λ is the inverse of the pixel error covariance; ( ) 丅 represents the transpose operation,
[0083] e t =λe r (x LBA ), λ≥1
[0084]
[0085] where log SE (3) is the 3D standard Euclidean group logarithm returned as the Lie algebra representation of the 6-dimensional vector; T EKF,k is the transformation matrix between the map origin and the camera pose estimated by EKF for keyframe k; T WC (x k ) is the map origin and according to x k The transformation matrix between the predicted camera poses; ∑ is the EKF error covariance and
[0086] In one embodiment, a simplified second processing stage 104 can be obtained by excluding the standard LBA unit 303, so there is no need to input the visual odometry to the EKF unit 304. In addition, the output of the camera tracking unit 301 (i.e., the filtered visual feature set and the optimized camera pose) is sent directly to the fused LBA unit 305, which will perform the optimization without the obstacle term as follows:
[0087]
[0088] The fused LBA unit 305 also outputs the local location information to be input into the camera tracking unit 301. Figure 3 D keypoints. This simplified processing may have computational advantages that offset the disadvantages of the processing being prone to inliers and tracking failures.
[0089] Figure 4 An example of a final processing stage 106 (i.e., "map update" or "global map update") is shown in more detail, which is intended to enable merging of multiple sequence maps 105 into a unified full map 107 (also called a "global map"). The main task of this processing stage 106 is to detect the presence of common loops or overlapping areas between multiple input sequence maps 105 in the loop detection and merging unit 401, and to optimize those detected areas in the full map optimization unit 402. The BoW descriptor is used together with the sensor readings to extract candidate keyframes to enable loop detection. The intermediate map is simply an unoptimized map produced by merging the 3D key points in another map 400 (here the "initial map") with the sequence map 105. The availability of multiple overlapping sequences is beneficial for correcting GPS bias, etc.
[0090] The proposed full-graph optimization equation can be as follows:
[0091]
[0092] Where b is the bias term, β is a constant,
[0093]
[0094] Among them, G Loop is the set of keyframes in the extended overlap region,
[0095]
[0096] Where T EKF (b k ) is the transformation matrix between the map origin and the camera pose estimated by the EKF after accounting for the deviation of keyframe k; α1 and α2 are constants; n is the number of skipped frames between the current keyframe and the previous keyframe.
[0097] Preferably, redundant keyframes are removed to avoid a large increase in graph complexity. It is worth noting that the barrier term has not been used for this optimization due to computational complexity, however, it can be easily introduced into the fused LBA when allowed.
[0098] Now that the offline map building process has been described, the proposed real-time distributed SLAM can be derived, as Figure 5To facilitate real-time operation of the proposed SLAM method performed by the device 100, the previously described architecture that can be used for offline map construction (ie, processing stages 102, 104, and 106) can be rearranged into the following architecture.
[0099] First, the first processing stage 102 ("pre-processing") can be modified to receive input directly from the sensors 501 (e.g., stereo cameras, GPS, and IMU) and perform the process in real time ("real-time pre-processing"). The first processing stage 102 can be performed in a terminal device 500, such as a vehicle.
[0100] The terminal device 500 can then transmit the output frame sequence 103 obtained after a certain period of time to the network device 510 (e.g., a cloud server) through the network to perform the second processing stage 104 and the third processing stage 106 ("sequence mapping" and "global map update"). Given that the network device 510 can collect multiple inputs from different terminal devices 500 at the same time (i.e., distributed processing and crowdsourcing methods), an intelligent process can be initiated that can assign high priority processes to sequences including new information. The updated full map 107 (global map) output by the third processing stage 106 can then be stored in the map server 511 and can be downloaded by any terminal device 510, client, or vehicle that needs to be positioned, etc.
[0101] In the real-time positioning processing stage 503, once the "pre-processing" 102 outputs a frame t of the frame sequence 103 corresponding to time t, resulting from processing the sensor readings 502, as Figure 6 As shown, data parsing can be performed as in the second processing stage 104, that is, the GPS / IMU and visual feature parsing unit 300 performs data parsing. If the first processing stage 102 directly outputs data separately, the data parsing can also be skipped. The main change of the real-time positioning processing stage 503 (compared with the second processing stage 104) is the presence of fusion tracking 600 (see Figure 6 ), rather than fused LBA 305 (see Figure 3 ). The fused tracker 600 outputs an optimized camera pose that takes into account all inputs (i.e., the fused camera pose, the "global map" (or full map), and the local canonical LBA map). For each input frame, whether or not the frame is considered a key frame, the fused tracker 600 always outputs an estimated camera pose.
[0102] In practice, it is not necessary to use the entire area of the global map for positioning, a specific area of interest should be sufficient, for example, the area within the current sensor reading (e.g., GPS reading). Obtaining the latest full map 107 (also called the global map) corresponding to the specific area of interest from the map server 511 should enable the terminal device 500 to be fully aware of the latest updates or changes, which may be helpful in situations such as traffic jams, accidents, road construction projects, etc.
[0103] In this case, the current GPS bias can also be corrected during positioning. The fusion tracking 600 can be described as:
[0104]
[0105] Among them, ξ * is the optimized camera pose,
[0106]
[0107]
[0108] Among them, b -1 is the previous bias term,
[0109] e t =λe r (ξ LBA ), λ≥1
[0110] Another possibility is to perform the optimization without the barrier term:
[0111]
[0112] Figure 7 A method 700 according to an embodiment of the present invention is shown. The method 700 is used to perform SLAM and may be a SLAM method performed by the device 100. Accordingly, the method comprises: step 701: as a first processing stage 102, pre-processing a received data sequence 101 to obtain a frame sequence 103, wherein the received data sequence 101 comprises a plurality of images recorded by a camera and sensor readings from a plurality of sensors 501, wherein each frame comprises a set of visual features associated with one of the images at a determined time instance and a sensor reading 502 of the time instance. Step 702: as a second processing stage 104, sequentially processing the frames based on the set of visual features and the sensor reading 502 included in each frame of the frame sequence to generate a sequence map 105. Step 703: as a third processing stage 106, merging the sequence map 105 with at least one other map 400 to generate or update a full map 107.
[0113] The invention has been described in conjunction with different embodiments and implementations as examples. However, from a study of the drawings, the present invention and the independent claims, a person skilled in the art will be able to understand and implement other variations when practicing the claimed invention. In the claims and in the specification, the word "comprising" does not exclude other elements or steps, and the indefinite article "a" or "an" does not exclude a plurality. A single element or other unit may fulfil the functions of several entities or items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not mean that a combination of these measures cannot be used in an advantageous implementation.
Claims
1. A device (100) for performing simultaneous localization and mapping (SLAM), characterized in that The device (100) comprises at least one processor, configured to: In a first processing stage (102), a received data sequence (101) is pre-processed to obtain a frame sequence (103), wherein the received data sequence (101) comprises a plurality of images recorded by a camera and sensor readings from a plurality of sensors (501), wherein each frame comprises a set of visual features associated with one of the images at a determined time instance and the sensor reading (502) at said time instance; In a second processing stage (104), based on the visual feature set and the sensor readings (502) included in each frame of the frame sequence (103), the frames are processed in sequence to generate a sequence map (105), wherein the vertices of the sequence map include camera poses and corresponding keyframes and 3D keypoints, and each edge of the sequence map associates the 3D keypoint with the camera pose by calculating the reprojection error of the point given the camera pose, and the edge is established if the reprojection error is less than a certain threshold; In a third processing stage (106), the sequence map graph (105) is merged with at least one other graph (400) to generate or update a full graph (107).
2. The device (100) according to claim 1, characterized in that The visual feature set includes: an image feature set, wherein the image feature set includes one or more 2D key points extracted from a related image; a descriptor corresponding to the 2D key point; and disparity information and / or depth information of the 2D key point.
3. The device (100) according to claim 2, characterized in that The at least one processor is configured, in the first processing stage (102): Extracting an image from the data sequence (101); Correcting (201) the image; Extract 2D keypoints from the rectified image; An image feature set is generated based on the extracted 2D key points.
4. The device (100) according to claim 3, characterized in that The at least one processor is configured, in the first processing stage (102): assigning (203) one or more semantic labels to pixels of the corrected image; The set of image features is filtered (205) based on the semantic labels to remove 2D keypoints associated with objects marked as dynamic objects from the set of image features.
5. The device (100) according to claim 4, characterized in that The at least one processor is further configured, in the first processing stage (102): generating a visual feature set by adding a bag-of-words descriptor to the filtered image feature set, and optionally adding a hash table for searching the 2D keypoints; A frame is generated by merging the set of visual features with sensor readings (502) of the same time instance of the image.
6. The device (100) according to any one of claims 1 to 5, characterized in that The at least one processor is configured, in the second processing stage (104): Based on the visual feature set included in the frame, camera tracking is performed by matching 2D key points in the visual feature set with locally stored 3D key points to obtain a camera pose associated with the frame.
7. The device (100) according to claim 6, characterized in that The at least one processor is configured to: Based on the number of matched 2D key points, it is determined whether the frame is a key frame.
8. The device (100) according to claim 7, characterized in that The at least one processor is further configured to, in the second processing stage (104), if it is determined that the frame is a key frame, then: Performing (303) a first local bundle adjustment (Local Bundle Adjustment, LBA) based on the camera pose to obtain visual odometer information and an LBA map; computing (304) a fused camera pose based on the visual odometry information and the sensor readings (502) included in the frame; A second LBA is performed (305) based on the fused camera pose and the LBA map to obtain the sequence map (105).
9. The device (100) according to any one of claims 1 to 5, characterized in that The at least one processor is further configured to, in the third processing stage (106): detecting the presence of one or more shared loops and / or overlapping regions between the sequence map (105) and the at least one other map (400); merging the sequence map (105) and the at least one other map (400) to obtain an intermediate map; The intermediate graph is subjected to graph optimization (401) based on the detected loops and / or overlapping areas to obtain the full graph (107).
10. The device (100) according to any one of claims 1 to 5, characterized in that At least two of the three processing stages ( 102 , 104 , and 106 ) are executed in different processors.
11. The device (100) according to any one of claims 1 to 5, characterized in that The device (100) is a distributed device, comprising at least one terminal device (500) and at least one network device (510); The processor of the terminal device (500) is used to execute the first processing stage (102) and transmit the obtained frame sequence (103) to the network device (510); The processor of the network device (510) is configured to execute the second processing stage (104) and the third processing stage (106).
12. The device (100) according to claim 11, characterized in that The processor of the terminal device (500) is further configured to: Based on the frame sequence (103) obtained in the first processing stage (102), real-time positioning is performed.
13. The device (100) according to claim 12, characterized in that The processor of the terminal device (500) is further configured to: The real-time positioning is performed by the second processing stage (104) according to claim 8, wherein the second LBA is replaced by a fused tracking procedure based on the fused camera pose, the LBA map and the current full map to obtain a current camera pose.
14. The device (100) according to claim 11, characterized in that The terminal device (500) is located in a vehicle, and the vehicle comprises the at least one camera and a plurality of sensors (501).
15. A method (700) for performing simultaneous localization and mapping (SLAM), characterized in that: The method comprises: In a first processing stage (102), a received data sequence (101) is pre-processed (701) to obtain a frame sequence (103), wherein the received data sequence (101) comprises a plurality of images recorded by a camera and sensor readings from a plurality of sensors (501), wherein each frame comprises a set of visual features associated with one of the images at a determined time instance and the sensor reading (502) at that time instance; In a second processing stage (104), based on the set of visual features and the sensor readings (502) included in each frame of the frame sequence (103), the frames are sequentially processed (702) to generate a sequence map (105), wherein the vertices of the sequence map include camera poses and corresponding keyframes and 3D key points, and each edge of the sequence map associates the 3D key point with the camera pose by calculating the reprojection error of the point given the camera pose, and the edge is established if the reprojection error is less than a certain threshold; In a third processing stage (106), the sequence map graph (105) is merged (703) with at least one other graph (400) to generate or update a full graph (107).
Citation Information
Patent Citations
Method for estimating gestures of unmanned aerial vehicle based on visual and inertia measuring units
CN107687850A
