Crates.io | gym-rs |
lib.rs | gym-rs |
version | 0.3.0 |
source | src |
created_at | 2021-03-24 17:46:13.739777 |
updated_at | 2023-08-23 08:11:23.281281 |
description | OpenAI's Gym written in pure Rust |
homepage | |
repository | https://github.com/MathisWellmann/gym-rs |
max_upload_size | |
id | 372999 |
size | 230,411 |
This library aims be be close to the original OpenAI Gym library written in Python.
If you don't mind Python and would like to use the original implementation from Rust, check out a OpenAI Gym wrapper.
This library use's SDL2 to enable various forms of rendering. Even when an SDL2 window is not explictly shown, renders can be saved to files making it a mandatory dependency if any form of rendering is to be done.
On Ubuntu you can install the dependency as such:
sudo apt-get install libsdl2-dev
On Arch:
sudo pacman -S sdl2 sdl2_gfx
If your using nix, you can get into the reproducible build environment as simple as:
nix-shell
To use this crate in your project, put this in your Cargo.toml:
[dependencies]
gym_rs = "0.3.0"
cargo run --example=cartpole
cargo run --example=mountain_car
Contributions are welcome. For the contribution guidelines, please take a look at CONTRIBUTING.md.
If you would like to support the development of this crate, feel free to send over a donation:
Monero:
47xMvxNKsCKMt2owkDuN1Bci2KMiqGrAFCQFSLijWLs49ua67222Wu3LZryyopDVPYgYmAnYkSZSz9ZW2buaDwdyKTWGwwb