Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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.

Files for alpyro, version 2020.8a0
Filename, size File type Python version Upload date Hashes
Filename, size alpyro-2020.8a0-py3-none-any.whl (7.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size alpyro-2020.8a0.tar.gz (7.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page