Package rosdeb :: Module rosutil
[frames] | no frames]

Module rosutil

source code

Functions
str
checkout_svn_to_tmp(name, uri)
Checkout an SVN tree to the tmp dir.
source code
str
checkout_dev_to_tmp(name, distro_stack)
Checkout an VCS-based 'dev' code tree to the tmp dir.
source code
 
convert_html_to_text(d)
Convert a HTML description to plain text.
source code
[(str, str)]
package_manifests_of(stack_dir)
Returns: list of package names and manifest file paths for stack dir.
source code
[str]
stack_rosdeps(stack_name, stack_dir, platform)
Calculate dependencies of stack on an 'ubuntu' OS, including both ROS stacks and their rosdep dependencies, for the specified ubuntu release version.
source code
{str: [str]}
missing_stack_rosdeps(stack_name, stack_dir, platform)
Calculate list of rosdeps that are missing definitions on platform.
source code
 
send_email(smtp_server, from_addr, to_addrs, subject, text) source code
Variables
  IMPLICIT_DEPS = ['libc6', 'build-essential', 'cmake', 'python-...
  __package__ = 'rosdeb'
Function Details

checkout_svn_to_tmp(name, uri)

source code 

Checkout an SVN tree to the tmp dir.

Utility routine -- need to replace with vcs

Returns: str
temporary directory that contains checkout of SVN tree in directory 'name'. temporary directory will be a subdirectory of OS-provided temporary space.

checkout_dev_to_tmp(name, distro_stack)

source code 

Checkout an VCS-based 'dev' code tree to the tmp dir.

Returns: str
temporary directory that contains checkout of SVN tree in directory 'name'. temporary directory will be a subdirectory of OS-provided temporary space.

convert_html_to_text(d)

source code 

Convert a HTML description to plain text. This routine still has much work to do, but appears to handle the common uses of HTML in our current manifests.

package_manifests_of(stack_dir)

source code 
Returns: [(str, str)]
list of package names and manifest file paths for stack dir. These will be returned as a list of (name, path) pairs.

stack_rosdeps(stack_name, stack_dir, platform)

source code 

Calculate dependencies of stack on an 'ubuntu' OS, including both ROS stacks and their rosdep dependencies, for the specified ubuntu release version.

NOTE: one flaw in this implementation is that it uses the rosdep view from the *active environment* to generate the rosdeps. It does not generate them from specific versions of stacks. The hope is that rosdeps improve monotonically over time, so that this will not be a major issue.

Parameters:
  • platform - platform name (e.g. lucid)
Returns: [str]
list of debian package deps
Raises:
  • Exception - if stack rosdeps cannot be fully resolved

missing_stack_rosdeps(stack_name, stack_dir, platform)

source code 

Calculate list of rosdeps that are missing definitions on platform.

NOTE: one flaw in this implementation is that it uses the rosdep view from the *active environment* to generate the rosdeps. It does not generate them from specific versions of stacks. The hope is that rosdeps improve monotonically over time, so that this will not be a major issue.

Parameters:
  • platform - platform name (e.g. lucid)
Returns: {str: [str]}
dictionary mapping packages to their missing rosdep mappings

Variables Details

IMPLICIT_DEPS

Value:
['libc6', 'build-essential', 'cmake', 'python-yaml', 'subversion']