# misety/gps-slam architecture

> Architecture diagram of the GitHub repository misety/gps-slam, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/misety/gps-slam
- Repository: https://github.com/misety/gps-slam

## Overview

GPS-SLAM combines RGB-D SLAM with a fused SDF scene and an optimized Gaussian representation. The documented workflow loads a configured dataset, processes frames through SDF fusion and Gaussian refinement, then saves models and supports evaluation or remote viewing. The excerpts show the SLAM pipeline’s periodic raycasting and Gaussian insertion, but do not expose its complete frame orchestration; several subsystem connections below therefore rely on README statements or are marked unverified.

Main entry points: [`slam/slam_pipeline.cpp`](https://github.com/misety/gps-slam/blob/release/slam/slam_pipeline.cpp) (SLAM pipeline), [`InfiniTAM/ITMLib/Core/ITMBasicEngine.h`](https://github.com/misety/gps-slam/blob/release/InfiniTAM/ITMLib/Core/ITMBasicEngine.h) (InfiniTAM engine), [`src/dataset_reader.cpp`](https://github.com/misety/gps-slam/blob/release/src/dataset_reader.cpp) (Dataset reader), [`slam_trainer.cpp`](https://github.com/misety/gps-slam/blob/release/slam_trainer.cpp) (Training entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input["Input and control"]
  node_dataset["RGB-D dataset"]
  node_reader["Dataset reader<br/>[dataset_reader.cpp]"]
  node_trainer["Training entry<br/>[slam_trainer.cpp]"]
end

subgraph group_slam["SLAM and mapping"]
  node_slam_pipeline["SLAM pipeline<br/>[slam_pipeline.cpp]"]
  node_tsdf_fusion["TSDF fusion<br/>[CLIEngine.cpp]"]
  node_infinitam["InfiniTAM engine<br/>[ITMBasicEngine.h]"]
  node_tracking["Frame tracking"]
  node_sdf_scene[("SDF scene<br/>[ITMScene.h]")]
end

subgraph group_gaussian["Gaussian reconstruction"]
  node_gaussian_model["Gaussian model<br/>[slam_gs_model.cpp]"]
  node_gaussian_pipeline["Gaussian optimization<br/>[slam_pipeline.cpp]"]
  node_gsplat["Gaussian rasterizer<br/>[gsplat_wapper.cpp]"]
end

subgraph group_outputs["Results and viewing"]
  node_saved_results["Saved models and mesh"]
  node_evaluation["Reconstruction evaluation<br/>[metric_general.py]"]
  node_viewer_server["Remote viewer server<br/>[remote_viewer.cpp]"]
  node_viewer_client["Remote viewer client"]
end

node_operator(("Dataset operator"))

node_operator -->|"selects"| node_dataset
node_dataset -->|"provides frames"| node_reader
node_reader -.->|"loads input"| node_trainer
node_trainer -.->|"starts SLAM"| node_slam_pipeline
node_slam_pipeline -->|"fuses frames"| node_tsdf_fusion
node_tsdf_fusion -.->|"processes frames"| node_infinitam
node_infinitam -->|"tracks pose"| node_tracking
node_infinitam -.->|"updates scene"| node_sdf_scene
node_slam_pipeline -->|"refines appearance"| node_gaussian_pipeline
node_gaussian_pipeline -->|"adds Gaussians"| node_gaussian_model
node_gaussian_model -.->|"renders Gaussians"| node_gsplat
node_slam_pipeline -->|"saves mesh and engine"| node_saved_results
node_gaussian_pipeline -->|"saves model"| node_saved_results
node_saved_results -->|"evaluates reconstruction"| node_evaluation
node_saved_results -->|"loads model"| node_viewer_server
node_viewer_server -->|"streams visualization"| node_viewer_client

click node_reader "https://github.com/misety/gps-slam/blob/release/src/dataset_reader.cpp"
click node_trainer "https://github.com/misety/gps-slam/blob/release/slam_trainer.cpp"
click node_slam_pipeline "https://github.com/misety/gps-slam/blob/release/slam/slam_pipeline.cpp"
click node_tsdf_fusion "https://github.com/misety/gps-slam/blob/release/slam/TsdfFusion/CLIEngine.cpp"
click node_infinitam "https://github.com/misety/gps-slam/blob/release/InfiniTAM/ITMLib/Core/ITMBasicEngine.h"
click node_tracking "https://github.com/misety/gps-slam/blob/release/InfiniTAM/ITMLib/Core/ITMTrackingController.h"
click node_sdf_scene "https://github.com/misety/gps-slam/blob/release/InfiniTAM/ITMLib/Objects/Scene/ITMScene.h"
click node_gaussian_model "https://github.com/misety/gps-slam/blob/release/slam/slam_gs_model.cpp"
click node_gaussian_pipeline "https://github.com/misety/gps-slam/blob/release/slam/slam_pipeline.cpp"
click node_gsplat "https://github.com/misety/gps-slam/blob/release/gsplat/gsplat_wapper.cpp"
click node_evaluation "https://github.com/misety/gps-slam/blob/release/scripts/metric_general.py"
click node_viewer_server "https://github.com/misety/gps-slam/blob/release/remote_viewer.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dataset,node_reader,node_trainer toneBlue
class node_slam_pipeline,node_tsdf_fusion,node_infinitam,node_tracking,node_sdf_scene toneAmber
class node_gaussian_model,node_gaussian_pipeline,node_gsplat toneMint
class node_saved_results,node_evaluation,node_viewer_server,node_viewer_client toneRose
class node_operator toneIndigo
```

## Components

### Input and control

- **RGB-D dataset**
- [Dataset reader](https://github.com/misety/gps-slam/blob/release/src/dataset_reader.cpp): `src/dataset_reader.cpp`
- [Training entry](https://github.com/misety/gps-slam/blob/release/slam_trainer.cpp): `slam_trainer.cpp`

### SLAM and mapping

- [SLAM pipeline](https://github.com/misety/gps-slam/blob/release/slam/slam_pipeline.cpp): `slam/slam_pipeline.cpp`
- [TSDF fusion](https://github.com/misety/gps-slam/blob/release/slam/TsdfFusion/CLIEngine.cpp): `slam/TsdfFusion/CLIEngine.cpp`
- [InfiniTAM engine](https://github.com/misety/gps-slam/blob/release/InfiniTAM/ITMLib/Core/ITMBasicEngine.h): `InfiniTAM/ITMLib/Core/ITMBasicEngine.h`
- [Frame tracking](https://github.com/misety/gps-slam/blob/release/InfiniTAM/ITMLib/Core/ITMTrackingController.h): `InfiniTAM/ITMLib/Core/ITMTrackingController.h`
- [SDF scene](https://github.com/misety/gps-slam/blob/release/InfiniTAM/ITMLib/Objects/Scene/ITMScene.h): `InfiniTAM/ITMLib/Objects/Scene/ITMScene.h`

### Gaussian reconstruction

- [Gaussian model](https://github.com/misety/gps-slam/blob/release/slam/slam_gs_model.cpp): `slam/slam_gs_model.cpp`
- [Gaussian optimization](https://github.com/misety/gps-slam/blob/release/slam/slam_pipeline.cpp): `slam/slam_pipeline.cpp`
- [Gaussian rasterizer](https://github.com/misety/gps-slam/blob/release/gsplat/gsplat_wapper.cpp): `gsplat/gsplat_wapper.cpp`

### Results and viewing

- **Saved models and mesh**
- [Reconstruction evaluation](https://github.com/misety/gps-slam/blob/release/scripts/metric_general.py): `scripts/metric_general.py`
- [Remote viewer server](https://github.com/misety/gps-slam/blob/release/remote_viewer.cpp): `remote_viewer.cpp`
- **Remote viewer client**

### Other components

- **Dataset operator**

## Connections

- Dataset operator → RGB-D dataset: selects
- RGB-D dataset → Dataset reader: provides frames
- Dataset reader → Training entry: loads input
- Training entry → SLAM pipeline: starts SLAM
- SLAM pipeline → TSDF fusion: fuses frames
- TSDF fusion → InfiniTAM engine: processes frames
- InfiniTAM engine → Frame tracking: tracks pose (evidence: `InfiniTAM/ITMLib/Core/ITMBasicEngine.h`)
- InfiniTAM engine → SDF scene: updates scene
- SLAM pipeline → Gaussian optimization: refines appearance (evidence: `slam/slam_pipeline.cpp`)
- Gaussian optimization → Gaussian model: adds Gaussians (evidence: `slam/slam_pipeline.cpp`)
- Gaussian model → Gaussian rasterizer: renders Gaussians
- SLAM pipeline → Saved models and mesh: saves mesh and engine
- Gaussian optimization → Saved models and mesh: saves model
- Saved models and mesh → Reconstruction evaluation: evaluates reconstruction
- Saved models and mesh → Remote viewer server: loads model
- Remote viewer server → Remote viewer client: streams visualization
