Package roshlaunch :: Module nodeprocess :: Class LocalProcess
[frames] | no frames]

Class LocalProcess

source code

roslaunch.pmon.Process --+
                         |
                        LocalProcess

Process launched on local machine

Instance Methods
 
__init__(self, run_id, package, name, args, env, log_output, respawn=False, required=False, cwd=None, is_node=True) source code
 
get_info(self)
Get all data about this process in dictionary form
source code
 
start(self)
Start the process.
source code
bool
is_alive(self)
Returns: True if process is still running
source code
str
get_exit_description(self)
Returns: human-readable description of exit state
source code
 
stop(self, errors=[])
Stop the process.
source code
Method Details

__init__(self, run_id, package, name, args, env, log_output, respawn=False, required=False, cwd=None, is_node=True)
(Constructor)

source code 
Parameters:
  • run_id (str) - unique run ID for this roslaunch. Used to generate log directory location. run_id may be None if this feature is not being used.
  • package (str) - name of package process is part of
  • name (str) - name of process
  • args ([str]) - list of arguments to process
  • env ({str : str}) - environment dictionary for process
  • log_output (bool) - if True, log output streams of process
  • respawn (bool) - respawn process if it dies (default is False)
  • cwd (str) - working directory of process, or None
  • is_node (False) - (optional) if True, process is ROS node and accepts ROS node command-line arguments. Default: True

start(self)

source code 

Start the process.

Raises:
  • FatalProcessLaunch - if process cannot be started and it is not likely to ever succeed

is_alive(self)

source code 
Returns: bool
True if process is still running

get_exit_description(self)

source code 
Returns: str
human-readable description of exit state

stop(self, errors=[])

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.