$search
00001 """autogenerated by genmsg_py from GeneralParams.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 00007 class GeneralParams(roslib.message.Message): 00008 _md5sum = "dd32351725c9c39d1131c0be17b24a7b" 00009 _type = "applanix_msgs/GeneralParams" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """# Msg 20 00012 uint16 transaction 00013 00014 uint8 time_types 00015 uint8 distance_type 00016 uint8 autostart 00017 00018 geometry_msgs/Point32 imu_lever_arm 00019 geometry_msgs/Point32 primary_gnss_lever_arm 00020 geometry_msgs/Point32 aux_1_gnss_lever_arm 00021 geometry_msgs/Point32 aux_2_gnss_lever_arm 00022 geometry_msgs/Point32 imu_mounting_angle 00023 geometry_msgs/Point32 ref_mounting_angle 00024 00025 uint8 MULTIPATH_LOW=0 00026 uint8 MULTIPATH_MEDIUM=1 00027 uint8 MULTIPATH_HIGH=2 00028 uint8 multipath 00029 00030 ================================================================================ 00031 MSG: geometry_msgs/Point32 00032 # This contains the position of a point in free space(with 32 bits of precision). 00033 # It is recommeded to use Point wherever possible instead of Point32. 00034 # 00035 # This recommendation is to promote interoperability. 00036 # 00037 # This message is designed to take up less space when sending 00038 # lots of points at once, as in the case of a PointCloud. 00039 00040 float32 x 00041 float32 y 00042 float32 z 00043 """ 00044 # Pseudo-constants 00045 MULTIPATH_LOW = 0 00046 MULTIPATH_MEDIUM = 1 00047 MULTIPATH_HIGH = 2 00048 00049 __slots__ = ['transaction','time_types','distance_type','autostart','imu_lever_arm','primary_gnss_lever_arm','aux_1_gnss_lever_arm','aux_2_gnss_lever_arm','imu_mounting_angle','ref_mounting_angle','multipath'] 00050 _slot_types = ['uint16','uint8','uint8','uint8','geometry_msgs/Point32','geometry_msgs/Point32','geometry_msgs/Point32','geometry_msgs/Point32','geometry_msgs/Point32','geometry_msgs/Point32','uint8'] 00051 00052 def __init__(self, *args, **kwds): 00053 """ 00054 Constructor. Any message fields that are implicitly/explicitly 00055 set to None will be assigned a default value. The recommend 00056 use is keyword arguments as this is more robust to future message 00057 changes. You cannot mix in-order arguments and keyword arguments. 00058 00059 The available fields are: 00060 transaction,time_types,distance_type,autostart,imu_lever_arm,primary_gnss_lever_arm,aux_1_gnss_lever_arm,aux_2_gnss_lever_arm,imu_mounting_angle,ref_mounting_angle,multipath 00061 00062 @param args: complete set of field values, in .msg order 00063 @param kwds: use keyword arguments corresponding to message field names 00064 to set specific fields. 00065 """ 00066 if args or kwds: 00067 super(GeneralParams, self).__init__(*args, **kwds) 00068 #message fields cannot be None, assign default values for those that are 00069 if self.transaction is None: 00070 self.transaction = 0 00071 if self.time_types is None: 00072 self.time_types = 0 00073 if self.distance_type is None: 00074 self.distance_type = 0 00075 if self.autostart is None: 00076 self.autostart = 0 00077 if self.imu_lever_arm is None: 00078 self.imu_lever_arm = geometry_msgs.msg.Point32() 00079 if self.primary_gnss_lever_arm is None: 00080 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32() 00081 if self.aux_1_gnss_lever_arm is None: 00082 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32() 00083 if self.aux_2_gnss_lever_arm is None: 00084 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32() 00085 if self.imu_mounting_angle is None: 00086 self.imu_mounting_angle = geometry_msgs.msg.Point32() 00087 if self.ref_mounting_angle is None: 00088 self.ref_mounting_angle = geometry_msgs.msg.Point32() 00089 if self.multipath is None: 00090 self.multipath = 0 00091 else: 00092 self.transaction = 0 00093 self.time_types = 0 00094 self.distance_type = 0 00095 self.autostart = 0 00096 self.imu_lever_arm = geometry_msgs.msg.Point32() 00097 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32() 00098 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32() 00099 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32() 00100 self.imu_mounting_angle = geometry_msgs.msg.Point32() 00101 self.ref_mounting_angle = geometry_msgs.msg.Point32() 00102 self.multipath = 0 00103 00104 def _get_types(self): 00105 """ 00106 internal API method 00107 """ 00108 return self._slot_types 00109 00110 def serialize(self, buff): 00111 """ 00112 serialize message into buffer 00113 @param buff: buffer 00114 @type buff: StringIO 00115 """ 00116 try: 00117 _x = self 00118 buff.write(_struct_H3B18fB.pack(_x.transaction, _x.time_types, _x.distance_type, _x.autostart, _x.imu_lever_arm.x, _x.imu_lever_arm.y, _x.imu_lever_arm.z, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.imu_mounting_angle.x, _x.imu_mounting_angle.y, _x.imu_mounting_angle.z, _x.ref_mounting_angle.x, _x.ref_mounting_angle.y, _x.ref_mounting_angle.z, _x.multipath)) 00119 except struct.error as se: self._check_types(se) 00120 except TypeError as te: self._check_types(te) 00121 00122 def deserialize(self, str): 00123 """ 00124 unpack serialized message in str into this message instance 00125 @param str: byte array of serialized message 00126 @type str: str 00127 """ 00128 try: 00129 if self.imu_lever_arm is None: 00130 self.imu_lever_arm = geometry_msgs.msg.Point32() 00131 if self.primary_gnss_lever_arm is None: 00132 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32() 00133 if self.aux_1_gnss_lever_arm is None: 00134 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32() 00135 if self.aux_2_gnss_lever_arm is None: 00136 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32() 00137 if self.imu_mounting_angle is None: 00138 self.imu_mounting_angle = geometry_msgs.msg.Point32() 00139 if self.ref_mounting_angle is None: 00140 self.ref_mounting_angle = geometry_msgs.msg.Point32() 00141 end = 0 00142 _x = self 00143 start = end 00144 end += 78 00145 (_x.transaction, _x.time_types, _x.distance_type, _x.autostart, _x.imu_lever_arm.x, _x.imu_lever_arm.y, _x.imu_lever_arm.z, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.imu_mounting_angle.x, _x.imu_mounting_angle.y, _x.imu_mounting_angle.z, _x.ref_mounting_angle.x, _x.ref_mounting_angle.y, _x.ref_mounting_angle.z, _x.multipath,) = _struct_H3B18fB.unpack(str[start:end]) 00146 return self 00147 except struct.error as e: 00148 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00149 00150 00151 def serialize_numpy(self, buff, numpy): 00152 """ 00153 serialize message with numpy array types into buffer 00154 @param buff: buffer 00155 @type buff: StringIO 00156 @param numpy: numpy python module 00157 @type numpy module 00158 """ 00159 try: 00160 _x = self 00161 buff.write(_struct_H3B18fB.pack(_x.transaction, _x.time_types, _x.distance_type, _x.autostart, _x.imu_lever_arm.x, _x.imu_lever_arm.y, _x.imu_lever_arm.z, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.imu_mounting_angle.x, _x.imu_mounting_angle.y, _x.imu_mounting_angle.z, _x.ref_mounting_angle.x, _x.ref_mounting_angle.y, _x.ref_mounting_angle.z, _x.multipath)) 00162 except struct.error as se: self._check_types(se) 00163 except TypeError as te: self._check_types(te) 00164 00165 def deserialize_numpy(self, str, numpy): 00166 """ 00167 unpack serialized message in str into this message instance using numpy for array types 00168 @param str: byte array of serialized message 00169 @type str: str 00170 @param numpy: numpy python module 00171 @type numpy: module 00172 """ 00173 try: 00174 if self.imu_lever_arm is None: 00175 self.imu_lever_arm = geometry_msgs.msg.Point32() 00176 if self.primary_gnss_lever_arm is None: 00177 self.primary_gnss_lever_arm = geometry_msgs.msg.Point32() 00178 if self.aux_1_gnss_lever_arm is None: 00179 self.aux_1_gnss_lever_arm = geometry_msgs.msg.Point32() 00180 if self.aux_2_gnss_lever_arm is None: 00181 self.aux_2_gnss_lever_arm = geometry_msgs.msg.Point32() 00182 if self.imu_mounting_angle is None: 00183 self.imu_mounting_angle = geometry_msgs.msg.Point32() 00184 if self.ref_mounting_angle is None: 00185 self.ref_mounting_angle = geometry_msgs.msg.Point32() 00186 end = 0 00187 _x = self 00188 start = end 00189 end += 78 00190 (_x.transaction, _x.time_types, _x.distance_type, _x.autostart, _x.imu_lever_arm.x, _x.imu_lever_arm.y, _x.imu_lever_arm.z, _x.primary_gnss_lever_arm.x, _x.primary_gnss_lever_arm.y, _x.primary_gnss_lever_arm.z, _x.aux_1_gnss_lever_arm.x, _x.aux_1_gnss_lever_arm.y, _x.aux_1_gnss_lever_arm.z, _x.aux_2_gnss_lever_arm.x, _x.aux_2_gnss_lever_arm.y, _x.aux_2_gnss_lever_arm.z, _x.imu_mounting_angle.x, _x.imu_mounting_angle.y, _x.imu_mounting_angle.z, _x.ref_mounting_angle.x, _x.ref_mounting_angle.y, _x.ref_mounting_angle.z, _x.multipath,) = _struct_H3B18fB.unpack(str[start:end]) 00191 return self 00192 except struct.error as e: 00193 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00194 00195 _struct_I = roslib.message.struct_I 00196 _struct_H3B18fB = struct.Struct("<H3B18fB")