class _TopicImpl(object):
Known subclasses: niryo_libraries.rospy.topics._PublisherImpl, niryo_libraries.rospy.topics._SubscriberImpl
Constructor: _TopicImpl(name, data_class)
Base class of internal topic implementations. Each topic has a singleton _TopicImpl implementation for managing the underlying connections.
| Method | __del__ |
Undocumented |
| Method | __init__ |
Base constructor @param name: graph resource name of topic, e.g. 'laser'. @type name: str @param data_class: message data class @type data_class: L{Message} |
| Method | add |
Add a connection to this topic. If any previous connections to same endpoint exist, drop them. |
| Method | check |
Undocumented |
| Method | close |
close I/O |
| Method | get |
Undocumented |
| Method | get |
Get the stats for this topic (API stub) |
| Method | get |
Get the stats for this topic @return: stats for topic in getBusInfo() format: |
| Method | has |
Query whether or not a connection with the associated \x07 endpoint has been added to this object. @param endpoint_id: endpoint ID associated with connection. @type endpoint_id: str |
| Method | has |
Check to see if this topic is connected to other publishers/subscribers @return: True if topic is connected @rtype: bool |
| Method | remove |
Remove connection from topic. @param c: connection instance to remove @type c: Transport |
| Instance Variable | c |
Undocumented |
| Instance Variable | closed |
Undocumented |
| Instance Variable | connection |
Undocumented |
| Instance Variable | connections |
Undocumented |
| Instance Variable | data |
Undocumented |
| Instance Variable | handler |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | ref |
Undocumented |
| Instance Variable | resolved |
Undocumented |
| Instance Variable | seq |
Undocumented |
| Instance Variable | type |
Undocumented |
| Method | _remove |
Undocumented |
niryo_libraries.rospy.topics._PublisherImpl, niryo_libraries.rospy.topics._SubscriberImplBase constructor @param name: graph resource name of topic, e.g. 'laser'. @type name: str @param data_class: message data class @type data_class: L{Message}
niryo_libraries.rospy.topics._PublisherImplAdd a connection to this topic. If any previous connections to same endpoint exist, drop them.
@param c: connection instance @type c: Transport @return: True if connection was added, bool
niryo_libraries.rospy.topics._PublisherImpl, niryo_libraries.rospy.topics._SubscriberImplclose I/O
niryo_libraries.rospy.topics._PublisherImpl, niryo_libraries.rospy.topics._SubscriberImplGet the stats for this topic (API stub)
Get the stats for this topic @return: stats for topic in getBusInfo() format:
Publisher: ((connection_id, destination_caller_id, direction, transport, topic_name, connected, connection_info_string)*) Subscriber: ((connection_id, publisher_xmlrpc_uri, direction, transport, topic_name, connected, connection_info_string)*)
@rtype: list
Query whether or not a connection with the associated \x07 endpoint has been added to this object. @param endpoint_id: endpoint ID associated with connection. @type endpoint_id: str
Check to see if this topic is connected to other publishers/subscribers @return: True if topic is connected @rtype: bool
niryo_libraries.rospy.topics._PublisherImplRemove connection from topic. @param c: connection instance to remove @type c: Transport