$search
00001 """autogenerated by genmsg_py from TableCluster.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 import std_msgs.msg 00007 00008 class TableCluster(roslib.message.Message): 00009 _md5sum = "4ea47c48cb127cf14882b6238c7c7d6a" 00010 _type = "ias_table_msgs/TableCluster" 00011 _has_header = True #flag to mark the presence of a Header object 00012 _full_text = """Header header 00013 geometry_msgs/Point32 center 00014 geometry_msgs/Point32 min_bound 00015 geometry_msgs/Point32 max_bound 00016 00017 ================================================================================ 00018 MSG: std_msgs/Header 00019 # Standard metadata for higher-level stamped data types. 00020 # This is generally used to communicate timestamped data 00021 # in a particular coordinate frame. 00022 # 00023 # sequence ID: consecutively increasing ID 00024 uint32 seq 00025 #Two-integer timestamp that is expressed as: 00026 # * stamp.secs: seconds (stamp_secs) since epoch 00027 # * stamp.nsecs: nanoseconds since stamp_secs 00028 # time-handling sugar is provided by the client library 00029 time stamp 00030 #Frame this data is associated with 00031 # 0: no frame 00032 # 1: global frame 00033 string frame_id 00034 00035 ================================================================================ 00036 MSG: geometry_msgs/Point32 00037 # This contains the position of a point in free space(with 32 bits of precision). 00038 # It is recommeded to use Point wherever possible instead of Point32. 00039 # 00040 # This recommendation is to promote interoperability. 00041 # 00042 # This message is designed to take up less space when sending 00043 # lots of points at once, as in the case of a PointCloud. 00044 00045 float32 x 00046 float32 y 00047 float32 z 00048 """ 00049 __slots__ = ['header','center','min_bound','max_bound'] 00050 _slot_types = ['Header','geometry_msgs/Point32','geometry_msgs/Point32','geometry_msgs/Point32'] 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 header,center,min_bound,max_bound 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(TableCluster, self).__init__(*args, **kwds) 00068 #message fields cannot be None, assign default values for those that are 00069 if self.header is None: 00070 self.header = std_msgs.msg._Header.Header() 00071 if self.center is None: 00072 self.center = geometry_msgs.msg.Point32() 00073 if self.min_bound is None: 00074 self.min_bound = geometry_msgs.msg.Point32() 00075 if self.max_bound is None: 00076 self.max_bound = geometry_msgs.msg.Point32() 00077 else: 00078 self.header = std_msgs.msg._Header.Header() 00079 self.center = geometry_msgs.msg.Point32() 00080 self.min_bound = geometry_msgs.msg.Point32() 00081 self.max_bound = geometry_msgs.msg.Point32() 00082 00083 def _get_types(self): 00084 """ 00085 internal API method 00086 """ 00087 return self._slot_types 00088 00089 def serialize(self, buff): 00090 """ 00091 serialize message into buffer 00092 @param buff: buffer 00093 @type buff: StringIO 00094 """ 00095 try: 00096 _x = self 00097 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00098 _x = self.header.frame_id 00099 length = len(_x) 00100 buff.write(struct.pack('<I%ss'%length, length, _x)) 00101 _x = self 00102 buff.write(_struct_9f.pack(_x.center.x, _x.center.y, _x.center.z, _x.min_bound.x, _x.min_bound.y, _x.min_bound.z, _x.max_bound.x, _x.max_bound.y, _x.max_bound.z)) 00103 except struct.error as se: self._check_types(se) 00104 except TypeError as te: self._check_types(te) 00105 00106 def deserialize(self, str): 00107 """ 00108 unpack serialized message in str into this message instance 00109 @param str: byte array of serialized message 00110 @type str: str 00111 """ 00112 try: 00113 if self.header is None: 00114 self.header = std_msgs.msg._Header.Header() 00115 if self.center is None: 00116 self.center = geometry_msgs.msg.Point32() 00117 if self.min_bound is None: 00118 self.min_bound = geometry_msgs.msg.Point32() 00119 if self.max_bound is None: 00120 self.max_bound = geometry_msgs.msg.Point32() 00121 end = 0 00122 _x = self 00123 start = end 00124 end += 12 00125 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00126 start = end 00127 end += 4 00128 (length,) = _struct_I.unpack(str[start:end]) 00129 start = end 00130 end += length 00131 self.header.frame_id = str[start:end] 00132 _x = self 00133 start = end 00134 end += 36 00135 (_x.center.x, _x.center.y, _x.center.z, _x.min_bound.x, _x.min_bound.y, _x.min_bound.z, _x.max_bound.x, _x.max_bound.y, _x.max_bound.z,) = _struct_9f.unpack(str[start:end]) 00136 return self 00137 except struct.error as e: 00138 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00139 00140 00141 def serialize_numpy(self, buff, numpy): 00142 """ 00143 serialize message with numpy array types into buffer 00144 @param buff: buffer 00145 @type buff: StringIO 00146 @param numpy: numpy python module 00147 @type numpy module 00148 """ 00149 try: 00150 _x = self 00151 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00152 _x = self.header.frame_id 00153 length = len(_x) 00154 buff.write(struct.pack('<I%ss'%length, length, _x)) 00155 _x = self 00156 buff.write(_struct_9f.pack(_x.center.x, _x.center.y, _x.center.z, _x.min_bound.x, _x.min_bound.y, _x.min_bound.z, _x.max_bound.x, _x.max_bound.y, _x.max_bound.z)) 00157 except struct.error as se: self._check_types(se) 00158 except TypeError as te: self._check_types(te) 00159 00160 def deserialize_numpy(self, str, numpy): 00161 """ 00162 unpack serialized message in str into this message instance using numpy for array types 00163 @param str: byte array of serialized message 00164 @type str: str 00165 @param numpy: numpy python module 00166 @type numpy: module 00167 """ 00168 try: 00169 if self.header is None: 00170 self.header = std_msgs.msg._Header.Header() 00171 if self.center is None: 00172 self.center = geometry_msgs.msg.Point32() 00173 if self.min_bound is None: 00174 self.min_bound = geometry_msgs.msg.Point32() 00175 if self.max_bound is None: 00176 self.max_bound = geometry_msgs.msg.Point32() 00177 end = 0 00178 _x = self 00179 start = end 00180 end += 12 00181 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00182 start = end 00183 end += 4 00184 (length,) = _struct_I.unpack(str[start:end]) 00185 start = end 00186 end += length 00187 self.header.frame_id = str[start:end] 00188 _x = self 00189 start = end 00190 end += 36 00191 (_x.center.x, _x.center.y, _x.center.z, _x.min_bound.x, _x.min_bound.y, _x.min_bound.z, _x.max_bound.x, _x.max_bound.y, _x.max_bound.z,) = _struct_9f.unpack(str[start:end]) 00192 return self 00193 except struct.error as e: 00194 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00195 00196 _struct_I = roslib.message.struct_I 00197 _struct_3I = struct.Struct("<3I") 00198 _struct_9f = struct.Struct("<9f")