Continuous-Time vs. Discrete-Time Vision-based SLAM: A Comparative Study

Giovanni Cioffi, Titus Cieslewski, Davide Scaramuzza

TL;DR

This paper systematically compares continuous-time (CT) and discrete-time (DT) approaches to vision-based SLAM. It finds that CT SLAM significantly outperforms DT SLAM when sensor measurements are not perfectly time-synchronized, particularly in challenging scenarios with fast motion. The authors also release a modular, open-source software architecture for both CT and DT SLAM.

What Problem Does This Paper Address?

Simultaneous Localization and Mapping (SLAM) is crucial for autonomous navigation, enabling robots to build maps of their environment while simultaneously tracking their own position within that map. Vision-based SLAM, using cameras as a primary sensor, is particularly attractive due to the rich information cameras provide at a low cost.

Traditionally, SLAM algorithms have been formulated in a discrete-time manner, where the robot's state (pose, etc.) is estimated at specific, discrete time instances, typically coinciding with camera image captures. While this approach has a well-established theoretical foundation, it struggles when dealing with asynchronous sensor data (e.g., IMUs, GPS) or high-rate sensors. Integrating such data often requires complex, custom algorithms or approximations like interpolation, which can introduce errors.

Continuous-time (CT) SLAM offers a potential solution by representing the robot's trajectory as a continuous function over time. This allows for seamless integration of asynchronous measurements without needing to define new state variables for each measurement. However, CT SLAM has been less explored by practitioners, and its advantages and limitations, especially in comparison to DT SLAM, are not well understood. This paper aims to bridge this gap by providing a comprehensive comparative study.

Methods

The core of the paper lies in comparing two SLAM formulations:

  • Discrete-Time (DT) SLAM: This approach estimates the robot's poses at discrete time steps, typically aligned with camera frames. When fusing with other sensors like IMUs or GPS, specific methods are employed to estimate time offsets between these sensors. The paper uses a method similar to VINS-Mono for camera-IMU time offset estimation and another for GPS-IMU time offset.
  • Continuous-Time (CT) SLAM: This formulation represents the robot's trajectory as a continuous function, specifically using cumulative B-splines. This allows for sampling the trajectory at any arbitrary time, simplifying the fusion of asynchronous sensors and the estimation of time offsets. The paper uses B-splines to represent both position and orientation, and employs a probabilistic framework for optimization.

Both approaches are implemented within a multi-step pipeline involving initialization (fitting an initial trajectory to camera poses) and full-batch optimization. The CT approach uses B-splines, and the paper investigates the impact of B-spline order and control node frequency on performance.

Datasets

The paper evaluates its methods using the following datasets:

  • EuRoC Dataset: This dataset contains sequences from a flying robot equipped with a stereo camera and an IMU, featuring ground truth from motion capture systems. It includes sequences of varying difficulty (easy, medium, hard) and is used to simulate GPS measurements by downsampling and corrupting ground-truth positions.
  • Outdoor Flying Robot Dataset: This dataset consists of flights from a flying robot with a time-synchronized stereo camera, IMU, and GPS receiver, with ground truth from a Leica total station.
  • Outdoor Ground Robot Dataset: This dataset features a ground robot with a time-synchronized monocular camera, IMU, and RTK-GPS system, providing ground truth from an RTK-GPS system.

The paper does not introduce new datasets but uses existing ones to conduct its comparative analysis.

Key Insights and Ideas

  • Time Synchronization is Key: The most significant finding is that when sensors are perfectly time-synchronized, CT and DT SLAM perform comparably. However, CT SLAM demonstrates a clear advantage when even small time offsets exist between sensors.
  • CT SLAM Excels with Asynchronicity: CT SLAM's ability to represent trajectories as continuous functions makes it inherently better at handling and estimating time offsets between sensors, leading to more accurate state estimation even under challenging synchronization conditions.
  • DT SLAM's Limitations with Fast Motion: The DT approach struggles with time offset estimation in fast-moving scenarios. This is attributed to the assumption of constant velocity between frames, which breaks down during agile maneuvers, impacting the accuracy of feature tracking and time offset estimation.
  • B-spline Order Matters for Time Offset: For CT SLAM, an adequate B-spline order (specifically order 6 in this study) is crucial for accurately estimating the camera-IMU time offset.
  • Vision is the Dominant Sensor: Ablation studies consistently show that vision is the most important sensor modality for trajectory estimation, with vision-GPS configurations often yielding the best results. Inertial measurements provide less significant benefits when vision and GPS are available.

Key Results

  • Accuracy under Synchronization: When time-synchronized, both CT and DT SLAM achieve similar accuracy (e.g., ATEp around 0.010-0.014m on EuRoC sequences).
  • Accuracy under Asynchronicity: With a 10-20ms time offset, CT SLAM maintains comparable accuracy to the synchronized case (e.g., ATEp around 0.010-0.012m), while DT SLAM's accuracy degrades significantly.
  • Time Offset Estimation: CT SLAM accurately estimates time offsets (e.g., within a few milliseconds), whereas DT SLAM struggles, especially in difficult sequences with fast motion.
  • Computational Cost: While not explicitly detailed in terms of absolute numbers, the paper implies that CT SLAM's computational complexity is manageable and does not grow excessively with high-rate sensors due to its formulation.
  • Sensor Modality Contribution: Vision-GPS configurations generally achieve the lowest ATEp across datasets, highlighting the primacy of visual information.

Limitations and Future Work

  • B-spline Modeling: The paper notes that modeling the prior on trajectory smoothness in CT SLAM can be challenging. An insufficient polynomial degree can lead to over-smoothing and loss of detail.
  • Initialization Sensitivity: While not a primary focus, the initialization step for CT SLAM could potentially be sensitive to the quality of initial camera poses.
  • Future Work: The authors suggest that their findings can guide practitioners in choosing the appropriate SLAM formulation. The release of their modular software architecture also facilitates further research and development in both CT and DT SLAM. The paper's findings are validated across aerial and ground robots, suggesting broad applicability.

Summary updated

BibTeX
@article{cioffi2022continuous,
  author = {Giovanni Cioffi and Titus Cieslewski and Davide Scaramuzza},
  title = {{Continuous-Time vs. Discrete-Time Vision-based SLAM: A Comparative Study}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2022},
  doi = {10.1109/lra.2022.3143303},
}
Figure