PyFlyt - UAV Flight Simulator for Reinforcement Learning
Comes with Gymnasium and PettingZoo environments built in!
View the documentation here!
This is a library for testing reinforcement learning algorithms on UAVs. This repo is still under development. We are also actively looking for users and developers, if this sounds like you, don't hesitate to get in touch!
Installation
pip3 install wheel numpy
pip3 install pyflyt
numpyandwheelmust be installed prior topyflytsuch thatpybulletis built withnumpysupport.
Usage
Usage is similar to any other Gymnasium and PettingZoo environment:
Gymnasium
import gymnasium
import PyFlyt.gym_envs # noqa
env = gymnasium.make("PyFlyt/QuadX-Hover-v2", render_mode="human")
obs = env.reset()
termination = False
truncation = False
while not termination or truncation:
observation, reward, termination, truncation, info = env.step(env.action_space.sample())
View the official documentation for gymnasium environments here.
PettingZoo
from PyFlyt.pz_envs import MAFixedwingDogfightEnv
env = MAFixedwingDogfightEnv(render_mode="human")
observations, infos = env.reset()
while env.agents:
# this is where you would insert your policy
actions = {agent: env.action_space(agent).sample() for agent in env.agents}
observations, rewards, terminations, truncations, infos = env.step(actions)
env.close()
View the official documentation for pettingzoo environments here.
Citation
If you use our work in your research and would like to cite it, please use the following bibtex entry:
@article{tai2023pyflyt,
title={PyFlyt--UAV Simulation Environments for Reinforcement Learning Research},
author={Tai, Jun Jet and Wong, Jim and Innocente, Mauro and Horri, Nadjim and Brusey, James and Phang, Swee King},
journal={arXiv preprint arXiv:2304.01305},
year={2023}
}
Gallery
Metadata
Release files for PyFlyt 0.29.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyflyt-0.29.0.tar.gz | 183.8 kB | Without provenance | Details for pyflyt-0.29.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyflyt-0.29.0-py3-none-any.whl | Python 3 | none | any | Details for pyflyt-0.29.0-py3-none-any.whl |
Total release size: 399.4 kB
Release files / pyflyt-0.29.0.tar.gz
| Download URL | pyflyt-0.29.0.tar.gz |
|---|---|
| Size | 183.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
987172a52dc86d5c69c42afc4ecc10d4d4ec412ffce4290b4107499b8cc0d051
|
|
BLAKE2b-256 checksum How to use checksums |
8215bf00a97e58797680091bbf410828fd73dc47cc5e8f5d0294f1be243bb914
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pyflyt-0.29.0-py3-none-any.whl
| Download URL | pyflyt-0.29.0-py3-none-any.whl |
|---|---|
| Size | 215.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2ae0e2b35921b74bba49cd16eb4b9d7ae9dddab74ffa09ed94c9f89ab381f3a
|
|
BLAKE2b-256 checksum How to use checksums |
3518f399138d8266ad28b53f7a50fdce24f1dfc645185499807bdafa2a2023c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for PyFlyt 0.29.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.