Redis Callback Handler. More...
Public Member Functions | |
def | __init__ |
def | run |
Private Attributes | |
_redis_pubsub_server | |
_remote_gateway_request_callbacks |
Redis Callback Handler.
Tunes into the redis channels that have been subscribed to and calls the apropriate callbacks.
Definition at line 91 of file hub_api.py.
def rocon_gateway.hub_api.RedisListenerThread.__init__ | ( | self, | |
redis_pubsub_server, | |||
remote_gateway_request_callbacks | |||
) |
Definition at line 96 of file hub_api.py.
def rocon_gateway.hub_api.RedisListenerThread.run | ( | self | ) |
Used as a callback for incoming requests on redis pubsub channels. The received argument is a list of strings for 'flip': - [0] - command : this one is 'flip' - [1] - remote_gateway : the name of the gateway that is flipping to us - [2] - remote_name - [3] - remote_node - [4] - type : one of ConnectionType.PUBLISHER etc - [5] - type_info : a ros format type (e.g. std_msgs/String or service api) - [6] - xmlrpc_uri : the xmlrpc node uri The command 'unflip' is the same, not including args 5 and 6.
Definition at line 101 of file hub_api.py.
Definition at line 96 of file hub_api.py.
Definition at line 96 of file hub_api.py.