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