_SetPosition.py
Go to the documentation of this file.
00001 """autogenerated by genpy from fast_plane_detection/SetPositionRequest.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 SetPositionRequest(genpy.Message):
00009   _md5sum = "c0616c0926ce289f15713c2df1d4fb0f"
00010   _type = "fast_plane_detection/SetPositionRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """float64 x
00013 float64 y
00014 float64 z
00015 int32 transform
00016 int32 width
00017 int32 height
00018 
00019 """
00020   __slots__ = ['x','y','z','transform','width','height']
00021   _slot_types = ['float64','float64','float64','int32','int32','int32']
00022 
00023   def __init__(self, *args, **kwds):
00024     """
00025     Constructor. Any message fields that are implicitly/explicitly
00026     set to None will be assigned a default value. The recommend
00027     use is keyword arguments as this is more robust to future message
00028     changes.  You cannot mix in-order arguments and keyword arguments.
00029 
00030     The available fields are:
00031        x,y,z,transform,width,height
00032 
00033     :param args: complete set of field values, in .msg order
00034     :param kwds: use keyword arguments corresponding to message field names
00035     to set specific fields.
00036     """
00037     if args or kwds:
00038       super(SetPositionRequest, self).__init__(*args, **kwds)
00039       #message fields cannot be None, assign default values for those that are
00040       if self.x is None:
00041         self.x = 0.
00042       if self.y is None:
00043         self.y = 0.
00044       if self.z is None:
00045         self.z = 0.
00046       if self.transform is None:
00047         self.transform = 0
00048       if self.width is None:
00049         self.width = 0
00050       if self.height is None:
00051         self.height = 0
00052     else:
00053       self.x = 0.
00054       self.y = 0.
00055       self.z = 0.
00056       self.transform = 0
00057       self.width = 0
00058       self.height = 0
00059 
00060   def _get_types(self):
00061     """
00062     internal API method
00063     """
00064     return self._slot_types
00065 
00066   def serialize(self, buff):
00067     """
00068     serialize message into buffer
00069     :param buff: buffer, ``StringIO``
00070     """
00071     try:
00072       _x = self
00073       buff.write(_struct_3d3i.pack(_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height))
00074     except struct.error as se: self._check_types(se)
00075     except TypeError as te: self._check_types(te)
00076 
00077   def deserialize(self, str):
00078     """
00079     unpack serialized message in str into this message instance
00080     :param str: byte array of serialized message, ``str``
00081     """
00082     try:
00083       end = 0
00084       _x = self
00085       start = end
00086       end += 36
00087       (_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height,) = _struct_3d3i.unpack(str[start:end])
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       _x = self
00101       buff.write(_struct_3d3i.pack(_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height))
00102     except struct.error as se: self._check_types(se)
00103     except TypeError as te: self._check_types(te)
00104 
00105   def deserialize_numpy(self, str, numpy):
00106     """
00107     unpack serialized message in str into this message instance using numpy for array types
00108     :param str: byte array of serialized message, ``str``
00109     :param numpy: numpy python module
00110     """
00111     try:
00112       end = 0
00113       _x = self
00114       start = end
00115       end += 36
00116       (_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height,) = _struct_3d3i.unpack(str[start:end])
00117       return self
00118     except struct.error as e:
00119       raise genpy.DeserializationError(e) #most likely buffer underfill
00120 
00121 _struct_I = genpy.struct_I
00122 _struct_3d3i = struct.Struct("<3d3i")
00123 """autogenerated by genpy from fast_plane_detection/SetPositionResponse.msg. Do not edit."""
00124 import sys
00125 python3 = True if sys.hexversion > 0x03000000 else False
00126 import genpy
00127 import struct
00128 
00129 
00130 class SetPositionResponse(genpy.Message):
00131   _md5sum = "c0616c0926ce289f15713c2df1d4fb0f"
00132   _type = "fast_plane_detection/SetPositionResponse"
00133   _has_header = False #flag to mark the presence of a Header object
00134   _full_text = """float64 x
00135 float64 y
00136 float64 z
00137 int32 transform
00138 int32 width
00139 int32 height
00140 
00141 
00142 """
00143   __slots__ = ['x','y','z','transform','width','height']
00144   _slot_types = ['float64','float64','float64','int32','int32','int32']
00145 
00146   def __init__(self, *args, **kwds):
00147     """
00148     Constructor. Any message fields that are implicitly/explicitly
00149     set to None will be assigned a default value. The recommend
00150     use is keyword arguments as this is more robust to future message
00151     changes.  You cannot mix in-order arguments and keyword arguments.
00152 
00153     The available fields are:
00154        x,y,z,transform,width,height
00155 
00156     :param args: complete set of field values, in .msg order
00157     :param kwds: use keyword arguments corresponding to message field names
00158     to set specific fields.
00159     """
00160     if args or kwds:
00161       super(SetPositionResponse, self).__init__(*args, **kwds)
00162       #message fields cannot be None, assign default values for those that are
00163       if self.x is None:
00164         self.x = 0.
00165       if self.y is None:
00166         self.y = 0.
00167       if self.z is None:
00168         self.z = 0.
00169       if self.transform is None:
00170         self.transform = 0
00171       if self.width is None:
00172         self.width = 0
00173       if self.height is None:
00174         self.height = 0
00175     else:
00176       self.x = 0.
00177       self.y = 0.
00178       self.z = 0.
00179       self.transform = 0
00180       self.width = 0
00181       self.height = 0
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       _x = self
00196       buff.write(_struct_3d3i.pack(_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height))
00197     except struct.error as se: self._check_types(se)
00198     except TypeError as te: self._check_types(te)
00199 
00200   def deserialize(self, str):
00201     """
00202     unpack serialized message in str into this message instance
00203     :param str: byte array of serialized message, ``str``
00204     """
00205     try:
00206       end = 0
00207       _x = self
00208       start = end
00209       end += 36
00210       (_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height,) = _struct_3d3i.unpack(str[start:end])
00211       return self
00212     except struct.error as e:
00213       raise genpy.DeserializationError(e) #most likely buffer underfill
00214 
00215 
00216   def serialize_numpy(self, buff, numpy):
00217     """
00218     serialize message with numpy array types into buffer
00219     :param buff: buffer, ``StringIO``
00220     :param numpy: numpy python module
00221     """
00222     try:
00223       _x = self
00224       buff.write(_struct_3d3i.pack(_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height))
00225     except struct.error as se: self._check_types(se)
00226     except TypeError as te: self._check_types(te)
00227 
00228   def deserialize_numpy(self, str, numpy):
00229     """
00230     unpack serialized message in str into this message instance using numpy for array types
00231     :param str: byte array of serialized message, ``str``
00232     :param numpy: numpy python module
00233     """
00234     try:
00235       end = 0
00236       _x = self
00237       start = end
00238       end += 36
00239       (_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height,) = _struct_3d3i.unpack(str[start:end])
00240       return self
00241     except struct.error as e:
00242       raise genpy.DeserializationError(e) #most likely buffer underfill
00243 
00244 _struct_I = genpy.struct_I
00245 _struct_3d3i = struct.Struct("<3d3i")
00246 class SetPosition(object):
00247   _type          = 'fast_plane_detection/SetPosition'
00248   _md5sum = '98bf3204c7beb0638717e3f7fd31933c'
00249   _request_class  = SetPositionRequest
00250   _response_class = SetPositionResponse
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


fast_plane_detection
Author(s): Jeannette Bohg
autogenerated on Wed Jan 23 2013 16:52:53