Public Member Functions | |
def | __init__ |
def | finish |
def | publish |
def | subscribe |
def | unsubscribe |
Static Public Attributes | |
list | subscribe_msg_fields |
topics_glob = None | |
list | unsubscribe_msg_fields = [(True, "topic", string_types)] |
Private Attributes | |
_subscriptions |
Definition at line 183 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 192 of file subscribe.py.
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 309 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 dict of key-value pairs. Will be wrapped in a message with opcode publish 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 275 of file subscribe.py.
def rosbridge_library.capabilities.subscribe.Subscribe.subscribe | ( | self, | |
msg | |||
) |
Definition at line 202 of file subscribe.py.
def rosbridge_library.capabilities.subscribe.Subscribe.unsubscribe | ( | self, | |
msg | |||
) |
Definition at line 244 of file subscribe.py.
Definition at line 192 of file subscribe.py.
[(True, "topic", string_types), (False, "type", string_types), (False, "throttle_rate", int), (False, "fragment_size", int), (False, "queue_length", int), (False, "compression", string_types)]
Definition at line 185 of file subscribe.py.
Definition at line 190 of file subscribe.py.
list rosbridge_library::capabilities::subscribe.Subscribe::unsubscribe_msg_fields = [(True, "topic", string_types)] [static] |
Definition at line 188 of file subscribe.py.