$search
00001 """autogenerated by genmsg_py from ListApplicationsAction.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import application_msgs.msg 00006 import roslib.rostime 00007 import actionlib_msgs.msg 00008 import std_msgs.msg 00009 00010 class ListApplicationsAction(roslib.message.Message): 00011 _md5sum = "f46ab19f200bcb31903c63d7fca3974e" 00012 _type = "application_msgs/ListApplicationsAction" 00013 _has_header = False #flag to mark the presence of a Header object 00014 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00015 00016 ListApplicationsActionGoal action_goal 00017 ListApplicationsActionResult action_result 00018 ListApplicationsActionFeedback action_feedback 00019 00020 ================================================================================ 00021 MSG: application_msgs/ListApplicationsActionGoal 00022 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00023 00024 Header header 00025 actionlib_msgs/GoalID goal_id 00026 ListApplicationsGoal goal 00027 00028 ================================================================================ 00029 MSG: std_msgs/Header 00030 # Standard metadata for higher-level stamped data types. 00031 # This is generally used to communicate timestamped data 00032 # in a particular coordinate frame. 00033 # 00034 # sequence ID: consecutively increasing ID 00035 uint32 seq 00036 #Two-integer timestamp that is expressed as: 00037 # * stamp.secs: seconds (stamp_secs) since epoch 00038 # * stamp.nsecs: nanoseconds since stamp_secs 00039 # time-handling sugar is provided by the client library 00040 time stamp 00041 #Frame this data is associated with 00042 # 0: no frame 00043 # 1: global frame 00044 string frame_id 00045 00046 ================================================================================ 00047 MSG: actionlib_msgs/GoalID 00048 # The stamp should store the time at which this goal was requested. 00049 # It is used by an action server when it tries to preempt all 00050 # goals that were requested before a certain time 00051 time stamp 00052 00053 # The id provides a way to associate feedback and 00054 # result message with specific goal requests. The id 00055 # specified must be unique. 00056 string id 00057 00058 00059 ================================================================================ 00060 MSG: application_msgs/ListApplicationsGoal 00061 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00062 00063 ================================================================================ 00064 MSG: application_msgs/ListApplicationsActionResult 00065 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00066 00067 Header header 00068 actionlib_msgs/GoalStatus status 00069 ListApplicationsResult result 00070 00071 ================================================================================ 00072 MSG: actionlib_msgs/GoalStatus 00073 GoalID goal_id 00074 uint8 status 00075 uint8 PENDING = 0 # The goal has yet to be processed by the action server 00076 uint8 ACTIVE = 1 # The goal is currently being processed by the action server 00077 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing 00078 # and has since completed its execution (Terminal State) 00079 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State) 00080 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due 00081 # to some failure (Terminal State) 00082 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed, 00083 # because the goal was unattainable or invalid (Terminal State) 00084 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing 00085 # and has not yet completed execution 00086 uint8 RECALLING = 7 # The goal received a cancel request before it started executing, 00087 # but the action server has not yet confirmed that the goal is canceled 00088 uint8 RECALLED = 8 # The goal received a cancel request before it started executing 00089 # and was successfully cancelled (Terminal State) 00090 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be 00091 # sent over the wire by an action server 00092 00093 #Allow for the user to associate a string with GoalStatus for debugging 00094 string text 00095 00096 00097 ================================================================================ 00098 MSG: application_msgs/ListApplicationsResult 00099 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00100 string[] application_name 00101 string[] application_status 00102 bool[] daemonize 00103 00104 ================================================================================ 00105 MSG: application_msgs/ListApplicationsActionFeedback 00106 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00107 00108 Header header 00109 actionlib_msgs/GoalStatus status 00110 ListApplicationsFeedback feedback 00111 00112 ================================================================================ 00113 MSG: application_msgs/ListApplicationsFeedback 00114 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00115 00116 00117 """ 00118 __slots__ = ['action_goal','action_result','action_feedback'] 00119 _slot_types = ['application_msgs/ListApplicationsActionGoal','application_msgs/ListApplicationsActionResult','application_msgs/ListApplicationsActionFeedback'] 00120 00121 def __init__(self, *args, **kwds): 00122 """ 00123 Constructor. Any message fields that are implicitly/explicitly 00124 set to None will be assigned a default value. The recommend 00125 use is keyword arguments as this is more robust to future message 00126 changes. You cannot mix in-order arguments and keyword arguments. 00127 00128 The available fields are: 00129 action_goal,action_result,action_feedback 00130 00131 @param args: complete set of field values, in .msg order 00132 @param kwds: use keyword arguments corresponding to message field names 00133 to set specific fields. 00134 """ 00135 if args or kwds: 00136 super(ListApplicationsAction, self).__init__(*args, **kwds) 00137 #message fields cannot be None, assign default values for those that are 00138 if self.action_goal is None: 00139 self.action_goal = application_msgs.msg.ListApplicationsActionGoal() 00140 if self.action_result is None: 00141 self.action_result = application_msgs.msg.ListApplicationsActionResult() 00142 if self.action_feedback is None: 00143 self.action_feedback = application_msgs.msg.ListApplicationsActionFeedback() 00144 else: 00145 self.action_goal = application_msgs.msg.ListApplicationsActionGoal() 00146 self.action_result = application_msgs.msg.ListApplicationsActionResult() 00147 self.action_feedback = application_msgs.msg.ListApplicationsActionFeedback() 00148 00149 def _get_types(self): 00150 """ 00151 internal API method 00152 """ 00153 return self._slot_types 00154 00155 def serialize(self, buff): 00156 """ 00157 serialize message into buffer 00158 @param buff: buffer 00159 @type buff: StringIO 00160 """ 00161 try: 00162 _x = self 00163 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00164 _x = self.action_goal.header.frame_id 00165 length = len(_x) 00166 buff.write(struct.pack('<I%ss'%length, length, _x)) 00167 _x = self 00168 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00169 _x = self.action_goal.goal_id.id 00170 length = len(_x) 00171 buff.write(struct.pack('<I%ss'%length, length, _x)) 00172 _x = self 00173 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00174 _x = self.action_result.header.frame_id 00175 length = len(_x) 00176 buff.write(struct.pack('<I%ss'%length, length, _x)) 00177 _x = self 00178 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00179 _x = self.action_result.status.goal_id.id 00180 length = len(_x) 00181 buff.write(struct.pack('<I%ss'%length, length, _x)) 00182 buff.write(_struct_B.pack(self.action_result.status.status)) 00183 _x = self.action_result.status.text 00184 length = len(_x) 00185 buff.write(struct.pack('<I%ss'%length, length, _x)) 00186 length = len(self.action_result.result.application_name) 00187 buff.write(_struct_I.pack(length)) 00188 for val1 in self.action_result.result.application_name: 00189 length = len(val1) 00190 buff.write(struct.pack('<I%ss'%length, length, val1)) 00191 length = len(self.action_result.result.application_status) 00192 buff.write(_struct_I.pack(length)) 00193 for val1 in self.action_result.result.application_status: 00194 length = len(val1) 00195 buff.write(struct.pack('<I%ss'%length, length, val1)) 00196 length = len(self.action_result.result.daemonize) 00197 buff.write(_struct_I.pack(length)) 00198 pattern = '<%sB'%length 00199 buff.write(struct.pack(pattern, *self.action_result.result.daemonize)) 00200 _x = self 00201 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00202 _x = self.action_feedback.header.frame_id 00203 length = len(_x) 00204 buff.write(struct.pack('<I%ss'%length, length, _x)) 00205 _x = self 00206 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00207 _x = self.action_feedback.status.goal_id.id 00208 length = len(_x) 00209 buff.write(struct.pack('<I%ss'%length, length, _x)) 00210 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00211 _x = self.action_feedback.status.text 00212 length = len(_x) 00213 buff.write(struct.pack('<I%ss'%length, length, _x)) 00214 except struct.error as se: self._check_types(se) 00215 except TypeError as te: self._check_types(te) 00216 00217 def deserialize(self, str): 00218 """ 00219 unpack serialized message in str into this message instance 00220 @param str: byte array of serialized message 00221 @type str: str 00222 """ 00223 try: 00224 if self.action_goal is None: 00225 self.action_goal = application_msgs.msg.ListApplicationsActionGoal() 00226 if self.action_result is None: 00227 self.action_result = application_msgs.msg.ListApplicationsActionResult() 00228 if self.action_feedback is None: 00229 self.action_feedback = application_msgs.msg.ListApplicationsActionFeedback() 00230 end = 0 00231 _x = self 00232 start = end 00233 end += 12 00234 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00235 start = end 00236 end += 4 00237 (length,) = _struct_I.unpack(str[start:end]) 00238 start = end 00239 end += length 00240 self.action_goal.header.frame_id = str[start:end] 00241 _x = self 00242 start = end 00243 end += 8 00244 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.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 self.action_goal.goal_id.id = str[start:end] 00251 _x = self 00252 start = end 00253 end += 12 00254 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00255 start = end 00256 end += 4 00257 (length,) = _struct_I.unpack(str[start:end]) 00258 start = end 00259 end += length 00260 self.action_result.header.frame_id = str[start:end] 00261 _x = self 00262 start = end 00263 end += 8 00264 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00265 start = end 00266 end += 4 00267 (length,) = _struct_I.unpack(str[start:end]) 00268 start = end 00269 end += length 00270 self.action_result.status.goal_id.id = str[start:end] 00271 start = end 00272 end += 1 00273 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00274 start = end 00275 end += 4 00276 (length,) = _struct_I.unpack(str[start:end]) 00277 start = end 00278 end += length 00279 self.action_result.status.text = str[start:end] 00280 start = end 00281 end += 4 00282 (length,) = _struct_I.unpack(str[start:end]) 00283 self.action_result.result.application_name = [] 00284 for i in range(0, length): 00285 start = end 00286 end += 4 00287 (length,) = _struct_I.unpack(str[start:end]) 00288 start = end 00289 end += length 00290 val1 = str[start:end] 00291 self.action_result.result.application_name.append(val1) 00292 start = end 00293 end += 4 00294 (length,) = _struct_I.unpack(str[start:end]) 00295 self.action_result.result.application_status = [] 00296 for i in range(0, length): 00297 start = end 00298 end += 4 00299 (length,) = _struct_I.unpack(str[start:end]) 00300 start = end 00301 end += length 00302 val1 = str[start:end] 00303 self.action_result.result.application_status.append(val1) 00304 start = end 00305 end += 4 00306 (length,) = _struct_I.unpack(str[start:end]) 00307 pattern = '<%sB'%length 00308 start = end 00309 end += struct.calcsize(pattern) 00310 self.action_result.result.daemonize = struct.unpack(pattern, str[start:end]) 00311 self.action_result.result.daemonize = map(bool, self.action_result.result.daemonize) 00312 _x = self 00313 start = end 00314 end += 12 00315 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00316 start = end 00317 end += 4 00318 (length,) = _struct_I.unpack(str[start:end]) 00319 start = end 00320 end += length 00321 self.action_feedback.header.frame_id = str[start:end] 00322 _x = self 00323 start = end 00324 end += 8 00325 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00326 start = end 00327 end += 4 00328 (length,) = _struct_I.unpack(str[start:end]) 00329 start = end 00330 end += length 00331 self.action_feedback.status.goal_id.id = str[start:end] 00332 start = end 00333 end += 1 00334 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00335 start = end 00336 end += 4 00337 (length,) = _struct_I.unpack(str[start:end]) 00338 start = end 00339 end += length 00340 self.action_feedback.status.text = str[start:end] 00341 return self 00342 except struct.error as e: 00343 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00344 00345 00346 def serialize_numpy(self, buff, numpy): 00347 """ 00348 serialize message with numpy array types into buffer 00349 @param buff: buffer 00350 @type buff: StringIO 00351 @param numpy: numpy python module 00352 @type numpy module 00353 """ 00354 try: 00355 _x = self 00356 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00357 _x = self.action_goal.header.frame_id 00358 length = len(_x) 00359 buff.write(struct.pack('<I%ss'%length, length, _x)) 00360 _x = self 00361 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00362 _x = self.action_goal.goal_id.id 00363 length = len(_x) 00364 buff.write(struct.pack('<I%ss'%length, length, _x)) 00365 _x = self 00366 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00367 _x = self.action_result.header.frame_id 00368 length = len(_x) 00369 buff.write(struct.pack('<I%ss'%length, length, _x)) 00370 _x = self 00371 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00372 _x = self.action_result.status.goal_id.id 00373 length = len(_x) 00374 buff.write(struct.pack('<I%ss'%length, length, _x)) 00375 buff.write(_struct_B.pack(self.action_result.status.status)) 00376 _x = self.action_result.status.text 00377 length = len(_x) 00378 buff.write(struct.pack('<I%ss'%length, length, _x)) 00379 length = len(self.action_result.result.application_name) 00380 buff.write(_struct_I.pack(length)) 00381 for val1 in self.action_result.result.application_name: 00382 length = len(val1) 00383 buff.write(struct.pack('<I%ss'%length, length, val1)) 00384 length = len(self.action_result.result.application_status) 00385 buff.write(_struct_I.pack(length)) 00386 for val1 in self.action_result.result.application_status: 00387 length = len(val1) 00388 buff.write(struct.pack('<I%ss'%length, length, val1)) 00389 length = len(self.action_result.result.daemonize) 00390 buff.write(_struct_I.pack(length)) 00391 pattern = '<%sB'%length 00392 buff.write(self.action_result.result.daemonize.tostring()) 00393 _x = self 00394 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00395 _x = self.action_feedback.header.frame_id 00396 length = len(_x) 00397 buff.write(struct.pack('<I%ss'%length, length, _x)) 00398 _x = self 00399 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00400 _x = self.action_feedback.status.goal_id.id 00401 length = len(_x) 00402 buff.write(struct.pack('<I%ss'%length, length, _x)) 00403 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00404 _x = self.action_feedback.status.text 00405 length = len(_x) 00406 buff.write(struct.pack('<I%ss'%length, length, _x)) 00407 except struct.error as se: self._check_types(se) 00408 except TypeError as te: self._check_types(te) 00409 00410 def deserialize_numpy(self, str, numpy): 00411 """ 00412 unpack serialized message in str into this message instance using numpy for array types 00413 @param str: byte array of serialized message 00414 @type str: str 00415 @param numpy: numpy python module 00416 @type numpy: module 00417 """ 00418 try: 00419 if self.action_goal is None: 00420 self.action_goal = application_msgs.msg.ListApplicationsActionGoal() 00421 if self.action_result is None: 00422 self.action_result = application_msgs.msg.ListApplicationsActionResult() 00423 if self.action_feedback is None: 00424 self.action_feedback = application_msgs.msg.ListApplicationsActionFeedback() 00425 end = 0 00426 _x = self 00427 start = end 00428 end += 12 00429 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00430 start = end 00431 end += 4 00432 (length,) = _struct_I.unpack(str[start:end]) 00433 start = end 00434 end += length 00435 self.action_goal.header.frame_id = str[start:end] 00436 _x = self 00437 start = end 00438 end += 8 00439 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00440 start = end 00441 end += 4 00442 (length,) = _struct_I.unpack(str[start:end]) 00443 start = end 00444 end += length 00445 self.action_goal.goal_id.id = str[start:end] 00446 _x = self 00447 start = end 00448 end += 12 00449 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00450 start = end 00451 end += 4 00452 (length,) = _struct_I.unpack(str[start:end]) 00453 start = end 00454 end += length 00455 self.action_result.header.frame_id = str[start:end] 00456 _x = self 00457 start = end 00458 end += 8 00459 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00460 start = end 00461 end += 4 00462 (length,) = _struct_I.unpack(str[start:end]) 00463 start = end 00464 end += length 00465 self.action_result.status.goal_id.id = str[start:end] 00466 start = end 00467 end += 1 00468 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00469 start = end 00470 end += 4 00471 (length,) = _struct_I.unpack(str[start:end]) 00472 start = end 00473 end += length 00474 self.action_result.status.text = str[start:end] 00475 start = end 00476 end += 4 00477 (length,) = _struct_I.unpack(str[start:end]) 00478 self.action_result.result.application_name = [] 00479 for i in range(0, length): 00480 start = end 00481 end += 4 00482 (length,) = _struct_I.unpack(str[start:end]) 00483 start = end 00484 end += length 00485 val1 = str[start:end] 00486 self.action_result.result.application_name.append(val1) 00487 start = end 00488 end += 4 00489 (length,) = _struct_I.unpack(str[start:end]) 00490 self.action_result.result.application_status = [] 00491 for i in range(0, length): 00492 start = end 00493 end += 4 00494 (length,) = _struct_I.unpack(str[start:end]) 00495 start = end 00496 end += length 00497 val1 = str[start:end] 00498 self.action_result.result.application_status.append(val1) 00499 start = end 00500 end += 4 00501 (length,) = _struct_I.unpack(str[start:end]) 00502 pattern = '<%sB'%length 00503 start = end 00504 end += struct.calcsize(pattern) 00505 self.action_result.result.daemonize = numpy.frombuffer(str[start:end], dtype=numpy.bool, count=length) 00506 self.action_result.result.daemonize = map(bool, self.action_result.result.daemonize) 00507 _x = self 00508 start = end 00509 end += 12 00510 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00511 start = end 00512 end += 4 00513 (length,) = _struct_I.unpack(str[start:end]) 00514 start = end 00515 end += length 00516 self.action_feedback.header.frame_id = str[start:end] 00517 _x = self 00518 start = end 00519 end += 8 00520 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00521 start = end 00522 end += 4 00523 (length,) = _struct_I.unpack(str[start:end]) 00524 start = end 00525 end += length 00526 self.action_feedback.status.goal_id.id = str[start:end] 00527 start = end 00528 end += 1 00529 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00530 start = end 00531 end += 4 00532 (length,) = _struct_I.unpack(str[start:end]) 00533 start = end 00534 end += length 00535 self.action_feedback.status.text = str[start:end] 00536 return self 00537 except struct.error as e: 00538 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00539 00540 _struct_I = roslib.message.struct_I 00541 _struct_3I = struct.Struct("<3I") 00542 _struct_B = struct.Struct("<B") 00543 _struct_2I = struct.Struct("<2I")