_CoverConvexPolygon.py
Go to the documentation of this file.
00001 """autogenerated by genpy from coverage_3d_tools/CoverConvexPolygonRequest.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 geometry_msgs.msg
00008 
00009 class CoverConvexPolygonRequest(genpy.Message):
00010   _md5sum = "7bf410135d48a1dbd9350eb2d7d8d848"
00011   _type = "coverage_3d_tools/CoverConvexPolygonRequest"
00012   _has_header = False #flag to mark the presence of a Header object
00013   _full_text = """geometry_msgs/Point[] polygon
00014 
00015 ================================================================================
00016 MSG: geometry_msgs/Point
00017 # This contains the position of a point in free space
00018 float64 x
00019 float64 y
00020 float64 z
00021 
00022 """
00023   __slots__ = ['polygon']
00024   _slot_types = ['geometry_msgs/Point[]']
00025 
00026   def __init__(self, *args, **kwds):
00027     """
00028     Constructor. Any message fields that are implicitly/explicitly
00029     set to None will be assigned a default value. The recommend
00030     use is keyword arguments as this is more robust to future message
00031     changes.  You cannot mix in-order arguments and keyword arguments.
00032 
00033     The available fields are:
00034        polygon
00035 
00036     :param args: complete set of field values, in .msg order
00037     :param kwds: use keyword arguments corresponding to message field names
00038     to set specific fields.
00039     """
00040     if args or kwds:
00041       super(CoverConvexPolygonRequest, self).__init__(*args, **kwds)
00042       #message fields cannot be None, assign default values for those that are
00043       if self.polygon is None:
00044         self.polygon = []
00045     else:
00046       self.polygon = []
00047 
00048   def _get_types(self):
00049     """
00050     internal API method
00051     """
00052     return self._slot_types
00053 
00054   def serialize(self, buff):
00055     """
00056     serialize message into buffer
00057     :param buff: buffer, ``StringIO``
00058     """
00059     try:
00060       length = len(self.polygon)
00061       buff.write(_struct_I.pack(length))
00062       for val1 in self.polygon:
00063         _x = val1
00064         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00065     except struct.error as se: self._check_types(se)
00066     except TypeError as te: self._check_types(te)
00067 
00068   def deserialize(self, str):
00069     """
00070     unpack serialized message in str into this message instance
00071     :param str: byte array of serialized message, ``str``
00072     """
00073     try:
00074       if self.polygon is None:
00075         self.polygon = None
00076       end = 0
00077       start = end
00078       end += 4
00079       (length,) = _struct_I.unpack(str[start:end])
00080       self.polygon = []
00081       for i in range(0, length):
00082         val1 = geometry_msgs.msg.Point()
00083         _x = val1
00084         start = end
00085         end += 24
00086         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00087         self.polygon.append(val1)
00088       return self
00089     except struct.error as e:
00090       raise genpy.DeserializationError(e) #most likely buffer underfill
00091 
00092 
00093   def serialize_numpy(self, buff, numpy):
00094     """
00095     serialize message with numpy array types into buffer
00096     :param buff: buffer, ``StringIO``
00097     :param numpy: numpy python module
00098     """
00099     try:
00100       length = len(self.polygon)
00101       buff.write(_struct_I.pack(length))
00102       for val1 in self.polygon:
00103         _x = val1
00104         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00105     except struct.error as se: self._check_types(se)
00106     except TypeError as te: self._check_types(te)
00107 
00108   def deserialize_numpy(self, str, numpy):
00109     """
00110     unpack serialized message in str into this message instance using numpy for array types
00111     :param str: byte array of serialized message, ``str``
00112     :param numpy: numpy python module
00113     """
00114     try:
00115       if self.polygon is None:
00116         self.polygon = None
00117       end = 0
00118       start = end
00119       end += 4
00120       (length,) = _struct_I.unpack(str[start:end])
00121       self.polygon = []
00122       for i in range(0, length):
00123         val1 = geometry_msgs.msg.Point()
00124         _x = val1
00125         start = end
00126         end += 24
00127         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00128         self.polygon.append(val1)
00129       return self
00130     except struct.error as e:
00131       raise genpy.DeserializationError(e) #most likely buffer underfill
00132 
00133 _struct_I = genpy.struct_I
00134 _struct_3d = struct.Struct("<3d")
00135 """autogenerated by genpy from coverage_3d_tools/CoverConvexPolygonResponse.msg. Do not edit."""
00136 import sys
00137 python3 = True if sys.hexversion > 0x03000000 else False
00138 import genpy
00139 import struct
00140 
00141 import geometry_msgs.msg
00142 
00143 class CoverConvexPolygonResponse(genpy.Message):
00144   _md5sum = "b58b29f4d3d5430fc9d5efc2f5262786"
00145   _type = "coverage_3d_tools/CoverConvexPolygonResponse"
00146   _has_header = False #flag to mark the presence of a Header object
00147   _full_text = """geometry_msgs/Point[] path
00148 
00149 
00150 ================================================================================
00151 MSG: geometry_msgs/Point
00152 # This contains the position of a point in free space
00153 float64 x
00154 float64 y
00155 float64 z
00156 
00157 """
00158   __slots__ = ['path']
00159   _slot_types = ['geometry_msgs/Point[]']
00160 
00161   def __init__(self, *args, **kwds):
00162     """
00163     Constructor. Any message fields that are implicitly/explicitly
00164     set to None will be assigned a default value. The recommend
00165     use is keyword arguments as this is more robust to future message
00166     changes.  You cannot mix in-order arguments and keyword arguments.
00167 
00168     The available fields are:
00169        path
00170 
00171     :param args: complete set of field values, in .msg order
00172     :param kwds: use keyword arguments corresponding to message field names
00173     to set specific fields.
00174     """
00175     if args or kwds:
00176       super(CoverConvexPolygonResponse, self).__init__(*args, **kwds)
00177       #message fields cannot be None, assign default values for those that are
00178       if self.path is None:
00179         self.path = []
00180     else:
00181       self.path = []
00182 
00183   def _get_types(self):
00184     """
00185     internal API method
00186     """
00187     return self._slot_types
00188 
00189   def serialize(self, buff):
00190     """
00191     serialize message into buffer
00192     :param buff: buffer, ``StringIO``
00193     """
00194     try:
00195       length = len(self.path)
00196       buff.write(_struct_I.pack(length))
00197       for val1 in self.path:
00198         _x = val1
00199         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00200     except struct.error as se: self._check_types(se)
00201     except TypeError as te: self._check_types(te)
00202 
00203   def deserialize(self, str):
00204     """
00205     unpack serialized message in str into this message instance
00206     :param str: byte array of serialized message, ``str``
00207     """
00208     try:
00209       if self.path is None:
00210         self.path = None
00211       end = 0
00212       start = end
00213       end += 4
00214       (length,) = _struct_I.unpack(str[start:end])
00215       self.path = []
00216       for i in range(0, length):
00217         val1 = geometry_msgs.msg.Point()
00218         _x = val1
00219         start = end
00220         end += 24
00221         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00222         self.path.append(val1)
00223       return self
00224     except struct.error as e:
00225       raise genpy.DeserializationError(e) #most likely buffer underfill
00226 
00227 
00228   def serialize_numpy(self, buff, numpy):
00229     """
00230     serialize message with numpy array types into buffer
00231     :param buff: buffer, ``StringIO``
00232     :param numpy: numpy python module
00233     """
00234     try:
00235       length = len(self.path)
00236       buff.write(_struct_I.pack(length))
00237       for val1 in self.path:
00238         _x = val1
00239         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00240     except struct.error as se: self._check_types(se)
00241     except TypeError as te: self._check_types(te)
00242 
00243   def deserialize_numpy(self, str, numpy):
00244     """
00245     unpack serialized message in str into this message instance using numpy for array types
00246     :param str: byte array of serialized message, ``str``
00247     :param numpy: numpy python module
00248     """
00249     try:
00250       if self.path is None:
00251         self.path = None
00252       end = 0
00253       start = end
00254       end += 4
00255       (length,) = _struct_I.unpack(str[start:end])
00256       self.path = []
00257       for i in range(0, length):
00258         val1 = geometry_msgs.msg.Point()
00259         _x = val1
00260         start = end
00261         end += 24
00262         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00263         self.path.append(val1)
00264       return self
00265     except struct.error as e:
00266       raise genpy.DeserializationError(e) #most likely buffer underfill
00267 
00268 _struct_I = genpy.struct_I
00269 _struct_3d = struct.Struct("<3d")
00270 class CoverConvexPolygon(object):
00271   _type          = 'coverage_3d_tools/CoverConvexPolygon'
00272   _md5sum = '11fa5a4d6f7b56c333bf5e8efc7b419b'
00273   _request_class  = CoverConvexPolygonRequest
00274   _response_class = CoverConvexPolygonResponse
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


coverage_3d_tools
Author(s): Juergen Hess
autogenerated on Wed Dec 26 2012 15:25:37