GithubHelp home page GithubHelp logo

gym-dogfight3d's Introduction

DogFight3d: a 3d air combat reinforcement learning environment

DogFight3d is a reinforcement learning environment for training fixed-wing aircraft 1v1 air combat, it has approximate real dynamics.

Dependencies

  • gym, numpy, transform3d
  • python3.8
  • linux or win

Installation

gym-dogfight3d is pip installable using its GitHub:

pip install git+https://github.com/TUY3/gym-dogfight3d

or

git clone https://github.com/TUY3/gym-dogfight3d
cd gym-dogfight3d
pip install -e .

Environment

observation space

# ownship
position(x,y,z)
linear speed
linear acceleration
health level
cap(yaw),pitch,roll
thrust_level
# opponent
position(x,y,z)
linear speed
cap(yaw),pitch,roll

action space

continuous action space, including throttle,elevator,aileron,rudder

Example

env = gym.make('Dogfight3d-v0')
obs_space = env.observation_space
action_space = env.action_space
init_obs = env.reset()
while True:
    action = env.action_space.sample()
    next_obs, r, done, info = env.step(action)
    if done:
        print(info, env.current_step)
        break

Reference

  • harfang3d/dogfight-sandbox-hg1

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.