$search
00001 """autogenerated by genmsg_py from NavSBAS_SV.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class NavSBAS_SV(roslib.message.Message): 00007 _md5sum = "45259031fe19a4df2f5a4a667356a0bc" 00008 _type = "ublox_msgs/NavSBAS_SV" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """# see message NavSBAS 00011 # 00012 00013 uint8 svid # SV Id 00014 uint8 flags # Flags for this SV 00015 uint8 udre # Monitoring status 00016 uint8 svSys # System (WAAS/EGNOS/...), same as SYS 00017 uint8 svService # Services available, same as SERVICE 00018 uint8 reserved1 # Reserved 00019 int16 prc # Pseudo Range correction in [cm] 00020 uint16 reserved2 # Reserved 00021 int16 ic # Ionosphere correction in [cm] 00022 00023 """ 00024 __slots__ = ['svid','flags','udre','svSys','svService','reserved1','prc','reserved2','ic'] 00025 _slot_types = ['uint8','uint8','uint8','uint8','uint8','uint8','int16','uint16','int16'] 00026 00027 def __init__(self, *args, **kwds): 00028 """ 00029 Constructor. Any message fields that are implicitly/explicitly 00030 set to None will be assigned a default value. The recommend 00031 use is keyword arguments as this is more robust to future message 00032 changes. You cannot mix in-order arguments and keyword arguments. 00033 00034 The available fields are: 00035 svid,flags,udre,svSys,svService,reserved1,prc,reserved2,ic 00036 00037 @param args: complete set of field values, in .msg order 00038 @param kwds: use keyword arguments corresponding to message field names 00039 to set specific fields. 00040 """ 00041 if args or kwds: 00042 super(NavSBAS_SV, self).__init__(*args, **kwds) 00043 #message fields cannot be None, assign default values for those that are 00044 if self.svid is None: 00045 self.svid = 0 00046 if self.flags is None: 00047 self.flags = 0 00048 if self.udre is None: 00049 self.udre = 0 00050 if self.svSys is None: 00051 self.svSys = 0 00052 if self.svService is None: 00053 self.svService = 0 00054 if self.reserved1 is None: 00055 self.reserved1 = 0 00056 if self.prc is None: 00057 self.prc = 0 00058 if self.reserved2 is None: 00059 self.reserved2 = 0 00060 if self.ic is None: 00061 self.ic = 0 00062 else: 00063 self.svid = 0 00064 self.flags = 0 00065 self.udre = 0 00066 self.svSys = 0 00067 self.svService = 0 00068 self.reserved1 = 0 00069 self.prc = 0 00070 self.reserved2 = 0 00071 self.ic = 0 00072 00073 def _get_types(self): 00074 """ 00075 internal API method 00076 """ 00077 return self._slot_types 00078 00079 def serialize(self, buff): 00080 """ 00081 serialize message into buffer 00082 @param buff: buffer 00083 @type buff: StringIO 00084 """ 00085 try: 00086 _x = self 00087 buff.write(_struct_6BhHh.pack(_x.svid, _x.flags, _x.udre, _x.svSys, _x.svService, _x.reserved1, _x.prc, _x.reserved2, _x.ic)) 00088 except struct.error as se: self._check_types(se) 00089 except TypeError as te: self._check_types(te) 00090 00091 def deserialize(self, str): 00092 """ 00093 unpack serialized message in str into this message instance 00094 @param str: byte array of serialized message 00095 @type str: str 00096 """ 00097 try: 00098 end = 0 00099 _x = self 00100 start = end 00101 end += 12 00102 (_x.svid, _x.flags, _x.udre, _x.svSys, _x.svService, _x.reserved1, _x.prc, _x.reserved2, _x.ic,) = _struct_6BhHh.unpack(str[start:end]) 00103 return self 00104 except struct.error as e: 00105 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00106 00107 00108 def serialize_numpy(self, buff, numpy): 00109 """ 00110 serialize message with numpy array types into buffer 00111 @param buff: buffer 00112 @type buff: StringIO 00113 @param numpy: numpy python module 00114 @type numpy module 00115 """ 00116 try: 00117 _x = self 00118 buff.write(_struct_6BhHh.pack(_x.svid, _x.flags, _x.udre, _x.svSys, _x.svService, _x.reserved1, _x.prc, _x.reserved2, _x.ic)) 00119 except struct.error as se: self._check_types(se) 00120 except TypeError as te: self._check_types(te) 00121 00122 def deserialize_numpy(self, str, numpy): 00123 """ 00124 unpack serialized message in str into this message instance using numpy for array types 00125 @param str: byte array of serialized message 00126 @type str: str 00127 @param numpy: numpy python module 00128 @type numpy: module 00129 """ 00130 try: 00131 end = 0 00132 _x = self 00133 start = end 00134 end += 12 00135 (_x.svid, _x.flags, _x.udre, _x.svSys, _x.svService, _x.reserved1, _x.prc, _x.reserved2, _x.ic,) = _struct_6BhHh.unpack(str[start:end]) 00136 return self 00137 except struct.error as e: 00138 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00139 00140 _struct_I = roslib.message.struct_I 00141 _struct_6BhHh = struct.Struct("<6BhHh")