Package rospy :: Module logger_level_service_caller :: Class LoggerLevelServiceCaller

Class LoggerLevelServiceCaller

source code

object --+
         |
        LoggerLevelServiceCaller

Handles service calls for getting lists of nodes and loggers.

Also handles sending requests to change logger levels.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_levels(self) source code
 
get_loggers(self, node) source code
 
get_node_names(self)
Get a list of available services via a ros service call.
source code
 
send_logger_change_message(self, node, logger, level)
Send a logger level change request to 'node'.
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)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

get_node_names(self)

source code 

Get a list of available services via a ros service call.

:returns: a list of all nodes that provide the set_logger_level service, ''list(str)''

send_logger_change_message(self, node, logger, level)

source code 

Send a logger level change request to 'node'.

:param node: name of the node to chaange, ''str'' :param logger: name of the logger to change, ''str'' :param level: name of the level to change, ''str'' :returns: True if the response is valid, ''bool'' :returns: False if the request raises an exception or would not change the state, ''bool''