Skip to content

PedestrianDynamics/mobius-txt2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert Trajectories from experiments to Mobius format

Mobius uses a json format to represent trajectories.

This script converts txt trajectories from this data archive in the appropriate json file.

Json definition

The json structure includes three main blocks:

  • Entities: A list of entities, each with attributes like ID, name, max speed, and map plane information.
  • Simulation: A time-series list where each entry corresponds to a simulation time, containing samples of entity positions, modes, rotations, and speeds.
  • Metadata: A block providing overall simulation information, such as duration, distance maps, timestamps, and additional parameters.

Usage

  1. Create a virtual environment and install the requirements:

    (recommended)

    python3 -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
  2. Run script

    python txt_to_json.py --help

About

Convert txt trajectories to json for project Mobius

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages