00001 """autogenerated by genpy from cob_camera_sensors/GetTOFImagesRequest.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 GetTOFImagesRequest(genpy.Message):
00009 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010 _type = "cob_camera_sensors/GetTOFImagesRequest"
00011 _has_header = False
00012 _full_text = """
00013 """
00014 __slots__ = []
00015 _slot_types = []
00016
00017 def __init__(self, *args, **kwds):
00018 """
00019 Constructor. Any message fields that are implicitly/explicitly
00020 set to None will be assigned a default value. The recommend
00021 use is keyword arguments as this is more robust to future message
00022 changes. You cannot mix in-order arguments and keyword arguments.
00023
00024 The available fields are:
00025
00026
00027 :param args: complete set of field values, in .msg order
00028 :param kwds: use keyword arguments corresponding to message field names
00029 to set specific fields.
00030 """
00031 if args or kwds:
00032 super(GetTOFImagesRequest, self).__init__(*args, **kwds)
00033
00034 def _get_types(self):
00035 """
00036 internal API method
00037 """
00038 return self._slot_types
00039
00040 def serialize(self, buff):
00041 """
00042 serialize message into buffer
00043 :param buff: buffer, ``StringIO``
00044 """
00045 try:
00046 pass
00047 except struct.error as se: self._check_types(se)
00048 except TypeError as te: self._check_types(te)
00049
00050 def deserialize(self, str):
00051 """
00052 unpack serialized message in str into this message instance
00053 :param str: byte array of serialized message, ``str``
00054 """
00055 try:
00056 end = 0
00057 return self
00058 except struct.error as e:
00059 raise genpy.DeserializationError(e)
00060
00061
00062 def serialize_numpy(self, buff, numpy):
00063 """
00064 serialize message with numpy array types into buffer
00065 :param buff: buffer, ``StringIO``
00066 :param numpy: numpy python module
00067 """
00068 try:
00069 pass
00070 except struct.error as se: self._check_types(se)
00071 except TypeError as te: self._check_types(te)
00072
00073 def deserialize_numpy(self, str, numpy):
00074 """
00075 unpack serialized message in str into this message instance using numpy for array types
00076 :param str: byte array of serialized message, ``str``
00077 :param numpy: numpy python module
00078 """
00079 try:
00080 end = 0
00081 return self
00082 except struct.error as e:
00083 raise genpy.DeserializationError(e)
00084
00085 _struct_I = genpy.struct_I
00086 """autogenerated by genpy from cob_camera_sensors/GetTOFImagesResponse.msg. Do not edit."""
00087 import sys
00088 python3 = True if sys.hexversion > 0x03000000 else False
00089 import genpy
00090 import struct
00091
00092 import std_msgs.msg
00093 import sensor_msgs.msg
00094
00095 class GetTOFImagesResponse(genpy.Message):
00096 _md5sum = "245ce4e6dd0ec61a5c674c8191a91877"
00097 _type = "cob_camera_sensors/GetTOFImagesResponse"
00098 _has_header = False
00099 _full_text = """sensor_msgs/Image greyImage
00100 sensor_msgs/Image xyzImage
00101
00102
00103 ================================================================================
00104 MSG: sensor_msgs/Image
00105 # This message contains an uncompressed image
00106 # (0, 0) is at top-left corner of image
00107 #
00108
00109 Header header # Header timestamp should be acquisition time of image
00110 # Header frame_id should be optical frame of camera
00111 # origin of frame should be optical center of cameara
00112 # +x should point to the right in the image
00113 # +y should point down in the image
00114 # +z should point into to plane of the image
00115 # If the frame_id here and the frame_id of the CameraInfo
00116 # message associated with the image conflict
00117 # the behavior is undefined
00118
00119 uint32 height # image height, that is, number of rows
00120 uint32 width # image width, that is, number of columns
00121
00122 # The legal values for encoding are in file src/image_encodings.cpp
00123 # If you want to standardize a new string format, join
00124 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.
00125
00126 string encoding # Encoding of pixels -- channel meaning, ordering, size
00127 # taken from the list of strings in src/image_encodings.cpp
00128
00129 uint8 is_bigendian # is this data bigendian?
00130 uint32 step # Full row length in bytes
00131 uint8[] data # actual matrix data, size is (step * rows)
00132
00133 ================================================================================
00134 MSG: std_msgs/Header
00135 # Standard metadata for higher-level stamped data types.
00136 # This is generally used to communicate timestamped data
00137 # in a particular coordinate frame.
00138 #
00139 # sequence ID: consecutively increasing ID
00140 uint32 seq
00141 #Two-integer timestamp that is expressed as:
00142 # * stamp.secs: seconds (stamp_secs) since epoch
00143 # * stamp.nsecs: nanoseconds since stamp_secs
00144 # time-handling sugar is provided by the client library
00145 time stamp
00146 #Frame this data is associated with
00147 # 0: no frame
00148 # 1: global frame
00149 string frame_id
00150
00151 """
00152 __slots__ = ['greyImage','xyzImage']
00153 _slot_types = ['sensor_msgs/Image','sensor_msgs/Image']
00154
00155 def __init__(self, *args, **kwds):
00156 """
00157 Constructor. Any message fields that are implicitly/explicitly
00158 set to None will be assigned a default value. The recommend
00159 use is keyword arguments as this is more robust to future message
00160 changes. You cannot mix in-order arguments and keyword arguments.
00161
00162 The available fields are:
00163 greyImage,xyzImage
00164
00165 :param args: complete set of field values, in .msg order
00166 :param kwds: use keyword arguments corresponding to message field names
00167 to set specific fields.
00168 """
00169 if args or kwds:
00170 super(GetTOFImagesResponse, self).__init__(*args, **kwds)
00171
00172 if self.greyImage is None:
00173 self.greyImage = sensor_msgs.msg.Image()
00174 if self.xyzImage is None:
00175 self.xyzImage = sensor_msgs.msg.Image()
00176 else:
00177 self.greyImage = sensor_msgs.msg.Image()
00178 self.xyzImage = sensor_msgs.msg.Image()
00179
00180 def _get_types(self):
00181 """
00182 internal API method
00183 """
00184 return self._slot_types
00185
00186 def serialize(self, buff):
00187 """
00188 serialize message into buffer
00189 :param buff: buffer, ``StringIO``
00190 """
00191 try:
00192 _x = self
00193 buff.write(_struct_3I.pack(_x.greyImage.header.seq, _x.greyImage.header.stamp.secs, _x.greyImage.header.stamp.nsecs))
00194 _x = self.greyImage.header.frame_id
00195 length = len(_x)
00196 if python3 or type(_x) == unicode:
00197 _x = _x.encode('utf-8')
00198 length = len(_x)
00199 buff.write(struct.pack('<I%ss'%length, length, _x))
00200 _x = self
00201 buff.write(_struct_2I.pack(_x.greyImage.height, _x.greyImage.width))
00202 _x = self.greyImage.encoding
00203 length = len(_x)
00204 if python3 or type(_x) == unicode:
00205 _x = _x.encode('utf-8')
00206 length = len(_x)
00207 buff.write(struct.pack('<I%ss'%length, length, _x))
00208 _x = self
00209 buff.write(_struct_BI.pack(_x.greyImage.is_bigendian, _x.greyImage.step))
00210 _x = self.greyImage.data
00211 length = len(_x)
00212
00213 if type(_x) in [list, tuple]:
00214 buff.write(struct.pack('<I%sB'%length, length, *_x))
00215 else:
00216 buff.write(struct.pack('<I%ss'%length, length, _x))
00217 _x = self
00218 buff.write(_struct_3I.pack(_x.xyzImage.header.seq, _x.xyzImage.header.stamp.secs, _x.xyzImage.header.stamp.nsecs))
00219 _x = self.xyzImage.header.frame_id
00220 length = len(_x)
00221 if python3 or type(_x) == unicode:
00222 _x = _x.encode('utf-8')
00223 length = len(_x)
00224 buff.write(struct.pack('<I%ss'%length, length, _x))
00225 _x = self
00226 buff.write(_struct_2I.pack(_x.xyzImage.height, _x.xyzImage.width))
00227 _x = self.xyzImage.encoding
00228 length = len(_x)
00229 if python3 or type(_x) == unicode:
00230 _x = _x.encode('utf-8')
00231 length = len(_x)
00232 buff.write(struct.pack('<I%ss'%length, length, _x))
00233 _x = self
00234 buff.write(_struct_BI.pack(_x.xyzImage.is_bigendian, _x.xyzImage.step))
00235 _x = self.xyzImage.data
00236 length = len(_x)
00237
00238 if type(_x) in [list, tuple]:
00239 buff.write(struct.pack('<I%sB'%length, length, *_x))
00240 else:
00241 buff.write(struct.pack('<I%ss'%length, length, _x))
00242 except struct.error as se: self._check_types(se)
00243 except TypeError as te: self._check_types(te)
00244
00245 def deserialize(self, str):
00246 """
00247 unpack serialized message in str into this message instance
00248 :param str: byte array of serialized message, ``str``
00249 """
00250 try:
00251 if self.greyImage is None:
00252 self.greyImage = sensor_msgs.msg.Image()
00253 if self.xyzImage is None:
00254 self.xyzImage = sensor_msgs.msg.Image()
00255 end = 0
00256 _x = self
00257 start = end
00258 end += 12
00259 (_x.greyImage.header.seq, _x.greyImage.header.stamp.secs, _x.greyImage.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00260 start = end
00261 end += 4
00262 (length,) = _struct_I.unpack(str[start:end])
00263 start = end
00264 end += length
00265 if python3:
00266 self.greyImage.header.frame_id = str[start:end].decode('utf-8')
00267 else:
00268 self.greyImage.header.frame_id = str[start:end]
00269 _x = self
00270 start = end
00271 end += 8
00272 (_x.greyImage.height, _x.greyImage.width,) = _struct_2I.unpack(str[start:end])
00273 start = end
00274 end += 4
00275 (length,) = _struct_I.unpack(str[start:end])
00276 start = end
00277 end += length
00278 if python3:
00279 self.greyImage.encoding = str[start:end].decode('utf-8')
00280 else:
00281 self.greyImage.encoding = str[start:end]
00282 _x = self
00283 start = end
00284 end += 5
00285 (_x.greyImage.is_bigendian, _x.greyImage.step,) = _struct_BI.unpack(str[start:end])
00286 start = end
00287 end += 4
00288 (length,) = _struct_I.unpack(str[start:end])
00289 start = end
00290 end += length
00291 if python3:
00292 self.greyImage.data = str[start:end].decode('utf-8')
00293 else:
00294 self.greyImage.data = str[start:end]
00295 _x = self
00296 start = end
00297 end += 12
00298 (_x.xyzImage.header.seq, _x.xyzImage.header.stamp.secs, _x.xyzImage.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00299 start = end
00300 end += 4
00301 (length,) = _struct_I.unpack(str[start:end])
00302 start = end
00303 end += length
00304 if python3:
00305 self.xyzImage.header.frame_id = str[start:end].decode('utf-8')
00306 else:
00307 self.xyzImage.header.frame_id = str[start:end]
00308 _x = self
00309 start = end
00310 end += 8
00311 (_x.xyzImage.height, _x.xyzImage.width,) = _struct_2I.unpack(str[start:end])
00312 start = end
00313 end += 4
00314 (length,) = _struct_I.unpack(str[start:end])
00315 start = end
00316 end += length
00317 if python3:
00318 self.xyzImage.encoding = str[start:end].decode('utf-8')
00319 else:
00320 self.xyzImage.encoding = str[start:end]
00321 _x = self
00322 start = end
00323 end += 5
00324 (_x.xyzImage.is_bigendian, _x.xyzImage.step,) = _struct_BI.unpack(str[start:end])
00325 start = end
00326 end += 4
00327 (length,) = _struct_I.unpack(str[start:end])
00328 start = end
00329 end += length
00330 if python3:
00331 self.xyzImage.data = str[start:end].decode('utf-8')
00332 else:
00333 self.xyzImage.data = str[start:end]
00334 return self
00335 except struct.error as e:
00336 raise genpy.DeserializationError(e)
00337
00338
00339 def serialize_numpy(self, buff, numpy):
00340 """
00341 serialize message with numpy array types into buffer
00342 :param buff: buffer, ``StringIO``
00343 :param numpy: numpy python module
00344 """
00345 try:
00346 _x = self
00347 buff.write(_struct_3I.pack(_x.greyImage.header.seq, _x.greyImage.header.stamp.secs, _x.greyImage.header.stamp.nsecs))
00348 _x = self.greyImage.header.frame_id
00349 length = len(_x)
00350 if python3 or type(_x) == unicode:
00351 _x = _x.encode('utf-8')
00352 length = len(_x)
00353 buff.write(struct.pack('<I%ss'%length, length, _x))
00354 _x = self
00355 buff.write(_struct_2I.pack(_x.greyImage.height, _x.greyImage.width))
00356 _x = self.greyImage.encoding
00357 length = len(_x)
00358 if python3 or type(_x) == unicode:
00359 _x = _x.encode('utf-8')
00360 length = len(_x)
00361 buff.write(struct.pack('<I%ss'%length, length, _x))
00362 _x = self
00363 buff.write(_struct_BI.pack(_x.greyImage.is_bigendian, _x.greyImage.step))
00364 _x = self.greyImage.data
00365 length = len(_x)
00366
00367 if type(_x) in [list, tuple]:
00368 buff.write(struct.pack('<I%sB'%length, length, *_x))
00369 else:
00370 buff.write(struct.pack('<I%ss'%length, length, _x))
00371 _x = self
00372 buff.write(_struct_3I.pack(_x.xyzImage.header.seq, _x.xyzImage.header.stamp.secs, _x.xyzImage.header.stamp.nsecs))
00373 _x = self.xyzImage.header.frame_id
00374 length = len(_x)
00375 if python3 or type(_x) == unicode:
00376 _x = _x.encode('utf-8')
00377 length = len(_x)
00378 buff.write(struct.pack('<I%ss'%length, length, _x))
00379 _x = self
00380 buff.write(_struct_2I.pack(_x.xyzImage.height, _x.xyzImage.width))
00381 _x = self.xyzImage.encoding
00382 length = len(_x)
00383 if python3 or type(_x) == unicode:
00384 _x = _x.encode('utf-8')
00385 length = len(_x)
00386 buff.write(struct.pack('<I%ss'%length, length, _x))
00387 _x = self
00388 buff.write(_struct_BI.pack(_x.xyzImage.is_bigendian, _x.xyzImage.step))
00389 _x = self.xyzImage.data
00390 length = len(_x)
00391
00392 if type(_x) in [list, tuple]:
00393 buff.write(struct.pack('<I%sB'%length, length, *_x))
00394 else:
00395 buff.write(struct.pack('<I%ss'%length, length, _x))
00396 except struct.error as se: self._check_types(se)
00397 except TypeError as te: self._check_types(te)
00398
00399 def deserialize_numpy(self, str, numpy):
00400 """
00401 unpack serialized message in str into this message instance using numpy for array types
00402 :param str: byte array of serialized message, ``str``
00403 :param numpy: numpy python module
00404 """
00405 try:
00406 if self.greyImage is None:
00407 self.greyImage = sensor_msgs.msg.Image()
00408 if self.xyzImage is None:
00409 self.xyzImage = sensor_msgs.msg.Image()
00410 end = 0
00411 _x = self
00412 start = end
00413 end += 12
00414 (_x.greyImage.header.seq, _x.greyImage.header.stamp.secs, _x.greyImage.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00415 start = end
00416 end += 4
00417 (length,) = _struct_I.unpack(str[start:end])
00418 start = end
00419 end += length
00420 if python3:
00421 self.greyImage.header.frame_id = str[start:end].decode('utf-8')
00422 else:
00423 self.greyImage.header.frame_id = str[start:end]
00424 _x = self
00425 start = end
00426 end += 8
00427 (_x.greyImage.height, _x.greyImage.width,) = _struct_2I.unpack(str[start:end])
00428 start = end
00429 end += 4
00430 (length,) = _struct_I.unpack(str[start:end])
00431 start = end
00432 end += length
00433 if python3:
00434 self.greyImage.encoding = str[start:end].decode('utf-8')
00435 else:
00436 self.greyImage.encoding = str[start:end]
00437 _x = self
00438 start = end
00439 end += 5
00440 (_x.greyImage.is_bigendian, _x.greyImage.step,) = _struct_BI.unpack(str[start:end])
00441 start = end
00442 end += 4
00443 (length,) = _struct_I.unpack(str[start:end])
00444 start = end
00445 end += length
00446 if python3:
00447 self.greyImage.data = str[start:end].decode('utf-8')
00448 else:
00449 self.greyImage.data = str[start:end]
00450 _x = self
00451 start = end
00452 end += 12
00453 (_x.xyzImage.header.seq, _x.xyzImage.header.stamp.secs, _x.xyzImage.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00454 start = end
00455 end += 4
00456 (length,) = _struct_I.unpack(str[start:end])
00457 start = end
00458 end += length
00459 if python3:
00460 self.xyzImage.header.frame_id = str[start:end].decode('utf-8')
00461 else:
00462 self.xyzImage.header.frame_id = str[start:end]
00463 _x = self
00464 start = end
00465 end += 8
00466 (_x.xyzImage.height, _x.xyzImage.width,) = _struct_2I.unpack(str[start:end])
00467 start = end
00468 end += 4
00469 (length,) = _struct_I.unpack(str[start:end])
00470 start = end
00471 end += length
00472 if python3:
00473 self.xyzImage.encoding = str[start:end].decode('utf-8')
00474 else:
00475 self.xyzImage.encoding = str[start:end]
00476 _x = self
00477 start = end
00478 end += 5
00479 (_x.xyzImage.is_bigendian, _x.xyzImage.step,) = _struct_BI.unpack(str[start:end])
00480 start = end
00481 end += 4
00482 (length,) = _struct_I.unpack(str[start:end])
00483 start = end
00484 end += length
00485 if python3:
00486 self.xyzImage.data = str[start:end].decode('utf-8')
00487 else:
00488 self.xyzImage.data = str[start:end]
00489 return self
00490 except struct.error as e:
00491 raise genpy.DeserializationError(e)
00492
00493 _struct_I = genpy.struct_I
00494 _struct_3I = struct.Struct("<3I")
00495 _struct_2I = struct.Struct("<2I")
00496 _struct_BI = struct.Struct("<BI")
00497 class GetTOFImages(object):
00498 _type = 'cob_camera_sensors/GetTOFImages'
00499 _md5sum = '245ce4e6dd0ec61a5c674c8191a91877'
00500 _request_class = GetTOFImagesRequest
00501 _response_class = GetTOFImagesResponse