Metadata-Version: 2.1
Name: GridMapDecompose
Version: 0.1.5
Summary: Simple pacakge for grid map decomposition
Home-page: UNKNOWN
Author: Tomasz Kucner
Author-email: tomasz.kucner@oru.se
License: UNKNOWN
Project-URL: Author, https://mro.oru.se/people/tomasz-kucner/
Project-URL: Source, https://github.com/tkucner/GridMapDecompose
Project-URL: Tracker, https://github.com/tkucner/GridMapDecompose/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: numpy (>=1.16.4)
Requires-Dist: scipy (>=1.2.1)
Requires-Dist: scikit-image (>=0.15.0)
Requires-Dist: networkx (>=2.3)

# GridMapDecompose
Simple code used for decomposing occupancy grid map into set of corners and walls. The idea is to utilize the pattern in a structured environment, which is a combination of straight walls and corners. 

The code outputs a labeled map with corresponding minimal bounding boxes for each element in the environment and label them as walls or corners. The code also provides adjacency matrix connecting neighbouring segments of the map.



 ![Example of labeling](https://github.com/tkucner/GridMapDecompose/blob/master/result.png)

## Installation 

```bash
pip install -i https://test.pypi.org/simple/GridMapDecompose
```
## Usage

An example of usage van be found in map_segmentation_test.py:
```bash
python3 map_segmentation_test.py example.pgm regular
```

