Skip to main content

OpenAI Gym environment for training reinforcement learning agents on an XPlane simulator

Project description

GPLv3 License GitHub Workflow Status (with branch) GitHub all releases PyPI

XPlane Gym Environment

This project provides an OpenAI Gym environment for training reinforcement learning agents on an XPlane simulator. The environment allows agents to control an aircraft and receive rewards based on how well they perform a task, such as flying a certain trajectory or landing safely.

Installation

To install the package, run the following command:

  pip install airgym

Usage/Examples

To use the environment in your Python code, you can import it as follows:

import airgym
import gym

# If XPlane is running on the same machine, you can use the default address and port. 
# Or, set ip address and port according to your configuration.
env = gym.make('AirGym-v1')

episods = 0

for episod in range(episods):
    obs = env.reset()
    done = False

    while not done:
        actions = env.action_space.sample()
        obs, reward, done, info = env.step(action)

env.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airgym-0.0.5.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

airgym-0.0.5-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file airgym-0.0.5.tar.gz.

File metadata

  • Download URL: airgym-0.0.5.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for airgym-0.0.5.tar.gz
Algorithm Hash digest
SHA256 842d0e977d1048f2f373dd1b67a2d5e0de10b84281226b26fff5b7bbcc3e21d1
MD5 c96879c72292f8d15650f138075624df
BLAKE2b-256 ccb6f49d9942ca52d5187bec5d31016855f187ee373861b7662fa1bc716d8c16

See more details on using hashes here.

File details

Details for the file airgym-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: airgym-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for airgym-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 34b1886eeba5a7893d09ae2381f920913188b9a78cb437c17e3bdeba37af49ee
MD5 cf11ac7bc84034fcb29f2e1580e02cb8
BLAKE2b-256 b62a52ac423f62d113d96ae0b866417d64374774c9d5154ad4fa4282fa056b3f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page