1 """autogenerated by genpy from launchman/StopTaskRequest.msg. Do not edit.""" 3 python3 =
True if sys.hexversion > 0x03000000
else False 9 _md5sum =
"f90254a4a4912432fb92a8e890bdfbcd" 10 _type =
"launchman/StopTaskRequest" 12 _full_text =
"""string taskid 16 __slots__ = [
'taskid',
'username']
17 _slot_types = [
'string',
'string']
21 Constructor. Any message fields that are implicitly/explicitly 22 set to None will be assigned a default value. The recommend 23 use is keyword arguments as this is more robust to future message 24 changes. You cannot mix in-order arguments and keyword arguments. 26 The available fields are: 29 :param args: complete set of field values, in .msg order 30 :param kwds: use keyword arguments corresponding to message field names 31 to set specific fields. 34 super(StopTaskRequest, self).
__init__(*args, **kwds)
52 serialize message into buffer 53 :param buff: buffer, ``StringIO`` 58 if python3
or type(_x) == unicode:
59 _x = _x.encode(
'utf-8')
61 buff.write(struct.pack(
'<I%ss'%length, length, _x))
64 if python3
or type(_x) == unicode:
65 _x = _x.encode(
'utf-8')
67 buff.write(struct.pack(
'<I%ss'%length, length, _x))
68 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
69 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
73 unpack serialized message in str into this message instance 74 :param str: byte array of serialized message, ``str`` 80 (length,) = _struct_I.unpack(str[start:end])
84 self.
taskid = str[start:end].decode(
'utf-8')
86 self.
taskid = str[start:end]
89 (length,) = _struct_I.unpack(str[start:end])
93 self.
username = str[start:end].decode(
'utf-8')
97 except struct.error
as e:
98 raise genpy.DeserializationError(e)
103 serialize message with numpy array types into buffer 104 :param buff: buffer, ``StringIO`` 105 :param numpy: numpy python module 110 if python3
or type(_x) == unicode:
111 _x = _x.encode(
'utf-8')
113 buff.write(struct.pack(
'<I%ss'%length, length, _x))
116 if python3
or type(_x) == unicode:
117 _x = _x.encode(
'utf-8')
119 buff.write(struct.pack(
'<I%ss'%length, length, _x))
120 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
121 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
125 unpack serialized message in str into this message instance using numpy for array types 126 :param str: byte array of serialized message, ``str`` 127 :param numpy: numpy python module 133 (length,) = _struct_I.unpack(str[start:end])
137 self.
taskid = str[start:end].decode(
'utf-8')
139 self.
taskid = str[start:end]
142 (length,) = _struct_I.unpack(str[start:end])
146 self.
username = str[start:end].decode(
'utf-8')
150 except struct.error
as e:
151 raise genpy.DeserializationError(e)
153 _struct_I = genpy.struct_I
154 """autogenerated by genpy from launchman/StopTaskResponse.msg. Do not edit.""" 156 python3 =
True if sys.hexversion > 0x03000000
else False 162 _md5sum =
"4fe5af303955c287688e7347e9b00278" 163 _type =
"launchman/StopTaskResponse" 165 _full_text =
"""string status 168 __slots__ = [
'status']
169 _slot_types = [
'string']
173 Constructor. Any message fields that are implicitly/explicitly 174 set to None will be assigned a default value. The recommend 175 use is keyword arguments as this is more robust to future message 176 changes. You cannot mix in-order arguments and keyword arguments. 178 The available fields are: 181 :param args: complete set of field values, in .msg order 182 :param kwds: use keyword arguments corresponding to message field names 183 to set specific fields. 186 super(StopTaskResponse, self).
__init__(*args, **kwds)
201 serialize message into buffer 202 :param buff: buffer, ``StringIO`` 207 if python3
or type(_x) == unicode:
208 _x = _x.encode(
'utf-8')
210 buff.write(struct.pack(
'<I%ss'%length, length, _x))
211 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
212 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
216 unpack serialized message in str into this message instance 217 :param str: byte array of serialized message, ``str`` 223 (length,) = _struct_I.unpack(str[start:end])
227 self.
status = str[start:end].decode(
'utf-8')
229 self.
status = str[start:end]
231 except struct.error
as e:
232 raise genpy.DeserializationError(e)
237 serialize message with numpy array types into buffer 238 :param buff: buffer, ``StringIO`` 239 :param numpy: numpy python module 244 if python3
or type(_x) == unicode:
245 _x = _x.encode(
'utf-8')
247 buff.write(struct.pack(
'<I%ss'%length, length, _x))
248 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
249 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
253 unpack serialized message in str into this message instance using numpy for array types 254 :param str: byte array of serialized message, ``str`` 255 :param numpy: numpy python module 261 (length,) = _struct_I.unpack(str[start:end])
265 self.
status = str[start:end].decode(
'utf-8')
267 self.
status = str[start:end]
269 except struct.error
as e:
270 raise genpy.DeserializationError(e)
272 _struct_I = genpy.struct_I
274 _type =
'launchman/StopTask' 275 _md5sum =
'a7f7c2a0ff94dc94508b68c526bc0b69' 276 _request_class = StopTaskRequest
277 _response_class = StopTaskResponse
def deserialize_numpy(self, str, numpy)
def deserialize(self, str)
def serialize(self, buff)
def serialize_numpy(self, buff, numpy)
def __init__(self, args, kwds)
def serialize_numpy(self, buff, numpy)
def __init__(self, args, kwds)
def deserialize_numpy(self, str, numpy)
def serialize(self, buff)
def deserialize(self, str)