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

Module loader

source code

General routines and representations for loading roslaunch model.

Classes
  LoadException
Error loading data as specified (e.g.
  LoaderContext
Container for storing current loader context (e.g.
  Loader
Lower-level library for loading ROS launch model.
Functions
 
convert_value(value, type_)
Convert a value from a string representation into the specified type
source code
 
process_include_args(context)
Processes arg declarations in context and makes sure that they are properly declared for passing into an included file.
source code
 
post_process_include_args(context) source code
 
load_sysargs_into_context(context, argv)
Load in ROS remapping arguments as arg assignments for context.
source code
Variables
  yaml = None
  rosparam = None
  __package__ = 'roslaunch'
Function Details

convert_value(value, type_)

source code 

Convert a value from a string representation into the specified type

Parameters:
  • value (str) - string representation of value
  • type_ (str) - int, double, string, bool, or auto
Raises:
  • ValueError - if parameters are invalid

process_include_args(context)

source code 

Processes arg declarations in context and makes sure that they are properly declared for passing into an included file. Also will correctly setup the context for passing to the included file.

load_sysargs_into_context(context, argv)

source code 

Load in ROS remapping arguments as arg assignments for context.

@param context: context to load into. context's resolve_dict for 'arg' will be reinitialized with values.
@type  context: L{LoaderContext{
@param argv: command-line arguments
@type  argv: [str]