MengeCrowdSim / Menge

The source code for the Menge crowd simulation framework
Apache License 2.0
138 stars 64 forks source link

How can I export trajectories of agents? #90

Open Aaricis opened 6 years ago

Aaricis commented 6 years ago

I have read the MengeTechReport. And it told me that "Menge supports export trajectories and behaviors to binary format for use with external visualizers and motion synthesizers", but it is too brief to achieve for me. I don't know to implement.

curds01 commented 6 years ago

Another failing in the documentation.

The trajectories are output in an arbitrary, "proprietary" format (known for historical reasons as an scb file). There are multiple versions which output varying aspects of the trajectory. The versions are documented here:

There are python utilities for reading these files and making the trajectories available.

You have a couple of options:

  1. Create a custom version of the scb file that outputs what you need (by extending the SCBWriter and SCBFrameWriter linked to above.
  2. If one of the scb formats outputs enough data, you can use the python utilities to transform it into an alternative format.