Skip to content

Use RLLAB with DartEnv

Wenhao Yu edited this page Nov 6, 2017 · 2 revisions

Use Rllab with DartEnv

Tested for Python3 on Ubuntu 14.04, OSX 10.11 and OSX 10.12.

Installation

1.Install Dart

2.Download and install Anaconda for Python 3.6 from: https://www.continuum.io/downloads

3.Download and install rllab from: https://github.com/openai/rllab

4.Enter the rllab virtual environment:

source activate rllab3

5.Download pydart2 master branch from: https://github.com/sehoonha/pydart2

6.Install pydart2 from the online instructions (http://pydart2.readthedocs.io/en/latest/install.html#install-from-source-code)

7.Install pyqt5:

conda install pyqt=5

8.Download and install DartEnv:

git clone https://github.com/VincentYu68/dart-env
cd DartEnv
pip install -e .

9.Test DARTEnv on Hopper example

cd DartEnv/examples/agents
python dart_agent.py 

Note for OSX

  1. In step 5 during installation of pydart2: In setup.py, add CXX_FLAGS += '-stdlib=libc++ ' after the line, CXX_FLAGS += '-framework GLUT '. Change the command to MACOSX_DEPLOYMENT_TARGET=10.12 python setup.py develop. Here 10.12 is the osx version, you may want to change it according to your own system version.

  2. If an error message related to GLUT appears, that probably means that you need to install freeglut. If an error message complaining about “can’t open the display”, that probably means that you are not running from an xterm. Try to run again using an xterm (e.g. XQuartz) instead of the default terminal.