Package roswtf :: Module context :: Class WtfContext
[frames] | no frames]

Class WtfContext

source code

object --+
         |
        WtfContext

WtfContext stores common state about the ROS filesystem and online environment. The primary use of this is for convenience (not having to load this state manually) and performance (not having to do the same calculation repeatedly).

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
dict
as_dictionary(self)
Returns: dictionary representation of context, which is useful for producing error messages
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
from_roslaunch(roslaunch_files, env=None) source code
 
from_stack(stack, env=None)
Initialize WtfContext from stack.
source code
 
from_package(pkg, env=None)
Initialize WtfContext from package name.
source code
 
from_env(env=None)
Initialize WtfContext from environment.
source code
Properties
  actual_edges
  env
  errors
  expected_edges
  launch_file_deps
  launch_file_missing_deps
  launch_files
  manifest
  manifest_file
  nodes
  pkg
  pkg_dir
  pkgs
  pythonpath
  ros_master_uri
  ros_package_path
  ros_root
  roslaunch_uris
  rospack
  rosstack
  service_providers
  services
  stack
  stack_dir
  stacks
  system_state
  topics
  unconnected_subscriptions
  uri_node_map
  use_sim_time
  warnings

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

as_dictionary(self)

source code 
Returns: dict
dictionary representation of context, which is useful for producing error messages

from_roslaunch(roslaunch_files, env=None)
Static Method

source code 
Parameters:
  • roslaunch_file (str) - roslaunch_file to load from

from_stack(stack, env=None)
Static Method

source code 

Initialize WtfContext from stack.

Parameters:
  • stack (str) - stack name
Raises:

from_package(pkg, env=None)
Static Method

source code 

Initialize WtfContext from package name.

Parameters:
  • pkg (str) - package name
Raises:

from_env(env=None)
Static Method

source code 

Initialize WtfContext from environment.

Raises: