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

Module depends

source code

Utility module of roslaunch that extracts dependency information from roslaunch files, including calculating missing package dependencies.

Classes
  RoslaunchDepsException
Base exception of roslaunch.depends errors.
  RoslaunchDeps
Represents dependencies of a roslaunch file.
Functions
 
parse_launch(launch_file, file_deps, verbose) source code
 
rl_file_deps(file_deps, launch_file, verbose=False)
Generate file_deps file dependency info for the specified roslaunch file and its dependencies.
source code
 
fullusage() source code
 
print_deps(base_pkg, file_deps, verbose) source code
{ str: set(str) }
calculate_missing(base_pkg, missing, file_deps)
Calculate missing package dependencies in the manifest.
source code
 
roslaunch_deps(files, verbose=False)
@param packages: list of packages to check @type packages: [str] @param files [str]: list of roslaunch files to check.
source code
 
roslaunch_deps_main(argv=['(imported)']) source code
Variables
  NAME = 'roslaunch-deps'
  __package__ = 'roslaunch'
Function Details

rl_file_deps(file_deps, launch_file, verbose=False)

source code 

Generate file_deps file dependency info for the specified roslaunch file and its dependencies.

Parameters:
  • file_deps ({ str : RoslaunchDeps }) - dictionary mapping roslaunch filenames to roslaunch dependency information. This dictionary will be updated with dependency information.
  • verbose (bool) - if True, print verbose output
  • launch_file (str) - name of roslaunch file

calculate_missing(base_pkg, missing, file_deps)

source code 

Calculate missing package dependencies in the manifest. This is mainly used as a subroutine of roslaunch_deps().

Parameters:
  • base_pkg (str) - name of package where initial walk begins (unused).
  • missing ({ str: set(str) }) - dictionary mapping package names to set of missing package dependencies.
  • file_deps ({ str: RoslaunchDeps}) - dictionary mapping launch file names to RoslaunchDeps of each file
Returns: { str: set(str) }
missing (see parameter)

roslaunch_deps(files, verbose=False)

source code 

@param packages: list of packages to check
@type  packages: [str]
@param files [str]: list of roslaunch files to check. Must be in
  same package.
@type  files: [str]
@return: base_pkg, file_deps, missing.
  base_pkg is the package of all files
  file_deps is a { filename : RoslaunchDeps } dictionary of
    roslaunch dependency information to update, indexed by roslaunch
    file name.
   missing is a { package : [packages] } dictionary of missing
    manifest dependencies, indexed by package.
@rtype: str, dict, dict