# openslam-org/openslam_bailey-slam architecture

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

- Interactive diagram: https://gitdiagram.com/openslam-org/openslam_bailey-slam
- Repository: https://github.com/openslam-org/openslam_bailey-slam

## Overview

This repository is a collection of MATLAB SLAM simulators intended to compare EKF-SLAM, FastSLAM, and UKF-SLAM map-building algorithms. Its major product branches are the two EKF-SLAM versions, FastSLAM variants, and UKF-SLAM; the tree identifies their simulator entry files and algorithm directories. No source excerpts were provided, so internal call flows are omitted. Relationships shown below are limited to adaptations and alternative models explicitly described in the README.

Main entry points: [`ekfslam_v1/ekfslam_sim.m`](https://github.com/openslam-org/openslam_bailey-slam/blob/master/ekfslam_v1/ekfslam_sim.m) (EKF version 1), [`ekfslam_v2/ekfslam_sim.m`](https://github.com/openslam-org/openslam_bailey-slam/blob/master/ekfslam_v2/ekfslam_sim.m) (EKF version 2), [`ukfslam/ukfslam_sim.m`](https://github.com/openslam-org/openslam_bailey-slam/blob/master/ukfslam/ukfslam_sim.m) (UKF-SLAM), [`ekfslam_v2/ekfslam_v2.0-update_global.m`](https://github.com/openslam-org/openslam_bailey-slam/blob/master/ekfslam_v2/ekfslam_v2.0-update_global.m) (Global constraint model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ekf["EKF-SLAM"]
  node_ekf1["EKF version 1<br/>[ekfslam_sim.m]"]
  node_ekf2["EKF version 2<br/>[ekfslam_sim.m]"]
  node_global_model["Global constraint model"]
end

subgraph group_fast["FastSLAM"]
  node_fast1["FastSLAM 1.0<br/>[fastslam1_sim.m]"]
  node_fast2["FastSLAM 2.0<br/>[fastslam2_sim.m]"]
  node_fast2r["FastSLAM 2.0R<br/>[fastslam2r_sim.m]"]
end

subgraph group_ukf["UKF-SLAM"]
  node_ukf["UKF-SLAM<br/>[ukfslam_sim.m]"]
end

node_comparison["Algorithm comparison"]

node_comparison -->|"compares"| node_ekf1
node_comparison -->|"compares"| node_ekf2
node_comparison -->|"compares"| node_fast1
node_comparison -->|"compares"| node_fast2
node_comparison -->|"compares"| node_ukf
node_ekf1 -->|"has newer version"| node_ekf2
node_ekf2 -->|"alternative observation"| node_global_model
node_ekf1 -->|"adapted into"| node_ukf

click node_ekf1 "https://github.com/openslam-org/openslam_bailey-slam/blob/master/ekfslam_v1/ekfslam_sim.m"
click node_ekf2 "https://github.com/openslam-org/openslam_bailey-slam/blob/master/ekfslam_v2/ekfslam_sim.m"
click node_global_model "https://github.com/openslam-org/openslam_bailey-slam/blob/master/ekfslam_v2/ekfslam_v2.0-update_global.m"
click node_fast1 "https://github.com/openslam-org/openslam_bailey-slam/blob/master/fastslam/fastslam1/fastslam1_sim.m"
click node_fast2 "https://github.com/openslam-org/openslam_bailey-slam/blob/master/fastslam/fastslam2/fastslam2_sim.m"
click node_fast2r "https://github.com/openslam-org/openslam_bailey-slam/blob/master/fastslam/fastslam2r/fastslam2r_sim.m"
click node_ukf "https://github.com/openslam-org/openslam_bailey-slam/blob/master/ukfslam/ukfslam_sim.m"

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_ekf1,node_ekf2,node_global_model toneBlue
class node_fast1,node_fast2,node_fast2r toneAmber
class node_ukf toneMint
class node_comparison toneIndigo
```

## Components

### EKF-SLAM

- [EKF version 1](https://github.com/openslam-org/openslam_bailey-slam/blob/master/ekfslam_v1/ekfslam_sim.m): `ekfslam_v1/ekfslam_sim.m`
- [EKF version 2](https://github.com/openslam-org/openslam_bailey-slam/blob/master/ekfslam_v2/ekfslam_sim.m): `ekfslam_v2/ekfslam_sim.m`
- [Global constraint model](https://github.com/openslam-org/openslam_bailey-slam/blob/master/ekfslam_v2/ekfslam_v2.0-update_global.m): `ekfslam_v2/ekfslam_v2.0-update_global.m`

### FastSLAM

- [FastSLAM 1.0](https://github.com/openslam-org/openslam_bailey-slam/blob/master/fastslam/fastslam1/fastslam1_sim.m): `fastslam/fastslam1/fastslam1_sim.m`
- [FastSLAM 2.0](https://github.com/openslam-org/openslam_bailey-slam/blob/master/fastslam/fastslam2/fastslam2_sim.m): `fastslam/fastslam2/fastslam2_sim.m`
- [FastSLAM 2.0R](https://github.com/openslam-org/openslam_bailey-slam/blob/master/fastslam/fastslam2r/fastslam2r_sim.m): `fastslam/fastslam2r/fastslam2r_sim.m`

### UKF-SLAM

- [UKF-SLAM](https://github.com/openslam-org/openslam_bailey-slam/blob/master/ukfslam/ukfslam_sim.m): `ukfslam/ukfslam_sim.m`

### Other components

- **Algorithm comparison**

## Connections

- Algorithm comparison → EKF version 1: compares (evidence: `readme.txt`)
- Algorithm comparison → EKF version 2: compares (evidence: `readme.txt`)
- Algorithm comparison → FastSLAM 1.0: compares (evidence: `readme.txt`)
- Algorithm comparison → FastSLAM 2.0: compares (evidence: `readme.txt`)
- Algorithm comparison → UKF-SLAM: compares (evidence: `readme.txt`)
- EKF version 1 → EKF version 2: has newer version (evidence: `readme.txt`)
- EKF version 2 → Global constraint model: alternative observation (evidence: `readme.txt`)
- EKF version 1 → UKF-SLAM: adapted into (evidence: `readme.txt`)
