
| Public Member Functions | |
| def | __init__ (self, protocol) | 
| def | finish (self) | 
| def | publish (self, topic, message, fragment_size=None, compression="none") | 
| def | subscribe (self, msg) | 
| def | unsubscribe (self, msg) | 
|  Public Member Functions inherited from rosbridge_library.capability.Capability | |
| def | basic_type_check (self, msg, types_info) | 
| def | handle_message (self, message) | 
| Static Public Attributes | |
| list | subscribe_msg_fields | 
| topics_glob = None | |
| list | unsubscribe_msg_fields = [(True, "topic", string_types)] | 
| Private Attributes | |
| _subscriptions | |
| Additional Inherited Members | |
|  Public Attributes inherited from rosbridge_library.capability.Capability | |
| protocol | |
Definition at line 195 of file subscribe.py.
| def rosbridge_library.capabilities.subscribe.Subscribe.__init__ | ( | self, | |
| protocol | |||
| ) | 
Abstract class constructor. All capabilities require a handle to the containing protocol. Keyword arguments: protocol -- the protocol instance for this capability instance
Reimplemented from rosbridge_library.capability.Capability.
Definition at line 204 of file subscribe.py.
| def rosbridge_library.capabilities.subscribe.Subscribe.finish | ( | self | ) | 
Notify this capability that the client is finished and that it's time to free up resources.
Reimplemented from rosbridge_library.capability.Capability.
Definition at line 302 of file subscribe.py.
| def rosbridge_library.capabilities.subscribe.Subscribe.publish | ( | self, | |
| topic, | |||
| message, | |||
| fragment_size = None, | |||
| compression = "none" | |||
| ) | 
Publish a message to the client Keyword arguments: topic -- the topic to publish the message on message -- a ROS message wrapped by OutgoingMessage fragment_size -- (optional) fragment the serialized message into msgs with payloads not greater than this value compression -- (optional) compress the message. valid values are 'png' and 'none'
Definition at line 274 of file subscribe.py.
| def rosbridge_library.capabilities.subscribe.Subscribe.subscribe | ( | self, | |
| msg | |||
| ) | 
Definition at line 214 of file subscribe.py.
| def rosbridge_library.capabilities.subscribe.Subscribe.unsubscribe | ( | self, | |
| msg | |||
| ) | 
Definition at line 256 of file subscribe.py.
| 
 | private | 
Definition at line 212 of file subscribe.py.
| 
 | static | 
Definition at line 197 of file subscribe.py.
| 
 | static | 
Definition at line 202 of file subscribe.py.
| 
 | static | 
Definition at line 200 of file subscribe.py.