00001 """autogenerated by genmsg_py from StartAppRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class StartAppRequest(roslib.message.Message):
00007 _md5sum = "c1f3d28f1b044c871e6eff2e9fc3c667"
00008 _type = "app_manager/StartAppRequest"
00009 _has_header = False
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(StartAppRequest, self).__init__(*args, **kwds)
00033
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, se: self._check_types(se)
00056 except TypeError, 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, e:
00074 raise roslib.message.DeserializationError(e)
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, se: self._check_types(se)
00090 except TypeError, 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, e:
00110 raise roslib.message.DeserializationError(e)
00111
00112 _struct_I = roslib.message.struct_I
00113 """autogenerated by genmsg_py from StartAppResponse.msg. Do not edit."""
00114 import roslib.message
00115 import struct
00116
00117
00118 class StartAppResponse(roslib.message.Message):
00119 _md5sum = "29589baf2876ff624d4cb5688c12265e"
00120 _type = "app_manager/StartAppResponse"
00121 _has_header = False
00122 _full_text = """
00123 bool started
00124
00125
00126 int32 error_code
00127
00128 string message
00129
00130 string namespace
00131
00132
00133
00134 """
00135 __slots__ = ['started','error_code','message','namespace']
00136 _slot_types = ['bool','int32','string','string']
00137
00138 def __init__(self, *args, **kwds):
00139 """
00140 Constructor. Any message fields that are implicitly/explicitly
00141 set to None will be assigned a default value. The recommend
00142 use is keyword arguments as this is more robust to future message
00143 changes. You cannot mix in-order arguments and keyword arguments.
00144
00145 The available fields are:
00146 started,error_code,message,namespace
00147
00148 @param args: complete set of field values, in .msg order
00149 @param kwds: use keyword arguments corresponding to message field names
00150 to set specific fields.
00151 """
00152 if args or kwds:
00153 super(StartAppResponse, self).__init__(*args, **kwds)
00154
00155 if self.started is None:
00156 self.started = False
00157 if self.error_code is None:
00158 self.error_code = 0
00159 if self.message is None:
00160 self.message = ''
00161 if self.namespace is None:
00162 self.namespace = ''
00163 else:
00164 self.started = False
00165 self.error_code = 0
00166 self.message = ''
00167 self.namespace = ''
00168
00169 def _get_types(self):
00170 """
00171 internal API method
00172 """
00173 return self._slot_types
00174
00175 def serialize(self, buff):
00176 """
00177 serialize message into buffer
00178 @param buff: buffer
00179 @type buff: StringIO
00180 """
00181 try:
00182 _x = self
00183 buff.write(_struct_Bi.pack(_x.started, _x.error_code))
00184 _x = self.message
00185 length = len(_x)
00186 buff.write(struct.pack('<I%ss'%length, length, _x))
00187 _x = self.namespace
00188 length = len(_x)
00189 buff.write(struct.pack('<I%ss'%length, length, _x))
00190 except struct.error, se: self._check_types(se)
00191 except TypeError, te: self._check_types(te)
00192
00193 def deserialize(self, str):
00194 """
00195 unpack serialized message in str into this message instance
00196 @param str: byte array of serialized message
00197 @type str: str
00198 """
00199 try:
00200 end = 0
00201 _x = self
00202 start = end
00203 end += 5
00204 (_x.started, _x.error_code,) = _struct_Bi.unpack(str[start:end])
00205 self.started = bool(self.started)
00206 start = end
00207 end += 4
00208 (length,) = _struct_I.unpack(str[start:end])
00209 start = end
00210 end += length
00211 self.message = str[start:end]
00212 start = end
00213 end += 4
00214 (length,) = _struct_I.unpack(str[start:end])
00215 start = end
00216 end += length
00217 self.namespace = str[start:end]
00218 return self
00219 except struct.error, e:
00220 raise roslib.message.DeserializationError(e)
00221
00222
00223 def serialize_numpy(self, buff, numpy):
00224 """
00225 serialize message with numpy array types into buffer
00226 @param buff: buffer
00227 @type buff: StringIO
00228 @param numpy: numpy python module
00229 @type numpy module
00230 """
00231 try:
00232 _x = self
00233 buff.write(_struct_Bi.pack(_x.started, _x.error_code))
00234 _x = self.message
00235 length = len(_x)
00236 buff.write(struct.pack('<I%ss'%length, length, _x))
00237 _x = self.namespace
00238 length = len(_x)
00239 buff.write(struct.pack('<I%ss'%length, length, _x))
00240 except struct.error, se: self._check_types(se)
00241 except TypeError, te: self._check_types(te)
00242
00243 def deserialize_numpy(self, str, numpy):
00244 """
00245 unpack serialized message in str into this message instance using numpy for array types
00246 @param str: byte array of serialized message
00247 @type str: str
00248 @param numpy: numpy python module
00249 @type numpy: module
00250 """
00251 try:
00252 end = 0
00253 _x = self
00254 start = end
00255 end += 5
00256 (_x.started, _x.error_code,) = _struct_Bi.unpack(str[start:end])
00257 self.started = bool(self.started)
00258 start = end
00259 end += 4
00260 (length,) = _struct_I.unpack(str[start:end])
00261 start = end
00262 end += length
00263 self.message = str[start:end]
00264 start = end
00265 end += 4
00266 (length,) = _struct_I.unpack(str[start:end])
00267 start = end
00268 end += length
00269 self.namespace = str[start:end]
00270 return self
00271 except struct.error, e:
00272 raise roslib.message.DeserializationError(e)
00273
00274 _struct_I = roslib.message.struct_I
00275 _struct_Bi = struct.Struct("<Bi")
00276 class StartApp(roslib.message.ServiceDefinition):
00277 _type = 'app_manager/StartApp'
00278 _md5sum = '07c2c0d81a44b3d573187630fa526c81'
00279 _request_class = StartAppRequest
00280 _response_class = StartAppResponse