$search
00001 """autogenerated by genmsg_py from RxmRAW_SV.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class RxmRAW_SV(roslib.message.Message): 00007 _md5sum = "4b32efd29577416a2c280e629abcb69a" 00008 _type = "ublox_msgs/RxmRAW_SV" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """# see message RxmRAW 00011 # 00012 00013 float64 cpMes # Carrier phase measurement [L1 cycles] 00014 float64 prMes # Pseudorange measurement [m] 00015 float32 doMes # Doppler measurement [Hz] 00016 00017 uint8 sv # Space Vehicle Number 00018 int8 mesQI # Nav Measurements Quality Indicator 00019 # >=4 : PR+DO OK 00020 # >=5 : PR+DO+CP OK 00021 # <6 : likely loss of carrier lock in previous interval 00022 int8 cno # Signal strength C/No. [dbHz] 00023 uint8 lli # Loss of lock indicator (RINEX definition) 00024 00025 """ 00026 __slots__ = ['cpMes','prMes','doMes','sv','mesQI','cno','lli'] 00027 _slot_types = ['float64','float64','float32','uint8','int8','int8','uint8'] 00028 00029 def __init__(self, *args, **kwds): 00030 """ 00031 Constructor. Any message fields that are implicitly/explicitly 00032 set to None will be assigned a default value. The recommend 00033 use is keyword arguments as this is more robust to future message 00034 changes. You cannot mix in-order arguments and keyword arguments. 00035 00036 The available fields are: 00037 cpMes,prMes,doMes,sv,mesQI,cno,lli 00038 00039 @param args: complete set of field values, in .msg order 00040 @param kwds: use keyword arguments corresponding to message field names 00041 to set specific fields. 00042 """ 00043 if args or kwds: 00044 super(RxmRAW_SV, self).__init__(*args, **kwds) 00045 #message fields cannot be None, assign default values for those that are 00046 if self.cpMes is None: 00047 self.cpMes = 0. 00048 if self.prMes is None: 00049 self.prMes = 0. 00050 if self.doMes is None: 00051 self.doMes = 0. 00052 if self.sv is None: 00053 self.sv = 0 00054 if self.mesQI is None: 00055 self.mesQI = 0 00056 if self.cno is None: 00057 self.cno = 0 00058 if self.lli is None: 00059 self.lli = 0 00060 else: 00061 self.cpMes = 0. 00062 self.prMes = 0. 00063 self.doMes = 0. 00064 self.sv = 0 00065 self.mesQI = 0 00066 self.cno = 0 00067 self.lli = 0 00068 00069 def _get_types(self): 00070 """ 00071 internal API method 00072 """ 00073 return self._slot_types 00074 00075 def serialize(self, buff): 00076 """ 00077 serialize message into buffer 00078 @param buff: buffer 00079 @type buff: StringIO 00080 """ 00081 try: 00082 _x = self 00083 buff.write(_struct_2dfB2bB.pack(_x.cpMes, _x.prMes, _x.doMes, _x.sv, _x.mesQI, _x.cno, _x.lli)) 00084 except struct.error as se: self._check_types(se) 00085 except TypeError as te: self._check_types(te) 00086 00087 def deserialize(self, str): 00088 """ 00089 unpack serialized message in str into this message instance 00090 @param str: byte array of serialized message 00091 @type str: str 00092 """ 00093 try: 00094 end = 0 00095 _x = self 00096 start = end 00097 end += 24 00098 (_x.cpMes, _x.prMes, _x.doMes, _x.sv, _x.mesQI, _x.cno, _x.lli,) = _struct_2dfB2bB.unpack(str[start:end]) 00099 return self 00100 except struct.error as e: 00101 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00102 00103 00104 def serialize_numpy(self, buff, numpy): 00105 """ 00106 serialize message with numpy array types into buffer 00107 @param buff: buffer 00108 @type buff: StringIO 00109 @param numpy: numpy python module 00110 @type numpy module 00111 """ 00112 try: 00113 _x = self 00114 buff.write(_struct_2dfB2bB.pack(_x.cpMes, _x.prMes, _x.doMes, _x.sv, _x.mesQI, _x.cno, _x.lli)) 00115 except struct.error as se: self._check_types(se) 00116 except TypeError as te: self._check_types(te) 00117 00118 def deserialize_numpy(self, str, numpy): 00119 """ 00120 unpack serialized message in str into this message instance using numpy for array types 00121 @param str: byte array of serialized message 00122 @type str: str 00123 @param numpy: numpy python module 00124 @type numpy: module 00125 """ 00126 try: 00127 end = 0 00128 _x = self 00129 start = end 00130 end += 24 00131 (_x.cpMes, _x.prMes, _x.doMes, _x.sv, _x.mesQI, _x.cno, _x.lli,) = _struct_2dfB2bB.unpack(str[start:end]) 00132 return self 00133 except struct.error as e: 00134 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00135 00136 _struct_I = roslib.message.struct_I 00137 _struct_2dfB2bB = struct.Struct("<2dfB2bB")