Package rospy :: Package impl :: Module tcpros_service :: Class TCPService

Class TCPService

source code

                         object --+    
                                  |    
tcpros_base.TCPROSTransportProtocol --+
                                      |
                                     TCPService

Protocol implementation for Services over TCPROS

Instance Methods
 
__init__(self, resolved_name, service_class, buff_size=65536)
ctor.
source code
dict
get_header_fields(self)
Protocol API
source code
 
read_messages(self, b, msg_queue, sock) (Inherited from rospy.impl.tcpros_base.TCPROSTransportProtocol) 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, resolved_name, service_class, buff_size=65536)
(Constructor)

source code 

ctor.

Parameters:
  • resolved_name (str) - name of service
  • service_class (Service) - Service data type class
  • buff_size (int), int - size of buffer (bytes) to use for reading incoming requests.
Overrides: object.__init__

get_header_fields(self)

source code 

Protocol API

Returns: dict
header fields
Overrides: tcpros_base.TCPROSTransportProtocol.get_header_fields