Skip to Content
ElectronicsElectronics
  • Article
  • Open Access

11 January 2024

19 Pages

VID-SLAM: Robust Pose Estimation with RGBD-Inertial Input for Indoor Robotic Localization

,
,
,
,
and
1
School of Mechatronical Engineering, Beijing Institute of Technology, Beijing 100081, China
2
School of Electrical and Control Engineering, Shenyang Jianzhu University, Shenyang 110168, China
3
Computer Engineering College, Jimei University, Xiamen 360121, China
*
Authors to whom correspondence should be addressed.

Abstract

This study proposes a tightly coupled multi-sensor Simultaneous Localization and Mapping (SLAM) framework that integrates RGB-D and inertial measurements to achieve highly accurate 6 degree of freedom (6DOF) metric localization in a variety of environments. Through the consideration of geometric consistency, inertial measurement unit constraints, and visual re-projection errors, we present visual-inertial-depth odometry (called VIDO), an efficient state estimation back-end, to minimise the cascading losses of all factors. Existing visual-inertial odometers rely on visual feature-based constraints to eliminate the translational displacement and angular drift produced by Inertial Measurement Unit (IMU) noise. To mitigate these constraints, we introduce the iterative closest point error of adjacent frames and update the state vectors of observed frames through the minimisation of the estimation errors of all sensors. Moreover, the closed-loop module allows for further optimization of the global attitude map to correct the long-term drift. For experiments, we collect an RGBD-inertial data set for a comprehensive evaluation of VID-SLAM. The data set contains RGB-D image pairs, IMU measurements, and two types of ground truth data. The experimental results show that VID-SLAM achieves state-of-the-art positioning accuracy and outperforms mainstream vSLAM solutions, including ElasticFusion, ORB-SLAM2, and VINS-Mono.

2. Methodology

The pipeline of VID-SLAM is illustrated in Figure 1. The system starts by receiving an RGB-D image paired with a corresponding sequence of IMU measurements, where the number of IMU measurements corresponds to the duration between consecutive RGB-D frames. These two types of data are processed separately. The IMU measurements undergo pre-integration to estimate the initial state, including position, velocity, and rotation changes, which are important for the initial alignment in the fusion process.
Figure 1. The pipeline of VID-SLAM.
The features extracted from the RGB camera are tracked by the Kanade–Lucas–Tomasi (KLT) [18] sparse optical flow algorithm. IMU pre-integration [19] is performed over a certain number of IMU measurements. Then, the ICP algorithm is employed to estimate the rotation R ∈ S O 3 and the translation t ∈ R 3 between consecutive depth maps.
In the following optimization procedure, the pose graph can be initialized using the pre-processed sensor states.
The optimization module tightly fuses geometric, IMU, and visual constraints to conduct non-linear optimization to search for the best solution. Last but not least, when a loop-closure is detected, the drift can be corrected by performing pose-graph optimization to ensure accurate localization in long-term running.
To be more specific, our approach encompasses four key components: (1) a Measurement Pre-processing Module, which processes raw inputs, converting them into structured data for subsequent processing; (2) the Robust Initialization Procedure, which aligns various measurements and establishes initial values essential for system calibration; (3) a Joint Estimation Module, a core component which integrates three types of constraints—namely visual, inertial, and geometric constraints—to accurately estimate the system’s state; and (4) a Loop Closure Module, which employs pose-graph optimization to correct cumulative errors and ensure the long-term stability of the system.

2.1. Measurement Pre-Processing

The measurement pre-processing used in this research is performed in real-time, and is similar to the pre-processing described in [8]. The RGB images and inertial measurements must be pre-processed before they can be converted into sensor states for subsequent modules. Specifically, we track visual features between consecutive colour frames and detect new features to improve the robustness of the system. The inertial measurements during the time interval between two consecutive frames will be pre-integrated using a real-time method to obtain a rough estimate of motion.

2.1.1. Visual Pre-Processing

We extract Shi–Tomasi features [20] from each RGB image and track these feature points using the KLT sparse optical flow algorithm [18]. As the tracking process contains noisy matches, outlier rejection is implemented using the RANSAC algorithm [21]. To ensure the accuracy and robustness of localization, new features are detected to maintain a minimum required number of tracked features.
Having visual features extracted and tracked, we need to decide whether the current frame is a new keyframe or not. For the insertion of keyframes, one of the following conditions must be satisfied:
  • The average parallax from the previous keyframe is set to be higher than a threshold of 0.5 pixels, determined based on empirical testing to balance keyframe frequency and tracking stability.
  • The system maintains tracking of at least 100 features in the current frame, a threshold chosen for optimal performance in varied environments as observed in preliminary tests.

2.1.2. Inertial Pre-Processing

