Skip to main content

Alternative ROS client library

Project description

ALternative PYthon ROs

Alternative implementation of a ROS client library in python.

Example usage

Publisher

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

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alpyro-2020.8a0.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

alpyro-2020.8a0-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page