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