_GetTaskList.py
Go to the documentation of this file.
00001 """autogenerated by genpy from continuous_ops_msgs/GetTaskListRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 
00008 class GetTaskListRequest(genpy.Message):
00009   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010   _type = "continuous_ops_msgs/GetTaskListRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """
00013 """
00014   __slots__ = []
00015   _slot_types = []
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        
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(GetTaskListRequest, self).__init__(*args, **kwds)
00033 
00034   def _get_types(self):
00035     """
00036     internal API method
00037     """
00038     return self._slot_types
00039 
00040   def serialize(self, buff):
00041     """
00042     serialize message into buffer
00043     :param buff: buffer, ``StringIO``
00044     """
00045     try:
00046       pass
00047     except struct.error as se: self._check_types(se)
00048     except TypeError as te: self._check_types(te)
00049 
00050   def deserialize(self, str):
00051     """
00052     unpack serialized message in str into this message instance
00053     :param str: byte array of serialized message, ``str``
00054     """
00055     try:
00056       end = 0
00057       return self
00058     except struct.error as e:
00059       raise genpy.DeserializationError(e) #most likely buffer underfill
00060 
00061 
00062   def serialize_numpy(self, buff, numpy):
00063     """
00064     serialize message with numpy array types into buffer
00065     :param buff: buffer, ``StringIO``
00066     :param numpy: numpy python module
00067     """
00068     try:
00069       pass
00070     except struct.error as se: self._check_types(se)
00071     except TypeError as te: self._check_types(te)
00072 
00073   def deserialize_numpy(self, str, numpy):
00074     """
00075     unpack serialized message in str into this message instance using numpy for array types
00076     :param str: byte array of serialized message, ``str``
00077     :param numpy: numpy python module
00078     """
00079     try:
00080       end = 0
00081       return self
00082     except struct.error as e:
00083       raise genpy.DeserializationError(e) #most likely buffer underfill
00084 
00085 _struct_I = genpy.struct_I
00086 """autogenerated by genpy from continuous_ops_msgs/GetTaskListResponse.msg. Do not edit."""
00087 import sys
00088 python3 = True if sys.hexversion > 0x03000000 else False
00089 import genpy
00090 import struct
00091 
00092 import genpy
00093 import continuous_ops_msgs.msg
00094 
00095 class GetTaskListResponse(genpy.Message):
00096   _md5sum = "e6fac003aa050bdfb91de78e5697a3e5"
00097   _type = "continuous_ops_msgs/GetTaskListResponse"
00098   _has_header = False #flag to mark the presence of a Header object
00099   _full_text = """Task[] tasks
00100 
00101 ================================================================================
00102 MSG: continuous_ops_msgs/Task
00103 string name
00104 string description
00105 string task_id
00106 string run_id
00107 string launch_file
00108 string image_file
00109 string state
00110 string action_ns
00111 duration timeout
00112 """
00113   __slots__ = ['tasks']
00114   _slot_types = ['continuous_ops_msgs/Task[]']
00115 
00116   def __init__(self, *args, **kwds):
00117     """
00118     Constructor. Any message fields that are implicitly/explicitly
00119     set to None will be assigned a default value. The recommend
00120     use is keyword arguments as this is more robust to future message
00121     changes.  You cannot mix in-order arguments and keyword arguments.
00122 
00123     The available fields are:
00124        tasks
00125 
00126     :param args: complete set of field values, in .msg order
00127     :param kwds: use keyword arguments corresponding to message field names
00128     to set specific fields.
00129     """
00130     if args or kwds:
00131       super(GetTaskListResponse, self).__init__(*args, **kwds)
00132       #message fields cannot be None, assign default values for those that are
00133       if self.tasks is None:
00134         self.tasks = []
00135     else:
00136       self.tasks = []
00137 
00138   def _get_types(self):
00139     """
00140     internal API method
00141     """
00142     return self._slot_types
00143 
00144   def serialize(self, buff):
00145     """
00146     serialize message into buffer
00147     :param buff: buffer, ``StringIO``
00148     """
00149     try:
00150       length = len(self.tasks)
00151       buff.write(_struct_I.pack(length))
00152       for val1 in self.tasks:
00153         _x = val1.name
00154         length = len(_x)
00155         if python3 or type(_x) == unicode:
00156           _x = _x.encode('utf-8')
00157           length = len(_x)
00158         buff.write(struct.pack('<I%ss'%length, length, _x))
00159         _x = val1.description
00160         length = len(_x)
00161         if python3 or type(_x) == unicode:
00162           _x = _x.encode('utf-8')
00163           length = len(_x)
00164         buff.write(struct.pack('<I%ss'%length, length, _x))
00165         _x = val1.task_id
00166         length = len(_x)
00167         if python3 or type(_x) == unicode:
00168           _x = _x.encode('utf-8')
00169           length = len(_x)
00170         buff.write(struct.pack('<I%ss'%length, length, _x))
00171         _x = val1.run_id
00172         length = len(_x)
00173         if python3 or type(_x) == unicode:
00174           _x = _x.encode('utf-8')
00175           length = len(_x)
00176         buff.write(struct.pack('<I%ss'%length, length, _x))
00177         _x = val1.launch_file
00178         length = len(_x)
00179         if python3 or type(_x) == unicode:
00180           _x = _x.encode('utf-8')
00181           length = len(_x)
00182         buff.write(struct.pack('<I%ss'%length, length, _x))
00183         _x = val1.image_file
00184         length = len(_x)
00185         if python3 or type(_x) == unicode:
00186           _x = _x.encode('utf-8')
00187           length = len(_x)
00188         buff.write(struct.pack('<I%ss'%length, length, _x))
00189         _x = val1.state
00190         length = len(_x)
00191         if python3 or type(_x) == unicode:
00192           _x = _x.encode('utf-8')
00193           length = len(_x)
00194         buff.write(struct.pack('<I%ss'%length, length, _x))
00195         _x = val1.action_ns
00196         length = len(_x)
00197         if python3 or type(_x) == unicode:
00198           _x = _x.encode('utf-8')
00199           length = len(_x)
00200         buff.write(struct.pack('<I%ss'%length, length, _x))
00201         _v1 = val1.timeout
00202         _x = _v1
00203         buff.write(_struct_2i.pack(_x.secs, _x.nsecs))
00204     except struct.error as se: self._check_types(se)
00205     except TypeError as te: self._check_types(te)
00206 
00207   def deserialize(self, str):
00208     """
00209     unpack serialized message in str into this message instance
00210     :param str: byte array of serialized message, ``str``
00211     """
00212     try:
00213       if self.tasks is None:
00214         self.tasks = None
00215       end = 0
00216       start = end
00217       end += 4
00218       (length,) = _struct_I.unpack(str[start:end])
00219       self.tasks = []
00220       for i in range(0, length):
00221         val1 = continuous_ops_msgs.msg.Task()
00222         start = end
00223         end += 4
00224         (length,) = _struct_I.unpack(str[start:end])
00225         start = end
00226         end += length
00227         if python3:
00228           val1.name = str[start:end].decode('utf-8')
00229         else:
00230           val1.name = str[start:end]
00231         start = end
00232         end += 4
00233         (length,) = _struct_I.unpack(str[start:end])
00234         start = end
00235         end += length
00236         if python3:
00237           val1.description = str[start:end].decode('utf-8')
00238         else:
00239           val1.description = str[start:end]
00240         start = end
00241         end += 4
00242         (length,) = _struct_I.unpack(str[start:end])
00243         start = end
00244         end += length
00245         if python3:
00246           val1.task_id = str[start:end].decode('utf-8')
00247         else:
00248           val1.task_id = str[start:end]
00249         start = end
00250         end += 4
00251         (length,) = _struct_I.unpack(str[start:end])
00252         start = end
00253         end += length
00254         if python3:
00255           val1.run_id = str[start:end].decode('utf-8')
00256         else:
00257           val1.run_id = str[start:end]
00258         start = end
00259         end += 4
00260         (length,) = _struct_I.unpack(str[start:end])
00261         start = end
00262         end += length
00263         if python3:
00264           val1.launch_file = str[start:end].decode('utf-8')
00265         else:
00266           val1.launch_file = str[start:end]
00267         start = end
00268         end += 4
00269         (length,) = _struct_I.unpack(str[start:end])
00270         start = end
00271         end += length
00272         if python3:
00273           val1.image_file = str[start:end].decode('utf-8')
00274         else:
00275           val1.image_file = str[start:end]
00276         start = end
00277         end += 4
00278         (length,) = _struct_I.unpack(str[start:end])
00279         start = end
00280         end += length
00281         if python3:
00282           val1.state = str[start:end].decode('utf-8')
00283         else:
00284           val1.state = str[start:end]
00285         start = end
00286         end += 4
00287         (length,) = _struct_I.unpack(str[start:end])
00288         start = end
00289         end += length
00290         if python3:
00291           val1.action_ns = str[start:end].decode('utf-8')
00292         else:
00293           val1.action_ns = str[start:end]
00294         _v2 = val1.timeout
00295         _x = _v2
00296         start = end
00297         end += 8
00298         (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end])
00299         self.tasks.append(val1)
00300       return self
00301     except struct.error as e:
00302       raise genpy.DeserializationError(e) #most likely buffer underfill
00303 
00304 
00305   def serialize_numpy(self, buff, numpy):
00306     """
00307     serialize message with numpy array types into buffer
00308     :param buff: buffer, ``StringIO``
00309     :param numpy: numpy python module
00310     """
00311     try:
00312       length = len(self.tasks)
00313       buff.write(_struct_I.pack(length))
00314       for val1 in self.tasks:
00315         _x = val1.name
00316         length = len(_x)
00317         if python3 or type(_x) == unicode:
00318           _x = _x.encode('utf-8')
00319           length = len(_x)
00320         buff.write(struct.pack('<I%ss'%length, length, _x))
00321         _x = val1.description
00322         length = len(_x)
00323         if python3 or type(_x) == unicode:
00324           _x = _x.encode('utf-8')
00325           length = len(_x)
00326         buff.write(struct.pack('<I%ss'%length, length, _x))
00327         _x = val1.task_id
00328         length = len(_x)
00329         if python3 or type(_x) == unicode:
00330           _x = _x.encode('utf-8')
00331           length = len(_x)
00332         buff.write(struct.pack('<I%ss'%length, length, _x))
00333         _x = val1.run_id
00334         length = len(_x)
00335         if python3 or type(_x) == unicode:
00336           _x = _x.encode('utf-8')
00337           length = len(_x)
00338         buff.write(struct.pack('<I%ss'%length, length, _x))
00339         _x = val1.launch_file
00340         length = len(_x)
00341         if python3 or type(_x) == unicode:
00342           _x = _x.encode('utf-8')
00343           length = len(_x)
00344         buff.write(struct.pack('<I%ss'%length, length, _x))
00345         _x = val1.image_file
00346         length = len(_x)
00347         if python3 or type(_x) == unicode:
00348           _x = _x.encode('utf-8')
00349           length = len(_x)
00350         buff.write(struct.pack('<I%ss'%length, length, _x))
00351         _x = val1.state
00352         length = len(_x)
00353         if python3 or type(_x) == unicode:
00354           _x = _x.encode('utf-8')
00355           length = len(_x)
00356         buff.write(struct.pack('<I%ss'%length, length, _x))
00357         _x = val1.action_ns
00358         length = len(_x)
00359         if python3 or type(_x) == unicode:
00360           _x = _x.encode('utf-8')
00361           length = len(_x)
00362         buff.write(struct.pack('<I%ss'%length, length, _x))
00363         _v3 = val1.timeout
00364         _x = _v3
00365         buff.write(_struct_2i.pack(_x.secs, _x.nsecs))
00366     except struct.error as se: self._check_types(se)
00367     except TypeError as te: self._check_types(te)
00368 
00369   def deserialize_numpy(self, str, numpy):
00370     """
00371     unpack serialized message in str into this message instance using numpy for array types
00372     :param str: byte array of serialized message, ``str``
00373     :param numpy: numpy python module
00374     """
00375     try:
00376       if self.tasks is None:
00377         self.tasks = None
00378       end = 0
00379       start = end
00380       end += 4
00381       (length,) = _struct_I.unpack(str[start:end])
00382       self.tasks = []
00383       for i in range(0, length):
00384         val1 = continuous_ops_msgs.msg.Task()
00385         start = end
00386         end += 4
00387         (length,) = _struct_I.unpack(str[start:end])
00388         start = end
00389         end += length
00390         if python3:
00391           val1.name = str[start:end].decode('utf-8')
00392         else:
00393           val1.name = str[start:end]
00394         start = end
00395         end += 4
00396         (length,) = _struct_I.unpack(str[start:end])
00397         start = end
00398         end += length
00399         if python3:
00400           val1.description = str[start:end].decode('utf-8')
00401         else:
00402           val1.description = str[start:end]
00403         start = end
00404         end += 4
00405         (length,) = _struct_I.unpack(str[start:end])
00406         start = end
00407         end += length
00408         if python3:
00409           val1.task_id = str[start:end].decode('utf-8')
00410         else:
00411           val1.task_id = str[start:end]
00412         start = end
00413         end += 4
00414         (length,) = _struct_I.unpack(str[start:end])
00415         start = end
00416         end += length
00417         if python3:
00418           val1.run_id = str[start:end].decode('utf-8')
00419         else:
00420           val1.run_id = str[start:end]
00421         start = end
00422         end += 4
00423         (length,) = _struct_I.unpack(str[start:end])
00424         start = end
00425         end += length
00426         if python3:
00427           val1.launch_file = str[start:end].decode('utf-8')
00428         else:
00429           val1.launch_file = str[start:end]
00430         start = end
00431         end += 4
00432         (length,) = _struct_I.unpack(str[start:end])
00433         start = end
00434         end += length
00435         if python3:
00436           val1.image_file = str[start:end].decode('utf-8')
00437         else:
00438           val1.image_file = str[start:end]
00439         start = end
00440         end += 4
00441         (length,) = _struct_I.unpack(str[start:end])
00442         start = end
00443         end += length
00444         if python3:
00445           val1.state = str[start:end].decode('utf-8')
00446         else:
00447           val1.state = str[start:end]
00448         start = end
00449         end += 4
00450         (length,) = _struct_I.unpack(str[start:end])
00451         start = end
00452         end += length
00453         if python3:
00454           val1.action_ns = str[start:end].decode('utf-8')
00455         else:
00456           val1.action_ns = str[start:end]
00457         _v4 = val1.timeout
00458         _x = _v4
00459         start = end
00460         end += 8
00461         (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end])
00462         self.tasks.append(val1)
00463       return self
00464     except struct.error as e:
00465       raise genpy.DeserializationError(e) #most likely buffer underfill
00466 
00467 _struct_I = genpy.struct_I
00468 _struct_2i = struct.Struct("<2i")
00469 class GetTaskList(object):
00470   _type          = 'continuous_ops_msgs/GetTaskList'
00471   _md5sum = 'e6fac003aa050bdfb91de78e5697a3e5'
00472   _request_class  = GetTaskListRequest
00473   _response_class = GetTaskListResponse


continuous_ops_msgs
Author(s): Wim Meeussen
autogenerated on Fri Dec 6 2013 21:18:55