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

Module config

source code

Defines the ROSLaunchConfig object, which holds and the state of the roslaunch file.

Classes
  ROSLaunchConfig
ROSLaunchConfig is the container for the loaded roslaunch file state.
Functions
 
namespaces_of(name)
utility to determine namespaces of a name @raises ValueError @raises TypeError
source code
 
get_roscore_filename() source code
 
load_roscore(loader, config, verbose=True)
Load roscore configuration into the ROSLaunchConfig using the specified XmlLoader @param config ROSLaunchConfig @param loader XmlLoader
source code
 
calculate_env_loader(env=None)
@raise RLException
source code
 
load_config_default(roslaunch_files, port, roslaunch_strs=None, loader=None, verbose=False, assign_machines=True, ignore_unset_args=False)
Base routine for creating a ROSLaunchConfig from a set of roslaunch_files and or launch XML strings and initializing it.
source code
Variables
  DEFAULT_MASTER_PORT = 11311
  __package__ = 'roslaunch'
Function Details

load_config_default(roslaunch_files, port, roslaunch_strs=None, loader=None, verbose=False, assign_machines=True, ignore_unset_args=False)

source code 

Base routine for creating a ROSLaunchConfig from a set of roslaunch_files and or launch XML strings and initializing it. This config will have a core definition and also set the master to run on port.

Parameters:
  • roslaunch_files ([str|(str, str)]) - list of launch files to load. Each item may also be a tuple where the first item is the launch file and the second item is a string containing arguments.
  • port (int) - roscore/master port override. Set to 0 or None to use default.
  • roslaunch_strs ([str]) - (optional) roslaunch XML strings to load
  • verbose (bool) - (optional) print info to screen about model as it is loaded.
  • assign_machines (bool) - (optional) assign nodes to machines (default: True)
  • ignore_unset_args (bool) - (optional) ignore default arg requirements (default: False)
Returns:
initialized rosconfig instance