To setup Roboschool in the rl_gym_book
conda environment, follow the steps below:
-
Activate the
rl_gym_book
conda environment:source activate rl_gym_book
-
Navigate to this (
ch9
) folder and run thesetup_roboschool.sh
script:cd ch9
chmod a+x ./setup_roboschool.sh
./setup_roboschool.sh
-
Follow the output from the script to make sure the installation is successful. You can run a demo using the following command:
(rl_gym_book) praveen@ubuntu:~/HOIAWOG/ch9$ python ~/software/roboschool/agent_zoo/ demo_race2.py
Note: If you get an error like below when you launch the demo script or when you try to use a Roboschool environment:
QGLShaderProgram: could not create shader program
bool QGLShaderPrivate::create(): Could not create shader of type 2.
python: render-simple.cpp:250: void SimpleRender::Context::initGL(): Assertion `r0' failed.
Then, add the following line at the top of the demo script or to your script which are are trying to run:
from OpenGL import GLU
The available Roboschool environments along with their observation and action spaces are summarized in the table below for quick references: