00001 """autogenerated by genmsg_py from NodeletLoadRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class NodeletLoadRequest(roslib.message.Message):
00007 _md5sum = "c6e28cc4d2e259249d96cfb50658fbec"
00008 _type = "nodelet/NodeletLoadRequest"
00009 _has_header = False
00010 _full_text = """string name
00011 string type
00012 string[] remap_source_args
00013 string[] remap_target_args
00014 string[] my_argv
00015
00016 string bond_id
00017
00018 """
00019 __slots__ = ['name','type','remap_source_args','remap_target_args','my_argv','bond_id']
00020 _slot_types = ['string','string','string[]','string[]','string[]','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 name,type,remap_source_args,remap_target_args,my_argv,bond_id
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(NodeletLoadRequest, self).__init__(*args, **kwds)
00038
00039 if self.name is None:
00040 self.name = ''
00041 if self.type is None:
00042 self.type = ''
00043 if self.remap_source_args is None:
00044 self.remap_source_args = []
00045 if self.remap_target_args is None:
00046 self.remap_target_args = []
00047 if self.my_argv is None:
00048 self.my_argv = []
00049 if self.bond_id is None:
00050 self.bond_id = ''
00051 else:
00052 self.name = ''
00053 self.type = ''
00054 self.remap_source_args = []
00055 self.remap_target_args = []
00056 self.my_argv = []
00057 self.bond_id = ''
00058
00059 def _get_types(self):
00060 """
00061 internal API method
00062 """
00063 return self._slot_types
00064
00065 def serialize(self, buff):
00066 """
00067 serialize message into buffer
00068 @param buff: buffer
00069 @type buff: StringIO
00070 """
00071 try:
00072 _x = self.name
00073 length = len(_x)
00074 buff.write(struct.pack('<I%ss'%length, length, _x))
00075 _x = self.type
00076 length = len(_x)
00077 buff.write(struct.pack('<I%ss'%length, length, _x))
00078 length = len(self.remap_source_args)
00079 buff.write(_struct_I.pack(length))
00080 for val1 in self.remap_source_args:
00081 length = len(val1)
00082 buff.write(struct.pack('<I%ss'%length, length, val1))
00083 length = len(self.remap_target_args)
00084 buff.write(_struct_I.pack(length))
00085 for val1 in self.remap_target_args:
00086 length = len(val1)
00087 buff.write(struct.pack('<I%ss'%length, length, val1))
00088 length = len(self.my_argv)
00089 buff.write(_struct_I.pack(length))
00090 for val1 in self.my_argv:
00091 length = len(val1)
00092 buff.write(struct.pack('<I%ss'%length, length, val1))
00093 _x = self.bond_id
00094 length = len(_x)
00095 buff.write(struct.pack('<I%ss'%length, length, _x))
00096 except struct.error, se: self._check_types(se)
00097 except TypeError, te: self._check_types(te)
00098
00099 def deserialize(self, str):
00100 """
00101 unpack serialized message in str into this message instance
00102 @param str: byte array of serialized message
00103 @type str: str
00104 """
00105 try:
00106 end = 0
00107 start = end
00108 end += 4
00109 (length,) = _struct_I.unpack(str[start:end])
00110 start = end
00111 end += length
00112 self.name = str[start:end]
00113 start = end
00114 end += 4
00115 (length,) = _struct_I.unpack(str[start:end])
00116 start = end
00117 end += length
00118 self.type = str[start:end]
00119 start = end
00120 end += 4
00121 (length,) = _struct_I.unpack(str[start:end])
00122 self.remap_source_args = []
00123 for i in xrange(0, length):
00124 start = end
00125 end += 4
00126 (length,) = _struct_I.unpack(str[start:end])
00127 start = end
00128 end += length
00129 val1 = str[start:end]
00130 self.remap_source_args.append(val1)
00131 start = end
00132 end += 4
00133 (length,) = _struct_I.unpack(str[start:end])
00134 self.remap_target_args = []
00135 for i in xrange(0, length):
00136 start = end
00137 end += 4
00138 (length,) = _struct_I.unpack(str[start:end])
00139 start = end
00140 end += length
00141 val1 = str[start:end]
00142 self.remap_target_args.append(val1)
00143 start = end
00144 end += 4
00145 (length,) = _struct_I.unpack(str[start:end])
00146 self.my_argv = []
00147 for i in xrange(0, length):
00148 start = end
00149 end += 4
00150 (length,) = _struct_I.unpack(str[start:end])
00151 start = end
00152 end += length
00153 val1 = str[start:end]
00154 self.my_argv.append(val1)
00155 start = end
00156 end += 4
00157 (length,) = _struct_I.unpack(str[start:end])
00158 start = end
00159 end += length
00160 self.bond_id = str[start:end]
00161 return self
00162 except struct.error, e:
00163 raise roslib.message.DeserializationError(e)
00164
00165
00166 def serialize_numpy(self, buff, numpy):
00167 """
00168 serialize message with numpy array types into buffer
00169 @param buff: buffer
00170 @type buff: StringIO
00171 @param numpy: numpy python module
00172 @type numpy module
00173 """
00174 try:
00175 _x = self.name
00176 length = len(_x)
00177 buff.write(struct.pack('<I%ss'%length, length, _x))
00178 _x = self.type
00179 length = len(_x)
00180 buff.write(struct.pack('<I%ss'%length, length, _x))
00181 length = len(self.remap_source_args)
00182 buff.write(_struct_I.pack(length))
00183 for val1 in self.remap_source_args:
00184 length = len(val1)
00185 buff.write(struct.pack('<I%ss'%length, length, val1))
00186 length = len(self.remap_target_args)
00187 buff.write(_struct_I.pack(length))
00188 for val1 in self.remap_target_args:
00189 length = len(val1)
00190 buff.write(struct.pack('<I%ss'%length, length, val1))
00191 length = len(self.my_argv)
00192 buff.write(_struct_I.pack(length))
00193 for val1 in self.my_argv:
00194 length = len(val1)
00195 buff.write(struct.pack('<I%ss'%length, length, val1))
00196 _x = self.bond_id
00197 length = len(_x)
00198 buff.write(struct.pack('<I%ss'%length, length, _x))
00199 except struct.error, se: self._check_types(se)
00200 except TypeError, te: self._check_types(te)
00201
00202 def deserialize_numpy(self, str, numpy):
00203 """
00204 unpack serialized message in str into this message instance using numpy for array types
00205 @param str: byte array of serialized message
00206 @type str: str
00207 @param numpy: numpy python module
00208 @type numpy: module
00209 """
00210 try:
00211 end = 0
00212 start = end
00213 end += 4
00214 (length,) = _struct_I.unpack(str[start:end])
00215 start = end
00216 end += length
00217 self.name = str[start:end]
00218 start = end
00219 end += 4
00220 (length,) = _struct_I.unpack(str[start:end])
00221 start = end
00222 end += length
00223 self.type = str[start:end]
00224 start = end
00225 end += 4
00226 (length,) = _struct_I.unpack(str[start:end])
00227 self.remap_source_args = []
00228 for i in xrange(0, length):
00229 start = end
00230 end += 4
00231 (length,) = _struct_I.unpack(str[start:end])
00232 start = end
00233 end += length
00234 val1 = str[start:end]
00235 self.remap_source_args.append(val1)
00236 start = end
00237 end += 4
00238 (length,) = _struct_I.unpack(str[start:end])
00239 self.remap_target_args = []
00240 for i in xrange(0, length):
00241 start = end
00242 end += 4
00243 (length,) = _struct_I.unpack(str[start:end])
00244 start = end
00245 end += length
00246 val1 = str[start:end]
00247 self.remap_target_args.append(val1)
00248 start = end
00249 end += 4
00250 (length,) = _struct_I.unpack(str[start:end])
00251 self.my_argv = []
00252 for i in xrange(0, length):
00253 start = end
00254 end += 4
00255 (length,) = _struct_I.unpack(str[start:end])
00256 start = end
00257 end += length
00258 val1 = str[start:end]
00259 self.my_argv.append(val1)
00260 start = end
00261 end += 4
00262 (length,) = _struct_I.unpack(str[start:end])
00263 start = end
00264 end += length
00265 self.bond_id = str[start:end]
00266 return self
00267 except struct.error, e:
00268 raise roslib.message.DeserializationError(e)
00269
00270 _struct_I = roslib.message.struct_I
00271 """autogenerated by genmsg_py from NodeletLoadResponse.msg. Do not edit."""
00272 import roslib.message
00273 import struct
00274
00275
00276 class NodeletLoadResponse(roslib.message.Message):
00277 _md5sum = "358e233cde0c8a8bcfea4ce193f8fc15"
00278 _type = "nodelet/NodeletLoadResponse"
00279 _has_header = False
00280 _full_text = """bool success
00281
00282
00283 """
00284 __slots__ = ['success']
00285 _slot_types = ['bool']
00286
00287 def __init__(self, *args, **kwds):
00288 """
00289 Constructor. Any message fields that are implicitly/explicitly
00290 set to None will be assigned a default value. The recommend
00291 use is keyword arguments as this is more robust to future message
00292 changes. You cannot mix in-order arguments and keyword arguments.
00293
00294 The available fields are:
00295 success
00296
00297 @param args: complete set of field values, in .msg order
00298 @param kwds: use keyword arguments corresponding to message field names
00299 to set specific fields.
00300 """
00301 if args or kwds:
00302 super(NodeletLoadResponse, self).__init__(*args, **kwds)
00303
00304 if self.success is None:
00305 self.success = False
00306 else:
00307 self.success = False
00308
00309 def _get_types(self):
00310 """
00311 internal API method
00312 """
00313 return self._slot_types
00314
00315 def serialize(self, buff):
00316 """
00317 serialize message into buffer
00318 @param buff: buffer
00319 @type buff: StringIO
00320 """
00321 try:
00322 buff.write(_struct_B.pack(self.success))
00323 except struct.error, se: self._check_types(se)
00324 except TypeError, te: self._check_types(te)
00325
00326 def deserialize(self, str):
00327 """
00328 unpack serialized message in str into this message instance
00329 @param str: byte array of serialized message
00330 @type str: str
00331 """
00332 try:
00333 end = 0
00334 start = end
00335 end += 1
00336 (self.success,) = _struct_B.unpack(str[start:end])
00337 self.success = bool(self.success)
00338 return self
00339 except struct.error, e:
00340 raise roslib.message.DeserializationError(e)
00341
00342
00343 def serialize_numpy(self, buff, numpy):
00344 """
00345 serialize message with numpy array types into buffer
00346 @param buff: buffer
00347 @type buff: StringIO
00348 @param numpy: numpy python module
00349 @type numpy module
00350 """
00351 try:
00352 buff.write(_struct_B.pack(self.success))
00353 except struct.error, se: self._check_types(se)
00354 except TypeError, te: self._check_types(te)
00355
00356 def deserialize_numpy(self, str, numpy):
00357 """
00358 unpack serialized message in str into this message instance using numpy for array types
00359 @param str: byte array of serialized message
00360 @type str: str
00361 @param numpy: numpy python module
00362 @type numpy: module
00363 """
00364 try:
00365 end = 0
00366 start = end
00367 end += 1
00368 (self.success,) = _struct_B.unpack(str[start:end])
00369 self.success = bool(self.success)
00370 return self
00371 except struct.error, e:
00372 raise roslib.message.DeserializationError(e)
00373
00374 _struct_I = roslib.message.struct_I
00375 _struct_B = struct.Struct("<B")
00376 class NodeletLoad(roslib.message.ServiceDefinition):
00377 _type = 'nodelet/NodeletLoad'
00378 _md5sum = '8cfbf33bf3fbd4c54a833f6e2b105331'
00379 _request_class = NodeletLoadRequest
00380 _response_class = NodeletLoadResponse