MPL is a collection of environments/tasks using MPL system from APL, simulated with the Mujoco physics engine and wrapped in the OpenAI gym API.
MPL uses git submodules to resolve dependencies. Please follow steps exactly as below to install correctly.
-
Ensure you have access these two repositories - MPL and MPL_sim.
-
Clone this repo with pre-populated submodule dependencies
$ git clone --recursive https://github.com/vikashplus/MPL.git
- Update submodules
$ cd MPL
$ git submodule update --remote
- Add repo to pythonpath by updating
~/.bashrcor~/.bash_profile
export PYTHONPATH="<path/to/MPL>:$PYTHONPATH"
- Follow install instructions from mjrl to get model free agents for `MPL'
- To visualize an env using a random policy
python MPL_agents/mjrl/examine_policy.py -e SallyReachRandom-v0
- To visualize an trained policy
python MPL_agents/mjrl/examine_policy.py -e SallyReachRandom-v0 -p MPL_agents/mjrl/sallyReachRandom-v0/best_policy.pickle