In this step, we adopt the method from [8] for pre-integrating IMU measurements to propagate the states of position, velocity, and rotation. This process involves considering the time interval [ t k , t k + 1 ] for IMU measurements and the corresponding image frames at instants i k and i k + 1 . To accurately describe this state propagation, we refer to the following equation, which integrates various factors such as IMU measurements, biases, and gravitational effects over this interval.
p i k + 1 w = p i k w + v i k w Δ t k + ∫ ∫ t ∈ t k , t k + 1 R t w a ^ t − b a t − n a − g w d t 2 v i k + 1 w = v i k w + ∫ t ∈ t k , t k + 1 R t w a ^ t − b a t − n a − g w d t q i k + 1 w = q i k w ⊗ ∫ t ∈ t k , t k + 1 1 2 Ω ω ^ t − b w t − n w q t i k d t ,
where R t w represents the rotation matrix transitioning from the IMU body coordinate frame to the world coordinate frame at any given time t. Specifically, p , v , and q denote position, velocity, and rotation, respectively. Δ t k is the duration within the time interval [ t k , t k + 1 ] . ω and a are the gyroscope and accelerometer measurements from the IMU, respectively, while ω ^ and a ^ are their corrections which incorporate the force for countering gravity, bias, and additive noise. b a and b w are the acceleration and gyroscope biases, respectively. n a ∼ N 0 , σ a 2 and n w ∼ N 0 , σ w 2 are additive noises, assumed to be Gaussian distributions. g w is the gravity vector. ( · ) w denotes the world frame. Moreover, the formulation incorporates Ω ( ω ) , a skew-symmetric matrix, which is defined as follows:
Ω ( ω ) = − ⌊ ω ⌋ × ω − ω T 0 , ⌊ ω ⌋ × = 0 − ω z ω y ω z 0 − ω x − ω y ω x 0 .

2.2. Initialization

In the initialization phase of our Visual-Inertial-Depth Odometer (VIDO) system, accurate estimation of the initial state is important for precise state estimation. This phase involves combining the inertial data from the IMU with the visual data from the RGB-D camera to compute the initial gravity vector ( g w ), the gyroscope bias ( b g ), and the velocity of the system ( v w ). First, we pre-integrate the IMU measurements between consecutive image frames to calculate the relative motion including rotation ( Δ q i k + 1 i k ) and translation ( Δ p i k + 1 i k ), a process that uses the gyroscope and accelerometer data over the time interval [ t k , t k + 1 ] . Meanwhile, a sliding-window-based structure-from-motion (SfM) technique is used to process a series of RGB-D images to estimate the initial camera pose and the geometry of the scene. The key step is to align the SfM results with the IMU pre-integrated data, which adjusts the scale of the trajectories obtained from the visual data and corrects them using the scale-aware properties of the IMU data. This alignment is accomplished by minimising the difference between the IMU pre-integrated results and the pose obtained by SfM, ensuring that our VIDO system has a stable and reliable initial state estimate.

2.3. Joint Estimation

For each new frame, we apply local non-linear optimization to refine the trajectory estimation. To improve the accuracy of localization with multiple sensory information, we proposed a sliding window-based Visual-Inertial-Depth Odometry (VIDO) that formulates a unique tightly coupled fusion of RGB-D and inertial estimates. The state vector of the sliding window is defined as
S = s 0 , s 1 , ⋯ s i , T c b , λ 0 , λ 1 , ⋯ λ j s k = p w , v w , q w , b a , b g , k ∈ [ 0 , i ] T c b = p c b , q c b ,
where s k is the IMU state of the k th keyframe. The first three items of s k are the position, velocity, and rotation of the IMU, while the last two items of s k are the acceleration bias and gyroscope bias in the IMU frame. i and j, respectively, denote the total numbers of keyframes and features. T c b ∈ S E 3 denotes the transformation matrix from camera coordinates to IMU body coordinates. λ refers to the inverse depth of features stored in the sliding window.
Our residual function consists of four terms: the sum of prior, the ICP errors, the IMU residual, and visual re-projection errors. We minimize the residuals to obtain the optimal estimation:
min X r p − H p X 2 + ∑ ( i , j ) ∈ D r D z ^ i j , X 2 + ∑ k ∈ M r M z ^ m k + 1 m k , X P m k + 1 m k 2 + ∑ ( k , j ) ∈ V ρ r V z ^ k j , X P k j 2 ,
where
ρ ( s ) = l o g ( 1 + s )
and r p and H p are the prior information from marginalization. D is the set of matched points between consecutive depth images, M is the set of all IMU measurements, and V is the set of features observed at least twice in the current sliding window. r D ( z ^ i j , X ) , r M ( z ^ m k + 1 m k , X ) and r V ( z ^ i v j , X ) are the residuals of individual constraints. More details about these two residuals are provided in the subsequent sections. P m k + 1 m k and P k j are the corresponding covariance metrics. Ceres Solver [22] was used to solve this optimization task.

2.3.1. Geometric Constraint

Given two consecutive depth images, we estimate the relative transformation matrix between these images using the ICP algorithm. To improve the registration performance, we use a point-to-plane formulation [23], defined as
r D ( z ^ i j , X ) = ( T · P j − P i ) · n i ,
where T ∈ S E 3 is the transformation matrix, defined as
T = R t 0 1 .
Here, P i and P j are matched 3D points from the respective depth images. n is the corresponding normal of the previous frame ( P i ). The matrix R ∈ S O 3 and vector t ∈ R 3 represent the rotation and translation from the coordinate system of the previous depth image ( P i ) to the current depth image ( P j ).

