This repository is deeply-based on the gym-pygbullet-drones
repository and the optimized_dp
. Please refer to them for more information.
Tested on Intel x64/Ubuntu 18.04.
git clone git@github.com:Hu-Hanyang/gym-pybullet-drones.git
cd gym-pybullet-drones/
conda env create -f environment.yml # now the packages in the environment.yml have conflicts, please install odp env first and then install other required packegs in the drone env.
conda activate drones
pip3 install --upgrade pip
pip3 install -e .
cd gym_pybullet_drones/hj_distbs
pip3 install -e .
There are 3 files used for the training of the quadrotor in the environment with disturbances. They are BaseDistb.py
, BaseDistbRL.py
and HoverDistb.py
(all in gym-pybullet-drones/envs/
).
To train the policy using PPO, please use:
python learn_distb.py
The default one is 0-disturbance.
I suspect there is something wrong with the env because training still has no effect.