_ndesc_pc_service.py
Go to the documentation of this file.
00001 """autogenerated by genpy from normal_descriptor_node/ndesc_pc_serviceRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 import std_msgs.msg
00008 import sensor_msgs.msg
00009 
00010 class ndesc_pc_serviceRequest(genpy.Message):
00011   _md5sum = "0c9882caba11d56443567dca3aa788b1"
00012   _type = "normal_descriptor_node/ndesc_pc_serviceRequest"
00013   _has_header = False #flag to mark the presence of a Header object
00014   _full_text = """sensor_msgs/PointCloud2 cloth_cloud
00015 
00016 ================================================================================
00017 MSG: sensor_msgs/PointCloud2
00018 # This message holds a collection of N-dimensional points, which may
00019 # contain additional information such as normals, intensity, etc. The
00020 # point data is stored as a binary blob, its layout described by the
00021 # contents of the "fields" array.
00022 
00023 # The point cloud data may be organized 2d (image-like) or 1d
00024 # (unordered). Point clouds organized as 2d images may be produced by
00025 # camera depth sensors such as stereo or time-of-flight.
00026 
00027 # Time of sensor data acquisition, and the coordinate frame ID (for 3d
00028 # points).
00029 Header header
00030 
00031 # 2D structure of the point cloud. If the cloud is unordered, height is
00032 # 1 and width is the length of the point cloud.
00033 uint32 height
00034 uint32 width
00035 
00036 # Describes the channels and their layout in the binary data blob.
00037 PointField[] fields
00038 
00039 bool    is_bigendian # Is this data bigendian?
00040 uint32  point_step   # Length of a point in bytes
00041 uint32  row_step     # Length of a row in bytes
00042 uint8[] data         # Actual point data, size is (row_step*height)
00043 
00044 bool is_dense        # True if there are no invalid points
00045 
00046 ================================================================================
00047 MSG: std_msgs/Header
00048 # Standard metadata for higher-level stamped data types.
00049 # This is generally used to communicate timestamped data 
00050 # in a particular coordinate frame.
00051 # 
00052 # sequence ID: consecutively increasing ID 
00053 uint32 seq
00054 #Two-integer timestamp that is expressed as:
00055 # * stamp.secs: seconds (stamp_secs) since epoch
00056 # * stamp.nsecs: nanoseconds since stamp_secs
00057 # time-handling sugar is provided by the client library
00058 time stamp
00059 #Frame this data is associated with
00060 # 0: no frame
00061 # 1: global frame
00062 string frame_id
00063 
00064 ================================================================================
00065 MSG: sensor_msgs/PointField
00066 # This message holds the description of one point entry in the
00067 # PointCloud2 message format.
00068 uint8 INT8    = 1
00069 uint8 UINT8   = 2
00070 uint8 INT16   = 3
00071 uint8 UINT16  = 4
00072 uint8 INT32   = 5
00073 uint8 UINT32  = 6
00074 uint8 FLOAT32 = 7
00075 uint8 FLOAT64 = 8
00076 
00077 string name      # Name of field
00078 uint32 offset    # Offset from start of point struct
00079 uint8  datatype  # Datatype enumeration, see above
00080 uint32 count     # How many elements in the field
00081 
00082 """
00083   __slots__ = ['cloth_cloud']
00084   _slot_types = ['sensor_msgs/PointCloud2']
00085 
00086   def __init__(self, *args, **kwds):
00087     """
00088     Constructor. Any message fields that are implicitly/explicitly
00089     set to None will be assigned a default value. The recommend
00090     use is keyword arguments as this is more robust to future message
00091     changes.  You cannot mix in-order arguments and keyword arguments.
00092 
00093     The available fields are:
00094        cloth_cloud
00095 
00096     :param args: complete set of field values, in .msg order
00097     :param kwds: use keyword arguments corresponding to message field names
00098     to set specific fields.
00099     """
00100     if args or kwds:
00101       super(ndesc_pc_serviceRequest, self).__init__(*args, **kwds)
00102       #message fields cannot be None, assign default values for those that are
00103       if self.cloth_cloud is None:
00104         self.cloth_cloud = sensor_msgs.msg.PointCloud2()
00105     else:
00106       self.cloth_cloud = sensor_msgs.msg.PointCloud2()
00107 
00108   def _get_types(self):
00109     """
00110     internal API method
00111     """
00112     return self._slot_types
00113 
00114   def serialize(self, buff):
00115     """
00116     serialize message into buffer
00117     :param buff: buffer, ``StringIO``
00118     """
00119     try:
00120       _x = self
00121       buff.write(_struct_3I.pack(_x.cloth_cloud.header.seq, _x.cloth_cloud.header.stamp.secs, _x.cloth_cloud.header.stamp.nsecs))
00122       _x = self.cloth_cloud.header.frame_id
00123       length = len(_x)
00124       if python3 or type(_x) == unicode:
00125         _x = _x.encode('utf-8')
00126         length = len(_x)
00127       buff.write(struct.pack('<I%ss'%length, length, _x))
00128       _x = self
00129       buff.write(_struct_2I.pack(_x.cloth_cloud.height, _x.cloth_cloud.width))
00130       length = len(self.cloth_cloud.fields)
00131       buff.write(_struct_I.pack(length))
00132       for val1 in self.cloth_cloud.fields:
00133         _x = val1.name
00134         length = len(_x)
00135         if python3 or type(_x) == unicode:
00136           _x = _x.encode('utf-8')
00137           length = len(_x)
00138         buff.write(struct.pack('<I%ss'%length, length, _x))
00139         _x = val1
00140         buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count))
00141       _x = self
00142       buff.write(_struct_B2I.pack(_x.cloth_cloud.is_bigendian, _x.cloth_cloud.point_step, _x.cloth_cloud.row_step))
00143       _x = self.cloth_cloud.data
00144       length = len(_x)
00145       # - if encoded as a list instead, serialize as bytes instead of string
00146       if type(_x) in [list, tuple]:
00147         buff.write(struct.pack('<I%sB'%length, length, *_x))
00148       else:
00149         buff.write(struct.pack('<I%ss'%length, length, _x))
00150       buff.write(_struct_B.pack(self.cloth_cloud.is_dense))
00151     except struct.error as se: self._check_types(se)
00152     except TypeError as te: self._check_types(te)
00153 
00154   def deserialize(self, str):
00155     """
00156     unpack serialized message in str into this message instance
00157     :param str: byte array of serialized message, ``str``
00158     """
00159     try:
00160       if self.cloth_cloud is None:
00161         self.cloth_cloud = sensor_msgs.msg.PointCloud2()
00162       end = 0
00163       _x = self
00164       start = end
00165       end += 12
00166       (_x.cloth_cloud.header.seq, _x.cloth_cloud.header.stamp.secs, _x.cloth_cloud.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00167       start = end
00168       end += 4
00169       (length,) = _struct_I.unpack(str[start:end])
00170       start = end
00171       end += length
00172       if python3:
00173         self.cloth_cloud.header.frame_id = str[start:end].decode('utf-8')
00174       else:
00175         self.cloth_cloud.header.frame_id = str[start:end]
00176       _x = self
00177       start = end
00178       end += 8
00179       (_x.cloth_cloud.height, _x.cloth_cloud.width,) = _struct_2I.unpack(str[start:end])
00180       start = end
00181       end += 4
00182       (length,) = _struct_I.unpack(str[start:end])
00183       self.cloth_cloud.fields = []
00184       for i in range(0, length):
00185         val1 = sensor_msgs.msg.PointField()
00186         start = end
00187         end += 4
00188         (length,) = _struct_I.unpack(str[start:end])
00189         start = end
00190         end += length
00191         if python3:
00192           val1.name = str[start:end].decode('utf-8')
00193         else:
00194           val1.name = str[start:end]
00195         _x = val1
00196         start = end
00197         end += 9
00198         (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end])
00199         self.cloth_cloud.fields.append(val1)
00200       _x = self
00201       start = end
00202       end += 9
00203       (_x.cloth_cloud.is_bigendian, _x.cloth_cloud.point_step, _x.cloth_cloud.row_step,) = _struct_B2I.unpack(str[start:end])
00204       self.cloth_cloud.is_bigendian = bool(self.cloth_cloud.is_bigendian)
00205       start = end
00206       end += 4
00207       (length,) = _struct_I.unpack(str[start:end])
00208       start = end
00209       end += length
00210       if python3:
00211         self.cloth_cloud.data = str[start:end].decode('utf-8')
00212       else:
00213         self.cloth_cloud.data = str[start:end]
00214       start = end
00215       end += 1
00216       (self.cloth_cloud.is_dense,) = _struct_B.unpack(str[start:end])
00217       self.cloth_cloud.is_dense = bool(self.cloth_cloud.is_dense)
00218       return self
00219     except struct.error as e:
00220       raise genpy.DeserializationError(e) #most likely buffer underfill
00221 
00222 
00223   def serialize_numpy(self, buff, numpy):
00224     """
00225     serialize message with numpy array types into buffer
00226     :param buff: buffer, ``StringIO``
00227     :param numpy: numpy python module
00228     """
00229     try:
00230       _x = self
00231       buff.write(_struct_3I.pack(_x.cloth_cloud.header.seq, _x.cloth_cloud.header.stamp.secs, _x.cloth_cloud.header.stamp.nsecs))
00232       _x = self.cloth_cloud.header.frame_id
00233       length = len(_x)
00234       if python3 or type(_x) == unicode:
00235         _x = _x.encode('utf-8')
00236         length = len(_x)
00237       buff.write(struct.pack('<I%ss'%length, length, _x))
00238       _x = self
00239       buff.write(_struct_2I.pack(_x.cloth_cloud.height, _x.cloth_cloud.width))
00240       length = len(self.cloth_cloud.fields)
00241       buff.write(_struct_I.pack(length))
00242       for val1 in self.cloth_cloud.fields:
00243         _x = val1.name
00244         length = len(_x)
00245         if python3 or type(_x) == unicode:
00246           _x = _x.encode('utf-8')
00247           length = len(_x)
00248         buff.write(struct.pack('<I%ss'%length, length, _x))
00249         _x = val1
00250         buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count))
00251       _x = self
00252       buff.write(_struct_B2I.pack(_x.cloth_cloud.is_bigendian, _x.cloth_cloud.point_step, _x.cloth_cloud.row_step))
00253       _x = self.cloth_cloud.data
00254       length = len(_x)
00255       # - if encoded as a list instead, serialize as bytes instead of string
00256       if type(_x) in [list, tuple]:
00257         buff.write(struct.pack('<I%sB'%length, length, *_x))
00258       else:
00259         buff.write(struct.pack('<I%ss'%length, length, _x))
00260       buff.write(_struct_B.pack(self.cloth_cloud.is_dense))
00261     except struct.error as se: self._check_types(se)
00262     except TypeError as te: self._check_types(te)
00263 
00264   def deserialize_numpy(self, str, numpy):
00265     """
00266     unpack serialized message in str into this message instance using numpy for array types
00267     :param str: byte array of serialized message, ``str``
00268     :param numpy: numpy python module
00269     """
00270     try:
00271       if self.cloth_cloud is None:
00272         self.cloth_cloud = sensor_msgs.msg.PointCloud2()
00273       end = 0
00274       _x = self
00275       start = end
00276       end += 12
00277       (_x.cloth_cloud.header.seq, _x.cloth_cloud.header.stamp.secs, _x.cloth_cloud.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00278       start = end
00279       end += 4
00280       (length,) = _struct_I.unpack(str[start:end])
00281       start = end
00282       end += length
00283       if python3:
00284         self.cloth_cloud.header.frame_id = str[start:end].decode('utf-8')
00285       else:
00286         self.cloth_cloud.header.frame_id = str[start:end]
00287       _x = self
00288       start = end
00289       end += 8
00290       (_x.cloth_cloud.height, _x.cloth_cloud.width,) = _struct_2I.unpack(str[start:end])
00291       start = end
00292       end += 4
00293       (length,) = _struct_I.unpack(str[start:end])
00294       self.cloth_cloud.fields = []
00295       for i in range(0, length):
00296         val1 = sensor_msgs.msg.PointField()
00297         start = end
00298         end += 4
00299         (length,) = _struct_I.unpack(str[start:end])
00300         start = end
00301         end += length
00302         if python3:
00303           val1.name = str[start:end].decode('utf-8')
00304         else:
00305           val1.name = str[start:end]
00306         _x = val1
00307         start = end
00308         end += 9
00309         (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end])
00310         self.cloth_cloud.fields.append(val1)
00311       _x = self
00312       start = end
00313       end += 9
00314       (_x.cloth_cloud.is_bigendian, _x.cloth_cloud.point_step, _x.cloth_cloud.row_step,) = _struct_B2I.unpack(str[start:end])
00315       self.cloth_cloud.is_bigendian = bool(self.cloth_cloud.is_bigendian)
00316       start = end
00317       end += 4
00318       (length,) = _struct_I.unpack(str[start:end])
00319       start = end
00320       end += length
00321       if python3:
00322         self.cloth_cloud.data = str[start:end].decode('utf-8')
00323       else:
00324         self.cloth_cloud.data = str[start:end]
00325       start = end
00326       end += 1
00327       (self.cloth_cloud.is_dense,) = _struct_B.unpack(str[start:end])
00328       self.cloth_cloud.is_dense = bool(self.cloth_cloud.is_dense)
00329       return self
00330     except struct.error as e:
00331       raise genpy.DeserializationError(e) #most likely buffer underfill
00332 
00333 _struct_I = genpy.struct_I
00334 _struct_IBI = struct.Struct("<IBI")
00335 _struct_3I = struct.Struct("<3I")
00336 _struct_B = struct.Struct("<B")
00337 _struct_2I = struct.Struct("<2I")
00338 _struct_B2I = struct.Struct("<B2I")
00339 """autogenerated by genpy from normal_descriptor_node/ndesc_pc_serviceResponse.msg. Do not edit."""
00340 import sys
00341 python3 = True if sys.hexversion > 0x03000000 else False
00342 import genpy
00343 import struct
00344 
00345 import geometry_msgs.msg
00346 import normal_descriptor_node.msg
00347 import std_msgs.msg
00348 
00349 class ndesc_pc_serviceResponse(genpy.Message):
00350   _md5sum = "8cdceef08036d5eb578c44812398184b"
00351   _type = "normal_descriptor_node/ndesc_pc_serviceResponse"
00352   _has_header = False #flag to mark the presence of a Header object
00353   _full_text = """normal_descriptor_node/ndesc_pc ndesc_pc_msg
00354 
00355 
00356 ================================================================================
00357 MSG: normal_descriptor_node/ndesc_pc
00358 Header header
00359 int32 num_orient_bins
00360 int32 num_spa_bins
00361 int32 num
00362 int32 len
00363 int32 width
00364 int32 height
00365 normal_descriptor_node/ndesc[] descriptors
00366 
00367 ================================================================================
00368 MSG: std_msgs/Header
00369 # Standard metadata for higher-level stamped data types.
00370 # This is generally used to communicate timestamped data 
00371 # in a particular coordinate frame.
00372 # 
00373 # sequence ID: consecutively increasing ID 
00374 uint32 seq
00375 #Two-integer timestamp that is expressed as:
00376 # * stamp.secs: seconds (stamp_secs) since epoch
00377 # * stamp.nsecs: nanoseconds since stamp_secs
00378 # time-handling sugar is provided by the client library
00379 time stamp
00380 #Frame this data is associated with
00381 # 0: no frame
00382 # 1: global frame
00383 string frame_id
00384 
00385 ================================================================================
00386 MSG: normal_descriptor_node/ndesc
00387 float32[] descriptor
00388 geometry_msgs/Vector3 point3d
00389 int32 u
00390 int32 v
00391 float32 ori
00392 ================================================================================
00393 MSG: geometry_msgs/Vector3
00394 # This represents a vector in free space. 
00395 
00396 float64 x
00397 float64 y
00398 float64 z
00399 """
00400   __slots__ = ['ndesc_pc_msg']
00401   _slot_types = ['normal_descriptor_node/ndesc_pc']
00402 
00403   def __init__(self, *args, **kwds):
00404     """
00405     Constructor. Any message fields that are implicitly/explicitly
00406     set to None will be assigned a default value. The recommend
00407     use is keyword arguments as this is more robust to future message
00408     changes.  You cannot mix in-order arguments and keyword arguments.
00409 
00410     The available fields are:
00411        ndesc_pc_msg
00412 
00413     :param args: complete set of field values, in .msg order
00414     :param kwds: use keyword arguments corresponding to message field names
00415     to set specific fields.
00416     """
00417     if args or kwds:
00418       super(ndesc_pc_serviceResponse, self).__init__(*args, **kwds)
00419       #message fields cannot be None, assign default values for those that are
00420       if self.ndesc_pc_msg is None:
00421         self.ndesc_pc_msg = normal_descriptor_node.msg.ndesc_pc()
00422     else:
00423       self.ndesc_pc_msg = normal_descriptor_node.msg.ndesc_pc()
00424 
00425   def _get_types(self):
00426     """
00427     internal API method
00428     """
00429     return self._slot_types
00430 
00431   def serialize(self, buff):
00432     """
00433     serialize message into buffer
00434     :param buff: buffer, ``StringIO``
00435     """
00436     try:
00437       _x = self
00438       buff.write(_struct_3I.pack(_x.ndesc_pc_msg.header.seq, _x.ndesc_pc_msg.header.stamp.secs, _x.ndesc_pc_msg.header.stamp.nsecs))
00439       _x = self.ndesc_pc_msg.header.frame_id
00440       length = len(_x)
00441       if python3 or type(_x) == unicode:
00442         _x = _x.encode('utf-8')
00443         length = len(_x)
00444       buff.write(struct.pack('<I%ss'%length, length, _x))
00445       _x = self
00446       buff.write(_struct_6i.pack(_x.ndesc_pc_msg.num_orient_bins, _x.ndesc_pc_msg.num_spa_bins, _x.ndesc_pc_msg.num, _x.ndesc_pc_msg.len, _x.ndesc_pc_msg.width, _x.ndesc_pc_msg.height))
00447       length = len(self.ndesc_pc_msg.descriptors)
00448       buff.write(_struct_I.pack(length))
00449       for val1 in self.ndesc_pc_msg.descriptors:
00450         length = len(val1.descriptor)
00451         buff.write(_struct_I.pack(length))
00452         pattern = '<%sf'%length
00453         buff.write(struct.pack(pattern, *val1.descriptor))
00454         _v1 = val1.point3d
00455         _x = _v1
00456         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00457         _x = val1
00458         buff.write(_struct_2if.pack(_x.u, _x.v, _x.ori))
00459     except struct.error as se: self._check_types(se)
00460     except TypeError as te: self._check_types(te)
00461 
00462   def deserialize(self, str):
00463     """
00464     unpack serialized message in str into this message instance
00465     :param str: byte array of serialized message, ``str``
00466     """
00467     try:
00468       if self.ndesc_pc_msg is None:
00469         self.ndesc_pc_msg = normal_descriptor_node.msg.ndesc_pc()
00470       end = 0
00471       _x = self
00472       start = end
00473       end += 12
00474       (_x.ndesc_pc_msg.header.seq, _x.ndesc_pc_msg.header.stamp.secs, _x.ndesc_pc_msg.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00475       start = end
00476       end += 4
00477       (length,) = _struct_I.unpack(str[start:end])
00478       start = end
00479       end += length
00480       if python3:
00481         self.ndesc_pc_msg.header.frame_id = str[start:end].decode('utf-8')
00482       else:
00483         self.ndesc_pc_msg.header.frame_id = str[start:end]
00484       _x = self
00485       start = end
00486       end += 24
00487       (_x.ndesc_pc_msg.num_orient_bins, _x.ndesc_pc_msg.num_spa_bins, _x.ndesc_pc_msg.num, _x.ndesc_pc_msg.len, _x.ndesc_pc_msg.width, _x.ndesc_pc_msg.height,) = _struct_6i.unpack(str[start:end])
00488       start = end
00489       end += 4
00490       (length,) = _struct_I.unpack(str[start:end])
00491       self.ndesc_pc_msg.descriptors = []
00492       for i in range(0, length):
00493         val1 = normal_descriptor_node.msg.ndesc()
00494         start = end
00495         end += 4
00496         (length,) = _struct_I.unpack(str[start:end])
00497         pattern = '<%sf'%length
00498         start = end
00499         end += struct.calcsize(pattern)
00500         val1.descriptor = struct.unpack(pattern, str[start:end])
00501         _v2 = val1.point3d
00502         _x = _v2
00503         start = end
00504         end += 24
00505         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00506         _x = val1
00507         start = end
00508         end += 12
00509         (_x.u, _x.v, _x.ori,) = _struct_2if.unpack(str[start:end])
00510         self.ndesc_pc_msg.descriptors.append(val1)
00511       return self
00512     except struct.error as e:
00513       raise genpy.DeserializationError(e) #most likely buffer underfill
00514 
00515 
00516   def serialize_numpy(self, buff, numpy):
00517     """
00518     serialize message with numpy array types into buffer
00519     :param buff: buffer, ``StringIO``
00520     :param numpy: numpy python module
00521     """
00522     try:
00523       _x = self
00524       buff.write(_struct_3I.pack(_x.ndesc_pc_msg.header.seq, _x.ndesc_pc_msg.header.stamp.secs, _x.ndesc_pc_msg.header.stamp.nsecs))
00525       _x = self.ndesc_pc_msg.header.frame_id
00526       length = len(_x)
00527       if python3 or type(_x) == unicode:
00528         _x = _x.encode('utf-8')
00529         length = len(_x)
00530       buff.write(struct.pack('<I%ss'%length, length, _x))
00531       _x = self
00532       buff.write(_struct_6i.pack(_x.ndesc_pc_msg.num_orient_bins, _x.ndesc_pc_msg.num_spa_bins, _x.ndesc_pc_msg.num, _x.ndesc_pc_msg.len, _x.ndesc_pc_msg.width, _x.ndesc_pc_msg.height))
00533       length = len(self.ndesc_pc_msg.descriptors)
00534       buff.write(_struct_I.pack(length))
00535       for val1 in self.ndesc_pc_msg.descriptors:
00536         length = len(val1.descriptor)
00537         buff.write(_struct_I.pack(length))
00538         pattern = '<%sf'%length
00539         buff.write(val1.descriptor.tostring())
00540         _v3 = val1.point3d
00541         _x = _v3
00542         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00543         _x = val1
00544         buff.write(_struct_2if.pack(_x.u, _x.v, _x.ori))
00545     except struct.error as se: self._check_types(se)
00546     except TypeError as te: self._check_types(te)
00547 
00548   def deserialize_numpy(self, str, numpy):
00549     """
00550     unpack serialized message in str into this message instance using numpy for array types
00551     :param str: byte array of serialized message, ``str``
00552     :param numpy: numpy python module
00553     """
00554     try:
00555       if self.ndesc_pc_msg is None:
00556         self.ndesc_pc_msg = normal_descriptor_node.msg.ndesc_pc()
00557       end = 0
00558       _x = self
00559       start = end
00560       end += 12
00561       (_x.ndesc_pc_msg.header.seq, _x.ndesc_pc_msg.header.stamp.secs, _x.ndesc_pc_msg.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00562       start = end
00563       end += 4
00564       (length,) = _struct_I.unpack(str[start:end])
00565       start = end
00566       end += length
00567       if python3:
00568         self.ndesc_pc_msg.header.frame_id = str[start:end].decode('utf-8')
00569       else:
00570         self.ndesc_pc_msg.header.frame_id = str[start:end]
00571       _x = self
00572       start = end
00573       end += 24
00574       (_x.ndesc_pc_msg.num_orient_bins, _x.ndesc_pc_msg.num_spa_bins, _x.ndesc_pc_msg.num, _x.ndesc_pc_msg.len, _x.ndesc_pc_msg.width, _x.ndesc_pc_msg.height,) = _struct_6i.unpack(str[start:end])
00575       start = end
00576       end += 4
00577       (length,) = _struct_I.unpack(str[start:end])
00578       self.ndesc_pc_msg.descriptors = []
00579       for i in range(0, length):
00580         val1 = normal_descriptor_node.msg.ndesc()
00581         start = end
00582         end += 4
00583         (length,) = _struct_I.unpack(str[start:end])
00584         pattern = '<%sf'%length
00585         start = end
00586         end += struct.calcsize(pattern)
00587         val1.descriptor = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00588         _v4 = val1.point3d
00589         _x = _v4
00590         start = end
00591         end += 24
00592         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00593         _x = val1
00594         start = end
00595         end += 12
00596         (_x.u, _x.v, _x.ori,) = _struct_2if.unpack(str[start:end])
00597         self.ndesc_pc_msg.descriptors.append(val1)
00598       return self
00599     except struct.error as e:
00600       raise genpy.DeserializationError(e) #most likely buffer underfill
00601 
00602 _struct_I = genpy.struct_I
00603 _struct_2if = struct.Struct("<2if")
00604 _struct_6i = struct.Struct("<6i")
00605 _struct_3I = struct.Struct("<3I")
00606 _struct_3d = struct.Struct("<3d")
00607 class ndesc_pc_service(object):
00608   _type          = 'normal_descriptor_node/ndesc_pc_service'
00609   _md5sum = '820ec8d4b51fd678aefcb5618d6d715c'
00610   _request_class  = ndesc_pc_serviceRequest
00611   _response_class = ndesc_pc_serviceResponse


normal_descriptor_node
Author(s): Arnau Ramisa
autogenerated on Fri Dec 6 2013 20:19:55