_init.py
Go to the documentation of this file.
00001 """autogenerated by genpy from iri_camera_object_learner_server/initRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 
00008 class initRequest(genpy.Message):
00009   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010   _type = "iri_camera_object_learner_server/initRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """
00013 
00014 """
00015   __slots__ = []
00016   _slot_types = []
00017 
00018   def __init__(self, *args, **kwds):
00019     """
00020     Constructor. Any message fields that are implicitly/explicitly
00021     set to None will be assigned a default value. The recommend
00022     use is keyword arguments as this is more robust to future message
00023     changes.  You cannot mix in-order arguments and keyword arguments.
00024 
00025     The available fields are:
00026        
00027 
00028     :param args: complete set of field values, in .msg order
00029     :param kwds: use keyword arguments corresponding to message field names
00030     to set specific fields.
00031     """
00032     if args or kwds:
00033       super(initRequest, self).__init__(*args, **kwds)
00034 
00035   def _get_types(self):
00036     """
00037     internal API method
00038     """
00039     return self._slot_types
00040 
00041   def serialize(self, buff):
00042     """
00043     serialize message into buffer
00044     :param buff: buffer, ``StringIO``
00045     """
00046     try:
00047       pass
00048     except struct.error as se: self._check_types(se)
00049     except TypeError as te: self._check_types(te)
00050 
00051   def deserialize(self, str):
00052     """
00053     unpack serialized message in str into this message instance
00054     :param str: byte array of serialized message, ``str``
00055     """
00056     try:
00057       end = 0
00058       return self
00059     except struct.error as e:
00060       raise genpy.DeserializationError(e) #most likely buffer underfill
00061 
00062 
00063   def serialize_numpy(self, buff, numpy):
00064     """
00065     serialize message with numpy array types into buffer
00066     :param buff: buffer, ``StringIO``
00067     :param numpy: numpy python module
00068     """
00069     try:
00070       pass
00071     except struct.error as se: self._check_types(se)
00072     except TypeError as te: self._check_types(te)
00073 
00074   def deserialize_numpy(self, str, numpy):
00075     """
00076     unpack serialized message in str into this message instance using numpy for array types
00077     :param str: byte array of serialized message, ``str``
00078     :param numpy: numpy python module
00079     """
00080     try:
00081       end = 0
00082       return self
00083     except struct.error as e:
00084       raise genpy.DeserializationError(e) #most likely buffer underfill
00085 
00086 _struct_I = genpy.struct_I
00087 """autogenerated by genpy from iri_camera_object_learner_server/initResponse.msg. Do not edit."""
00088 import sys
00089 python3 = True if sys.hexversion > 0x03000000 else False
00090 import genpy
00091 import struct
00092 
00093 
00094 class initResponse(genpy.Message):
00095   _md5sum = "4425f1067abc7ec2e487d28194eccff4"
00096   _type = "iri_camera_object_learner_server/initResponse"
00097   _has_header = False #flag to mark the presence of a Header object
00098   _full_text = """
00099 int32 x
00100 int32 y
00101 int32 width
00102 int32 height
00103 
00104 
00105 """
00106   __slots__ = ['x','y','width','height']
00107   _slot_types = ['int32','int32','int32','int32']
00108 
00109   def __init__(self, *args, **kwds):
00110     """
00111     Constructor. Any message fields that are implicitly/explicitly
00112     set to None will be assigned a default value. The recommend
00113     use is keyword arguments as this is more robust to future message
00114     changes.  You cannot mix in-order arguments and keyword arguments.
00115 
00116     The available fields are:
00117        x,y,width,height
00118 
00119     :param args: complete set of field values, in .msg order
00120     :param kwds: use keyword arguments corresponding to message field names
00121     to set specific fields.
00122     """
00123     if args or kwds:
00124       super(initResponse, self).__init__(*args, **kwds)
00125       #message fields cannot be None, assign default values for those that are
00126       if self.x is None:
00127         self.x = 0
00128       if self.y is None:
00129         self.y = 0
00130       if self.width is None:
00131         self.width = 0
00132       if self.height is None:
00133         self.height = 0
00134     else:
00135       self.x = 0
00136       self.y = 0
00137       self.width = 0
00138       self.height = 0
00139 
00140   def _get_types(self):
00141     """
00142     internal API method
00143     """
00144     return self._slot_types
00145 
00146   def serialize(self, buff):
00147     """
00148     serialize message into buffer
00149     :param buff: buffer, ``StringIO``
00150     """
00151     try:
00152       _x = self
00153       buff.write(_struct_4i.pack(_x.x, _x.y, _x.width, _x.height))
00154     except struct.error as se: self._check_types(se)
00155     except TypeError as te: self._check_types(te)
00156 
00157   def deserialize(self, str):
00158     """
00159     unpack serialized message in str into this message instance
00160     :param str: byte array of serialized message, ``str``
00161     """
00162     try:
00163       end = 0
00164       _x = self
00165       start = end
00166       end += 16
00167       (_x.x, _x.y, _x.width, _x.height,) = _struct_4i.unpack(str[start:end])
00168       return self
00169     except struct.error as e:
00170       raise genpy.DeserializationError(e) #most likely buffer underfill
00171 
00172 
00173   def serialize_numpy(self, buff, numpy):
00174     """
00175     serialize message with numpy array types into buffer
00176     :param buff: buffer, ``StringIO``
00177     :param numpy: numpy python module
00178     """
00179     try:
00180       _x = self
00181       buff.write(_struct_4i.pack(_x.x, _x.y, _x.width, _x.height))
00182     except struct.error as se: self._check_types(se)
00183     except TypeError as te: self._check_types(te)
00184 
00185   def deserialize_numpy(self, str, numpy):
00186     """
00187     unpack serialized message in str into this message instance using numpy for array types
00188     :param str: byte array of serialized message, ``str``
00189     :param numpy: numpy python module
00190     """
00191     try:
00192       end = 0
00193       _x = self
00194       start = end
00195       end += 16
00196       (_x.x, _x.y, _x.width, _x.height,) = _struct_4i.unpack(str[start:end])
00197       return self
00198     except struct.error as e:
00199       raise genpy.DeserializationError(e) #most likely buffer underfill
00200 
00201 _struct_I = genpy.struct_I
00202 _struct_4i = struct.Struct("<4i")
00203 class init(object):
00204   _type          = 'iri_camera_object_learner_server/init'
00205   _md5sum = '4425f1067abc7ec2e487d28194eccff4'
00206   _request_class  = initRequest
00207   _response_class = initResponse


iri_camera_object_learner_server
Author(s): fherrero
autogenerated on Fri Dec 6 2013 20:57:32