$search
00001 """autogenerated by genmsg_py from GAMSParams.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 00007 class GAMSParams(roslib.message.Message): 00008 _md5sum = "8dc87272f9e4678c71c9588bfa987256" 00009 _type = "applanix_msgs/GAMSParams" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """# Msg 21 00012 uint16 transaction 00013 00014 float32 antenna_separation 00015 00016 geometry_msgs/Point32 baseline_vector 00017 float32 max_heading_error_rms 00018 float32 heading_correction 00019 00020 ================================================================================ 00021 MSG: geometry_msgs/Point32 00022 # This contains the position of a point in free space(with 32 bits of precision). 00023 # It is recommeded to use Point wherever possible instead of Point32. 00024 # 00025 # This recommendation is to promote interoperability. 00026 # 00027 # This message is designed to take up less space when sending 00028 # lots of points at once, as in the case of a PointCloud. 00029 00030 float32 x 00031 float32 y 00032 float32 z 00033 """ 00034 __slots__ = ['transaction','antenna_separation','baseline_vector','max_heading_error_rms','heading_correction'] 00035 _slot_types = ['uint16','float32','geometry_msgs/Point32','float32','float32'] 00036 00037 def __init__(self, *args, **kwds): 00038 """ 00039 Constructor. Any message fields that are implicitly/explicitly 00040 set to None will be assigned a default value. The recommend 00041 use is keyword arguments as this is more robust to future message 00042 changes. You cannot mix in-order arguments and keyword arguments. 00043 00044 The available fields are: 00045 transaction,antenna_separation,baseline_vector,max_heading_error_rms,heading_correction 00046 00047 @param args: complete set of field values, in .msg order 00048 @param kwds: use keyword arguments corresponding to message field names 00049 to set specific fields. 00050 """ 00051 if args or kwds: 00052 super(GAMSParams, self).__init__(*args, **kwds) 00053 #message fields cannot be None, assign default values for those that are 00054 if self.transaction is None: 00055 self.transaction = 0 00056 if self.antenna_separation is None: 00057 self.antenna_separation = 0. 00058 if self.baseline_vector is None: 00059 self.baseline_vector = geometry_msgs.msg.Point32() 00060 if self.max_heading_error_rms is None: 00061 self.max_heading_error_rms = 0. 00062 if self.heading_correction is None: 00063 self.heading_correction = 0. 00064 else: 00065 self.transaction = 0 00066 self.antenna_separation = 0. 00067 self.baseline_vector = geometry_msgs.msg.Point32() 00068 self.max_heading_error_rms = 0. 00069 self.heading_correction = 0. 00070 00071 def _get_types(self): 00072 """ 00073 internal API method 00074 """ 00075 return self._slot_types 00076 00077 def serialize(self, buff): 00078 """ 00079 serialize message into buffer 00080 @param buff: buffer 00081 @type buff: StringIO 00082 """ 00083 try: 00084 _x = self 00085 buff.write(_struct_H6f.pack(_x.transaction, _x.antenna_separation, _x.baseline_vector.x, _x.baseline_vector.y, _x.baseline_vector.z, _x.max_heading_error_rms, _x.heading_correction)) 00086 except struct.error as se: self._check_types(se) 00087 except TypeError as te: self._check_types(te) 00088 00089 def deserialize(self, str): 00090 """ 00091 unpack serialized message in str into this message instance 00092 @param str: byte array of serialized message 00093 @type str: str 00094 """ 00095 try: 00096 if self.baseline_vector is None: 00097 self.baseline_vector = geometry_msgs.msg.Point32() 00098 end = 0 00099 _x = self 00100 start = end 00101 end += 26 00102 (_x.transaction, _x.antenna_separation, _x.baseline_vector.x, _x.baseline_vector.y, _x.baseline_vector.z, _x.max_heading_error_rms, _x.heading_correction,) = _struct_H6f.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_H6f.pack(_x.transaction, _x.antenna_separation, _x.baseline_vector.x, _x.baseline_vector.y, _x.baseline_vector.z, _x.max_heading_error_rms, _x.heading_correction)) 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 if self.baseline_vector is None: 00132 self.baseline_vector = geometry_msgs.msg.Point32() 00133 end = 0 00134 _x = self 00135 start = end 00136 end += 26 00137 (_x.transaction, _x.antenna_separation, _x.baseline_vector.x, _x.baseline_vector.y, _x.baseline_vector.z, _x.max_heading_error_rms, _x.heading_correction,) = _struct_H6f.unpack(str[start:end]) 00138 return self 00139 except struct.error as e: 00140 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00141 00142 _struct_I = roslib.message.struct_I 00143 _struct_H6f = struct.Struct("<H6f")