MengeCrowdSim / Menge

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

Roadmap is not validated upon loading #139

Open curds01 opened 5 years ago

curds01 commented 5 years ago

The road map velocity component consumes a road map specification that comes from outside of Menge. As its provenance is unknown, it can encode all sorts of errors. Menge should validate the road map.

Examples of bad road map data:

  1. vertices that aren't connected to the graph. An agent or goal may attempt to connect into the graph at that vertex, but because it isn't attached no path is possible.
  2. graph edges may pass through obstacles

Ancillary to this; feedback on error conditions need to be more robust. A user encountered the first issue and had no feedback from Menge on the condition -- at the very least it should have indicated in the log that there was a planning error with as much information as possible provided.