_getHandlesNAN.py
Go to the documentation of this file.
00001 """autogenerated by genpy from handle_detection2D/getHandlesNANRequest.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 getHandlesNANRequest(genpy.Message):
00009   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010   _type = "handle_detection2D/getHandlesNANRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """
00013 
00014 """
00015   __slots__ = []
00016   _slot_types = []
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        
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(getHandlesNANRequest, self).__init__(*args, **kwds)
00034 
00035   def _get_types(self):
00036     """
00037     internal API method
00038     """
00039     return self._slot_types
00040 
00041   def serialize(self, buff):
00042     """
00043     serialize message into buffer
00044     :param buff: buffer, ``StringIO``
00045     """
00046     try:
00047       pass
00048     except struct.error as se: self._check_types(se)
00049     except TypeError as te: self._check_types(te)
00050 
00051   def deserialize(self, str):
00052     """
00053     unpack serialized message in str into this message instance
00054     :param str: byte array of serialized message, ``str``
00055     """
00056     try:
00057       end = 0
00058       return self
00059     except struct.error as e:
00060       raise genpy.DeserializationError(e) #most likely buffer underfill
00061 
00062 
00063   def serialize_numpy(self, buff, numpy):
00064     """
00065     serialize message with numpy array types into buffer
00066     :param buff: buffer, ``StringIO``
00067     :param numpy: numpy python module
00068     """
00069     try:
00070       pass
00071     except struct.error as se: self._check_types(se)
00072     except TypeError as te: self._check_types(te)
00073 
00074   def deserialize_numpy(self, str, numpy):
00075     """
00076     unpack serialized message in str into this message instance using numpy for array types
00077     :param str: byte array of serialized message, ``str``
00078     :param numpy: numpy python module
00079     """
00080     try:
00081       end = 0
00082       return self
00083     except struct.error as e:
00084       raise genpy.DeserializationError(e) #most likely buffer underfill
00085 
00086 _struct_I = genpy.struct_I
00087 """autogenerated by genpy from handle_detection2D/getHandlesNANResponse.msg. Do not edit."""
00088 import sys
00089 python3 = True if sys.hexversion > 0x03000000 else False
00090 import genpy
00091 import struct
00092 
00093 import geometry_msgs.msg
00094 import std_msgs.msg
00095 
00096 class getHandlesNANResponse(genpy.Message):
00097   _md5sum = "8c24f6e043be241d4b17aa8c4c7b1310"
00098   _type = "handle_detection2D/getHandlesNANResponse"
00099   _has_header = False #flag to mark the presence of a Header object
00100   _full_text = """geometry_msgs/PointStamped[] handle_poses
00101 
00102 ================================================================================
00103 MSG: geometry_msgs/PointStamped
00104 # This represents a Point with reference coordinate frame and timestamp
00105 Header header
00106 Point point
00107 
00108 ================================================================================
00109 MSG: std_msgs/Header
00110 # Standard metadata for higher-level stamped data types.
00111 # This is generally used to communicate timestamped data 
00112 # in a particular coordinate frame.
00113 # 
00114 # sequence ID: consecutively increasing ID 
00115 uint32 seq
00116 #Two-integer timestamp that is expressed as:
00117 # * stamp.secs: seconds (stamp_secs) since epoch
00118 # * stamp.nsecs: nanoseconds since stamp_secs
00119 # time-handling sugar is provided by the client library
00120 time stamp
00121 #Frame this data is associated with
00122 # 0: no frame
00123 # 1: global frame
00124 string frame_id
00125 
00126 ================================================================================
00127 MSG: geometry_msgs/Point
00128 # This contains the position of a point in free space
00129 float64 x
00130 float64 y
00131 float64 z
00132 
00133 """
00134   __slots__ = ['handle_poses']
00135   _slot_types = ['geometry_msgs/PointStamped[]']
00136 
00137   def __init__(self, *args, **kwds):
00138     """
00139     Constructor. Any message fields that are implicitly/explicitly
00140     set to None will be assigned a default value. The recommend
00141     use is keyword arguments as this is more robust to future message
00142     changes.  You cannot mix in-order arguments and keyword arguments.
00143 
00144     The available fields are:
00145        handle_poses
00146 
00147     :param args: complete set of field values, in .msg order
00148     :param kwds: use keyword arguments corresponding to message field names
00149     to set specific fields.
00150     """
00151     if args or kwds:
00152       super(getHandlesNANResponse, self).__init__(*args, **kwds)
00153       #message fields cannot be None, assign default values for those that are
00154       if self.handle_poses is None:
00155         self.handle_poses = []
00156     else:
00157       self.handle_poses = []
00158 
00159   def _get_types(self):
00160     """
00161     internal API method
00162     """
00163     return self._slot_types
00164 
00165   def serialize(self, buff):
00166     """
00167     serialize message into buffer
00168     :param buff: buffer, ``StringIO``
00169     """
00170     try:
00171       length = len(self.handle_poses)
00172       buff.write(_struct_I.pack(length))
00173       for val1 in self.handle_poses:
00174         _v1 = val1.header
00175         buff.write(_struct_I.pack(_v1.seq))
00176         _v2 = _v1.stamp
00177         _x = _v2
00178         buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00179         _x = _v1.frame_id
00180         length = len(_x)
00181         if python3 or type(_x) == unicode:
00182           _x = _x.encode('utf-8')
00183           length = len(_x)
00184         buff.write(struct.pack('<I%ss'%length, length, _x))
00185         _v3 = val1.point
00186         _x = _v3
00187         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00188     except struct.error as se: self._check_types(se)
00189     except TypeError as te: self._check_types(te)
00190 
00191   def deserialize(self, str):
00192     """
00193     unpack serialized message in str into this message instance
00194     :param str: byte array of serialized message, ``str``
00195     """
00196     try:
00197       if self.handle_poses is None:
00198         self.handle_poses = None
00199       end = 0
00200       start = end
00201       end += 4
00202       (length,) = _struct_I.unpack(str[start:end])
00203       self.handle_poses = []
00204       for i in range(0, length):
00205         val1 = geometry_msgs.msg.PointStamped()
00206         _v4 = val1.header
00207         start = end
00208         end += 4
00209         (_v4.seq,) = _struct_I.unpack(str[start:end])
00210         _v5 = _v4.stamp
00211         _x = _v5
00212         start = end
00213         end += 8
00214         (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00215         start = end
00216         end += 4
00217         (length,) = _struct_I.unpack(str[start:end])
00218         start = end
00219         end += length
00220         if python3:
00221           _v4.frame_id = str[start:end].decode('utf-8')
00222         else:
00223           _v4.frame_id = str[start:end]
00224         _v6 = val1.point
00225         _x = _v6
00226         start = end
00227         end += 24
00228         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00229         self.handle_poses.append(val1)
00230       return self
00231     except struct.error as e:
00232       raise genpy.DeserializationError(e) #most likely buffer underfill
00233 
00234 
00235   def serialize_numpy(self, buff, numpy):
00236     """
00237     serialize message with numpy array types into buffer
00238     :param buff: buffer, ``StringIO``
00239     :param numpy: numpy python module
00240     """
00241     try:
00242       length = len(self.handle_poses)
00243       buff.write(_struct_I.pack(length))
00244       for val1 in self.handle_poses:
00245         _v7 = val1.header
00246         buff.write(_struct_I.pack(_v7.seq))
00247         _v8 = _v7.stamp
00248         _x = _v8
00249         buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00250         _x = _v7.frame_id
00251         length = len(_x)
00252         if python3 or type(_x) == unicode:
00253           _x = _x.encode('utf-8')
00254           length = len(_x)
00255         buff.write(struct.pack('<I%ss'%length, length, _x))
00256         _v9 = val1.point
00257         _x = _v9
00258         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00259     except struct.error as se: self._check_types(se)
00260     except TypeError as te: self._check_types(te)
00261 
00262   def deserialize_numpy(self, str, numpy):
00263     """
00264     unpack serialized message in str into this message instance using numpy for array types
00265     :param str: byte array of serialized message, ``str``
00266     :param numpy: numpy python module
00267     """
00268     try:
00269       if self.handle_poses is None:
00270         self.handle_poses = None
00271       end = 0
00272       start = end
00273       end += 4
00274       (length,) = _struct_I.unpack(str[start:end])
00275       self.handle_poses = []
00276       for i in range(0, length):
00277         val1 = geometry_msgs.msg.PointStamped()
00278         _v10 = val1.header
00279         start = end
00280         end += 4
00281         (_v10.seq,) = _struct_I.unpack(str[start:end])
00282         _v11 = _v10.stamp
00283         _x = _v11
00284         start = end
00285         end += 8
00286         (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00287         start = end
00288         end += 4
00289         (length,) = _struct_I.unpack(str[start:end])
00290         start = end
00291         end += length
00292         if python3:
00293           _v10.frame_id = str[start:end].decode('utf-8')
00294         else:
00295           _v10.frame_id = str[start:end]
00296         _v12 = val1.point
00297         _x = _v12
00298         start = end
00299         end += 24
00300         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00301         self.handle_poses.append(val1)
00302       return self
00303     except struct.error as e:
00304       raise genpy.DeserializationError(e) #most likely buffer underfill
00305 
00306 _struct_I = genpy.struct_I
00307 _struct_2I = struct.Struct("<2I")
00308 _struct_3d = struct.Struct("<3d")
00309 class getHandlesNAN(object):
00310   _type          = 'handle_detection2D/getHandlesNAN'
00311   _md5sum = '8c24f6e043be241d4b17aa8c4c7b1310'
00312   _request_class  = getHandlesNANRequest
00313   _response_class = getHandlesNANResponse
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


handle_detection2D
Author(s): Dejan Pangercic
autogenerated on Sun Oct 6 2013 12:07:07