Metadata-Version: 2.1
Name: poliduckie-segmentation
Version: 0.1.17.1
Summary: Segmentation from the Poliduckie team.
Home-page: https://github.com/poliduckie/poliduckie_segmentation
Author: Poliduckies
Author-email: duckietown@aeapolimi.it
License: MIT
Keywords: segmentation,duckietown,tensorflow
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: casadi
Requires-Dist: numpy
Requires-Dist: opencv-python
Requires-Dist: tensorflow

# Poliduckies common packages
[![PyPI version](https://badge.fury.io/py/poliduckie_segmentation.svg)](https://badge.fury.io/py/poliduckie_segmentation)


A package ready to be installed that provides the work made by the Poliduckie team

```
pip install poliduckie-segmentation
```

### Example for segmentation
```python
from poliduckie_segmentation.segmentation import Segmentation

image = [...]
segmentation = Segmentation()

# To predict:
prediction = segmentation.predict(image)

# To get the model:
segmentation.get_model()

# To get the model summary:
segmentation.get_model_summary()

```

### Example for MPC
```python
from poliduckie_segmentation.control import MPC

M = MPC()

# x = state, r = reference (with N=10 be like r=[[0.1, 0.1]]*10)
next_action = M.mpc(x, r)

```

### Example for Model
```python
from poliduckie_segmentation.model import Model

F = Model()

x, y, theta = 0,0,0
action = [1,1] # linear and angular speed
next_state = F.step(x, y, theta, previous_speed, previous_angular_speed, action)

# To use as action left and right wheel speed:
F.step_wheel_speed(x, y, theta, previous_speed, previous_angular_speed, action)

```


