uf-mil / axros

asyncio interface to ROS 1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

axros

A simplistic Python library for using asyncio with ROS 1


>>> import axros
>>> nh = axros.NodeHandle.from_argv("/my_special_node")
>>> await nh.setup() # or 'with nh:'
>>> await nh.set_param("my_special_param", 42)
>>> print(await nh.get_param("my_special_param"))
42
>>> from std_msgs.msg import Int32
>>> pub = await nh.advertise("count", Int32)
>>> await pub.setup()
>>> count = 0
>>> while count < 10:
...     pub.publish(Int32(count))
...     count += 1
>>> await nh.shutdown() # also shutsdown the associated publisher

Documentation: https://uf-mil.github.io/docs/reference/axros/index.html

About

asyncio interface to ROS 1

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 95.4%Language:CMake 3.1%Language:Dockerfile 1.4%