How hkust-aerial-robotics/vins-mobile works
VINS-Mobile is an iOS monocular visual-inertial estimator for AR localization. Its documented workflow combines camera and IMU observations, tracks features, estimates motion with sliding-window optimization, and produces poses for AR; global pose-graph SLAM corrects accumulated drift. The tree supports the feature manager and loop database, while several documented stages are not individually represented by sampled implementation files, so their paths use the enclosing source directory. Edges reflect README statements or visible source references; unsampled details are not inferred.
Main entry points: VINS.cpp Sliding-Window Estimator · keyfame_database.cpp Keyframe Database · VINS_ios iOS Application · feature_manager.cpp Feature Management
Components 16
Mobile Front End
- iOS Application
VINS_ios - Feature Tracking
VINS_ios - Feature Management
VINS_ios/feature_manager.cpp
State Estimation
- Initialization
VINS_ios - Sliding-Window Estimator
VINS_ios/VINS.cpp - Nonlinear Optimization
VINS_ThirdPartyLib/ceres-solver/include/ceres/problem.h - Failure Recovery
VINS_ios - Pose Output
VINS_ios/VINS.cpp
Loop Closure
- Keyframe Management
VINS_ios/loop/keyframe.cpp - Keyframe Database
VINS_ios/loop/keyfame_database.cpp - Visual Vocabulary
ThirdParty/DBoW/TemplatedVocabulary.h - Loop Detection
VINS_ios/loop - Global Pose Graph
VINS_ios/loop
AR Output
- AR Application
VINS_ios/ViewController.h - AR Rendering
VINS_ios/draw_result.cpp
Other components
- Camera and IMU
Connections 16
- Camera and IMU → iOS Application: provides measurements
- iOS Application → Feature Tracking: runs tracking
- Feature Tracking → Feature Management: adds observations
VINS_ios/feature_manager.hpp - Feature Management → Sliding-Window Estimator: supplies feature state
- Sliding-Window Estimator → Initialization: initializes automatically
- Sliding-Window Estimator → Nonlinear Optimization: optimizes states
- Sliding-Window Estimator → Failure Recovery: recovers failures
- Sliding-Window Estimator → Pose Output: produces poses
- Pose Output → AR Application: provides localization
- AR Application → AR Rendering: renders results
- Sliding-Window Estimator → Keyframe Management: supports loop closure
- Keyframe Management → Keyframe Database: stores keyframes
- Keyframe Database → Visual Vocabulary: uses vocabulary
- Keyframe Database → Loop Detection: queries matches
VINS_ios/loop/keyfame_database.cpp - Loop Detection → Global Pose Graph: corrects drift
- Global Pose Graph → Pose Output: corrects poses