Package rosh :: Package impl :: Module topic :: Class TopicNS
[frames] | no frames]

Class TopicNS

source code

         object --+    
                  |    
namespace.Namespace --+
                      |
                     TopicNS

TopicNS provides lightweight accessors to a ROS topic and its data.

Instance Methods
 
__init__(self, ns, config)
ctor.
source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
__delattr__(self)
x.__delattr__('name') <==> del x.name
source code
 
__call__(self, *args, **kwds)
Publish with a topic-style namespace object.
source code
 
__setattr__(self, key, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
__getitem__(self, key)
Dictionary-style accessor for services
source code
 
__getattribute__(self, key)
x.__getattribute__('name') <==> x.name (Inherited from rosh.impl.namespace.Namespace)
source code
 
__iter__(self) (Inherited from rosh.impl.namespace.Namespace) source code

Inherited from object: __format__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, ns, config)
(Constructor)

source code 

ctor.

Parameters:
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__delattr__(self)

source code 

x.__delattr__('name') <==> del x.name

Overrides: object.__delattr__
(inherited documentation)

__call__(self, *args, **kwds)
(Call operator)

source code 

Publish with a topic-style namespace object. Implements call functionality for ROSNamespace objects when used with topics.

Parameters:
  • args - *args
  • kwds - **kwds

__setattr__(self, key, value)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)

__getitem__(self, key)
(Indexing operator)

source code 

Dictionary-style accessor for services

Overrides: namespace.Namespace.__getitem__