How alejndrsnchz/airbotsimulator works
Airbot Simulator lets developers inspect and manipulate a simulated robot world without physical hardware. The main runtime initializes resources, simulation, rendering, and the editor; each frame updates the simulation, renders the world, and updates the editor. The simulation exposes a World API over the ECS and documents a systems pipeline; the editor provides entity inspection and component editing. README capabilities preserve both editor backends and renderer decoupling. Some subsystem links are based on README statements because their implementation excerpts were not provided.
Main entry points: main.cpp Application Loop · pipeline.cpp System Pipeline · world.cpp World API · registry.h ECS Registry
Components 18
Application Runtime
- Application Loop
src/app/main.cpp
Simulation Domain
- World API
src/simulation/world.cpp - System Pipeline
src/simulation/pipeline.cpp - World Commands
src/simulation/commands/commandManager.cpp
ECS Engine
- ECS Registry
src/engine/core/registry.h - Component Storage
src/engine/core/componentStorage.h - Entity Components
src/engine/ecs/components/componentCatalog.h - Movement System
src/engine/ecs/systems/movementSystem.cpp - Sensor System
src/engine/ecs/systems/sensorsSystem.cpp - Heat System
src/engine/ecs/systems/heatSourceSystem.cpp - Pollution System
src/engine/ecs/systems/pollutionSystem.h
Editor Interfaces
- Editor Facade
src/editor/editor.cpp - Dear ImGui Editor
src/editor/imgui/imguiEditor.cpp - raygui Editor
src/editor/raygui/rayguiEditor.cpp - raygui Library
external/raygui/raygui.h
Rendering
- Renderer
src/engine/render/render.cpp - Texture Resources
src/engine/resources/resourceManager.cpp
Other components
- Developer
Connections 20
- Developer → Application Loop: uses
- Application Loop → World API: updates
src/app/main.cpp - Application Loop → Renderer: draws world
src/app/main.cpp - Application Loop → Editor Facade: updates
src/app/main.cpp - Application Loop → Texture Resources: loads textures
src/app/main.cpp - World API → ECS Registry: wraps ECS
- World API → System Pipeline: orchestrates
- System Pipeline → Movement System: runs
src/simulation/pipeline.cpp - System Pipeline → Sensor System: runs
src/simulation/pipeline.cpp - System Pipeline → Heat System: runs
src/simulation/pipeline.cpp - ECS Registry → Component Storage: stores components
- ECS Registry → Entity Components: tracks types
- System Pipeline → Pollution System: may run
- Dear ImGui Editor → World API: inspects edits
src/editor/imgui/imguiEditor.cpp - Dear ImGui Editor → World Commands: executes
src/editor/imgui/imguiEditor.cpp - Editor Facade → Dear ImGui Editor: uses backend
- Editor Facade → raygui Editor: optional backend
- raygui Editor → raygui Library: uses GUI
- Renderer → World API: renders
- Renderer → Texture Resources: uses textures