$search
00001 """autogenerated by genmsg_py from NavigationSolution.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import applanix_msgs.msg 00006 00007 class NavigationSolution(roslib.message.Message): 00008 _md5sum = "5bd9b6a0dde762b9354121b78d050654" 00009 _type = "applanix_msgs/NavigationSolution" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """TimeDistance td 00012 00013 # Position in degrees 00014 float64 latitude 00015 float64 longitude 00016 00017 # Meters 00018 float64 altitude 00019 00020 # Meters/second 00021 float32 north_vel 00022 float32 east_vel 00023 float32 down_vel 00024 00025 # Degrees 00026 float64 roll 00027 float64 pitch 00028 float64 heading 00029 float64 wander_angle 00030 float32 track_angle 00031 00032 # Meters/second 00033 float32 speed 00034 00035 # Degrees/second 00036 float32 ang_rate_long 00037 float32 ang_rate_trans 00038 float32 ang_rate_down 00039 00040 # Meters/second^2 00041 float32 long_accel 00042 float32 trans_accel 00043 float32 down_accel 00044 00045 uint8 ALIGNMENT_FULL_NAVIGATION=0 00046 uint8 ALIGNMENT_FINE_ALIGNMENT_ACTIVE=1 00047 uint8 ALIGNMENT_GC_CHI_2=2 00048 uint8 ALIGNMENT_PC_CHI_2=3 00049 uint8 ALIGNMENT_GC_CHI_1=4 00050 uint8 ALIGNMENT_PC_CHI_1=5 00051 uint8 ALIGNMENT_COARSE_LEVELING=6 00052 uint8 ALIGNMENT_INITIAL_SOLUTION=7 00053 uint8 ALIGNMENT_NO_VALID_SOLUTION=8 00054 uint8 alignment_status 00055 00056 ================================================================================ 00057 MSG: applanix_msgs/TimeDistance 00058 float64 time1 00059 float64 time2 00060 float64 distance 00061 uint8 time_types 00062 uint8 distance_type 00063 00064 """ 00065 # Pseudo-constants 00066 ALIGNMENT_FULL_NAVIGATION = 0 00067 ALIGNMENT_FINE_ALIGNMENT_ACTIVE = 1 00068 ALIGNMENT_GC_CHI_2 = 2 00069 ALIGNMENT_PC_CHI_2 = 3 00070 ALIGNMENT_GC_CHI_1 = 4 00071 ALIGNMENT_PC_CHI_1 = 5 00072 ALIGNMENT_COARSE_LEVELING = 6 00073 ALIGNMENT_INITIAL_SOLUTION = 7 00074 ALIGNMENT_NO_VALID_SOLUTION = 8 00075 00076 __slots__ = ['td','latitude','longitude','altitude','north_vel','east_vel','down_vel','roll','pitch','heading','wander_angle','track_angle','speed','ang_rate_long','ang_rate_trans','ang_rate_down','long_accel','trans_accel','down_accel','alignment_status'] 00077 _slot_types = ['applanix_msgs/TimeDistance','float64','float64','float64','float32','float32','float32','float64','float64','float64','float64','float32','float32','float32','float32','float32','float32','float32','float32','uint8'] 00078 00079 def __init__(self, *args, **kwds): 00080 """ 00081 Constructor. Any message fields that are implicitly/explicitly 00082 set to None will be assigned a default value. The recommend 00083 use is keyword arguments as this is more robust to future message 00084 changes. You cannot mix in-order arguments and keyword arguments. 00085 00086 The available fields are: 00087 td,latitude,longitude,altitude,north_vel,east_vel,down_vel,roll,pitch,heading,wander_angle,track_angle,speed,ang_rate_long,ang_rate_trans,ang_rate_down,long_accel,trans_accel,down_accel,alignment_status 00088 00089 @param args: complete set of field values, in .msg order 00090 @param kwds: use keyword arguments corresponding to message field names 00091 to set specific fields. 00092 """ 00093 if args or kwds: 00094 super(NavigationSolution, self).__init__(*args, **kwds) 00095 #message fields cannot be None, assign default values for those that are 00096 if self.td is None: 00097 self.td = applanix_msgs.msg.TimeDistance() 00098 if self.latitude is None: 00099 self.latitude = 0. 00100 if self.longitude is None: 00101 self.longitude = 0. 00102 if self.altitude is None: 00103 self.altitude = 0. 00104 if self.north_vel is None: 00105 self.north_vel = 0. 00106 if self.east_vel is None: 00107 self.east_vel = 0. 00108 if self.down_vel is None: 00109 self.down_vel = 0. 00110 if self.roll is None: 00111 self.roll = 0. 00112 if self.pitch is None: 00113 self.pitch = 0. 00114 if self.heading is None: 00115 self.heading = 0. 00116 if self.wander_angle is None: 00117 self.wander_angle = 0. 00118 if self.track_angle is None: 00119 self.track_angle = 0. 00120 if self.speed is None: 00121 self.speed = 0. 00122 if self.ang_rate_long is None: 00123 self.ang_rate_long = 0. 00124 if self.ang_rate_trans is None: 00125 self.ang_rate_trans = 0. 00126 if self.ang_rate_down is None: 00127 self.ang_rate_down = 0. 00128 if self.long_accel is None: 00129 self.long_accel = 0. 00130 if self.trans_accel is None: 00131 self.trans_accel = 0. 00132 if self.down_accel is None: 00133 self.down_accel = 0. 00134 if self.alignment_status is None: 00135 self.alignment_status = 0 00136 else: 00137 self.td = applanix_msgs.msg.TimeDistance() 00138 self.latitude = 0. 00139 self.longitude = 0. 00140 self.altitude = 0. 00141 self.north_vel = 0. 00142 self.east_vel = 0. 00143 self.down_vel = 0. 00144 self.roll = 0. 00145 self.pitch = 0. 00146 self.heading = 0. 00147 self.wander_angle = 0. 00148 self.track_angle = 0. 00149 self.speed = 0. 00150 self.ang_rate_long = 0. 00151 self.ang_rate_trans = 0. 00152 self.ang_rate_down = 0. 00153 self.long_accel = 0. 00154 self.trans_accel = 0. 00155 self.down_accel = 0. 00156 self.alignment_status = 0 00157 00158 def _get_types(self): 00159 """ 00160 internal API method 00161 """ 00162 return self._slot_types 00163 00164 def serialize(self, buff): 00165 """ 00166 serialize message into buffer 00167 @param buff: buffer 00168 @type buff: StringIO 00169 """ 00170 try: 00171 _x = self 00172 buff.write(_struct_3d2B3d3f4d8fB.pack(_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.latitude, _x.longitude, _x.altitude, _x.north_vel, _x.east_vel, _x.down_vel, _x.roll, _x.pitch, _x.heading, _x.wander_angle, _x.track_angle, _x.speed, _x.ang_rate_long, _x.ang_rate_trans, _x.ang_rate_down, _x.long_accel, _x.trans_accel, _x.down_accel, _x.alignment_status)) 00173 except struct.error as se: self._check_types(se) 00174 except TypeError as te: self._check_types(te) 00175 00176 def deserialize(self, str): 00177 """ 00178 unpack serialized message in str into this message instance 00179 @param str: byte array of serialized message 00180 @type str: str 00181 """ 00182 try: 00183 if self.td is None: 00184 self.td = applanix_msgs.msg.TimeDistance() 00185 end = 0 00186 _x = self 00187 start = end 00188 end += 127 00189 (_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.latitude, _x.longitude, _x.altitude, _x.north_vel, _x.east_vel, _x.down_vel, _x.roll, _x.pitch, _x.heading, _x.wander_angle, _x.track_angle, _x.speed, _x.ang_rate_long, _x.ang_rate_trans, _x.ang_rate_down, _x.long_accel, _x.trans_accel, _x.down_accel, _x.alignment_status,) = _struct_3d2B3d3f4d8fB.unpack(str[start:end]) 00190 return self 00191 except struct.error as e: 00192 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00193 00194 00195 def serialize_numpy(self, buff, numpy): 00196 """ 00197 serialize message with numpy array types into buffer 00198 @param buff: buffer 00199 @type buff: StringIO 00200 @param numpy: numpy python module 00201 @type numpy module 00202 """ 00203 try: 00204 _x = self 00205 buff.write(_struct_3d2B3d3f4d8fB.pack(_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.latitude, _x.longitude, _x.altitude, _x.north_vel, _x.east_vel, _x.down_vel, _x.roll, _x.pitch, _x.heading, _x.wander_angle, _x.track_angle, _x.speed, _x.ang_rate_long, _x.ang_rate_trans, _x.ang_rate_down, _x.long_accel, _x.trans_accel, _x.down_accel, _x.alignment_status)) 00206 except struct.error as se: self._check_types(se) 00207 except TypeError as te: self._check_types(te) 00208 00209 def deserialize_numpy(self, str, numpy): 00210 """ 00211 unpack serialized message in str into this message instance using numpy for array types 00212 @param str: byte array of serialized message 00213 @type str: str 00214 @param numpy: numpy python module 00215 @type numpy: module 00216 """ 00217 try: 00218 if self.td is None: 00219 self.td = applanix_msgs.msg.TimeDistance() 00220 end = 0 00221 _x = self 00222 start = end 00223 end += 127 00224 (_x.td.time1, _x.td.time2, _x.td.distance, _x.td.time_types, _x.td.distance_type, _x.latitude, _x.longitude, _x.altitude, _x.north_vel, _x.east_vel, _x.down_vel, _x.roll, _x.pitch, _x.heading, _x.wander_angle, _x.track_angle, _x.speed, _x.ang_rate_long, _x.ang_rate_trans, _x.ang_rate_down, _x.long_accel, _x.trans_accel, _x.down_accel, _x.alignment_status,) = _struct_3d2B3d3f4d8fB.unpack(str[start:end]) 00225 return self 00226 except struct.error as e: 00227 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00228 00229 _struct_I = roslib.message.struct_I 00230 _struct_3d2B3d3f4d8fB = struct.Struct("<3d2B3d3f4d8fB")