1 """autogenerated by genpy from launchman/Application.msg. Do not edit.""" 3 python3 =
True if sys.hexversion > 0x03000000
else False 9 _md5sum =
"f6a16a9c297a883b8eb15bf869d26eca" 10 _type =
"launchman/Application" 12 _full_text =
"""string taskid 20 __slots__ = [
'taskid',
'name',
'status',
'icon',
'provides',
'depends']
21 _slot_types = [
'string',
'string',
'string',
'string',
'string',
'string']
25 Constructor. Any message fields that are implicitly/explicitly 26 set to None will be assigned a default value. The recommend 27 use is keyword arguments as this is more robust to future message 28 changes. You cannot mix in-order arguments and keyword arguments. 30 The available fields are: 31 taskid,name,status,icon,provides,depends 33 :param args: complete set of field values, in .msg order 34 :param kwds: use keyword arguments corresponding to message field names 35 to set specific fields. 38 super(Application, self).
__init__(*args, **kwds)
68 serialize message into buffer 69 :param buff: buffer, ``StringIO`` 74 if python3
or type(_x) == unicode:
75 _x = _x.encode(
'utf-8')
77 buff.write(struct.pack(
'<I%ss'%length, length, _x))
80 if python3
or type(_x) == unicode:
81 _x = _x.encode(
'utf-8')
83 buff.write(struct.pack(
'<I%ss'%length, length, _x))
86 if python3
or type(_x) == unicode:
87 _x = _x.encode(
'utf-8')
89 buff.write(struct.pack(
'<I%ss'%length, length, _x))
92 if python3
or type(_x) == unicode:
93 _x = _x.encode(
'utf-8')
95 buff.write(struct.pack(
'<I%ss'%length, length, _x))
98 if python3
or type(_x) == unicode:
99 _x = _x.encode(
'utf-8')
101 buff.write(struct.pack(
'<I%ss'%length, length, _x))
104 if python3
or type(_x) == unicode:
105 _x = _x.encode(
'utf-8')
107 buff.write(struct.pack(
'<I%ss'%length, length, _x))
108 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
109 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
113 unpack serialized message in str into this message instance 114 :param str: byte array of serialized message, ``str`` 120 (length,) = _struct_I.unpack(str[start:end])
124 self.
taskid = str[start:end].decode(
'utf-8')
126 self.
taskid = str[start:end]
129 (length,) = _struct_I.unpack(str[start:end])
133 self.
name = str[start:end].decode(
'utf-8')
135 self.
name = str[start:end]
138 (length,) = _struct_I.unpack(str[start:end])
142 self.
status = str[start:end].decode(
'utf-8')
144 self.
status = str[start:end]
147 (length,) = _struct_I.unpack(str[start:end])
151 self.
icon = str[start:end].decode(
'utf-8')
153 self.
icon = str[start:end]
156 (length,) = _struct_I.unpack(str[start:end])
160 self.
provides = str[start:end].decode(
'utf-8')
165 (length,) = _struct_I.unpack(str[start:end])
169 self.
depends = str[start:end].decode(
'utf-8')
173 except struct.error
as e:
174 raise genpy.DeserializationError(e)
179 serialize message with numpy array types into buffer 180 :param buff: buffer, ``StringIO`` 181 :param numpy: numpy python module 186 if python3
or type(_x) == unicode:
187 _x = _x.encode(
'utf-8')
189 buff.write(struct.pack(
'<I%ss'%length, length, _x))
192 if python3
or type(_x) == unicode:
193 _x = _x.encode(
'utf-8')
195 buff.write(struct.pack(
'<I%ss'%length, length, _x))
198 if python3
or type(_x) == unicode:
199 _x = _x.encode(
'utf-8')
201 buff.write(struct.pack(
'<I%ss'%length, length, _x))
204 if python3
or type(_x) == unicode:
205 _x = _x.encode(
'utf-8')
207 buff.write(struct.pack(
'<I%ss'%length, length, _x))
210 if python3
or type(_x) == unicode:
211 _x = _x.encode(
'utf-8')
213 buff.write(struct.pack(
'<I%ss'%length, length, _x))
216 if python3
or type(_x) == unicode:
217 _x = _x.encode(
'utf-8')
219 buff.write(struct.pack(
'<I%ss'%length, length, _x))
220 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
221 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
225 unpack serialized message in str into this message instance using numpy for array types 226 :param str: byte array of serialized message, ``str`` 227 :param numpy: numpy python module 233 (length,) = _struct_I.unpack(str[start:end])
237 self.
taskid = str[start:end].decode(
'utf-8')
239 self.
taskid = str[start:end]
242 (length,) = _struct_I.unpack(str[start:end])
246 self.
name = str[start:end].decode(
'utf-8')
248 self.
name = str[start:end]
251 (length,) = _struct_I.unpack(str[start:end])
255 self.
status = str[start:end].decode(
'utf-8')
257 self.
status = str[start:end]
260 (length,) = _struct_I.unpack(str[start:end])
264 self.
icon = str[start:end].decode(
'utf-8')
266 self.
icon = str[start:end]
269 (length,) = _struct_I.unpack(str[start:end])
273 self.
provides = str[start:end].decode(
'utf-8')
278 (length,) = _struct_I.unpack(str[start:end])
282 self.
depends = str[start:end].decode(
'utf-8')
286 except struct.error
as e:
287 raise genpy.DeserializationError(e)
289 _struct_I = genpy.struct_I
def serialize(self, buff)
def deserialize_numpy(self, str, numpy)
def __init__(self, args, kwds)
def serialize_numpy(self, buff, numpy)
def deserialize(self, str)