2.3.2. IMU Constraint

Given IMU measurements m k and m k + 1 within two consecutive frames, the residual of IMU pre-integration is defined as
r M ( z ^ m k + 1 m k , X ) = δ α m k + 1 m k δ β m k + 1 m k δ θ m k + 1 m k δ b a δ b g = R w m k p m k + 1 w − p m k w + 1 2 g w Δ t k 2 − v m k w Δ t k − α ^ m k + 1 m k R w m k v m k + 1 w + g w Δ t k − v m k w − β ^ m k + 1 m k 2 q m k w − 1 ⊗ q m k + 1 w ⊗ γ ^ m k + 1 m k − 1 m b a m k + 1 − b a m k b w m k + 1 − b w m k ,
where R w m k ∈ SO 3 is the rotation matrix from the world coordinate system to the IMU body coordinate system. Δ t is the time interval between two consecutive frames. α ^ m k + 1 m k , β ^ m k + 1 m k , and γ ^ m k + 1 m k are the IMU pre-integration terms, which represent the integral prediction of the acceleration and angular velocity measured by the IMU from one frame to the next. These pre-integration terms are used to predict the changes in the IMU state (including position, velocity, and attitude) during this time period.

2.3.3. Visual Constraint

Similar to VINS, the re-projection error is defined on a unit sphere. Given a unit vector P k j that is back-projected from the pixel coordinates of the k th feature p k , and the corresponding 3D point that is predicted by transforming its first observation in the i th frame to the j th frame, we can define the visual residual r on the tangent plane of P k j .
Bundle Adjustment (BA) is known to be a gold standard method which can produce jointly optimal 3D structures by refining a visual re-construction [24]. The re-projection errors of BA are defined on a generalized image plane for the most part. However, its traditional formulation may be less suitable for fisheye cameras, which require specialized calibration. Based on the main ideas of BA, we define the re-projection errors as our visual residual on a unit sphere, given as follows.
According to the pinhole camera model [25], the projection function π : R 3 → R 2 projects 3D points onto the 2D plane as follows:
π X Y Z = f x X Z + c x f y Y Z + c y ,
where ( f x , f y ) and ( c x , c y ) are the camera’s intrinsic parameters, which are estimated through initial camera calibration and are assumed to be fixed throughout the keyframe sequence.
Given the k th feature p k observed at least twice since its first appearance in the i th image, the corresponding 3D point in the unit sphere can be obtained as follows if this feature appears in the j th image:
P k j = π c − 1 u k j v k j ,
where u k j and v k j are pixel coordinates of feature p k observed in the j th image. π c − 1 turns pixel coordinates into a unit vector.
With the pixel coordinates of feature p k observed in the i th image, we can obtain the corresponding 3D point in the world frame as follows:
P k i w = T w ← b i T b ← c 1 λ k π c − 1 u k i v k i
P k i w = R b i w R c b 1 λ k π c − 1 u k i v k i + t c b + t b i w ,
where T w ← b i ∈ S E 3 is the transformation matrix from the i th body frame to the world frame. T w ← b i consists of the rotation matrix R b i w ∈ S O 3 and translation matrix t b i w ∈ R 3 . λ k , as used in (3), is the inverse depth of feature p k .
Similarly, we can predict the coordinates of the same 3D point in the j th body frame as follows:
P k i w = T w ← b j T b ← c P k j ^
P k i w = R b j w R c b P k j ^ + t c b + t b j w .
We can summarize the expression of the prediction by referring to Equations (11)–(13):
P k j ^ = R b c ( R w b j ( R b i w ( R c b 1 λ k π c − 1 u k i v k i + t c b ) + t b i w − t b j w ) − t c b ) .
In summary, we define our reprojection error as follows:
r V z ^ k j , X = b → 1 b → 2 P k j ^ P k j ^ − P k j ,
where b → 1 and b → 2 are two orthogonal bases that can be found easily on the tangent plane of P k j .
As shown in Figure 2, IMU pre-integration is performed over all measurements between every several RGB frames. ICP is applied to register every neighbouring frame.
Figure 2. Illustration of the proposed fusion strategy.
To ensure real-time performance, we limit the number of iterations, as the system is designed for real-time deployment. As detailed in Section 3, this limitation allows us to perform fast estimation between two consecutive depth images. However, estimating motion between distant depth images with different 3D structures may affect the accuracy and computational cost.

2.4. Loop-Closure Detection

As accumulated drift is inevitable in the long-term running of SLAM systems, an approach based on Bag-of-Words (BoW) [26] is integrated to detect loop-closures. This approach queries the visual database with visual words (BRIEF descriptors [27] in our system) and returns loop candidates with the consistency verification.
If the current frame is selected as a keyframe, we extract BRIEF descriptors to validate loop closure. Pose-graph optimization is then performed to correct the accumulated drift after a validated loop closure.
It is worth noting that the loop-closure detection module is optional if the platform has limited computational resources. Thanks to the tightly coupled fusion strategy, our approach can achieve satisfactory localization performance in various environments even without loop-closure detection.

