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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
842d0e977d1048f2f373dd1b67a2d5e0de10b84281226b26fff5b7bbcc3e21d1
|
|
| MD5 |
c96879c72292f8d15650f138075624df
|
|
| BLAKE2b-256 |
ccb6f49d9942ca52d5187bec5d31016855f187ee373861b7662fa1bc716d8c16
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34b1886eeba5a7893d09ae2381f920913188b9a78cb437c17e3bdeba37af49ee
|
|
| MD5 |
cf11ac7bc84034fcb29f2e1580e02cb8
|
|
| BLAKE2b-256 |
b62a52ac423f62d113d96ae0b866417d64374774c9d5154ad4fa4282fa056b3f
|