OGE is a reinforcement learning environment for orbital game scenarios, focusing on spacecraft pursuit-evasion games. The environment provides a Gymnasium-compatible interface with a high-performance C++ backend and Python bindings for easy integration with mainstream reinforcement learning frameworks (such as SKRL).
- 🚀 High-performance orbital dynamics simulation (C++ backend)
- 🎮 Gymnasium-compatible reinforcement learning environment interface
- 🤖 Multi-agent pursuit-evasion game scenarios
- 📊 Integration with SKRL reinforcement learning library, supporting PPO and other algorithms
- 🔧 Flexible environment configuration system
This project is licensed under the GNU General Public License v2.0.
Install GCC 13
sudo apt update
sudo apt install build-essential gcc-13 g++-13Set as default version
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 100If you have multiple versions installed, you can switch between them:
sudo update-alternatives --config gcc
sudo update-alternatives --config g++Verify the installation:
gcc --version
g++ --versionExpected output:
(oge) ➜ OGE git:(main) ✗ gcc --version
gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(oge) ➜ OGE git:(main) ✗ g++ --version
g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Clone vcpkg and run the installation script
git clone https://www.github.com/microsoft/vcpkg
cd vcpkg
./bootstrap-vcpkg.shAdd the following to your ~/.bashrc or ~/.zshrc
# >>> vcpkg
export VCPKG_ROOT=<path-to-vcpkg>
export PATH=$VCPKG_ROOT:$PATH
# <<< vcpkgCreate a conda environment and install dependencies
conda create -n oge python=3.13
conda activate oge
pip install -r requirements.txtInstall the skrl library
conda activate oge
pip install "skrl[torch]==1.4.3"conda activate oge
pip install .python scripts/train.pyIf you use OGE in your research, please cite this repository.
Contributions are welcome! Please feel free to submit a Pull Request.