$search
00001 """autogenerated by genmsg_py from GetDataRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class GetDataRequest(roslib.message.Message): 00007 _md5sum = "e322fea33bcf470d266fe9ce0878bcf2" 00008 _type = "srs_object_database_msgs/GetDataRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """ 00011 00012 00013 00014 00015 00016 int32[] model_ids 00017 string description 00018 00019 00020 00021 bool mesh 00022 bool pcl 00023 bool surf 00024 bool image 00025 bool grasp 00026 bool urdf 00027 00028 00029 00030 """ 00031 __slots__ = ['model_ids','description','mesh','pcl','surf','image','grasp','urdf'] 00032 _slot_types = ['int32[]','string','bool','bool','bool','bool','bool','bool'] 00033 00034 def __init__(self, *args, **kwds): 00035 """ 00036 Constructor. Any message fields that are implicitly/explicitly 00037 set to None will be assigned a default value. The recommend 00038 use is keyword arguments as this is more robust to future message 00039 changes. You cannot mix in-order arguments and keyword arguments. 00040 00041 The available fields are: 00042 model_ids,description,mesh,pcl,surf,image,grasp,urdf 00043 00044 @param args: complete set of field values, in .msg order 00045 @param kwds: use keyword arguments corresponding to message field names 00046 to set specific fields. 00047 """ 00048 if args or kwds: 00049 super(GetDataRequest, self).__init__(*args, **kwds) 00050 #message fields cannot be None, assign default values for those that are 00051 if self.model_ids is None: 00052 self.model_ids = [] 00053 if self.description is None: 00054 self.description = '' 00055 if self.mesh is None: 00056 self.mesh = False 00057 if self.pcl is None: 00058 self.pcl = False 00059 if self.surf is None: 00060 self.surf = False 00061 if self.image is None: 00062 self.image = False 00063 if self.grasp is None: 00064 self.grasp = False 00065 if self.urdf is None: 00066 self.urdf = False 00067 else: 00068 self.model_ids = [] 00069 self.description = '' 00070 self.mesh = False 00071 self.pcl = False 00072 self.surf = False 00073 self.image = False 00074 self.grasp = False 00075 self.urdf = False 00076 00077 def _get_types(self): 00078 """ 00079 internal API method 00080 """ 00081 return self._slot_types 00082 00083 def serialize(self, buff): 00084 """ 00085 serialize message into buffer 00086 @param buff: buffer 00087 @type buff: StringIO 00088 """ 00089 try: 00090 length = len(self.model_ids) 00091 buff.write(_struct_I.pack(length)) 00092 pattern = '<%si'%length 00093 buff.write(struct.pack(pattern, *self.model_ids)) 00094 _x = self.description 00095 length = len(_x) 00096 buff.write(struct.pack('<I%ss'%length, length, _x)) 00097 _x = self 00098 buff.write(_struct_6B.pack(_x.mesh, _x.pcl, _x.surf, _x.image, _x.grasp, _x.urdf)) 00099 except struct.error as se: self._check_types(se) 00100 except TypeError as te: self._check_types(te) 00101 00102 def deserialize(self, str): 00103 """ 00104 unpack serialized message in str into this message instance 00105 @param str: byte array of serialized message 00106 @type str: str 00107 """ 00108 try: 00109 end = 0 00110 start = end 00111 end += 4 00112 (length,) = _struct_I.unpack(str[start:end]) 00113 pattern = '<%si'%length 00114 start = end 00115 end += struct.calcsize(pattern) 00116 self.model_ids = struct.unpack(pattern, str[start:end]) 00117 start = end 00118 end += 4 00119 (length,) = _struct_I.unpack(str[start:end]) 00120 start = end 00121 end += length 00122 self.description = str[start:end] 00123 _x = self 00124 start = end 00125 end += 6 00126 (_x.mesh, _x.pcl, _x.surf, _x.image, _x.grasp, _x.urdf,) = _struct_6B.unpack(str[start:end]) 00127 self.mesh = bool(self.mesh) 00128 self.pcl = bool(self.pcl) 00129 self.surf = bool(self.surf) 00130 self.image = bool(self.image) 00131 self.grasp = bool(self.grasp) 00132 self.urdf = bool(self.urdf) 00133 return self 00134 except struct.error as e: 00135 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00136 00137 00138 def serialize_numpy(self, buff, numpy): 00139 """ 00140 serialize message with numpy array types into buffer 00141 @param buff: buffer 00142 @type buff: StringIO 00143 @param numpy: numpy python module 00144 @type numpy module 00145 """ 00146 try: 00147 length = len(self.model_ids) 00148 buff.write(_struct_I.pack(length)) 00149 pattern = '<%si'%length 00150 buff.write(self.model_ids.tostring()) 00151 _x = self.description 00152 length = len(_x) 00153 buff.write(struct.pack('<I%ss'%length, length, _x)) 00154 _x = self 00155 buff.write(_struct_6B.pack(_x.mesh, _x.pcl, _x.surf, _x.image, _x.grasp, _x.urdf)) 00156 except struct.error as se: self._check_types(se) 00157 except TypeError as te: self._check_types(te) 00158 00159 def deserialize_numpy(self, str, numpy): 00160 """ 00161 unpack serialized message in str into this message instance using numpy for array types 00162 @param str: byte array of serialized message 00163 @type str: str 00164 @param numpy: numpy python module 00165 @type numpy: module 00166 """ 00167 try: 00168 end = 0 00169 start = end 00170 end += 4 00171 (length,) = _struct_I.unpack(str[start:end]) 00172 pattern = '<%si'%length 00173 start = end 00174 end += struct.calcsize(pattern) 00175 self.model_ids = numpy.frombuffer(str[start:end], dtype=numpy.int32, count=length) 00176 start = end 00177 end += 4 00178 (length,) = _struct_I.unpack(str[start:end]) 00179 start = end 00180 end += length 00181 self.description = str[start:end] 00182 _x = self 00183 start = end 00184 end += 6 00185 (_x.mesh, _x.pcl, _x.surf, _x.image, _x.grasp, _x.urdf,) = _struct_6B.unpack(str[start:end]) 00186 self.mesh = bool(self.mesh) 00187 self.pcl = bool(self.pcl) 00188 self.surf = bool(self.surf) 00189 self.image = bool(self.image) 00190 self.grasp = bool(self.grasp) 00191 self.urdf = bool(self.urdf) 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_6B = struct.Struct("<6B") 00198 """autogenerated by genmsg_py from GetDataResponse.msg. Do not edit.""" 00199 import roslib.message 00200 import struct 00201 00202 import arm_navigation_msgs.msg 00203 import visualization_msgs.msg 00204 import geometry_msgs.msg 00205 import sensor_msgs.msg 00206 import roslib.rostime 00207 import srs_object_database_msgs.msg 00208 import std_msgs.msg 00209 00210 class GetDataResponse(roslib.message.Message): 00211 _md5sum = "8c029ab6bbdfbdc8ed9c7e395d73a54f" 00212 _type = "srs_object_database_msgs/GetDataResponse" 00213 _has_header = False #flag to mark the presence of a Header object 00214 _full_text = """ 00215 00216 string return_response 00217 00218 srs_object_database_msgs/img[] img 00219 srs_object_database_msgs/mesh[] mesh 00220 srs_object_database_msgs/pcl[] pcl 00221 srs_object_database_msgs/surf[] surf 00222 srs_object_database_msgs/grasp[] grasp 00223 srs_object_database_msgs/urdf[] urdf 00224 00225 00226 ================================================================================ 00227 MSG: srs_object_database_msgs/img 00228 int32 objectId 00229 string description 00230 sensor_msgs/Image image 00231 ================================================================================ 00232 MSG: sensor_msgs/Image 00233 # This message contains an uncompressed image 00234 # (0, 0) is at top-left corner of image 00235 # 00236 00237 Header header # Header timestamp should be acquisition time of image 00238 # Header frame_id should be optical frame of camera 00239 # origin of frame should be optical center of cameara 00240 # +x should point to the right in the image 00241 # +y should point down in the image 00242 # +z should point into to plane of the image 00243 # If the frame_id here and the frame_id of the CameraInfo 00244 # message associated with the image conflict 00245 # the behavior is undefined 00246 00247 uint32 height # image height, that is, number of rows 00248 uint32 width # image width, that is, number of columns 00249 00250 # The legal values for encoding are in file src/image_encodings.cpp 00251 # If you want to standardize a new string format, join 00252 # ros-users@lists.sourceforge.net and send an email proposing a new encoding. 00253 00254 string encoding # Encoding of pixels -- channel meaning, ordering, size 00255 # taken from the list of strings in src/image_encodings.cpp 00256 00257 uint8 is_bigendian # is this data bigendian? 00258 uint32 step # Full row length in bytes 00259 uint8[] data # actual matrix data, size is (step * rows) 00260 00261 ================================================================================ 00262 MSG: std_msgs/Header 00263 # Standard metadata for higher-level stamped data types. 00264 # This is generally used to communicate timestamped data 00265 # in a particular coordinate frame. 00266 # 00267 # sequence ID: consecutively increasing ID 00268 uint32 seq 00269 #Two-integer timestamp that is expressed as: 00270 # * stamp.secs: seconds (stamp_secs) since epoch 00271 # * stamp.nsecs: nanoseconds since stamp_secs 00272 # time-handling sugar is provided by the client library 00273 time stamp 00274 #Frame this data is associated with 00275 # 0: no frame 00276 # 1: global frame 00277 string frame_id 00278 00279 ================================================================================ 00280 MSG: srs_object_database_msgs/mesh 00281 int32 objectId 00282 arm_navigation_msgs/Shape mesh 00283 string type 00284 uint8[] data 00285 ================================================================================ 00286 MSG: arm_navigation_msgs/Shape 00287 byte SPHERE=0 00288 byte BOX=1 00289 byte CYLINDER=2 00290 byte MESH=3 00291 00292 byte type 00293 00294 00295 #### define sphere, box, cylinder #### 00296 # the origin of each shape is considered at the shape's center 00297 00298 # for sphere 00299 # radius := dimensions[0] 00300 00301 # for cylinder 00302 # radius := dimensions[0] 00303 # length := dimensions[1] 00304 # the length is along the Z axis 00305 00306 # for box 00307 # size_x := dimensions[0] 00308 # size_y := dimensions[1] 00309 # size_z := dimensions[2] 00310 float64[] dimensions 00311 00312 00313 #### define mesh #### 00314 00315 # list of triangles; triangle k is defined by tre vertices located 00316 # at indices triangles[3k], triangles[3k+1], triangles[3k+2] 00317 int32[] triangles 00318 geometry_msgs/Point[] vertices 00319 00320 ================================================================================ 00321 MSG: geometry_msgs/Point 00322 # This contains the position of a point in free space 00323 float64 x 00324 float64 y 00325 float64 z 00326 00327 ================================================================================ 00328 MSG: srs_object_database_msgs/pcl 00329 int32 objectId 00330 sensor_msgs/PointCloud2 pcl 00331 00332 ================================================================================ 00333 MSG: sensor_msgs/PointCloud2 00334 # This message holds a collection of N-dimensional points, which may 00335 # contain additional information such as normals, intensity, etc. The 00336 # point data is stored as a binary blob, its layout described by the 00337 # contents of the "fields" array. 00338 00339 # The point cloud data may be organized 2d (image-like) or 1d 00340 # (unordered). Point clouds organized as 2d images may be produced by 00341 # camera depth sensors such as stereo or time-of-flight. 00342 00343 # Time of sensor data acquisition, and the coordinate frame ID (for 3d 00344 # points). 00345 Header header 00346 00347 # 2D structure of the point cloud. If the cloud is unordered, height is 00348 # 1 and width is the length of the point cloud. 00349 uint32 height 00350 uint32 width 00351 00352 # Describes the channels and their layout in the binary data blob. 00353 PointField[] fields 00354 00355 bool is_bigendian # Is this data bigendian? 00356 uint32 point_step # Length of a point in bytes 00357 uint32 row_step # Length of a row in bytes 00358 uint8[] data # Actual point data, size is (row_step*height) 00359 00360 bool is_dense # True if there are no invalid points 00361 00362 ================================================================================ 00363 MSG: sensor_msgs/PointField 00364 # This message holds the description of one point entry in the 00365 # PointCloud2 message format. 00366 uint8 INT8 = 1 00367 uint8 UINT8 = 2 00368 uint8 INT16 = 3 00369 uint8 UINT16 = 4 00370 uint8 INT32 = 5 00371 uint8 UINT32 = 6 00372 uint8 FLOAT32 = 7 00373 uint8 FLOAT64 = 8 00374 00375 string name # Name of field 00376 uint32 offset # Offset from start of point struct 00377 uint8 datatype # Datatype enumeration, see above 00378 uint32 count # How many elements in the field 00379 00380 ================================================================================ 00381 MSG: srs_object_database_msgs/surf 00382 int32 objectId 00383 sensor_msgs/PointCloud2 surf 00384 sensor_msgs/PointCloud2 bounding_box 00385 geometry_msgs/Pose coord_frame 00386 00387 ================================================================================ 00388 MSG: geometry_msgs/Pose 00389 # A representation of pose in free space, composed of postion and orientation. 00390 Point position 00391 Quaternion orientation 00392 00393 ================================================================================ 00394 MSG: geometry_msgs/Quaternion 00395 # This represents an orientation in free space in quaternion form. 00396 00397 float64 x 00398 float64 y 00399 float64 z 00400 float64 w 00401 00402 ================================================================================ 00403 MSG: srs_object_database_msgs/grasp 00404 int32 objectId 00405 string Objecttype 00406 string pose 00407 string fileDescription 00408 uint8[] bs 00409 int32 size 00410 00411 ================================================================================ 00412 MSG: srs_object_database_msgs/urdf 00413 int32 objectId 00414 visualization_msgs/Marker[] markers 00415 ================================================================================ 00416 MSG: visualization_msgs/Marker 00417 # See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz 00418 00419 uint8 ARROW=0 00420 uint8 CUBE=1 00421 uint8 SPHERE=2 00422 uint8 CYLINDER=3 00423 uint8 LINE_STRIP=4 00424 uint8 LINE_LIST=5 00425 uint8 CUBE_LIST=6 00426 uint8 SPHERE_LIST=7 00427 uint8 POINTS=8 00428 uint8 TEXT_VIEW_FACING=9 00429 uint8 MESH_RESOURCE=10 00430 uint8 TRIANGLE_LIST=11 00431 00432 uint8 ADD=0 00433 uint8 MODIFY=0 00434 uint8 DELETE=2 00435 00436 Header header # header for time/frame information 00437 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object 00438 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later 00439 int32 type # Type of object 00440 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object 00441 geometry_msgs/Pose pose # Pose of the object 00442 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square) 00443 std_msgs/ColorRGBA color # Color [0.0-1.0] 00444 duration lifetime # How long the object should last before being automatically deleted. 0 means forever 00445 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep 00446 00447 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...) 00448 geometry_msgs/Point[] points 00449 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...) 00450 #number of colors must either be 0 or equal to the number of points 00451 #NOTE: alpha is not yet used 00452 std_msgs/ColorRGBA[] colors 00453 00454 # NOTE: only used for text markers 00455 string text 00456 00457 # NOTE: only used for MESH_RESOURCE markers 00458 string mesh_resource 00459 bool mesh_use_embedded_materials 00460 00461 ================================================================================ 00462 MSG: geometry_msgs/Vector3 00463 # This represents a vector in free space. 00464 00465 float64 x 00466 float64 y 00467 float64 z 00468 ================================================================================ 00469 MSG: std_msgs/ColorRGBA 00470 float32 r 00471 float32 g 00472 float32 b 00473 float32 a 00474 00475 """ 00476 __slots__ = ['return_response','img','mesh','pcl','surf','grasp','urdf'] 00477 _slot_types = ['string','srs_object_database_msgs/img[]','srs_object_database_msgs/mesh[]','srs_object_database_msgs/pcl[]','srs_object_database_msgs/surf[]','srs_object_database_msgs/grasp[]','srs_object_database_msgs/urdf[]'] 00478 00479 def __init__(self, *args, **kwds): 00480 """ 00481 Constructor. Any message fields that are implicitly/explicitly 00482 set to None will be assigned a default value. The recommend 00483 use is keyword arguments as this is more robust to future message 00484 changes. You cannot mix in-order arguments and keyword arguments. 00485 00486 The available fields are: 00487 return_response,img,mesh,pcl,surf,grasp,urdf 00488 00489 @param args: complete set of field values, in .msg order 00490 @param kwds: use keyword arguments corresponding to message field names 00491 to set specific fields. 00492 """ 00493 if args or kwds: 00494 super(GetDataResponse, self).__init__(*args, **kwds) 00495 #message fields cannot be None, assign default values for those that are 00496 if self.return_response is None: 00497 self.return_response = '' 00498 if self.img is None: 00499 self.img = [] 00500 if self.mesh is None: 00501 self.mesh = [] 00502 if self.pcl is None: 00503 self.pcl = [] 00504 if self.surf is None: 00505 self.surf = [] 00506 if self.grasp is None: 00507 self.grasp = [] 00508 if self.urdf is None: 00509 self.urdf = [] 00510 else: 00511 self.return_response = '' 00512 self.img = [] 00513 self.mesh = [] 00514 self.pcl = [] 00515 self.surf = [] 00516 self.grasp = [] 00517 self.urdf = [] 00518 00519 def _get_types(self): 00520 """ 00521 internal API method 00522 """ 00523 return self._slot_types 00524 00525 def serialize(self, buff): 00526 """ 00527 serialize message into buffer 00528 @param buff: buffer 00529 @type buff: StringIO 00530 """ 00531 try: 00532 _x = self.return_response 00533 length = len(_x) 00534 buff.write(struct.pack('<I%ss'%length, length, _x)) 00535 length = len(self.img) 00536 buff.write(_struct_I.pack(length)) 00537 for val1 in self.img: 00538 buff.write(_struct_i.pack(val1.objectId)) 00539 _x = val1.description 00540 length = len(_x) 00541 buff.write(struct.pack('<I%ss'%length, length, _x)) 00542 _v1 = val1.image 00543 _v2 = _v1.header 00544 buff.write(_struct_I.pack(_v2.seq)) 00545 _v3 = _v2.stamp 00546 _x = _v3 00547 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00548 _x = _v2.frame_id 00549 length = len(_x) 00550 buff.write(struct.pack('<I%ss'%length, length, _x)) 00551 _x = _v1 00552 buff.write(_struct_2I.pack(_x.height, _x.width)) 00553 _x = _v1.encoding 00554 length = len(_x) 00555 buff.write(struct.pack('<I%ss'%length, length, _x)) 00556 _x = _v1 00557 buff.write(_struct_BI.pack(_x.is_bigendian, _x.step)) 00558 _x = _v1.data 00559 length = len(_x) 00560 # - if encoded as a list instead, serialize as bytes instead of string 00561 if type(_x) in [list, tuple]: 00562 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00563 else: 00564 buff.write(struct.pack('<I%ss'%length, length, _x)) 00565 length = len(self.mesh) 00566 buff.write(_struct_I.pack(length)) 00567 for val1 in self.mesh: 00568 buff.write(_struct_i.pack(val1.objectId)) 00569 _v4 = val1.mesh 00570 buff.write(_struct_b.pack(_v4.type)) 00571 length = len(_v4.dimensions) 00572 buff.write(_struct_I.pack(length)) 00573 pattern = '<%sd'%length 00574 buff.write(struct.pack(pattern, *_v4.dimensions)) 00575 length = len(_v4.triangles) 00576 buff.write(_struct_I.pack(length)) 00577 pattern = '<%si'%length 00578 buff.write(struct.pack(pattern, *_v4.triangles)) 00579 length = len(_v4.vertices) 00580 buff.write(_struct_I.pack(length)) 00581 for val3 in _v4.vertices: 00582 _x = val3 00583 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00584 _x = val1.type 00585 length = len(_x) 00586 buff.write(struct.pack('<I%ss'%length, length, _x)) 00587 _x = val1.data 00588 length = len(_x) 00589 # - if encoded as a list instead, serialize as bytes instead of string 00590 if type(_x) in [list, tuple]: 00591 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00592 else: 00593 buff.write(struct.pack('<I%ss'%length, length, _x)) 00594 length = len(self.pcl) 00595 buff.write(_struct_I.pack(length)) 00596 for val1 in self.pcl: 00597 buff.write(_struct_i.pack(val1.objectId)) 00598 _v5 = val1.pcl 00599 _v6 = _v5.header 00600 buff.write(_struct_I.pack(_v6.seq)) 00601 _v7 = _v6.stamp 00602 _x = _v7 00603 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00604 _x = _v6.frame_id 00605 length = len(_x) 00606 buff.write(struct.pack('<I%ss'%length, length, _x)) 00607 _x = _v5 00608 buff.write(_struct_2I.pack(_x.height, _x.width)) 00609 length = len(_v5.fields) 00610 buff.write(_struct_I.pack(length)) 00611 for val3 in _v5.fields: 00612 _x = val3.name 00613 length = len(_x) 00614 buff.write(struct.pack('<I%ss'%length, length, _x)) 00615 _x = val3 00616 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count)) 00617 _x = _v5 00618 buff.write(_struct_B2I.pack(_x.is_bigendian, _x.point_step, _x.row_step)) 00619 _x = _v5.data 00620 length = len(_x) 00621 # - if encoded as a list instead, serialize as bytes instead of string 00622 if type(_x) in [list, tuple]: 00623 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00624 else: 00625 buff.write(struct.pack('<I%ss'%length, length, _x)) 00626 buff.write(_struct_B.pack(_v5.is_dense)) 00627 length = len(self.surf) 00628 buff.write(_struct_I.pack(length)) 00629 for val1 in self.surf: 00630 buff.write(_struct_i.pack(val1.objectId)) 00631 _v8 = val1.surf 00632 _v9 = _v8.header 00633 buff.write(_struct_I.pack(_v9.seq)) 00634 _v10 = _v9.stamp 00635 _x = _v10 00636 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00637 _x = _v9.frame_id 00638 length = len(_x) 00639 buff.write(struct.pack('<I%ss'%length, length, _x)) 00640 _x = _v8 00641 buff.write(_struct_2I.pack(_x.height, _x.width)) 00642 length = len(_v8.fields) 00643 buff.write(_struct_I.pack(length)) 00644 for val3 in _v8.fields: 00645 _x = val3.name 00646 length = len(_x) 00647 buff.write(struct.pack('<I%ss'%length, length, _x)) 00648 _x = val3 00649 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count)) 00650 _x = _v8 00651 buff.write(_struct_B2I.pack(_x.is_bigendian, _x.point_step, _x.row_step)) 00652 _x = _v8.data 00653 length = len(_x) 00654 # - if encoded as a list instead, serialize as bytes instead of string 00655 if type(_x) in [list, tuple]: 00656 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00657 else: 00658 buff.write(struct.pack('<I%ss'%length, length, _x)) 00659 buff.write(_struct_B.pack(_v8.is_dense)) 00660 _v11 = val1.bounding_box 00661 _v12 = _v11.header 00662 buff.write(_struct_I.pack(_v12.seq)) 00663 _v13 = _v12.stamp 00664 _x = _v13 00665 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00666 _x = _v12.frame_id 00667 length = len(_x) 00668 buff.write(struct.pack('<I%ss'%length, length, _x)) 00669 _x = _v11 00670 buff.write(_struct_2I.pack(_x.height, _x.width)) 00671 length = len(_v11.fields) 00672 buff.write(_struct_I.pack(length)) 00673 for val3 in _v11.fields: 00674 _x = val3.name 00675 length = len(_x) 00676 buff.write(struct.pack('<I%ss'%length, length, _x)) 00677 _x = val3 00678 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count)) 00679 _x = _v11 00680 buff.write(_struct_B2I.pack(_x.is_bigendian, _x.point_step, _x.row_step)) 00681 _x = _v11.data 00682 length = len(_x) 00683 # - if encoded as a list instead, serialize as bytes instead of string 00684 if type(_x) in [list, tuple]: 00685 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00686 else: 00687 buff.write(struct.pack('<I%ss'%length, length, _x)) 00688 buff.write(_struct_B.pack(_v11.is_dense)) 00689 _v14 = val1.coord_frame 00690 _v15 = _v14.position 00691 _x = _v15 00692 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00693 _v16 = _v14.orientation 00694 _x = _v16 00695 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00696 length = len(self.grasp) 00697 buff.write(_struct_I.pack(length)) 00698 for val1 in self.grasp: 00699 buff.write(_struct_i.pack(val1.objectId)) 00700 _x = val1.Objecttype 00701 length = len(_x) 00702 buff.write(struct.pack('<I%ss'%length, length, _x)) 00703 _x = val1.pose 00704 length = len(_x) 00705 buff.write(struct.pack('<I%ss'%length, length, _x)) 00706 _x = val1.fileDescription 00707 length = len(_x) 00708 buff.write(struct.pack('<I%ss'%length, length, _x)) 00709 _x = val1.bs 00710 length = len(_x) 00711 # - if encoded as a list instead, serialize as bytes instead of string 00712 if type(_x) in [list, tuple]: 00713 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00714 else: 00715 buff.write(struct.pack('<I%ss'%length, length, _x)) 00716 buff.write(_struct_i.pack(val1.size)) 00717 length = len(self.urdf) 00718 buff.write(_struct_I.pack(length)) 00719 for val1 in self.urdf: 00720 buff.write(_struct_i.pack(val1.objectId)) 00721 length = len(val1.markers) 00722 buff.write(_struct_I.pack(length)) 00723 for val2 in val1.markers: 00724 _v17 = val2.header 00725 buff.write(_struct_I.pack(_v17.seq)) 00726 _v18 = _v17.stamp 00727 _x = _v18 00728 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00729 _x = _v17.frame_id 00730 length = len(_x) 00731 buff.write(struct.pack('<I%ss'%length, length, _x)) 00732 _x = val2.ns 00733 length = len(_x) 00734 buff.write(struct.pack('<I%ss'%length, length, _x)) 00735 _x = val2 00736 buff.write(_struct_3i.pack(_x.id, _x.type, _x.action)) 00737 _v19 = val2.pose 00738 _v20 = _v19.position 00739 _x = _v20 00740 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00741 _v21 = _v19.orientation 00742 _x = _v21 00743 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00744 _v22 = val2.scale 00745 _x = _v22 00746 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00747 _v23 = val2.color 00748 _x = _v23 00749 buff.write(_struct_4f.pack(_x.r, _x.g, _x.b, _x.a)) 00750 _v24 = val2.lifetime 00751 _x = _v24 00752 buff.write(_struct_2i.pack(_x.secs, _x.nsecs)) 00753 buff.write(_struct_B.pack(val2.frame_locked)) 00754 length = len(val2.points) 00755 buff.write(_struct_I.pack(length)) 00756 for val3 in val2.points: 00757 _x = val3 00758 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00759 length = len(val2.colors) 00760 buff.write(_struct_I.pack(length)) 00761 for val3 in val2.colors: 00762 _x = val3 00763 buff.write(_struct_4f.pack(_x.r, _x.g, _x.b, _x.a)) 00764 _x = val2.text 00765 length = len(_x) 00766 buff.write(struct.pack('<I%ss'%length, length, _x)) 00767 _x = val2.mesh_resource 00768 length = len(_x) 00769 buff.write(struct.pack('<I%ss'%length, length, _x)) 00770 buff.write(_struct_B.pack(val2.mesh_use_embedded_materials)) 00771 except struct.error as se: self._check_types(se) 00772 except TypeError as te: self._check_types(te) 00773 00774 def deserialize(self, str): 00775 """ 00776 unpack serialized message in str into this message instance 00777 @param str: byte array of serialized message 00778 @type str: str 00779 """ 00780 try: 00781 end = 0 00782 start = end 00783 end += 4 00784 (length,) = _struct_I.unpack(str[start:end]) 00785 start = end 00786 end += length 00787 self.return_response = str[start:end] 00788 start = end 00789 end += 4 00790 (length,) = _struct_I.unpack(str[start:end]) 00791 self.img = [] 00792 for i in range(0, length): 00793 val1 = srs_object_database_msgs.msg.img() 00794 start = end 00795 end += 4 00796 (val1.objectId,) = _struct_i.unpack(str[start:end]) 00797 start = end 00798 end += 4 00799 (length,) = _struct_I.unpack(str[start:end]) 00800 start = end 00801 end += length 00802 val1.description = str[start:end] 00803 _v25 = val1.image 00804 _v26 = _v25.header 00805 start = end 00806 end += 4 00807 (_v26.seq,) = _struct_I.unpack(str[start:end]) 00808 _v27 = _v26.stamp 00809 _x = _v27 00810 start = end 00811 end += 8 00812 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00813 start = end 00814 end += 4 00815 (length,) = _struct_I.unpack(str[start:end]) 00816 start = end 00817 end += length 00818 _v26.frame_id = str[start:end] 00819 _x = _v25 00820 start = end 00821 end += 8 00822 (_x.height, _x.width,) = _struct_2I.unpack(str[start:end]) 00823 start = end 00824 end += 4 00825 (length,) = _struct_I.unpack(str[start:end]) 00826 start = end 00827 end += length 00828 _v25.encoding = str[start:end] 00829 _x = _v25 00830 start = end 00831 end += 5 00832 (_x.is_bigendian, _x.step,) = _struct_BI.unpack(str[start:end]) 00833 start = end 00834 end += 4 00835 (length,) = _struct_I.unpack(str[start:end]) 00836 start = end 00837 end += length 00838 _v25.data = str[start:end] 00839 self.img.append(val1) 00840 start = end 00841 end += 4 00842 (length,) = _struct_I.unpack(str[start:end]) 00843 self.mesh = [] 00844 for i in range(0, length): 00845 val1 = srs_object_database_msgs.msg.mesh() 00846 start = end 00847 end += 4 00848 (val1.objectId,) = _struct_i.unpack(str[start:end]) 00849 _v28 = val1.mesh 00850 start = end 00851 end += 1 00852 (_v28.type,) = _struct_b.unpack(str[start:end]) 00853 start = end 00854 end += 4 00855 (length,) = _struct_I.unpack(str[start:end]) 00856 pattern = '<%sd'%length 00857 start = end 00858 end += struct.calcsize(pattern) 00859 _v28.dimensions = struct.unpack(pattern, str[start:end]) 00860 start = end 00861 end += 4 00862 (length,) = _struct_I.unpack(str[start:end]) 00863 pattern = '<%si'%length 00864 start = end 00865 end += struct.calcsize(pattern) 00866 _v28.triangles = struct.unpack(pattern, str[start:end]) 00867 start = end 00868 end += 4 00869 (length,) = _struct_I.unpack(str[start:end]) 00870 _v28.vertices = [] 00871 for i in range(0, length): 00872 val3 = geometry_msgs.msg.Point() 00873 _x = val3 00874 start = end 00875 end += 24 00876 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00877 _v28.vertices.append(val3) 00878 start = end 00879 end += 4 00880 (length,) = _struct_I.unpack(str[start:end]) 00881 start = end 00882 end += length 00883 val1.type = str[start:end] 00884 start = end 00885 end += 4 00886 (length,) = _struct_I.unpack(str[start:end]) 00887 start = end 00888 end += length 00889 val1.data = str[start:end] 00890 self.mesh.append(val1) 00891 start = end 00892 end += 4 00893 (length,) = _struct_I.unpack(str[start:end]) 00894 self.pcl = [] 00895 for i in range(0, length): 00896 val1 = srs_object_database_msgs.msg.pcl() 00897 start = end 00898 end += 4 00899 (val1.objectId,) = _struct_i.unpack(str[start:end]) 00900 _v29 = val1.pcl 00901 _v30 = _v29.header 00902 start = end 00903 end += 4 00904 (_v30.seq,) = _struct_I.unpack(str[start:end]) 00905 _v31 = _v30.stamp 00906 _x = _v31 00907 start = end 00908 end += 8 00909 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00910 start = end 00911 end += 4 00912 (length,) = _struct_I.unpack(str[start:end]) 00913 start = end 00914 end += length 00915 _v30.frame_id = str[start:end] 00916 _x = _v29 00917 start = end 00918 end += 8 00919 (_x.height, _x.width,) = _struct_2I.unpack(str[start:end]) 00920 start = end 00921 end += 4 00922 (length,) = _struct_I.unpack(str[start:end]) 00923 _v29.fields = [] 00924 for i in range(0, length): 00925 val3 = sensor_msgs.msg.PointField() 00926 start = end 00927 end += 4 00928 (length,) = _struct_I.unpack(str[start:end]) 00929 start = end 00930 end += length 00931 val3.name = str[start:end] 00932 _x = val3 00933 start = end 00934 end += 9 00935 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end]) 00936 _v29.fields.append(val3) 00937 _x = _v29 00938 start = end 00939 end += 9 00940 (_x.is_bigendian, _x.point_step, _x.row_step,) = _struct_B2I.unpack(str[start:end]) 00941 _v29.is_bigendian = bool(_v29.is_bigendian) 00942 start = end 00943 end += 4 00944 (length,) = _struct_I.unpack(str[start:end]) 00945 start = end 00946 end += length 00947 _v29.data = str[start:end] 00948 start = end 00949 end += 1 00950 (_v29.is_dense,) = _struct_B.unpack(str[start:end]) 00951 _v29.is_dense = bool(_v29.is_dense) 00952 self.pcl.append(val1) 00953 start = end 00954 end += 4 00955 (length,) = _struct_I.unpack(str[start:end]) 00956 self.surf = [] 00957 for i in range(0, length): 00958 val1 = srs_object_database_msgs.msg.surf() 00959 start = end 00960 end += 4 00961 (val1.objectId,) = _struct_i.unpack(str[start:end]) 00962 _v32 = val1.surf 00963 _v33 = _v32.header 00964 start = end 00965 end += 4 00966 (_v33.seq,) = _struct_I.unpack(str[start:end]) 00967 _v34 = _v33.stamp 00968 _x = _v34 00969 start = end 00970 end += 8 00971 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00972 start = end 00973 end += 4 00974 (length,) = _struct_I.unpack(str[start:end]) 00975 start = end 00976 end += length 00977 _v33.frame_id = str[start:end] 00978 _x = _v32 00979 start = end 00980 end += 8 00981 (_x.height, _x.width,) = _struct_2I.unpack(str[start:end]) 00982 start = end 00983 end += 4 00984 (length,) = _struct_I.unpack(str[start:end]) 00985 _v32.fields = [] 00986 for i in range(0, length): 00987 val3 = sensor_msgs.msg.PointField() 00988 start = end 00989 end += 4 00990 (length,) = _struct_I.unpack(str[start:end]) 00991 start = end 00992 end += length 00993 val3.name = str[start:end] 00994 _x = val3 00995 start = end 00996 end += 9 00997 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end]) 00998 _v32.fields.append(val3) 00999 _x = _v32 01000 start = end 01001 end += 9 01002 (_x.is_bigendian, _x.point_step, _x.row_step,) = _struct_B2I.unpack(str[start:end]) 01003 _v32.is_bigendian = bool(_v32.is_bigendian) 01004 start = end 01005 end += 4 01006 (length,) = _struct_I.unpack(str[start:end]) 01007 start = end 01008 end += length 01009 _v32.data = str[start:end] 01010 start = end 01011 end += 1 01012 (_v32.is_dense,) = _struct_B.unpack(str[start:end]) 01013 _v32.is_dense = bool(_v32.is_dense) 01014 _v35 = val1.bounding_box 01015 _v36 = _v35.header 01016 start = end 01017 end += 4 01018 (_v36.seq,) = _struct_I.unpack(str[start:end]) 01019 _v37 = _v36.stamp 01020 _x = _v37 01021 start = end 01022 end += 8 01023 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 01024 start = end 01025 end += 4 01026 (length,) = _struct_I.unpack(str[start:end]) 01027 start = end 01028 end += length 01029 _v36.frame_id = str[start:end] 01030 _x = _v35 01031 start = end 01032 end += 8 01033 (_x.height, _x.width,) = _struct_2I.unpack(str[start:end]) 01034 start = end 01035 end += 4 01036 (length,) = _struct_I.unpack(str[start:end]) 01037 _v35.fields = [] 01038 for i in range(0, length): 01039 val3 = sensor_msgs.msg.PointField() 01040 start = end 01041 end += 4 01042 (length,) = _struct_I.unpack(str[start:end]) 01043 start = end 01044 end += length 01045 val3.name = str[start:end] 01046 _x = val3 01047 start = end 01048 end += 9 01049 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end]) 01050 _v35.fields.append(val3) 01051 _x = _v35 01052 start = end 01053 end += 9 01054 (_x.is_bigendian, _x.point_step, _x.row_step,) = _struct_B2I.unpack(str[start:end]) 01055 _v35.is_bigendian = bool(_v35.is_bigendian) 01056 start = end 01057 end += 4 01058 (length,) = _struct_I.unpack(str[start:end]) 01059 start = end 01060 end += length 01061 _v35.data = str[start:end] 01062 start = end 01063 end += 1 01064 (_v35.is_dense,) = _struct_B.unpack(str[start:end]) 01065 _v35.is_dense = bool(_v35.is_dense) 01066 _v38 = val1.coord_frame 01067 _v39 = _v38.position 01068 _x = _v39 01069 start = end 01070 end += 24 01071 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 01072 _v40 = _v38.orientation 01073 _x = _v40 01074 start = end 01075 end += 32 01076 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 01077 self.surf.append(val1) 01078 start = end 01079 end += 4 01080 (length,) = _struct_I.unpack(str[start:end]) 01081 self.grasp = [] 01082 for i in range(0, length): 01083 val1 = srs_object_database_msgs.msg.grasp() 01084 start = end 01085 end += 4 01086 (val1.objectId,) = _struct_i.unpack(str[start:end]) 01087 start = end 01088 end += 4 01089 (length,) = _struct_I.unpack(str[start:end]) 01090 start = end 01091 end += length 01092 val1.Objecttype = str[start:end] 01093 start = end 01094 end += 4 01095 (length,) = _struct_I.unpack(str[start:end]) 01096 start = end 01097 end += length 01098 val1.pose = str[start:end] 01099 start = end 01100 end += 4 01101 (length,) = _struct_I.unpack(str[start:end]) 01102 start = end 01103 end += length 01104 val1.fileDescription = str[start:end] 01105 start = end 01106 end += 4 01107 (length,) = _struct_I.unpack(str[start:end]) 01108 start = end 01109 end += length 01110 val1.bs = str[start:end] 01111 start = end 01112 end += 4 01113 (val1.size,) = _struct_i.unpack(str[start:end]) 01114 self.grasp.append(val1) 01115 start = end 01116 end += 4 01117 (length,) = _struct_I.unpack(str[start:end]) 01118 self.urdf = [] 01119 for i in range(0, length): 01120 val1 = srs_object_database_msgs.msg.urdf() 01121 start = end 01122 end += 4 01123 (val1.objectId,) = _struct_i.unpack(str[start:end]) 01124 start = end 01125 end += 4 01126 (length,) = _struct_I.unpack(str[start:end]) 01127 val1.markers = [] 01128 for i in range(0, length): 01129 val2 = visualization_msgs.msg.Marker() 01130 _v41 = val2.header 01131 start = end 01132 end += 4 01133 (_v41.seq,) = _struct_I.unpack(str[start:end]) 01134 _v42 = _v41.stamp 01135 _x = _v42 01136 start = end 01137 end += 8 01138 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 01139 start = end 01140 end += 4 01141 (length,) = _struct_I.unpack(str[start:end]) 01142 start = end 01143 end += length 01144 _v41.frame_id = str[start:end] 01145 start = end 01146 end += 4 01147 (length,) = _struct_I.unpack(str[start:end]) 01148 start = end 01149 end += length 01150 val2.ns = str[start:end] 01151 _x = val2 01152 start = end 01153 end += 12 01154 (_x.id, _x.type, _x.action,) = _struct_3i.unpack(str[start:end]) 01155 _v43 = val2.pose 01156 _v44 = _v43.position 01157 _x = _v44 01158 start = end 01159 end += 24 01160 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 01161 _v45 = _v43.orientation 01162 _x = _v45 01163 start = end 01164 end += 32 01165 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 01166 _v46 = val2.scale 01167 _x = _v46 01168 start = end 01169 end += 24 01170 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 01171 _v47 = val2.color 01172 _x = _v47 01173 start = end 01174 end += 16 01175 (_x.r, _x.g, _x.b, _x.a,) = _struct_4f.unpack(str[start:end]) 01176 _v48 = val2.lifetime 01177 _x = _v48 01178 start = end 01179 end += 8 01180 (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end]) 01181 start = end 01182 end += 1 01183 (val2.frame_locked,) = _struct_B.unpack(str[start:end]) 01184 val2.frame_locked = bool(val2.frame_locked) 01185 start = end 01186 end += 4 01187 (length,) = _struct_I.unpack(str[start:end]) 01188 val2.points = [] 01189 for i in range(0, length): 01190 val3 = geometry_msgs.msg.Point() 01191 _x = val3 01192 start = end 01193 end += 24 01194 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 01195 val2.points.append(val3) 01196 start = end 01197 end += 4 01198 (length,) = _struct_I.unpack(str[start:end]) 01199 val2.colors = [] 01200 for i in range(0, length): 01201 val3 = std_msgs.msg.ColorRGBA() 01202 _x = val3 01203 start = end 01204 end += 16 01205 (_x.r, _x.g, _x.b, _x.a,) = _struct_4f.unpack(str[start:end]) 01206 val2.colors.append(val3) 01207 start = end 01208 end += 4 01209 (length,) = _struct_I.unpack(str[start:end]) 01210 start = end 01211 end += length 01212 val2.text = str[start:end] 01213 start = end 01214 end += 4 01215 (length,) = _struct_I.unpack(str[start:end]) 01216 start = end 01217 end += length 01218 val2.mesh_resource = str[start:end] 01219 start = end 01220 end += 1 01221 (val2.mesh_use_embedded_materials,) = _struct_B.unpack(str[start:end]) 01222 val2.mesh_use_embedded_materials = bool(val2.mesh_use_embedded_materials) 01223 val1.markers.append(val2) 01224 self.urdf.append(val1) 01225 return self 01226 except struct.error as e: 01227 raise roslib.message.DeserializationError(e) #most likely buffer underfill 01228 01229 01230 def serialize_numpy(self, buff, numpy): 01231 """ 01232 serialize message with numpy array types into buffer 01233 @param buff: buffer 01234 @type buff: StringIO 01235 @param numpy: numpy python module 01236 @type numpy module 01237 """ 01238 try: 01239 _x = self.return_response 01240 length = len(_x) 01241 buff.write(struct.pack('<I%ss'%length, length, _x)) 01242 length = len(self.img) 01243 buff.write(_struct_I.pack(length)) 01244 for val1 in self.img: 01245 buff.write(_struct_i.pack(val1.objectId)) 01246 _x = val1.description 01247 length = len(_x) 01248 buff.write(struct.pack('<I%ss'%length, length, _x)) 01249 _v49 = val1.image 01250 _v50 = _v49.header 01251 buff.write(_struct_I.pack(_v50.seq)) 01252 _v51 = _v50.stamp 01253 _x = _v51 01254 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 01255 _x = _v50.frame_id 01256 length = len(_x) 01257 buff.write(struct.pack('<I%ss'%length, length, _x)) 01258 _x = _v49 01259 buff.write(_struct_2I.pack(_x.height, _x.width)) 01260 _x = _v49.encoding 01261 length = len(_x) 01262 buff.write(struct.pack('<I%ss'%length, length, _x)) 01263 _x = _v49 01264 buff.write(_struct_BI.pack(_x.is_bigendian, _x.step)) 01265 _x = _v49.data 01266 length = len(_x) 01267 # - if encoded as a list instead, serialize as bytes instead of string 01268 if type(_x) in [list, tuple]: 01269 buff.write(struct.pack('<I%sB'%length, length, *_x)) 01270 else: 01271 buff.write(struct.pack('<I%ss'%length, length, _x)) 01272 length = len(self.mesh) 01273 buff.write(_struct_I.pack(length)) 01274 for val1 in self.mesh: 01275 buff.write(_struct_i.pack(val1.objectId)) 01276 _v52 = val1.mesh 01277 buff.write(_struct_b.pack(_v52.type)) 01278 length = len(_v52.dimensions) 01279 buff.write(_struct_I.pack(length)) 01280 pattern = '<%sd'%length 01281 buff.write(_v52.dimensions.tostring()) 01282 length = len(_v52.triangles) 01283 buff.write(_struct_I.pack(length)) 01284 pattern = '<%si'%length 01285 buff.write(_v52.triangles.tostring()) 01286 length = len(_v52.vertices) 01287 buff.write(_struct_I.pack(length)) 01288 for val3 in _v52.vertices: 01289 _x = val3 01290 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 01291 _x = val1.type 01292 length = len(_x) 01293 buff.write(struct.pack('<I%ss'%length, length, _x)) 01294 _x = val1.data 01295 length = len(_x) 01296 # - if encoded as a list instead, serialize as bytes instead of string 01297 if type(_x) in [list, tuple]: 01298 buff.write(struct.pack('<I%sB'%length, length, *_x)) 01299 else: 01300 buff.write(struct.pack('<I%ss'%length, length, _x)) 01301 length = len(self.pcl) 01302 buff.write(_struct_I.pack(length)) 01303 for val1 in self.pcl: 01304 buff.write(_struct_i.pack(val1.objectId)) 01305 _v53 = val1.pcl 01306 _v54 = _v53.header 01307 buff.write(_struct_I.pack(_v54.seq)) 01308 _v55 = _v54.stamp 01309 _x = _v55 01310 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 01311 _x = _v54.frame_id 01312 length = len(_x) 01313 buff.write(struct.pack('<I%ss'%length, length, _x)) 01314 _x = _v53 01315 buff.write(_struct_2I.pack(_x.height, _x.width)) 01316 length = len(_v53.fields) 01317 buff.write(_struct_I.pack(length)) 01318 for val3 in _v53.fields: 01319 _x = val3.name 01320 length = len(_x) 01321 buff.write(struct.pack('<I%ss'%length, length, _x)) 01322 _x = val3 01323 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count)) 01324 _x = _v53 01325 buff.write(_struct_B2I.pack(_x.is_bigendian, _x.point_step, _x.row_step)) 01326 _x = _v53.data 01327 length = len(_x) 01328 # - if encoded as a list instead, serialize as bytes instead of string 01329 if type(_x) in [list, tuple]: 01330 buff.write(struct.pack('<I%sB'%length, length, *_x)) 01331 else: 01332 buff.write(struct.pack('<I%ss'%length, length, _x)) 01333 buff.write(_struct_B.pack(_v53.is_dense)) 01334 length = len(self.surf) 01335 buff.write(_struct_I.pack(length)) 01336 for val1 in self.surf: 01337 buff.write(_struct_i.pack(val1.objectId)) 01338 _v56 = val1.surf 01339 _v57 = _v56.header 01340 buff.write(_struct_I.pack(_v57.seq)) 01341 _v58 = _v57.stamp 01342 _x = _v58 01343 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 01344 _x = _v57.frame_id 01345 length = len(_x) 01346 buff.write(struct.pack('<I%ss'%length, length, _x)) 01347 _x = _v56 01348 buff.write(_struct_2I.pack(_x.height, _x.width)) 01349 length = len(_v56.fields) 01350 buff.write(_struct_I.pack(length)) 01351 for val3 in _v56.fields: 01352 _x = val3.name 01353 length = len(_x) 01354 buff.write(struct.pack('<I%ss'%length, length, _x)) 01355 _x = val3 01356 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count)) 01357 _x = _v56 01358 buff.write(_struct_B2I.pack(_x.is_bigendian, _x.point_step, _x.row_step)) 01359 _x = _v56.data 01360 length = len(_x) 01361 # - if encoded as a list instead, serialize as bytes instead of string 01362 if type(_x) in [list, tuple]: 01363 buff.write(struct.pack('<I%sB'%length, length, *_x)) 01364 else: 01365 buff.write(struct.pack('<I%ss'%length, length, _x)) 01366 buff.write(_struct_B.pack(_v56.is_dense)) 01367 _v59 = val1.bounding_box 01368 _v60 = _v59.header 01369 buff.write(_struct_I.pack(_v60.seq)) 01370 _v61 = _v60.stamp 01371 _x = _v61 01372 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 01373 _x = _v60.frame_id 01374 length = len(_x) 01375 buff.write(struct.pack('<I%ss'%length, length, _x)) 01376 _x = _v59 01377 buff.write(_struct_2I.pack(_x.height, _x.width)) 01378 length = len(_v59.fields) 01379 buff.write(_struct_I.pack(length)) 01380 for val3 in _v59.fields: 01381 _x = val3.name 01382 length = len(_x) 01383 buff.write(struct.pack('<I%ss'%length, length, _x)) 01384 _x = val3 01385 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count)) 01386 _x = _v59 01387 buff.write(_struct_B2I.pack(_x.is_bigendian, _x.point_step, _x.row_step)) 01388 _x = _v59.data 01389 length = len(_x) 01390 # - if encoded as a list instead, serialize as bytes instead of string 01391 if type(_x) in [list, tuple]: 01392 buff.write(struct.pack('<I%sB'%length, length, *_x)) 01393 else: 01394 buff.write(struct.pack('<I%ss'%length, length, _x)) 01395 buff.write(_struct_B.pack(_v59.is_dense)) 01396 _v62 = val1.coord_frame 01397 _v63 = _v62.position 01398 _x = _v63 01399 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 01400 _v64 = _v62.orientation 01401 _x = _v64 01402 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 01403 length = len(self.grasp) 01404 buff.write(_struct_I.pack(length)) 01405 for val1 in self.grasp: 01406 buff.write(_struct_i.pack(val1.objectId)) 01407 _x = val1.Objecttype 01408 length = len(_x) 01409 buff.write(struct.pack('<I%ss'%length, length, _x)) 01410 _x = val1.pose 01411 length = len(_x) 01412 buff.write(struct.pack('<I%ss'%length, length, _x)) 01413 _x = val1.fileDescription 01414 length = len(_x) 01415 buff.write(struct.pack('<I%ss'%length, length, _x)) 01416 _x = val1.bs 01417 length = len(_x) 01418 # - if encoded as a list instead, serialize as bytes instead of string 01419 if type(_x) in [list, tuple]: 01420 buff.write(struct.pack('<I%sB'%length, length, *_x)) 01421 else: 01422 buff.write(struct.pack('<I%ss'%length, length, _x)) 01423 buff.write(_struct_i.pack(val1.size)) 01424 length = len(self.urdf) 01425 buff.write(_struct_I.pack(length)) 01426 for val1 in self.urdf: 01427 buff.write(_struct_i.pack(val1.objectId)) 01428 length = len(val1.markers) 01429 buff.write(_struct_I.pack(length)) 01430 for val2 in val1.markers: 01431 _v65 = val2.header 01432 buff.write(_struct_I.pack(_v65.seq)) 01433 _v66 = _v65.stamp 01434 _x = _v66 01435 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 01436 _x = _v65.frame_id 01437 length = len(_x) 01438 buff.write(struct.pack('<I%ss'%length, length, _x)) 01439 _x = val2.ns 01440 length = len(_x) 01441 buff.write(struct.pack('<I%ss'%length, length, _x)) 01442 _x = val2 01443 buff.write(_struct_3i.pack(_x.id, _x.type, _x.action)) 01444 _v67 = val2.pose 01445 _v68 = _v67.position 01446 _x = _v68 01447 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 01448 _v69 = _v67.orientation 01449 _x = _v69 01450 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 01451 _v70 = val2.scale 01452 _x = _v70 01453 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 01454 _v71 = val2.color 01455 _x = _v71 01456 buff.write(_struct_4f.pack(_x.r, _x.g, _x.b, _x.a)) 01457 _v72 = val2.lifetime 01458 _x = _v72 01459 buff.write(_struct_2i.pack(_x.secs, _x.nsecs)) 01460 buff.write(_struct_B.pack(val2.frame_locked)) 01461 length = len(val2.points) 01462 buff.write(_struct_I.pack(length)) 01463 for val3 in val2.points: 01464 _x = val3 01465 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 01466 length = len(val2.colors) 01467 buff.write(_struct_I.pack(length)) 01468 for val3 in val2.colors: 01469 _x = val3 01470 buff.write(_struct_4f.pack(_x.r, _x.g, _x.b, _x.a)) 01471 _x = val2.text 01472 length = len(_x) 01473 buff.write(struct.pack('<I%ss'%length, length, _x)) 01474 _x = val2.mesh_resource 01475 length = len(_x) 01476 buff.write(struct.pack('<I%ss'%length, length, _x)) 01477 buff.write(_struct_B.pack(val2.mesh_use_embedded_materials)) 01478 except struct.error as se: self._check_types(se) 01479 except TypeError as te: self._check_types(te) 01480 01481 def deserialize_numpy(self, str, numpy): 01482 """ 01483 unpack serialized message in str into this message instance using numpy for array types 01484 @param str: byte array of serialized message 01485 @type str: str 01486 @param numpy: numpy python module 01487 @type numpy: module 01488 """ 01489 try: 01490 end = 0 01491 start = end 01492 end += 4 01493 (length,) = _struct_I.unpack(str[start:end]) 01494 start = end 01495 end += length 01496 self.return_response = str[start:end] 01497 start = end 01498 end += 4 01499 (length,) = _struct_I.unpack(str[start:end]) 01500 self.img = [] 01501 for i in range(0, length): 01502 val1 = srs_object_database_msgs.msg.img() 01503 start = end 01504 end += 4 01505 (val1.objectId,) = _struct_i.unpack(str[start:end]) 01506 start = end 01507 end += 4 01508 (length,) = _struct_I.unpack(str[start:end]) 01509 start = end 01510 end += length 01511 val1.description = str[start:end] 01512 _v73 = val1.image 01513 _v74 = _v73.header 01514 start = end 01515 end += 4 01516 (_v74.seq,) = _struct_I.unpack(str[start:end]) 01517 _v75 = _v74.stamp 01518 _x = _v75 01519 start = end 01520 end += 8 01521 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 01522 start = end 01523 end += 4 01524 (length,) = _struct_I.unpack(str[start:end]) 01525 start = end 01526 end += length 01527 _v74.frame_id = str[start:end] 01528 _x = _v73 01529 start = end 01530 end += 8 01531 (_x.height, _x.width,) = _struct_2I.unpack(str[start:end]) 01532 start = end 01533 end += 4 01534 (length,) = _struct_I.unpack(str[start:end]) 01535 start = end 01536 end += length 01537 _v73.encoding = str[start:end] 01538 _x = _v73 01539 start = end 01540 end += 5 01541 (_x.is_bigendian, _x.step,) = _struct_BI.unpack(str[start:end]) 01542 start = end 01543 end += 4 01544 (length,) = _struct_I.unpack(str[start:end]) 01545 start = end 01546 end += length 01547 _v73.data = str[start:end] 01548 self.img.append(val1) 01549 start = end 01550 end += 4 01551 (length,) = _struct_I.unpack(str[start:end]) 01552 self.mesh = [] 01553 for i in range(0, length): 01554 val1 = srs_object_database_msgs.msg.mesh() 01555 start = end 01556 end += 4 01557 (val1.objectId,) = _struct_i.unpack(str[start:end]) 01558 _v76 = val1.mesh 01559 start = end 01560 end += 1 01561 (_v76.type,) = _struct_b.unpack(str[start:end]) 01562 start = end 01563 end += 4 01564 (length,) = _struct_I.unpack(str[start:end]) 01565 pattern = '<%sd'%length 01566 start = end 01567 end += struct.calcsize(pattern) 01568 _v76.dimensions = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length) 01569 start = end 01570 end += 4 01571 (length,) = _struct_I.unpack(str[start:end]) 01572 pattern = '<%si'%length 01573 start = end 01574 end += struct.calcsize(pattern) 01575 _v76.triangles = numpy.frombuffer(str[start:end], dtype=numpy.int32, count=length) 01576 start = end 01577 end += 4 01578 (length,) = _struct_I.unpack(str[start:end]) 01579 _v76.vertices = [] 01580 for i in range(0, length): 01581 val3 = geometry_msgs.msg.Point() 01582 _x = val3 01583 start = end 01584 end += 24 01585 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 01586 _v76.vertices.append(val3) 01587 start = end 01588 end += 4 01589 (length,) = _struct_I.unpack(str[start:end]) 01590 start = end 01591 end += length 01592 val1.type = str[start:end] 01593 start = end 01594 end += 4 01595 (length,) = _struct_I.unpack(str[start:end]) 01596 start = end 01597 end += length 01598 val1.data = str[start:end] 01599 self.mesh.append(val1) 01600 start = end 01601 end += 4 01602 (length,) = _struct_I.unpack(str[start:end]) 01603 self.pcl = [] 01604 for i in range(0, length): 01605 val1 = srs_object_database_msgs.msg.pcl() 01606 start = end 01607 end += 4 01608 (val1.objectId,) = _struct_i.unpack(str[start:end]) 01609 _v77 = val1.pcl 01610 _v78 = _v77.header 01611 start = end 01612 end += 4 01613 (_v78.seq,) = _struct_I.unpack(str[start:end]) 01614 _v79 = _v78.stamp 01615 _x = _v79 01616 start = end 01617 end += 8 01618 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 01619 start = end 01620 end += 4 01621 (length,) = _struct_I.unpack(str[start:end]) 01622 start = end 01623 end += length 01624 _v78.frame_id = str[start:end] 01625 _x = _v77 01626 start = end 01627 end += 8 01628 (_x.height, _x.width,) = _struct_2I.unpack(str[start:end]) 01629 start = end 01630 end += 4 01631 (length,) = _struct_I.unpack(str[start:end]) 01632 _v77.fields = [] 01633 for i in range(0, length): 01634 val3 = sensor_msgs.msg.PointField() 01635 start = end 01636 end += 4 01637 (length,) = _struct_I.unpack(str[start:end]) 01638 start = end 01639 end += length 01640 val3.name = str[start:end] 01641 _x = val3 01642 start = end 01643 end += 9 01644 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end]) 01645 _v77.fields.append(val3) 01646 _x = _v77 01647 start = end 01648 end += 9 01649 (_x.is_bigendian, _x.point_step, _x.row_step,) = _struct_B2I.unpack(str[start:end]) 01650 _v77.is_bigendian = bool(_v77.is_bigendian) 01651 start = end 01652 end += 4 01653 (length,) = _struct_I.unpack(str[start:end]) 01654 start = end 01655 end += length 01656 _v77.data = str[start:end] 01657 start = end 01658 end += 1 01659 (_v77.is_dense,) = _struct_B.unpack(str[start:end]) 01660 _v77.is_dense = bool(_v77.is_dense) 01661 self.pcl.append(val1) 01662 start = end 01663 end += 4 01664 (length,) = _struct_I.unpack(str[start:end]) 01665 self.surf = [] 01666 for i in range(0, length): 01667 val1 = srs_object_database_msgs.msg.surf() 01668 start = end 01669 end += 4 01670 (val1.objectId,) = _struct_i.unpack(str[start:end]) 01671 _v80 = val1.surf 01672 _v81 = _v80.header 01673 start = end 01674 end += 4 01675 (_v81.seq,) = _struct_I.unpack(str[start:end]) 01676 _v82 = _v81.stamp 01677 _x = _v82 01678 start = end 01679 end += 8 01680 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 01681 start = end 01682 end += 4 01683 (length,) = _struct_I.unpack(str[start:end]) 01684 start = end 01685 end += length 01686 _v81.frame_id = str[start:end] 01687 _x = _v80 01688 start = end 01689 end += 8 01690 (_x.height, _x.width,) = _struct_2I.unpack(str[start:end]) 01691 start = end 01692 end += 4 01693 (length,) = _struct_I.unpack(str[start:end]) 01694 _v80.fields = [] 01695 for i in range(0, length): 01696 val3 = sensor_msgs.msg.PointField() 01697 start = end 01698 end += 4 01699 (length,) = _struct_I.unpack(str[start:end]) 01700 start = end 01701 end += length 01702 val3.name = str[start:end] 01703 _x = val3 01704 start = end 01705 end += 9 01706 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end]) 01707 _v80.fields.append(val3) 01708 _x = _v80 01709 start = end 01710 end += 9 01711 (_x.is_bigendian, _x.point_step, _x.row_step,) = _struct_B2I.unpack(str[start:end]) 01712 _v80.is_bigendian = bool(_v80.is_bigendian) 01713 start = end 01714 end += 4 01715 (length,) = _struct_I.unpack(str[start:end]) 01716 start = end 01717 end += length 01718 _v80.data = str[start:end] 01719 start = end 01720 end += 1 01721 (_v80.is_dense,) = _struct_B.unpack(str[start:end]) 01722 _v80.is_dense = bool(_v80.is_dense) 01723 _v83 = val1.bounding_box 01724 _v84 = _v83.header 01725 start = end 01726 end += 4 01727 (_v84.seq,) = _struct_I.unpack(str[start:end]) 01728 _v85 = _v84.stamp 01729 _x = _v85 01730 start = end 01731 end += 8 01732 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 01733 start = end 01734 end += 4 01735 (length,) = _struct_I.unpack(str[start:end]) 01736 start = end 01737 end += length 01738 _v84.frame_id = str[start:end] 01739 _x = _v83 01740 start = end 01741 end += 8 01742 (_x.height, _x.width,) = _struct_2I.unpack(str[start:end]) 01743 start = end 01744 end += 4 01745 (length,) = _struct_I.unpack(str[start:end]) 01746 _v83.fields = [] 01747 for i in range(0, length): 01748 val3 = sensor_msgs.msg.PointField() 01749 start = end 01750 end += 4 01751 (length,) = _struct_I.unpack(str[start:end]) 01752 start = end 01753 end += length 01754 val3.name = str[start:end] 01755 _x = val3 01756 start = end 01757 end += 9 01758 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end]) 01759 _v83.fields.append(val3) 01760 _x = _v83 01761 start = end 01762 end += 9 01763 (_x.is_bigendian, _x.point_step, _x.row_step,) = _struct_B2I.unpack(str[start:end]) 01764 _v83.is_bigendian = bool(_v83.is_bigendian) 01765 start = end 01766 end += 4 01767 (length,) = _struct_I.unpack(str[start:end]) 01768 start = end 01769 end += length 01770 _v83.data = str[start:end] 01771 start = end 01772 end += 1 01773 (_v83.is_dense,) = _struct_B.unpack(str[start:end]) 01774 _v83.is_dense = bool(_v83.is_dense) 01775 _v86 = val1.coord_frame 01776 _v87 = _v86.position 01777 _x = _v87 01778 start = end 01779 end += 24 01780 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 01781 _v88 = _v86.orientation 01782 _x = _v88 01783 start = end 01784 end += 32 01785 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 01786 self.surf.append(val1) 01787 start = end 01788 end += 4 01789 (length,) = _struct_I.unpack(str[start:end]) 01790 self.grasp = [] 01791 for i in range(0, length): 01792 val1 = srs_object_database_msgs.msg.grasp() 01793 start = end 01794 end += 4 01795 (val1.objectId,) = _struct_i.unpack(str[start:end]) 01796 start = end 01797 end += 4 01798 (length,) = _struct_I.unpack(str[start:end]) 01799 start = end 01800 end += length 01801 val1.Objecttype = str[start:end] 01802 start = end 01803 end += 4 01804 (length,) = _struct_I.unpack(str[start:end]) 01805 start = end 01806 end += length 01807 val1.pose = str[start:end] 01808 start = end 01809 end += 4 01810 (length,) = _struct_I.unpack(str[start:end]) 01811 start = end 01812 end += length 01813 val1.fileDescription = str[start:end] 01814 start = end 01815 end += 4 01816 (length,) = _struct_I.unpack(str[start:end]) 01817 start = end 01818 end += length 01819 val1.bs = str[start:end] 01820 start = end 01821 end += 4 01822 (val1.size,) = _struct_i.unpack(str[start:end]) 01823 self.grasp.append(val1) 01824 start = end 01825 end += 4 01826 (length,) = _struct_I.unpack(str[start:end]) 01827 self.urdf = [] 01828 for i in range(0, length): 01829 val1 = srs_object_database_msgs.msg.urdf() 01830 start = end 01831 end += 4 01832 (val1.objectId,) = _struct_i.unpack(str[start:end]) 01833 start = end 01834 end += 4 01835 (length,) = _struct_I.unpack(str[start:end]) 01836 val1.markers = [] 01837 for i in range(0, length): 01838 val2 = visualization_msgs.msg.Marker() 01839 _v89 = val2.header 01840 start = end 01841 end += 4 01842 (_v89.seq,) = _struct_I.unpack(str[start:end]) 01843 _v90 = _v89.stamp 01844 _x = _v90 01845 start = end 01846 end += 8 01847 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 01848 start = end 01849 end += 4 01850 (length,) = _struct_I.unpack(str[start:end]) 01851 start = end 01852 end += length 01853 _v89.frame_id = str[start:end] 01854 start = end 01855 end += 4 01856 (length,) = _struct_I.unpack(str[start:end]) 01857 start = end 01858 end += length 01859 val2.ns = str[start:end] 01860 _x = val2 01861 start = end 01862 end += 12 01863 (_x.id, _x.type, _x.action,) = _struct_3i.unpack(str[start:end]) 01864 _v91 = val2.pose 01865 _v92 = _v91.position 01866 _x = _v92 01867 start = end 01868 end += 24 01869 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 01870 _v93 = _v91.orientation 01871 _x = _v93 01872 start = end 01873 end += 32 01874 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 01875 _v94 = val2.scale 01876 _x = _v94 01877 start = end 01878 end += 24 01879 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 01880 _v95 = val2.color 01881 _x = _v95 01882 start = end 01883 end += 16 01884 (_x.r, _x.g, _x.b, _x.a,) = _struct_4f.unpack(str[start:end]) 01885 _v96 = val2.lifetime 01886 _x = _v96 01887 start = end 01888 end += 8 01889 (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end]) 01890 start = end 01891 end += 1 01892 (val2.frame_locked,) = _struct_B.unpack(str[start:end]) 01893 val2.frame_locked = bool(val2.frame_locked) 01894 start = end 01895 end += 4 01896 (length,) = _struct_I.unpack(str[start:end]) 01897 val2.points = [] 01898 for i in range(0, length): 01899 val3 = geometry_msgs.msg.Point() 01900 _x = val3 01901 start = end 01902 end += 24 01903 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 01904 val2.points.append(val3) 01905 start = end 01906 end += 4 01907 (length,) = _struct_I.unpack(str[start:end]) 01908 val2.colors = [] 01909 for i in range(0, length): 01910 val3 = std_msgs.msg.ColorRGBA() 01911 _x = val3 01912 start = end 01913 end += 16 01914 (_x.r, _x.g, _x.b, _x.a,) = _struct_4f.unpack(str[start:end]) 01915 val2.colors.append(val3) 01916 start = end 01917 end += 4 01918 (length,) = _struct_I.unpack(str[start:end]) 01919 start = end 01920 end += length 01921 val2.text = str[start:end] 01922 start = end 01923 end += 4 01924 (length,) = _struct_I.unpack(str[start:end]) 01925 start = end 01926 end += length 01927 val2.mesh_resource = str[start:end] 01928 start = end 01929 end += 1 01930 (val2.mesh_use_embedded_materials,) = _struct_B.unpack(str[start:end]) 01931 val2.mesh_use_embedded_materials = bool(val2.mesh_use_embedded_materials) 01932 val1.markers.append(val2) 01933 self.urdf.append(val1) 01934 return self 01935 except struct.error as e: 01936 raise roslib.message.DeserializationError(e) #most likely buffer underfill 01937 01938 _struct_I = roslib.message.struct_I 01939 _struct_IBI = struct.Struct("<IBI") 01940 _struct_b = struct.Struct("<b") 01941 _struct_i = struct.Struct("<i") 01942 _struct_BI = struct.Struct("<BI") 01943 _struct_2i = struct.Struct("<2i") 01944 _struct_3i = struct.Struct("<3i") 01945 _struct_B = struct.Struct("<B") 01946 _struct_B2I = struct.Struct("<B2I") 01947 _struct_4f = struct.Struct("<4f") 01948 _struct_4d = struct.Struct("<4d") 01949 _struct_2I = struct.Struct("<2I") 01950 _struct_3d = struct.Struct("<3d") 01951 class GetData(roslib.message.ServiceDefinition): 01952 _type = 'srs_object_database_msgs/GetData' 01953 _md5sum = '0fb0cdcd6e164bc63c7643c4232719fe' 01954 _request_class = GetDataRequest 01955 _response_class = GetDataResponse