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

Class OwnMasterMonitoring

source code

python_qt_binding.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
 
is_running(self) 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
Instance Variables
  state_signal = Signal(MasterState)
a signal to inform the receiver about new master state.
  err_signal = Signal(str)
a signal to inform about an error.
  ROSMASTER_HZ = 1
the rate to test ROS master for changes.
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

a signal to inform the receiver about new master state. Parameter: master_discovery_fkie.msg.MasterState
Value:
Signal(MasterState)

err_signal

a signal to inform about an error. Parameter: str
Value:
Signal(str)