00001 """autogenerated by genpy from kinect_cleanup/GetReleasedObjectRequest.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 GetReleasedObjectRequest(genpy.Message):
00009 _md5sum = "3e493341bcee639fdb2fd08b67255b60"
00010 _type = "kinect_cleanup/GetReleasedObjectRequest"
00011 _has_header = False
00012 _full_text = """bool object_released
00013
00014 """
00015 __slots__ = ['object_released']
00016 _slot_types = ['bool']
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 object_released
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(GetReleasedObjectRequest, self).__init__(*args, **kwds)
00034
00035 if self.object_released is None:
00036 self.object_released = False
00037 else:
00038 self.object_released = False
00039
00040 def _get_types(self):
00041 """
00042 internal API method
00043 """
00044 return self._slot_types
00045
00046 def serialize(self, buff):
00047 """
00048 serialize message into buffer
00049 :param buff: buffer, ``StringIO``
00050 """
00051 try:
00052 buff.write(_struct_B.pack(self.object_released))
00053 except struct.error as se: self._check_types(se)
00054 except TypeError as te: self._check_types(te)
00055
00056 def deserialize(self, str):
00057 """
00058 unpack serialized message in str into this message instance
00059 :param str: byte array of serialized message, ``str``
00060 """
00061 try:
00062 end = 0
00063 start = end
00064 end += 1
00065 (self.object_released,) = _struct_B.unpack(str[start:end])
00066 self.object_released = bool(self.object_released)
00067 return self
00068 except struct.error as e:
00069 raise genpy.DeserializationError(e)
00070
00071
00072 def serialize_numpy(self, buff, numpy):
00073 """
00074 serialize message with numpy array types into buffer
00075 :param buff: buffer, ``StringIO``
00076 :param numpy: numpy python module
00077 """
00078 try:
00079 buff.write(_struct_B.pack(self.object_released))
00080 except struct.error as se: self._check_types(se)
00081 except TypeError as te: self._check_types(te)
00082
00083 def deserialize_numpy(self, str, numpy):
00084 """
00085 unpack serialized message in str into this message instance using numpy for array types
00086 :param str: byte array of serialized message, ``str``
00087 :param numpy: numpy python module
00088 """
00089 try:
00090 end = 0
00091 start = end
00092 end += 1
00093 (self.object_released,) = _struct_B.unpack(str[start:end])
00094 self.object_released = bool(self.object_released)
00095 return self
00096 except struct.error as e:
00097 raise genpy.DeserializationError(e)
00098
00099 _struct_I = genpy.struct_I
00100 _struct_B = struct.Struct("<B")
00101 """autogenerated by genpy from kinect_cleanup/GetReleasedObjectResponse.msg. Do not edit."""
00102 import sys
00103 python3 = True if sys.hexversion > 0x03000000 else False
00104 import genpy
00105 import struct
00106
00107 import std_msgs.msg
00108 import sensor_msgs.msg
00109
00110 class GetReleasedObjectResponse(genpy.Message):
00111 _md5sum = "b7057f208380fae2e08a5467f1ccb1c4"
00112 _type = "kinect_cleanup/GetReleasedObjectResponse"
00113 _has_header = False
00114 _full_text = """sensor_msgs/PointCloud2 object
00115
00116
00117 ================================================================================
00118 MSG: sensor_msgs/PointCloud2
00119 # This message holds a collection of N-dimensional points, which may
00120 # contain additional information such as normals, intensity, etc. The
00121 # point data is stored as a binary blob, its layout described by the
00122 # contents of the "fields" array.
00123
00124 # The point cloud data may be organized 2d (image-like) or 1d
00125 # (unordered). Point clouds organized as 2d images may be produced by
00126 # camera depth sensors such as stereo or time-of-flight.
00127
00128 # Time of sensor data acquisition, and the coordinate frame ID (for 3d
00129 # points).
00130 Header header
00131
00132 # 2D structure of the point cloud. If the cloud is unordered, height is
00133 # 1 and width is the length of the point cloud.
00134 uint32 height
00135 uint32 width
00136
00137 # Describes the channels and their layout in the binary data blob.
00138 PointField[] fields
00139
00140 bool is_bigendian # Is this data bigendian?
00141 uint32 point_step # Length of a point in bytes
00142 uint32 row_step # Length of a row in bytes
00143 uint8[] data # Actual point data, size is (row_step*height)
00144
00145 bool is_dense # True if there are no invalid points
00146
00147 ================================================================================
00148 MSG: std_msgs/Header
00149 # Standard metadata for higher-level stamped data types.
00150 # This is generally used to communicate timestamped data
00151 # in a particular coordinate frame.
00152 #
00153 # sequence ID: consecutively increasing ID
00154 uint32 seq
00155 #Two-integer timestamp that is expressed as:
00156 # * stamp.secs: seconds (stamp_secs) since epoch
00157 # * stamp.nsecs: nanoseconds since stamp_secs
00158 # time-handling sugar is provided by the client library
00159 time stamp
00160 #Frame this data is associated with
00161 # 0: no frame
00162 # 1: global frame
00163 string frame_id
00164
00165 ================================================================================
00166 MSG: sensor_msgs/PointField
00167 # This message holds the description of one point entry in the
00168 # PointCloud2 message format.
00169 uint8 INT8 = 1
00170 uint8 UINT8 = 2
00171 uint8 INT16 = 3
00172 uint8 UINT16 = 4
00173 uint8 INT32 = 5
00174 uint8 UINT32 = 6
00175 uint8 FLOAT32 = 7
00176 uint8 FLOAT64 = 8
00177
00178 string name # Name of field
00179 uint32 offset # Offset from start of point struct
00180 uint8 datatype # Datatype enumeration, see above
00181 uint32 count # How many elements in the field
00182
00183 """
00184 __slots__ = ['object']
00185 _slot_types = ['sensor_msgs/PointCloud2']
00186
00187 def __init__(self, *args, **kwds):
00188 """
00189 Constructor. Any message fields that are implicitly/explicitly
00190 set to None will be assigned a default value. The recommend
00191 use is keyword arguments as this is more robust to future message
00192 changes. You cannot mix in-order arguments and keyword arguments.
00193
00194 The available fields are:
00195 object
00196
00197 :param args: complete set of field values, in .msg order
00198 :param kwds: use keyword arguments corresponding to message field names
00199 to set specific fields.
00200 """
00201 if args or kwds:
00202 super(GetReleasedObjectResponse, self).__init__(*args, **kwds)
00203
00204 if self.object is None:
00205 self.object = sensor_msgs.msg.PointCloud2()
00206 else:
00207 self.object = sensor_msgs.msg.PointCloud2()
00208
00209 def _get_types(self):
00210 """
00211 internal API method
00212 """
00213 return self._slot_types
00214
00215 def serialize(self, buff):
00216 """
00217 serialize message into buffer
00218 :param buff: buffer, ``StringIO``
00219 """
00220 try:
00221 _x = self
00222 buff.write(_struct_3I.pack(_x.object.header.seq, _x.object.header.stamp.secs, _x.object.header.stamp.nsecs))
00223 _x = self.object.header.frame_id
00224 length = len(_x)
00225 if python3 or type(_x) == unicode:
00226 _x = _x.encode('utf-8')
00227 length = len(_x)
00228 buff.write(struct.pack('<I%ss'%length, length, _x))
00229 _x = self
00230 buff.write(_struct_2I.pack(_x.object.height, _x.object.width))
00231 length = len(self.object.fields)
00232 buff.write(_struct_I.pack(length))
00233 for val1 in self.object.fields:
00234 _x = val1.name
00235 length = len(_x)
00236 if python3 or type(_x) == unicode:
00237 _x = _x.encode('utf-8')
00238 length = len(_x)
00239 buff.write(struct.pack('<I%ss'%length, length, _x))
00240 _x = val1
00241 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count))
00242 _x = self
00243 buff.write(_struct_B2I.pack(_x.object.is_bigendian, _x.object.point_step, _x.object.row_step))
00244 _x = self.object.data
00245 length = len(_x)
00246
00247 if type(_x) in [list, tuple]:
00248 buff.write(struct.pack('<I%sB'%length, length, *_x))
00249 else:
00250 buff.write(struct.pack('<I%ss'%length, length, _x))
00251 buff.write(_struct_B.pack(self.object.is_dense))
00252 except struct.error as se: self._check_types(se)
00253 except TypeError as te: self._check_types(te)
00254
00255 def deserialize(self, str):
00256 """
00257 unpack serialized message in str into this message instance
00258 :param str: byte array of serialized message, ``str``
00259 """
00260 try:
00261 if self.object is None:
00262 self.object = sensor_msgs.msg.PointCloud2()
00263 end = 0
00264 _x = self
00265 start = end
00266 end += 12
00267 (_x.object.header.seq, _x.object.header.stamp.secs, _x.object.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00268 start = end
00269 end += 4
00270 (length,) = _struct_I.unpack(str[start:end])
00271 start = end
00272 end += length
00273 if python3:
00274 self.object.header.frame_id = str[start:end].decode('utf-8')
00275 else:
00276 self.object.header.frame_id = str[start:end]
00277 _x = self
00278 start = end
00279 end += 8
00280 (_x.object.height, _x.object.width,) = _struct_2I.unpack(str[start:end])
00281 start = end
00282 end += 4
00283 (length,) = _struct_I.unpack(str[start:end])
00284 self.object.fields = []
00285 for i in range(0, length):
00286 val1 = sensor_msgs.msg.PointField()
00287 start = end
00288 end += 4
00289 (length,) = _struct_I.unpack(str[start:end])
00290 start = end
00291 end += length
00292 if python3:
00293 val1.name = str[start:end].decode('utf-8')
00294 else:
00295 val1.name = str[start:end]
00296 _x = val1
00297 start = end
00298 end += 9
00299 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end])
00300 self.object.fields.append(val1)
00301 _x = self
00302 start = end
00303 end += 9
00304 (_x.object.is_bigendian, _x.object.point_step, _x.object.row_step,) = _struct_B2I.unpack(str[start:end])
00305 self.object.is_bigendian = bool(self.object.is_bigendian)
00306 start = end
00307 end += 4
00308 (length,) = _struct_I.unpack(str[start:end])
00309 start = end
00310 end += length
00311 self.object.data = str[start:end]
00312 start = end
00313 end += 1
00314 (self.object.is_dense,) = _struct_B.unpack(str[start:end])
00315 self.object.is_dense = bool(self.object.is_dense)
00316 return self
00317 except struct.error as e:
00318 raise genpy.DeserializationError(e)
00319
00320
00321 def serialize_numpy(self, buff, numpy):
00322 """
00323 serialize message with numpy array types into buffer
00324 :param buff: buffer, ``StringIO``
00325 :param numpy: numpy python module
00326 """
00327 try:
00328 _x = self
00329 buff.write(_struct_3I.pack(_x.object.header.seq, _x.object.header.stamp.secs, _x.object.header.stamp.nsecs))
00330 _x = self.object.header.frame_id
00331 length = len(_x)
00332 if python3 or type(_x) == unicode:
00333 _x = _x.encode('utf-8')
00334 length = len(_x)
00335 buff.write(struct.pack('<I%ss'%length, length, _x))
00336 _x = self
00337 buff.write(_struct_2I.pack(_x.object.height, _x.object.width))
00338 length = len(self.object.fields)
00339 buff.write(_struct_I.pack(length))
00340 for val1 in self.object.fields:
00341 _x = val1.name
00342 length = len(_x)
00343 if python3 or type(_x) == unicode:
00344 _x = _x.encode('utf-8')
00345 length = len(_x)
00346 buff.write(struct.pack('<I%ss'%length, length, _x))
00347 _x = val1
00348 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count))
00349 _x = self
00350 buff.write(_struct_B2I.pack(_x.object.is_bigendian, _x.object.point_step, _x.object.row_step))
00351 _x = self.object.data
00352 length = len(_x)
00353
00354 if type(_x) in [list, tuple]:
00355 buff.write(struct.pack('<I%sB'%length, length, *_x))
00356 else:
00357 buff.write(struct.pack('<I%ss'%length, length, _x))
00358 buff.write(_struct_B.pack(self.object.is_dense))
00359 except struct.error as se: self._check_types(se)
00360 except TypeError as te: self._check_types(te)
00361
00362 def deserialize_numpy(self, str, numpy):
00363 """
00364 unpack serialized message in str into this message instance using numpy for array types
00365 :param str: byte array of serialized message, ``str``
00366 :param numpy: numpy python module
00367 """
00368 try:
00369 if self.object is None:
00370 self.object = sensor_msgs.msg.PointCloud2()
00371 end = 0
00372 _x = self
00373 start = end
00374 end += 12
00375 (_x.object.header.seq, _x.object.header.stamp.secs, _x.object.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00376 start = end
00377 end += 4
00378 (length,) = _struct_I.unpack(str[start:end])
00379 start = end
00380 end += length
00381 if python3:
00382 self.object.header.frame_id = str[start:end].decode('utf-8')
00383 else:
00384 self.object.header.frame_id = str[start:end]
00385 _x = self
00386 start = end
00387 end += 8
00388 (_x.object.height, _x.object.width,) = _struct_2I.unpack(str[start:end])
00389 start = end
00390 end += 4
00391 (length,) = _struct_I.unpack(str[start:end])
00392 self.object.fields = []
00393 for i in range(0, length):
00394 val1 = sensor_msgs.msg.PointField()
00395 start = end
00396 end += 4
00397 (length,) = _struct_I.unpack(str[start:end])
00398 start = end
00399 end += length
00400 if python3:
00401 val1.name = str[start:end].decode('utf-8')
00402 else:
00403 val1.name = str[start:end]
00404 _x = val1
00405 start = end
00406 end += 9
00407 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end])
00408 self.object.fields.append(val1)
00409 _x = self
00410 start = end
00411 end += 9
00412 (_x.object.is_bigendian, _x.object.point_step, _x.object.row_step,) = _struct_B2I.unpack(str[start:end])
00413 self.object.is_bigendian = bool(self.object.is_bigendian)
00414 start = end
00415 end += 4
00416 (length,) = _struct_I.unpack(str[start:end])
00417 start = end
00418 end += length
00419 self.object.data = str[start:end]
00420 start = end
00421 end += 1
00422 (self.object.is_dense,) = _struct_B.unpack(str[start:end])
00423 self.object.is_dense = bool(self.object.is_dense)
00424 return self
00425 except struct.error as e:
00426 raise genpy.DeserializationError(e)
00427
00428 _struct_I = genpy.struct_I
00429 _struct_IBI = struct.Struct("<IBI")
00430 _struct_3I = struct.Struct("<3I")
00431 _struct_B = struct.Struct("<B")
00432 _struct_2I = struct.Struct("<2I")
00433 _struct_B2I = struct.Struct("<B2I")
00434 class GetReleasedObject(object):
00435 _type = 'kinect_cleanup/GetReleasedObject'
00436 _md5sum = '002a9c13eadfba4b81ab0d93b46bacf4'
00437 _request_class = GetReleasedObjectRequest
00438 _response_class = GetReleasedObjectResponse