$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 = "40212867aafb524e2698e0b68419692d" 00009 _type = "vfh_recognizer_fs/remove_duplicate_viewsRequest" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """std_msgs/String model_id 00012 std_msgs/String root_path 00013 00014 ================================================================================ 00015 MSG: std_msgs/String 00016 string data 00017 00018 """ 00019 __slots__ = ['model_id','root_path'] 00020 _slot_types = ['std_msgs/String','std_msgs/String'] 00021 00022 def __init__(self, *args, **kwds): 00023 """ 00024 Constructor. Any message fields that are implicitly/explicitly 00025 set to None will be assigned a default value. The recommend 00026 use is keyword arguments as this is more robust to future message 00027 changes. You cannot mix in-order arguments and keyword arguments. 00028 00029 The available fields are: 00030 model_id,root_path 00031 00032 @param args: complete set of field values, in .msg order 00033 @param kwds: use keyword arguments corresponding to message field names 00034 to set specific fields. 00035 """ 00036 if args or kwds: 00037 super(remove_duplicate_viewsRequest, self).__init__(*args, **kwds) 00038 #message fields cannot be None, assign default values for those that are 00039 if self.model_id is None: 00040 self.model_id = std_msgs.msg.String() 00041 if self.root_path is None: 00042 self.root_path = std_msgs.msg.String() 00043 else: 00044 self.model_id = std_msgs.msg.String() 00045 self.root_path = std_msgs.msg.String() 00046 00047 def _get_types(self): 00048 """ 00049 internal API method 00050 """ 00051 return self._slot_types 00052 00053 def serialize(self, buff): 00054 """ 00055 serialize message into buffer 00056 @param buff: buffer 00057 @type buff: StringIO 00058 """ 00059 try: 00060 _x = self.model_id.data 00061 length = len(_x) 00062 buff.write(struct.pack('<I%ss'%length, length, _x)) 00063 _x = self.root_path.data 00064 length = len(_x) 00065 buff.write(struct.pack('<I%ss'%length, length, _x)) 00066 except struct.error as se: self._check_types(se) 00067 except TypeError as te: self._check_types(te) 00068 00069 def deserialize(self, str): 00070 """ 00071 unpack serialized message in str into this message instance 00072 @param str: byte array of serialized message 00073 @type str: str 00074 """ 00075 try: 00076 if self.model_id is None: 00077 self.model_id = std_msgs.msg.String() 00078 if self.root_path is None: 00079 self.root_path = std_msgs.msg.String() 00080 end = 0 00081 start = end 00082 end += 4 00083 (length,) = _struct_I.unpack(str[start:end]) 00084 start = end 00085 end += length 00086 self.model_id.data = str[start:end] 00087 start = end 00088 end += 4 00089 (length,) = _struct_I.unpack(str[start:end]) 00090 start = end 00091 end += length 00092 self.root_path.data = str[start:end] 00093 return self 00094 except struct.error as e: 00095 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00096 00097 00098 def serialize_numpy(self, buff, numpy): 00099 """ 00100 serialize message with numpy array types into buffer 00101 @param buff: buffer 00102 @type buff: StringIO 00103 @param numpy: numpy python module 00104 @type numpy module 00105 """ 00106 try: 00107 _x = self.model_id.data 00108 length = len(_x) 00109 buff.write(struct.pack('<I%ss'%length, length, _x)) 00110 _x = self.root_path.data 00111 length = len(_x) 00112 buff.write(struct.pack('<I%ss'%length, length, _x)) 00113 except struct.error as se: self._check_types(se) 00114 except TypeError as te: self._check_types(te) 00115 00116 def deserialize_numpy(self, str, numpy): 00117 """ 00118 unpack serialized message in str into this message instance using numpy for array types 00119 @param str: byte array of serialized message 00120 @type str: str 00121 @param numpy: numpy python module 00122 @type numpy: module 00123 """ 00124 try: 00125 if self.model_id is None: 00126 self.model_id = std_msgs.msg.String() 00127 if self.root_path is None: 00128 self.root_path = std_msgs.msg.String() 00129 end = 0 00130 start = end 00131 end += 4 00132 (length,) = _struct_I.unpack(str[start:end]) 00133 start = end 00134 end += length 00135 self.model_id.data = str[start:end] 00136 start = end 00137 end += 4 00138 (length,) = _struct_I.unpack(str[start:end]) 00139 start = end 00140 end += length 00141 self.root_path.data = str[start:end] 00142 return self 00143 except struct.error as e: 00144 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00145 00146 _struct_I = roslib.message.struct_I 00147 """autogenerated by genmsg_py from remove_duplicate_viewsResponse.msg. Do not edit.""" 00148 import roslib.message 00149 import struct 00150 00151 00152 class remove_duplicate_viewsResponse(roslib.message.Message): 00153 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00154 _type = "vfh_recognizer_fs/remove_duplicate_viewsResponse" 00155 _has_header = False #flag to mark the presence of a Header object 00156 _full_text = """ 00157 """ 00158 __slots__ = [] 00159 _slot_types = [] 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 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(remove_duplicate_viewsResponse, self).__init__(*args, **kwds) 00177 00178 def _get_types(self): 00179 """ 00180 internal API method 00181 """ 00182 return self._slot_types 00183 00184 def serialize(self, buff): 00185 """ 00186 serialize message into buffer 00187 @param buff: buffer 00188 @type buff: StringIO 00189 """ 00190 try: 00191 pass 00192 except struct.error as se: self._check_types(se) 00193 except TypeError as te: self._check_types(te) 00194 00195 def deserialize(self, str): 00196 """ 00197 unpack serialized message in str into this message instance 00198 @param str: byte array of serialized message 00199 @type str: str 00200 """ 00201 try: 00202 end = 0 00203 return self 00204 except struct.error as e: 00205 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00206 00207 00208 def serialize_numpy(self, buff, numpy): 00209 """ 00210 serialize message with numpy array types into buffer 00211 @param buff: buffer 00212 @type buff: StringIO 00213 @param numpy: numpy python module 00214 @type numpy module 00215 """ 00216 try: 00217 pass 00218 except struct.error as se: self._check_types(se) 00219 except TypeError as te: self._check_types(te) 00220 00221 def deserialize_numpy(self, str, numpy): 00222 """ 00223 unpack serialized message in str into this message instance using numpy for array types 00224 @param str: byte array of serialized message 00225 @type str: str 00226 @param numpy: numpy python module 00227 @type numpy: module 00228 """ 00229 try: 00230 end = 0 00231 return self 00232 except struct.error as e: 00233 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00234 00235 _struct_I = roslib.message.struct_I 00236 class remove_duplicate_views(roslib.message.ServiceDefinition): 00237 _type = 'vfh_recognizer_fs/remove_duplicate_views' 00238 _md5sum = '40212867aafb524e2698e0b68419692d' 00239 _request_class = remove_duplicate_viewsRequest 00240 _response_class = remove_duplicate_viewsResponse