Make your Godot project into OpenAI Gym environment to train RL models with PyTorch. This project only runs on Linux systems for now.
- Godot Engine version == 3.2 compiled from source (not tested with the later versions)
- Boost interprocess and time (apt install libboost-container-dev libboost-system-dev libboost-locale-dev)
- Pytorch version == 1.10
- Python setuptools
First, in setup.py change the variable GODOT_PATH to the root directory of godot engine source. Then run:
python setup.py
This script does several things:
- Downloads libtorch (v1.10) cpu only version, unpacks it
- Copies GodotSharedMemory module and compiles standard godot editor (x11 platform).
- Compiles x11 export template and dev tools
- Installs python module GodotEnv that is used to communicate with the engine.
InvPendulum tutorial shows how to make an environment, speed up its execution, train a model and deploy back to the engine.
API lists classes and function in python and godot.
- Check if it's possible to use GDNative + shared libs instead of the engine recompilation.
- Windows compatibility