# ghassen-saidi/robot-serveur architecture

> Architecture diagram of the GitHub repository ghassen-saidi/robot-serveur, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ghassen-saidi/robot-serveur
- Repository: https://github.com/ghassen-saidi/robot-serveur

## Overview

Fabtino is a ROS 2 robot navigation and delivery system with a browser dashboard and Webots simulation. The main workflow runs from an operator goal or delivery request through mission management, route planning, local control and safety arbitration to simulated wheel commands; estimated pose and mapped obstacles feed navigation. Separate capabilities include map import/export, exploration, denied zones, battery-aware return, and localization/mapping. The README documents the cross-system connections; sampled source clarifies selected node behavior, but many runtime nodes and dashboard modules were not inspected.

Main entry points: [`ros_ws/src/fabtino_localization/fabtino_localization/localization_node.py`](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_localization/fabtino_localization/localization_node.py) (Localization node), [`ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py`](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py) (Mission manager), [`ros_ws/src/fabtino_viewer/fabtino_viewer/viewer_gateway.py`](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_viewer/fabtino_viewer/viewer_gateway.py) (Viewer gateway), [`ros_ws/src/fabtino_mapping/fabtino_mapping/mapping_node.py`](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_mapping/fabtino_mapping/mapping_node.py) (Mapping node)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Dashboard and maps"]
  node_dashboard["Map dashboard<br/>[app.js]"]
  node_dashboard_ui["Dashboard controls<br/>[ui-controller.js]"]
  node_map_features["Map and navigation UI"]
  node_map_files["Map files"]
end

subgraph group_mission["Mission and planning"]
  node_mission_manager["Mission manager"]
  node_global_planner["Global planner"]
  node_local_planner["Local goal follower"]
  node_delivery["Delivery transitions<br/>[delivery.py]"]
  node_zones["Zone geometry<br/>[zones.py]"]
  node_planner_core["A-star planner<br/>[planner.py]"]
  node_nav_config[("Navigation configuration")]
end

subgraph group_perception["Localization and mapping"]
  node_localization_node["Localization node"]
  node_ekf["EKF and motion model<br/>[ekf.py]"]
  node_scan_matcher["Scan matcher<br/>[scan_matcher.py]"]
  node_map_localizer["Known-map localizer<br/>[map_localizer.py]"]
  node_frames["Coordinate frames<br/>[frames.py]"]
  node_wheel_encoder["Wheel odometry<br/>[wheel_encoder.py]"]
  node_measurements["Sensor measurements<br/>[measurements.py]"]
  node_mapping["Mapping node<br/>[mapping_node.py]"]
  node_static_points["Stable point filter<br/>[static_points.py]"]
end

subgraph group_runtime["ROS runtime and safety"]
  node_gateway["Viewer gateway<br/>[viewer_gateway.py]"]
  node_safety["Safety supervisor"]
  node_bridge["ROS-Webots bridge"]
end

subgraph group_simulation["Webots simulation"]
  node_controller["Webots controller"]
  node_robot["Simulated robot"]
end

node_operator(("Operator"))

node_operator -->|"operates"| node_dashboard
node_dashboard -->|"sends commands"| node_gateway
node_dashboard -->|"imports and exports"| node_map_files
node_gateway -->|"routes requests"| node_mission_manager
node_gateway -->|"coordinates reset"| node_localization_node
node_gateway -->|"requests map operations"| node_mapping
node_mission_manager -->|"sets goals"| node_global_planner
node_global_planner -.->|"uses A-star"| node_planner_core
node_mission_manager -->|"tracks goal status"| node_local_planner
node_mission_manager -->|"advances deliveries"| node_delivery
node_mission_manager -->|"checks denied zones"| node_zones
node_mission_manager -->|"loads and saves"| node_nav_config
node_mission_manager -->|"sends autonomous commands"| node_safety
node_local_planner -->|"sends velocity"| node_safety
node_localization_node -->|"fuses sensors"| node_ekf
node_localization_node -->|"matches scans"| node_scan_matcher
node_localization_node -->|"localizes on imported map"| node_map_localizer
node_localization_node -->|"estimates odometry"| node_wheel_encoder
node_wheel_encoder -->|"consumes measurements"| node_measurements
node_localization_node -->|"constructs sensor data"| node_measurements
node_localization_node -->|"publishes pose"| node_mapping
node_mapping -->|"filters stable returns"| node_static_points
node_localization_node -->|"uses transforms"| node_frames
node_mapping -->|"publishes obstacles"| node_mission_manager
node_safety -->|"forwards guarded velocity"| node_bridge
node_bridge -->|"exchanges TCP JSON"| node_controller
node_controller -->|"reads sensors and drives"| node_robot
node_bridge -->|"sends sensor packets"| node_localization_node
node_bridge -->|"sends LiDAR scans"| node_mapping
node_safety -->|"reports status"| node_gateway