3. Experiments

3.1. Experimental Setup

3.1.1. Data Set

Synchronised sequences of RGB images, depth maps, and IMU measures are required to evaluate our system. As data of the required multi-sensors are not available in widely used public data sets such as the EuRoC MAV data set [28] and TUM data set [29], we collected an RGBD-inertial data set in various scenes using the Intel RealSense D435i device. The data set (https://jmueducn-my.sharepoint.com/:f:/g/personal/guikunchen_jmu_edu_cn/EmxU_0ZQMXVOvuKIdhxyOFgBJsM49OAH89j-JkOv-TH7RA (accessed on 16 June 2020)) and our source code (https://github.com/shawn87377/VID-SLAM (accessed on 16 June 2020)) have been released to the public.
In order to properly evaluate the performance of VID-SLAM, as shown in Figure 3, we built a playground-shaped rail and a circle-shaped rail as ground truth trajectories. During the process of creating the data sets, the device was fixed on the scaffold and recorded with a constant velocity.
Figure 3. Data sets used in our experiments. We built two fixed-size rails (circle and playground-shaped) as the fitted ground truth. The data sets were recorded in various environments, including scenes with chairs, umbrellas, and so on, for comprehensive evaluation.
The recorded data sets contained deformable and rigid body objects in various scenes, from flat to complex surfaces and from textured to textureless. Visually unsuitable conditions, such as textureless areas and fast-motion trajectories, make this data set a challenging benchmark for SLAM.

3.1.2. Platforms and Baselines

Our experiments were conducted on a computing platform equipped with an Intel Xeon E3-1225 CPU and an NVIDIA 1070 GPU. In order to implement state-of-the-art SLAM methods such as VINS-Mono (Qin2018vins), ElasticFusion (EF) (whelan2016elasticfusion), and ORB-SLAM2 (ORB2) (mur2017orb), we recommend that the system configuration include at least a quad-core processor and 4 GB of RAM in order to efficiently handle the computational demands.
Our experimental setup was carefully designed for rigorous testing, as shown in Figure 4. Figure 4a shows the Intel RealSense D435i camera used in the indoor experiment. The device was equipped with an integrated depth camera and a high-resolution RGB camera (640 × 480 pixels), as well as a built-in IMU capable of 6DoF motion detection, which is necessary for accurate pose estimation and motion tracking. Figure 4b depicts a customised track, which was used to ensure controlled and repeatable camera motion. The design of the track helps to achieve consistent movement speeds and trajectories, which is important for benchmarking the performance of the SLAM algorithm.
Figure 4. (a) Intel RealSense D435i used for the indoor experiment. It contains a depth camera and an RGB camera with 640 × 480 resolution. The built-in IMU is used for the detection of motion with 6 degrees-of-freedom (6DoF), and the measurements are used as the raw inertial input. (b) A customised track and the equipment to support the camera, under which all experiments were carried out at a constant speed.

3.2. Results and Discussions

3.2.1. Overall Evaluation

On the basis of the degree of the complexity of the textures and surfaces, the data set consisted of four sub-data sets (see Table 1). With respect to the surface appearance, scenes with boxes and desks were grouped as a flat-surface data set, while scenes with umbrellas and chairs were considered as a complex-surface data set. In the table, ‘c’ denotes a circle-shaped rail data set, ‘p’ denotes a playground-shaped rail data set, ‘*’ denotes a data set using striped fabric for covering (to construct a textureless surface), and ‘x’ denotes tracking failure.
Table 1. RMSE of experimental method without loop closure.
As the lab had no GPS-RTK to measured ground truth paths, we built the data sets following fixed trajectories and, by this means, we could visually inspect whether the trajectory was fitted but could also easily generate precise ground truth trajectories. Note that the ground truth is two-dimensional, while the experimental results are three-dimensional. For fair comparison, we evaluated the projection trajectories of each system. Having each experimental result aligned with its corresponding ground-truth trajectory, we used the root-mean-square error to measure the performance of different methods. A smaller RMSE value means that the trajectory aligned to the ground truth better. In order to highlight the comparisons, we compared the absolute translation in the odometry-only experiment.
From Table 1, we can observe that VID-SLAM achieved a better and more stable performance in most cases. It is worth noting that ORB-SLAM2 had estimation failure in the p-chairs1* and p-umbrella* data sets. This phenomenon indicates that texture has a greater impact on ORB-SLAM2 under complex circumstance. As relatively accurate feature points can be extracted in textured scenes, Oriented FAST- and Rotated BRIEF-based algorithms always performed well in terms of feature point matching. Conversely, tracking loss may occur in textureless areas, where the accuracy and number of feature points are insufficient.
In particular, the RMSE results show that it is a challenging task for VINS-Mono to estimate its state when it is under complex and textureless environments (even without loop closure). Comparing the results of textured scenes and textureless scenes, we can empirically observe that the RGBD-based odometry is less accurate in complex scenes, even they have rich textures. It is worth noting that ElasticFusion was more stable than ORB-SLAM2, due to the high weight of its ICP results. However, it still drifted a lot when we disabled its loop detection.

3.2.2. Typical Scenes Analysis

In Figure 5, the trajectories of different SLAM methods are compared, where the red dashed line represents the ground truth, the blue solid line represents the trajectory estimated by the VINS-Mono algorithm, the purple solid line is for the ElasticFusion algorithm, the green solid line denotes the ORB-SLAM2 algorithm and, importantly, VID-SLAM is represented by the orange solid line. As shown in Figure 5, our VID-SLAM approach outperformed the baselines in the sequence p-sofa*, especially in cases without loop closure. The intuitive comparison of trajectories in Figure 5a highlights that VID-SLAM’s trajectory closely aligned with the ground truth. Figure 5c,d depict the absolute scale drift variation over distance (time). While VINS-Mono exhibited considerable drift due to initial scale inaccuracy, our VID-SLAM achieved an RMSE of 0.017 without loop closure detection and 0.014 with loop closure detection.
Figure 5. Experimental results in p-sofa* sequences. (a) Top: trajectories generated by each system without loop closure. Bottom: trajectories generated by each system with loop closure. (b) Captured RGB image. (c) Absolute scale drift without loop closure. (d) Absolute scale drift with loop closure.
The main purpose of this part was to evaluate the generality of the system. The common features of typical sequences are localization-friendly, such as textured areas, dissimilar features (descriptors), moderate motion velocity, clear illumination, and so on. These features meet the assumptions of SLAM systems and enable them to operate regularly. The front-end of the SLAM system could be comprehensively evaluated in such sequences as those mentioned above.
Except for VINS-Mono, the p-sofa* sequence could be estimated well by all of the evaluated systems. For SLAM systems, the p-sofa* sequence is a typical and simple scene, as environments with distinguishable features and clear illumination make feature tracking more achievable.
As the vision processing front-end is an important component of VINS-Mono, it will directly affect the estimation quality if specific scenarios cause SfM failure. Figure 5b shows flexible objects covered with striped fabric. These similar features can cause inaccurate initialization, leading to a loss of metric scale. This is why the trajectory of VINS-Mono had the right trend, but lost its scale.
The results of ElasticFusion and ORB-SLAM2 exhibited obvious drift when we disabled loop detection. The odometry of these RGB-D methods utilizes geometric and photometric information to estimate the most suitable motion parameters (i.e., rotation and translation) between two consecutive frames by minimizing the joint cost function.
It can be observed that the trajectories of each system are close to the expected shape from the tendency. However, only VID-SLAM could maintain accurate global estimation during long-term localization without the loop closure module.
To fully evaluate the performance of our system in various conditions, we also recorded challenging scenes. As Figure 6b shows, this scene had many different chairs that were arranged in a disorderly manner, and its textureless areas make camera tracking more difficult. This scene has very similar features and non-uniform depth information. Our experimental results are shown in Figure 6. Detailed discussions are given as follows.
Figure 6. Experimental results in p-chairs1 sequences. (a) Top: trajectories generated by each system without loop closure. Bottom: trajectories generated by each system with loop closure. (b) Captured RGB image. (c) Absolute scale drift without loop closure. (d) Absolute scale drift with loop closure.
We observed that VINS-Mono had a problem of scale inconsistency in Figure 6a. The Inertial Measurement Unit (IMU) is easily affected by noise, especially when using low-cost IMUs. Therefore, the results of the scale estimation of VINS-Mono were far from stable and precise. Furthermore, the loop closure of VINS-Mono depends on both vision and pose, and it also failed due to its previous misestimation.
Compared to VINS-Mono, ElasticFusion and ORB-SLAM2 had impressive performance in this scene when using loop closure. However, they both drifted significantly when we disabled the loop detection. Note that our approach combines RGB-D sensors with IMUs for visual SLAM, which estimates more reliable camera poses by optimizing residuals that consist of multiple constraints.
Our approach achieved promising results in both typical and challenging scenes. The experimental results indicated that our multi-sensor fusion strategy could make a trade-off of metric scale and accuracy, dramatically improving its state estimation performance. Besides this, VID-SLAM still worked well in challenging scenes and achieved accurate localization even without loop closure.

3.2.3. Challenging Scenes Analysis

This evaluation used a small-scale circular rail to circle the boxes. The box is considered a relatively simple structure with a flat and textureless surface. The additional use of striped fabric complicated the texture structure in the c-boxes* scene. From Figure 7 and Figure 8, it can be seen that the degree of trajectory drift of the Vins-Mono system improved (RMSE decreased from 0.583 to 0.319) when the scene switched from c-boxes to c-boxes*. This is because feature matching is easier and more accurate in the c-boxes* scene than in c-boxes. Inaccurate matching interferes with Visual-Inertial odometry. Therefore, in large scenes, the Vins-mono system will drift more significantly, and this error is difficult to eliminate even with loop closure. Compared with other systems, the RGBD-based approach and VID-SLAM achieved robust results, with RMSE close to 0.01 in both loop and non-loop experiments. This indicates that it is valuable to introduce depth information to constrain the estimation results of other sensors.
Figure 7. Experimental results in c-boxes sequences. (a) Top: trajectories generated by each system without loop closure. Bottom: trajectories generated by each system with loop closure. (b) Captured RGB image. (c) Absolute scale drift without loop closure. (d) Absolute scale drift with loop closure.
Figure 8. Experimental results in c-boxes* sequences. (a) Top: trajectories generated by each system without loop closure. Bottom: trajectories generated by each system with loop closure. (b) Captured RGB image. (c) Absolute scale drift without loop closure. (d) Absolute scale drift with loop closure.
By comparing Figure 9a with Figure 10a, we can observe that, in the Figure 9b scene, which is richer in texture features, the RMSE obtained by the VIO-based Vins algorithm evaluation was significantly lower than that in the Figure 10b scene. This is mainly due to the fact that VIO-based algorithms are highly dependent on feature matching, and such algorithms have difficulty performing accurate bit-pose estimation in scenes with weak textures. In contrast, the overall RMSE estimation results of other computation methods that take depth information into account were not significantly affected by texture variations.
Figure 9. Experimental results in c-umbrella sequences. (a) Top: trajectories generated by each system without loop closure. Bottom: trajectories generated by each system with loop closure. (b) Captured RGB image. (c) Absolute scale drift without loop closure. (d) Absolute scale drift with loop closure.
Figure 10. Experimental results in c-umbrella* sequences. (a) Top: trajectories generated by each system without loop closure. Bottom: trajectories generated by each system with loop closure; (b) captured RGB image; (c) absolute scale drift without loop closure; (d) absolute scale drift with loop closure.
Figure 10 indicates that the added striped fabric hid the distinct colour attributes and changed the depth distribution of the original scene. This inevitably causes interference in the VIO-based algorithm if the extracted feature points of the scene become difficult to estimate and match. The RMSE of Vins-Mono increased significantly (from 0.074 to 0.354) when the loop closure was not used. As for ElasticFusion, which relies on the iterative closest point method and photometric error minimization, it was still affected in such scenarios. It is worth mentioning that bundle adjustment can optimize variables such as the camera poses and the observed structure relatively well, and the generated trajectory of ORBSLAM2 did not present any significant drift. VID-SLAM performed efficient Visual-Inertial-Depth odometry, and achieved a similar RMSE as ORBSLAM2 when there was no loop closure, but outperformed ORBSLAM2 with loop closure.
The playground-shaped rail is considered a long-distance test option in our experiment. As shown in Figure 11 and Figure 12, the chairs in both scenarios resulted in more depth noise, and they were not scenes with rich texture. RGBD-based SLAM systems will encounter more challenges under this circumstance. As can be seen from the experimental results, the trajectories of ElasticFusion and ORBSLAM2 drifted a short distance when the system did not detect loop closures. Furthermore, an obvious loss of scale appeared in the trajectory of Vins-mono. Note that a visually appealing trajectory was produced by VID-SLAM, as we effectively introduce IMU data to add constraints for the RGBD-based localization estimation.
Figure 11. Experimental results in p-chairs2 sequences. (a) Top: trajectories generated by each system without loop closure. Bottom: trajectories generated by each system with loop closure. (b) Captured RGB image. (c) Absolute scale drift without loop closure. (d) Absolute scale drift with loop closure.
Figure 12. Experimental results in p-chairs2* sequences. (a) Top: trajectories generated by each system without loop closure. Bottom: trajectories generated by each system with loop closure. (b) Captured RGB image. (c) Absolute scale drift without loop closure. (d) Absolute scale drift with loop closure.

3.2.4. Real-Time Performance Analysis

In fields such as robotics, SLAM systems require not only accurate localization but also focus on real-time performance. In this section, the runtime of each major part of our system is analysed in detail.
As shown in Table 2, our system consists of several different phases, each of which is characterised by a specific time consumption. The processing time of the feature tracker varies depending on the complexity of the scene and the speed of motion, with a median of 4.86 ms and a mean of 7.87 ms, reflecting its ability to maintain tracking accuracy in different environments. The Outlier rejection step had a median of 6.28 ms and a mean of 6.42 ms, and is a process that is important to exclude false feature matches in order to ensure the accuracy of subsequent calculations. Keyframe insertion had a shorter runtime, with median and mean values of 2.91 ms and 2.98 ms, respectively, which reflects the efficiency of our system in adding new keyframes. The ICP algorithm estimates the iterative direction, which had a median of 11.53 ms and a mean of 11.38 ms, which reflects the ICP algorithm’s ability to ensure bit-position estimation accuracy. Joint estimation, the central part of the SLAM system, is the step that took the longest, with a median of 77.93 ms and a mean of 81.90 ms. This process is performed by combining a variety of constraints to form the residual function, which is solved by the Ceres non-linear optimization solver, and its long runtime reflects the computationally demanding nature of the process required to sustain the the computational effort required for highly accurate state estimation. Pose-graph optimization is crucial in the global loop closure module, with a median of 38.57 ms and a mean of 32.16 ms, which is executed only after loop closure has been confirmed, giving a runtime that varies depending on the complexity of the scenario.
Table 2. Main step times in p_umbrella sequence.

4. Conclusions and Future Work

4.1. Conclusions

In this paper, we proposed a reliable and robust approach called VID-SLAM that fuses multi-sensor information (RGB-D and IMU) to improve the camera pose estimation performance. We first designed RGB-depth-inertial data sets for comprehensive evaluation. Based on tightly coupled visual-inertial-depth odometry, we presented a cascaded cost function to fuse multiple sensor states and a stable system with loop detection and pose-graph optimization. The experimental results conducted on our data set indicated that the proposed VID-SLAM significantly outperforms the other methods, including VINS-Mono, ElasticFusion, and ORB-SLAM2.
Notably, while our approach presented improved accuracy and robustness in challenging environments, it still has some limitations. For example, the complexity of the cascaded cost function and the need for multiple sensors may increase the associated computational requirements, which may affect the efficiency of real-time applications. In addition, our current system is optimized for environments where reliable RGB-D and IMU data are available, and it may be limited in application scenarios with poor sensor accuracy.

4.2. Future Work

The localization performance of our system is robust and accurate, but there is still room to improve it, provided that more information about the environment can be perceived. Our sensor fusion method is generic, and the proposed multi-sensor formulation is a trade-off between accuracy and efficiency for our hardware settings. Therefore, we can upgrade the combination of sensors for more accurate localization. The robustness of our system could also be improved. Although our work mainly focuses on the accuracy of localization, a more advanced re-localization module may improve not only the robustness of the system but also the accuracy of localization. A further potential improvement is the integration of dense mapping with our system; that is, we can improve the map representation by exploiting the ability to construct detailed and dynamically updated 3D maps from RGB-D data. This process involves synchronising depth data from RGB-D sensors with attitude estimates from SLAM systems. By doing so, we can generate dense, textured 3D maps, enabling further applications.

Author Contributions

Data curation, J.S.; methodology, D.S. and X.W.; writing—original draft preparation, Y.L.; writing—review and editing, T.Z. and Z.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China under grants (Grant No. 62003225 and No. 62073039), the Shenyang Science and Technology Project: 23-407-3-05, and the Educational Department of Liaoning Provincial Basic Research Project: JYTMS20231572.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

References

  1. Sun, R.; Yang, Y.; Chiang, K.W.; Duong, T.T.; Lin, K.Y.; Tsai, G.J. Robust IMU/GPS/VO integration for vehicle navigation in GNSS degraded urban areas. IEEE Sens. J. 2020, 20, 10110–10122. [Google Scholar] [CrossRef] [Scilit]
  2. Xin, H.; Ye, Y.; Na, X.; Hu, H.; Wang, G.; Wu, C.; Hu, S. Sustainable Road Pothole Detection: A Crowdsourcing Based Multi-Sensors Fusion Approach. Sustainability 2023, 15, 6610. [Google Scholar] [CrossRef] [Scilit]
  3. Yu, Y. Autonomous Localization by Integrating Wi-Fi and MEMS Sensors in Large-Scale Indoor Spaces. Ph.D. Thesis, Hong Kong Polytechnic University, Hong Kong, China, 2023. [Google Scholar]
  4. Tong, P.; Yang, X.; Yang, Y.; Liu, W.; Wu, P. Multi-UAV Collaborative Absolute Vision Positioning and Navigation: A Survey and Discussion. Drones 2023, 7, 261. [Google Scholar] [CrossRef] [Scilit]
  5. Liu, L.; Aitken, J.M. HFNet-SLAM: An Accurate and Real-Time Monocular SLAM System with Deep Features. Sensors 2023, 23, 2113. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Kaczmarek, A.; Rohm, W.; Klingbeil, L.; Tchorzewski, J. Experimental 2D extended Kalman filter sensor fusion for low-cost GNSS/IMU/Odometers precise positioning system. Measurement 2022, 193, 110963. [Google Scholar] [CrossRef] [Scilit]
  7. Mourikis, A.I.; Roumeliotis, S.I. A multi-state constraint Kalman filter for vision-aided inertial navigation. In Proceedings of the 2007 IEEE International Conference on Robotics and Automation, Rome, Italy, 10–14 April 2007; pp. 3565–3572. [Google Scholar]
  8. Qin, T.; Li, P.; Shen, S. Vins-mono: A robust and versatile monocular visual-inertial state estimator. IEEE Trans. Robot. 2018, 34, 1004–1020. [Google Scholar] [CrossRef] [Scilit]
  9. Leutenegger, S.; Lynen, S.; Bosse, M.; Siegwart, R.; Furgale, P. Keyframe-based visual–inertial odometry using nonlinear optimization. Int. J. Robot. Res. 2015, 34, 314–334. [Google Scholar] [CrossRef] [Scilit]
  10. Newcombe, R.A.; Izadi, S.; Hilliges, O.; Molyneaux, D.; Kim, D.; Davison, A.J.; Kohi, P.; Shotton, J.; Hodges, S.; Fitzgibbon, A. Kinectfusion: Real-time dense surface mapping and tracking. In Proceedings of the 2011 10th IEEE International Symposium on Mixed and Augmented Reality, Basel, Switzerland, 26–29 October 2011; pp. 127–136. [Google Scholar]
  11. Zhang, Z. Iterative point matching for registration of free-form curves and surfaces. Int. J. Comput. Vis. 1994, 13, 119–152. [Google Scholar] [CrossRef] [Scilit]
  12. Whelan, T.; Kaess, M.; Fallon, M.; Johannsson, H.; Leonard, J.; McDonald, J. Kintinuous: Spatially Extended Kinectfusion; Massachusetts Institute of Technology (MIT): Cambridge, MA, USA, 2012. [Google Scholar]
  13. Galvez-Lopez, D.; Tardos, J.D. Real-time loop detection with bags of binary words. In Proceedings of the 2011 IEEE/RSJ International Conference on Intelligent Robots and Systems, San Francisco, CA, USA, 25–30 September 2011; pp. 51–58. [Google Scholar]
  14. Whelan, T.; Salas-Moreno, R.F.; Glocker, B.; Davison, A.J.; Leutenegger, S. ElasticFusion: Real-time dense SLAM and light source estimation. Int. J. Robot. Res. 2016, 35, 1697–1716. [Google Scholar] [CrossRef] [Scilit]
  15. Mur-Artal, R.; Montiel, J.M.M.; Tardos, J.D. ORB-SLAM: A versatile and accurate monocular SLAM system. IEEE Trans. Robot. 2015, 31, 1147–1163. [Google Scholar] [CrossRef] [Scilit]
  16. Mur-Artal, R.; Tardós, J.D. Orb-slam2: An open-source slam system for monocular, stereo, and rgb-d cameras. IEEE Trans. Robot. 2017, 33, 1255–1262. [Google Scholar] [CrossRef] [Scilit]
  17. Strasdat, H.; Davison, A.J.; Montiel, J.M.; Konolige, K. Double window optimisation for constant time visual SLAM. In Proceedings of the 2011 International Conference on Computer Vision, Barcelona, Spain, 6–13 November 2011; pp. 2352–2359. [Google Scholar]
  18. Lucas, B.D.; Kanade, T. An iterative image registration technique with an application to stereo vision. In Proceedings of the IJCAI’81: 7th International Joint Conference on Artificial Intelligence, Vancouver, BC, Canada, 24–28 August 1981; Volume 2, pp. 674–679. [Google Scholar]
  19. Forster, C.; Carlone, L.; Dellaert, F.; Scaramuzza, D. IMU Preintegration on Manifold for Efficient Visual-Inertial Maximum-a-Posteriori Estimation; Technical Report; Infoscience: Switzerland, 2015. [Google Scholar]
  20. Shi, J.; Tomasi. Good features to track. In Proceedings of the 1994 Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 21–23 June 1994; pp. 593–600. [Google Scholar]
  21. Hartley, R.; Zisserman, A. Multiple View Geometry in Computer Vision; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
  22. Agarwal, S.; Mierle, K. Ceres Solver: Tutorial & Reference; Google Inc.: Menlo Park, CA, USA, 2012; Volume 2, p. 8. [Google Scholar]
  23. Low, K.L. Linear Least-Squares Optimization for Point-to-Plane ICP Surface Registration; University of North Carolina at Chapel Hill: Chapel Hill, NC, USA, 2004; Volume 4, pp. 1–3. [Google Scholar]
  24. Triggs, B.; McLauchlan, P.F.; Hartley, R.I.; Fitzgibbon, A.W. Bundle adjustment—A modern synthesis. In Proceedings of the Vision Algorithms: Theory and Practice: International Workshop on Vision Algorithms Corfu, Greece, September 21–22, 1999 Proceedings; Springer: Berlin/Heidelberg, Germany, 2000; pp. 298–372. [Google Scholar]
  25. Sturm, P. Pinhole camera model. In Computer Vision: A Reference Guide; Springer: Cham, Switzerland, 2014; pp. 610–613. [Google Scholar]
  26. Gálvez-López, D.; Tardos, J.D. Bags of binary words for fast place recognition in image sequences. IEEE Trans. Robot. 2012, 28, 1188–1197. [Google Scholar] [CrossRef] [Scilit]
  27. Calonder, M.; Lepetit, V.; Strecha, C.; Fua, P. Brief: Binary robust independent elementary features. In Proceedings of the Computer Vision–ECCV 2010: 11th European Conference on Computer Vision, Heraklion, Crete, Greece, September 5–11, 2010, Proceedings, Part IV 11; Springer: Berlin/Heidelberg, Germany, 2010; pp. 778–792. [Google Scholar]
  28. Burri, M.; Nikolic, J.; Gohl, P.; Schneider, T.; Rehder, J.; Omari, S.; Achtelik, M.W.; Siegwart, R. The EuRoC micro aerial vehicle datasets. Int. J. Robot. Res. 2016, 35, 1157–1163. [Google Scholar] [CrossRef] [Scilit]
  29. Sturm, J.; Engelhard, N.; Endres, F.; Burgard, W.; Cremers, D. A benchmark for the evaluation of RGB-D SLAM systems. In Proceedings of the 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, Vilamoura-Algarve, Portugal, 7–12 October 2012; pp. 573–580. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.