Giter Site home page Giter Site logo

wwxfromtju / godotaigym Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lupoglaz/godotaigym

0.0 0.0 0.0 4.9 MB

Communicating with godot engine through shared memory

Home Page: https://lupoglaz.github.io/GodotAIGym/

License: MIT License

C++ 32.90% Python 44.84% C 0.19% GAP 10.43% GDScript 11.08% Makefile 0.56%

godotaigym's Introduction

GodotAIGym

logo

Make your Godot project into OpenAI Gym environment to train RL models with PyTorch. This project only runs on Linux systems for now.

Requirements

  1. Godot Engine version == 3.2 compiled from source (not tested with the later versions)
  2. Boost interprocess and time (apt install libboost-container-dev libboost-system-dev libboost-locale-dev)
  3. Pytorch version == 1.10
  4. Python setuptools

Installation

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:

  1. Downloads libtorch (v1.10) cpu only version, unpacks it
  2. Copies GodotSharedMemory module and compiles standard godot editor (x11 platform).
  3. Compiles x11 export template and dev tools
  4. Installs python module GodotEnv that is used to communicate with the engine.

Docs

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.

TODO

  1. Check if it's possible to use GDNative + shared libs instead of the engine recompilation.
  2. Windows compatibility

godotaigym's People

Contributors

hugo0 avatar lukaskiss222 avatar lupoglaz avatar metinc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.