Server Class. More...
Public Member Functions | |
def | __init__ |
Initialisation. | |
def | reply |
Public Methods. | |
Public Attributes | |
ServicePairRequest | |
ServicePairResponse | |
ServicePairSpec | |
Private Member Functions | |
def | _internal_callback |
Callbacks. | |
Private Attributes | |
_callback | |
_publisher | |
_subscriber | |
_use_threads | |
Static Private Attributes | |
list | __slots__ |
Server Class.
The server side of a pubsub service pair.
Definition at line 20 of file src/rocon_python_comms/service_pair_server.py.
def rocon_python_comms.service_pair_server.ServicePairServer.__init__ | ( | self, | |
name, | |||
callback, | |||
ServicePairSpec, | |||
use_threads = False |
|||
) |
Initialisation.
@param name : resource name of service pair (e.g. testies for pair topics testies/request, testies/response) @type str @param callback : function invoked when a request arrives @param ServicePairSpec : the pair type (e.g. rocon_service_pair_msgs.msg.TestiesPair) @type str
Definition at line 39 of file src/rocon_python_comms/service_pair_server.py.
def rocon_python_comms.service_pair_server.ServicePairServer._internal_callback | ( | self, | |
msg | |||
) | [private] |
Callbacks.
@param msg : message returned from the server (with pair id etc) @type self.ServicePairRequest
Definition at line 80 of file src/rocon_python_comms/service_pair_server.py.
def rocon_python_comms.service_pair_server.ServicePairServer.reply | ( | self, | |
request_id, | |||
msg | |||
) |
Public Methods.
@param request_id : the request id to associate with this response. @type uuid_msgs.UniqueID @param msg : the response @type ServiceResponse
Definition at line 63 of file src/rocon_python_comms/service_pair_server.py.
list rocon_python_comms::service_pair_server.ServicePairServer::__slots__ [static, private] |
[ '_publisher', '_subscriber', '_callback', '_use_threads', #'_request_handlers', # initiate, track and execute requests with these { hex string ids : dic of RequestHandler objects (Blocking/NonBlocking) } 'ServicePairSpec', 'ServicePairRequest', 'ServicePairResponse', ]
Definition at line 24 of file src/rocon_python_comms/service_pair_server.py.
Definition at line 45 of file src/rocon_python_comms/service_pair_server.py.
Definition at line 45 of file src/rocon_python_comms/service_pair_server.py.
Definition at line 45 of file src/rocon_python_comms/service_pair_server.py.
Definition at line 45 of file src/rocon_python_comms/service_pair_server.py.
Definition at line 45 of file src/rocon_python_comms/service_pair_server.py.
Definition at line 45 of file src/rocon_python_comms/service_pair_server.py.
Definition at line 45 of file src/rocon_python_comms/service_pair_server.py.