class LocalProcess(pmon.Process):
Constructor: LocalProcess(run_id, package, name, args, ...)
Process launched on local machine
Method | __init__ |
generate log directory location. run_id may be None if this feature is not being used. |
Method | get |
@return: human-readable description of exit state @rtype: str |
Method | get |
Get all data about this process in dictionary form |
Method | is |
@return: True if process is still running @rtype: bool |
Method | start |
Start the process. |
Method | stop |
Stop the process. Record any significant error messages in the errors parameter |
Instance Variable | args |
Undocumented |
Instance Variable | cwd |
Undocumented |
Instance Variable | exit |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | log |
Undocumented |
Instance Variable | log |
Undocumented |
Instance Variable | pid |
Undocumented |
Instance Variable | popen |
Undocumented |
Instance Variable | run |
Undocumented |
Instance Variable | started |
Undocumented |
Instance Variable | stopped |
Undocumented |
Method | _configure |
Configure logging of node's log file and stdout/stderr @return: stdout log file name, stderr log file name. Values are None if stdout/stderr are not logged. @rtype: str, str |
Method | _stop |
UNIX implementation of process killing |
Inherited from Process
:
Method | __str__ |
Undocumented |
Instance Variable | env |
Undocumented |
Instance Variable | lock |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | package |
Undocumented |
Instance Variable | required |
Undocumented |
Instance Variable | respawn |
Undocumented |
Instance Variable | spawn |
Undocumented |
- @param run_id: unique run ID for this roslaunch. Used to
- generate log directory location. run_id may be None if this feature is not being used.
@type run_id: str @param package: name of package process is part of @type package: str @param name: name of process @type name: str @param args: list of arguments to process @type args: [str] @param env: environment dictionary for process @type env: {str : str} @param log_output: if True, log output streams of process @type log_output: bool @param respawn: respawn process if it dies (default is False) @type respawn: bool @param cwd: working directory of process, or None @type cwd: str @param is_node: (optional) if True, process is ROS node and accepts ROS node command-line arguments. Default: True @type is_node: False
Start the process.
@raise pmon.FatalProcessLaunch: if process cannot be started and it is not likely to ever succeed
Stop the process. Record any significant error messages in the errors parameter
@param errors: error messages. stop() will record messages into this list. @type errors: [str]
Configure logging of node's log file and stdout/stderr @return: stdout log file name, stderr log file name. Values are None if stdout/stderr are not logged. @rtype: str, str