Skip to the content.

Home > Using RLAI with Raspberry Pi

Using RLAI with Raspberry Pi

Most of the RLAI functionality can run on a Raspberry Pi. This opens possibilities for building physical systems with the Pi’s GPIO ports and then learning control policies for these systems with RLAI. See here for instructions on configuring an operating system on the Raspberry Pi. Installing and using RLAI on the Pi is similar to using it elsewhere:

  1. Log in to the Pi via the desktop or SSH connection.
  2. Install build dependencies for RLAI:
    sudo apt install build-essential swig
    
  3. Add RLAI as a dependency to the project on the Pi, either from PyPI (e.g., with poetry add rlai) or as a submodule as shown in the cart-pole system described here.
  4. Install the project. Note that RLAI depends on Qt6 for graphical rendering of certain simulations and plots. These renderings will not be possible on the Pi, since Qt6 isn’t installed.