$search
00001 """autogenerated by genmsg_py from RunApplicationAction.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 RunApplicationAction(roslib.message.Message): 00011 _md5sum = "d88802b916e618095e79dfae6a6ee1cd" 00012 _type = "application_msgs/RunApplicationAction" 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 RunApplicationActionGoal action_goal 00017 RunApplicationActionResult action_result 00018 RunApplicationActionFeedback action_feedback 00019 00020 ================================================================================ 00021 MSG: application_msgs/RunApplicationActionGoal 00022 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00023 00024 Header header 00025 actionlib_msgs/GoalID goal_id 00026 RunApplicationGoal 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/RunApplicationGoal 00061 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00062 string application_name 00063 bool daemonize 00064 00065 ================================================================================ 00066 MSG: application_msgs/RunApplicationActionResult 00067 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00068 00069 Header header 00070 actionlib_msgs/GoalStatus status 00071 RunApplicationResult result 00072 00073 ================================================================================ 00074 MSG: actionlib_msgs/GoalStatus 00075 GoalID goal_id 00076 uint8 status 00077 uint8 PENDING = 0 # The goal has yet to be processed by the action server 00078 uint8 ACTIVE = 1 # The goal is currently being processed by the action server 00079 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing 00080 # and has since completed its execution (Terminal State) 00081 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State) 00082 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due 00083 # to some failure (Terminal State) 00084 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed, 00085 # because the goal was unattainable or invalid (Terminal State) 00086 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing 00087 # and has not yet completed execution 00088 uint8 RECALLING = 7 # The goal received a cancel request before it started executing, 00089 # but the action server has not yet confirmed that the goal is canceled 00090 uint8 RECALLED = 8 # The goal received a cancel request before it started executing 00091 # and was successfully cancelled (Terminal State) 00092 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be 00093 # sent over the wire by an action server 00094 00095 #Allow for the user to associate a string with GoalStatus for debugging 00096 string text 00097 00098 00099 ================================================================================ 00100 MSG: application_msgs/RunApplicationResult 00101 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00102 00103 ================================================================================ 00104 MSG: application_msgs/RunApplicationActionFeedback 00105 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00106 00107 Header header 00108 actionlib_msgs/GoalStatus status 00109 RunApplicationFeedback feedback 00110 00111 ================================================================================ 00112 MSG: application_msgs/RunApplicationFeedback 00113 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00114 00115 00116 """ 00117 __slots__ = ['action_goal','action_result','action_feedback'] 00118 _slot_types = ['application_msgs/RunApplicationActionGoal','application_msgs/RunApplicationActionResult','application_msgs/RunApplicationActionFeedback'] 00119 00120 def __init__(self, *args, **kwds): 00121 """ 00122 Constructor. Any message fields that are implicitly/explicitly 00123 set to None will be assigned a default value. The recommend 00124 use is keyword arguments as this is more robust to future message 00125 changes. You cannot mix in-order arguments and keyword arguments. 00126 00127 The available fields are: 00128 action_goal,action_result,action_feedback 00129 00130 @param args: complete set of field values, in .msg order 00131 @param kwds: use keyword arguments corresponding to message field names 00132 to set specific fields. 00133 """ 00134 if args or kwds: 00135 super(RunApplicationAction, self).__init__(*args, **kwds) 00136 #message fields cannot be None, assign default values for those that are 00137 if self.action_goal is None: 00138 self.action_goal = application_msgs.msg.RunApplicationActionGoal() 00139 if self.action_result is None: 00140 self.action_result = application_msgs.msg.RunApplicationActionResult() 00141 if self.action_feedback is None: 00142 self.action_feedback = application_msgs.msg.RunApplicationActionFeedback() 00143 else: 00144 self.action_goal = application_msgs.msg.RunApplicationActionGoal() 00145 self.action_result = application_msgs.msg.RunApplicationActionResult() 00146 self.action_feedback = application_msgs.msg.RunApplicationActionFeedback() 00147 00148 def _get_types(self): 00149 """ 00150 internal API method 00151 """ 00152 return self._slot_types 00153 00154 def serialize(self, buff): 00155 """ 00156 serialize message into buffer 00157 @param buff: buffer 00158 @type buff: StringIO 00159 """ 00160 try: 00161 _x = self 00162 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00163 _x = self.action_goal.header.frame_id 00164 length = len(_x) 00165 buff.write(struct.pack('<I%ss'%length, length, _x)) 00166 _x = self 00167 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00168 _x = self.action_goal.goal_id.id 00169 length = len(_x) 00170 buff.write(struct.pack('<I%ss'%length, length, _x)) 00171 _x = self.action_goal.goal.application_name 00172 length = len(_x) 00173 buff.write(struct.pack('<I%ss'%length, length, _x)) 00174 _x = self 00175 buff.write(_struct_B3I.pack(_x.action_goal.goal.daemonize, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00176 _x = self.action_result.header.frame_id 00177 length = len(_x) 00178 buff.write(struct.pack('<I%ss'%length, length, _x)) 00179 _x = self 00180 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00181 _x = self.action_result.status.goal_id.id 00182 length = len(_x) 00183 buff.write(struct.pack('<I%ss'%length, length, _x)) 00184 buff.write(_struct_B.pack(self.action_result.status.status)) 00185 _x = self.action_result.status.text 00186 length = len(_x) 00187 buff.write(struct.pack('<I%ss'%length, length, _x)) 00188 _x = self 00189 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00190 _x = self.action_feedback.header.frame_id 00191 length = len(_x) 00192 buff.write(struct.pack('<I%ss'%length, length, _x)) 00193 _x = self 00194 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00195 _x = self.action_feedback.status.goal_id.id 00196 length = len(_x) 00197 buff.write(struct.pack('<I%ss'%length, length, _x)) 00198 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00199 _x = self.action_feedback.status.text 00200 length = len(_x) 00201 buff.write(struct.pack('<I%ss'%length, length, _x)) 00202 except struct.error as se: self._check_types(se) 00203 except TypeError as te: self._check_types(te) 00204 00205 def deserialize(self, str): 00206 """ 00207 unpack serialized message in str into this message instance 00208 @param str: byte array of serialized message 00209 @type str: str 00210 """ 00211 try: 00212 if self.action_goal is None: 00213 self.action_goal = application_msgs.msg.RunApplicationActionGoal() 00214 if self.action_result is None: 00215 self.action_result = application_msgs.msg.RunApplicationActionResult() 00216 if self.action_feedback is None: 00217 self.action_feedback = application_msgs.msg.RunApplicationActionFeedback() 00218 end = 0 00219 _x = self 00220 start = end 00221 end += 12 00222 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00223 start = end 00224 end += 4 00225 (length,) = _struct_I.unpack(str[start:end]) 00226 start = end 00227 end += length 00228 self.action_goal.header.frame_id = str[start:end] 00229 _x = self 00230 start = end 00231 end += 8 00232 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.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.action_goal.goal_id.id = str[start:end] 00239 start = end 00240 end += 4 00241 (length,) = _struct_I.unpack(str[start:end]) 00242 start = end 00243 end += length 00244 self.action_goal.goal.application_name = str[start:end] 00245 _x = self 00246 start = end 00247 end += 13 00248 (_x.action_goal.goal.daemonize, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end]) 00249 self.action_goal.goal.daemonize = bool(self.action_goal.goal.daemonize) 00250 start = end 00251 end += 4 00252 (length,) = _struct_I.unpack(str[start:end]) 00253 start = end 00254 end += length 00255 self.action_result.header.frame_id = str[start:end] 00256 _x = self 00257 start = end 00258 end += 8 00259 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00260 start = end 00261 end += 4 00262 (length,) = _struct_I.unpack(str[start:end]) 00263 start = end 00264 end += length 00265 self.action_result.status.goal_id.id = str[start:end] 00266 start = end 00267 end += 1 00268 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00269 start = end 00270 end += 4 00271 (length,) = _struct_I.unpack(str[start:end]) 00272 start = end 00273 end += length 00274 self.action_result.status.text = str[start:end] 00275 _x = self 00276 start = end 00277 end += 12 00278 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00279 start = end 00280 end += 4 00281 (length,) = _struct_I.unpack(str[start:end]) 00282 start = end 00283 end += length 00284 self.action_feedback.header.frame_id = str[start:end] 00285 _x = self 00286 start = end 00287 end += 8 00288 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00289 start = end 00290 end += 4 00291 (length,) = _struct_I.unpack(str[start:end]) 00292 start = end 00293 end += length 00294 self.action_feedback.status.goal_id.id = str[start:end] 00295 start = end 00296 end += 1 00297 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00298 start = end 00299 end += 4 00300 (length,) = _struct_I.unpack(str[start:end]) 00301 start = end 00302 end += length 00303 self.action_feedback.status.text = str[start:end] 00304 return self 00305 except struct.error as e: 00306 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00307 00308 00309 def serialize_numpy(self, buff, numpy): 00310 """ 00311 serialize message with numpy array types into buffer 00312 @param buff: buffer 00313 @type buff: StringIO 00314 @param numpy: numpy python module 00315 @type numpy module 00316 """ 00317 try: 00318 _x = self 00319 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00320 _x = self.action_goal.header.frame_id 00321 length = len(_x) 00322 buff.write(struct.pack('<I%ss'%length, length, _x)) 00323 _x = self 00324 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00325 _x = self.action_goal.goal_id.id 00326 length = len(_x) 00327 buff.write(struct.pack('<I%ss'%length, length, _x)) 00328 _x = self.action_goal.goal.application_name 00329 length = len(_x) 00330 buff.write(struct.pack('<I%ss'%length, length, _x)) 00331 _x = self 00332 buff.write(_struct_B3I.pack(_x.action_goal.goal.daemonize, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00333 _x = self.action_result.header.frame_id 00334 length = len(_x) 00335 buff.write(struct.pack('<I%ss'%length, length, _x)) 00336 _x = self 00337 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00338 _x = self.action_result.status.goal_id.id 00339 length = len(_x) 00340 buff.write(struct.pack('<I%ss'%length, length, _x)) 00341 buff.write(_struct_B.pack(self.action_result.status.status)) 00342 _x = self.action_result.status.text 00343 length = len(_x) 00344 buff.write(struct.pack('<I%ss'%length, length, _x)) 00345 _x = self 00346 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00347 _x = self.action_feedback.header.frame_id 00348 length = len(_x) 00349 buff.write(struct.pack('<I%ss'%length, length, _x)) 00350 _x = self 00351 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00352 _x = self.action_feedback.status.goal_id.id 00353 length = len(_x) 00354 buff.write(struct.pack('<I%ss'%length, length, _x)) 00355 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00356 _x = self.action_feedback.status.text 00357 length = len(_x) 00358 buff.write(struct.pack('<I%ss'%length, length, _x)) 00359 except struct.error as se: self._check_types(se) 00360 except TypeError as te: self._check_types(te) 00361 00362 def deserialize_numpy(self, str, numpy): 00363 """ 00364 unpack serialized message in str into this message instance using numpy for array types 00365 @param str: byte array of serialized message 00366 @type str: str 00367 @param numpy: numpy python module 00368 @type numpy: module 00369 """ 00370 try: 00371 if self.action_goal is None: 00372 self.action_goal = application_msgs.msg.RunApplicationActionGoal() 00373 if self.action_result is None: 00374 self.action_result = application_msgs.msg.RunApplicationActionResult() 00375 if self.action_feedback is None: 00376 self.action_feedback = application_msgs.msg.RunApplicationActionFeedback() 00377 end = 0 00378 _x = self 00379 start = end 00380 end += 12 00381 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00382 start = end 00383 end += 4 00384 (length,) = _struct_I.unpack(str[start:end]) 00385 start = end 00386 end += length 00387 self.action_goal.header.frame_id = str[start:end] 00388 _x = self 00389 start = end 00390 end += 8 00391 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00392 start = end 00393 end += 4 00394 (length,) = _struct_I.unpack(str[start:end]) 00395 start = end 00396 end += length 00397 self.action_goal.goal_id.id = str[start:end] 00398 start = end 00399 end += 4 00400 (length,) = _struct_I.unpack(str[start:end]) 00401 start = end 00402 end += length 00403 self.action_goal.goal.application_name = str[start:end] 00404 _x = self 00405 start = end 00406 end += 13 00407 (_x.action_goal.goal.daemonize, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end]) 00408 self.action_goal.goal.daemonize = bool(self.action_goal.goal.daemonize) 00409 start = end 00410 end += 4 00411 (length,) = _struct_I.unpack(str[start:end]) 00412 start = end 00413 end += length 00414 self.action_result.header.frame_id = str[start:end] 00415 _x = self 00416 start = end 00417 end += 8 00418 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00419 start = end 00420 end += 4 00421 (length,) = _struct_I.unpack(str[start:end]) 00422 start = end 00423 end += length 00424 self.action_result.status.goal_id.id = str[start:end] 00425 start = end 00426 end += 1 00427 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00428 start = end 00429 end += 4 00430 (length,) = _struct_I.unpack(str[start:end]) 00431 start = end 00432 end += length 00433 self.action_result.status.text = str[start:end] 00434 _x = self 00435 start = end 00436 end += 12 00437 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00438 start = end 00439 end += 4 00440 (length,) = _struct_I.unpack(str[start:end]) 00441 start = end 00442 end += length 00443 self.action_feedback.header.frame_id = str[start:end] 00444 _x = self 00445 start = end 00446 end += 8 00447 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00448 start = end 00449 end += 4 00450 (length,) = _struct_I.unpack(str[start:end]) 00451 start = end 00452 end += length 00453 self.action_feedback.status.goal_id.id = str[start:end] 00454 start = end 00455 end += 1 00456 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00457 start = end 00458 end += 4 00459 (length,) = _struct_I.unpack(str[start:end]) 00460 start = end 00461 end += length 00462 self.action_feedback.status.text = str[start:end] 00463 return self 00464 except struct.error as e: 00465 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00466 00467 _struct_I = roslib.message.struct_I 00468 _struct_3I = struct.Struct("<3I") 00469 _struct_B = struct.Struct("<B") 00470 _struct_2I = struct.Struct("<2I") 00471 _struct_B3I = struct.Struct("<B3I")