Skip to content

A safety-aware human-in-the-loop Reinforcment Learning (SaHiL-RL) approach for end-to-end autonomous driving.

Notifications You must be signed in to change notification settings

OscarHuangWind/Safe-Human-in-the-Loop-RL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Safe Human-in-the-loop RL (SaHiL-RL) with Shared Control for End-to-End Autonomous Driving

This repository contains the illustrative diagrams and demonstration videos of the proposed approach called safety-aware human-in-the-loop reinforcement learning (SaHiL-RL).

⏳ We will publish the source code once the paper is accepted.

🍺 Prior to this, we are more than happy to discuss the details of our algorithm if you are interested. Please feel free to contact us without any hesitation.

Email: wenhui001@e.ntu.edu.sg

Framework

Frenet-based Dynamic Potential Field (FDPF)

Demonstration (accelerated videos)

Lane-change Performance

sahil1_lanechange.mp4

Uncooperative Road User

sahil_uncooperated.mp4

Cooperative Road User

sahil_cooperated.mp4

Unobserved Road Structure

sahil_unobserved.mp4

How to use

Create a new Conda environment.

Specify your own name for the virtual environment, e.g., hil-rl:

conda create -n hil-rl python=3.7

Activate virtual environment.

conda activate hil-rl

Install Dependencies.

conda install gym==0.19.0
pip install cpprb tqdm pyyaml scipy matplotlib pandas casadi

Install Pytorch

Select the correct version based on your cuda version and device (cpu/gpu):

pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113

Install the SMARTS.

# Download SMARTS
git clone https://github.com/huawei-noah/SMARTS.git
cd <path/to/SMARTS>

# Install the system requirements.
bash utils/setup/install_deps.sh

# Install smarts.
pip install -e '.[camera_obs,test,train]'

# Install extra dependencies.
pip install -e .[extras]

Build the scenario.

cd <path/to/Human-in-the-loop-RL>
scl scenario build --clean scenario/straight_with_left_turn/

Visulazation

scl envision start

Then go to http://localhost:8081/

Training

python main.py

Evaluation

Edit the mode in config.yaml as evaluation and run:

python main.py

About

A safety-aware human-in-the-loop Reinforcment Learning (SaHiL-RL) approach for end-to-end autonomous driving.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published