Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
control_input_manager.CommandHandle Class Reference
Inheritance diagram for control_input_manager.CommandHandle:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, sub_topic, pub_topic, timeout, stamped, sub_is_stamped=True, publish_redundant_halts=True, frame_id='')
 
def callback (self, data)
 
def expired (self, data)
 
def format_cmd_data (self, data)
 

Public Attributes

 frame_id
 
 is_stamped
 
 pub
 
 pub_topic
 
 publish_redundant_halts
 
 sub
 
 sub_is_stamped
 
 sub_topic
 
 timeout
 

Static Public Attributes

 prev_cmd = None
 

Private Attributes

 _pub_type
 
 _sub_type
 

Detailed Description

Manages timeouts and relaying incoming messages for a given control input

Definition at line 7 of file control_input_manager.py.

Constructor & Destructor Documentation

def control_input_manager.CommandHandle.__init__ (   self,
  sub_topic,
  pub_topic,
  timeout,
  stamped,
  sub_is_stamped = True,
  publish_redundant_halts = True,
  frame_id = '' 
)

Definition at line 12 of file control_input_manager.py.

Member Function Documentation

def control_input_manager.CommandHandle.callback (   self,
  data 
)
Passes through message and strip strips header if necessary

Definition at line 46 of file control_input_manager.py.

def control_input_manager.CommandHandle.expired (   self,
  data 
)
Tests message stamp to see if it has timeout

Definition at line 64 of file control_input_manager.py.

def control_input_manager.CommandHandle.format_cmd_data (   self,
  data 
)

Definition at line 69 of file control_input_manager.py.

Member Data Documentation

control_input_manager.CommandHandle._pub_type
private

Definition at line 20 of file control_input_manager.py.

control_input_manager.CommandHandle._sub_type
private

Definition at line 21 of file control_input_manager.py.

control_input_manager.CommandHandle.frame_id

Definition at line 19 of file control_input_manager.py.

control_input_manager.CommandHandle.is_stamped

Definition at line 16 of file control_input_manager.py.

control_input_manager.CommandHandle.prev_cmd = None
static

Definition at line 10 of file control_input_manager.py.

control_input_manager.CommandHandle.pub

Definition at line 33 of file control_input_manager.py.

control_input_manager.CommandHandle.pub_topic

Definition at line 14 of file control_input_manager.py.

control_input_manager.CommandHandle.publish_redundant_halts

Definition at line 18 of file control_input_manager.py.

control_input_manager.CommandHandle.sub

Definition at line 34 of file control_input_manager.py.

control_input_manager.CommandHandle.sub_is_stamped

Definition at line 17 of file control_input_manager.py.

control_input_manager.CommandHandle.sub_topic

Definition at line 13 of file control_input_manager.py.

control_input_manager.CommandHandle.timeout

Definition at line 15 of file control_input_manager.py.


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


rr_control_input_manager
Author(s):
autogenerated on Thu Sep 10 2020 03:38:35