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