1 """autogenerated by genpy from launchman/AppStatus.msg. Do not edit.""" 3 python3 =
True if sys.hexversion > 0x03000000
else False 10 _md5sum =
"8a2d696a9a11a9fb77b5416e878dcad0" 11 _type =
"launchman/AppStatus" 13 _full_text =
"""Application[] active 15 ================================================================================ 16 MSG: launchman/Application 25 __slots__ = [
'active']
26 _slot_types = [
'launchman/Application[]']
30 Constructor. Any message fields that are implicitly/explicitly 31 set to None will be assigned a default value. The recommend 32 use is keyword arguments as this is more robust to future message 33 changes. You cannot mix in-order arguments and keyword arguments. 35 The available fields are: 38 :param args: complete set of field values, in .msg order 39 :param kwds: use keyword arguments corresponding to message field names 40 to set specific fields. 43 super(AppStatus, self).
__init__(*args, **kwds)
58 serialize message into buffer 59 :param buff: buffer, ``StringIO`` 63 buff.write(_struct_I.pack(length))
67 if python3
or type(_x) == unicode:
68 _x = _x.encode(
'utf-8')
70 buff.write(struct.pack(
'<I%ss'%length, length, _x))
73 if python3
or type(_x) == unicode:
74 _x = _x.encode(
'utf-8')
76 buff.write(struct.pack(
'<I%ss'%length, length, _x))
79 if python3
or type(_x) == unicode:
80 _x = _x.encode(
'utf-8')
82 buff.write(struct.pack(
'<I%ss'%length, length, _x))
85 if python3
or type(_x) == unicode:
86 _x = _x.encode(
'utf-8')
88 buff.write(struct.pack(
'<I%ss'%length, length, _x))
91 if python3
or type(_x) == unicode:
92 _x = _x.encode(
'utf-8')
94 buff.write(struct.pack(
'<I%ss'%length, length, _x))
97 if python3
or type(_x) == unicode:
98 _x = _x.encode(
'utf-8')
100 buff.write(struct.pack(
'<I%ss'%length, length, _x))
101 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
102 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
106 unpack serialized message in str into this message instance 107 :param str: byte array of serialized message, ``str`` 115 (length,) = _struct_I.unpack(str[start:end])
117 for i
in range(0, length):
121 (length,) = _struct_I.unpack(str[start:end])
125 val1.taskid = str[start:end].decode(
'utf-8')
127 val1.taskid = str[start:end]
130 (length,) = _struct_I.unpack(str[start:end])
134 val1.name = str[start:end].decode(
'utf-8')
136 val1.name = str[start:end]
139 (length,) = _struct_I.unpack(str[start:end])
143 val1.status = str[start:end].decode(
'utf-8')
145 val1.status = str[start:end]
148 (length,) = _struct_I.unpack(str[start:end])
152 val1.icon = str[start:end].decode(
'utf-8')
154 val1.icon = str[start:end]
157 (length,) = _struct_I.unpack(str[start:end])
161 val1.provides = str[start:end].decode(
'utf-8')
163 val1.provides = str[start:end]
166 (length,) = _struct_I.unpack(str[start:end])
170 val1.depends = str[start:end].decode(
'utf-8')
172 val1.depends = str[start:end]
173 self.active.append(val1)
175 except struct.error
as e:
176 raise genpy.DeserializationError(e)
181 serialize message with numpy array types into buffer 182 :param buff: buffer, ``StringIO`` 183 :param numpy: numpy python module 187 buff.write(_struct_I.pack(length))
191 if python3
or type(_x) == unicode:
192 _x = _x.encode(
'utf-8')
194 buff.write(struct.pack(
'<I%ss'%length, length, _x))
197 if python3
or type(_x) == unicode:
198 _x = _x.encode(
'utf-8')
200 buff.write(struct.pack(
'<I%ss'%length, length, _x))
203 if python3
or type(_x) == unicode:
204 _x = _x.encode(
'utf-8')
206 buff.write(struct.pack(
'<I%ss'%length, length, _x))
209 if python3
or type(_x) == unicode:
210 _x = _x.encode(
'utf-8')
212 buff.write(struct.pack(
'<I%ss'%length, length, _x))
215 if python3
or type(_x) == unicode:
216 _x = _x.encode(
'utf-8')
218 buff.write(struct.pack(
'<I%ss'%length, length, _x))
221 if python3
or type(_x) == unicode:
222 _x = _x.encode(
'utf-8')
224 buff.write(struct.pack(
'<I%ss'%length, length, _x))
225 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
226 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
230 unpack serialized message in str into this message instance using numpy for array types 231 :param str: byte array of serialized message, ``str`` 232 :param numpy: numpy python module 240 (length,) = _struct_I.unpack(str[start:end])
242 for i
in range(0, length):
246 (length,) = _struct_I.unpack(str[start:end])
250 val1.taskid = str[start:end].decode(
'utf-8')
252 val1.taskid = str[start:end]
255 (length,) = _struct_I.unpack(str[start:end])
259 val1.name = str[start:end].decode(
'utf-8')
261 val1.name = str[start:end]
264 (length,) = _struct_I.unpack(str[start:end])
268 val1.status = str[start:end].decode(
'utf-8')
270 val1.status = str[start:end]
273 (length,) = _struct_I.unpack(str[start:end])
277 val1.icon = str[start:end].decode(
'utf-8')
279 val1.icon = str[start:end]
282 (length,) = _struct_I.unpack(str[start:end])
286 val1.provides = str[start:end].decode(
'utf-8')
288 val1.provides = str[start:end]
291 (length,) = _struct_I.unpack(str[start:end])
295 val1.depends = str[start:end].decode(
'utf-8')
297 val1.depends = str[start:end]
298 self.active.append(val1)
300 except struct.error
as e:
301 raise genpy.DeserializationError(e)
303 _struct_I = genpy.struct_I
def serialize_numpy(self, buff, numpy)
def deserialize_numpy(self, str, numpy)
def deserialize(self, str)
def serialize(self, buff)
def __init__(self, args, kwds)