Public Member Functions | Public Attributes | Private Member Functions
rcommander_pr2_gui.pr2_utils.GenericListener Class Reference

Takes a normal ROS callback channel and gives it an on demand query style interface. More...

List of all members.

Public Member Functions

def __init__
 Message has to have a header.
def read
 Supported use cases rfid - want to get a reading, can be stale, no duplication allowed (allow None), query speed important hokuyo - want to get a reading, can be stale, no duplication allowed (don't want a None), willing to wait for new data (default) ft - want to get a reading, can be stale, duplication allowed (don't want a None), query speed important NOT ALLOWED duplication allowed, willing to wait for new data.

Public Attributes

 curid
 delay_tolerance
 last_call_back
 last_msg_returned
 message_extractor
 node_name
 reading

Private Member Functions

def _check_for_delivery_hiccups
def _wait_for_first_read

Detailed Description

Takes a normal ROS callback channel and gives it an on demand query style interface.

Definition at line 292 of file pr2_utils.py.


Constructor & Destructor Documentation

def rcommander_pr2_gui.pr2_utils.GenericListener.__init__ (   self,
  node_name,
  message_type,
  listen_channel,
  frequency,
  message_extractor = None,
  queue_size = None 
)

Message has to have a header.

Parameters:
node_namename of node (if haven't been inited)
message_typetype of message to listen for
listen_channelROS channel to listen
frequencythe frequency to expect messages (used to print warning statements to console)
message_extractorfunction to preprocess the message into a desired format
queue_sizeROS subscriber queue (None = infinite)

Definition at line 301 of file pr2_utils.py.


Member Function Documentation

Definition at line 349 of file pr2_utils.py.

Definition at line 358 of file pr2_utils.py.

def rcommander_pr2_gui.pr2_utils.GenericListener.read (   self,
  allow_duplication = False,
  willing_to_wait = True,
  warn = False,
  quiet = True 
)

Supported use cases rfid - want to get a reading, can be stale, no duplication allowed (allow None), query speed important hokuyo - want to get a reading, can be stale, no duplication allowed (don't want a None), willing to wait for new data (default) ft - want to get a reading, can be stale, duplication allowed (don't want a None), query speed important NOT ALLOWED duplication allowed, willing to wait for new data.

Definition at line 372 of file pr2_utils.py.


Member Data Documentation

Definition at line 301 of file pr2_utils.py.

Definition at line 301 of file pr2_utils.py.

Definition at line 301 of file pr2_utils.py.

Definition at line 301 of file pr2_utils.py.

Definition at line 301 of file pr2_utils.py.

Definition at line 301 of file pr2_utils.py.

Definition at line 301 of file pr2_utils.py.


The documentation for this class was generated from the following file:


rcommander_pr2_gui
Author(s): Hai Nguyen
autogenerated on Thu Dec 12 2013 12:09:58