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

Class MasterStatisticTopic

source code

python_qt_binding.QtCore.QObject --+
                                   |
                                  MasterStatisticTopic

A class to receive the connections statistics from a ROS topic. The topic will be determine using master_discovery_fkie.interface_finder.get_stats_topic()

Instance Methods
 
registerByROS(self, masteruri, wait=False)
This method creates a ROS subscriber to received the notifications of connection updates.
source code
 
stop(self)
Unregister the subscribed topics.
source code
 
handlerMasterStatsMsg(self, msg)
The method to handle the received LinkStatesStamped messages.
source code
Instance Variables
  stats_signal = Signal(LinkStatesStamped)
a signal with a list of link states to discovered ROS masters.
Method Details

registerByROS(self, masteruri, wait=False)

source code 

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

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

handlerMasterStatsMsg(self, msg)

source code 

The method to handle the received LinkStatesStamped messages. The received message will be emitted as stats_signal.

Parameters:

Instance Variable Details

stats_signal

a signal with a list of link states to discovered ROS masters. Paramter: master_discovery_fkie.msg.LinkStatesStamped
Value:
Signal(LinkStatesStamped)