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