_BaTestEnvironment.py
Go to the documentation of this file.
00001 """autogenerated by genpy from cob_object_detection_msgs/BaTestEnvironmentRequest.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 BaTestEnvironmentRequest(genpy.Message):
00009   _md5sum = "65aeb9eaa6cbc248861e82cf7f7464c0"
00010   _type = "cob_object_detection_msgs/BaTestEnvironmentRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """
00013 
00014 int32 number_points
00015 float32 frame_view_number
00016 float32 cone_points_per_plane
00017 
00018 
00019 float32 limit_error_matching
00020 
00021 float32 ba_kernel_param
00022 int32 ba_num_iter
00023 float32 ba_initial_mu
00024 float32 ba_final_mu_factor
00025 float32 ba_tau
00026 
00027 float32 angle_sigma_degree
00028 float32 translate_sigma_m
00029 float32 obs_point_sigma_m
00030 float32 world_point_sigma_m
00031 
00032 
00033 """
00034   __slots__ = ['number_points','frame_view_number','cone_points_per_plane','limit_error_matching','ba_kernel_param','ba_num_iter','ba_initial_mu','ba_final_mu_factor','ba_tau','angle_sigma_degree','translate_sigma_m','obs_point_sigma_m','world_point_sigma_m']
00035   _slot_types = ['int32','float32','float32','float32','float32','int32','float32','float32','float32','float32','float32','float32','float32']
00036 
00037   def __init__(self, *args, **kwds):
00038     """
00039     Constructor. Any message fields that are implicitly/explicitly
00040     set to None will be assigned a default value. The recommend
00041     use is keyword arguments as this is more robust to future message
00042     changes.  You cannot mix in-order arguments and keyword arguments.
00043 
00044     The available fields are:
00045        number_points,frame_view_number,cone_points_per_plane,limit_error_matching,ba_kernel_param,ba_num_iter,ba_initial_mu,ba_final_mu_factor,ba_tau,angle_sigma_degree,translate_sigma_m,obs_point_sigma_m,world_point_sigma_m
00046 
00047     :param args: complete set of field values, in .msg order
00048     :param kwds: use keyword arguments corresponding to message field names
00049     to set specific fields.
00050     """
00051     if args or kwds:
00052       super(BaTestEnvironmentRequest, self).__init__(*args, **kwds)
00053       #message fields cannot be None, assign default values for those that are
00054       if self.number_points is None:
00055         self.number_points = 0
00056       if self.frame_view_number is None:
00057         self.frame_view_number = 0.
00058       if self.cone_points_per_plane is None:
00059         self.cone_points_per_plane = 0.
00060       if self.limit_error_matching is None:
00061         self.limit_error_matching = 0.
00062       if self.ba_kernel_param is None:
00063         self.ba_kernel_param = 0.
00064       if self.ba_num_iter is None:
00065         self.ba_num_iter = 0
00066       if self.ba_initial_mu is None:
00067         self.ba_initial_mu = 0.
00068       if self.ba_final_mu_factor is None:
00069         self.ba_final_mu_factor = 0.
00070       if self.ba_tau is None:
00071         self.ba_tau = 0.
00072       if self.angle_sigma_degree is None:
00073         self.angle_sigma_degree = 0.
00074       if self.translate_sigma_m is None:
00075         self.translate_sigma_m = 0.
00076       if self.obs_point_sigma_m is None:
00077         self.obs_point_sigma_m = 0.
00078       if self.world_point_sigma_m is None:
00079         self.world_point_sigma_m = 0.
00080     else:
00081       self.number_points = 0
00082       self.frame_view_number = 0.
00083       self.cone_points_per_plane = 0.
00084       self.limit_error_matching = 0.
00085       self.ba_kernel_param = 0.
00086       self.ba_num_iter = 0
00087       self.ba_initial_mu = 0.
00088       self.ba_final_mu_factor = 0.
00089       self.ba_tau = 0.
00090       self.angle_sigma_degree = 0.
00091       self.translate_sigma_m = 0.
00092       self.obs_point_sigma_m = 0.
00093       self.world_point_sigma_m = 0.
00094 
00095   def _get_types(self):
00096     """
00097     internal API method
00098     """
00099     return self._slot_types
00100 
00101   def serialize(self, buff):
00102     """
00103     serialize message into buffer
00104     :param buff: buffer, ``StringIO``
00105     """
00106     try:
00107       _x = self
00108       buff.write(_struct_i4fi7f.pack(_x.number_points, _x.frame_view_number, _x.cone_points_per_plane, _x.limit_error_matching, _x.ba_kernel_param, _x.ba_num_iter, _x.ba_initial_mu, _x.ba_final_mu_factor, _x.ba_tau, _x.angle_sigma_degree, _x.translate_sigma_m, _x.obs_point_sigma_m, _x.world_point_sigma_m))
00109     except struct.error as se: self._check_types(se)
00110     except TypeError as te: self._check_types(te)
00111 
00112   def deserialize(self, str):
00113     """
00114     unpack serialized message in str into this message instance
00115     :param str: byte array of serialized message, ``str``
00116     """
00117     try:
00118       end = 0
00119       _x = self
00120       start = end
00121       end += 52
00122       (_x.number_points, _x.frame_view_number, _x.cone_points_per_plane, _x.limit_error_matching, _x.ba_kernel_param, _x.ba_num_iter, _x.ba_initial_mu, _x.ba_final_mu_factor, _x.ba_tau, _x.angle_sigma_degree, _x.translate_sigma_m, _x.obs_point_sigma_m, _x.world_point_sigma_m,) = _struct_i4fi7f.unpack(str[start:end])
00123       return self
00124     except struct.error as e:
00125       raise genpy.DeserializationError(e) #most likely buffer underfill
00126 
00127 
00128   def serialize_numpy(self, buff, numpy):
00129     """
00130     serialize message with numpy array types into buffer
00131     :param buff: buffer, ``StringIO``
00132     :param numpy: numpy python module
00133     """
00134     try:
00135       _x = self
00136       buff.write(_struct_i4fi7f.pack(_x.number_points, _x.frame_view_number, _x.cone_points_per_plane, _x.limit_error_matching, _x.ba_kernel_param, _x.ba_num_iter, _x.ba_initial_mu, _x.ba_final_mu_factor, _x.ba_tau, _x.angle_sigma_degree, _x.translate_sigma_m, _x.obs_point_sigma_m, _x.world_point_sigma_m))
00137     except struct.error as se: self._check_types(se)
00138     except TypeError as te: self._check_types(te)
00139 
00140   def deserialize_numpy(self, str, numpy):
00141     """
00142     unpack serialized message in str into this message instance using numpy for array types
00143     :param str: byte array of serialized message, ``str``
00144     :param numpy: numpy python module
00145     """
00146     try:
00147       end = 0
00148       _x = self
00149       start = end
00150       end += 52
00151       (_x.number_points, _x.frame_view_number, _x.cone_points_per_plane, _x.limit_error_matching, _x.ba_kernel_param, _x.ba_num_iter, _x.ba_initial_mu, _x.ba_final_mu_factor, _x.ba_tau, _x.angle_sigma_degree, _x.translate_sigma_m, _x.obs_point_sigma_m, _x.world_point_sigma_m,) = _struct_i4fi7f.unpack(str[start:end])
00152       return self
00153     except struct.error as e:
00154       raise genpy.DeserializationError(e) #most likely buffer underfill
00155 
00156 _struct_I = genpy.struct_I
00157 _struct_i4fi7f = struct.Struct("<i4fi7f")
00158 """autogenerated by genpy from cob_object_detection_msgs/BaTestEnvironmentResponse.msg. Do not edit."""
00159 import sys
00160 python3 = True if sys.hexversion > 0x03000000 else False
00161 import genpy
00162 import struct
00163 
00164 import std_msgs.msg
00165 
00166 class BaTestEnvironmentResponse(genpy.Message):
00167   _md5sum = "73db4f13e99b7e554aa13b596abbef41"
00168   _type = "cob_object_detection_msgs/BaTestEnvironmentResponse"
00169   _has_header = False #flag to mark the presence of a Header object
00170   _full_text = """float32 mean_error
00171 float32 std_dev
00172 float32 min_error
00173 float32 max_error
00174 float32 runs_count
00175 float32 runs_sum
00176 float32 runs_sum2
00177 
00178 float32 time_duration
00179 int32 observations
00180 int32 false_matchings
00181 
00182 std_msgs/String result
00183 
00184 
00185 ================================================================================
00186 MSG: std_msgs/String
00187 string data
00188 
00189 """
00190   __slots__ = ['mean_error','std_dev','min_error','max_error','runs_count','runs_sum','runs_sum2','time_duration','observations','false_matchings','result']
00191   _slot_types = ['float32','float32','float32','float32','float32','float32','float32','float32','int32','int32','std_msgs/String']
00192 
00193   def __init__(self, *args, **kwds):
00194     """
00195     Constructor. Any message fields that are implicitly/explicitly
00196     set to None will be assigned a default value. The recommend
00197     use is keyword arguments as this is more robust to future message
00198     changes.  You cannot mix in-order arguments and keyword arguments.
00199 
00200     The available fields are:
00201        mean_error,std_dev,min_error,max_error,runs_count,runs_sum,runs_sum2,time_duration,observations,false_matchings,result
00202 
00203     :param args: complete set of field values, in .msg order
00204     :param kwds: use keyword arguments corresponding to message field names
00205     to set specific fields.
00206     """
00207     if args or kwds:
00208       super(BaTestEnvironmentResponse, self).__init__(*args, **kwds)
00209       #message fields cannot be None, assign default values for those that are
00210       if self.mean_error is None:
00211         self.mean_error = 0.
00212       if self.std_dev is None:
00213         self.std_dev = 0.
00214       if self.min_error is None:
00215         self.min_error = 0.
00216       if self.max_error is None:
00217         self.max_error = 0.
00218       if self.runs_count is None:
00219         self.runs_count = 0.
00220       if self.runs_sum is None:
00221         self.runs_sum = 0.
00222       if self.runs_sum2 is None:
00223         self.runs_sum2 = 0.
00224       if self.time_duration is None:
00225         self.time_duration = 0.
00226       if self.observations is None:
00227         self.observations = 0
00228       if self.false_matchings is None:
00229         self.false_matchings = 0
00230       if self.result is None:
00231         self.result = std_msgs.msg.String()
00232     else:
00233       self.mean_error = 0.
00234       self.std_dev = 0.
00235       self.min_error = 0.
00236       self.max_error = 0.
00237       self.runs_count = 0.
00238       self.runs_sum = 0.
00239       self.runs_sum2 = 0.
00240       self.time_duration = 0.
00241       self.observations = 0
00242       self.false_matchings = 0
00243       self.result = std_msgs.msg.String()
00244 
00245   def _get_types(self):
00246     """
00247     internal API method
00248     """
00249     return self._slot_types
00250 
00251   def serialize(self, buff):
00252     """
00253     serialize message into buffer
00254     :param buff: buffer, ``StringIO``
00255     """
00256     try:
00257       _x = self
00258       buff.write(_struct_8f2i.pack(_x.mean_error, _x.std_dev, _x.min_error, _x.max_error, _x.runs_count, _x.runs_sum, _x.runs_sum2, _x.time_duration, _x.observations, _x.false_matchings))
00259       _x = self.result.data
00260       length = len(_x)
00261       if python3 or type(_x) == unicode:
00262         _x = _x.encode('utf-8')
00263         length = len(_x)
00264       buff.write(struct.pack('<I%ss'%length, length, _x))
00265     except struct.error as se: self._check_types(se)
00266     except TypeError as te: self._check_types(te)
00267 
00268   def deserialize(self, str):
00269     """
00270     unpack serialized message in str into this message instance
00271     :param str: byte array of serialized message, ``str``
00272     """
00273     try:
00274       if self.result is None:
00275         self.result = std_msgs.msg.String()
00276       end = 0
00277       _x = self
00278       start = end
00279       end += 40
00280       (_x.mean_error, _x.std_dev, _x.min_error, _x.max_error, _x.runs_count, _x.runs_sum, _x.runs_sum2, _x.time_duration, _x.observations, _x.false_matchings,) = _struct_8f2i.unpack(str[start:end])
00281       start = end
00282       end += 4
00283       (length,) = _struct_I.unpack(str[start:end])
00284       start = end
00285       end += length
00286       if python3:
00287         self.result.data = str[start:end].decode('utf-8')
00288       else:
00289         self.result.data = str[start:end]
00290       return self
00291     except struct.error as e:
00292       raise genpy.DeserializationError(e) #most likely buffer underfill
00293 
00294 
00295   def serialize_numpy(self, buff, numpy):
00296     """
00297     serialize message with numpy array types into buffer
00298     :param buff: buffer, ``StringIO``
00299     :param numpy: numpy python module
00300     """
00301     try:
00302       _x = self
00303       buff.write(_struct_8f2i.pack(_x.mean_error, _x.std_dev, _x.min_error, _x.max_error, _x.runs_count, _x.runs_sum, _x.runs_sum2, _x.time_duration, _x.observations, _x.false_matchings))
00304       _x = self.result.data
00305       length = len(_x)
00306       if python3 or type(_x) == unicode:
00307         _x = _x.encode('utf-8')
00308         length = len(_x)
00309       buff.write(struct.pack('<I%ss'%length, length, _x))
00310     except struct.error as se: self._check_types(se)
00311     except TypeError as te: self._check_types(te)
00312 
00313   def deserialize_numpy(self, str, numpy):
00314     """
00315     unpack serialized message in str into this message instance using numpy for array types
00316     :param str: byte array of serialized message, ``str``
00317     :param numpy: numpy python module
00318     """
00319     try:
00320       if self.result is None:
00321         self.result = std_msgs.msg.String()
00322       end = 0
00323       _x = self
00324       start = end
00325       end += 40
00326       (_x.mean_error, _x.std_dev, _x.min_error, _x.max_error, _x.runs_count, _x.runs_sum, _x.runs_sum2, _x.time_duration, _x.observations, _x.false_matchings,) = _struct_8f2i.unpack(str[start:end])
00327       start = end
00328       end += 4
00329       (length,) = _struct_I.unpack(str[start:end])
00330       start = end
00331       end += length
00332       if python3:
00333         self.result.data = str[start:end].decode('utf-8')
00334       else:
00335         self.result.data = str[start:end]
00336       return self
00337     except struct.error as e:
00338       raise genpy.DeserializationError(e) #most likely buffer underfill
00339 
00340 _struct_I = genpy.struct_I
00341 _struct_8f2i = struct.Struct("<8f2i")
00342 class BaTestEnvironment(object):
00343   _type          = 'cob_object_detection_msgs/BaTestEnvironment'
00344   _md5sum = 'e3abe6b136e84d507dcba74e019ba61e'
00345   _request_class  = BaTestEnvironmentRequest
00346   _response_class = BaTestEnvironmentResponse
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


cob_object_detection_msgs
Author(s): Florian Weisshardt
autogenerated on Sat Mar 9 2013 11:24:33