00001 """autogenerated by genpy from applanix_msgs/AidingSensorParams.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007 import geometry_msgs.msg
00008
00009 class AidingSensorParams(genpy.Message):
00010 _md5sum = "c5f8cdbc1fbfdcb4567e70396891f001"
00011 _type = "applanix_msgs/AidingSensorParams"
00012 _has_header = False
00013 _full_text = """# Msg 22
00014 uint16 transaction
00015
00016 float32 dmi_scale_factor
00017 geometry_msgs/Point32 dmi_lever_arm
00018
00019 float32 reserved1
00020 float32 reserved2
00021 float32 reserved3
00022 float32 reserved5
00023 float32 reserved6
00024 float32 reserved7
00025
00026 ================================================================================
00027 MSG: geometry_msgs/Point32
00028 # This contains the position of a point in free space(with 32 bits of precision).
00029 # It is recommeded to use Point wherever possible instead of Point32.
00030 #
00031 # This recommendation is to promote interoperability.
00032 #
00033 # This message is designed to take up less space when sending
00034 # lots of points at once, as in the case of a PointCloud.
00035
00036 float32 x
00037 float32 y
00038 float32 z
00039 """
00040 __slots__ = ['transaction','dmi_scale_factor','dmi_lever_arm','reserved1','reserved2','reserved3','reserved5','reserved6','reserved7']
00041 _slot_types = ['uint16','float32','geometry_msgs/Point32','float32','float32','float32','float32','float32','float32']
00042
00043 def __init__(self, *args, **kwds):
00044 """
00045 Constructor. Any message fields that are implicitly/explicitly
00046 set to None will be assigned a default value. The recommend
00047 use is keyword arguments as this is more robust to future message
00048 changes. You cannot mix in-order arguments and keyword arguments.
00049
00050 The available fields are:
00051 transaction,dmi_scale_factor,dmi_lever_arm,reserved1,reserved2,reserved3,reserved5,reserved6,reserved7
00052
00053 :param args: complete set of field values, in .msg order
00054 :param kwds: use keyword arguments corresponding to message field names
00055 to set specific fields.
00056 """
00057 if args or kwds:
00058 super(AidingSensorParams, self).__init__(*args, **kwds)
00059
00060 if self.transaction is None:
00061 self.transaction = 0
00062 if self.dmi_scale_factor is None:
00063 self.dmi_scale_factor = 0.
00064 if self.dmi_lever_arm is None:
00065 self.dmi_lever_arm = geometry_msgs.msg.Point32()
00066 if self.reserved1 is None:
00067 self.reserved1 = 0.
00068 if self.reserved2 is None:
00069 self.reserved2 = 0.
00070 if self.reserved3 is None:
00071 self.reserved3 = 0.
00072 if self.reserved5 is None:
00073 self.reserved5 = 0.
00074 if self.reserved6 is None:
00075 self.reserved6 = 0.
00076 if self.reserved7 is None:
00077 self.reserved7 = 0.
00078 else:
00079 self.transaction = 0
00080 self.dmi_scale_factor = 0.
00081 self.dmi_lever_arm = geometry_msgs.msg.Point32()
00082 self.reserved1 = 0.
00083 self.reserved2 = 0.
00084 self.reserved3 = 0.
00085 self.reserved5 = 0.
00086 self.reserved6 = 0.
00087 self.reserved7 = 0.
00088
00089 def _get_types(self):
00090 """
00091 internal API method
00092 """
00093 return self._slot_types
00094
00095 def serialize(self, buff):
00096 """
00097 serialize message into buffer
00098 :param buff: buffer, ``StringIO``
00099 """
00100 try:
00101 _x = self
00102 buff.write(_struct_H10f.pack(_x.transaction, _x.dmi_scale_factor, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.reserved1, _x.reserved2, _x.reserved3, _x.reserved5, _x.reserved6, _x.reserved7))
00103 except struct.error as se: self._check_types(se)
00104 except TypeError as te: self._check_types(te)
00105
00106 def deserialize(self, str):
00107 """
00108 unpack serialized message in str into this message instance
00109 :param str: byte array of serialized message, ``str``
00110 """
00111 try:
00112 if self.dmi_lever_arm is None:
00113 self.dmi_lever_arm = geometry_msgs.msg.Point32()
00114 end = 0
00115 _x = self
00116 start = end
00117 end += 42
00118 (_x.transaction, _x.dmi_scale_factor, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.reserved1, _x.reserved2, _x.reserved3, _x.reserved5, _x.reserved6, _x.reserved7,) = _struct_H10f.unpack(str[start:end])
00119 return self
00120 except struct.error as e:
00121 raise genpy.DeserializationError(e)
00122
00123
00124 def serialize_numpy(self, buff, numpy):
00125 """
00126 serialize message with numpy array types into buffer
00127 :param buff: buffer, ``StringIO``
00128 :param numpy: numpy python module
00129 """
00130 try:
00131 _x = self
00132 buff.write(_struct_H10f.pack(_x.transaction, _x.dmi_scale_factor, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.reserved1, _x.reserved2, _x.reserved3, _x.reserved5, _x.reserved6, _x.reserved7))
00133 except struct.error as se: self._check_types(se)
00134 except TypeError as te: self._check_types(te)
00135
00136 def deserialize_numpy(self, str, numpy):
00137 """
00138 unpack serialized message in str into this message instance using numpy for array types
00139 :param str: byte array of serialized message, ``str``
00140 :param numpy: numpy python module
00141 """
00142 try:
00143 if self.dmi_lever_arm is None:
00144 self.dmi_lever_arm = geometry_msgs.msg.Point32()
00145 end = 0
00146 _x = self
00147 start = end
00148 end += 42
00149 (_x.transaction, _x.dmi_scale_factor, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.reserved1, _x.reserved2, _x.reserved3, _x.reserved5, _x.reserved6, _x.reserved7,) = _struct_H10f.unpack(str[start:end])
00150 return self
00151 except struct.error as e:
00152 raise genpy.DeserializationError(e)
00153
00154 _struct_I = genpy.struct_I
00155 _struct_H10f = struct.Struct("<H10f")