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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: airgym-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 c07d7d2a585dce9881c1724d00872b14aea4e9b3fa56b2f23450095e5fef6bdd
MD5 e0cbffbabb10f3a6ae556825e974d81d
BLAKE2b-256 ec59b27a066cea3211da2b163ccb2afb9ca95c509b8c1e5b3b6ffb1db15e935b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airgym-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c9381f0f28c384e61d622a968b01047d1744f0c36d9990931731c261b06c8d5b
MD5 190c0a50091cac37f70b584915fd2b71
BLAKE2b-256 0464958d6b64f5eb6d7d11d8552fbc3a4cd6074c5dd3695056ab5fa3d2a17d5f

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