Package rosh :: Package impl :: Module namespace
[frames] | no frames]

Module namespace

source code

Generic namespace model for ROS. This powers most of rosh by enabling iPython tab-complete on a ROS namespace'd resource (e.g. topics, services, parameters).

Classes
  Context
ROSH context instance.
  NamespaceConfig
NamespaceConfig is a configuration object for a Namespace instance, storing common data structures and objects that all Namespace instances need.
  Namespace
Namespace provides lightweight accessors to a ROS namespace and its data.
  Concept
  ResourceList
A ResourceList presents a IPython tab-completable list of resources as if they are attributes.
  NSResourceList
NSResourceList is a constrained version of a Namespace instance and can be used to create a view against a larger Namespace.
Functions
 
rostype(ns_obj, type_=None)
Get or set the ROS type of an object.
source code
 
info(ns_obj) source code
Variables
  __package__ = 'rosh.impl'
Function Details

rostype(ns_obj, type_=None)

source code 

Get or set the ROS type of an object. This is generally associated with Namespace instances that have associated types.

Parameters:
  • type_ - (optional) set type of object to type_, if possible
Raises:
  • TypeError - if type_ is not of the correct type
  • ROSHException - if type cannot be set