Package roslaunch :: Module pmon :: Class Process
[frames] | no frames]

Class Process

source code

object --+
         |
        Process
Known Subclasses:

Basic process representation for ProcessMonitor. Must be subclassed to provide actual start()/stop() implementations.

Constructor *must* be called from the Python Main thread in order for signal handlers to register properly.

Instance Methods
 
__init__(self, package, name, args, env, respawn=False, respawn_delay=0.0, required=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code
dict { str: val }
get_info(self)
Get all data about this process in dictionary form
source code
 
start(self) source code
 
is_alive(self) source code
 
should_respawn(self)
Returns: False if process should not respawn floating point seconds until respawn otherwise
source code
 
stop(self, errors=None)
Stop the process.
source code
 
get_exit_description(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, package, name, args, env, respawn=False, respawn_delay=0.0, required=False)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

get_info(self)

source code 

Get all data about this process in dictionary form

Returns: dict { str: val }
dictionary of all relevant process properties

should_respawn(self)

source code 
Returns:
False if process should not respawn floating point seconds until respawn otherwise

stop(self, errors=None)

source code 

Stop the process. Record any significant error messages in the errors parameter

Parameters:
  • errors ([str]) - error messages. stop() will record messages into this list.