Skip to content

Software

PyFlyt

From github.com/jjshoots/PyFlyt (opens in a new tab)

  • Drones and boats
  • Simulator
  • MIT

PyFlyt is a UAV flight simulator for testing reinforcement learning algorithms on drones and fixed-wing aircraft. It ships with Gymnasium and PettingZoo environments.

Facts

GitHub stars
267read on 28 Nov 2026
Last update
6 Apr 2026Newest commit on master
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Intermediate

Checked on GitHub on 28 Nov 2026.

Licenses

Code
MIT (opens in a new tab)

Read by Robotheca from LICENSE.txt (opens in a new tab) (MIT) at commit 9095d41 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Provides Gymnasium environments, for example QuadX-Hover, that can be created with gymnasium.make.
  • Provides PettingZoo multi-agent environments, such as a fixed-wing dogfight environment.
  • Targets reinforcement learning research on UAVs and is still under development.
  • Installed from pip with numpy and wheel installed first so pybullet is built with numpy support.
  • Has official documentation covering its Gymnasium and PettingZoo environments.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
MIT. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Maintained, last commit on 6 Apr 2026.

Use it

How to install it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 9095d41

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: readme.md by @jjshoots, at commit 9095d41, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

PyFlyt - UAV Flight Simulator for Reinforcement Learning

Comes with Gymnasium and PettingZoo environments built in!

Picture: pyflyt_cover_photo.png

View the documentation here! (opens in a new tab)

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

numpy and wheel must be installed prior to pyflyt such that pybullet is built with numpy support.

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 (opens in a new tab).

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 (opens in a new tab).

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

Picture: fixedwing_waypoint.gif Picture: fixedwing_dogfight.gif

Picture: quadx_pole_waypoint.gif Picture: quadx_waypoint.gif Picture: quadx_ball_in_cup.gif

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.