An open source robot reinforcement learing plantform using stable-baselines and OpenAI Gym in Pybullet simulator.
This repo is just started, and only has quadruped robot motion imitation from google research now, but in the future it will have varity of robots, tasks and envs on this platform.
Install dependencies:
- Install MPI:
sudo apt install libopenmpi-dev - Install requirements:
pip3 install -r requirements.txt
and it should be good to go.
To running the example, run the following command:
python3 OpenRoboRL/run.py --task imitation_learning_laikago
--taskcan beimitation_learning_laikagoorimitation_learning_minicheetahfor now
For parallel training with MPI run:
mpiexec -n 8 python3 OpenRoboRL/run.py --task imitation_learning_laikago
-nis the number of parallel.
Enables visualization or not, there is enable_rendering param in pybullet_sim_param.yaml can be set.
There are two yaml file in OpenRoboRL/config folder, pybullet_sim_param.yaml is the simulation params, which is not recommended to modify, training_param.yaml is the training params, the following is the meaning of some parameters:
num_robotis the number of robots trained in parallel in the same simulator environment.modecan be eithertrainortest.motion_filespecifies the reference motion that the robot is to imitate.OpenRoboRL/learning/data/motions/contains different reference motion clips.model_filespecifies the pre-trained model that the robot is to imitate.OpenRoboRL/learning/data/policies/contains different model.int_save_freqspecifies the frequency for saving intermediate policies every n policy steps.- the trained model and logs will be written to
output/.