Public Member Functions | Public Attributes
glass_monitor.GlassMonitor Class Reference

List of all members.

Public Member Functions

def __init__
def callback
def get_msg_data
def process_input

Public Attributes

 monitor_list
 warn_pub

Detailed Description

Class to monitor desired topics and feilds and send out messages
    when the value on that topic exceeds a defined threshold value
    in order to build the monitor it requires the needed information 
    to be input as a parameter when the node is launched
    The input contains a list of dictonaries that have each of the following defined

    topic: The rostopic to monitor
    field: The fully named field within the message to check
    op: Comparison to make can be one of the following: gt, lt, eq, ne,within, outside 
    val: The value to check against
    msg: The message to display when the check has been violated
   
    And example .launch input is below: 

    <node name="monitor" type="glass_monitor.py" pkg="ros_glass_tools" output="s
        <rosparam param="monitors">
        [
        { topic: '/a/pose', field: 'translation/x', op: 'gt', val : 2 , msg: 'UAV is too far to the left'},
        { topic: '/a/pose', field: 'translation/z', op: 'gt', val : 2 , msg: 'UAV is too high!'}
        ]
        </rosparam>
    </node>

Definition at line 18 of file glass_monitor.py.


Constructor & Destructor Documentation

Definition at line 43 of file glass_monitor.py.


Member Function Documentation

def glass_monitor.GlassMonitor.callback (   self,
  msg,
  info 
)
generic callback for the monitor topics
    this will get the desired comparison and check that value
    if it is violated than the node will publish warning message
    to the glass topic

Definition at line 71 of file glass_monitor.py.

def glass_monitor.GlassMonitor.get_msg_data (   self,
  msg,
  key 
)
Have to slpit the keys up and recursivly call to get
the desired information out of all the messages

Definition at line 112 of file glass_monitor.py.

def glass_monitor.GlassMonitor.process_input (   self,
  input_list 
)
this method takes the input parameter to create the monitors
    the topic must already be published so that this method 
    can determine the message type

Definition at line 53 of file glass_monitor.py.


Member Data Documentation

Definition at line 43 of file glass_monitor.py.

Definition at line 43 of file glass_monitor.py.


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


ros_glass_tools
Author(s):
autogenerated on Thu Aug 27 2015 14:47:21