Skip to content

Instantly share code, notes, and snippets.

@zafarali
Created February 22, 2018 18:52
Show Gist options
  • Save zafarali/7186f8790c8c4288a9c4e72c04f8c8ce to your computer and use it in GitHub Desktop.
Save zafarali/7186f8790c8c4288a9c4e72c04f8c8ce to your computer and use it in GitHub Desktop.
INSTALLDIR="$(pwd)/roboschool_installation"
echo "installing roboschool at $INSTALLDIR"
mkdir $INSTALLDIR
cd $INSTALLDIR
echo "Now cloning roboschool from github."
git clone https://github.com/openai/roboschool
ROBOSCHOOL_PATH="${INSTALLDIR}/roboschool"
echo "ROBOSCHOOL_PATH was set to $ROBOSCHOOL_PATH"
cd "$ROBOSCHOOL_PATH"
git clone https://github.com/olegklimov/bullet3 -b roboschool_self_collision
mkdir bullet3/build
cd bullet3/build
echo "making bullet3"
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 $INSTALLDIR/
echo "installing roboschool"
pip install -e roboschool/
echo "installation complete. To test you can try running: python roboschool/agent_zoo/demo_race2.py"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment