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

Class ROSLaunchChildHandler

source code

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

XML-RPC API implementation for child roslaunches NOTE: the client handler runs a process monitor so that it can track processes across requests

Instance Methods
 
__init__(self, run_id, name, server_uri, pm)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
int, str, int
shutdown(self)
Returns: code, msg, ignore
source code
int, str, [ [str], [str] ]
launch(self, launch_xml)
Launch the roslaunch XML file.
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, run_id, name, server_uri, pm)
(Constructor)

source code 

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

Parameters:
  • server_uri (str) - XML-RPC URI of server
  • pm (ProcessMonitor) - process monitor to use
Raises:
Overrides: object.__init__

shutdown(self)

source code 
Returns: int, str, int
code, msg, ignore

launch(self, launch_xml)

source code 

Launch the roslaunch XML file. Because this is a child roslaunch, it will not set parameters nor manipulate the master. Call blocks until launch is complete

Parameters:
  • xml (str) - roslaunch XML file to launch
Returns: int, str, [ [str], [str] ]
code, msg, [ [ successful launches], [failed launches] ]