Package master_discovery_fkie :: Module master_info :: Class TopicInfo
[frames] | no frames]

Class TopicInfo

source code

object --+
         |
        TopicInfo

The TopicInfo class stores informations about a ROS topic.

Instance Methods
 
__init__(self, name)
Creates a new TopicInfo for a topic with given name.
source code
TopicInfo
copy(self)
Creates a copy this object and returns it.
source code

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

Instance Variables
  type
the type of the topic.
Properties
str name
Returns the name of the topic.
[str,...] publisherNodes
Returns the list with node names witch are publishing to this topic.
[str,...] subscriberNodes
Returns the list with node names witch are subscribed to this topic.

Inherited from object: __class__

Method Details

__init__(self, name)
(Constructor)

source code 

Creates a new TopicInfo for a topic with given name.

Parameters:
  • name (str) - the name of the topic
Overrides: object.__init__

Instance Variable Details

type

the type of the topic. (Default: None)

Property Details

name

Returns the name of the topic.

Get Method:
unreachable.name(self) - Returns the name of the topic.
Type:
str

publisherNodes

Returns the list with node names witch are publishing to this topic.

Get Method:
unreachable.publisherNodes(self) - Returns the list with node names witch are publishing to this topic.
Set Method:
unreachable.publisherNodes(self, name) - Append a new publishing node to this topic.
Type:
[str,...]

subscriberNodes

Returns the list with node names witch are subscribed to this topic.

Get Method:
unreachable.subscriberNodes(self) - Returns the list with node names witch are subscribed to this topic.
Set Method:
unreachable.subscriberNodes(self, name) - Append a new subscribing node to this topic.
Type:
[str,...]