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

Class MasterStateTopic

source code

python_qt_binding.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
Instance Variables
  state_signal = Signal(MasterState)
a signal to inform the receiver about new master state.
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

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