Coder Social home page Coder Social logo

daleang / godotgymai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lupoglaz/godotaigym

0.0 1.0 0.0 821 KB

Communicating with godot engine through shared memory

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

License: MIT License

GDScript 20.58% Python 43.55% C++ 33.92% Makefile 0.73% GAP 1.22%

godotgymai's Introduction

GodotGymAI

logo

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

Requirements

  1. Godot Engine version >= 3.2 compiled from source
  2. Boost interprocess (apt install libboost-container-dev libboost-system-dev libboost-locale-dev)
  3. Pytorch version >= 1.5
  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. Copies GodotSharedMemory module and compiles standard godot editor (x11 platform).
  2. Compiles x11 export template.
  3. Installs python module GodotEnv that is used to communicate with the engine.

Examples

There are several example environments in the directory Environments:

InvPendulum shows the example of environment that relies heavily on the physics engine

LunarLander more complex example that shows how to randomize environment upon reset

Tutorial and API

Tutorial

API

TODO

  1. Models deployment: add module to load your traced model into godot engine
  2. Learning from pixels: passing godot viewport rendering as a torch tensor
  3. Complete tutorial: tutorial about complete workflow, from empty godot project to training to deployment

godotgymai's People

Contributors

lupoglaz avatar lukaskiss222 avatar

Watchers

James Cloos 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.