# markusbuchholz/gazebosim_blueboat_ardupilot_sitl architecture

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

- Interactive diagram: https://gitdiagram.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl
- Repository: https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl

## Overview

This repository combines BlueBoat SITL simulation and mission control, a Gazebo ocean/wave simulation plugin, and a separate VTOL performance calculator. The main user workflow launches the Gazebo vehicle, connects ArduPilot SITL, then sends waypoint or joystick commands; ROS 2 mission control can also hold dynamic position. README statements establish the documented user-facing integrations. Source excerpts show selected wave and VTOL internals, but many runtime paths and the model/world assets are not sampled, so uncertain connections are omitted.

Main entry points: [`SITL_Models/scripts/VTOL_model/vtol_model.py`](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/vtol_model.py) (VTOL mission calculator), [`SITL_Models/scripts/VTOL_model/util.py`](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/util.py) (Model utilities), [`gz_ws/src/asv_wave_sim/gz-waves/src/OceanTile.cc`](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/OceanTile.cc) (Ocean surface tile), [`SITL_Models/scripts/VTOL_model/propeller.py`](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/propeller.py) (Propeller model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_boat["BlueBoat control"]
  node_boat_launch["Simulation launch"]
  node_mission_planner["ASV mission planner"]
  node_waypoint_controller["Waypoint controller"]
  node_mission_runner["Mission runner<br/>[run_mission.py]"]
  node_boat_controller["Robot controller"]
end

subgraph group_waves["Ocean simulation"]
  node_wave_control["Wave controls<br/>[WavesControl.cc]"]
  node_ocean_tile["Ocean surface tile<br/>[OceanTile.cc]"]
  node_fft_waves["Random FFT waves"]
  node_fft_reference["FFT reference waves"]
  node_regular_waves["Regular wave model"]
  node_hydrodynamics["Hydrodynamics system<br/>[Hydrodynamics.cc]"]
  node_dynamic_geometry["Dynamic geometry<br/>[DynamicGeometry.cc]"]
  node_physics["Wave physics<br/>[Physics.cc]"]
  node_grid["Triangulated grid"]
  node_extension_manager["Render extension manager"]
end

subgraph group_vtol["VTOL performance"]
  node_vtol_model["VTOL mission calculator<br/>[vtol_model.py]"]
  node_battery["Battery model<br/>[battery.py]"]
  node_motor["Motor model<br/>[motor.py]"]
  node_propeller["Propeller model<br/>[propeller.py]"]
  node_prop_data[("Propeller data<br/>[prop_data.py]")]
  node_wing["Wing model<br/>[wing.py]"]
  node_util["Model utilities<br/>[util.py]"]
end

subgraph group_interfaces["Vehicle interfaces"]
  node_joystick["Joystick control"]
  node_ros_interface["ROS 2 boat interface"]
  node_diff_interface["Differential interface"]
  node_terminal_missions["Terminal mission scripts"]
  node_dynamic_scripts["Dynamic-position scripts"]
end

node_operator(("Operator / planner"))
node_qgc["QGroundControl"]
node_ardupilot["ArduPilot SITL"]
node_gazebo["GazeboSim"]

node_operator -->|"launches"| node_boat_launch
node_boat_launch -->|"starts simulation"| node_gazebo
node_operator -->|"starts SITL"| node_ardupilot
node_qgc -.->|"plans missions"| node_ardupilot
node_operator -->|"defines route"| node_mission_planner
node_mission_planner -->|"sends path"| node_waypoint_controller
node_operator -->|"publishes waypoints"| node_waypoint_controller
node_waypoint_controller -.->|"commands vehicle"| node_ardupilot
node_operator -->|"enters waypoints"| node_terminal_missions
node_terminal_missions -->|"sends waypoints"| node_ardupilot
node_operator -->|"requests hold"| node_dynamic_scripts
node_dynamic_scripts -->|"commands position"| node_ardupilot
node_operator -->|"steers"| node_joystick
node_joystick -.->|"publishes controls"| node_ros_interface
node_operator -->|"commands motors"| node_ros_interface
node_operator -->|"steers"| node_diff_interface
node_wave_control -->|"controls disturbances"| node_gazebo
node_ocean_tile -->|"constructs model"| node_fft_waves
node_ocean_tile -->|"constructs model"| node_fft_reference
node_ocean_tile -->|"constructs model"| node_regular_waves
node_vtol_model -->|"uses battery model"| node_battery
node_vtol_model -->|"uses motor model"| node_motor
node_vtol_model -->|"uses propeller model"| node_propeller
node_vtol_model -->|"uses wing model"| node_wing
node_propeller -->|"reads data"| node_prop_data
node_battery -->|"uses utilities"| node_util
node_motor -->|"uses utilities"| node_util
node_propeller -->|"uses utilities"| node_util
node_wing -->|"uses utilities"| node_util

click node_boat_launch "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/launch/launch_robot_simulation.launch.py"
click node_mission_planner "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/move_blueboat/coralguide_asv_mission_planner.py"
click node_waypoint_controller "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/move_blueboat/dp_beacon_dvl_run_boat_waypoint.py"
click node_mission_runner "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/move_blueboat/run_mission.py"
click node_boat_controller "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/move_blueboat/robot_controller.py"
click node_joystick "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/move_blueboat/joy_sim_controller.py"
click node_ros_interface "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/extras_interface/ros2_blueboat_interface.py"
click node_diff_interface "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/extras_interface/ros2_blueboat_interface_diff.py"
click node_terminal_missions "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/extras_boat/args_mission_planner_gps.py"
click node_dynamic_scripts "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/extras_boat/mission_planner_gps_dynamic_position.py"
click node_wave_control "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/gui/plugins/waves_control/WavesControl.cc"
click node_ocean_tile "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/OceanTile.cc"
click node_fft_waves "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/LinearRandomFFTWaveSimulation.cc"
click node_fft_reference "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/LinearRandomFFTWaveSimulationRef.cc"
click node_regular_waves "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/LinearRegularWaveSimulation.cc"
click node_hydrodynamics "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/systems/hydrodynamics/Hydrodynamics.cc"
click node_dynamic_geometry "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/systems/dynamic/DynamicGeometry.cc"
click node_physics "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/Physics.cc"
click node_grid "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/TriangulatedGrid.cc"
click node_extension_manager "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/systems/waves/RenderEngineExtensionManager.cc"
click node_vtol_model "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/vtol_model.py"
click node_battery "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/battery.py"
click node_motor "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/motor.py"
click node_propeller "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/propeller.py"
click node_prop_data "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/prop_data.py"
click node_wing "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/wing.py"
click node_util "https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/util.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_boat_launch,node_mission_planner,node_waypoint_controller,node_mission_runner,node_boat_controller toneBlue
class node_wave_control,node_ocean_tile,node_fft_waves,node_fft_reference,node_regular_waves,node_hydrodynamics,node_dynamic_geometry,node_physics,node_grid,node_extension_manager toneAmber
class node_vtol_model,node_battery,node_motor,node_propeller,node_prop_data,node_wing,node_util toneMint
class node_joystick,node_ros_interface,node_diff_interface,node_terminal_missions,node_dynamic_scripts toneRose
class node_operator,node_qgc,node_ardupilot,node_gazebo toneIndigo
```

## Components

### BlueBoat control

- [Simulation launch](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/launch/launch_robot_simulation.launch.py): `gz_ws/src/move_blueboat/launch/launch_robot_simulation.launch.py`
- [ASV mission planner](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/move_blueboat/coralguide_asv_mission_planner.py): `gz_ws/src/move_blueboat/move_blueboat/coralguide_asv_mission_planner.py`
- [Waypoint controller](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/move_blueboat/dp_beacon_dvl_run_boat_waypoint.py): `gz_ws/src/move_blueboat/move_blueboat/dp_beacon_dvl_run_boat_waypoint.py`
- [Mission runner](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/move_blueboat/run_mission.py): `gz_ws/src/move_blueboat/move_blueboat/run_mission.py`
- [Robot controller](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/move_blueboat/robot_controller.py): `gz_ws/src/move_blueboat/move_blueboat/robot_controller.py`

### Ocean simulation

- [Wave controls](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/gui/plugins/waves_control/WavesControl.cc): `gz_ws/src/asv_wave_sim/gz-waves/src/gui/plugins/waves_control/WavesControl.cc`
- [Ocean surface tile](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/OceanTile.cc): `gz_ws/src/asv_wave_sim/gz-waves/src/OceanTile.cc`
- [Random FFT waves](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/LinearRandomFFTWaveSimulation.cc): `gz_ws/src/asv_wave_sim/gz-waves/src/LinearRandomFFTWaveSimulation.cc`
- [FFT reference waves](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/LinearRandomFFTWaveSimulationRef.cc): `gz_ws/src/asv_wave_sim/gz-waves/src/LinearRandomFFTWaveSimulationRef.cc`
- [Regular wave model](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/LinearRegularWaveSimulation.cc): `gz_ws/src/asv_wave_sim/gz-waves/src/LinearRegularWaveSimulation.cc`
- [Hydrodynamics system](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/systems/hydrodynamics/Hydrodynamics.cc): `gz_ws/src/asv_wave_sim/gz-waves/src/systems/hydrodynamics/Hydrodynamics.cc`
- [Dynamic geometry](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/systems/dynamic/DynamicGeometry.cc): `gz_ws/src/asv_wave_sim/gz-waves/src/systems/dynamic/DynamicGeometry.cc`
- [Wave physics](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/Physics.cc): `gz_ws/src/asv_wave_sim/gz-waves/src/Physics.cc`
- [Triangulated grid](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/TriangulatedGrid.cc): `gz_ws/src/asv_wave_sim/gz-waves/src/TriangulatedGrid.cc`
- [Render extension manager](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/asv_wave_sim/gz-waves/src/systems/waves/RenderEngineExtensionManager.cc): `gz_ws/src/asv_wave_sim/gz-waves/src/systems/waves/RenderEngineExtensionManager.cc`

### VTOL performance

- [VTOL mission calculator](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/vtol_model.py): `SITL_Models/scripts/VTOL_model/vtol_model.py`
- [Battery model](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/battery.py): `SITL_Models/scripts/VTOL_model/battery.py`
- [Motor model](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/motor.py): `SITL_Models/scripts/VTOL_model/motor.py`
- [Propeller model](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/propeller.py): `SITL_Models/scripts/VTOL_model/propeller.py`
- [Propeller data](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/prop_data.py): `SITL_Models/scripts/VTOL_model/prop_data.py`
- [Wing model](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/wing.py): `SITL_Models/scripts/VTOL_model/wing.py`
- [Model utilities](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/SITL_Models/scripts/VTOL_model/util.py): `SITL_Models/scripts/VTOL_model/util.py`

### Vehicle interfaces

- [Joystick control](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/move_blueboat/move_blueboat/joy_sim_controller.py): `gz_ws/src/move_blueboat/move_blueboat/joy_sim_controller.py`
- [ROS 2 boat interface](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/extras_interface/ros2_blueboat_interface.py): `gz_ws/extras_interface/ros2_blueboat_interface.py`
- [Differential interface](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/extras_interface/ros2_blueboat_interface_diff.py): `gz_ws/extras_interface/ros2_blueboat_interface_diff.py`
- [Terminal mission scripts](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/extras_boat/args_mission_planner_gps.py): `gz_ws/src/extras_boat/args_mission_planner_gps.py`
- [Dynamic-position scripts](https://github.com/markusbuchholz/gazebosim_blueboat_ardupilot_sitl/blob/main/gz_ws/src/extras_boat/mission_planner_gps_dynamic_position.py): `gz_ws/src/extras_boat/mission_planner_gps_dynamic_position.py`

### Other components

- **Operator / planner**
- **QGroundControl**
- **ArduPilot SITL**
- **GazeboSim**

## Connections

- Operator / planner → Simulation launch: launches
- Simulation launch → GazeboSim: starts simulation
- Operator / planner → ArduPilot SITL: starts SITL
- QGroundControl → ArduPilot SITL: plans missions
- Operator / planner → ASV mission planner: defines route
- ASV mission planner → Waypoint controller: sends path
- Operator / planner → Waypoint controller: publishes waypoints
- Waypoint controller → ArduPilot SITL: commands vehicle
- Operator / planner → Terminal mission scripts: enters waypoints
- Terminal mission scripts → ArduPilot SITL: sends waypoints
- Operator / planner → Dynamic-position scripts: requests hold
- Dynamic-position scripts → ArduPilot SITL: commands position
- Operator / planner → Joystick control: steers
- Joystick control → ROS 2 boat interface: publishes controls
- Operator / planner → ROS 2 boat interface: commands motors
- Operator / planner → Differential interface: steers
- Wave controls → GazeboSim: controls disturbances
- Ocean surface tile → Random FFT waves: constructs model (evidence: `gz_ws/src/asv_wave_sim/gz-waves/src/OceanTile.cc`)
- Ocean surface tile → FFT reference waves: constructs model (evidence: `gz_ws/src/asv_wave_sim/gz-waves/src/OceanTile.cc`)
- Ocean surface tile → Regular wave model: constructs model (evidence: `gz_ws/src/asv_wave_sim/gz-waves/src/OceanTile.cc`)
- VTOL mission calculator → Battery model: uses battery model (evidence: `SITL_Models/scripts/VTOL_model/vtol_model.py`)
- VTOL mission calculator → Motor model: uses motor model (evidence: `SITL_Models/scripts/VTOL_model/vtol_model.py`)
- VTOL mission calculator → Propeller model: uses propeller model (evidence: `SITL_Models/scripts/VTOL_model/vtol_model.py`)
- VTOL mission calculator → Wing model: uses wing model (evidence: `SITL_Models/scripts/VTOL_model/vtol_model.py`)
- Propeller model → Propeller data: reads data (evidence: `SITL_Models/scripts/VTOL_model/propeller.py`)
- Battery model → Model utilities: uses utilities (evidence: `SITL_Models/scripts/VTOL_model/battery.py`)
- Motor model → Model utilities: uses utilities (evidence: `SITL_Models/scripts/VTOL_model/motor.py`)
- Propeller model → Model utilities: uses utilities (evidence: `SITL_Models/scripts/VTOL_model/propeller.py`)
- Wing model → Model utilities: uses utilities (evidence: `SITL_Models/scripts/VTOL_model/wing.py`)
