![MACAD-Gym learning environment 1](https://raw.githubusercontent.com/praveen-palanisamy/macad-gym/master/docs/images/macad-gym-urban_4way_intrx_2c1p1m.png)
[MACAD-Gym](https://arxiv.org/abs/1911.04175) is a training platform for Multi-Agent Connected Autonomous
Driving (MACAD) built on top of the CARLA Autonomous Driving simulator.
MACAD-Gym provides OpenAI Gym-compatible learning environments for various
driving scenarios for training Deep RL algorithms in homogeneous/heterogenous,
communicating/non-communicating and other multi-agent settings. New environments and scenarios
can be easily added using a simple, JSON-like configuration.
Quick Start
Install MACAD-Gym using `pip install macad-gym`.
If you have CARLA installed, you can get going using the following 3 lines of code. If not, follow the
[Getting started steps](getting-started).
python
import gym
import macad_gym
env = gym.make("HomoNcomIndePOIntrxMASS3CTWN3-v0")
Your agent code here
Any RL library that supports the OpenAI-Gym API can be used to train agents in MACAD-Gym. The [MACAD-Agents](https://github.com/praveen-palanisamy/macad-agents) repository provides sample agents as a starter.
See full [README](https://github.com/praveen-palanisamy/macad-gym) for more information.