$search
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 = "1833ab78ebd84c0f7388e8e77a3a4e20" 00012 _type = "wpa_supplicant_node/AssociateActionFeedback" 00013 _has_header = True #flag to mark the presence of a Header object 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 SecurityProperties wpa 00096 SecurityProperties rsn 00097 00098 #InformationElement []ies 00099 #InformationElement []beacon_ies 00100 # flags 00101 # tsf 00102 # age 00103 00104 ================================================================================ 00105 MSG: wpa_supplicant_node/SecurityProperties 00106 string[] key_mgmt 00107 string[] group 00108 string[] pairwise 00109 00110 """ 00111 __slots__ = ['header','status','feedback'] 00112 _slot_types = ['Header','actionlib_msgs/GoalStatus','wpa_supplicant_node/AssociateFeedback'] 00113 00114 def __init__(self, *args, **kwds): 00115 """ 00116 Constructor. Any message fields that are implicitly/explicitly 00117 set to None will be assigned a default value. The recommend 00118 use is keyword arguments as this is more robust to future message 00119 changes. You cannot mix in-order arguments and keyword arguments. 00120 00121 The available fields are: 00122 header,status,feedback 00123 00124 @param args: complete set of field values, in .msg order 00125 @param kwds: use keyword arguments corresponding to message field names 00126 to set specific fields. 00127 """ 00128 if args or kwds: 00129 super(AssociateActionFeedback, self).__init__(*args, **kwds) 00130 #message fields cannot be None, assign default values for those that are 00131 if self.header is None: 00132 self.header = std_msgs.msg._Header.Header() 00133 if self.status is None: 00134 self.status = actionlib_msgs.msg.GoalStatus() 00135 if self.feedback is None: 00136 self.feedback = wpa_supplicant_node.msg.AssociateFeedback() 00137 else: 00138 self.header = std_msgs.msg._Header.Header() 00139 self.status = actionlib_msgs.msg.GoalStatus() 00140 self.feedback = wpa_supplicant_node.msg.AssociateFeedback() 00141 00142 def _get_types(self): 00143 """ 00144 internal API method 00145 """ 00146 return self._slot_types 00147 00148 def serialize(self, buff): 00149 """ 00150 serialize message into buffer 00151 @param buff: buffer 00152 @type buff: StringIO 00153 """ 00154 try: 00155 _x = self 00156 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00157 _x = self.header.frame_id 00158 length = len(_x) 00159 buff.write(struct.pack('<I%ss'%length, length, _x)) 00160 _x = self 00161 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00162 _x = self.status.goal_id.id 00163 length = len(_x) 00164 buff.write(struct.pack('<I%ss'%length, length, _x)) 00165 buff.write(_struct_B.pack(self.status.status)) 00166 _x = self.status.text 00167 length = len(_x) 00168 buff.write(struct.pack('<I%ss'%length, length, _x)) 00169 _x = self 00170 buff.write(_struct_B2I.pack(_x.feedback.associated, _x.feedback.bss.stamp.secs, _x.feedback.bss.stamp.nsecs)) 00171 _x = self.feedback.bss.ssid 00172 length = len(_x) 00173 buff.write(struct.pack('<I%ss'%length, length, _x)) 00174 _x = self.feedback.bss.bssid 00175 # - if encoded as a list instead, serialize as bytes instead of string 00176 if type(_x) in [list, tuple]: 00177 buff.write(_struct_6B.pack(*_x)) 00178 else: 00179 buff.write(_struct_6s.pack(_x)) 00180 _x = self 00181 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)) 00182 length = len(self.feedback.bss.wpa.key_mgmt) 00183 buff.write(_struct_I.pack(length)) 00184 for val1 in self.feedback.bss.wpa.key_mgmt: 00185 length = len(val1) 00186 buff.write(struct.pack('<I%ss'%length, length, val1)) 00187 length = len(self.feedback.bss.wpa.group) 00188 buff.write(_struct_I.pack(length)) 00189 for val1 in self.feedback.bss.wpa.group: 00190 length = len(val1) 00191 buff.write(struct.pack('<I%ss'%length, length, val1)) 00192 length = len(self.feedback.bss.wpa.pairwise) 00193 buff.write(_struct_I.pack(length)) 00194 for val1 in self.feedback.bss.wpa.pairwise: 00195 length = len(val1) 00196 buff.write(struct.pack('<I%ss'%length, length, val1)) 00197 length = len(self.feedback.bss.rsn.key_mgmt) 00198 buff.write(_struct_I.pack(length)) 00199 for val1 in self.feedback.bss.rsn.key_mgmt: 00200 length = len(val1) 00201 buff.write(struct.pack('<I%ss'%length, length, val1)) 00202 length = len(self.feedback.bss.rsn.group) 00203 buff.write(_struct_I.pack(length)) 00204 for val1 in self.feedback.bss.rsn.group: 00205 length = len(val1) 00206 buff.write(struct.pack('<I%ss'%length, length, val1)) 00207 length = len(self.feedback.bss.rsn.pairwise) 00208 buff.write(_struct_I.pack(length)) 00209 for val1 in self.feedback.bss.rsn.pairwise: 00210 length = len(val1) 00211 buff.write(struct.pack('<I%ss'%length, length, val1)) 00212 except struct.error as se: self._check_types(se) 00213 except TypeError as te: self._check_types(te) 00214 00215 def deserialize(self, str): 00216 """ 00217 unpack serialized message in str into this message instance 00218 @param str: byte array of serialized message 00219 @type str: str 00220 """ 00221 try: 00222 if self.header is None: 00223 self.header = std_msgs.msg._Header.Header() 00224 if self.status is None: 00225 self.status = actionlib_msgs.msg.GoalStatus() 00226 if self.feedback is None: 00227 self.feedback = wpa_supplicant_node.msg.AssociateFeedback() 00228 end = 0 00229 _x = self 00230 start = end 00231 end += 12 00232 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00233 start = end 00234 end += 4 00235 (length,) = _struct_I.unpack(str[start:end]) 00236 start = end 00237 end += length 00238 self.header.frame_id = str[start:end] 00239 _x = self 00240 start = end 00241 end += 8 00242 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00243 start = end 00244 end += 4 00245 (length,) = _struct_I.unpack(str[start:end]) 00246 start = end 00247 end += length 00248 self.status.goal_id.id = str[start:end] 00249 start = end 00250 end += 1 00251 (self.status.status,) = _struct_B.unpack(str[start:end]) 00252 start = end 00253 end += 4 00254 (length,) = _struct_I.unpack(str[start:end]) 00255 start = end 00256 end += length 00257 self.status.text = str[start:end] 00258 _x = self 00259 start = end 00260 end += 9 00261 (_x.feedback.associated, _x.feedback.bss.stamp.secs, _x.feedback.bss.stamp.nsecs,) = _struct_B2I.unpack(str[start:end]) 00262 self.feedback.associated = bool(self.feedback.associated) 00263 start = end 00264 end += 4 00265 (length,) = _struct_I.unpack(str[start:end]) 00266 start = end 00267 end += length 00268 self.feedback.bss.ssid = str[start:end] 00269 start = end 00270 end += 6 00271 self.feedback.bss.bssid = str[start:end] 00272 _x = self 00273 start = end 00274 end += 20 00275 (_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]) 00276 start = end 00277 end += 4 00278 (length,) = _struct_I.unpack(str[start:end]) 00279 self.feedback.bss.wpa.key_mgmt = [] 00280 for i in range(0, length): 00281 start = end 00282 end += 4 00283 (length,) = _struct_I.unpack(str[start:end]) 00284 start = end 00285 end += length 00286 val1 = str[start:end] 00287 self.feedback.bss.wpa.key_mgmt.append(val1) 00288 start = end 00289 end += 4 00290 (length,) = _struct_I.unpack(str[start:end]) 00291 self.feedback.bss.wpa.group = [] 00292 for i in range(0, length): 00293 start = end 00294 end += 4 00295 (length,) = _struct_I.unpack(str[start:end]) 00296 start = end 00297 end += length 00298 val1 = str[start:end] 00299 self.feedback.bss.wpa.group.append(val1) 00300 start = end 00301 end += 4 00302 (length,) = _struct_I.unpack(str[start:end]) 00303 self.feedback.bss.wpa.pairwise = [] 00304 for i in range(0, length): 00305 start = end 00306 end += 4 00307 (length,) = _struct_I.unpack(str[start:end]) 00308 start = end 00309 end += length 00310 val1 = str[start:end] 00311 self.feedback.bss.wpa.pairwise.append(val1) 00312 start = end 00313 end += 4 00314 (length,) = _struct_I.unpack(str[start:end]) 00315 self.feedback.bss.rsn.key_mgmt = [] 00316 for i in range(0, length): 00317 start = end 00318 end += 4 00319 (length,) = _struct_I.unpack(str[start:end]) 00320 start = end 00321 end += length 00322 val1 = str[start:end] 00323 self.feedback.bss.rsn.key_mgmt.append(val1) 00324 start = end 00325 end += 4 00326 (length,) = _struct_I.unpack(str[start:end]) 00327 self.feedback.bss.rsn.group = [] 00328 for i in range(0, length): 00329 start = end 00330 end += 4 00331 (length,) = _struct_I.unpack(str[start:end]) 00332 start = end 00333 end += length 00334 val1 = str[start:end] 00335 self.feedback.bss.rsn.group.append(val1) 00336 start = end 00337 end += 4 00338 (length,) = _struct_I.unpack(str[start:end]) 00339 self.feedback.bss.rsn.pairwise = [] 00340 for i in range(0, length): 00341 start = end 00342 end += 4 00343 (length,) = _struct_I.unpack(str[start:end]) 00344 start = end 00345 end += length 00346 val1 = str[start:end] 00347 self.feedback.bss.rsn.pairwise.append(val1) 00348 return self 00349 except struct.error as e: 00350 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00351 00352 00353 def serialize_numpy(self, buff, numpy): 00354 """ 00355 serialize message with numpy array types into buffer 00356 @param buff: buffer 00357 @type buff: StringIO 00358 @param numpy: numpy python module 00359 @type numpy module 00360 """ 00361 try: 00362 _x = self 00363 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00364 _x = self.header.frame_id 00365 length = len(_x) 00366 buff.write(struct.pack('<I%ss'%length, length, _x)) 00367 _x = self 00368 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00369 _x = self.status.goal_id.id 00370 length = len(_x) 00371 buff.write(struct.pack('<I%ss'%length, length, _x)) 00372 buff.write(_struct_B.pack(self.status.status)) 00373 _x = self.status.text 00374 length = len(_x) 00375 buff.write(struct.pack('<I%ss'%length, length, _x)) 00376 _x = self 00377 buff.write(_struct_B2I.pack(_x.feedback.associated, _x.feedback.bss.stamp.secs, _x.feedback.bss.stamp.nsecs)) 00378 _x = self.feedback.bss.ssid 00379 length = len(_x) 00380 buff.write(struct.pack('<I%ss'%length, length, _x)) 00381 _x = self.feedback.bss.bssid 00382 # - if encoded as a list instead, serialize as bytes instead of string 00383 if type(_x) in [list, tuple]: 00384 buff.write(_struct_6B.pack(*_x)) 00385 else: 00386 buff.write(_struct_6s.pack(_x)) 00387 _x = self 00388 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)) 00389 length = len(self.feedback.bss.wpa.key_mgmt) 00390 buff.write(_struct_I.pack(length)) 00391 for val1 in self.feedback.bss.wpa.key_mgmt: 00392 length = len(val1) 00393 buff.write(struct.pack('<I%ss'%length, length, val1)) 00394 length = len(self.feedback.bss.wpa.group) 00395 buff.write(_struct_I.pack(length)) 00396 for val1 in self.feedback.bss.wpa.group: 00397 length = len(val1) 00398 buff.write(struct.pack('<I%ss'%length, length, val1)) 00399 length = len(self.feedback.bss.wpa.pairwise) 00400 buff.write(_struct_I.pack(length)) 00401 for val1 in self.feedback.bss.wpa.pairwise: 00402 length = len(val1) 00403 buff.write(struct.pack('<I%ss'%length, length, val1)) 00404 length = len(self.feedback.bss.rsn.key_mgmt) 00405 buff.write(_struct_I.pack(length)) 00406 for val1 in self.feedback.bss.rsn.key_mgmt: 00407 length = len(val1) 00408 buff.write(struct.pack('<I%ss'%length, length, val1)) 00409 length = len(self.feedback.bss.rsn.group) 00410 buff.write(_struct_I.pack(length)) 00411 for val1 in self.feedback.bss.rsn.group: 00412 length = len(val1) 00413 buff.write(struct.pack('<I%ss'%length, length, val1)) 00414 length = len(self.feedback.bss.rsn.pairwise) 00415 buff.write(_struct_I.pack(length)) 00416 for val1 in self.feedback.bss.rsn.pairwise: 00417 length = len(val1) 00418 buff.write(struct.pack('<I%ss'%length, length, val1)) 00419 except struct.error as se: self._check_types(se) 00420 except TypeError as te: self._check_types(te) 00421 00422 def deserialize_numpy(self, str, numpy): 00423 """ 00424 unpack serialized message in str into this message instance using numpy for array types 00425 @param str: byte array of serialized message 00426 @type str: str 00427 @param numpy: numpy python module 00428 @type numpy: module 00429 """ 00430 try: 00431 if self.header is None: 00432 self.header = std_msgs.msg._Header.Header() 00433 if self.status is None: 00434 self.status = actionlib_msgs.msg.GoalStatus() 00435 if self.feedback is None: 00436 self.feedback = wpa_supplicant_node.msg.AssociateFeedback() 00437 end = 0 00438 _x = self 00439 start = end 00440 end += 12 00441 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00442 start = end 00443 end += 4 00444 (length,) = _struct_I.unpack(str[start:end]) 00445 start = end 00446 end += length 00447 self.header.frame_id = str[start:end] 00448 _x = self 00449 start = end 00450 end += 8 00451 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00452 start = end 00453 end += 4 00454 (length,) = _struct_I.unpack(str[start:end]) 00455 start = end 00456 end += length 00457 self.status.goal_id.id = str[start:end] 00458 start = end 00459 end += 1 00460 (self.status.status,) = _struct_B.unpack(str[start:end]) 00461 start = end 00462 end += 4 00463 (length,) = _struct_I.unpack(str[start:end]) 00464 start = end 00465 end += length 00466 self.status.text = str[start:end] 00467 _x = self 00468 start = end 00469 end += 9 00470 (_x.feedback.associated, _x.feedback.bss.stamp.secs, _x.feedback.bss.stamp.nsecs,) = _struct_B2I.unpack(str[start:end]) 00471 self.feedback.associated = bool(self.feedback.associated) 00472 start = end 00473 end += 4 00474 (length,) = _struct_I.unpack(str[start:end]) 00475 start = end 00476 end += length 00477 self.feedback.bss.ssid = str[start:end] 00478 start = end 00479 end += 6 00480 self.feedback.bss.bssid = str[start:end] 00481 _x = self 00482 start = end 00483 end += 20 00484 (_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]) 00485 start = end 00486 end += 4 00487 (length,) = _struct_I.unpack(str[start:end]) 00488 self.feedback.bss.wpa.key_mgmt = [] 00489 for i in range(0, length): 00490 start = end 00491 end += 4 00492 (length,) = _struct_I.unpack(str[start:end]) 00493 start = end 00494 end += length 00495 val1 = str[start:end] 00496 self.feedback.bss.wpa.key_mgmt.append(val1) 00497 start = end 00498 end += 4 00499 (length,) = _struct_I.unpack(str[start:end]) 00500 self.feedback.bss.wpa.group = [] 00501 for i in range(0, length): 00502 start = end 00503 end += 4 00504 (length,) = _struct_I.unpack(str[start:end]) 00505 start = end 00506 end += length 00507 val1 = str[start:end] 00508 self.feedback.bss.wpa.group.append(val1) 00509 start = end 00510 end += 4 00511 (length,) = _struct_I.unpack(str[start:end]) 00512 self.feedback.bss.wpa.pairwise = [] 00513 for i in range(0, length): 00514 start = end 00515 end += 4 00516 (length,) = _struct_I.unpack(str[start:end]) 00517 start = end 00518 end += length 00519 val1 = str[start:end] 00520 self.feedback.bss.wpa.pairwise.append(val1) 00521 start = end 00522 end += 4 00523 (length,) = _struct_I.unpack(str[start:end]) 00524 self.feedback.bss.rsn.key_mgmt = [] 00525 for i in range(0, length): 00526 start = end 00527 end += 4 00528 (length,) = _struct_I.unpack(str[start:end]) 00529 start = end 00530 end += length 00531 val1 = str[start:end] 00532 self.feedback.bss.rsn.key_mgmt.append(val1) 00533 start = end 00534 end += 4 00535 (length,) = _struct_I.unpack(str[start:end]) 00536 self.feedback.bss.rsn.group = [] 00537 for i in range(0, length): 00538 start = end 00539 end += 4 00540 (length,) = _struct_I.unpack(str[start:end]) 00541 start = end 00542 end += length 00543 val1 = str[start:end] 00544 self.feedback.bss.rsn.group.append(val1) 00545 start = end 00546 end += 4 00547 (length,) = _struct_I.unpack(str[start:end]) 00548 self.feedback.bss.rsn.pairwise = [] 00549 for i in range(0, length): 00550 start = end 00551 end += 4 00552 (length,) = _struct_I.unpack(str[start:end]) 00553 start = end 00554 end += length 00555 val1 = str[start:end] 00556 self.feedback.bss.rsn.pairwise.append(val1) 00557 return self 00558 except struct.error as e: 00559 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00560 00561 _struct_I = roslib.message.struct_I 00562 _struct_6B = struct.Struct("<6B") 00563 _struct_B = struct.Struct("<B") 00564 _struct_i2h3i = struct.Struct("<i2h3i") 00565 _struct_3I = struct.Struct("<3I") 00566 _struct_6s = struct.Struct("<6s") 00567 _struct_B2I = struct.Struct("<B2I") 00568 _struct_2I = struct.Struct("<2I")