A collection of environments for autonomous driving and RL agents for decision making
- Builder docker using docker file
cd docker
./build_docker.sh
- After successfully build the docker
in docker folder, run:
./run_container.sh
Please check the readme of sub module highway-env
This repo include two popular RL library as sub modules:
- stable_baselines3
- rl_agents
Please refer to the readme of the original sub modules
import sys
import os
highway_env_path = os.path.join(os.getcwd(), "highway-env")
sys.path.append(highway_env_path)
import gym
import highway_env
env = gym.make("highway-v0")
obs = env.reset()
done = False
while not done:
action = env.action_space.sample() # for simple usage, you can just sample action space
obs, reward, done, info = env.step(action)
env.render()
Please check script train_stable_baselines3.py
which is setup using stable_baselines3
Please check bash script train_rl_agents.sh
for setting up training using rl_agents
Please check script plot.py
, and write your own
TBD
Please check script ani.py
, and write your own
TBD