Package roslaunch :: Module nodeprocess
[frames] | no frames]

Module nodeprocess

source code

Local process implementation for running and monitoring nodes.

Classes
  LocalProcess
Process launched on local machine
Functions
 
create_master_process(run_id, type_, ros_root, port, num_workers=3, timeout=None, master_logger_level=False, sigint_timeout=15.0, sigterm_timeout=2.0)
Launch a master
source code
LocalProcess
create_node_process(run_id, node, master_uri, sigint_timeout=15.0, sigterm_timeout=2.0)
Factory for generating processes for launching local ROS nodes.
source code
Variables
  DEFAULT_TIMEOUT_SIGINT = 15.0
  DEFAULT_TIMEOUT_SIGTERM = 2.0
  __package__ = 'roslaunch'
Function Details

create_master_process(run_id, type_, ros_root, port, num_workers=3, timeout=None, master_logger_level=False, sigint_timeout=15.0, sigterm_timeout=2.0)

source code 

Launch a master

Parameters:
  • type_ (str) - name of master executable (currently just Master.ZENMASTER)
  • ros_root (str) - ROS_ROOT environment setting
  • port (int) - port to launch master on
  • num_workers (int) - number of worker threads.
  • timeout (float) - socket timeout for connections.
  • master_logger_level - rosmaster.master logger debug level
  • sigint_timeout (float) - The SIGINT timeout used when killing nodes (in seconds).
  • sigterm_timeout (float) - The SIGTERM timeout used when killing nodes if SIGINT does not stop the node (in seconds).
  • master_logger_level= (str or False)
Raises:
  • RLException - if type_ or port is invalid or sigint_timeout or sigterm_timeout are nonpositive.

create_node_process(run_id, node, master_uri, sigint_timeout=15.0, sigterm_timeout=2.0)

source code 

Factory for generating processes for launching local ROS nodes. Also registers the process with the ProcessMonitor so that events can be generated when the process dies.

Parameters:
  • run_id (str) - run_id of launch
  • node (Node) - node to launch. Node name must be assigned.
  • master_uri (str) - API URI for master node
  • sigint_timeout (float) - The SIGINT timeout used when killing nodes (in seconds).
  • sigterm_timeout (float) - The SIGTERM timeout used when killing nodes if SIGINT does not stop the node (in seconds).
Returns: LocalProcess
local process instance
Raises: