alpyro 2020.8a0

Creator: codyrutscher

Last updated:

Add to Cart

Description:

alpyro 2020.8a0

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.