Skip to content

Codebase - Comparing DRL algorithms' ability to safely navigate challenging waters

Notifications You must be signed in to change notification settings

ThomasNLarsen/gym-auv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

gym-auv

A Python simulation framework for Collision Avoidance for Unmanned Surface Vehicle using Deep Reinforcement Learning.

The detailed explanation of the software structure can be found in Eivind Meyers repository gym-auv

Prerequisites

Note: Requires Python 3.7

Note: Pybullet needs Microsoft Visual C++ 14.0. Install it with "Build Tools for Visual Studio".

Note: Stable-Baselines only supports Tensorflow 1.14, Tensorflow 2 support is planned.

! Install Microsoft MPI (https://docs.microsoft.com/en-us/message-passing-interface/microsoft-mpi) (msmpisetup.exe , not SDK)

Note: Run the following first.

conda install -c conda-forge shapely
conda install swig
conda install ffmpeg

Then run

pip install -e ./gym-auv/

Running the code

You can now execute the script by running

python run.py <mode> <env> <-modifier kwarg>

The run script can be executed with the -h flag for a comprehensive overview of the available usage modes.

Examples:

Manual control (arrow keys), quit by pressing "q".

python run.py play TestScenario1-v0

Train a PPO agent in the MovingObstaclesNoRules environment.

python run.py train MovingObstaclesNoRules-v0

Record a video of a trained policy acting in an environment.

python run.py enjoy MovingObstaclesNoRules-v0 --algo <default:ppo> --agent path\to\agent.pkl

Evaluate a trained agent in an environment.

python run.py test MovingObstaclesNoRules-v0 --algo ppo --agent path\to\agent.pkl --episodes 1

About

Codebase - Comparing DRL algorithms' ability to safely navigate challenging waters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages