Classes | Functions | Variables
swri_rospy Namespace Reference

Classes

class  Service
 
class  Subscriber
 
class  Timer
 

Functions

def service_wrapper (func)
 
def single_threaded (callback)
 
def spin ()
 

Variables

 callback_queue = Queue()
 

Function Documentation

def swri_rospy.service_wrapper (   func)
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

swri_rospy.callback_queue = Queue()

Definition at line 7 of file __init__.py.



swri_rospy
Author(s):
autogenerated on Fri Jun 7 2019 22:06:01