Skip to content

Install

ReDySim RL runs wherever ReDySim Fixed-base and Floating-base run, which is Linux x86-64 and Windows 10 or 11 (64-bit) today; macOS on Apple Silicon is coming soon (no GPU is needed). It needs Python 3.10 or newer (check with python3 --version) and the ReDySim Fixed-base and Floating-base (one download), which must be installed first (installing this download alone fails). The GUI offers the floating-base tasks (the space robot and the wheeled robot) next to the fixed-base ones, so it needs both. NumPy and Gymnasium are installed automatically.

On a Mac, ReDySim RL needs Apple Silicon (M1 or later): PyTorch, which the GUI and training use, no longer publishes builds for Intel Macs. ReDySim Fixed-base, Floating-base and GUI do not use PyTorch and are not affected.

ReDySim RL
Version 1.1 · coming soon
Coming soon

Install ReDySim Fixed-base and Floating-base first, as its install page says (one step, install.sh or install.ps1). Then unpack this download next to the redysim-1.0 folder and run its installer:

sh redysim_rl-1.0/install.sh            # Windows: redysim_rl-1.0\install.ps1

It finds the redysim-1.0 environment, installs the CPU build of PyTorch and then the package with the gui extra (PySide6, matplotlib, Stable-Baselines3 and PyTorch; it checks that the floating-base simulator is there).

Disk space. The download is small, but PyTorch is not: pip's default build on Linux brings the NVIDIA GPU libraries and is about 5.4 GB (with Stable-Baselines3). ReDySim RL runs on the CPU only, so the installer uses the CPU build, about 1.0 GB; the whole environment with the GUI is about 1.9 GB (measured on Linux x86-64).

To do it by hand, activate the environment (source redysim-1.0/.venv/bin/activate; on Windows redysim-1.0\.venv\Scripts\Activate.ps1) and:

pip install torch --index-url https://download.pytorch.org/whl/cpu    # Linux only: Windows and macOS already get the CPU build
pip install "./redysim_rl-1.0[gui]"

The word (.venv) at the start of the terminal line shows that the environment is active; activate it again in every new terminal.

Open the GUI

redysim-rl-gui                          # or: python -m redysim_rl.gui

A window opens with the settings of a run on the left and the results on the right. The manual's GUI chapter takes you through a first run.

Your own code (without the GUI)

To use the environments from your own code, without the GUI, install without the extra (the floating-base simulator is then needed only if you use the space-robot, quadruped or wheeled-robot tasks) and check:

pip install ./redysim_rl-1.0
python -c "import redysim_rl; print(redysim_rl.__version__)"

To train with Stable-Baselines3 in a script, add pip install stable-baselines3; the scripts are in the examples/ folder of the download.

Need help?

  • No module named redysim: install ReDySim Fixed-base and Floating-base first, in the same environment.
  • The command is not found: reactivate the virtual environment in your current terminal.
  • The GUI does not open: it needs the gui extra above, and a screen.