_GetReleasedObject.py
Go to the documentation of this file.
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 #flag to mark the presence of a Header object
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       #message fields cannot be None, assign default values for those that are
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) #most likely buffer underfill
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) #most likely buffer underfill
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 #flag to mark the presence of a Header object
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       #message fields cannot be None, assign default values for those that are
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       # - if encoded as a list instead, serialize as bytes instead of string
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       if python3:
00312         self.object.data = str[start:end].decode('utf-8')
00313       else:
00314         self.object.data = str[start:end]
00315       start = end
00316       end += 1
00317       (self.object.is_dense,) = _struct_B.unpack(str[start:end])
00318       self.object.is_dense = bool(self.object.is_dense)
00319       return self
00320     except struct.error as e:
00321       raise genpy.DeserializationError(e) #most likely buffer underfill
00322 
00323 
00324   def serialize_numpy(self, buff, numpy):
00325     """
00326     serialize message with numpy array types into buffer
00327     :param buff: buffer, ``StringIO``
00328     :param numpy: numpy python module
00329     """
00330     try:
00331       _x = self
00332       buff.write(_struct_3I.pack(_x.object.header.seq, _x.object.header.stamp.secs, _x.object.header.stamp.nsecs))
00333       _x = self.object.header.frame_id
00334       length = len(_x)
00335       if python3 or type(_x) == unicode:
00336         _x = _x.encode('utf-8')
00337         length = len(_x)
00338       buff.write(struct.pack('<I%ss'%length, length, _x))
00339       _x = self
00340       buff.write(_struct_2I.pack(_x.object.height, _x.object.width))
00341       length = len(self.object.fields)
00342       buff.write(_struct_I.pack(length))
00343       for val1 in self.object.fields:
00344         _x = val1.name
00345         length = len(_x)
00346         if python3 or type(_x) == unicode:
00347           _x = _x.encode('utf-8')
00348           length = len(_x)
00349         buff.write(struct.pack('<I%ss'%length, length, _x))
00350         _x = val1
00351         buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count))
00352       _x = self
00353       buff.write(_struct_B2I.pack(_x.object.is_bigendian, _x.object.point_step, _x.object.row_step))
00354       _x = self.object.data
00355       length = len(_x)
00356       # - if encoded as a list instead, serialize as bytes instead of string
00357       if type(_x) in [list, tuple]:
00358         buff.write(struct.pack('<I%sB'%length, length, *_x))
00359       else:
00360         buff.write(struct.pack('<I%ss'%length, length, _x))
00361       buff.write(_struct_B.pack(self.object.is_dense))
00362     except struct.error as se: self._check_types(se)
00363     except TypeError as te: self._check_types(te)
00364 
00365   def deserialize_numpy(self, str, numpy):
00366     """
00367     unpack serialized message in str into this message instance using numpy for array types
00368     :param str: byte array of serialized message, ``str``
00369     :param numpy: numpy python module
00370     """
00371     try:
00372       if self.object is None:
00373         self.object = sensor_msgs.msg.PointCloud2()
00374       end = 0
00375       _x = self
00376       start = end
00377       end += 12
00378       (_x.object.header.seq, _x.object.header.stamp.secs, _x.object.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00379       start = end
00380       end += 4
00381       (length,) = _struct_I.unpack(str[start:end])
00382       start = end
00383       end += length
00384       if python3:
00385         self.object.header.frame_id = str[start:end].decode('utf-8')
00386       else:
00387         self.object.header.frame_id = str[start:end]
00388       _x = self
00389       start = end
00390       end += 8
00391       (_x.object.height, _x.object.width,) = _struct_2I.unpack(str[start:end])
00392       start = end
00393       end += 4
00394       (length,) = _struct_I.unpack(str[start:end])
00395       self.object.fields = []
00396       for i in range(0, length):
00397         val1 = sensor_msgs.msg.PointField()
00398         start = end
00399         end += 4
00400         (length,) = _struct_I.unpack(str[start:end])
00401         start = end
00402         end += length
00403         if python3:
00404           val1.name = str[start:end].decode('utf-8')
00405         else:
00406           val1.name = str[start:end]
00407         _x = val1
00408         start = end
00409         end += 9
00410         (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end])
00411         self.object.fields.append(val1)
00412       _x = self
00413       start = end
00414       end += 9
00415       (_x.object.is_bigendian, _x.object.point_step, _x.object.row_step,) = _struct_B2I.unpack(str[start:end])
00416       self.object.is_bigendian = bool(self.object.is_bigendian)
00417       start = end
00418       end += 4
00419       (length,) = _struct_I.unpack(str[start:end])
00420       start = end
00421       end += length
00422       if python3:
00423         self.object.data = str[start:end].decode('utf-8')
00424       else:
00425         self.object.data = str[start:end]
00426       start = end
00427       end += 1
00428       (self.object.is_dense,) = _struct_B.unpack(str[start:end])
00429       self.object.is_dense = bool(self.object.is_dense)
00430       return self
00431     except struct.error as e:
00432       raise genpy.DeserializationError(e) #most likely buffer underfill
00433 
00434 _struct_I = genpy.struct_I
00435 _struct_IBI = struct.Struct("<IBI")
00436 _struct_3I = struct.Struct("<3I")
00437 _struct_B = struct.Struct("<B")
00438 _struct_2I = struct.Struct("<2I")
00439 _struct_B2I = struct.Struct("<B2I")
00440 class GetReleasedObject(object):
00441   _type          = 'kinect_cleanup/GetReleasedObject'
00442   _md5sum = '002a9c13eadfba4b81ab0d93b46bacf4'
00443   _request_class  = GetReleasedObjectRequest
00444   _response_class = GetReleasedObjectResponse
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


kinect_cleanup
Author(s): Zoltan-Csaba Marton, Dejan Pangercic
autogenerated on Thu May 23 2013 13:40:19