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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for alpyro-2020.8a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55286c7d69d383a4207e38db0db230e8ff38c709d50fd7064e747cdb890841a2 |
|
MD5 | 73fc67f9c10e8706c948a76a3edfa132 |
|
BLAKE2b-256 | 1050471c1e9426feaab2b23b749a26c9602f69b7398890fa8e265b5187aec45b |