MengeCrowdSim / Menge

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

Extend C-wrapper #80

Closed curds01 closed 6 years ago

curds01 commented 6 years ago

This adds some needed features to the C-wrapper

  1. Per-agent preferred velocity and state id.
  2. Ability to query the name of a state and the total number of states.

Incidentally, required a minor patch on Menge::BFSM::State::getName(); the return type now returns a const ref to the state's name rather than a copy. This allows me to send back a const char* that persists as long as the simulator does.