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

Class MasterStateTopic

source code

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

A class to receive the ROS master state updates from a ROS topic. The topic will be determine using master_discovery_fkie.interface_finder.get_changes_topic().

Instance Methods
 
registerByROS(self, masteruri, wait=False)
This method creates a ROS subscriber to received the notifications of ROS master updates.
source code
 
stop(self)
Unregister the subscribed topics
source code
 
handlerMasterStateMsg(self, msg)
The method to handle the received MasterState messages.
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
Properties

Inherited from object: __class__

Method Details

registerByROS(self, masteruri, wait=False)

source code 

This method creates a ROS subscriber to received the notifications of ROS master updates. The retrieved messages will be emitted as state_signal.

Parameters:
  • masteruri (str) - the ROS master URI
  • wait (boolean) - wait for the topic
Returns:
the topic name or an empty string

handlerMasterStateMsg(self, msg)

source code 

The method to handle the received MasterState messages. The received message will be emitted as state_signal.

Parameters:

Instance Variable Details

state_signal(...)

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