Skip to main content

voxelgym2D

MIT License PyPI Pipeline codestyle

A gymnasium environment for voxel/grid based reinforcement learning for path planning.

Results with SB3 (v1.6.2) : PPO 😄

Here are the results of training a PPO agent on the onestep-v0 using the example here. Below you will find the episode reward and episode length over steps during training. As the agent learns, the episode reward increases and the episode length reduces are the agent learns to identify the goal and reach it in the shortest possible path.

Installation

pip install git+https://github.com/harisankar95/voxelgym2D.git

or directly from PyPI 😄

pip install voxelgym2D

Development

To install the package in development mode, run the following command in the root directory of the repository:

git clone https://github.com/harisankar95/voxelgym2D.git ~/path/to/repo
cd ~/path/to/repo
pip install -e .[dev]

# to aditionally install stable_baselines 3 and pytorch (optional)
pip install -e .[dev,sb3]

Usage

import voxelgym2D
import gymnasium as gym

env = gym.make("voxelgym2D:onestep-v0")
observation, info = env.reset(seed=123456)
env.render()

Examples

The examples can be found here.

License

This project is licensed under the terms of the MIT license.

Documentation

The documentation can be found here.

Changelog

0.1.0

  • Initial release of voxelgym 2D environments tested with stable_baselines 3 (v1.6.2) and python 3.8

0.2.0

  • Available on PyPI, sphinx documentation in work

0.3.0

  • Migration to gymnasium
  • Agent can now be reset to multiple start positions

0.3.1

  • License updated
  • Documentation updated

TODO

  • Add 2D environments
  • Add documentation

Contributing

Contributions are welcome! Please open an issue or a pull request.

Citation

If you find this project useful, please cite it as:

@misc{Babu_2023,
    author={Babu, Harisankar}, 
    title={Reinforcement Learning Based Path Planning for Autonomous Flight},
    url={https://publica.fraunhofer.de/handle/publica/442672},
    year={2023}, 
    month={Jan},
}

References

Metadata

Release files for voxelgym2D 0.3.2.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voxelgym2D 0.3.2.post1
File Size Uploaded
voxelgym2D-0.3.2.post1.tar.gz 34.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for voxelgym2D 0.3.2.post1
File Interpreter ABI Platform
voxelgym2D-0.3.2.post1-py3-none-any.whl Python 3 none any Details

Total release size: 73.6 kB

Release files / voxelgym2D-0.3.2.post1.tar.gz

Download URL voxelgym2D-0.3.2.post1.tar.gz
Size 34.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f05ee0688579a0ec9a52ee5f19583c5f44fa2d820fee5e2f7af169a023d93713
BLAKE2b-256 checksum
How to use checksums
1232375411b211e87085d9173fb9f74f7de0cdc8145606e5524a1c6c69733bd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.18

Release files / voxelgym2D-0.3.2.post1-py3-none-any.whl

Download URL voxelgym2D-0.3.2.post1-py3-none-any.whl
Size 38.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cd13d3889e40485205019ac998476306354620b762e33a1d4e1e45ac710a317
BLAKE2b-256 checksum
How to use checksums
98e798aedf2e14e81fe7590e667b07bcdbf8db166bf66f2c3df501e213ac573a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.18

Release history Release notifications | RSS feed

This release

0.3.2.post1 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page