Go to the documentation of this file.00001 """autogenerated by genpy from applanix_msgs/InstallationCalibrationControl.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007
00008 class InstallationCalibrationControl(genpy.Message):
00009 _md5sum = "38570f4fc018a153e76cdbbb5df7679e"
00010 _type = "applanix_msgs/InstallationCalibrationControl"
00011 _has_header = False
00012 _full_text = """# Msg 57
00013 uint16 transaction
00014
00015 uint8 ACTION_NONE=0
00016 uint8 ACTION_STOP=1
00017 uint8 ACTION_MANUAL_CALIBRATION=2
00018 uint8 ACTION_AUTO_CALIBRATION=3
00019 uint8 ACTION_NORMAL_CALIBRATED_PARAM_TRANSFER=4
00020 uint8 ACTION_FORCED_CALIBRATED_PARAM_TRANSFER=5
00021 uint8 action
00022
00023 uint8 SELECT_PRIMARY_GNSS_LEVER_ARM=1
00024 uint8 SELECT_AUX_1_GNSS_LEVER_ARM=2
00025 uint8 SELECT_AUX_2_GNSS_LEVER_ARM=4
00026 uint8 SELECT_DMI_LEVER_ARM=8
00027 uint8 SELECT_DMI_SCALE_FACTOR=16
00028 uint8 SELECT_POSITION_FIX_LEVER_ARM=64
00029 uint8 select
00030
00031 """
00032
00033 ACTION_NONE = 0
00034 ACTION_STOP = 1
00035 ACTION_MANUAL_CALIBRATION = 2
00036 ACTION_AUTO_CALIBRATION = 3
00037 ACTION_NORMAL_CALIBRATED_PARAM_TRANSFER = 4
00038 ACTION_FORCED_CALIBRATED_PARAM_TRANSFER = 5
00039 SELECT_PRIMARY_GNSS_LEVER_ARM = 1
00040 SELECT_AUX_1_GNSS_LEVER_ARM = 2
00041 SELECT_AUX_2_GNSS_LEVER_ARM = 4
00042 SELECT_DMI_LEVER_ARM = 8
00043 SELECT_DMI_SCALE_FACTOR = 16
00044 SELECT_POSITION_FIX_LEVER_ARM = 64
00045
00046 __slots__ = ['transaction','action','select']
00047 _slot_types = ['uint16','uint8','uint8']
00048
00049 def __init__(self, *args, **kwds):
00050 """
00051 Constructor. Any message fields that are implicitly/explicitly
00052 set to None will be assigned a default value. The recommend
00053 use is keyword arguments as this is more robust to future message
00054 changes. You cannot mix in-order arguments and keyword arguments.
00055
00056 The available fields are:
00057 transaction,action,select
00058
00059 :param args: complete set of field values, in .msg order
00060 :param kwds: use keyword arguments corresponding to message field names
00061 to set specific fields.
00062 """
00063 if args or kwds:
00064 super(InstallationCalibrationControl, self).__init__(*args, **kwds)
00065
00066 if self.transaction is None:
00067 self.transaction = 0
00068 if self.action is None:
00069 self.action = 0
00070 if self.select is None:
00071 self.select = 0
00072 else:
00073 self.transaction = 0
00074 self.action = 0
00075 self.select = 0
00076
00077 def _get_types(self):
00078 """
00079 internal API method
00080 """
00081 return self._slot_types
00082
00083 def serialize(self, buff):
00084 """
00085 serialize message into buffer
00086 :param buff: buffer, ``StringIO``
00087 """
00088 try:
00089 _x = self
00090 buff.write(_struct_H2B.pack(_x.transaction, _x.action, _x.select))
00091 except struct.error as se: self._check_types(se)
00092 except TypeError as te: self._check_types(te)
00093
00094 def deserialize(self, str):
00095 """
00096 unpack serialized message in str into this message instance
00097 :param str: byte array of serialized message, ``str``
00098 """
00099 try:
00100 end = 0
00101 _x = self
00102 start = end
00103 end += 4
00104 (_x.transaction, _x.action, _x.select,) = _struct_H2B.unpack(str[start:end])
00105 return self
00106 except struct.error as e:
00107 raise genpy.DeserializationError(e)
00108
00109
00110 def serialize_numpy(self, buff, numpy):
00111 """
00112 serialize message with numpy array types into buffer
00113 :param buff: buffer, ``StringIO``
00114 :param numpy: numpy python module
00115 """
00116 try:
00117 _x = self
00118 buff.write(_struct_H2B.pack(_x.transaction, _x.action, _x.select))
00119 except struct.error as se: self._check_types(se)
00120 except TypeError as te: self._check_types(te)
00121
00122 def deserialize_numpy(self, str, numpy):
00123 """
00124 unpack serialized message in str into this message instance using numpy for array types
00125 :param str: byte array of serialized message, ``str``
00126 :param numpy: numpy python module
00127 """
00128 try:
00129 end = 0
00130 _x = self
00131 start = end
00132 end += 4
00133 (_x.transaction, _x.action, _x.select,) = _struct_H2B.unpack(str[start:end])
00134 return self
00135 except struct.error as e:
00136 raise genpy.DeserializationError(e)
00137
00138 _struct_I = genpy.struct_I
00139 _struct_H2B = struct.Struct("<H2B")