Package rosgraph :: Package impl :: Module graph :: Class Graph
[frames] | no frames]

Class Graph

source code

object --+
         |
        Graph

Utility class for polling ROS statistics from running ROS graph. Not multi-thread-safe

Instance Methods
 
__init__(self, node_ns='/', topic_ns='/')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set_master_stale(self, stale_secs) source code
 
set_node_stale(self, stale_secs) source code
 
bad_update(self)
Update loop for nodes with bad connectivity.
source code
 
update(self)
Update all the stats.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, node_ns='/', topic_ns='/')
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

set_master_stale(self, stale_secs)

source code 
Parameters:
  • stale_secs (double) - seconds that data is considered fresh

set_node_stale(self, stale_secs)

source code 
Parameters:
  • stale_secs (double) - seconds that data is considered fresh

bad_update(self)

source code 

Update loop for nodes with bad connectivity. We box them separately so that we can maintain the good performance of the normal update loop. Once a node is on the bad list it stays there.

update(self)

source code 

Update all the stats. This method may take awhile to complete as it will communicate with all nodes + master.