Abstract
Visualizing high-dimensional trajectory data is a critical yet often cumbersome task in robotics research. Traditional tools like RViz or Matplotlib frequently struggle with the scale of modern datasets or require complex environment setups. We present Flymation, an open-source, Unity3D-based framework designed to transform raw flight data into high-quality, interactive 3D animations. By leveraging a modern game engine, Flymation provides a scalable, standalone solution for visualizing complex robot behaviors, ranging from reinforcement learning training iterations to high-speed agile navigation, without the overhead of traditional robotics middleware.
Introduction
As robotics research scales, particularly with the advent of deep reinforcement learning (RL), the volume of trajectory data has increased exponentially. Identifying patterns, debugging controller behaviors, or assessing proximity to obstacles in cluttered environments requires intuitive 3D visualization. However, existing tools present significant trade-offs: RViz is deeply integrated into the ROS ecosystem, while libraries like Matplotlib or MATLAB can be slow with large datasets and often lack photorealistic rendering. Flymation addresses these challenges by providing a versatile, "zero-install" visualization tool accessible to both robotics experts and interdisciplinary collaborators.
Methodology
Flymation is built using the Unity3D engine and C#. It operates as a standalone application for Ubuntu and Windows, removing the need for specific programming environments.
Data Processing and Configuration
The framework utilizes a simple input pipeline. State vectors including position, orientation, velocity, color, and scale are read from standard .csv files. A config.json file allows users to define data paths and customize visual parameters such as trajectory colors.
Visualization Modes
Flymation supports two primary modes: Snapshot Mode, which renders the entire trajectory simultaneously using "time-lapse" 3D models, and Animation Mode, which displays movement over time with various camera options. Users can interactively navigate the 3D environment in real-time to inspect specific maneuvers from any angle.
Applications and Results
The utility of Flymation has been demonstrated across several domains, handling both synthetic and real-world datasets.
Reinforcement Learning and Agile Navigation
In RL, where agents generate millions of data points, Flymation allows researchers to "scrub" through training iterations to visualize policy evolution. For high-speed agile navigation, the tool has visualized drones navigating cluttered environments at speeds up to 42 km/h with accelerations reaching 3.6g. The use of realistic 3D "prefabs" provides deeper insight into controller performance and orientation relative to obstacles than simple line plots.
Optimal Control
The tool facilitates the comparison of planned trajectories against actual tracked paths in Model Predictive Control (MPC) scenarios, highlighting precision during high-speed turns.
Conclusion and Future Work
Flymation offers a scalable and user-friendly alternative to traditional robotics visualization tools. While currently optimized for rigid-body representations, future work aims to support articulated robots, such as humanoid and legged systems, by incorporating complex kinematic chains. Additionally, future iterations may include support for live data streams to complement the current file-based input system.
Summary updated