_RecorderSrv.py
Go to the documentation of this file.
00001 """autogenerated by genpy from rfid_behaviors/RecorderSrvRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 
00008 class RecorderSrvRequest(genpy.Message):
00009   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010   _type = "rfid_behaviors/RecorderSrvRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """
00013 """
00014   __slots__ = []
00015   _slot_types = []
00016 
00017   def __init__(self, *args, **kwds):
00018     """
00019     Constructor. Any message fields that are implicitly/explicitly
00020     set to None will be assigned a default value. The recommend
00021     use is keyword arguments as this is more robust to future message
00022     changes.  You cannot mix in-order arguments and keyword arguments.
00023 
00024     The available fields are:
00025        
00026 
00027     :param args: complete set of field values, in .msg order
00028     :param kwds: use keyword arguments corresponding to message field names
00029     to set specific fields.
00030     """
00031     if args or kwds:
00032       super(RecorderSrvRequest, self).__init__(*args, **kwds)
00033 
00034   def _get_types(self):
00035     """
00036     internal API method
00037     """
00038     return self._slot_types
00039 
00040   def serialize(self, buff):
00041     """
00042     serialize message into buffer
00043     :param buff: buffer, ``StringIO``
00044     """
00045     try:
00046       pass
00047     except struct.error as se: self._check_types(se)
00048     except TypeError as te: self._check_types(te)
00049 
00050   def deserialize(self, str):
00051     """
00052     unpack serialized message in str into this message instance
00053     :param str: byte array of serialized message, ``str``
00054     """
00055     try:
00056       end = 0
00057       return self
00058     except struct.error as e:
00059       raise genpy.DeserializationError(e) #most likely buffer underfill
00060 
00061 
00062   def serialize_numpy(self, buff, numpy):
00063     """
00064     serialize message with numpy array types into buffer
00065     :param buff: buffer, ``StringIO``
00066     :param numpy: numpy python module
00067     """
00068     try:
00069       pass
00070     except struct.error as se: self._check_types(se)
00071     except TypeError as te: self._check_types(te)
00072 
00073   def deserialize_numpy(self, str, numpy):
00074     """
00075     unpack serialized message in str into this message instance using numpy for array types
00076     :param str: byte array of serialized message, ``str``
00077     :param numpy: numpy python module
00078     """
00079     try:
00080       end = 0
00081       return self
00082     except struct.error as e:
00083       raise genpy.DeserializationError(e) #most likely buffer underfill
00084 
00085 _struct_I = genpy.struct_I
00086 """autogenerated by genpy from rfid_behaviors/RecorderSrvResponse.msg. Do not edit."""
00087 import sys
00088 python3 = True if sys.hexversion > 0x03000000 else False
00089 import genpy
00090 import struct
00091 
00092 import geometry_msgs.msg
00093 import hrl_rfid.msg
00094 import rfid_behaviors.msg
00095 import std_msgs.msg
00096 
00097 class RecorderSrvResponse(genpy.Message):
00098   _md5sum = "ad680fe9d09bf0dcda01a6ca84b138bb"
00099   _type = "rfid_behaviors/RecorderSrvResponse"
00100   _has_header = False #flag to mark the presence of a Header object
00101   _full_text = """rfid_behaviors/RecorderReads[] rfid_reads
00102 
00103 ================================================================================
00104 MSG: rfid_behaviors/RecorderReads
00105 hrl_rfid/RFIDread read
00106 geometry_msgs/PoseStamped ps_ant_map
00107 geometry_msgs/PoseStamped ps_base_map
00108 ================================================================================
00109 MSG: hrl_rfid/RFIDread
00110 Header header
00111 string antenna_name
00112 string tagID
00113 int32 rssi
00114 
00115 ================================================================================
00116 MSG: std_msgs/Header
00117 # Standard metadata for higher-level stamped data types.
00118 # This is generally used to communicate timestamped data 
00119 # in a particular coordinate frame.
00120 # 
00121 # sequence ID: consecutively increasing ID 
00122 uint32 seq
00123 #Two-integer timestamp that is expressed as:
00124 # * stamp.secs: seconds (stamp_secs) since epoch
00125 # * stamp.nsecs: nanoseconds since stamp_secs
00126 # time-handling sugar is provided by the client library
00127 time stamp
00128 #Frame this data is associated with
00129 # 0: no frame
00130 # 1: global frame
00131 string frame_id
00132 
00133 ================================================================================
00134 MSG: geometry_msgs/PoseStamped
00135 # A Pose with reference coordinate frame and timestamp
00136 Header header
00137 Pose pose
00138 
00139 ================================================================================
00140 MSG: geometry_msgs/Pose
00141 # A representation of pose in free space, composed of postion and orientation. 
00142 Point position
00143 Quaternion orientation
00144 
00145 ================================================================================
00146 MSG: geometry_msgs/Point
00147 # This contains the position of a point in free space
00148 float64 x
00149 float64 y
00150 float64 z
00151 
00152 ================================================================================
00153 MSG: geometry_msgs/Quaternion
00154 # This represents an orientation in free space in quaternion form.
00155 
00156 float64 x
00157 float64 y
00158 float64 z
00159 float64 w
00160 
00161 """
00162   __slots__ = ['rfid_reads']
00163   _slot_types = ['rfid_behaviors/RecorderReads[]']
00164 
00165   def __init__(self, *args, **kwds):
00166     """
00167     Constructor. Any message fields that are implicitly/explicitly
00168     set to None will be assigned a default value. The recommend
00169     use is keyword arguments as this is more robust to future message
00170     changes.  You cannot mix in-order arguments and keyword arguments.
00171 
00172     The available fields are:
00173        rfid_reads
00174 
00175     :param args: complete set of field values, in .msg order
00176     :param kwds: use keyword arguments corresponding to message field names
00177     to set specific fields.
00178     """
00179     if args or kwds:
00180       super(RecorderSrvResponse, self).__init__(*args, **kwds)
00181       #message fields cannot be None, assign default values for those that are
00182       if self.rfid_reads is None:
00183         self.rfid_reads = []
00184     else:
00185       self.rfid_reads = []
00186 
00187   def _get_types(self):
00188     """
00189     internal API method
00190     """
00191     return self._slot_types
00192 
00193   def serialize(self, buff):
00194     """
00195     serialize message into buffer
00196     :param buff: buffer, ``StringIO``
00197     """
00198     try:
00199       length = len(self.rfid_reads)
00200       buff.write(_struct_I.pack(length))
00201       for val1 in self.rfid_reads:
00202         _v1 = val1.read
00203         _v2 = _v1.header
00204         buff.write(_struct_I.pack(_v2.seq))
00205         _v3 = _v2.stamp
00206         _x = _v3
00207         buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00208         _x = _v2.frame_id
00209         length = len(_x)
00210         if python3 or type(_x) == unicode:
00211           _x = _x.encode('utf-8')
00212           length = len(_x)
00213         buff.write(struct.pack('<I%ss'%length, length, _x))
00214         _x = _v1.antenna_name
00215         length = len(_x)
00216         if python3 or type(_x) == unicode:
00217           _x = _x.encode('utf-8')
00218           length = len(_x)
00219         buff.write(struct.pack('<I%ss'%length, length, _x))
00220         _x = _v1.tagID
00221         length = len(_x)
00222         if python3 or type(_x) == unicode:
00223           _x = _x.encode('utf-8')
00224           length = len(_x)
00225         buff.write(struct.pack('<I%ss'%length, length, _x))
00226         buff.write(_struct_i.pack(_v1.rssi))
00227         _v4 = val1.ps_ant_map
00228         _v5 = _v4.header
00229         buff.write(_struct_I.pack(_v5.seq))
00230         _v6 = _v5.stamp
00231         _x = _v6
00232         buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00233         _x = _v5.frame_id
00234         length = len(_x)
00235         if python3 or type(_x) == unicode:
00236           _x = _x.encode('utf-8')
00237           length = len(_x)
00238         buff.write(struct.pack('<I%ss'%length, length, _x))
00239         _v7 = _v4.pose
00240         _v8 = _v7.position
00241         _x = _v8
00242         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00243         _v9 = _v7.orientation
00244         _x = _v9
00245         buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00246         _v10 = val1.ps_base_map
00247         _v11 = _v10.header
00248         buff.write(_struct_I.pack(_v11.seq))
00249         _v12 = _v11.stamp
00250         _x = _v12
00251         buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00252         _x = _v11.frame_id
00253         length = len(_x)
00254         if python3 or type(_x) == unicode:
00255           _x = _x.encode('utf-8')
00256           length = len(_x)
00257         buff.write(struct.pack('<I%ss'%length, length, _x))
00258         _v13 = _v10.pose
00259         _v14 = _v13.position
00260         _x = _v14
00261         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00262         _v15 = _v13.orientation
00263         _x = _v15
00264         buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00265     except struct.error as se: self._check_types(se)
00266     except TypeError as te: self._check_types(te)
00267 
00268   def deserialize(self, str):
00269     """
00270     unpack serialized message in str into this message instance
00271     :param str: byte array of serialized message, ``str``
00272     """
00273     try:
00274       if self.rfid_reads is None:
00275         self.rfid_reads = None
00276       end = 0
00277       start = end
00278       end += 4
00279       (length,) = _struct_I.unpack(str[start:end])
00280       self.rfid_reads = []
00281       for i in range(0, length):
00282         val1 = rfid_behaviors.msg.RecorderReads()
00283         _v16 = val1.read
00284         _v17 = _v16.header
00285         start = end
00286         end += 4
00287         (_v17.seq,) = _struct_I.unpack(str[start:end])
00288         _v18 = _v17.stamp
00289         _x = _v18
00290         start = end
00291         end += 8
00292         (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00293         start = end
00294         end += 4
00295         (length,) = _struct_I.unpack(str[start:end])
00296         start = end
00297         end += length
00298         if python3:
00299           _v17.frame_id = str[start:end].decode('utf-8')
00300         else:
00301           _v17.frame_id = str[start:end]
00302         start = end
00303         end += 4
00304         (length,) = _struct_I.unpack(str[start:end])
00305         start = end
00306         end += length
00307         if python3:
00308           _v16.antenna_name = str[start:end].decode('utf-8')
00309         else:
00310           _v16.antenna_name = str[start:end]
00311         start = end
00312         end += 4
00313         (length,) = _struct_I.unpack(str[start:end])
00314         start = end
00315         end += length
00316         if python3:
00317           _v16.tagID = str[start:end].decode('utf-8')
00318         else:
00319           _v16.tagID = str[start:end]
00320         start = end
00321         end += 4
00322         (_v16.rssi,) = _struct_i.unpack(str[start:end])
00323         _v19 = val1.ps_ant_map
00324         _v20 = _v19.header
00325         start = end
00326         end += 4
00327         (_v20.seq,) = _struct_I.unpack(str[start:end])
00328         _v21 = _v20.stamp
00329         _x = _v21
00330         start = end
00331         end += 8
00332         (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00333         start = end
00334         end += 4
00335         (length,) = _struct_I.unpack(str[start:end])
00336         start = end
00337         end += length
00338         if python3:
00339           _v20.frame_id = str[start:end].decode('utf-8')
00340         else:
00341           _v20.frame_id = str[start:end]
00342         _v22 = _v19.pose
00343         _v23 = _v22.position
00344         _x = _v23
00345         start = end
00346         end += 24
00347         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00348         _v24 = _v22.orientation
00349         _x = _v24
00350         start = end
00351         end += 32
00352         (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00353         _v25 = val1.ps_base_map
00354         _v26 = _v25.header
00355         start = end
00356         end += 4
00357         (_v26.seq,) = _struct_I.unpack(str[start:end])
00358         _v27 = _v26.stamp
00359         _x = _v27
00360         start = end
00361         end += 8
00362         (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00363         start = end
00364         end += 4
00365         (length,) = _struct_I.unpack(str[start:end])
00366         start = end
00367         end += length
00368         if python3:
00369           _v26.frame_id = str[start:end].decode('utf-8')
00370         else:
00371           _v26.frame_id = str[start:end]
00372         _v28 = _v25.pose
00373         _v29 = _v28.position
00374         _x = _v29
00375         start = end
00376         end += 24
00377         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00378         _v30 = _v28.orientation
00379         _x = _v30
00380         start = end
00381         end += 32
00382         (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00383         self.rfid_reads.append(val1)
00384       return self
00385     except struct.error as e:
00386       raise genpy.DeserializationError(e) #most likely buffer underfill
00387 
00388 
00389   def serialize_numpy(self, buff, numpy):
00390     """
00391     serialize message with numpy array types into buffer
00392     :param buff: buffer, ``StringIO``
00393     :param numpy: numpy python module
00394     """
00395     try:
00396       length = len(self.rfid_reads)
00397       buff.write(_struct_I.pack(length))
00398       for val1 in self.rfid_reads:
00399         _v31 = val1.read
00400         _v32 = _v31.header
00401         buff.write(_struct_I.pack(_v32.seq))
00402         _v33 = _v32.stamp
00403         _x = _v33
00404         buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00405         _x = _v32.frame_id
00406         length = len(_x)
00407         if python3 or type(_x) == unicode:
00408           _x = _x.encode('utf-8')
00409           length = len(_x)
00410         buff.write(struct.pack('<I%ss'%length, length, _x))
00411         _x = _v31.antenna_name
00412         length = len(_x)
00413         if python3 or type(_x) == unicode:
00414           _x = _x.encode('utf-8')
00415           length = len(_x)
00416         buff.write(struct.pack('<I%ss'%length, length, _x))
00417         _x = _v31.tagID
00418         length = len(_x)
00419         if python3 or type(_x) == unicode:
00420           _x = _x.encode('utf-8')
00421           length = len(_x)
00422         buff.write(struct.pack('<I%ss'%length, length, _x))
00423         buff.write(_struct_i.pack(_v31.rssi))
00424         _v34 = val1.ps_ant_map
00425         _v35 = _v34.header
00426         buff.write(_struct_I.pack(_v35.seq))
00427         _v36 = _v35.stamp
00428         _x = _v36
00429         buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00430         _x = _v35.frame_id
00431         length = len(_x)
00432         if python3 or type(_x) == unicode:
00433           _x = _x.encode('utf-8')
00434           length = len(_x)
00435         buff.write(struct.pack('<I%ss'%length, length, _x))
00436         _v37 = _v34.pose
00437         _v38 = _v37.position
00438         _x = _v38
00439         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00440         _v39 = _v37.orientation
00441         _x = _v39
00442         buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00443         _v40 = val1.ps_base_map
00444         _v41 = _v40.header
00445         buff.write(_struct_I.pack(_v41.seq))
00446         _v42 = _v41.stamp
00447         _x = _v42
00448         buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00449         _x = _v41.frame_id
00450         length = len(_x)
00451         if python3 or type(_x) == unicode:
00452           _x = _x.encode('utf-8')
00453           length = len(_x)
00454         buff.write(struct.pack('<I%ss'%length, length, _x))
00455         _v43 = _v40.pose
00456         _v44 = _v43.position
00457         _x = _v44
00458         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00459         _v45 = _v43.orientation
00460         _x = _v45
00461         buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00462     except struct.error as se: self._check_types(se)
00463     except TypeError as te: self._check_types(te)
00464 
00465   def deserialize_numpy(self, str, numpy):
00466     """
00467     unpack serialized message in str into this message instance using numpy for array types
00468     :param str: byte array of serialized message, ``str``
00469     :param numpy: numpy python module
00470     """
00471     try:
00472       if self.rfid_reads is None:
00473         self.rfid_reads = None
00474       end = 0
00475       start = end
00476       end += 4
00477       (length,) = _struct_I.unpack(str[start:end])
00478       self.rfid_reads = []
00479       for i in range(0, length):
00480         val1 = rfid_behaviors.msg.RecorderReads()
00481         _v46 = val1.read
00482         _v47 = _v46.header
00483         start = end
00484         end += 4
00485         (_v47.seq,) = _struct_I.unpack(str[start:end])
00486         _v48 = _v47.stamp
00487         _x = _v48
00488         start = end
00489         end += 8
00490         (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00491         start = end
00492         end += 4
00493         (length,) = _struct_I.unpack(str[start:end])
00494         start = end
00495         end += length
00496         if python3:
00497           _v47.frame_id = str[start:end].decode('utf-8')
00498         else:
00499           _v47.frame_id = str[start:end]
00500         start = end
00501         end += 4
00502         (length,) = _struct_I.unpack(str[start:end])
00503         start = end
00504         end += length
00505         if python3:
00506           _v46.antenna_name = str[start:end].decode('utf-8')
00507         else:
00508           _v46.antenna_name = str[start:end]
00509         start = end
00510         end += 4
00511         (length,) = _struct_I.unpack(str[start:end])
00512         start = end
00513         end += length
00514         if python3:
00515           _v46.tagID = str[start:end].decode('utf-8')
00516         else:
00517           _v46.tagID = str[start:end]
00518         start = end
00519         end += 4
00520         (_v46.rssi,) = _struct_i.unpack(str[start:end])
00521         _v49 = val1.ps_ant_map
00522         _v50 = _v49.header
00523         start = end
00524         end += 4
00525         (_v50.seq,) = _struct_I.unpack(str[start:end])
00526         _v51 = _v50.stamp
00527         _x = _v51
00528         start = end
00529         end += 8
00530         (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00531         start = end
00532         end += 4
00533         (length,) = _struct_I.unpack(str[start:end])
00534         start = end
00535         end += length
00536         if python3:
00537           _v50.frame_id = str[start:end].decode('utf-8')
00538         else:
00539           _v50.frame_id = str[start:end]
00540         _v52 = _v49.pose
00541         _v53 = _v52.position
00542         _x = _v53
00543         start = end
00544         end += 24
00545         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00546         _v54 = _v52.orientation
00547         _x = _v54
00548         start = end
00549         end += 32
00550         (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00551         _v55 = val1.ps_base_map
00552         _v56 = _v55.header
00553         start = end
00554         end += 4
00555         (_v56.seq,) = _struct_I.unpack(str[start:end])
00556         _v57 = _v56.stamp
00557         _x = _v57
00558         start = end
00559         end += 8
00560         (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00561         start = end
00562         end += 4
00563         (length,) = _struct_I.unpack(str[start:end])
00564         start = end
00565         end += length
00566         if python3:
00567           _v56.frame_id = str[start:end].decode('utf-8')
00568         else:
00569           _v56.frame_id = str[start:end]
00570         _v58 = _v55.pose
00571         _v59 = _v58.position
00572         _x = _v59
00573         start = end
00574         end += 24
00575         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00576         _v60 = _v58.orientation
00577         _x = _v60
00578         start = end
00579         end += 32
00580         (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00581         self.rfid_reads.append(val1)
00582       return self
00583     except struct.error as e:
00584       raise genpy.DeserializationError(e) #most likely buffer underfill
00585 
00586 _struct_I = genpy.struct_I
00587 _struct_i = struct.Struct("<i")
00588 _struct_4d = struct.Struct("<4d")
00589 _struct_2I = struct.Struct("<2I")
00590 _struct_3d = struct.Struct("<3d")
00591 class RecorderSrv(object):
00592   _type          = 'rfid_behaviors/RecorderSrv'
00593   _md5sum = 'ad680fe9d09bf0dcda01a6ca84b138bb'
00594   _request_class  = RecorderSrvRequest
00595   _response_class = RecorderSrvResponse


rfid_behaviors
Author(s): Travis Deyle
autogenerated on Wed Nov 27 2013 11:50:14