Minimal OpenAI Gym-based environments for a quadrotor UAV
This repository contains OpenAI Gym-based environments for low-level control of quadrotor unmanned aerial vehicles (UAVs). This repo is designed to serve as an educational platform for those interested in building Gym-based environments. To better understand What Deep RL Do, see OpenAI Spinning UP. Please feel free to create new issues or pull requests for any suggestions and corrections.
It is recommended to create Anaconda environment with Python 3.
The official installation guide is available here.
Also, Visual Studio Code in Anaconda Navigator
is highly recommended.
- Open your
Anaconda Prompt
and install major packages.
conda install -c conda-forge gymnasium
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
conda install -c conda-forge vpython
- Clone the repositroy.
git clone https://github.com/BeomyeolYu/minimal-gym-rotor.git
Consider a quadrotor UAV below:
The position and the velocity of the quadrotor are represented by
Env IDs | Description |
---|---|
Quad-v0 |
The state and the action are given by |
where the error terms
If you're interested in training RL agents in the quadrotor environments provided here, we recommend visiting github.com/fdcl-gwu/gym-rotor. This companion repository focuses on training RL agents using PyTorch implementations of DDPG and TD3 and offers additional resources for in-depth experimentation.