1 """autogenerated by genpy from cgr_localization/LocalizationInterfaceSrvRequest.msg. Do not edit."""
3 python3 =
True if sys.hexversion > 0x03000000
else False
9 _md5sum =
"2ceaebd9cb848e7bc40a33bc0eec2cf4"
10 _type =
"cgr_localization/LocalizationInterfaceSrvRequest"
12 _full_text =
"""float32 loc_x
19 __slots__ = [
'loc_x',
'loc_y',
'orientation',
'map']
20 _slot_types = [
'float32',
'float32',
'float32',
'string']
24 Constructor. Any message fields that are implicitly/explicitly
25 set to None will be assigned a default value. The recommend
26 use is keyword arguments as this is more robust to future message
27 changes. You cannot mix in-order arguments and keyword arguments.
29 The available fields are:
30 loc_x,loc_y,orientation,map
32 :param args: complete set of field values, in .msg order
33 :param kwds: use keyword arguments corresponding to message field names
34 to set specific fields.
37 super(LocalizationInterfaceSrvRequest, self).
__init__(*args, **kwds)
39 if self.
loc_x is None:
41 if self.
loc_y is None:
61 serialize message into buffer
62 :param buff: buffer, ``StringIO``
66 buff.write(_struct_3f.pack(_x.loc_x, _x.loc_y, _x.orientation))
69 if python3
or type(_x) == unicode:
70 _x = _x.encode(
'utf-8')
73 buff.write(struct.pack(
'<I%sB'%length, length, *_x))
75 buff.write(struct.pack(
'<I%ss'%length, length, _x))
76 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
77 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
81 unpack serialized message in str into this message instance
82 :param str: byte array of serialized message, ``str``
89 (_x.loc_x, _x.loc_y, _x.orientation,) = _struct_3f.unpack(str[start:end])
92 (length,) = _struct_I.unpack(str[start:end])
96 self.
map = str[start:end].decode(
'utf-8')
98 self.
map = str[start:end]
100 except struct.error
as e:
101 raise genpy.DeserializationError(e)
106 serialize message with numpy array types into buffer
107 :param buff: buffer, ``StringIO``
108 :param numpy: numpy python module
112 buff.write(_struct_3f.pack(_x.loc_x, _x.loc_y, _x.orientation))
115 if python3
or type(_x) == unicode:
116 _x = _x.encode(
'utf-8')
119 buff.write(struct.pack(
'<I%sB'%length, length, *_x))
121 buff.write(struct.pack(
'<I%ss'%length, length, _x))
122 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
123 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
127 unpack serialized message in str into this message instance using numpy for array types
128 :param str: byte array of serialized message, ``str``
129 :param numpy: numpy python module
136 (_x.loc_x, _x.loc_y, _x.orientation,) = _struct_3f.unpack(str[start:end])
139 (length,) = _struct_I.unpack(str[start:end])
143 self.
map = str[start:end].decode(
'utf-8')
145 self.
map = str[start:end]
147 except struct.error
as e:
148 raise genpy.DeserializationError(e)
150 _struct_I = genpy.struct_I
151 _struct_3f = struct.Struct(
"<3f")
152 """autogenerated by genpy from cgr_localization/LocalizationInterfaceSrvResponse.msg. Do not edit."""
154 python3 =
True if sys.hexversion > 0x03000000
else False
160 _md5sum =
"d026719f68bb9c5550cfad15e8b7c86c"
161 _type =
"cgr_localization/LocalizationInterfaceSrvResponse"
170 __slots__ = [
'loc_x',
'loc_y',
'orientation']
171 _slot_types = [
'float32',
'float32',
'float32']
175 Constructor. Any message fields that are implicitly/explicitly
176 set to None will be assigned a default value. The recommend
177 use is keyword arguments as this is more robust to future message
178 changes. You cannot mix in-order arguments and keyword arguments.
180 The available fields are:
181 loc_x,loc_y,orientation
183 :param args: complete set of field values, in .msg order
184 :param kwds: use keyword arguments corresponding to message field names
185 to set specific fields.
188 super(LocalizationInterfaceSrvResponse, self).
__init__(*args, **kwds)
190 if self.
loc_x is None:
192 if self.
loc_y is None:
201 def _get_types(self):
209 serialize message into buffer
210 :param buff: buffer, ``StringIO``
214 buff.write(_struct_3f.pack(_x.loc_x, _x.loc_y, _x.orientation))
215 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
216 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
220 unpack serialized message in str into this message instance
221 :param str: byte array of serialized message, ``str``
228 (_x.loc_x, _x.loc_y, _x.orientation,) = _struct_3f.unpack(str[start:end])
230 except struct.error
as e:
231 raise genpy.DeserializationError(e)
236 serialize message with numpy array types into buffer
237 :param buff: buffer, ``StringIO``
238 :param numpy: numpy python module
242 buff.write(_struct_3f.pack(_x.loc_x, _x.loc_y, _x.orientation))
243 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
244 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
248 unpack serialized message in str into this message instance using numpy for array types
249 :param str: byte array of serialized message, ``str``
250 :param numpy: numpy python module
257 (_x.loc_x, _x.loc_y, _x.orientation,) = _struct_3f.unpack(str[start:end])
259 except struct.error
as e:
260 raise genpy.DeserializationError(e)
262 _struct_I = genpy.struct_I
263 _struct_3f = struct.Struct(
"<3f")
265 _type =
'cgr_localization/LocalizationInterfaceSrv'
266 _md5sum =
'a0134c4275a788c78e585db0543085bb'
267 _request_class = LocalizationInterfaceSrvRequest
268 _response_class = LocalizationInterfaceSrvResponse