- sudo apt install xvfb (for training headless)
git clone --recurse-submodules https://github.com/xli4217/lof_robot_learning.git
- Download CoppeliaSim_Edu_V4_1_0_Ubuntu18_04/ at https://www.coppeliarobotics.com/downloads# in the lof_robot_learning directory
- Follow https://github.com/stepjam/PyRep to install PyRep (installed in libs/PyRep)
- conda env create -f env.yml
- source setup_path.sh
conda activate lof
- To start training run
python src/train.py
(by default training is done headless, if visualization of the training is desired, in src/train.py modifyHEADLESS=False
) - To test trained policy run
python src/rollout.py
- To plot learning curve, in package root directory run
python -m spinup.run plot experiments/<experiment name>/