Skip to content

A simple highway traffic simulation for self-driving car agents in occupancy grid world

Notifications You must be signed in to change notification settings

MajidMoghadam2006/gym-deepcars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepCars for OpenAI Gym

This is the registered version of DeepCars for the OpenAI Gym environments. DeepCars is a simple highway traffic simulator for training Reinforcement Learning agents to perform the high-level decision making on self-driving cars. The environment simulates the occupancy grid world around the ego vehicle.

cd gym-deepcars  
pip install -r requirements.txt
pip install -e .
python DeepCars_test.py

DeepCars

Two versions are registered:

DeepCars-v0: observation space is occupancy grid (0: empty grid, 1: occupied with actor, 2: occupied with ego).

DeepCars-v1: observations space is a vector of distances to the closest actors in each lane + ego lane.

In both versions action space contains high-level actions: go to the left lane, stay in the current lane, and go to the right lane.

Reward function:

+1: at each step

-1: if collision occurs.

About

A simple highway traffic simulation for self-driving car agents in occupancy grid world

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages