Package roslaunch :: Module server :: Class ROSLaunchParentHandler
[frames] | no frames]

Class ROSLaunchParentHandler

source code

                   object --+        
                            |        
rosgraph.xmlrpc.XmlRpcHandler --+    
                                |    
             ROSLaunchBaseHandler --+
                                    |
                                   ROSLaunchParentHandler

XML-RPC API for the roslaunch server node

Instance Methods
 
__init__(self, pm, child_processes, listeners)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
int, str, int
register(self, client, uri)
Registration callback from newly launched roslaunch clients
source code
 
list_children(self)
List the roslaunch child processes.
source code
int, str, int
process_died(self, process_name, exit_code)
Inform roslaunch server that a remote process has died
source code
 
log(self, client, level, message)
Report a log message to the server
source code
int, str, [str]
get_node_names(self)
Returns: code, msg, list of node names (Inherited from roslaunch.server.ROSLaunchBaseHandler)
source code
int, str, int
get_pid(self)
Returns: code, msg, pid (Inherited from roslaunch.server.ROSLaunchBaseHandler)
source code
int, str, [[(str, int),], [(str,int),]]
list_processes(self)
Returns: code, msg, process list. (Inherited from roslaunch.server.ROSLaunchBaseHandler)
source code
int, str, dict
process_info(self, process_name)
Returns: dictionary of metadata about process. (Inherited from roslaunch.server.ROSLaunchBaseHandler)
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, pm, child_processes, listeners)
(Constructor)

source code 

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

Parameters:
  • child_processes ({name : ChildROSLaunchProcess}.) - Map of remote processes so that server can update processes with information as children register. Handler will not modify keys.
  • listeners, [ProcessListener] - list of listeners to notify when process_died events occur.
Overrides: object.__init__

register(self, client, uri)

source code 

Registration callback from newly launched roslaunch clients

Parameters:
  • client (str) - name of client
  • uri (str) - XML-RPC URI of client
Returns: int, str, int
code, msg, ignore

process_died(self, process_name, exit_code)

source code 

Inform roslaunch server that a remote process has died

Parameters:
  • process_name (str) - name of process that died
  • exit_code (int) - exit code of remote process
Returns: int, str, int
code, msg, ignore

log(self, client, level, message)

source code 

Report a log message to the server

Parameters:
  • client (str) - name of client
  • level (int) - log level (uses rosgraph_msgs.msg.Log levels)
  • message (str) - message to log