00001 """autogenerated by genpy from rfid_behaviors/NextBestVantageRequest.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 NextBestVantageRequest(genpy.Message):
00009 _md5sum = "e219e553f9c3911b13f8a1a8a255c076"
00010 _type = "rfid_behaviors/NextBestVantageRequest"
00011 _has_header = False
00012 _full_text = """string tagid
00013
00014 """
00015 __slots__ = ['tagid']
00016 _slot_types = ['string']
00017
00018 def __init__(self, *args, **kwds):
00019 """
00020 Constructor. Any message fields that are implicitly/explicitly
00021 set to None will be assigned a default value. The recommend
00022 use is keyword arguments as this is more robust to future message
00023 changes. You cannot mix in-order arguments and keyword arguments.
00024
00025 The available fields are:
00026 tagid
00027
00028 :param args: complete set of field values, in .msg order
00029 :param kwds: use keyword arguments corresponding to message field names
00030 to set specific fields.
00031 """
00032 if args or kwds:
00033 super(NextBestVantageRequest, self).__init__(*args, **kwds)
00034
00035 if self.tagid is None:
00036 self.tagid = ''
00037 else:
00038 self.tagid = ''
00039
00040 def _get_types(self):
00041 """
00042 internal API method
00043 """
00044 return self._slot_types
00045
00046 def serialize(self, buff):
00047 """
00048 serialize message into buffer
00049 :param buff: buffer, ``StringIO``
00050 """
00051 try:
00052 _x = self.tagid
00053 length = len(_x)
00054 if python3 or type(_x) == unicode:
00055 _x = _x.encode('utf-8')
00056 length = len(_x)
00057 buff.write(struct.pack('<I%ss'%length, length, _x))
00058 except struct.error as se: self._check_types(se)
00059 except TypeError as te: self._check_types(te)
00060
00061 def deserialize(self, str):
00062 """
00063 unpack serialized message in str into this message instance
00064 :param str: byte array of serialized message, ``str``
00065 """
00066 try:
00067 end = 0
00068 start = end
00069 end += 4
00070 (length,) = _struct_I.unpack(str[start:end])
00071 start = end
00072 end += length
00073 if python3:
00074 self.tagid = str[start:end].decode('utf-8')
00075 else:
00076 self.tagid = str[start:end]
00077 return self
00078 except struct.error as e:
00079 raise genpy.DeserializationError(e)
00080
00081
00082 def serialize_numpy(self, buff, numpy):
00083 """
00084 serialize message with numpy array types into buffer
00085 :param buff: buffer, ``StringIO``
00086 :param numpy: numpy python module
00087 """
00088 try:
00089 _x = self.tagid
00090 length = len(_x)
00091 if python3 or type(_x) == unicode:
00092 _x = _x.encode('utf-8')
00093 length = len(_x)
00094 buff.write(struct.pack('<I%ss'%length, length, _x))
00095 except struct.error as se: self._check_types(se)
00096 except TypeError as te: self._check_types(te)
00097
00098 def deserialize_numpy(self, str, numpy):
00099 """
00100 unpack serialized message in str into this message instance using numpy for array types
00101 :param str: byte array of serialized message, ``str``
00102 :param numpy: numpy python module
00103 """
00104 try:
00105 end = 0
00106 start = end
00107 end += 4
00108 (length,) = _struct_I.unpack(str[start:end])
00109 start = end
00110 end += length
00111 if python3:
00112 self.tagid = str[start:end].decode('utf-8')
00113 else:
00114 self.tagid = str[start:end]
00115 return self
00116 except struct.error as e:
00117 raise genpy.DeserializationError(e)
00118
00119 _struct_I = genpy.struct_I
00120 """autogenerated by genpy from rfid_behaviors/NextBestVantageResponse.msg. Do not edit."""
00121 import sys
00122 python3 = True if sys.hexversion > 0x03000000 else False
00123 import genpy
00124 import struct
00125
00126 import geometry_msgs.msg
00127 import std_msgs.msg
00128
00129 class NextBestVantageResponse(genpy.Message):
00130 _md5sum = "cd3f1be3d6e0717a413998421e2b68da"
00131 _type = "rfid_behaviors/NextBestVantageResponse"
00132 _has_header = False
00133 _full_text = """geometry_msgs/PoseStamped best_vantage
00134
00135 ================================================================================
00136 MSG: geometry_msgs/PoseStamped
00137 # A Pose with reference coordinate frame and timestamp
00138 Header header
00139 Pose pose
00140
00141 ================================================================================
00142 MSG: std_msgs/Header
00143 # Standard metadata for higher-level stamped data types.
00144 # This is generally used to communicate timestamped data
00145 # in a particular coordinate frame.
00146 #
00147 # sequence ID: consecutively increasing ID
00148 uint32 seq
00149 #Two-integer timestamp that is expressed as:
00150 # * stamp.secs: seconds (stamp_secs) since epoch
00151 # * stamp.nsecs: nanoseconds since stamp_secs
00152 # time-handling sugar is provided by the client library
00153 time stamp
00154 #Frame this data is associated with
00155 # 0: no frame
00156 # 1: global frame
00157 string frame_id
00158
00159 ================================================================================
00160 MSG: geometry_msgs/Pose
00161 # A representation of pose in free space, composed of postion and orientation.
00162 Point position
00163 Quaternion orientation
00164
00165 ================================================================================
00166 MSG: geometry_msgs/Point
00167 # This contains the position of a point in free space
00168 float64 x
00169 float64 y
00170 float64 z
00171
00172 ================================================================================
00173 MSG: geometry_msgs/Quaternion
00174 # This represents an orientation in free space in quaternion form.
00175
00176 float64 x
00177 float64 y
00178 float64 z
00179 float64 w
00180
00181 """
00182 __slots__ = ['best_vantage']
00183 _slot_types = ['geometry_msgs/PoseStamped']
00184
00185 def __init__(self, *args, **kwds):
00186 """
00187 Constructor. Any message fields that are implicitly/explicitly
00188 set to None will be assigned a default value. The recommend
00189 use is keyword arguments as this is more robust to future message
00190 changes. You cannot mix in-order arguments and keyword arguments.
00191
00192 The available fields are:
00193 best_vantage
00194
00195 :param args: complete set of field values, in .msg order
00196 :param kwds: use keyword arguments corresponding to message field names
00197 to set specific fields.
00198 """
00199 if args or kwds:
00200 super(NextBestVantageResponse, self).__init__(*args, **kwds)
00201
00202 if self.best_vantage is None:
00203 self.best_vantage = geometry_msgs.msg.PoseStamped()
00204 else:
00205 self.best_vantage = geometry_msgs.msg.PoseStamped()
00206
00207 def _get_types(self):
00208 """
00209 internal API method
00210 """
00211 return self._slot_types
00212
00213 def serialize(self, buff):
00214 """
00215 serialize message into buffer
00216 :param buff: buffer, ``StringIO``
00217 """
00218 try:
00219 _x = self
00220 buff.write(_struct_3I.pack(_x.best_vantage.header.seq, _x.best_vantage.header.stamp.secs, _x.best_vantage.header.stamp.nsecs))
00221 _x = self.best_vantage.header.frame_id
00222 length = len(_x)
00223 if python3 or type(_x) == unicode:
00224 _x = _x.encode('utf-8')
00225 length = len(_x)
00226 buff.write(struct.pack('<I%ss'%length, length, _x))
00227 _x = self
00228 buff.write(_struct_7d.pack(_x.best_vantage.pose.position.x, _x.best_vantage.pose.position.y, _x.best_vantage.pose.position.z, _x.best_vantage.pose.orientation.x, _x.best_vantage.pose.orientation.y, _x.best_vantage.pose.orientation.z, _x.best_vantage.pose.orientation.w))
00229 except struct.error as se: self._check_types(se)
00230 except TypeError as te: self._check_types(te)
00231
00232 def deserialize(self, str):
00233 """
00234 unpack serialized message in str into this message instance
00235 :param str: byte array of serialized message, ``str``
00236 """
00237 try:
00238 if self.best_vantage is None:
00239 self.best_vantage = geometry_msgs.msg.PoseStamped()
00240 end = 0
00241 _x = self
00242 start = end
00243 end += 12
00244 (_x.best_vantage.header.seq, _x.best_vantage.header.stamp.secs, _x.best_vantage.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00245 start = end
00246 end += 4
00247 (length,) = _struct_I.unpack(str[start:end])
00248 start = end
00249 end += length
00250 if python3:
00251 self.best_vantage.header.frame_id = str[start:end].decode('utf-8')
00252 else:
00253 self.best_vantage.header.frame_id = str[start:end]
00254 _x = self
00255 start = end
00256 end += 56
00257 (_x.best_vantage.pose.position.x, _x.best_vantage.pose.position.y, _x.best_vantage.pose.position.z, _x.best_vantage.pose.orientation.x, _x.best_vantage.pose.orientation.y, _x.best_vantage.pose.orientation.z, _x.best_vantage.pose.orientation.w,) = _struct_7d.unpack(str[start:end])
00258 return self
00259 except struct.error as e:
00260 raise genpy.DeserializationError(e)
00261
00262
00263 def serialize_numpy(self, buff, numpy):
00264 """
00265 serialize message with numpy array types into buffer
00266 :param buff: buffer, ``StringIO``
00267 :param numpy: numpy python module
00268 """
00269 try:
00270 _x = self
00271 buff.write(_struct_3I.pack(_x.best_vantage.header.seq, _x.best_vantage.header.stamp.secs, _x.best_vantage.header.stamp.nsecs))
00272 _x = self.best_vantage.header.frame_id
00273 length = len(_x)
00274 if python3 or type(_x) == unicode:
00275 _x = _x.encode('utf-8')
00276 length = len(_x)
00277 buff.write(struct.pack('<I%ss'%length, length, _x))
00278 _x = self
00279 buff.write(_struct_7d.pack(_x.best_vantage.pose.position.x, _x.best_vantage.pose.position.y, _x.best_vantage.pose.position.z, _x.best_vantage.pose.orientation.x, _x.best_vantage.pose.orientation.y, _x.best_vantage.pose.orientation.z, _x.best_vantage.pose.orientation.w))
00280 except struct.error as se: self._check_types(se)
00281 except TypeError as te: self._check_types(te)
00282
00283 def deserialize_numpy(self, str, numpy):
00284 """
00285 unpack serialized message in str into this message instance using numpy for array types
00286 :param str: byte array of serialized message, ``str``
00287 :param numpy: numpy python module
00288 """
00289 try:
00290 if self.best_vantage is None:
00291 self.best_vantage = geometry_msgs.msg.PoseStamped()
00292 end = 0
00293 _x = self
00294 start = end
00295 end += 12
00296 (_x.best_vantage.header.seq, _x.best_vantage.header.stamp.secs, _x.best_vantage.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00297 start = end
00298 end += 4
00299 (length,) = _struct_I.unpack(str[start:end])
00300 start = end
00301 end += length
00302 if python3:
00303 self.best_vantage.header.frame_id = str[start:end].decode('utf-8')
00304 else:
00305 self.best_vantage.header.frame_id = str[start:end]
00306 _x = self
00307 start = end
00308 end += 56
00309 (_x.best_vantage.pose.position.x, _x.best_vantage.pose.position.y, _x.best_vantage.pose.position.z, _x.best_vantage.pose.orientation.x, _x.best_vantage.pose.orientation.y, _x.best_vantage.pose.orientation.z, _x.best_vantage.pose.orientation.w,) = _struct_7d.unpack(str[start:end])
00310 return self
00311 except struct.error as e:
00312 raise genpy.DeserializationError(e)
00313
00314 _struct_I = genpy.struct_I
00315 _struct_3I = struct.Struct("<3I")
00316 _struct_7d = struct.Struct("<7d")
00317 class NextBestVantage(object):
00318 _type = 'rfid_behaviors/NextBestVantage'
00319 _md5sum = 'd089b28665bbd390d40adde0ca10b5c2'
00320 _request_class = NextBestVantageRequest
00321 _response_class = NextBestVantageResponse