Roboschool
Release blog post is here:https://blog.openai.com/roboschool/
Roboschool is a long-term project to create simulations useful for research. The roadmap is as follows:
- Replicate Gym MuJoCo environments.
- Take a step away from trajectory-centric fragile MuJoCo tasks.
- Explore multiplayer games.
- Create tasks with camera RGB image and joints in a tuple.
- Teach robots to follow commands, including verbal commands.
Environments List
The list of Roboschool environments is as follows:- RoboschoolInvertedPendulum-v0
- RoboschoolInvertedPendulumSwingup-v0
- RoboschoolInvertedDoublePendulum-v0
- RoboschoolReacher-v0
- RoboschoolHopper-v0
- RoboschoolWalker2d-v0
- RoboschoolHalfCheetah-v0
- RoboschoolAnt-v0
- RoboschoolHumanoid-v0
- RoboschoolHumanoidFlagrun-v0
- RoboschoolHumanoidFlagrunHarder-v0
- RoboschoolPong-v0
import roboschool, gym;
print("\n".join(['- ' + spec.id for spec in gym.envs.registry.all() if
spec.id.startswith('Roboschool')]))
.Installation
First, define aROBOSCHOOL_PATH
variable in the current shell. It will be used in this README but not anywhere in the Roboschool code.ROBOSCHOOL_PATH=/path/to/roboschool
-
Ubuntu:
apt install cmake ffmpeg pkg-config qtbase5-dev libassimp-dev libpython3.5-dev libboost-python-dev libtinyxml-dev
-
Linuxbrew
brew install boost-python --without-python --with-python3 --build-from-source export C_INCLUDE_PATH=/home/user/.linuxbrew/include:/home/user/.linuxbrew/include/python3.6m export CPLUS_INCLUDE_PATH=/home/user/.linuxbrew/include:/home/user/.linuxbrew/include/python3.6m export LIBRARY_PATH=/home/user/.linuxbrew/lib export PKG_CONFIG_PATH=/home/user/.linuxbrew/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig
-
Mac, homebrew python:
# Will not work on Mavericks: unsupported by homebrew, some libraries won't compile, upgrade first brew install python3 brew install cmake tinyxml assimp ffmpeg qt brew install boost-python --without-python --with-python3 --build-from-source export PATH=/usr/local/bin:/usr/local/opt/qt5/bin:$PATH export PKG_CONFIG_PATH=/usr/local/opt/qt5/lib/pkgconfig
-
Mac, Anaconda with Python 3
brew install cmake tinyxml assimp ffmpeg brew install boost-python --without-python --with-python3 --build-from-source conda install qt export PKG_CONFIG_PATH=$(dirname $(dirname $(which python)))/lib/pkgconfig
make install
will merely copy files into the roboschool directory.git clone https://github.com/olegklimov/bullet3 -b roboschool_self_collision
mkdir bullet3/build
cd bullet3/build
cmake -DBUILD_SHARED_LIBS=ON -DUSE_DOUBLE_PRECISION=1 -DCMAKE_INSTALL_PREFIX:PATH=$ROBOSCHOOL_PATH/roboschool/cpp-household/bullet_local_install -DBUILD_CPU_DEMOS=OFF -DBUILD_BULLET2_DEMOS=OFF -DBUILD_EXTRAS=OFF -DBUILD_UNIT_TESTS=OFF -DBUILD_CLSOCKET=OFF -DBUILD_ENET=OFF -DBUILD_OPENGL3_DEMOS=OFF ..
make -j4
make install
cd ../..
pip3 install -e $ROBOSCHOOL_PATH
Agent Zoo
We have provided a number of pre-trained agents in theagent_zoo
directory.To see a humanoid run towards a random varying target:
python $ROBOSCHOOL_PATH/agent_zoo/RoboschoolHumanoidFlagrun_v0_2017may.py
python $ROBOSCHOOL_PATH/agent_zoo/demo_race2.py
No comments:
Post a Comment