$search
00001 """autogenerated by genmsg_py from remove_duplicate_viewsRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import std_msgs.msg 00006 00007 class remove_duplicate_viewsRequest(roslib.message.Message): 00008 _md5sum = "756ac673cc480e7ac7af4e69f0643534" 00009 _type = "vfh_recognizer_db/remove_duplicate_viewsRequest" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """std_msgs/Int32 scaled_model_id 00012 std_msgs/Int32 iteration 00013 00014 ================================================================================ 00015 MSG: std_msgs/Int32 00016 int32 data 00017 """ 00018 __slots__ = ['scaled_model_id','iteration'] 00019 _slot_types = ['std_msgs/Int32','std_msgs/Int32'] 00020 00021 def __init__(self, *args, **kwds): 00022 """ 00023 Constructor. Any message fields that are implicitly/explicitly 00024 set to None will be assigned a default value. The recommend 00025 use is keyword arguments as this is more robust to future message 00026 changes. You cannot mix in-order arguments and keyword arguments. 00027 00028 The available fields are: 00029 scaled_model_id,iteration 00030 00031 @param args: complete set of field values, in .msg order 00032 @param kwds: use keyword arguments corresponding to message field names 00033 to set specific fields. 00034 """ 00035 if args or kwds: 00036 super(remove_duplicate_viewsRequest, self).__init__(*args, **kwds) 00037 #message fields cannot be None, assign default values for those that are 00038 if self.scaled_model_id is None: 00039 self.scaled_model_id = std_msgs.msg.Int32() 00040 if self.iteration is None: 00041 self.iteration = std_msgs.msg.Int32() 00042 else: 00043 self.scaled_model_id = std_msgs.msg.Int32() 00044 self.iteration = std_msgs.msg.Int32() 00045 00046 def _get_types(self): 00047 """ 00048 internal API method 00049 """ 00050 return self._slot_types 00051 00052 def serialize(self, buff): 00053 """ 00054 serialize message into buffer 00055 @param buff: buffer 00056 @type buff: StringIO 00057 """ 00058 try: 00059 _x = self 00060 buff.write(_struct_2i.pack(_x.scaled_model_id.data, _x.iteration.data)) 00061 except struct.error as se: self._check_types(se) 00062 except TypeError as te: self._check_types(te) 00063 00064 def deserialize(self, str): 00065 """ 00066 unpack serialized message in str into this message instance 00067 @param str: byte array of serialized message 00068 @type str: str 00069 """ 00070 try: 00071 if self.scaled_model_id is None: 00072 self.scaled_model_id = std_msgs.msg.Int32() 00073 if self.iteration is None: 00074 self.iteration = std_msgs.msg.Int32() 00075 end = 0 00076 _x = self 00077 start = end 00078 end += 8 00079 (_x.scaled_model_id.data, _x.iteration.data,) = _struct_2i.unpack(str[start:end]) 00080 return self 00081 except struct.error as e: 00082 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00083 00084 00085 def serialize_numpy(self, buff, numpy): 00086 """ 00087 serialize message with numpy array types into buffer 00088 @param buff: buffer 00089 @type buff: StringIO 00090 @param numpy: numpy python module 00091 @type numpy module 00092 """ 00093 try: 00094 _x = self 00095 buff.write(_struct_2i.pack(_x.scaled_model_id.data, _x.iteration.data)) 00096 except struct.error as se: self._check_types(se) 00097 except TypeError as te: self._check_types(te) 00098 00099 def deserialize_numpy(self, str, numpy): 00100 """ 00101 unpack serialized message in str into this message instance using numpy for array types 00102 @param str: byte array of serialized message 00103 @type str: str 00104 @param numpy: numpy python module 00105 @type numpy: module 00106 """ 00107 try: 00108 if self.scaled_model_id is None: 00109 self.scaled_model_id = std_msgs.msg.Int32() 00110 if self.iteration is None: 00111 self.iteration = std_msgs.msg.Int32() 00112 end = 0 00113 _x = self 00114 start = end 00115 end += 8 00116 (_x.scaled_model_id.data, _x.iteration.data,) = _struct_2i.unpack(str[start:end]) 00117 return self 00118 except struct.error as e: 00119 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00120 00121 _struct_I = roslib.message.struct_I 00122 _struct_2i = struct.Struct("<2i") 00123 """autogenerated by genmsg_py from remove_duplicate_viewsResponse.msg. Do not edit.""" 00124 import roslib.message 00125 import struct 00126 00127 00128 class remove_duplicate_viewsResponse(roslib.message.Message): 00129 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00130 _type = "vfh_recognizer_db/remove_duplicate_viewsResponse" 00131 _has_header = False #flag to mark the presence of a Header object 00132 _full_text = """ 00133 """ 00134 __slots__ = [] 00135 _slot_types = [] 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 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(remove_duplicate_viewsResponse, self).__init__(*args, **kwds) 00153 00154 def _get_types(self): 00155 """ 00156 internal API method 00157 """ 00158 return self._slot_types 00159 00160 def serialize(self, buff): 00161 """ 00162 serialize message into buffer 00163 @param buff: buffer 00164 @type buff: StringIO 00165 """ 00166 try: 00167 pass 00168 except struct.error as se: self._check_types(se) 00169 except TypeError as te: self._check_types(te) 00170 00171 def deserialize(self, str): 00172 """ 00173 unpack serialized message in str into this message instance 00174 @param str: byte array of serialized message 00175 @type str: str 00176 """ 00177 try: 00178 end = 0 00179 return self 00180 except struct.error as e: 00181 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00182 00183 00184 def serialize_numpy(self, buff, numpy): 00185 """ 00186 serialize message with numpy array types into buffer 00187 @param buff: buffer 00188 @type buff: StringIO 00189 @param numpy: numpy python module 00190 @type numpy module 00191 """ 00192 try: 00193 pass 00194 except struct.error as se: self._check_types(se) 00195 except TypeError as te: self._check_types(te) 00196 00197 def deserialize_numpy(self, str, numpy): 00198 """ 00199 unpack serialized message in str into this message instance using numpy for array types 00200 @param str: byte array of serialized message 00201 @type str: str 00202 @param numpy: numpy python module 00203 @type numpy: module 00204 """ 00205 try: 00206 end = 0 00207 return self 00208 except struct.error as e: 00209 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00210 00211 _struct_I = roslib.message.struct_I 00212 class remove_duplicate_views(roslib.message.ServiceDefinition): 00213 _type = 'vfh_recognizer_db/remove_duplicate_views' 00214 _md5sum = '756ac673cc480e7ac7af4e69f0643534' 00215 _request_class = remove_duplicate_viewsRequest 00216 _response_class = remove_duplicate_viewsResponse