Metadata-Version: 2.1
Name: alpyro
Version: 2020.8a0
Summary: Alternative ROS client library
Home-page: https://github.com/rho2/alpyro
Author: Robin Brase
Author-email: git@rho2.eu
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: aiohttp (>=3.6.2)
Requires-Dist: alpyro-msgs
Requires-Dist: typing-extensions (>=3.7.4.2)

# **AL**ternative **PY**thon **RO**s
Alternative implementation of a ROS client library in python.

## Example usage
Publisher
```python
from alpyro.node import Node
from alpyro.msgs.std_msgs import StdString

def test():
    msg = StdString()
    msg.value = "Hello there"

    return msg

with Node("/pub") as n:
    n.announce("/test", StdString)
    n.schedule_publish("/test", 10, test)

    n.run_forever()
```

Subscriber
```python
from alpyro.node import Node
from alpyro.msgs.std_msgs import StdString

def callback(msg: StdString):
    print(msg.value)

with Node("/sub") as n:
    n.subscribe("/test", callback)

    n.run_forever()
```

