$search
00001 """autogenerated by genmsg_py from AidingSensorParams.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 00007 class AidingSensorParams(roslib.message.Message): 00008 _md5sum = "c5f8cdbc1fbfdcb4567e70396891f001" 00009 _type = "applanix_msgs/AidingSensorParams" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """# Msg 22 00012 uint16 transaction 00013 00014 float32 dmi_scale_factor 00015 geometry_msgs/Point32 dmi_lever_arm 00016 00017 float32 reserved1 00018 float32 reserved2 00019 float32 reserved3 00020 float32 reserved5 00021 float32 reserved6 00022 float32 reserved7 00023 00024 ================================================================================ 00025 MSG: geometry_msgs/Point32 00026 # This contains the position of a point in free space(with 32 bits of precision). 00027 # It is recommeded to use Point wherever possible instead of Point32. 00028 # 00029 # This recommendation is to promote interoperability. 00030 # 00031 # This message is designed to take up less space when sending 00032 # lots of points at once, as in the case of a PointCloud. 00033 00034 float32 x 00035 float32 y 00036 float32 z 00037 """ 00038 __slots__ = ['transaction','dmi_scale_factor','dmi_lever_arm','reserved1','reserved2','reserved3','reserved5','reserved6','reserved7'] 00039 _slot_types = ['uint16','float32','geometry_msgs/Point32','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 transaction,dmi_scale_factor,dmi_lever_arm,reserved1,reserved2,reserved3,reserved5,reserved6,reserved7 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(AidingSensorParams, self).__init__(*args, **kwds) 00057 #message fields cannot be None, assign default values for those that are 00058 if self.transaction is None: 00059 self.transaction = 0 00060 if self.dmi_scale_factor is None: 00061 self.dmi_scale_factor = 0. 00062 if self.dmi_lever_arm is None: 00063 self.dmi_lever_arm = geometry_msgs.msg.Point32() 00064 if self.reserved1 is None: 00065 self.reserved1 = 0. 00066 if self.reserved2 is None: 00067 self.reserved2 = 0. 00068 if self.reserved3 is None: 00069 self.reserved3 = 0. 00070 if self.reserved5 is None: 00071 self.reserved5 = 0. 00072 if self.reserved6 is None: 00073 self.reserved6 = 0. 00074 if self.reserved7 is None: 00075 self.reserved7 = 0. 00076 else: 00077 self.transaction = 0 00078 self.dmi_scale_factor = 0. 00079 self.dmi_lever_arm = geometry_msgs.msg.Point32() 00080 self.reserved1 = 0. 00081 self.reserved2 = 0. 00082 self.reserved3 = 0. 00083 self.reserved5 = 0. 00084 self.reserved6 = 0. 00085 self.reserved7 = 0. 00086 00087 def _get_types(self): 00088 """ 00089 internal API method 00090 """ 00091 return self._slot_types 00092 00093 def serialize(self, buff): 00094 """ 00095 serialize message into buffer 00096 @param buff: buffer 00097 @type buff: StringIO 00098 """ 00099 try: 00100 _x = self 00101 buff.write(_struct_H10f.pack(_x.transaction, _x.dmi_scale_factor, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.reserved1, _x.reserved2, _x.reserved3, _x.reserved5, _x.reserved6, _x.reserved7)) 00102 except struct.error as se: self._check_types(se) 00103 except TypeError as te: self._check_types(te) 00104 00105 def deserialize(self, str): 00106 """ 00107 unpack serialized message in str into this message instance 00108 @param str: byte array of serialized message 00109 @type str: str 00110 """ 00111 try: 00112 if self.dmi_lever_arm is None: 00113 self.dmi_lever_arm = geometry_msgs.msg.Point32() 00114 end = 0 00115 _x = self 00116 start = end 00117 end += 42 00118 (_x.transaction, _x.dmi_scale_factor, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.reserved1, _x.reserved2, _x.reserved3, _x.reserved5, _x.reserved6, _x.reserved7,) = _struct_H10f.unpack(str[start:end]) 00119 return self 00120 except struct.error as e: 00121 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00122 00123 00124 def serialize_numpy(self, buff, numpy): 00125 """ 00126 serialize message with numpy array types into buffer 00127 @param buff: buffer 00128 @type buff: StringIO 00129 @param numpy: numpy python module 00130 @type numpy module 00131 """ 00132 try: 00133 _x = self 00134 buff.write(_struct_H10f.pack(_x.transaction, _x.dmi_scale_factor, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.reserved1, _x.reserved2, _x.reserved3, _x.reserved5, _x.reserved6, _x.reserved7)) 00135 except struct.error as se: self._check_types(se) 00136 except TypeError as te: self._check_types(te) 00137 00138 def deserialize_numpy(self, str, numpy): 00139 """ 00140 unpack serialized message in str into this message instance using numpy for array types 00141 @param str: byte array of serialized message 00142 @type str: str 00143 @param numpy: numpy python module 00144 @type numpy: module 00145 """ 00146 try: 00147 if self.dmi_lever_arm is None: 00148 self.dmi_lever_arm = geometry_msgs.msg.Point32() 00149 end = 0 00150 _x = self 00151 start = end 00152 end += 42 00153 (_x.transaction, _x.dmi_scale_factor, _x.dmi_lever_arm.x, _x.dmi_lever_arm.y, _x.dmi_lever_arm.z, _x.reserved1, _x.reserved2, _x.reserved3, _x.reserved5, _x.reserved6, _x.reserved7,) = _struct_H10f.unpack(str[start:end]) 00154 return self 00155 except struct.error as e: 00156 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00157 00158 _struct_I = roslib.message.struct_I 00159 _struct_H10f = struct.Struct("<H10f")