Public Member Functions | Private Attributes | List of all members
rosbridge_library.internal.subscribers.SubscriberManager Class Reference

Public Member Functions

def __init__ (self)
 
def subscribe (self, client_id, topic, callback, msg_type=None)
 
def unsubscribe (self, client_id, topic)
 

Private Attributes

 _lock
 
 _subscribers
 

Detailed Description

Keeps track of client subscriptions

Definition at line 180 of file subscribers.py.

Constructor & Destructor Documentation

◆ __init__()

def rosbridge_library.internal.subscribers.SubscriberManager.__init__ (   self)

Definition at line 185 of file subscribers.py.

Member Function Documentation

◆ subscribe()

def rosbridge_library.internal.subscribers.SubscriberManager.subscribe (   self,
  client_id,
  topic,
  callback,
  msg_type = None 
)
Subscribe to a topic

Keyword arguments:
client_id -- the ID of the client making this subscribe request
topic     -- the name of the topic to subscribe to
callback  -- the callback to call for incoming messages on the topic
msg_type  -- (optional) the type of the topic

Definition at line 189 of file subscribers.py.

◆ unsubscribe()

def rosbridge_library.internal.subscribers.SubscriberManager.unsubscribe (   self,
  client_id,
  topic 
)
Unsubscribe from a topic

Keyword arguments:
client_id -- the ID of the client to unsubscribe
topic     -- the topic to unsubscribe from

Definition at line 208 of file subscribers.py.

Member Data Documentation

◆ _lock

rosbridge_library.internal.subscribers.SubscriberManager._lock
private

Definition at line 186 of file subscribers.py.

◆ _subscribers

rosbridge_library.internal.subscribers.SubscriberManager._subscribers
private

Definition at line 187 of file subscribers.py.


The documentation for this class was generated from the following file:


rosbridge_library
Author(s): Jonathan Mace
autogenerated on Tue Oct 3 2023 02:12:45