Simulating Traffic

SUMMIT comes with a built in script to simulate traffic on a map, located at <summit_root>/PythonAPI/examples/gamma_crowd.py. It makes use of the recent GAMMA prediction model to simulate heterogeneous agent behavior with sophisticated and unregulated behaviors.

To use the script, ensure that you have done the following:

  • Specified simulation bounds. This is required, since the script needs to know where to bound the agents. It only spawns agents within the specified bounds, and actively remove agents that go out of bounds. If are using a built-in map, the bounds have already been specified for you.
  • Spawned the map objects that you need, such as roads and sidewalks.

You can then call gamma_crowd.py --dataset <map_name> to simulate the traffic. A list of all arguments are available with the --help flag, and it is recommended to read through the options as you may find them useful for your needs.