# integralrobotics/fast-livo2 architecture

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

- Interactive diagram: https://gitdiagram.com/integralrobotics/fast-livo2
- Repository: https://github.com/integralrobotics/fast-livo2

## Overview

FAST-LIVO2 is a ROS 2 LiDAR–inertial–visual odometry and mapping system. Sensor streams enter the ROS mapper, which coordinates preprocessing, IMU state propagation, LiDAR mapping and visual odometry; the estimated state supports localization and 3D reconstruction outputs. The graph preserves the principal estimation stages and visual-map internals. Relationships are limited to calls and module references visible in excerpts or the source index; unsampled launch and configuration wiring is not asserted.

Main entry points: [`src/LIVMapper.cpp`](https://github.com/integralrobotics/fast-livo2/blob/ros2/src/LIVMapper.cpp) (Mapper Orchestrator), [`src/vio.cpp`](https://github.com/integralrobotics/fast-livo2/blob/ros2/src/vio.cpp) (Visual Odometry), [`src/main.cpp`](https://github.com/integralrobotics/fast-livo2/blob/ros2/src/main.cpp) (Mapping Entry), [`include/feature.h`](https://github.com/integralrobotics/fast-livo2/blob/ros2/include/feature.h) (Image Features)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["ROS Runtime"]
  node_entry["Mapping Entry<br/>[main.cpp]"]
  node_mapper["Mapper Orchestrator<br/>[LIVMapper.cpp]"]
  node_rosoutputs["Odometry and Map Outputs<br/>[LIVMapper.h]"]
  node_launches["ROS Launch Configurations"]
  node_parameters["Sensor Parameters"]
end

subgraph group_sensing["Sensor Processing"]
  node_preprocess["LiDAR Preprocessing<br/>[preprocess.cpp]"]
  node_imu["IMU Processing<br/>[IMU_Processing.cpp]"]
end

subgraph group_estimation["State Estimation"]
  node_lio["LiDAR Mapping<br/>[voxel_map.cpp]"]
  node_vio["Visual Odometry<br/>[vio.cpp]"]
end

subgraph group_maps["Mapping"]
  node_frames["Image Frames<br/>[frame.cpp]"]
  node_features["Image Features<br/>[feature.h]"]
  node_visualpoints["Visual Map Points<br/>[visual_point.cpp]"]
  node_voxelmap["Voxel Map Structures<br/>[voxel_map.h]"]
end

node_sensors(("Sensor Streams"))

node_sensors -.->|"supply streams"| node_entry
node_entry -->|"constructs and runs"| node_mapper
node_mapper -->|"coordinates preprocessing"| node_preprocess
node_mapper -->|"coordinates IMU processing"| node_imu
node_mapper -->|"coordinates visual odometry"| node_vio
node_mapper -.->|"runs mapping"| node_lio
node_mapper -->|"publishes results"| node_rosoutputs
node_vio -->|"creates frames"| node_frames
node_vio -->|"tracks features"| node_features
node_vio -->|"uses voxel map types"| node_voxelmap
node_features -->|"references points"| node_visualpoints
node_launches -.->|"starts mapping"| node_entry
node_parameters -.->|"configures runtime"| node_mapper

click node_entry "https://github.com/integralrobotics/fast-livo2/blob/ros2/src/main.cpp"
click node_mapper "https://github.com/integralrobotics/fast-livo2/blob/ros2/src/LIVMapper.cpp"
click node_rosoutputs "https://github.com/integralrobotics/fast-livo2/blob/ros2/include/LIVMapper.h"
click node_preprocess "https://github.com/integralrobotics/fast-livo2/blob/ros2/src/preprocess.cpp"
click node_imu "https://github.com/integralrobotics/fast-livo2/blob/ros2/src/IMU_Processing.cpp"
click node_lio "https://github.com/integralrobotics/fast-livo2/blob/ros2/src/voxel_map.cpp"
click node_vio "https://github.com/integralrobotics/fast-livo2/blob/ros2/src/vio.cpp"
click node_frames "https://github.com/integralrobotics/fast-livo2/blob/ros2/src/frame.cpp"
click node_features "https://github.com/integralrobotics/fast-livo2/blob/ros2/include/feature.h"
click node_visualpoints "https://github.com/integralrobotics/fast-livo2/blob/ros2/src/visual_point.cpp"
click node_voxelmap "https://github.com/integralrobotics/fast-livo2/blob/ros2/include/voxel_map.h"
click node_launches "https://github.com/integralrobotics/fast-livo2/tree/ros2/launch"
click node_parameters "https://github.com/integralrobotics/fast-livo2/tree/ros2/config"

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_entry,node_mapper,node_rosoutputs,node_launches,node_parameters toneBlue
class node_preprocess,node_imu toneAmber
class node_lio,node_vio toneMint
class node_frames,node_features,node_visualpoints,node_voxelmap toneRose
class node_sensors toneIndigo
```

## Components

### ROS Runtime

- [Mapping Entry](https://github.com/integralrobotics/fast-livo2/blob/ros2/src/main.cpp): `src/main.cpp`
- [Mapper Orchestrator](https://github.com/integralrobotics/fast-livo2/blob/ros2/src/LIVMapper.cpp): `src/LIVMapper.cpp`
- [Odometry and Map Outputs](https://github.com/integralrobotics/fast-livo2/blob/ros2/include/LIVMapper.h): `include/LIVMapper.h`
- [ROS Launch Configurations](https://github.com/integralrobotics/fast-livo2/tree/ros2/launch): `launch`
- [Sensor Parameters](https://github.com/integralrobotics/fast-livo2/tree/ros2/config): `config`

### Sensor Processing

- [LiDAR Preprocessing](https://github.com/integralrobotics/fast-livo2/blob/ros2/src/preprocess.cpp): `src/preprocess.cpp`
- [IMU Processing](https://github.com/integralrobotics/fast-livo2/blob/ros2/src/IMU_Processing.cpp): `src/IMU_Processing.cpp`

### State Estimation

- [LiDAR Mapping](https://github.com/integralrobotics/fast-livo2/blob/ros2/src/voxel_map.cpp): `src/voxel_map.cpp`
- [Visual Odometry](https://github.com/integralrobotics/fast-livo2/blob/ros2/src/vio.cpp): `src/vio.cpp`

### Mapping

- [Image Frames](https://github.com/integralrobotics/fast-livo2/blob/ros2/src/frame.cpp): `src/frame.cpp`
- [Image Features](https://github.com/integralrobotics/fast-livo2/blob/ros2/include/feature.h): `include/feature.h`
- [Visual Map Points](https://github.com/integralrobotics/fast-livo2/blob/ros2/src/visual_point.cpp): `src/visual_point.cpp`
- [Voxel Map Structures](https://github.com/integralrobotics/fast-livo2/blob/ros2/include/voxel_map.h): `include/voxel_map.h`

### Other components

- **Sensor Streams**

## Connections

- Sensor Streams → Mapping Entry: supply streams (evidence: `README.md`)
- Mapping Entry → Mapper Orchestrator: constructs and runs (evidence: `src/main.cpp`)
- Mapper Orchestrator → LiDAR Preprocessing: coordinates preprocessing
- Mapper Orchestrator → IMU Processing: coordinates IMU processing
- Mapper Orchestrator → Visual Odometry: coordinates visual odometry
- Mapper Orchestrator → LiDAR Mapping: runs mapping
- Mapper Orchestrator → Odometry and Map Outputs: publishes results (evidence: `include/LIVMapper.h`)
- Visual Odometry → Image Frames: creates frames (evidence: `src/vio.cpp`)
- Visual Odometry → Image Features: tracks features
- Visual Odometry → Voxel Map Structures: uses voxel map types
- Image Features → Visual Map Points: references points (evidence: `include/feature.h`)
- ROS Launch Configurations → Mapping Entry: starts mapping
- Sensor Parameters → Mapper Orchestrator: configures runtime
