Public Member Functions | |
def | __init__ |
def | finish |
def | publish |
def | subscribe |
def | unsubscribe |
Static Public Attributes | |
list | subscribe_msg_fields |
list | unsubscribe_msg_fields = [(True, "topic", (str, unicode))] |
Private Attributes | |
_subscriptions |
Definition at line 179 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 186 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 260 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 240 of file subscribe.py.
def rosbridge_library.capabilities.subscribe.Subscribe.subscribe | ( | self, | |
msg | |||
) |
Definition at line 196 of file subscribe.py.
def rosbridge_library.capabilities.subscribe.Subscribe.unsubscribe | ( | self, | |
msg | |||
) |
Definition at line 223 of file subscribe.py.
Definition at line 186 of file subscribe.py.
[(True, "topic", (str, unicode)), (False, "type", (str, unicode)), (False, "throttle_rate", int), (False, "fragment_size", int), (False, "queue_length", int), (False, "compression", (str, unicode))]
Definition at line 181 of file subscribe.py.
list rosbridge_library::capabilities::subscribe.Subscribe::unsubscribe_msg_fields = [(True, "topic", (str, unicode))] [static] |
Definition at line 184 of file subscribe.py.