Package rosmaster :: Module registrations :: Class RegistrationManager

Class RegistrationManager

source code

object --+
         |
        RegistrationManager

Stores registrations for Master.

RegistrationManager is not threadsafe, so access must be externally locked as appropriate

Instance Methods
 
__init__(self, thread_pool)
ctor.
source code
[NodeRef]
reverse_lookup(self, caller_api)
Get a NodeRef by caller_api
source code
 
get_node(self, caller_id) source code
 
register_service(self, service, caller_id, caller_api, service_api)
Register service provider
source code
 
register_publisher(self, topic, caller_id, caller_api)
Register topic publisher
source code
 
register_subscriber(self, topic, caller_id, caller_api)
Register topic subscriber
source code
 
register_param_subscriber(self, param, caller_id, caller_api)
Register param subscriber
source code
 
unregister_service(self, service, caller_id, service_api) source code
 
unregister_subscriber(self, topic, caller_id, caller_api) source code
 
unregister_publisher(self, topic, caller_id, caller_api) source code
 
unregister_param_subscriber(self, param, caller_id, caller_api) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, thread_pool)
(Constructor)

source code 

ctor.

Parameters:
  • thread_pool (ThreadPool) - thread pool for queueing tasks
Overrides: object.__init__

reverse_lookup(self, caller_api)

source code 

Get a NodeRef by caller_api

Parameters:
  • caller_api (str) - caller XML RPC URI
Returns: [NodeRef]
nodes that declare caller_api as their API. 99.9% of the time this should only be one node, but we allow for multiple matches as the master API does not restrict this.

register_service(self, service, caller_id, caller_api, service_api)

source code 

Register service provider

Returns:
None

register_publisher(self, topic, caller_id, caller_api)

source code 

Register topic publisher

Returns:
None

register_subscriber(self, topic, caller_id, caller_api)

source code 

Register topic subscriber

Returns:
None

register_param_subscriber(self, param, caller_id, caller_api)

source code 

Register param subscriber

Returns:
None