Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.75 KB

README.md

File metadata and controls

50 lines (31 loc) · 1.75 KB

CrowdWalk Gym

CrowdWalk Gym provides a simple interface to instantiate Reinforcement Learning environments with CrowdWalk for crowd route guidance.
CrowdWalk is a multi-agent crowd movement simulator.

overview

Install

Install CrowdWalk

Please follow a documentation (https://github.com/crest-cassia/CrowdWalk).

Install CrowdWalk-Gym

git clone [email protected]:ryonsd/crowdwalk-gym.git
cd crowdwalk-gym
pip install -e .
$ cp -rp sample/* <path-to-your-CrowdWalk-dir>/crowdwalk/sample/

Environments

two_routes moji
Two routes Real map (moji port)

When you try learning on "moji" environment, I recommend to use "moji_small" from the perspective of calculation time.

"moji" represents a real map and a generation of pedestrians, but it takes a long time to calculate a congestion degree from all pedestrian locations.

"moji_small" is a low-fidelity version of "moji", and the routes width and number of pedestrians are 1/10.

Its reduction makes the calculation time is shorter, 1 episode is 1 min.

If you test your algorithm tentatively, using "two_routes" is best because 1 episode is 12 seconds.

python dqn.py --simulator_dir <path-to-your-CrowdWalk-dir> --env_name two_routes --gui

Examples

The result of learning route guidance with DQN that minimizes congestion degree in "two_routes" and "moji" environment.

result result
Two routes Real map (moji port)