OpenAI Gym environment for CARLA simulation
Top 55.7% on sourcepulse
This repository provides an OpenAI Gym wrapper for the CARLA simulator, enabling reinforcement learning agents to interact with a realistic driving environment. It is targeted at researchers and developers in autonomous driving and deep reinforcement learning, offering a standardized interface for training and evaluating RL algorithms in a simulated urban setting.
How It Works
The wrapper integrates with CARLA, a popular open-source simulator for autonomous driving research. It exposes CARLA's sensor data (camera, lidar, semantic segmentation) and vehicle state as observations within the Gym API. The environment defines termination conditions like collisions or reaching a destination and offers a customizable reward function based on speed, lane adherence, and penalties.
Quick Start & Requirements
pip install -r requirements.txt
and pip install -e .
./CarlaUE4.sh -windowed -carla-port=2000
test.py
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The environment is specifically built for CARLA version 0.9.6 and Ubuntu 16.04, potentially limiting compatibility with newer CARLA versions or other operating systems. The lack of explicit licensing information may pose a concern for commercial use.
3 years ago
1 week