OpenAI Gym environment for training reinforcement learning agents on an XPlane simulator
Project description
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.2.tar.gz
(22.4 kB
view details)
Built Distribution
airgym-0.0.2-py3-none-any.whl
(22.4 kB
view details)
File details
Details for the file airgym-0.0.2.tar.gz
.
File metadata
- Download URL: airgym-0.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f73550202f32b4509234bc850fb827c4a6f1cb06b67ef8c543d09d5264c29e1b |
|
MD5 | a22cd8345983232f757fe8212904c88a |
|
BLAKE2b-256 | daa89006f75da33371d17d21a608664ea626df579476a33b6e858966c1107dc7 |
File details
Details for the file airgym-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: airgym-0.0.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbd85ebae62aa51a262cc5ed4bd9269af0cb2b762be0ffa0405929057df336ad |
|
MD5 | a3662362472f52900b52ab6076304aeb |
|
BLAKE2b-256 | 5365141358eb3add1092fed132fb2f26d908f9b95e1e84bf9252feca0d5e1069 |