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.1.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

airgym-0.0.1-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airgym-0.0.1.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.13.0 pkginfo/1.9.6 requests/2.28.2 requests-toolbelt/0.10.1 tqdm/4.65.0 CPython/3.9.16

File hashes

Hashes for airgym-0.0.1.tar.gz
Algorithm Hash digest
SHA256 474c0526415cae6f6a0b42cd73503fbacdfed194e5ab34a32467b74fd8c6958f
MD5 ea5c89e3c81614429634896d8d04e6fe
BLAKE2b-256 46efcf9bbb28086829cb938362ef60ebec86b67eb6e5ae49a8ab63828c900000

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airgym-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.13.0 pkginfo/1.9.6 requests/2.28.2 requests-toolbelt/0.10.1 tqdm/4.65.0 CPython/3.9.16

File hashes

Hashes for airgym-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3daf2553bb30b8e330b4edf35c157286aa792ad0510873f63d47e17ff0e2758
MD5 d22c2163f7ac0c6e066a693ee6d6cc67
BLAKE2b-256 4f24c09108a7296455a468f6ffa72ccf7f81cc1750f3ab7e603948d09cbb2640

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