00001 """autogenerated by genpy from applanix_msgs/CalibratedInstallationParameters.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 import applanix_msgs.msg
00009
00010 class CalibratedInstallationParameters(genpy.Message):
00011 _md5sum = "1477542d348ed571610f2395143ec8d8"
00012 _type = "applanix_msgs/CalibratedInstallationParameters"
00013 _has_header = False
00014 _full_text = """# Group 14
00015 TimeDistance td
00016
00017 # Bitfield
00018 uint16 STATUS_PRIMARY_GNSS_LEVER_ARM_CALIBRATING=1
00019 uint16 STATUS_AUX_1_GNSS_LEVER_ARM_CALIBRATING=2
00020 uint16 STATUS_AUX_2_GNSS_LEVER_ARM_CALIBRATING=4
00021 uint16 STATUS_DMI_LEVER_ARM_CALIBRATING=8
00022 uint16 STATUS_DMI_SCALE_FACTOR_CALIBRATING=16
00023 uint16 STATUS_POSITION_FIX_LEVER_ARM_CALIBRATING=64
00024 uint16 STATUS_PRIMARY_GNSS_LEVER_ARM_CALIBRATED=256
00025 uint16 STATUS_AUX_1_GNSS_LEVER_ARM_CALIBRATED=512
00026 uint16 STATUS_AUX_2_GNSS_LEVER_ARM_CALIBRATED=1024
00027 uint16 STATUS_DMI_LEVER_ARM_CALIBRATED=2048
00028 uint16 STATUS_DMI_SCALE_FACTOR_CALIBRATED=4096
00029 uint16 STATUS_POSITION_FIX_LEVER_ARM_CALIBRATED=16384
00030 uint16 status
00031
00032 geometry_msgs/Point32 primary_gnss_lever_arm
00033 uint16 primary_gnss_lever_fom
00034
00035 geometry_msgs/Point32 aux_1_gnss_lever_arm
00036 uint16 aux_1_gnss_lever_fom
00037
00038 geometry_msgs/Point32 aux_2_gnss_lever_arm
00039 uint16 aux_2_gnss_lever_fom
00040
00041 geometry_msgs/Point32 dmi_lever_arm
00042 uint16 dmi_lever_fom
00043
00044 float32 dmi_scale_factor
00045 uint16 dmi_scale_factor_fom
00046
00047 ================================================================================
00048 MSG: applanix_msgs/TimeDistance
00049 float64 time1
00050 float64 time2
00051 float64 distance
00052 uint8 time_types
00053 uint8 distance_type
00054
00055 ================================================================================
00056 MSG: geometry_msgs/Point32
00057 # This contains the position of a point in free space(with 32 bits of precision).
00058 # It is recommeded to use Point wherever possible instead of Point32.
00059 #
00060 # This recommendation is to promote interoperability.
00061 #
00062 # This message is designed to take up less space when sending
00063 # lots of points at once, as in the case of a PointCloud.
00064
00065 float32 x
00066 float32 y
00067 float32 z
00068 """
00069
00070 STATUS_PRIMARY_GNSS_LEVER_ARM_CALIBRATING = 1
00071 STATUS_AUX_1_GNSS_LEVER_ARM_CALIBRATING = 2
00072 STATUS_AUX_2_GNSS_LEVER_ARM_CALIBRATING = 4
00073 STATUS_DMI_LEVER_ARM_CALIBRATING = 8
00074 STATUS_DMI_SCALE_FACTOR_CALIBRATING = 16
00075 STATUS_POSITION_FIX_LEVER_ARM_CALIBRATING = 64
00076 STATUS_PRIMARY_GNSS_LEVER_ARM_CALIBRATED = 256
00077 STATUS_AUX_1_GNSS_LEVER_ARM_CALIBRATED = 512
00078 STATUS_AUX_2_GNSS_LEVER_ARM_CALIBRATED = 1024
00079 STATUS_DMI_LEVER_ARM_CALIBRATED = 2048
00080 STATUS_DMI_SCALE_FACTOR_CALIBRATED = 4096
00081 STATUS_POSITION_FIX_LEVER_ARM_CALIBRATED = 16384
00082
00083 __slots__ = ['td','status','primary_gnss_lever_arm','primary_gnss_lever_fom','aux_1_gnss_lever_arm','aux_1_gnss_lever_fom','aux_2_gnss_lever_arm','aux_2_gnss_lever_fom','dmi_lever_arm','dmi_lever_fom','dmi_scale_factor','dmi_scale_factor_fom']
00084 _slot_types = ['applanix_msgs/TimeDistance','uint16','geometry_msgs/Point32','uint16','geometry_msgs/Point32','uint16','geometry_msgs/Point32','uint16','geometry_msgs/Point32','uint16','float32','uint16']
00085
00086 def __init__(self, *args, **kwds):
00087 """
00088 Constructor. Any message fields that are implicitly/explicitly
00089 set to None will be assigned a default value. The recommend
00090 use is keyword arguments as this is more robust to future message
00091 changes. You cannot mix in-order arguments and keyword arguments.
00092
00093 The available fields are:
00094 td,status,primary_gnss_lever_arm,primary_gnss_lever_fom,aux_1_gnss_lever_arm,aux_1_gnss_lever_fom,aux_2_gnss_lever_arm,aux_2_gnss_lever_fom,dmi_lever_arm,dmi_lever_fom,dmi_scale_factor,dmi_scale_factor_fom
00095
00096 :param args: complete set of field values, in .msg order
00097 :param kwds: use keyword arguments corresponding to message field names
00098 to set specific fields.
00099 """
00100 if args or kwds:
00101 super(CalibratedInstallationParameters, self).__init__(*args, **kwds)
00102
00103 if self.td is None:
00104 self.td = applanix_msgs.msg.TimeDistance()
00105 if self.status is None:
00106 self.status = 0
00107 if self.primary_gnss_lever_arm is None:
00108 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32()
00109 if self.primary_gnss_lever_fom is None:
00110 self.primary_gnss_lever_fom = 0
00111 if self.aux_1_gnss_lever_arm is None:
00112 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32()
00113 if self.aux_1_gnss_lever_fom is None:
00114 self.aux_1_gnss_lever_fom = 0
00115 if self.aux_2_gnss_lever_arm is None:
00116 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32()
00117 if self.aux_2_gnss_lever_fom is None:
00118 self.aux_2_gnss_lever_fom = 0
00119 if self.dmi_lever_arm is None:
00120 self.dmi_lever_arm = geometry_msgs.msg.Point32()
00121 if self.dmi_lever_fom is None:
00122 self.dmi_lever_fom = 0
00123 if self.dmi_scale_factor is None:
00124 self.dmi_scale_factor = 0.
00125 if self.dmi_scale_factor_fom is None:
00126 self.dmi_scale_factor_fom = 0
00127 else:
00128 self.td = applanix_msgs.msg.TimeDistance()
00129 self.status = 0
00130 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32()
00131 self.primary_gnss_lever_fom = 0
00132 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32()
00133 self.aux_1_gnss_lever_fom = 0
00134 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32()
00135 self.aux_2_gnss_lever_fom = 0
00136 self.dmi_lever_arm = geometry_msgs.msg.Point32()
00137 self.dmi_lever_fom = 0
00138 self.dmi_scale_factor = 0.
00139 self.dmi_scale_factor_fom = 0
00140
00141 def _get_types(self):
00142 """
00143 internal API method
00144 """
00145 return self._slot_types
00146
00147 def serialize(self, buff):
00148 """
00149 serialize message into buffer
00150 :param buff: buffer, ``StringIO``
00151 """
00152 try:
00153 _x = self
00154 buff.write(_struct_3d2BH3fH3fH3fH3fHfH.pack(_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.status, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.primary_gnss_lever_fom, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_1_gnss_lever_fom, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.aux_2_gnss_lever_fom, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.dmi_lever_fom, _x.dmi_scale_factor, _x.dmi_scale_factor_fom))
00155 except struct.error as se: self._check_types(se)
00156 except TypeError as te: self._check_types(te)
00157
00158 def deserialize(self, str):
00159 """
00160 unpack serialized message in str into this message instance
00161 :param str: byte array of serialized message, ``str``
00162 """
00163 try:
00164 if self.td is None:
00165 self.td = applanix_msgs.msg.TimeDistance()
00166 if self.primary_gnss_lever_arm is None:
00167 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32()
00168 if self.aux_1_gnss_lever_arm is None:
00169 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32()
00170 if self.aux_2_gnss_lever_arm is None:
00171 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32()
00172 if self.dmi_lever_arm is None:
00173 self.dmi_lever_arm = geometry_msgs.msg.Point32()
00174 end = 0
00175 _x = self
00176 start = end
00177 end += 90
00178 (_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.status, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.primary_gnss_lever_fom, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_1_gnss_lever_fom, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.aux_2_gnss_lever_fom, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.dmi_lever_fom, _x.dmi_scale_factor, _x.dmi_scale_factor_fom,) = _struct_3d2BH3fH3fH3fH3fHfH.unpack(str[start:end])
00179 return self
00180 except struct.error as e:
00181 raise genpy.DeserializationError(e)
00182
00183
00184 def serialize_numpy(self, buff, numpy):
00185 """
00186 serialize message with numpy array types into buffer
00187 :param buff: buffer, ``StringIO``
00188 :param numpy: numpy python module
00189 """
00190 try:
00191 _x = self
00192 buff.write(_struct_3d2BH3fH3fH3fH3fHfH.pack(_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.status, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.primary_gnss_lever_fom, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_1_gnss_lever_fom, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.aux_2_gnss_lever_fom, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.dmi_lever_fom, _x.dmi_scale_factor, _x.dmi_scale_factor_fom))
00193 except struct.error as se: self._check_types(se)
00194 except TypeError as te: self._check_types(te)
00195
00196 def deserialize_numpy(self, str, numpy):
00197 """
00198 unpack serialized message in str into this message instance using numpy for array types
00199 :param str: byte array of serialized message, ``str``
00200 :param numpy: numpy python module
00201 """
00202 try:
00203 if self.td is None:
00204 self.td = applanix_msgs.msg.TimeDistance()
00205 if self.primary_gnss_lever_arm is None:
00206 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32()
00207 if self.aux_1_gnss_lever_arm is None:
00208 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32()
00209 if self.aux_2_gnss_lever_arm is None:
00210 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32()
00211 if self.dmi_lever_arm is None:
00212 self.dmi_lever_arm = geometry_msgs.msg.Point32()
00213 end = 0
00214 _x = self
00215 start = end
00216 end += 90
00217 (_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.status, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.primary_gnss_lever_fom, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_1_gnss_lever_fom, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.aux_2_gnss_lever_fom, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.dmi_lever_fom, _x.dmi_scale_factor, _x.dmi_scale_factor_fom,) = _struct_3d2BH3fH3fH3fH3fHfH.unpack(str[start:end])
00218 return self
00219 except struct.error as e:
00220 raise genpy.DeserializationError(e)
00221
00222 _struct_I = genpy.struct_I
00223 _struct_3d2BH3fH3fH3fH3fHfH = struct.Struct("<3d2BH3fH3fH3fH3fHfH")