# mzahana/roboeye architecture

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

- Interactive diagram: https://gitdiagram.com/mzahana/roboeye
- Repository: https://github.com/mzahana/roboeye

## Overview

roboeye is a Raspberry Pi–oriented visual-inertial odometry system assembled from ROS sensor drivers and external VIO estimators. The primary workflow is camera/IMU capture, calibration and estimator configuration, then pose estimation and visualization. The repository supplies launch configurations, calibration converters, operational services, a watchdog, and a web interface; the estimator implementations themselves are external dependencies. Relationships for the documented Noetic workflow come from the README; runtime details for the web app, watchdog, and ROS 2 launch come from their excerpts.

Main entry points: [`launch/arducam_mpu_openvins.launch.py`](https://github.com/mzahana/roboeye/blob/main/launch/arducam_mpu_openvins.launch.py) (System launch), [`vio_web_app/app.py`](https://github.com/mzahana/roboeye/blob/main/vio_web_app/app.py) (Web dashboard and API), [`scripts/vio_watchdog.py`](https://github.com/mzahana/roboeye/blob/main/scripts/vio_watchdog.py) (Shock watchdog), [`config/openvins`](https://github.com/mzahana/roboeye/tree/main/config/openvins) (Estimator configs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Sensors and launch"]
  node_camera["Camera driver"]
  node_imu["IMU driver"]
  node_launch["System launch"]
end

subgraph group_calibration["Calibration and config"]
  node_kalibr["Kalibr"]
  node_calibration_files["Calibration examples"]
  node_config["Estimator configs"]
  node_mono_converter["VINS-Mono converter"]
  node_fusion_converter["VINS-Fusion converter"]
end

subgraph group_estimation["VIO runtime"]
  node_openvins["OpenVINS estimator"]
  node_other_estimators["Other VIO estimators"]
  node_ros_topics["ROS topics"]
end

subgraph group_operations["Monitoring and controls"]
  node_web_app["Web dashboard and API<br/>[app.py]"]
  node_dashboard["Dashboard page<br/>[index.html]"]
  node_watchdog["Shock watchdog<br/>[vio_watchdog.py]"]
  node_vio_service["VIO system service"]
end

node_operator(("Operator"))
node_system["Host system controls"]

node_operator -->|"starts system"| node_launch
node_launch -->|"launches camera"| node_camera
node_launch -->|"launches driver"| node_imu
node_launch -->|"launches estimator"| node_openvins
node_operator -->|"calibrates sensors"| node_kalibr
node_kalibr -->|"produces calibration"| node_calibration_files
node_operator -->|"converts calibration"| node_mono_converter
node_operator -->|"converts calibration"| node_fusion_converter
node_mono_converter -->|"writes configuration"| node_config
node_fusion_converter -->|"writes configuration"| node_config
node_config -->|"configures estimator"| node_openvins
node_camera -.->|"supplies images"| node_openvins
node_imu -.->|"supplies measurements"| node_openvins
node_openvins -.->|"publishes estimates"| node_ros_topics
node_other_estimators -.->|"publishes estimates"| node_ros_topics
node_ros_topics -->|"feeds telemetry"| node_web_app
node_web_app -->|"renders page"| node_dashboard
node_web_app -->|"restarts service"| node_vio_service
node_web_app -->|"controls host"| node_system
node_watchdog -->|"reads odometry"| node_ros_topics
node_watchdog -->|"publishes recovery"| node_ros_topics
node_watchdog -->|"requests reset"| node_other_estimators
node_vio_service -.->|"starts system"| node_launch

click node_launch "https://github.com/mzahana/roboeye/blob/main/launch/arducam_mpu_openvins.launch.py"
click node_calibration_files "https://github.com/mzahana/roboeye/tree/main/calibration_files"
click node_config "https://github.com/mzahana/roboeye/tree/main/config/openvins"
click node_mono_converter "https://github.com/mzahana/roboeye/blob/main/scripts/kalibr_to_vins_mono.py"
click node_fusion_converter "https://github.com/mzahana/roboeye/blob/main/scripts/kalibr_to_vins_fusion.py"
click node_other_estimators "https://github.com/mzahana/roboeye/tree/main/launch"
click node_web_app "https://github.com/mzahana/roboeye/blob/main/vio_web_app/app.py"
click node_dashboard "https://github.com/mzahana/roboeye/blob/main/vio_web_app/templates/index.html"
click node_watchdog "https://github.com/mzahana/roboeye/blob/main/scripts/vio_watchdog.py"
click node_vio_service "https://github.com/mzahana/roboeye/blob/main/services/openvins_ov9281_mpu_system.sh"

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_camera,node_imu,node_launch toneBlue
class node_kalibr,node_calibration_files,node_config,node_mono_converter,node_fusion_converter toneAmber
class node_openvins,node_other_estimators,node_ros_topics toneMint
class node_web_app,node_dashboard,node_watchdog,node_vio_service toneRose
class node_operator,node_system toneIndigo
```

## Components

### Sensors and launch

- **Camera driver**
- **IMU driver**
- [System launch](https://github.com/mzahana/roboeye/blob/main/launch/arducam_mpu_openvins.launch.py): `launch/arducam_mpu_openvins.launch.py`

### Calibration and config

- **Kalibr**
- [Calibration examples](https://github.com/mzahana/roboeye/tree/main/calibration_files): `calibration_files`
- [Estimator configs](https://github.com/mzahana/roboeye/tree/main/config/openvins): `config/openvins`
- [VINS-Mono converter](https://github.com/mzahana/roboeye/blob/main/scripts/kalibr_to_vins_mono.py): `scripts/kalibr_to_vins_mono.py`
- [VINS-Fusion converter](https://github.com/mzahana/roboeye/blob/main/scripts/kalibr_to_vins_fusion.py): `scripts/kalibr_to_vins_fusion.py`

### VIO runtime

- **OpenVINS estimator**
- [Other VIO estimators](https://github.com/mzahana/roboeye/tree/main/launch): `launch`
- **ROS topics**

### Monitoring and controls

- [Web dashboard and API](https://github.com/mzahana/roboeye/blob/main/vio_web_app/app.py): `vio_web_app/app.py`
- [Dashboard page](https://github.com/mzahana/roboeye/blob/main/vio_web_app/templates/index.html): `vio_web_app/templates/index.html`
- [Shock watchdog](https://github.com/mzahana/roboeye/blob/main/scripts/vio_watchdog.py): `scripts/vio_watchdog.py`
- [VIO system service](https://github.com/mzahana/roboeye/blob/main/services/openvins_ov9281_mpu_system.sh): `services/openvins_ov9281_mpu_system.sh`

### Other components

- **Operator**
- **Host system controls**

## Connections

- Operator → System launch: starts system (evidence: `README.md`)
- System launch → Camera driver: launches camera (evidence: `launch/arducam_mpu_openvins.launch.py`)
- System launch → IMU driver: launches driver (evidence: `launch/arducam_mpu_openvins.launch.py`)
- System launch → OpenVINS estimator: launches estimator (evidence: `launch/arducam_mpu_openvins.launch.py`)
- Operator → Kalibr: calibrates sensors (evidence: `README.md`)
- Kalibr → Calibration examples: produces calibration (evidence: `README.md`)
- Operator → VINS-Mono converter: converts calibration (evidence: `scripts/kalibr_to_vins_mono.py`)
- Operator → VINS-Fusion converter: converts calibration (evidence: `scripts/kalibr_to_vins_fusion.py`)
- VINS-Mono converter → Estimator configs: writes configuration (evidence: `scripts/kalibr_to_vins_mono.py`)
- VINS-Fusion converter → Estimator configs: writes configuration (evidence: `scripts/kalibr_to_vins_fusion.py`)
- Estimator configs → OpenVINS estimator: configures estimator (evidence: `README.md`)
- Camera driver → OpenVINS estimator: supplies images (evidence: `README.md`)
- IMU driver → OpenVINS estimator: supplies measurements (evidence: `README.md`)
- OpenVINS estimator → ROS topics: publishes estimates (evidence: `README.md`)
- Other VIO estimators → ROS topics: publishes estimates
- ROS topics → Web dashboard and API: feeds telemetry (evidence: `vio_web_app/app.py`)
- Web dashboard and API → Dashboard page: renders page (evidence: `vio_web_app/app.py`)
- Web dashboard and API → VIO system service: restarts service (evidence: `vio_web_app/app.py`)
- Web dashboard and API → Host system controls: controls host (evidence: `vio_web_app/app.py`)
- Shock watchdog → ROS topics: reads odometry (evidence: `scripts/vio_watchdog.py`)
- Shock watchdog → ROS topics: publishes recovery (evidence: `scripts/vio_watchdog.py`)
- Shock watchdog → Other VIO estimators: requests reset (evidence: `scripts/vio_watchdog.py`)
- VIO system service → System launch: starts system (evidence: `README.md`)
