$search
00001 """autogenerated by genmsg_py from NavigationPerformance.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import applanix_msgs.msg 00006 00007 class NavigationPerformance(roslib.message.Message): 00008 _md5sum = "87142b322e1d6228f4c064ddcf1697bc" 00009 _type = "applanix_msgs/NavigationPerformance" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """TimeDistance td 00012 00013 float32 north_pos_rms_err 00014 float32 east_pos_rms_err 00015 float32 down_pos_rms_err 00016 00017 float32 north_vel_rms_err 00018 float32 east_vel_rms_err 00019 float32 down_vel_rms_err 00020 00021 float32 roll_rms_err 00022 float32 pitch_rms_err 00023 float32 heading_rms_err 00024 00025 float32 err_ellipsoid_semi_major 00026 float32 err_ellipsoid_semi_minor 00027 float32 err_ellipsoid_orientation 00028 00029 ================================================================================ 00030 MSG: applanix_msgs/TimeDistance 00031 float64 time1 00032 float64 time2 00033 float64 distance 00034 uint8 time_types 00035 uint8 distance_type 00036 00037 """ 00038 __slots__ = ['td','north_pos_rms_err','east_pos_rms_err','down_pos_rms_err','north_vel_rms_err','east_vel_rms_err','down_vel_rms_err','roll_rms_err','pitch_rms_err','heading_rms_err','err_ellipsoid_semi_major','err_ellipsoid_semi_minor','err_ellipsoid_orientation'] 00039 _slot_types = ['applanix_msgs/TimeDistance','float32','float32','float32','float32','float32','float32','float32','float32','float32','float32','float32','float32'] 00040 00041 def __init__(self, *args, **kwds): 00042 """ 00043 Constructor. Any message fields that are implicitly/explicitly 00044 set to None will be assigned a default value. The recommend 00045 use is keyword arguments as this is more robust to future message 00046 changes. You cannot mix in-order arguments and keyword arguments. 00047 00048 The available fields are: 00049 td,north_pos_rms_err,east_pos_rms_err,down_pos_rms_err,north_vel_rms_err,east_vel_rms_err,down_vel_rms_err,roll_rms_err,pitch_rms_err,heading_rms_err,err_ellipsoid_semi_major,err_ellipsoid_semi_minor,err_ellipsoid_orientation 00050 00051 @param args: complete set of field values, in .msg order 00052 @param kwds: use keyword arguments corresponding to message field names 00053 to set specific fields. 00054 """ 00055 if args or kwds: 00056 super(NavigationPerformance, self).__init__(*args, **kwds) 00057 #message fields cannot be None, assign default values for those that are 00058 if self.td is None: 00059 self.td = applanix_msgs.msg.TimeDistance() 00060 if self.north_pos_rms_err is None: 00061 self.north_pos_rms_err = 0. 00062 if self.east_pos_rms_err is None: 00063 self.east_pos_rms_err = 0. 00064 if self.down_pos_rms_err is None: 00065 self.down_pos_rms_err = 0. 00066 if self.north_vel_rms_err is None: 00067 self.north_vel_rms_err = 0. 00068 if self.east_vel_rms_err is None: 00069 self.east_vel_rms_err = 0. 00070 if self.down_vel_rms_err is None: 00071 self.down_vel_rms_err = 0. 00072 if self.roll_rms_err is None: 00073 self.roll_rms_err = 0. 00074 if self.pitch_rms_err is None: 00075 self.pitch_rms_err = 0. 00076 if self.heading_rms_err is None: 00077 self.heading_rms_err = 0. 00078 if self.err_ellipsoid_semi_major is None: 00079 self.err_ellipsoid_semi_major = 0. 00080 if self.err_ellipsoid_semi_minor is None: 00081 self.err_ellipsoid_semi_minor = 0. 00082 if self.err_ellipsoid_orientation is None: 00083 self.err_ellipsoid_orientation = 0. 00084 else: 00085 self.td = applanix_msgs.msg.TimeDistance() 00086 self.north_pos_rms_err = 0. 00087 self.east_pos_rms_err = 0. 00088 self.down_pos_rms_err = 0. 00089 self.north_vel_rms_err = 0. 00090 self.east_vel_rms_err = 0. 00091 self.down_vel_rms_err = 0. 00092 self.roll_rms_err = 0. 00093 self.pitch_rms_err = 0. 00094 self.heading_rms_err = 0. 00095 self.err_ellipsoid_semi_major = 0. 00096 self.err_ellipsoid_semi_minor = 0. 00097 self.err_ellipsoid_orientation = 0. 00098 00099 def _get_types(self): 00100 """ 00101 internal API method 00102 """ 00103 return self._slot_types 00104 00105 def serialize(self, buff): 00106 """ 00107 serialize message into buffer 00108 @param buff: buffer 00109 @type buff: StringIO 00110 """ 00111 try: 00112 _x = self 00113 buff.write(_struct_3d2B12f.pack(_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.north_pos_rms_err, _x.east_pos_rms_err, _x.down_pos_rms_err, _x.north_vel_rms_err, _x.east_vel_rms_err, _x.down_vel_rms_err, _x.roll_rms_err, _x.pitch_rms_err, _x.heading_rms_err, _x.err_ellipsoid_semi_major, _x.err_ellipsoid_semi_minor, _x.err_ellipsoid_orientation)) 00114 except struct.error as se: self._check_types(se) 00115 except TypeError as te: self._check_types(te) 00116 00117 def deserialize(self, str): 00118 """ 00119 unpack serialized message in str into this message instance 00120 @param str: byte array of serialized message 00121 @type str: str 00122 """ 00123 try: 00124 if self.td is None: 00125 self.td = applanix_msgs.msg.TimeDistance() 00126 end = 0 00127 _x = self 00128 start = end 00129 end += 74 00130 (_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.north_pos_rms_err, _x.east_pos_rms_err, _x.down_pos_rms_err, _x.north_vel_rms_err, _x.east_vel_rms_err, _x.down_vel_rms_err, _x.roll_rms_err, _x.pitch_rms_err, _x.heading_rms_err, _x.err_ellipsoid_semi_major, _x.err_ellipsoid_semi_minor, _x.err_ellipsoid_orientation,) = _struct_3d2B12f.unpack(str[start:end]) 00131 return self 00132 except struct.error as e: 00133 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00134 00135 00136 def serialize_numpy(self, buff, numpy): 00137 """ 00138 serialize message with numpy array types into buffer 00139 @param buff: buffer 00140 @type buff: StringIO 00141 @param numpy: numpy python module 00142 @type numpy module 00143 """ 00144 try: 00145 _x = self 00146 buff.write(_struct_3d2B12f.pack(_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.north_pos_rms_err, _x.east_pos_rms_err, _x.down_pos_rms_err, _x.north_vel_rms_err, _x.east_vel_rms_err, _x.down_vel_rms_err, _x.roll_rms_err, _x.pitch_rms_err, _x.heading_rms_err, _x.err_ellipsoid_semi_major, _x.err_ellipsoid_semi_minor, _x.err_ellipsoid_orientation)) 00147 except struct.error as se: self._check_types(se) 00148 except TypeError as te: self._check_types(te) 00149 00150 def deserialize_numpy(self, str, numpy): 00151 """ 00152 unpack serialized message in str into this message instance using numpy for array types 00153 @param str: byte array of serialized message 00154 @type str: str 00155 @param numpy: numpy python module 00156 @type numpy: module 00157 """ 00158 try: 00159 if self.td is None: 00160 self.td = applanix_msgs.msg.TimeDistance() 00161 end = 0 00162 _x = self 00163 start = end 00164 end += 74 00165 (_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.north_pos_rms_err, _x.east_pos_rms_err, _x.down_pos_rms_err, _x.north_vel_rms_err, _x.east_vel_rms_err, _x.down_vel_rms_err, _x.roll_rms_err, _x.pitch_rms_err, _x.heading_rms_err, _x.err_ellipsoid_semi_major, _x.err_ellipsoid_semi_minor, _x.err_ellipsoid_orientation,) = _struct_3d2B12f.unpack(str[start:end]) 00166 return self 00167 except struct.error as e: 00168 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00169 00170 _struct_I = roslib.message.struct_I 00171 _struct_3d2B12f = struct.Struct("<3d2B12f")