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