$search
00001 """autogenerated by genmsg_py from AidHUI.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class AidHUI(roslib.message.Message): 00007 _md5sum = "60cd4ce940333cb9b38edd447085ce5c" 00008 _type = "ublox_msgs/AidHUI" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """# AID-HUI (0x0B 0x02) 00011 # GPS Health, UTC and ionosphere parameters 00012 # 00013 # This message contains a health bit mask, UTC time and Klobuchar parameters. For more 00014 # information on these parameters, please see the ICD-GPS-200 documentation. 00015 00016 uint8 CLASS_ID = 11 00017 uint8 MESSAGE_ID = 2 00018 00019 uint32 health # Bitmask, every bit represenst a GPS SV (1-32). If the bit is set the SV is healthy. 00020 float64 utcA0 # UTC - parameter A0 00021 float64 utcA1 # UTC - parameter A1 00022 int32 utcTOW # UTC - reference time of week 00023 int16 utcWNT # UTC - reference week number 00024 int16 utcLS # UTC - time difference due to leap seconds before event 00025 int16 utcWNF # UTC - week number when next leap second event occurs 00026 int16 utcDN # UTC - day of week when next leap second event occurs 00027 int16 utcLSF # UTC - time difference due to leap seconds after event 00028 int16 utcSpare # UTC - Spare to ensure structure is a multiple of 4 bytes 00029 float32 klobA0 #K lobuchar - alpha 0 [s] 00030 float32 klobA1 # Klobuchar - alpha 1 [s/semicircle] 00031 float32 klobA2 # Klobuchar - alpha 2 [s/semicircle^2] 00032 float32 klobA3 # Klobuchar - alpha 3 [s/semicircle^3] 00033 float32 klobB0 #K lobuchar - beta 0 [s] 00034 float32 klobB1 # Klobuchar - beta 1 [s/semicircle] 00035 float32 klobB2 # Klobuchar - beta 2 [s/semicircle^2] 00036 float32 klobB3 # Klobuchar - beta 3 [s/semicircle^3] 00037 uint32 flags # flags 00038 uint32 FLAGS_HEALTH = 1 # Healthmask field in this message is valid 00039 uint32 FLAGS_UTC = 2 # UTC parameter fields in this message are valid 00040 uint32 FLAGS_KLOB = 4 # Klobuchar parameter fields in this message are valid 00041 00042 """ 00043 # Pseudo-constants 00044 CLASS_ID = 11 00045 MESSAGE_ID = 2 00046 FLAGS_HEALTH = 1 00047 FLAGS_UTC = 2 00048 FLAGS_KLOB = 4 00049 00050 __slots__ = ['health','utcA0','utcA1','utcTOW','utcWNT','utcLS','utcWNF','utcDN','utcLSF','utcSpare','klobA0','klobA1','klobA2','klobA3','klobB0','klobB1','klobB2','klobB3','flags'] 00051 _slot_types = ['uint32','float64','float64','int32','int16','int16','int16','int16','int16','int16','float32','float32','float32','float32','float32','float32','float32','float32','uint32'] 00052 00053 def __init__(self, *args, **kwds): 00054 """ 00055 Constructor. Any message fields that are implicitly/explicitly 00056 set to None will be assigned a default value. The recommend 00057 use is keyword arguments as this is more robust to future message 00058 changes. You cannot mix in-order arguments and keyword arguments. 00059 00060 The available fields are: 00061 health,utcA0,utcA1,utcTOW,utcWNT,utcLS,utcWNF,utcDN,utcLSF,utcSpare,klobA0,klobA1,klobA2,klobA3,klobB0,klobB1,klobB2,klobB3,flags 00062 00063 @param args: complete set of field values, in .msg order 00064 @param kwds: use keyword arguments corresponding to message field names 00065 to set specific fields. 00066 """ 00067 if args or kwds: 00068 super(AidHUI, self).__init__(*args, **kwds) 00069 #message fields cannot be None, assign default values for those that are 00070 if self.health is None: 00071 self.health = 0 00072 if self.utcA0 is None: 00073 self.utcA0 = 0. 00074 if self.utcA1 is None: 00075 self.utcA1 = 0. 00076 if self.utcTOW is None: 00077 self.utcTOW = 0 00078 if self.utcWNT is None: 00079 self.utcWNT = 0 00080 if self.utcLS is None: 00081 self.utcLS = 0 00082 if self.utcWNF is None: 00083 self.utcWNF = 0 00084 if self.utcDN is None: 00085 self.utcDN = 0 00086 if self.utcLSF is None: 00087 self.utcLSF = 0 00088 if self.utcSpare is None: 00089 self.utcSpare = 0 00090 if self.klobA0 is None: 00091 self.klobA0 = 0. 00092 if self.klobA1 is None: 00093 self.klobA1 = 0. 00094 if self.klobA2 is None: 00095 self.klobA2 = 0. 00096 if self.klobA3 is None: 00097 self.klobA3 = 0. 00098 if self.klobB0 is None: 00099 self.klobB0 = 0. 00100 if self.klobB1 is None: 00101 self.klobB1 = 0. 00102 if self.klobB2 is None: 00103 self.klobB2 = 0. 00104 if self.klobB3 is None: 00105 self.klobB3 = 0. 00106 if self.flags is None: 00107 self.flags = 0 00108 else: 00109 self.health = 0 00110 self.utcA0 = 0. 00111 self.utcA1 = 0. 00112 self.utcTOW = 0 00113 self.utcWNT = 0 00114 self.utcLS = 0 00115 self.utcWNF = 0 00116 self.utcDN = 0 00117 self.utcLSF = 0 00118 self.utcSpare = 0 00119 self.klobA0 = 0. 00120 self.klobA1 = 0. 00121 self.klobA2 = 0. 00122 self.klobA3 = 0. 00123 self.klobB0 = 0. 00124 self.klobB1 = 0. 00125 self.klobB2 = 0. 00126 self.klobB3 = 0. 00127 self.flags = 0 00128 00129 def _get_types(self): 00130 """ 00131 internal API method 00132 """ 00133 return self._slot_types 00134 00135 def serialize(self, buff): 00136 """ 00137 serialize message into buffer 00138 @param buff: buffer 00139 @type buff: StringIO 00140 """ 00141 try: 00142 _x = self 00143 buff.write(_struct_I2di6h8fI.pack(_x.health, _x.utcA0, _x.utcA1, _x.utcTOW, _x.utcWNT, _x.utcLS, _x.utcWNF, _x.utcDN, _x.utcLSF, _x.utcSpare, _x.klobA0, _x.klobA1, _x.klobA2, _x.klobA3, _x.klobB0, _x.klobB1, _x.klobB2, _x.klobB3, _x.flags)) 00144 except struct.error as se: self._check_types(se) 00145 except TypeError as te: self._check_types(te) 00146 00147 def deserialize(self, str): 00148 """ 00149 unpack serialized message in str into this message instance 00150 @param str: byte array of serialized message 00151 @type str: str 00152 """ 00153 try: 00154 end = 0 00155 _x = self 00156 start = end 00157 end += 72 00158 (_x.health, _x.utcA0, _x.utcA1, _x.utcTOW, _x.utcWNT, _x.utcLS, _x.utcWNF, _x.utcDN, _x.utcLSF, _x.utcSpare, _x.klobA0, _x.klobA1, _x.klobA2, _x.klobA3, _x.klobB0, _x.klobB1, _x.klobB2, _x.klobB3, _x.flags,) = _struct_I2di6h8fI.unpack(str[start:end]) 00159 return self 00160 except struct.error as e: 00161 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00162 00163 00164 def serialize_numpy(self, buff, numpy): 00165 """ 00166 serialize message with numpy array types into buffer 00167 @param buff: buffer 00168 @type buff: StringIO 00169 @param numpy: numpy python module 00170 @type numpy module 00171 """ 00172 try: 00173 _x = self 00174 buff.write(_struct_I2di6h8fI.pack(_x.health, _x.utcA0, _x.utcA1, _x.utcTOW, _x.utcWNT, _x.utcLS, _x.utcWNF, _x.utcDN, _x.utcLSF, _x.utcSpare, _x.klobA0, _x.klobA1, _x.klobA2, _x.klobA3, _x.klobB0, _x.klobB1, _x.klobB2, _x.klobB3, _x.flags)) 00175 except struct.error as se: self._check_types(se) 00176 except TypeError as te: self._check_types(te) 00177 00178 def deserialize_numpy(self, str, numpy): 00179 """ 00180 unpack serialized message in str into this message instance using numpy for array types 00181 @param str: byte array of serialized message 00182 @type str: str 00183 @param numpy: numpy python module 00184 @type numpy: module 00185 """ 00186 try: 00187 end = 0 00188 _x = self 00189 start = end 00190 end += 72 00191 (_x.health, _x.utcA0, _x.utcA1, _x.utcTOW, _x.utcWNT, _x.utcLS, _x.utcWNF, _x.utcDN, _x.utcLSF, _x.utcSpare, _x.klobA0, _x.klobA1, _x.klobA2, _x.klobA3, _x.klobB0, _x.klobB1, _x.klobB2, _x.klobB3, _x.flags,) = _struct_I2di6h8fI.unpack(str[start:end]) 00192 return self 00193 except struct.error as e: 00194 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00195 00196 _struct_I = roslib.message.struct_I 00197 _struct_I2di6h8fI = struct.Struct("<I2di6h8fI")