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