Prof. Dr. Sebastian Trimpe, Dr. Friedrich Solowjow
Institute for Data Science in Mechanical Engineering(DSME)
rllbc@dsme.rwth-aachen.de
The algorithms within this library were developed in the context of the class Reinforcement Learning and Learning-based Control (RLLBC) by the Institute for Data Science in Mechanical Engineering (DSME) at RWTH Aachen University. In this class we use this library in Lectures and Exercises. Students can also use the library to expand their knowledge through self-study. We provide example algorithms for tabular and deep reinforcement learning in the folders "tabular_examples" and "deep_examples". All algorithms are presented via Jupyter notebooks. You can find installation instructions below. For more details on how to work with the algorithms, we refer to the descriptions in the notebooks. Furthermore, we provide examples from the lecture and exercise in the folder "class_examples".
To install the library, please follow the instructions below.
-
Download the files
-
Install the latest version of Miniconda https://docs.conda.io/en/latest/miniconda.html
- make sure that you install the version for the operating system that you are using
- alternatively you could install (or use) Anaconda, which is more extensive than Miniconda. However, for the purpose of this course Miniconda is enough.
-
Create the conda environment from the
environment.yml
file withconda env create -f environment.yml
- when using Windows, for the command to work you need to open the conda shell in the directory of the environment file.
-
Activate the environment with
conda activate rllbc-library
-
Install the custom environments, that we use for out tabular examples. If conda has been used, navigate to
./tabular_examples
and runpip install -e .
in the same directory as the
setup.py
. -
Start up JupyterLab from your terminal with
jupyter-lab
→ Now you should be able to browse your file system for the notebooks
Note: In order to be able to render videos of the agent's performance you have to make sure to have ffmpeg
installed.
Warning: pybox2d is not available for Apple Silicon devices (Mac with M1, M2, or M3 processors). When working with Apple Silicon devices, this might cause issues. For installation, remove pybox2d from the list of required packages in the environment.yml
file.
Once the environment has been successfully installed, the library can be easily accessed via the following steps:
- Navigate to the project folder and open your terminal there. On Windows, use the Anaconda Prompt.
- Activate the environment with
conda activate rllbc-library
- Start up JupyterLab from your terminal with
jupyter-lab
You are ready to browse the library.