1 """autogenerated by genpy from cgr_localization/LocalizationMsg.msg. Do not edit."""
3 python3 =
True if sys.hexversion > 0x03000000
else False
9 _md5sum =
"88e4cd133e897255a68320aa8fedc7f7"
10 _type =
"cgr_localization/LocalizationMsg"
12 _full_text =
"""float64 timeStamp
16 float32 angleUncertainty
17 float32 locationUncertainty
20 float64 lastLaserRunTime
22 int32 laserNumObservedPoints
23 int32 laserNumCorrespondences
24 float32 laserStage0Weights
25 float32 laserStageRWeights
26 float32 laserMeanSqError
28 float64 lastPointCloudRunTime
29 float64 pointCloudRunTime
30 int32 pointCloudNumObservedPoints
31 int32 pointCloudNumCorrespondences
32 float32 pointCloudStage0Weights
33 float32 pointCloudStageRWeights
34 float32 pointCloudMeanSqError
38 __slots__ = [
'timeStamp',
'x',
'y',
'angle',
'angleUncertainty',
'locationUncertainty',
'map',
'lastLaserRunTime',
'laserRunTime',
'laserNumObservedPoints',
'laserNumCorrespondences',
'laserStage0Weights',
'laserStageRWeights',
'laserMeanSqError',
'lastPointCloudRunTime',
'pointCloudRunTime',
'pointCloudNumObservedPoints',
'pointCloudNumCorrespondences',
'pointCloudStage0Weights',
'pointCloudStageRWeights',
'pointCloudMeanSqError']
39 _slot_types = [
'float64',
'float32',
'float32',
'float32',
'float32',
'float32',
'string',
'float64',
'float64',
'int32',
'int32',
'float32',
'float32',
'float32',
'float64',
'float64',
'int32',
'int32',
'float32',
'float32',
'float32']
43 Constructor. Any message fields that are implicitly/explicitly
44 set to None will be assigned a default value. The recommend
45 use is keyword arguments as this is more robust to future message
46 changes. You cannot mix in-order arguments and keyword arguments.
48 The available fields are:
49 timeStamp,x,y,angle,angleUncertainty,locationUncertainty,map,lastLaserRunTime,laserRunTime,laserNumObservedPoints,laserNumCorrespondences,laserStage0Weights,laserStageRWeights,laserMeanSqError,lastPointCloudRunTime,pointCloudRunTime,pointCloudNumObservedPoints,pointCloudNumCorrespondences,pointCloudStage0Weights,pointCloudStageRWeights,pointCloudMeanSqError
51 :param args: complete set of field values, in .msg order
52 :param kwds: use keyword arguments corresponding to message field names
53 to set specific fields.
56 super(LocalizationMsg, self).
__init__(*args, **kwds)
64 if self.
angle is None:
123 def _get_types(self):
131 serialize message into buffer
132 :param buff: buffer, ``StringIO``
136 buff.write(_struct_d5f.pack(_x.timeStamp, _x.x, _x.y, _x.angle, _x.angleUncertainty, _x.locationUncertainty))
139 if python3
or type(_x) == unicode:
140 _x = _x.encode(
'utf-8')
143 buff.write(struct.pack(
'<I%sB'%length, length, *_x))
145 buff.write(struct.pack(
'<I%ss'%length, length, _x))
147 buff.write(_struct_2d2i3f2d2i3f.pack(_x.lastLaserRunTime, _x.laserRunTime, _x.laserNumObservedPoints, _x.laserNumCorrespondences, _x.laserStage0Weights, _x.laserStageRWeights, _x.laserMeanSqError, _x.lastPointCloudRunTime, _x.pointCloudRunTime, _x.pointCloudNumObservedPoints, _x.pointCloudNumCorrespondences, _x.pointCloudStage0Weights, _x.pointCloudStageRWeights, _x.pointCloudMeanSqError))
148 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
149 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
153 unpack serialized message in str into this message instance
154 :param str: byte array of serialized message, ``str``
161 (_x.timeStamp, _x.x, _x.y, _x.angle, _x.angleUncertainty, _x.locationUncertainty,) = _struct_d5f.unpack(str[start:end])
164 (length,) = _struct_I.unpack(str[start:end])
168 self.
map = str[start:end].decode(
'utf-8')
170 self.
map = str[start:end]
174 (_x.lastLaserRunTime, _x.laserRunTime, _x.laserNumObservedPoints, _x.laserNumCorrespondences, _x.laserStage0Weights, _x.laserStageRWeights, _x.laserMeanSqError, _x.lastPointCloudRunTime, _x.pointCloudRunTime, _x.pointCloudNumObservedPoints, _x.pointCloudNumCorrespondences, _x.pointCloudStage0Weights, _x.pointCloudStageRWeights, _x.pointCloudMeanSqError,) = _struct_2d2i3f2d2i3f.unpack(str[start:end])
176 except struct.error
as e:
177 raise genpy.DeserializationError(e)
182 serialize message with numpy array types into buffer
183 :param buff: buffer, ``StringIO``
184 :param numpy: numpy python module
188 buff.write(_struct_d5f.pack(_x.timeStamp, _x.x, _x.y, _x.angle, _x.angleUncertainty, _x.locationUncertainty))
191 if python3
or type(_x) == unicode:
192 _x = _x.encode(
'utf-8')
195 buff.write(struct.pack(
'<I%sB'%length, length, *_x))
197 buff.write(struct.pack(
'<I%ss'%length, length, _x))
199 buff.write(_struct_2d2i3f2d2i3f.pack(_x.lastLaserRunTime, _x.laserRunTime, _x.laserNumObservedPoints, _x.laserNumCorrespondences, _x.laserStage0Weights, _x.laserStageRWeights, _x.laserMeanSqError, _x.lastPointCloudRunTime, _x.pointCloudRunTime, _x.pointCloudNumObservedPoints, _x.pointCloudNumCorrespondences, _x.pointCloudStage0Weights, _x.pointCloudStageRWeights, _x.pointCloudMeanSqError))
200 except struct.error
as se: self._check_types(struct.error(
"%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
201 except TypeError
as te: self._check_types(ValueError(
"%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
205 unpack serialized message in str into this message instance using numpy for array types
206 :param str: byte array of serialized message, ``str``
207 :param numpy: numpy python module
214 (_x.timeStamp, _x.x, _x.y, _x.angle, _x.angleUncertainty, _x.locationUncertainty,) = _struct_d5f.unpack(str[start:end])
217 (length,) = _struct_I.unpack(str[start:end])
221 self.
map = str[start:end].decode(
'utf-8')
223 self.
map = str[start:end]
227 (_x.lastLaserRunTime, _x.laserRunTime, _x.laserNumObservedPoints, _x.laserNumCorrespondences, _x.laserStage0Weights, _x.laserStageRWeights, _x.laserMeanSqError, _x.lastPointCloudRunTime, _x.pointCloudRunTime, _x.pointCloudNumObservedPoints, _x.pointCloudNumCorrespondences, _x.pointCloudStage0Weights, _x.pointCloudStageRWeights, _x.pointCloudMeanSqError,) = _struct_2d2i3f2d2i3f.unpack(str[start:end])
229 except struct.error
as e:
230 raise genpy.DeserializationError(e)
232 _struct_I = genpy.struct_I
233 _struct_2d2i3f2d2i3f = struct.Struct(
"<2d2i3f2d2i3f")
234 _struct_d5f = struct.Struct(
"<d5f")
pointCloudNumCorrespondences
pointCloudNumObservedPoints