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