Package roslaunch :: Module scriptapi :: Class ROSLaunch
[frames] | no frames]

Class ROSLaunch

source code

object --+
         |
        ROSLaunch

ROSLaunchParent represents the main 'parent' roslaunch process. It is responsible for loading the launch files, assigning machines, and then starting up any remote processes. The __main__ method delegates most of runtime to ROSLaunchParent.

This must be called from the Python Main thread due to signal registration.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
load(self, f)
Load roslaunch file
source code
 
load_str(self, s)
Load roslaunch string
source code
roslaunch.Process
launch(self, node)
Launch a roslaunch node instance
source code
 
start(self)
Start roslaunch.
source code
 
spin(self) source code
 
spin_once(self) source code
 
stop(self) 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

Raises:
Overrides: object.__init__

load(self, f)

source code 

Load roslaunch file

Parameters:
  • f (str) - filename

load_str(self, s)

source code 

Load roslaunch string

Parameters:
  • s (str) - string representation of roslaunch config

launch(self, node)

source code 

Launch a roslaunch node instance

Parameters:
  • node (roslaunch.Node) - roslaunch Node instance
Returns: roslaunch.Process
node process
Raises:

start(self)

source code 

Start roslaunch. This will launch any pre-configured launches and spin up the process monitor thread.