TRAILS: Trajectory Generation for Automated Indoor Locomotion Studies

Juho Kalliokoski, Evan G. Center, Steven M. LaValle, Timo Ojala, Basak SakcakarXiv 2026 · arXiv

TL;DR

TRAILS is an automated framework that generates complete, randomized navigation scenarios—including the floor plan, the path, and the speed profile—for virtual reality and telepresence studies. By using algorithmic procedures rather than data-driven models, it ensures that experimental trials are diverse, reproducible, and free from unintended statistical correlations between motion features.

What Problem Does This Paper Address?

Researchers studying human-robot interaction or cybersickness in VR face a "content bottleneck." To get reliable data, they need participants to navigate through many different environments. Manually designing dozens of realistic indoor layouts and valid robot trajectories is incredibly labor-intensive.

More importantly, manual design often introduces "confounding variables." For example, a researcher might accidentally make all curved paths stay far away from walls, while all straight paths stay close to them. If a participant feels sick, is it because of the turns or the wall proximity? TRAILS solves this by automating the generation process and using statistical checks to ensure that features like curvature, velocity, and wall clearance vary independently.

Methods

The TRAILS framework operates in three distinct, sequential stages:

  1. Environment Generation: Inspired by the "Wave Function Collapse" algorithm, this stage uses a library of modular tiles (corridors, T-junctions, open areas) to grow an environment. Unlike standard procedural generation, it uses a "frontier expansion" strategy to guarantee that every part of the map is reachable from every other part.
  2. Path Planning: The system represents the navigable floor as a graph of polygons. It first picks a random "coarse" route and then smooths it using optimized cubic Bézier curves. This ensures the path is physically possible for a "unicycle-model" robot (like many commercial telepresence units) while allowing researchers to request "straight" or "windy" path styles.
  3. Speed-Profile Generation: Finally, the framework assigns a time-parameterized velocity to the path. It uses piecewise constant-velocity and constant-acceleration segments to reach a target average speed while staying within predefined limits for linear and angular acceleration.
Overview of the three-stage TRAILS framework: Environment Generation, Path Planning, and Speed-Profile Generation.

A critical final step is Trajectory Validation. The system calculates the Variance Inflation Factor (VIF) for each trajectory. If features like "path curvature" and "linear velocity" are too highly correlated (multicollinearity), the trajectory is discarded and regenerated to ensure experimental rigor.

Datasets

The paper does not use a traditional training dataset, as it is an algorithmic framework rather than a machine-learning model. Instead, it utilizes a predefined library of modular 3D tiles (shown in Figure 2) that serve as the building blocks for the environments. The authors provide a default set of tiles including corridors, doorways, and open spaces, but the framework is designed to be extensible with user-defined pieces.

Examples of tile types and the adjacency constraints that govern how they can be connected.

Key Insights and Ideas

  • Constructive Connectivity: Rather than generating a map and then checking if it's "broken," TRAILS ensures global connectivity during the expansion phase. This makes the generation much more efficient for large-scale maps.
  • Fixed Duration Control: A major "aha" moment for experimental design is that all generated trajectories are forced to have the exact same duration ($T$). This allows researchers to compare different motion profiles without the total exposure time becoming a confounding factor.
  • Algorithmic Transparency: By avoiding "black-box" AI models, the framework remains entirely seed-controlled. A researcher can share a single "seed" number, and another researcher can recreate the exact same complex environment and path, which is vital for open science.

Key Results

The authors demonstrated the framework's efficiency through a numerical example using a 500-tile environment.

  • Diversity: The system successfully generated paths that varied significantly in geometry and wall proximity while all satisfying the same kinematic constraints and 100-second duration.
  • Computational Speed: Generating a valid 100-second trajectory (including environment and speed profile) took an average of 85.97 seconds. For longer 200-second trajectories, the time increased to roughly 416 seconds.
  • Statistical Independence: By setting a VIF threshold (e.g., 2.5), the framework successfully filtered out trajectories where motion characteristics were too closely linked, providing "clean" data for future human-subject studies.
A top-down view of a generated environment with four distinct paths, illustrating the geometric variety the framework can produce.

Limitations and Future Work

  • Tile Dependency: The variety of the environments is currently limited by the manual library of tiles. While users can add their own, the "look and feel" is tied to these blocks.
  • Heuristic Optimization: The path generation uses local heuristic optimization (COBYLA algorithm) rather than finding a global optimum. While this is faster, it might occasionally fail to find a path in extremely cramped environments.
  • Robot Model: The current version is optimized for non-holonomic (unicycle) robots. The authors suggest that future versions could be adapted for holonomic robots (which can move sideways) or even aerial drones by swapping out the kinematic constraint equations.

Summary updated

Abstract

Virtual reality experiments involving navigation and simulated robot motion often require large, realistic environments and numerous distinct trajectories to avoid repetitive navigation while providing sufficient variation for controlled experiments. Designing such scenarios manually is labor-intensive, particularly when trajectories must satisfy predefined geometric and kinematic constraints while remaining diverse and comparable across experimental conditions. This paper presents TRAILS, an automated framework for generating complete virtual navigation scenarios consisting of an environment layout, a path, and a time-parameterized motion profile. The framework combines a constraint-based procedural environment generator inspired by Wave Function Collapse, trajectory generation using optimized cubic Bézier curves, and speed-profile generation subject to kinematic constraints. The generated scenarios provide diverse indoor environments with corridors, open spaces, and obstacles, together with trajectories of identical duration that vary in path geometry, wall proximity, and velocity profiles while minimizing systematic dependencies between these characteristics. The framework is designed as an easy-to-use tool requiring only a small number of intuitive user-defined parameters to automatically generate large sets of distinct navigation scenarios satisfying prescribed geometric and kinematic constraints. By relying on explicit, seed-controlled algorithmic procedures rather than data-driven models, the generated scenarios remain transparent, reproducible, and configurable, making the framework well suited for telepresence and human-subject experiments. The code is available at https://github.com/JucciK/Trails .
BibTeX
@misc{kalliokoski2026trails,
  author = {Juho Kalliokoski and Evan G. Center and Steven M. LaValle and Timo Ojala and Basak Sakcak},
  title = {{TRAILS: Trajectory Generation for Automated Indoor Locomotion Studies}},
  year = {2026},
  eprint = {2611.03254},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.03254},
}
Figure