Package node_manager_fkie :: Module discovery_listener :: Class OwnMasterMonitoring
[frames] | no frames]

Class OwnMasterMonitoring

source code

       object --+            
                |            
sip.simplewrapper --+        
                    |        
          sip.wrapper --+    
                        |    
     PyQt4.QtCore.QObject --+
                            |
                           OwnMasterMonitoring

A class to monitor the state of the master. Will be used, if no master discovering is available. On changes the 'state_signal' of type master_discovery_fkie.msg.MasterState will be emitted.

Instance Methods
 
init(self, monitor_port)
Creates the local monitoring.
source code
 
stop(self)
Stop the local master monitoring
source code
 
mastermonitor_loop(self)
The method test periodically the state of the ROS master.
source code
 
pause(self, state)
Sets the local monitoring to pause.
source code
boolean
isPaused(self)
Returns: True if the local monitoring of the Master state is paused.
source code

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __init__, __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Instance Variables
 
state_signal(...)
a signal to inform the receiver about new master state.
source code
 
err_signal(...)
a signal to inform about an error.
source code
  ROSMASTER_HZ = 1
the rate to test ROS master for changes.
Properties

Inherited from object: __class__

Method Details

init(self, monitor_port)

source code 

Creates the local monitoring. Call start() to run the local monitoring.

Parameters:
  • monitor_port (int) - the port of the XML-RPC Server created by monitoring class.

mastermonitor_loop(self)

source code 

The method test periodically the state of the ROS master. The new state will be published as 'state_signal'.

pause(self, state)

source code 

Sets the local monitoring to pause.

Parameters:
  • state (boolean) - On/Off pause

isPaused(self)

source code 
Returns: boolean
True if the local monitoring of the Master state is paused.

Instance Variable Details

state_signal(...)

source code 
a signal to inform the receiver about new master state. Parameter: master_discovery_fkie.msg.MasterState

err_signal(...)

source code 
a signal to inform about an error. Parameter: str