00001 """autogenerated by genpy from applanix_msgs/GeneralParams.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 GeneralParams(genpy.Message):
00010 _md5sum = "dd32351725c9c39d1131c0be17b24a7b"
00011 _type = "applanix_msgs/GeneralParams"
00012 _has_header = False
00013 _full_text = """# Msg 20
00014 uint16 transaction
00015
00016 uint8 time_types
00017 uint8 distance_type
00018 uint8 autostart
00019
00020 geometry_msgs/Point32 imu_lever_arm
00021 geometry_msgs/Point32 primary_gnss_lever_arm
00022 geometry_msgs/Point32 aux_1_gnss_lever_arm
00023 geometry_msgs/Point32 aux_2_gnss_lever_arm
00024 geometry_msgs/Point32 imu_mounting_angle
00025 geometry_msgs/Point32 ref_mounting_angle
00026
00027 uint8 MULTIPATH_LOW=0
00028 uint8 MULTIPATH_MEDIUM=1
00029 uint8 MULTIPATH_HIGH=2
00030 uint8 multipath
00031
00032 ================================================================================
00033 MSG: geometry_msgs/Point32
00034 # This contains the position of a point in free space(with 32 bits of precision).
00035 # It is recommeded to use Point wherever possible instead of Point32.
00036 #
00037 # This recommendation is to promote interoperability.
00038 #
00039 # This message is designed to take up less space when sending
00040 # lots of points at once, as in the case of a PointCloud.
00041
00042 float32 x
00043 float32 y
00044 float32 z
00045 """
00046
00047 MULTIPATH_LOW = 0
00048 MULTIPATH_MEDIUM = 1
00049 MULTIPATH_HIGH = 2
00050
00051 __slots__ = ['transaction','time_types','distance_type','autostart','imu_lever_arm','primary_gnss_lever_arm','aux_1_gnss_lever_arm','aux_2_gnss_lever_arm','imu_mounting_angle','ref_mounting_angle','multipath']
00052 _slot_types = ['uint16','uint8','uint8','uint8','geometry_msgs/Point32','geometry_msgs/Point32','geometry_msgs/Point32','geometry_msgs/Point32','geometry_msgs/Point32','geometry_msgs/Point32','uint8']
00053
00054 def __init__(self, *args, **kwds):
00055 """
00056 Constructor. Any message fields that are implicitly/explicitly
00057 set to None will be assigned a default value. The recommend
00058 use is keyword arguments as this is more robust to future message
00059 changes. You cannot mix in-order arguments and keyword arguments.
00060
00061 The available fields are:
00062 transaction,time_types,distance_type,autostart,imu_lever_arm,primary_gnss_lever_arm,aux_1_gnss_lever_arm,aux_2_gnss_lever_arm,imu_mounting_angle,ref_mounting_angle,multipath
00063
00064 :param args: complete set of field values, in .msg order
00065 :param kwds: use keyword arguments corresponding to message field names
00066 to set specific fields.
00067 """
00068 if args or kwds:
00069 super(GeneralParams, self).__init__(*args, **kwds)
00070
00071 if self.transaction is None:
00072 self.transaction = 0
00073 if self.time_types is None:
00074 self.time_types = 0
00075 if self.distance_type is None:
00076 self.distance_type = 0
00077 if self.autostart is None:
00078 self.autostart = 0
00079 if self.imu_lever_arm is None:
00080 self.imu_lever_arm = geometry_msgs.msg.Point32()
00081 if self.primary_gnss_lever_arm is None:
00082 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32()
00083 if self.aux_1_gnss_lever_arm is None:
00084 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32()
00085 if self.aux_2_gnss_lever_arm is None:
00086 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32()
00087 if self.imu_mounting_angle is None:
00088 self.imu_mounting_angle = geometry_msgs.msg.Point32()
00089 if self.ref_mounting_angle is None:
00090 self.ref_mounting_angle = geometry_msgs.msg.Point32()
00091 if self.multipath is None:
00092 self.multipath = 0
00093 else:
00094 self.transaction = 0
00095 self.time_types = 0
00096 self.distance_type = 0
00097 self.autostart = 0
00098 self.imu_lever_arm = geometry_msgs.msg.Point32()
00099 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32()
00100 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32()
00101 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32()
00102 self.imu_mounting_angle = geometry_msgs.msg.Point32()
00103 self.ref_mounting_angle = geometry_msgs.msg.Point32()
00104 self.multipath = 0
00105
00106 def _get_types(self):
00107 """
00108 internal API method
00109 """
00110 return self._slot_types
00111
00112 def serialize(self, buff):
00113 """
00114 serialize message into buffer
00115 :param buff: buffer, ``StringIO``
00116 """
00117 try:
00118 _x = self
00119 buff.write(_struct_H3B18fB.pack(_x.transaction, _x.time_types, _x.distance_type, _x.autostart, _x.imu_lever_arm.x, _x.imu_lever_arm.y, _x.imu_lever_arm.z, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.imu_mounting_angle.x, _x.imu_mounting_angle.y, _x.imu_mounting_angle.z, _x.ref_mounting_angle.x, _x.ref_mounting_angle.y, _x.ref_mounting_angle.z, _x.multipath))
00120 except struct.error as se: self._check_types(se)
00121 except TypeError as te: self._check_types(te)
00122
00123 def deserialize(self, str):
00124 """
00125 unpack serialized message in str into this message instance
00126 :param str: byte array of serialized message, ``str``
00127 """
00128 try:
00129 if self.imu_lever_arm is None:
00130 self.imu_lever_arm = geometry_msgs.msg.Point32()
00131 if self.primary_gnss_lever_arm is None:
00132 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32()
00133 if self.aux_1_gnss_lever_arm is None:
00134 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32()
00135 if self.aux_2_gnss_lever_arm is None:
00136 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32()
00137 if self.imu_mounting_angle is None:
00138 self.imu_mounting_angle = geometry_msgs.msg.Point32()
00139 if self.ref_mounting_angle is None:
00140 self.ref_mounting_angle = geometry_msgs.msg.Point32()
00141 end = 0
00142 _x = self
00143 start = end
00144 end += 78
00145 (_x.transaction, _x.time_types, _x.distance_type, _x.autostart, _x.imu_lever_arm.x, _x.imu_lever_arm.y, _x.imu_lever_arm.z, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.imu_mounting_angle.x, _x.imu_mounting_angle.y, _x.imu_mounting_angle.z, _x.ref_mounting_angle.x, _x.ref_mounting_angle.y, _x.ref_mounting_angle.z, _x.multipath,) = _struct_H3B18fB.unpack(str[start:end])
00146 return self
00147 except struct.error as e:
00148 raise genpy.DeserializationError(e)
00149
00150
00151 def serialize_numpy(self, buff, numpy):
00152 """
00153 serialize message with numpy array types into buffer
00154 :param buff: buffer, ``StringIO``
00155 :param numpy: numpy python module
00156 """
00157 try:
00158 _x = self
00159 buff.write(_struct_H3B18fB.pack(_x.transaction, _x.time_types, _x.distance_type, _x.autostart, _x.imu_lever_arm.x, _x.imu_lever_arm.y, _x.imu_lever_arm.z, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.imu_mounting_angle.x, _x.imu_mounting_angle.y, _x.imu_mounting_angle.z, _x.ref_mounting_angle.x, _x.ref_mounting_angle.y, _x.ref_mounting_angle.z, _x.multipath))
00160 except struct.error as se: self._check_types(se)
00161 except TypeError as te: self._check_types(te)
00162
00163 def deserialize_numpy(self, str, numpy):
00164 """
00165 unpack serialized message in str into this message instance using numpy for array types
00166 :param str: byte array of serialized message, ``str``
00167 :param numpy: numpy python module
00168 """
00169 try:
00170 if self.imu_lever_arm is None:
00171 self.imu_lever_arm = geometry_msgs.msg.Point32()
00172 if self.primary_gnss_lever_arm is None:
00173 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32()
00174 if self.aux_1_gnss_lever_arm is None:
00175 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32()
00176 if self.aux_2_gnss_lever_arm is None:
00177 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32()
00178 if self.imu_mounting_angle is None:
00179 self.imu_mounting_angle = geometry_msgs.msg.Point32()
00180 if self.ref_mounting_angle is None:
00181 self.ref_mounting_angle = geometry_msgs.msg.Point32()
00182 end = 0
00183 _x = self
00184 start = end
00185 end += 78
00186 (_x.transaction, _x.time_types, _x.distance_type, _x.autostart, _x.imu_lever_arm.x, _x.imu_lever_arm.y, _x.imu_lever_arm.z, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.imu_mounting_angle.x, _x.imu_mounting_angle.y, _x.imu_mounting_angle.z, _x.ref_mounting_angle.x, _x.ref_mounting_angle.y, _x.ref_mounting_angle.z, _x.multipath,) = _struct_H3B18fB.unpack(str[start:end])
00187 return self
00188 except struct.error as e:
00189 raise genpy.DeserializationError(e)
00190
00191 _struct_I = genpy.struct_I
00192 _struct_H3B18fB = struct.Struct("<H3B18fB")