Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
rqt_wrapper.ros_masters.RosMasterMonitor Class Reference

Classes. More...

Inheritance diagram for rqt_wrapper.ros_masters.RosMasterMonitor:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, period=5, callback_function=None, ros_master_uri=None)
 
def is_available (self)
 
def shutdown (self)
 

Public Attributes

 pid
 

Private Member Functions

def _default_callback_function (self, new_master_found)
 
def _wait_for_master (self)
 

Private Attributes

 _callback_function
 
 _check_for_master_timer
 
 _ros_master_uri
 
 _sleep_period_seconds
 

Detailed Description

Classes.

  Spins up a loop which continuously checks for the availability of
  the ros master.

Definition at line 50 of file ros_masters.py.

Constructor & Destructor Documentation

def rqt_wrapper.ros_masters.RosMasterMonitor.__init__ (   self,
  period = 5,
  callback_function = None,
  ros_master_uri = None 
)
The callback should have the signature:

void callback_function(bool new_master_found)

:param int period: loop time for checking in seconds.
:param func callback_function: execute user code if the state changed
:param str ros_msater_uri: the url of the ros master to lookup (if None, checks env).

Definition at line 55 of file ros_masters.py.

Member Function Documentation

def rqt_wrapper.ros_masters.RosMasterMonitor._default_callback_function (   self,
  new_master_found 
)
private

Definition at line 87 of file ros_masters.py.

def rqt_wrapper.ros_masters.RosMasterMonitor._wait_for_master (   self)
private

Definition at line 90 of file ros_masters.py.

def rqt_wrapper.ros_masters.RosMasterMonitor.is_available (   self)

Definition at line 81 of file ros_masters.py.

def rqt_wrapper.ros_masters.RosMasterMonitor.shutdown (   self)

Definition at line 84 of file ros_masters.py.

Member Data Documentation

rqt_wrapper.ros_masters.RosMasterMonitor._callback_function
private

Definition at line 74 of file ros_masters.py.

rqt_wrapper.ros_masters.RosMasterMonitor._check_for_master_timer
private

Definition at line 78 of file ros_masters.py.

rqt_wrapper.ros_masters.RosMasterMonitor._ros_master_uri
private

Definition at line 67 of file ros_masters.py.

rqt_wrapper.ros_masters.RosMasterMonitor._sleep_period_seconds
private

Definition at line 73 of file ros_masters.py.

rqt_wrapper.ros_masters.RosMasterMonitor.pid

Definition at line 76 of file ros_masters.py.


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


rqt_wrapper
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 14:59:48