Package rocon_gateway :: Module watcher_thread :: Class WatcherThread
[frames] | no frames]

Class WatcherThread

source code

object --+
         |
        WatcherThread

This used to be on a thread of its own, but now moved into the gateway's main thread for running.

Instance Methods
 
__init__(self, gateway, watch_loop_period)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set_watch_loop_period(self, period)
This is used via the gateway node service to configure the rate of the watcher thread.
source code
 
get_watch_loop_period(self)
Use Duration's to_sec() method to convert this to float.
source code
 
start(self)
The watcher thread - monitors both the local master's system state (list of connections) and the various rules to make sure rules and existing connections or flips are in sync.
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, gateway, watch_loop_period)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

set_watch_loop_period(self, period)

source code 

This is used via the gateway node service to configure the rate of the watcher thread. If not positive, it will reset to the default.

Parameters:
  • period - new setting in seconds @type float

get_watch_loop_period(self)

source code 

Use Duration's to_sec() method to convert this to float.

@return the watcher loop period. @rtype rospy.Duration