$search
00001 """autogenerated by genmsg_py from IINSolutionStatus.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import applanix_msgs.msg 00006 00007 class IINSolutionStatus(roslib.message.Message): 00008 _md5sum = "421e809231149ab046729933cacbd490" 00009 _type = "applanix_msgs/IINSolutionStatus" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """# Group 20 00012 TimeDistance td 00013 00014 uint16 num_satellites 00015 float32 a_priori_pdop 00016 float32 baseline_length 00017 00018 uint16 STATUS_FIXED_NARROW_LANE_RTK=1 00019 uint16 STATUS_FIXED_WIDE_LANE_RTK=2 00020 uint16 STATUS_FLOAT_RTK=3 00021 uint16 STATUS_CODE_DGPS=4 00022 uint16 STATUS_RTCM_DGPS=5 00023 uint16 STATUS_AUTONOMOUS_CA=6 00024 uint16 STATUS_GNSS_NAV_SOLUTION=7 00025 uint16 STATUS_NO_SOLUTION=8 00026 uint16 status 00027 00028 uint8[12] prn_assignment 00029 00030 uint16 l1_cycle_slip_flag 00031 uint16 l2_cycle_slip_flag 00032 00033 ================================================================================ 00034 MSG: applanix_msgs/TimeDistance 00035 float64 time1 00036 float64 time2 00037 float64 distance 00038 uint8 time_types 00039 uint8 distance_type 00040 00041 """ 00042 # Pseudo-constants 00043 STATUS_FIXED_NARROW_LANE_RTK = 1 00044 STATUS_FIXED_WIDE_LANE_RTK = 2 00045 STATUS_FLOAT_RTK = 3 00046 STATUS_CODE_DGPS = 4 00047 STATUS_RTCM_DGPS = 5 00048 STATUS_AUTONOMOUS_CA = 6 00049 STATUS_GNSS_NAV_SOLUTION = 7 00050 STATUS_NO_SOLUTION = 8 00051 00052 __slots__ = ['td','num_satellites','a_priori_pdop','baseline_length','status','prn_assignment','l1_cycle_slip_flag','l2_cycle_slip_flag'] 00053 _slot_types = ['applanix_msgs/TimeDistance','uint16','float32','float32','uint16','uint8[12]','uint16','uint16'] 00054 00055 def __init__(self, *args, **kwds): 00056 """ 00057 Constructor. Any message fields that are implicitly/explicitly 00058 set to None will be assigned a default value. The recommend 00059 use is keyword arguments as this is more robust to future message 00060 changes. You cannot mix in-order arguments and keyword arguments. 00061 00062 The available fields are: 00063 td,num_satellites,a_priori_pdop,baseline_length,status,prn_assignment,l1_cycle_slip_flag,l2_cycle_slip_flag 00064 00065 @param args: complete set of field values, in .msg order 00066 @param kwds: use keyword arguments corresponding to message field names 00067 to set specific fields. 00068 """ 00069 if args or kwds: 00070 super(IINSolutionStatus, self).__init__(*args, **kwds) 00071 #message fields cannot be None, assign default values for those that are 00072 if self.td is None: 00073 self.td = applanix_msgs.msg.TimeDistance() 00074 if self.num_satellites is None: 00075 self.num_satellites = 0 00076 if self.a_priori_pdop is None: 00077 self.a_priori_pdop = 0. 00078 if self.baseline_length is None: 00079 self.baseline_length = 0. 00080 if self.status is None: 00081 self.status = 0 00082 if self.prn_assignment is None: 00083 self.prn_assignment = chr(0)*12 00084 if self.l1_cycle_slip_flag is None: 00085 self.l1_cycle_slip_flag = 0 00086 if self.l2_cycle_slip_flag is None: 00087 self.l2_cycle_slip_flag = 0 00088 else: 00089 self.td = applanix_msgs.msg.TimeDistance() 00090 self.num_satellites = 0 00091 self.a_priori_pdop = 0. 00092 self.baseline_length = 0. 00093 self.status = 0 00094 self.prn_assignment = chr(0)*12 00095 self.l1_cycle_slip_flag = 0 00096 self.l2_cycle_slip_flag = 0 00097 00098 def _get_types(self): 00099 """ 00100 internal API method 00101 """ 00102 return self._slot_types 00103 00104 def serialize(self, buff): 00105 """ 00106 serialize message into buffer 00107 @param buff: buffer 00108 @type buff: StringIO 00109 """ 00110 try: 00111 _x = self 00112 buff.write(_struct_3d2BH2fH.pack(_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.num_satellites, _x.a_priori_pdop, _x.baseline_length, _x.status)) 00113 _x = self.prn_assignment 00114 # - if encoded as a list instead, serialize as bytes instead of string 00115 if type(_x) in [list, tuple]: 00116 buff.write(_struct_12B.pack(*_x)) 00117 else: 00118 buff.write(_struct_12s.pack(_x)) 00119 _x = self 00120 buff.write(_struct_2H.pack(_x.l1_cycle_slip_flag, _x.l2_cycle_slip_flag)) 00121 except struct.error as se: self._check_types(se) 00122 except TypeError as te: self._check_types(te) 00123 00124 def deserialize(self, str): 00125 """ 00126 unpack serialized message in str into this message instance 00127 @param str: byte array of serialized message 00128 @type str: str 00129 """ 00130 try: 00131 if self.td is None: 00132 self.td = applanix_msgs.msg.TimeDistance() 00133 end = 0 00134 _x = self 00135 start = end 00136 end += 38 00137 (_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.num_satellites, _x.a_priori_pdop, _x.baseline_length, _x.status,) = _struct_3d2BH2fH.unpack(str[start:end]) 00138 start = end 00139 end += 12 00140 self.prn_assignment = str[start:end] 00141 _x = self 00142 start = end 00143 end += 4 00144 (_x.l1_cycle_slip_flag, _x.l2_cycle_slip_flag,) = _struct_2H.unpack(str[start:end]) 00145 return self 00146 except struct.error as e: 00147 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00148 00149 00150 def serialize_numpy(self, buff, numpy): 00151 """ 00152 serialize message with numpy array types into buffer 00153 @param buff: buffer 00154 @type buff: StringIO 00155 @param numpy: numpy python module 00156 @type numpy module 00157 """ 00158 try: 00159 _x = self 00160 buff.write(_struct_3d2BH2fH.pack(_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.num_satellites, _x.a_priori_pdop, _x.baseline_length, _x.status)) 00161 _x = self.prn_assignment 00162 # - if encoded as a list instead, serialize as bytes instead of string 00163 if type(_x) in [list, tuple]: 00164 buff.write(_struct_12B.pack(*_x)) 00165 else: 00166 buff.write(_struct_12s.pack(_x)) 00167 _x = self 00168 buff.write(_struct_2H.pack(_x.l1_cycle_slip_flag, _x.l2_cycle_slip_flag)) 00169 except struct.error as se: self._check_types(se) 00170 except TypeError as te: self._check_types(te) 00171 00172 def deserialize_numpy(self, str, numpy): 00173 """ 00174 unpack serialized message in str into this message instance using numpy for array types 00175 @param str: byte array of serialized message 00176 @type str: str 00177 @param numpy: numpy python module 00178 @type numpy: module 00179 """ 00180 try: 00181 if self.td is None: 00182 self.td = applanix_msgs.msg.TimeDistance() 00183 end = 0 00184 _x = self 00185 start = end 00186 end += 38 00187 (_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.num_satellites, _x.a_priori_pdop, _x.baseline_length, _x.status,) = _struct_3d2BH2fH.unpack(str[start:end]) 00188 start = end 00189 end += 12 00190 self.prn_assignment = str[start:end] 00191 _x = self 00192 start = end 00193 end += 4 00194 (_x.l1_cycle_slip_flag, _x.l2_cycle_slip_flag,) = _struct_2H.unpack(str[start:end]) 00195 return self 00196 except struct.error as e: 00197 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00198 00199 _struct_I = roslib.message.struct_I 00200 _struct_3d2BH2fH = struct.Struct("<3d2BH2fH") 00201 _struct_12B = struct.Struct("<12B") 00202 _struct_12s = struct.Struct("<12s") 00203 _struct_2H = struct.Struct("<2H")