PyFlyt


NamePyFlyt JSON
Version 0.19.0 PyPI version JSON
download
home_pageNone
SummaryUAV Flight Simulator Gymnasium Environments for Reinforcement Learning Research.
upload_time2024-03-23 00:30:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords reinforcement learning uavs drones quadcopter ai rl gymnasium
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![total downloads](https://static.pepy.tech/personalized-badge/pyflyt?period=total&units=international_system&left_color=grey&right_color=green&left_text=total%20downloads)](https://pepy.tech/project/pyflyt)
[![weekly downloads](https://static.pepy.tech/personalized-badge/pyflyt?period=week&units=international_system&left_color=grey&right_color=green&left_text=weekly%20downloads)](https://pepy.tech/project/pyflyt)

# PyFlyt - UAV Flight Simulator for Reinforcement Learning Research

Comes with Gymnasium and PettingZoo environments built in!

<p align="center">
    <img src="https://github.com/jjshoots/PyFlyt/blob/master/readme_assets/pyflyt_cover_photo.png?raw=true" width="650px"/>
</p>

#### [View the documentation here!](https://jjshoots.github.io/PyFlyt/documentation.html)

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

```sh
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

```python
import gymnasium
import PyFlyt.gym_envs # noqa

env = gymnasium.make("PyFlyt/QuadX-Hover-v0", 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](https://jjshoots.github.io/PyFlyt/documentation/gym_envs.html).

### PettingZoo

```python
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](https://jjshoots.github.io/PyFlyt/documentation/pz_envs.html).

## 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}
}
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "PyFlyt",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "Reinforcement Learning, UAVs, drones, Quadcopter, AI, RL, Gymnasium",
    "author": null,
    "author_email": "Jet <taijunjet@hotmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/23/eb/e348290c757df2158e75401f3f392a7de485c4fdc83c025fe8f87dca4ddf/PyFlyt-0.19.0.tar.gz",
    "platform": null,
    "description": "[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![total downloads](https://static.pepy.tech/personalized-badge/pyflyt?period=total&units=international_system&left_color=grey&right_color=green&left_text=total%20downloads)](https://pepy.tech/project/pyflyt)\n[![weekly downloads](https://static.pepy.tech/personalized-badge/pyflyt?period=week&units=international_system&left_color=grey&right_color=green&left_text=weekly%20downloads)](https://pepy.tech/project/pyflyt)\n\n# PyFlyt - UAV Flight Simulator for Reinforcement Learning Research\n\nComes with Gymnasium and PettingZoo environments built in!\n\n<p align=\"center\">\n    <img src=\"https://github.com/jjshoots/PyFlyt/blob/master/readme_assets/pyflyt_cover_photo.png?raw=true\" width=\"650px\"/>\n</p>\n\n#### [View the documentation here!](https://jjshoots.github.io/PyFlyt/documentation.html)\n\nThis is a library for testing reinforcement learning algorithms on UAVs.\nThis repo is still under development.\nWe are also actively looking for users and developers, if this sounds like you, don't hesitate to get in touch!\n\n## Installation\n\n```sh\npip3 install wheel numpy\npip3 install pyflyt\n```\n\n> `numpy` and `wheel` must be installed prior to `pyflyt` such that `pybullet` is built with `numpy` support.\n\n## Usage\n\nUsage is similar to any other Gymnasium and PettingZoo environment:\n\n### Gymnasium\n\n```python\nimport gymnasium\nimport PyFlyt.gym_envs # noqa\n\nenv = gymnasium.make(\"PyFlyt/QuadX-Hover-v0\", render_mode=\"human\")\nobs = env.reset()\n\ntermination = False\ntruncation = False\n\nwhile not termination or truncation:\n    observation, reward, termination, truncation, info = env.step(env.action_space.sample())\n```\n\nView the official documentation for gymnasium environments [here](https://jjshoots.github.io/PyFlyt/documentation/gym_envs.html).\n\n### PettingZoo\n\n```python\nfrom PyFlyt.pz_envs import MAFixedwingDogfightEnv\n\nenv = MAFixedwingDogfightEnv(render_mode=\"human\")\nobservations, infos = env.reset()\n\nwhile env.agents:\n    # this is where you would insert your policy\n    actions = {agent: env.action_space(agent).sample() for agent in env.agents}\n\n    observations, rewards, terminations, truncations, infos = env.step(actions)\nenv.close()\n```\n\nView the official documentation for pettingzoo environments [here](https://jjshoots.github.io/PyFlyt/documentation/pz_envs.html).\n\n## Citation\n\nIf you use our work in your research and would like to cite it, please use the following bibtex entry:\n\n```\n@article{tai2023pyflyt,\n  title={PyFlyt--UAV Simulation Environments for Reinforcement Learning Research},\n  author={Tai, Jun Jet and Wong, Jim and Innocente, Mauro and Horri, Nadjim and Brusey, James and Phang, Swee King},\n  journal={arXiv preprint arXiv:2304.01305},\n  year={2023}\n}\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "UAV Flight Simulator Gymnasium Environments for Reinforcement Learning Research.",
    "version": "0.19.0",
    "project_urls": {
        "Bug Report": "https://github.com/jjshoots/PyFlyt/issues",
        "Documentation": "https://jjshoots.github.io/PyFlyt/documentation.html",
        "Repository": "https://github.com/jjshoots/PyFlyt"
    },
    "split_keywords": [
        "reinforcement learning",
        " uavs",
        " drones",
        " quadcopter",
        " ai",
        " rl",
        " gymnasium"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "facdd5c39162490a98ba5b5806241db419640bc46d302def22402f49871b1e71",
                "md5": "00cec5de142a0f0e849e1400c4f3d4db",
                "sha256": "80cabe1cd57bec53bec4e5afab167022dec087687607a0038b0daab0709477e8"
            },
            "downloads": -1,
            "filename": "PyFlyt-0.19.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "00cec5de142a0f0e849e1400c4f3d4db",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 197974,
            "upload_time": "2024-03-23T00:30:50",
            "upload_time_iso_8601": "2024-03-23T00:30:50.885200Z",
            "url": "https://files.pythonhosted.org/packages/fa/cd/d5c39162490a98ba5b5806241db419640bc46d302def22402f49871b1e71/PyFlyt-0.19.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "23ebe348290c757df2158e75401f3f392a7de485c4fdc83c025fe8f87dca4ddf",
                "md5": "99f2ca906794607a33c6ab834bb49733",
                "sha256": "0df7e4a65497a2f99cfa0495c749baf0d2ebb025cb187e6fc8094e5bf22f76d9"
            },
            "downloads": -1,
            "filename": "PyFlyt-0.19.0.tar.gz",
            "has_sig": false,
            "md5_digest": "99f2ca906794607a33c6ab834bb49733",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 170719,
            "upload_time": "2024-03-23T00:30:53",
            "upload_time_iso_8601": "2024-03-23T00:30:53.191470Z",
            "url": "https://files.pythonhosted.org/packages/23/eb/e348290c757df2158e75401f3f392a7de485c4fdc83c025fe8f87dca4ddf/PyFlyt-0.19.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-23 00:30:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jjshoots",
    "github_project": "PyFlyt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyflyt"
}
        
Elapsed time: 0.22670s