_AidingSensorIntegrationControl.py
Go to the documentation of this file.
00001 """autogenerated by genpy from applanix_msgs/AidingSensorIntegrationControl.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 
00008 class AidingSensorIntegrationControl(genpy.Message):
00009   _md5sum = "aa768b4fd931539b13e67337f33cf90c"
00010   _type = "applanix_msgs/AidingSensorIntegrationControl"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """# Msg 93
00013 uint16 transaction
00014 
00015 uint32 OVERRIDE_FORCE_PRIMARY_GNSS_VALID=1
00016 uint32 OVERRIDE_FORCE_PRIMARY_GNSS_INVALID=2
00017 uint32 OVERRIDE_FORCE_AUX_GNSS_VALID=4
00018 uint32 OVERRIDE_FORCE_AUX_GNSS_INVALID=8
00019 uint32 OVERRIDE_DISABLE_GAMS_HEADING_AIDING=16
00020 uint32 OVERRIDE_FORCE_DMI_VALID=32
00021 uint32 OVERRIDE_FORCE_DMI_INVALID=64
00022 uint32 OVERRIDE_DISABLE_YZ_VELOCITY_AIDING=128
00023 uint32 override
00024 
00025 """
00026   # Pseudo-constants
00027   OVERRIDE_FORCE_PRIMARY_GNSS_VALID = 1
00028   OVERRIDE_FORCE_PRIMARY_GNSS_INVALID = 2
00029   OVERRIDE_FORCE_AUX_GNSS_VALID = 4
00030   OVERRIDE_FORCE_AUX_GNSS_INVALID = 8
00031   OVERRIDE_DISABLE_GAMS_HEADING_AIDING = 16
00032   OVERRIDE_FORCE_DMI_VALID = 32
00033   OVERRIDE_FORCE_DMI_INVALID = 64
00034   OVERRIDE_DISABLE_YZ_VELOCITY_AIDING = 128
00035 
00036   __slots__ = ['transaction','override']
00037   _slot_types = ['uint16','uint32']
00038 
00039   def __init__(self, *args, **kwds):
00040     """
00041     Constructor. Any message fields that are implicitly/explicitly
00042     set to None will be assigned a default value. The recommend
00043     use is keyword arguments as this is more robust to future message
00044     changes.  You cannot mix in-order arguments and keyword arguments.
00045 
00046     The available fields are:
00047        transaction,override
00048 
00049     :param args: complete set of field values, in .msg order
00050     :param kwds: use keyword arguments corresponding to message field names
00051     to set specific fields.
00052     """
00053     if args or kwds:
00054       super(AidingSensorIntegrationControl, self).__init__(*args, **kwds)
00055       #message fields cannot be None, assign default values for those that are
00056       if self.transaction is None:
00057         self.transaction = 0
00058       if self.override is None:
00059         self.override = 0
00060     else:
00061       self.transaction = 0
00062       self.override = 0
00063 
00064   def _get_types(self):
00065     """
00066     internal API method
00067     """
00068     return self._slot_types
00069 
00070   def serialize(self, buff):
00071     """
00072     serialize message into buffer
00073     :param buff: buffer, ``StringIO``
00074     """
00075     try:
00076       _x = self
00077       buff.write(_struct_HI.pack(_x.transaction, _x.override))
00078     except struct.error as se: self._check_types(se)
00079     except TypeError as te: self._check_types(te)
00080 
00081   def deserialize(self, str):
00082     """
00083     unpack serialized message in str into this message instance
00084     :param str: byte array of serialized message, ``str``
00085     """
00086     try:
00087       end = 0
00088       _x = self
00089       start = end
00090       end += 6
00091       (_x.transaction, _x.override,) = _struct_HI.unpack(str[start:end])
00092       return self
00093     except struct.error as e:
00094       raise genpy.DeserializationError(e) #most likely buffer underfill
00095 
00096 
00097   def serialize_numpy(self, buff, numpy):
00098     """
00099     serialize message with numpy array types into buffer
00100     :param buff: buffer, ``StringIO``
00101     :param numpy: numpy python module
00102     """
00103     try:
00104       _x = self
00105       buff.write(_struct_HI.pack(_x.transaction, _x.override))
00106     except struct.error as se: self._check_types(se)
00107     except TypeError as te: self._check_types(te)
00108 
00109   def deserialize_numpy(self, str, numpy):
00110     """
00111     unpack serialized message in str into this message instance using numpy for array types
00112     :param str: byte array of serialized message, ``str``
00113     :param numpy: numpy python module
00114     """
00115     try:
00116       end = 0
00117       _x = self
00118       start = end
00119       end += 6
00120       (_x.transaction, _x.override,) = _struct_HI.unpack(str[start:end])
00121       return self
00122     except struct.error as e:
00123       raise genpy.DeserializationError(e) #most likely buffer underfill
00124 
00125 _struct_I = genpy.struct_I
00126 _struct_HI = struct.Struct("<HI")


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