Classes | Functions | Variables
swri_rospy Namespace Reference

Classes

class  Service
class  Subscriber
class  Timer

Functions

def service_wrapper
def single_threaded
def spin

Variables

tuple callback_queue = Queue()

Function Documentation

This is a decorator for functions that handle ROS service calls.
It catches unhandled exceptions and reports them cleanly as errors
on the ROS console.

Definition at line 56 of file __init__.py.

def swri_rospy.single_threaded (   callback)
This decorator can be used on service or subscriber callbacks. A callback
wrapped with this decorator will put a condition on the callback_queue and
then wait its turn before executing the decorated callback.

Definition at line 30 of file __init__.py.

def swri_rospy.spin ( )
This spinner is used in place of the rospy.spin() method. Whereas
rospy.spin() simply waits for rospy.is_shutdown(), this spinner processes
the callback queue until rospy.is_shutdown() is true. The callback
queue is thread-safe, so for a multi-threaded queue processor, call this
spin method in multiple threads.

Definition at line 9 of file __init__.py.


Variable Documentation

tuple swri_rospy::callback_queue = Queue()

Definition at line 7 of file __init__.py.



swri_rospy
Author(s):
autogenerated on Thu Jun 6 2019 20:34:57