click node_dashboard "https://github.com/ghassen-saidi/robot-serveur/blob/main/js/app.js"
click node_dashboard_ui "https://github.com/ghassen-saidi/robot-serveur/blob/main/js/ui-controller.js"
click node_map_features "https://github.com/ghassen-saidi/robot-serveur/blob/main/js/navigation-features.js"
click node_gateway "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_viewer/fabtino_viewer/viewer_gateway.py"
click node_mission_manager "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py"
click node_global_planner "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_navigation/fabtino_navigation/global_planner_node.py"
click node_local_planner "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_navigation/fabtino_navigation/local_planner_node.py"
click node_delivery "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/navigation/delivery.py"
click node_zones "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/navigation/zones.py"
click node_planner_core "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/navigation/planner.py"
click node_localization_node "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_localization/fabtino_localization/localization_node.py"
click node_ekf "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/localization/ekf.py"
click node_scan_matcher "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/localization/scan_matcher.py"
click node_map_localizer "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/localization/map_localizer.py"
click node_frames "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/localization/frames.py"
click node_wheel_encoder "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/sensors/wheel_encoder.py"
click node_measurements "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/sensors/measurements.py"
click node_mapping "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_mapping/fabtino_mapping/mapping_node.py"
click node_static_points "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/static_points.py"
click node_safety "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_safety/fabtino_safety/safety_supervisor_node.py"
click node_bridge "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_webots_bridge/fabtino_webots_bridge/webots_bridge_node.py"
click node_controller "https://github.com/ghassen-saidi/robot-serveur/blob/main/webots/controllers/fabtino_webots_bridge_controller/fabtino_webots_bridge_controller.py"
click node_nav_config "https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py"

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_dashboard,node_dashboard_ui,node_map_features,node_map_files toneBlue
class node_mission_manager,node_global_planner,node_local_planner,node_delivery,node_zones,node_planner_core,node_nav_config toneAmber
class node_localization_node,node_ekf,node_scan_matcher,node_map_localizer,node_frames,node_wheel_encoder,node_measurements,node_mapping,node_static_points toneMint
class node_gateway,node_safety,node_bridge toneRose
class node_controller,node_robot,node_operator toneIndigo
```

## Components

### Dashboard and maps

- [Map dashboard](https://github.com/ghassen-saidi/robot-serveur/blob/main/js/app.js): `js/app.js`
- [Dashboard controls](https://github.com/ghassen-saidi/robot-serveur/blob/main/js/ui-controller.js): `js/ui-controller.js`
- [Map and navigation UI](https://github.com/ghassen-saidi/robot-serveur/blob/main/js/navigation-features.js): `js/navigation-features.js`
- **Map files**

### Mission and planning

- [Mission manager](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py): `ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py`
- [Global planner](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_navigation/fabtino_navigation/global_planner_node.py): `ros_ws/src/fabtino_navigation/fabtino_navigation/global_planner_node.py`
- [Local goal follower](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_navigation/fabtino_navigation/local_planner_node.py): `ros_ws/src/fabtino_navigation/fabtino_navigation/local_planner_node.py`
- [Delivery transitions](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/navigation/delivery.py): `ros_ws/src/fabtino_core/fabtino_core/navigation/delivery.py`
- [Zone geometry](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/navigation/zones.py): `ros_ws/src/fabtino_core/fabtino_core/navigation/zones.py`
- [A-star planner](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/navigation/planner.py): `ros_ws/src/fabtino_core/fabtino_core/navigation/planner.py`
- [Navigation configuration](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py): `ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py`

### Localization and mapping

- [Localization node](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_localization/fabtino_localization/localization_node.py): `ros_ws/src/fabtino_localization/fabtino_localization/localization_node.py`
- [EKF and motion model](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/localization/ekf.py): `ros_ws/src/fabtino_core/fabtino_core/localization/ekf.py`
- [Scan matcher](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/localization/scan_matcher.py): `ros_ws/src/fabtino_core/fabtino_core/localization/scan_matcher.py`
- [Known-map localizer](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/localization/map_localizer.py): `ros_ws/src/fabtino_core/fabtino_core/localization/map_localizer.py`
- [Coordinate frames](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/localization/frames.py): `ros_ws/src/fabtino_core/fabtino_core/localization/frames.py`
- [Wheel odometry](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/sensors/wheel_encoder.py): `ros_ws/src/fabtino_core/fabtino_core/sensors/wheel_encoder.py`
- [Sensor measurements](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/sensors/measurements.py): `ros_ws/src/fabtino_core/fabtino_core/sensors/measurements.py`
- [Mapping node](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_mapping/fabtino_mapping/mapping_node.py): `ros_ws/src/fabtino_mapping/fabtino_mapping/mapping_node.py`
- [Stable point filter](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_core/fabtino_core/static_points.py): `ros_ws/src/fabtino_core/fabtino_core/static_points.py`

### ROS runtime and safety

- [Viewer gateway](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_viewer/fabtino_viewer/viewer_gateway.py): `ros_ws/src/fabtino_viewer/fabtino_viewer/viewer_gateway.py`
- [Safety supervisor](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_safety/fabtino_safety/safety_supervisor_node.py): `ros_ws/src/fabtino_safety/fabtino_safety/safety_supervisor_node.py`
- [ROS-Webots bridge](https://github.com/ghassen-saidi/robot-serveur/blob/main/ros_ws/src/fabtino_webots_bridge/fabtino_webots_bridge/webots_bridge_node.py): `ros_ws/src/fabtino_webots_bridge/fabtino_webots_bridge/webots_bridge_node.py`

### Webots simulation

- [Webots controller](https://github.com/ghassen-saidi/robot-serveur/blob/main/webots/controllers/fabtino_webots_bridge_controller/fabtino_webots_bridge_controller.py): `webots/controllers/fabtino_webots_bridge_controller/fabtino_webots_bridge_controller.py`
- **Simulated robot**

### Other components

- **Operator**

## Connections

- Operator → Map dashboard: operates
- Map dashboard → Viewer gateway: sends commands
- Map dashboard → Map files: imports and exports
- Viewer gateway → Mission manager: routes requests
- Viewer gateway → Localization node: coordinates reset
- Viewer gateway → Mapping node: requests map operations
- Mission manager → Global planner: sets goals
- Global planner → A-star planner: uses A-star
- Mission manager → Local goal follower: tracks goal status (evidence: `ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py`)
- Mission manager → Delivery transitions: advances deliveries (evidence: `ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py`)
- Mission manager → Zone geometry: checks denied zones (evidence: `ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py`)
- Mission manager → Navigation configuration: loads and saves (evidence: `ros_ws/src/fabtino_navigation/fabtino_navigation/mission_manager_node.py`)
- Mission manager → Safety supervisor: sends autonomous commands
- Local goal follower → Safety supervisor: sends velocity
- Localization node → EKF and motion model: fuses sensors (evidence: `ros_ws/src/fabtino_localization/fabtino_localization/localization_node.py`)
- Localization node → Scan matcher: matches scans (evidence: `ros_ws/src/fabtino_localization/fabtino_localization/localization_node.py`)
- Localization node → Known-map localizer: localizes on imported map (evidence: `ros_ws/src/fabtino_localization/fabtino_localization/localization_node.py`)
- Localization node → Wheel odometry: estimates odometry (evidence: `ros_ws/src/fabtino_localization/fabtino_localization/localization_node.py`)
- Wheel odometry → Sensor measurements: consumes measurements
- Localization node → Sensor measurements: constructs sensor data (evidence: `ros_ws/src/fabtino_localization/fabtino_localization/localization_node.py`)
- Localization node → Mapping node: publishes pose
- Mapping node → Stable point filter: filters stable returns (evidence: `ros_ws/src/fabtino_mapping/fabtino_mapping/mapping_node.py`)
- Localization node → Coordinate frames: uses transforms (evidence: `ros_ws/src/fabtino_localization/fabtino_localization/localization_node.py`)
- Mapping node → Mission manager: publishes obstacles
- Safety supervisor → ROS-Webots bridge: forwards guarded velocity
- ROS-Webots bridge → Webots controller: exchanges TCP JSON
- Webots controller → Simulated robot: reads sensors and drives (evidence: `webots/controllers/fabtino_webots_bridge_controller/fabtino_webots_bridge_controller.py`)
- ROS-Webots bridge → Localization node: sends sensor packets
- ROS-Webots bridge → Mapping node: sends LiDAR scans
- Safety supervisor → Viewer gateway: reports status
