# panda-gym
Set of robotic environments based on PyBullet physics engine and gymnasium.
[](https://pypi.org/project/panda-gym/)
[](https://pepy.tech/project/panda-gym)
[](LICENSE.txt)
[](https://github.com/qgallouedec/panda-gym/actions/workflows/build.yml)
[](https://codecov.io/gh/qgallouedec/panda-gym)
[](https://github.com/psf/black)
[](https://arxiv.org/abs/2106.13687)
## Documentation
Check out the [documentation](https://panda-gym.readthedocs.io/en/latest/).
## Installation
### Using PyPI
```bash
pip install panda-gym
```
### From source
```bash
git clone https://github.com/qgallouedec/panda-gym.git
pip install -e panda-gym
```
## Usage
```python
import gymnasium as gym
import panda_gym
env = gym.make('PandaReach-v3', render_mode="human")
observation, info = env.reset()
for _ in range(1000):
action = env.action_space.sample() # random action
observation, reward, terminated, truncated, info = env.step(action)
if terminated or truncated:
observation, info = env.reset()
env.close()
```
You can also [](https://colab.research.google.com/github/qgallouedec/panda-gym/blob/master/examples/PickAndPlace.ipynb)
## Environments
| | |
| :------------------------------: | :--------------------------------------------: |
| `PandaReach-v3` | `PandaPush-v3` |
|  |  |
| `PandaSlide-v3` | `PandaPickAndPlace-v3` |
|  |  |
| `PandaStack-v3` | `PandaFlip-v3` |
|  |  |
## Baselines results
Baselines results are available in [rl-baselines3-zoo](https://github.com/DLR-RM/rl-baselines3-zoo) and the pre-trained agents in the [Hugging Face Hub](https://huggingface.co/sb3).
## Citation
Cite as
```bib
@article{gallouedec2021pandagym,
title = {{panda-gym: Open-Source Goal-Conditioned Environments for Robotic Learning}},
author = {Gallou{\'e}dec, Quentin and Cazin, Nicolas and Dellandr{\'e}a, Emmanuel and Chen, Liming},
year = 2021,
journal = {4th Robot Learning Workshop: Self-Supervised and Lifelong Learning at NeurIPS},
}
```
Environments are widely inspired from [OpenAI Fetch environments](https://openai.com/blog/ingredients-for-robotics-research/).
Raw data
{
"_id": null,
"home_page": "https://github.com/qgallouedec/panda-gym",
"name": "panda-gym",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Quentin GALLOU\u00c9DEC",
"author_email": "gallouedec.quentin@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/78/b3/899d8afe0dc14beab5d97a83fcdf81da15a3d0517c21741a352f7279f176/panda_gym-3.0.7.tar.gz",
"platform": null,
"description": "# panda-gym\n\nSet of robotic environments based on PyBullet physics engine and gymnasium.\n\n[](https://pypi.org/project/panda-gym/)\n[](https://pepy.tech/project/panda-gym)\n[](LICENSE.txt)\n[](https://github.com/qgallouedec/panda-gym/actions/workflows/build.yml)\n[](https://codecov.io/gh/qgallouedec/panda-gym)\n[](https://github.com/psf/black)\n[](https://arxiv.org/abs/2106.13687)\n\n## Documentation\n\nCheck out the [documentation](https://panda-gym.readthedocs.io/en/latest/).\n\n## Installation\n\n### Using PyPI\n\n```bash\npip install panda-gym\n```\n\n### From source\n\n```bash\ngit clone https://github.com/qgallouedec/panda-gym.git\npip install -e panda-gym\n```\n\n## Usage\n\n```python\nimport gymnasium as gym\nimport panda_gym\n\nenv = gym.make('PandaReach-v3', render_mode=\"human\")\n\nobservation, info = env.reset()\n\nfor _ in range(1000):\n action = env.action_space.sample() # random action\n observation, reward, terminated, truncated, info = env.step(action)\n\n if terminated or truncated:\n observation, info = env.reset()\n\nenv.close()\n```\n\nYou can also [](https://colab.research.google.com/github/qgallouedec/panda-gym/blob/master/examples/PickAndPlace.ipynb)\n\n## Environments\n\n| | |\n| :------------------------------: | :--------------------------------------------: |\n| `PandaReach-v3` | `PandaPush-v3` |\n|  |  |\n| `PandaSlide-v3` | `PandaPickAndPlace-v3` |\n|  |  |\n| `PandaStack-v3` | `PandaFlip-v3` |\n|  |  |\n\n## Baselines results\n\nBaselines results are available in [rl-baselines3-zoo](https://github.com/DLR-RM/rl-baselines3-zoo) and the pre-trained agents in the [Hugging Face Hub](https://huggingface.co/sb3).\n\n## Citation\n\nCite as\n\n```bib\n@article{gallouedec2021pandagym,\n title = {{panda-gym: Open-Source Goal-Conditioned Environments for Robotic Learning}},\n author = {Gallou{\\'e}dec, Quentin and Cazin, Nicolas and Dellandr{\\'e}a, Emmanuel and Chen, Liming},\n year = 2021,\n journal = {4th Robot Learning Workshop: Self-Supervised and Lifelong Learning at NeurIPS},\n}\n```\n\nEnvironments are widely inspired from [OpenAI Fetch environments](https://openai.com/blog/ingredients-for-robotics-research/). \n",
"bugtrack_url": null,
"license": "",
"summary": "Set of robotic environments based on PyBullet physics engine and gymnasium.",
"version": "3.0.7",
"project_urls": {
"Homepage": "https://github.com/qgallouedec/panda-gym"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1aaa4eb790df24fc475e8c31c960c83a4aec2991e06293eed1e06c0eab9145bb",
"md5": "b3a6c7338312c2aba92e5fb801c2f8bc",
"sha256": "cfb0b1eb1d4e59d6582ed2ac512e69e67d5c3d80862f1ca7e9bb1cd9eaaaf090"
},
"downloads": -1,
"filename": "panda_gym-3.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b3a6c7338312c2aba92e5fb801c2f8bc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 23649,
"upload_time": "2023-06-06T16:01:20",
"upload_time_iso_8601": "2023-06-06T16:01:20.415102Z",
"url": "https://files.pythonhosted.org/packages/1a/aa/4eb790df24fc475e8c31c960c83a4aec2991e06293eed1e06c0eab9145bb/panda_gym-3.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "78b3899d8afe0dc14beab5d97a83fcdf81da15a3d0517c21741a352f7279f176",
"md5": "8c66368d949a3d49d3007804aefb0900",
"sha256": "77e3110c7cb6855dd4c10c31f13401b19c3b0e30577e7f5029f946e59b171b6a"
},
"downloads": -1,
"filename": "panda_gym-3.0.7.tar.gz",
"has_sig": false,
"md5_digest": "8c66368d949a3d49d3007804aefb0900",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 17829,
"upload_time": "2023-06-06T16:01:23",
"upload_time_iso_8601": "2023-06-06T16:01:23.534944Z",
"url": "https://files.pythonhosted.org/packages/78/b3/899d8afe0dc14beab5d97a83fcdf81da15a3d0517c21741a352f7279f176/panda_gym-3.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-06 16:01:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "qgallouedec",
"github_project": "panda-gym",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "panda-gym"
}