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


applanix_msgs
Author(s): Mike Purvis
autogenerated on Thu Jan 2 2014 11:04:51