Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
rocon_python_comms.service_pair_server.ServicePairServer Class Reference

Server Class. More...

List of all members.

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__

Detailed Description

Server Class.

  The server side of a pubsub service pair.

Definition at line 20 of file src/rocon_python_comms/service_pair_server.py.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

Initial value:
[
            '_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.


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


rocon_python_comms
Author(s): Daniel Stonier
autogenerated on Fri May 2 2014 10:35:42