Lowering the Reality Gap in Aggregate Programs Validation: Running Collektive Over Unity

Gurioli, Filippo (2026) Lowering the Reality Gap in Aggregate Programs Validation: Running Collektive Over Unity. [Laurea magistrale], Università di Bologna, Corso di Studio in Ingegneria e scienze informatiche [LM-DM270] - Cesena, Documento ad accesso riservato.
Documenti full-text disponibili:
[thumbnail of Thesis] Documento PDF (Thesis)
Full-text non accessibile fino al 30 Settembre 2026.
Disponibile con Licenza: Creative Commons: Attribuzione - Non commerciale - Non opere derivate 4.0 (CC BY-NC-ND 4.0)

Download (22MB) | Contatta l'autore

Abstract

Modern computing increasingly relies on Complex Adaptive Systems (CAS) (i.e. large ensembles of autonomous agents whose collective behavior emerges from local interactions). Aggregate Computing (AC) provides a rigorous framework for programming such systems, yet validating AC algorithms before physical deployment remains challenging. Classical simulators prioritize scalability but sacrifice physical realism, while high-fidelity robotic simulators are computationally expensive and poorly suited to AC workflows. This mismatch, the reality gap, risks producing algorithms that succeed in simulation but fail in the field. This thesis presents Collektivity, a 3D simulator for CAS that bridges the Unity game engine with Collektive, a Kotlin-based AC library. Unity supplies realistic physics, collision detection and spatial partitioning, while Collektive handles aggregate logic. The two runtimes communicate through a Foreign Function Interface (FFI) layer with Protocol Buffers as the shared data model. To support Collektivity as a distributable library, a Unity Package Template was also developed, integrating continuous integration, automated semantic versioning, static analysis and artifact signing. A benchmark comparing FFI against socket-based communication showed that FFI is on average 450 times faster, with worst-case speedups exceeding 700 times, enabling the 20Hz execution frequency required by AC. A case study in environment-aware gradient ascent validated the integration across a minimal and a high-fidelity 3D environment, sustaining real-time performance with 100 nodes on consumer hardware. These results demonstrate that game engines are viable high-fidelity platforms for CAS validation, concretely narrowing the reality gap between algorithmic design and physical deployment.

Abstract
Tipologia del documento
Tesi di laurea (Laurea magistrale)
Autore della tesi
Gurioli, Filippo
Relatore della tesi
Correlatore della tesi
Scuola
Corso di studio
Ordinamento Cds
DM270
Parole chiave
CAS,Complex Adaptive Systems,Collektive,Collektivity,Unity,Simulator,Foreign Function Interface,FFI,Aggregate Computing,AC,Field Calculus,Macro-Programming,Kotlin,Protocol Buffers,Reality Gap,Swarm Simulation,Continuous Integration,CI,Semantic Versioning,Unity Package Template,DevOps automation,Self-organizing systems,Pervasive Computing,Benchmark,Gradient Ascent
Data di discussione della Tesi
13 Marzo 2026
URI

Altri metadati

Gestione del documento: Visualizza il documento

^