RLLIB+SUMO Utils
Python3 library able to connect the RLLIB framework with the SUMO simulator.
Contact: Lara CODECA [[email protected]]
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.
Requirements
Tested with
- Eclipse SUMO Version 1.5.0 Build features: Linux-4.19.0-4-amd64 x86_64 GNU 8.3.0 Release Proj GUI GDAL FFmpeg OSG GL2PS SWIG
Installation
- Install:
pip3 install .
from the root directory, orpython3 setup.py install
- Development install:
pip3 install -e .
orpython3 setup.py develop
Note: rtree library
To use rtree
, libspatialindex-dev
is required to be installed.
Example
- Given the
under developmentstatus of the project, some examples are provided.example/scenario
- Simple SUMO scenario.
example/marlenvironment.py
- Example of MARL environment implemented using RLLIB (SUMOTestMultiAgentEnv)
example/train.py
- Example of PPO trainer using SUMOTestMultiAgentEnv
- How to:
python3 train.py
Docker Environment
See RLLIB SUMO Docker for details on my development and learning environment.