$search
00001 """autogenerated by genmsg_py from normals_vfh_db_estimatorRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 import std_msgs.msg 00007 import sensor_msgs.msg 00008 00009 class normals_vfh_db_estimatorRequest(roslib.message.Message): 00010 _md5sum = "49ba0e431d9d565e2e6ad06c9ac04d5f" 00011 _type = "vfh_recognizer_db/normals_vfh_db_estimatorRequest" 00012 _has_header = False #flag to mark the presence of a Header object 00013 _full_text = """sensor_msgs/PointCloud2 view 00014 geometry_msgs/Pose transform 00015 std_msgs/Int32 model_id 00016 std_msgs/Int32 iteration 00017 00018 ================================================================================ 00019 MSG: sensor_msgs/PointCloud2 00020 # This message holds a collection of N-dimensional points, which may 00021 # contain additional information such as normals, intensity, etc. The 00022 # point data is stored as a binary blob, its layout described by the 00023 # contents of the "fields" array. 00024 00025 # The point cloud data may be organized 2d (image-like) or 1d 00026 # (unordered). Point clouds organized as 2d images may be produced by 00027 # camera depth sensors such as stereo or time-of-flight. 00028 00029 # Time of sensor data acquisition, and the coordinate frame ID (for 3d 00030 # points). 00031 Header header 00032 00033 # 2D structure of the point cloud. If the cloud is unordered, height is 00034 # 1 and width is the length of the point cloud. 00035 uint32 height 00036 uint32 width 00037 00038 # Describes the channels and their layout in the binary data blob. 00039 PointField[] fields 00040 00041 bool is_bigendian # Is this data bigendian? 00042 uint32 point_step # Length of a point in bytes 00043 uint32 row_step # Length of a row in bytes 00044 uint8[] data # Actual point data, size is (row_step*height) 00045 00046 bool is_dense # True if there are no invalid points 00047 00048 ================================================================================ 00049 MSG: std_msgs/Header 00050 # Standard metadata for higher-level stamped data types. 00051 # This is generally used to communicate timestamped data 00052 # in a particular coordinate frame. 00053 # 00054 # sequence ID: consecutively increasing ID 00055 uint32 seq 00056 #Two-integer timestamp that is expressed as: 00057 # * stamp.secs: seconds (stamp_secs) since epoch 00058 # * stamp.nsecs: nanoseconds since stamp_secs 00059 # time-handling sugar is provided by the client library 00060 time stamp 00061 #Frame this data is associated with 00062 # 0: no frame 00063 # 1: global frame 00064 string frame_id 00065 00066 ================================================================================ 00067 MSG: sensor_msgs/PointField 00068 # This message holds the description of one point entry in the 00069 # PointCloud2 message format. 00070 uint8 INT8 = 1 00071 uint8 UINT8 = 2 00072 uint8 INT16 = 3 00073 uint8 UINT16 = 4 00074 uint8 INT32 = 5 00075 uint8 UINT32 = 6 00076 uint8 FLOAT32 = 7 00077 uint8 FLOAT64 = 8 00078 00079 string name # Name of field 00080 uint32 offset # Offset from start of point struct 00081 uint8 datatype # Datatype enumeration, see above 00082 uint32 count # How many elements in the field 00083 00084 ================================================================================ 00085 MSG: geometry_msgs/Pose 00086 # A representation of pose in free space, composed of postion and orientation. 00087 Point position 00088 Quaternion orientation 00089 00090 ================================================================================ 00091 MSG: geometry_msgs/Point 00092 # This contains the position of a point in free space 00093 float64 x 00094 float64 y 00095 float64 z 00096 00097 ================================================================================ 00098 MSG: geometry_msgs/Quaternion 00099 # This represents an orientation in free space in quaternion form. 00100 00101 float64 x 00102 float64 y 00103 float64 z 00104 float64 w 00105 00106 ================================================================================ 00107 MSG: std_msgs/Int32 00108 int32 data 00109 """ 00110 __slots__ = ['view','transform','model_id','iteration'] 00111 _slot_types = ['sensor_msgs/PointCloud2','geometry_msgs/Pose','std_msgs/Int32','std_msgs/Int32'] 00112 00113 def __init__(self, *args, **kwds): 00114 """ 00115 Constructor. Any message fields that are implicitly/explicitly 00116 set to None will be assigned a default value. The recommend 00117 use is keyword arguments as this is more robust to future message 00118 changes. You cannot mix in-order arguments and keyword arguments. 00119 00120 The available fields are: 00121 view,transform,model_id,iteration 00122 00123 @param args: complete set of field values, in .msg order 00124 @param kwds: use keyword arguments corresponding to message field names 00125 to set specific fields. 00126 """ 00127 if args or kwds: 00128 super(normals_vfh_db_estimatorRequest, self).__init__(*args, **kwds) 00129 #message fields cannot be None, assign default values for those that are 00130 if self.view is None: 00131 self.view = sensor_msgs.msg.PointCloud2() 00132 if self.transform is None: 00133 self.transform = geometry_msgs.msg.Pose() 00134 if self.model_id is None: 00135 self.model_id = std_msgs.msg.Int32() 00136 if self.iteration is None: 00137 self.iteration = std_msgs.msg.Int32() 00138 else: 00139 self.view = sensor_msgs.msg.PointCloud2() 00140 self.transform = geometry_msgs.msg.Pose() 00141 self.model_id = std_msgs.msg.Int32() 00142 self.iteration = std_msgs.msg.Int32() 00143 00144 def _get_types(self): 00145 """ 00146 internal API method 00147 """ 00148 return self._slot_types 00149 00150 def serialize(self, buff): 00151 """ 00152 serialize message into buffer 00153 @param buff: buffer 00154 @type buff: StringIO 00155 """ 00156 try: 00157 _x = self 00158 buff.write(_struct_3I.pack(_x.view.header.seq, _x.view.header.stamp.secs, _x.view.header.stamp.nsecs)) 00159 _x = self.view.header.frame_id 00160 length = len(_x) 00161 buff.write(struct.pack('<I%ss'%length, length, _x)) 00162 _x = self 00163 buff.write(_struct_2I.pack(_x.view.height, _x.view.width)) 00164 length = len(self.view.fields) 00165 buff.write(_struct_I.pack(length)) 00166 for val1 in self.view.fields: 00167 _x = val1.name 00168 length = len(_x) 00169 buff.write(struct.pack('<I%ss'%length, length, _x)) 00170 _x = val1 00171 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count)) 00172 _x = self 00173 buff.write(_struct_B2I.pack(_x.view.is_bigendian, _x.view.point_step, _x.view.row_step)) 00174 _x = self.view.data 00175 length = len(_x) 00176 # - if encoded as a list instead, serialize as bytes instead of string 00177 if type(_x) in [list, tuple]: 00178 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00179 else: 00180 buff.write(struct.pack('<I%ss'%length, length, _x)) 00181 _x = self 00182 buff.write(_struct_B7d2i.pack(_x.view.is_dense, _x.transform.position.x, _x.transform.position.y, _x.transform.position.z, _x.transform.orientation.x, _x.transform.orientation.y, _x.transform.orientation.z, _x.transform.orientation.w, _x.model_id.data, _x.iteration.data)) 00183 except struct.error as se: self._check_types(se) 00184 except TypeError as te: self._check_types(te) 00185 00186 def deserialize(self, str): 00187 """ 00188 unpack serialized message in str into this message instance 00189 @param str: byte array of serialized message 00190 @type str: str 00191 """ 00192 try: 00193 if self.view is None: 00194 self.view = sensor_msgs.msg.PointCloud2() 00195 if self.transform is None: 00196 self.transform = geometry_msgs.msg.Pose() 00197 if self.model_id is None: 00198 self.model_id = std_msgs.msg.Int32() 00199 if self.iteration is None: 00200 self.iteration = std_msgs.msg.Int32() 00201 end = 0 00202 _x = self 00203 start = end 00204 end += 12 00205 (_x.view.header.seq, _x.view.header.stamp.secs, _x.view.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00206 start = end 00207 end += 4 00208 (length,) = _struct_I.unpack(str[start:end]) 00209 start = end 00210 end += length 00211 self.view.header.frame_id = str[start:end] 00212 _x = self 00213 start = end 00214 end += 8 00215 (_x.view.height, _x.view.width,) = _struct_2I.unpack(str[start:end]) 00216 start = end 00217 end += 4 00218 (length,) = _struct_I.unpack(str[start:end]) 00219 self.view.fields = [] 00220 for i in range(0, length): 00221 val1 = sensor_msgs.msg.PointField() 00222 start = end 00223 end += 4 00224 (length,) = _struct_I.unpack(str[start:end]) 00225 start = end 00226 end += length 00227 val1.name = str[start:end] 00228 _x = val1 00229 start = end 00230 end += 9 00231 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end]) 00232 self.view.fields.append(val1) 00233 _x = self 00234 start = end 00235 end += 9 00236 (_x.view.is_bigendian, _x.view.point_step, _x.view.row_step,) = _struct_B2I.unpack(str[start:end]) 00237 self.view.is_bigendian = bool(self.view.is_bigendian) 00238 start = end 00239 end += 4 00240 (length,) = _struct_I.unpack(str[start:end]) 00241 start = end 00242 end += length 00243 self.view.data = str[start:end] 00244 _x = self 00245 start = end 00246 end += 65 00247 (_x.view.is_dense, _x.transform.position.x, _x.transform.position.y, _x.transform.position.z, _x.transform.orientation.x, _x.transform.orientation.y, _x.transform.orientation.z, _x.transform.orientation.w, _x.model_id.data, _x.iteration.data,) = _struct_B7d2i.unpack(str[start:end]) 00248 self.view.is_dense = bool(self.view.is_dense) 00249 return self 00250 except struct.error as e: 00251 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00252 00253 00254 def serialize_numpy(self, buff, numpy): 00255 """ 00256 serialize message with numpy array types into buffer 00257 @param buff: buffer 00258 @type buff: StringIO 00259 @param numpy: numpy python module 00260 @type numpy module 00261 """ 00262 try: 00263 _x = self 00264 buff.write(_struct_3I.pack(_x.view.header.seq, _x.view.header.stamp.secs, _x.view.header.stamp.nsecs)) 00265 _x = self.view.header.frame_id 00266 length = len(_x) 00267 buff.write(struct.pack('<I%ss'%length, length, _x)) 00268 _x = self 00269 buff.write(_struct_2I.pack(_x.view.height, _x.view.width)) 00270 length = len(self.view.fields) 00271 buff.write(_struct_I.pack(length)) 00272 for val1 in self.view.fields: 00273 _x = val1.name 00274 length = len(_x) 00275 buff.write(struct.pack('<I%ss'%length, length, _x)) 00276 _x = val1 00277 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count)) 00278 _x = self 00279 buff.write(_struct_B2I.pack(_x.view.is_bigendian, _x.view.point_step, _x.view.row_step)) 00280 _x = self.view.data 00281 length = len(_x) 00282 # - if encoded as a list instead, serialize as bytes instead of string 00283 if type(_x) in [list, tuple]: 00284 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00285 else: 00286 buff.write(struct.pack('<I%ss'%length, length, _x)) 00287 _x = self 00288 buff.write(_struct_B7d2i.pack(_x.view.is_dense, _x.transform.position.x, _x.transform.position.y, _x.transform.position.z, _x.transform.orientation.x, _x.transform.orientation.y, _x.transform.orientation.z, _x.transform.orientation.w, _x.model_id.data, _x.iteration.data)) 00289 except struct.error as se: self._check_types(se) 00290 except TypeError as te: self._check_types(te) 00291 00292 def deserialize_numpy(self, str, numpy): 00293 """ 00294 unpack serialized message in str into this message instance using numpy for array types 00295 @param str: byte array of serialized message 00296 @type str: str 00297 @param numpy: numpy python module 00298 @type numpy: module 00299 """ 00300 try: 00301 if self.view is None: 00302 self.view = sensor_msgs.msg.PointCloud2() 00303 if self.transform is None: 00304 self.transform = geometry_msgs.msg.Pose() 00305 if self.model_id is None: 00306 self.model_id = std_msgs.msg.Int32() 00307 if self.iteration is None: 00308 self.iteration = std_msgs.msg.Int32() 00309 end = 0 00310 _x = self 00311 start = end 00312 end += 12 00313 (_x.view.header.seq, _x.view.header.stamp.secs, _x.view.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00314 start = end 00315 end += 4 00316 (length,) = _struct_I.unpack(str[start:end]) 00317 start = end 00318 end += length 00319 self.view.header.frame_id = str[start:end] 00320 _x = self 00321 start = end 00322 end += 8 00323 (_x.view.height, _x.view.width,) = _struct_2I.unpack(str[start:end]) 00324 start = end 00325 end += 4 00326 (length,) = _struct_I.unpack(str[start:end]) 00327 self.view.fields = [] 00328 for i in range(0, length): 00329 val1 = sensor_msgs.msg.PointField() 00330 start = end 00331 end += 4 00332 (length,) = _struct_I.unpack(str[start:end]) 00333 start = end 00334 end += length 00335 val1.name = str[start:end] 00336 _x = val1 00337 start = end 00338 end += 9 00339 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end]) 00340 self.view.fields.append(val1) 00341 _x = self 00342 start = end 00343 end += 9 00344 (_x.view.is_bigendian, _x.view.point_step, _x.view.row_step,) = _struct_B2I.unpack(str[start:end]) 00345 self.view.is_bigendian = bool(self.view.is_bigendian) 00346 start = end 00347 end += 4 00348 (length,) = _struct_I.unpack(str[start:end]) 00349 start = end 00350 end += length 00351 self.view.data = str[start:end] 00352 _x = self 00353 start = end 00354 end += 65 00355 (_x.view.is_dense, _x.transform.position.x, _x.transform.position.y, _x.transform.position.z, _x.transform.orientation.x, _x.transform.orientation.y, _x.transform.orientation.z, _x.transform.orientation.w, _x.model_id.data, _x.iteration.data,) = _struct_B7d2i.unpack(str[start:end]) 00356 self.view.is_dense = bool(self.view.is_dense) 00357 return self 00358 except struct.error as e: 00359 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00360 00361 _struct_I = roslib.message.struct_I 00362 _struct_IBI = struct.Struct("<IBI") 00363 _struct_3I = struct.Struct("<3I") 00364 _struct_2I = struct.Struct("<2I") 00365 _struct_B2I = struct.Struct("<B2I") 00366 _struct_B7d2i = struct.Struct("<B7d2i") 00367 """autogenerated by genmsg_py from normals_vfh_db_estimatorResponse.msg. Do not edit.""" 00368 import roslib.message 00369 import struct 00370 00371 00372 class normals_vfh_db_estimatorResponse(roslib.message.Message): 00373 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00374 _type = "vfh_recognizer_db/normals_vfh_db_estimatorResponse" 00375 _has_header = False #flag to mark the presence of a Header object 00376 _full_text = """ 00377 """ 00378 __slots__ = [] 00379 _slot_types = [] 00380 00381 def __init__(self, *args, **kwds): 00382 """ 00383 Constructor. Any message fields that are implicitly/explicitly 00384 set to None will be assigned a default value. The recommend 00385 use is keyword arguments as this is more robust to future message 00386 changes. You cannot mix in-order arguments and keyword arguments. 00387 00388 The available fields are: 00389 00390 00391 @param args: complete set of field values, in .msg order 00392 @param kwds: use keyword arguments corresponding to message field names 00393 to set specific fields. 00394 """ 00395 if args or kwds: 00396 super(normals_vfh_db_estimatorResponse, self).__init__(*args, **kwds) 00397 00398 def _get_types(self): 00399 """ 00400 internal API method 00401 """ 00402 return self._slot_types 00403 00404 def serialize(self, buff): 00405 """ 00406 serialize message into buffer 00407 @param buff: buffer 00408 @type buff: StringIO 00409 """ 00410 try: 00411 pass 00412 except struct.error as se: self._check_types(se) 00413 except TypeError as te: self._check_types(te) 00414 00415 def deserialize(self, str): 00416 """ 00417 unpack serialized message in str into this message instance 00418 @param str: byte array of serialized message 00419 @type str: str 00420 """ 00421 try: 00422 end = 0 00423 return self 00424 except struct.error as e: 00425 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00426 00427 00428 def serialize_numpy(self, buff, numpy): 00429 """ 00430 serialize message with numpy array types into buffer 00431 @param buff: buffer 00432 @type buff: StringIO 00433 @param numpy: numpy python module 00434 @type numpy module 00435 """ 00436 try: 00437 pass 00438 except struct.error as se: self._check_types(se) 00439 except TypeError as te: self._check_types(te) 00440 00441 def deserialize_numpy(self, str, numpy): 00442 """ 00443 unpack serialized message in str into this message instance using numpy for array types 00444 @param str: byte array of serialized message 00445 @type str: str 00446 @param numpy: numpy python module 00447 @type numpy: module 00448 """ 00449 try: 00450 end = 0 00451 return self 00452 except struct.error as e: 00453 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00454 00455 _struct_I = roslib.message.struct_I 00456 class normals_vfh_db_estimator(roslib.message.ServiceDefinition): 00457 _type = 'vfh_recognizer_db/normals_vfh_db_estimator' 00458 _md5sum = '49ba0e431d9d565e2e6ad06c9ac04d5f' 00459 _request_class = normals_vfh_db_estimatorRequest 00460 _response_class = normals_vfh_db_estimatorResponse