00001 """autogenerated by genmsg_py from AssociateActionFeedback.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005 import wpa_supplicant_node.msg
00006 import roslib.rostime
00007 import actionlib_msgs.msg
00008 import std_msgs.msg
00009
00010 class AssociateActionFeedback(roslib.message.Message):
00011 _md5sum = "c488893c00253e340db4a1a123c8c813"
00012 _type = "wpa_supplicant_node/AssociateActionFeedback"
00013 _has_header = True
00014 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00015
00016 Header header
00017 actionlib_msgs/GoalStatus status
00018 AssociateFeedback feedback
00019
00020 ================================================================================
00021 MSG: std_msgs/Header
00022 # Standard metadata for higher-level stamped data types.
00023 # This is generally used to communicate timestamped data
00024 # in a particular coordinate frame.
00025 #
00026 # sequence ID: consecutively increasing ID
00027 uint32 seq
00028 #Two-integer timestamp that is expressed as:
00029 # * stamp.secs: seconds (stamp_secs) since epoch
00030 # * stamp.nsecs: nanoseconds since stamp_secs
00031 # time-handling sugar is provided by the client library
00032 time stamp
00033 #Frame this data is associated with
00034 # 0: no frame
00035 # 1: global frame
00036 string frame_id
00037
00038 ================================================================================
00039 MSG: actionlib_msgs/GoalStatus
00040 GoalID goal_id
00041 uint8 status
00042 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00043 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00044 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00045 # and has since completed its execution (Terminal State)
00046 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00047 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00048 # to some failure (Terminal State)
00049 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00050 # because the goal was unattainable or invalid (Terminal State)
00051 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00052 # and has not yet completed execution
00053 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00054 # but the action server has not yet confirmed that the goal is canceled
00055 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00056 # and was successfully cancelled (Terminal State)
00057 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00058 # sent over the wire by an action server
00059
00060 #Allow for the user to associate a string with GoalStatus for debugging
00061 string text
00062
00063
00064 ================================================================================
00065 MSG: actionlib_msgs/GoalID
00066 # The stamp should store the time at which this goal was requested.
00067 # It is used by an action server when it tries to preempt all
00068 # goals that were requested before a certain time
00069 time stamp
00070
00071 # The id provides a way to associate feedback and
00072 # result message with specific goal requests. The id
00073 # specified must be unique.
00074 string id
00075
00076
00077 ================================================================================
00078 MSG: wpa_supplicant_node/AssociateFeedback
00079 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00080 bool associated
00081 Bss bss
00082
00083
00084 ================================================================================
00085 MSG: wpa_supplicant_node/Bss
00086 time stamp
00087 string ssid
00088 uint8[6] bssid
00089 int32 frequency # In MHz
00090 int16 beacon_interval
00091 int16 capabilities
00092 int32 quality
00093 int32 noise
00094 int32 level
00095
00096 #InformationElement []ies
00097 #InformationElement []beacon_ies
00098 # flags
00099 # tsf
00100 # age
00101
00102 """
00103 __slots__ = ['header','status','feedback']
00104 _slot_types = ['Header','actionlib_msgs/GoalStatus','wpa_supplicant_node/AssociateFeedback']
00105
00106 def __init__(self, *args, **kwds):
00107 """
00108 Constructor. Any message fields that are implicitly/explicitly
00109 set to None will be assigned a default value. The recommend
00110 use is keyword arguments as this is more robust to future message
00111 changes. You cannot mix in-order arguments and keyword arguments.
00112
00113 The available fields are:
00114 header,status,feedback
00115
00116 @param args: complete set of field values, in .msg order
00117 @param kwds: use keyword arguments corresponding to message field names
00118 to set specific fields.
00119 """
00120 if args or kwds:
00121 super(AssociateActionFeedback, self).__init__(*args, **kwds)
00122
00123 if self.header is None:
00124 self.header = std_msgs.msg._Header.Header()
00125 if self.status is None:
00126 self.status = actionlib_msgs.msg.GoalStatus()
00127 if self.feedback is None:
00128 self.feedback = wpa_supplicant_node.msg.AssociateFeedback()
00129 else:
00130 self.header = std_msgs.msg._Header.Header()
00131 self.status = actionlib_msgs.msg.GoalStatus()
00132 self.feedback = wpa_supplicant_node.msg.AssociateFeedback()
00133
00134 def _get_types(self):
00135 """
00136 internal API method
00137 """
00138 return self._slot_types
00139
00140 def serialize(self, buff):
00141 """
00142 serialize message into buffer
00143 @param buff: buffer
00144 @type buff: StringIO
00145 """
00146 try:
00147 _x = self
00148 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00149 _x = self.header.frame_id
00150 length = len(_x)
00151 buff.write(struct.pack('<I%ss'%length, length, _x))
00152 _x = self
00153 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00154 _x = self.status.goal_id.id
00155 length = len(_x)
00156 buff.write(struct.pack('<I%ss'%length, length, _x))
00157 buff.write(_struct_B.pack(self.status.status))
00158 _x = self.status.text
00159 length = len(_x)
00160 buff.write(struct.pack('<I%ss'%length, length, _x))
00161 _x = self
00162 buff.write(_struct_B2I.pack(_x.feedback.associated, _x.feedback.bss.stamp.secs, _x.feedback.bss.stamp.nsecs))
00163 _x = self.feedback.bss.ssid
00164 length = len(_x)
00165 buff.write(struct.pack('<I%ss'%length, length, _x))
00166 _x = self.feedback.bss.bssid
00167
00168 if type(_x) in [list, tuple]:
00169 buff.write(_struct_6B.pack(*_x))
00170 else:
00171 buff.write(_struct_6s.pack(_x))
00172 _x = self
00173 buff.write(_struct_i2h3i.pack(_x.feedback.bss.frequency, _x.feedback.bss.beacon_interval, _x.feedback.bss.capabilities, _x.feedback.bss.quality, _x.feedback.bss.noise, _x.feedback.bss.level))
00174 except struct.error, se: self._check_types(se)
00175 except TypeError, te: self._check_types(te)
00176
00177 def deserialize(self, str):
00178 """
00179 unpack serialized message in str into this message instance
00180 @param str: byte array of serialized message
00181 @type str: str
00182 """
00183 try:
00184 if self.header is None:
00185 self.header = std_msgs.msg._Header.Header()
00186 if self.status is None:
00187 self.status = actionlib_msgs.msg.GoalStatus()
00188 if self.feedback is None:
00189 self.feedback = wpa_supplicant_node.msg.AssociateFeedback()
00190 end = 0
00191 _x = self
00192 start = end
00193 end += 12
00194 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00195 start = end
00196 end += 4
00197 (length,) = _struct_I.unpack(str[start:end])
00198 start = end
00199 end += length
00200 self.header.frame_id = str[start:end]
00201 _x = self
00202 start = end
00203 end += 8
00204 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00205 start = end
00206 end += 4
00207 (length,) = _struct_I.unpack(str[start:end])
00208 start = end
00209 end += length
00210 self.status.goal_id.id = str[start:end]
00211 start = end
00212 end += 1
00213 (self.status.status,) = _struct_B.unpack(str[start:end])
00214 start = end
00215 end += 4
00216 (length,) = _struct_I.unpack(str[start:end])
00217 start = end
00218 end += length
00219 self.status.text = str[start:end]
00220 _x = self
00221 start = end
00222 end += 9
00223 (_x.feedback.associated, _x.feedback.bss.stamp.secs, _x.feedback.bss.stamp.nsecs,) = _struct_B2I.unpack(str[start:end])
00224 self.feedback.associated = bool(self.feedback.associated)
00225 start = end
00226 end += 4
00227 (length,) = _struct_I.unpack(str[start:end])
00228 start = end
00229 end += length
00230 self.feedback.bss.ssid = str[start:end]
00231 start = end
00232 end += 6
00233 self.feedback.bss.bssid = str[start:end]
00234 _x = self
00235 start = end
00236 end += 20
00237 (_x.feedback.bss.frequency, _x.feedback.bss.beacon_interval, _x.feedback.bss.capabilities, _x.feedback.bss.quality, _x.feedback.bss.noise, _x.feedback.bss.level,) = _struct_i2h3i.unpack(str[start:end])
00238 return self
00239 except struct.error, e:
00240 raise roslib.message.DeserializationError(e)
00241
00242
00243 def serialize_numpy(self, buff, numpy):
00244 """
00245 serialize message with numpy array types into buffer
00246 @param buff: buffer
00247 @type buff: StringIO
00248 @param numpy: numpy python module
00249 @type numpy module
00250 """
00251 try:
00252 _x = self
00253 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00254 _x = self.header.frame_id
00255 length = len(_x)
00256 buff.write(struct.pack('<I%ss'%length, length, _x))
00257 _x = self
00258 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00259 _x = self.status.goal_id.id
00260 length = len(_x)
00261 buff.write(struct.pack('<I%ss'%length, length, _x))
00262 buff.write(_struct_B.pack(self.status.status))
00263 _x = self.status.text
00264 length = len(_x)
00265 buff.write(struct.pack('<I%ss'%length, length, _x))
00266 _x = self
00267 buff.write(_struct_B2I.pack(_x.feedback.associated, _x.feedback.bss.stamp.secs, _x.feedback.bss.stamp.nsecs))
00268 _x = self.feedback.bss.ssid
00269 length = len(_x)
00270 buff.write(struct.pack('<I%ss'%length, length, _x))
00271 _x = self.feedback.bss.bssid
00272
00273 if type(_x) in [list, tuple]:
00274 buff.write(_struct_6B.pack(*_x))
00275 else:
00276 buff.write(_struct_6s.pack(_x))
00277 _x = self
00278 buff.write(_struct_i2h3i.pack(_x.feedback.bss.frequency, _x.feedback.bss.beacon_interval, _x.feedback.bss.capabilities, _x.feedback.bss.quality, _x.feedback.bss.noise, _x.feedback.bss.level))
00279 except struct.error, se: self._check_types(se)
00280 except TypeError, te: self._check_types(te)
00281
00282 def deserialize_numpy(self, str, numpy):
00283 """
00284 unpack serialized message in str into this message instance using numpy for array types
00285 @param str: byte array of serialized message
00286 @type str: str
00287 @param numpy: numpy python module
00288 @type numpy: module
00289 """
00290 try:
00291 if self.header is None:
00292 self.header = std_msgs.msg._Header.Header()
00293 if self.status is None:
00294 self.status = actionlib_msgs.msg.GoalStatus()
00295 if self.feedback is None:
00296 self.feedback = wpa_supplicant_node.msg.AssociateFeedback()
00297 end = 0
00298 _x = self
00299 start = end
00300 end += 12
00301 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00302 start = end
00303 end += 4
00304 (length,) = _struct_I.unpack(str[start:end])
00305 start = end
00306 end += length
00307 self.header.frame_id = str[start:end]
00308 _x = self
00309 start = end
00310 end += 8
00311 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00312 start = end
00313 end += 4
00314 (length,) = _struct_I.unpack(str[start:end])
00315 start = end
00316 end += length
00317 self.status.goal_id.id = str[start:end]
00318 start = end
00319 end += 1
00320 (self.status.status,) = _struct_B.unpack(str[start:end])
00321 start = end
00322 end += 4
00323 (length,) = _struct_I.unpack(str[start:end])
00324 start = end
00325 end += length
00326 self.status.text = str[start:end]
00327 _x = self
00328 start = end
00329 end += 9
00330 (_x.feedback.associated, _x.feedback.bss.stamp.secs, _x.feedback.bss.stamp.nsecs,) = _struct_B2I.unpack(str[start:end])
00331 self.feedback.associated = bool(self.feedback.associated)
00332 start = end
00333 end += 4
00334 (length,) = _struct_I.unpack(str[start:end])
00335 start = end
00336 end += length
00337 self.feedback.bss.ssid = str[start:end]
00338 start = end
00339 end += 6
00340 self.feedback.bss.bssid = str[start:end]
00341 _x = self
00342 start = end
00343 end += 20
00344 (_x.feedback.bss.frequency, _x.feedback.bss.beacon_interval, _x.feedback.bss.capabilities, _x.feedback.bss.quality, _x.feedback.bss.noise, _x.feedback.bss.level,) = _struct_i2h3i.unpack(str[start:end])
00345 return self
00346 except struct.error, e:
00347 raise roslib.message.DeserializationError(e)
00348
00349 _struct_I = roslib.message.struct_I
00350 _struct_6B = struct.Struct("<6B")
00351 _struct_B = struct.Struct("<B")
00352 _struct_i2h3i = struct.Struct("<i2h3i")
00353 _struct_3I = struct.Struct("<3I")
00354 _struct_6s = struct.Struct("<6s")
00355 _struct_B2I = struct.Struct("<B2I")
00356 _struct_2I = struct.Struct("<2I")