Skip to content
/ HYRA Public

HYRA (HighwaY Reinforcement Agents) contains three deep RL agents that autonomously drive through a highway environment.

Notifications You must be signed in to change notification settings

zincalex/HYRA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HighwaY Reinforcement Agents

This is the repository for the Autonomous Driving project of the Reinforcement Learning course.

The goal of the agents will be to drive an Autonomous Vehicle through an highway, taking into consideration the presence of other vehicles. For this project it is needed the HighwayEnv library, which can be installed very easily: Installation.

Environment specifications

State space:

The state space consists in a V x F array that describes a list of V = 5 vehicles by a set of features of size F = 5.

The features for each vehicle are:

  • Presence (boolean value)
  • Normalized position along the x axis w.r.t. the ego-vehicle
  • Normalized position along the y axis w.r.t. the ego-vehicle
  • Normalized velocity along the x axis w.r.t. the ego-vehicle
  • Normalized velocity along the y axis w.r.t. the ego-vehicle

Note: the first row contains the features of the ego-vehicle, which are the only ones referred to the absolute reference frame.

Action space

The action space is discrete, and it contains 5 possible actions:

  • Change lane to the left
  • Idle
  • Change lane to the right
  • Go faster
  • Go slower

Reward function

The reward function is a composition of various terms:

  • Bonus term for progressing quickly on the road
  • Bonus term for staying on the rightmost lane
  • Penalty term for collisions

Note: Look at the documentation for further information and a deeper understanding of the environment: https://highway-env.farama.org/

Baselines

In this project, the best RL agent is compared against two baselines:

  • A baseline defined in order to be an informed guess of the action to be taken.
  • The manual control policy, in which you will manually control the vehicle using the keyboard.

Agents

Three RL agents are defined, for detail look into agent_DQN.py, agent_DuelDQN.py, agent_PPO.py.

Report

For a detailed description of the project look in RL_report.pdf.

About

HYRA (HighwaY Reinforcement Agents) contains three deep RL agents that autonomously drive through a highway environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages