Code Monkey home page Code Monkey logo

airgym's Introduction

AirGym

This repository is a simple OpenAI Gym interface for Microsoft AirSim (https://github.com/microsoft/AirSim).

Install to your Python3 environment with

git clone https://github.com/TDYbrownrc/AirGym.git

cd air_gym

pip install .

This interface supports 2 drone control types: discrete positional control and continuous velocity control. These are initialization arguments passed into the OpenAI gym initialization script.

Create a gym environment like this:

import gym

import air_gym

env = gym.make('air_gym:airsim-drone-v0', ip_address = 'IP_ADDRESS_OF_AIRSIM_INSTANCE', control_type = {'discrete', 'continuous'}, step_length = DISTANCE_OF_DISCRETE_MOTION_OR_LENGTH_OF_TIME_FOR_VELOCITY_MOTION, image_shape = (w, h, 3), goal = [GOAL_POINT])

airgym's People

Contributors

tdybrownrc avatar

Stargazers

Nicola Loi avatar Sasha Petrenko avatar

airgym's Issues

Observation Image is channel flipped

Currently, the observation image is (B,G,R) instead of (R,G,B) for the version of AirSim I am using. This issue is to notify users of this problem until I fix it.

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.