00001 """autogenerated by genpy from tug_ist_diagnosis_msgs/SystemModelAction.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007 import actionlib_msgs.msg
00008 import genpy
00009 import tug_ist_diagnosis_msgs.msg
00010 import std_msgs.msg
00011
00012 class SystemModelAction(genpy.Message):
00013 _md5sum = "1b929c1b27e51e4928f7fd8b400dd13c"
00014 _type = "tug_ist_diagnosis_msgs/SystemModelAction"
00015 _has_header = False
00016 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017
00018 SystemModelActionGoal action_goal
00019 SystemModelActionResult action_result
00020 SystemModelActionFeedback action_feedback
00021
00022 ================================================================================
00023 MSG: tug_ist_diagnosis_msgs/SystemModelActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 SystemModelGoal goal
00029
00030 ================================================================================
00031 MSG: std_msgs/Header
00032 # Standard metadata for higher-level stamped data types.
00033 # This is generally used to communicate timestamped data
00034 # in a particular coordinate frame.
00035 #
00036 # sequence ID: consecutively increasing ID
00037 uint32 seq
00038 #Two-integer timestamp that is expressed as:
00039 # * stamp.secs: seconds (stamp_secs) since epoch
00040 # * stamp.nsecs: nanoseconds since stamp_secs
00041 # time-handling sugar is provided by the client library
00042 time stamp
00043 #Frame this data is associated with
00044 # 0: no frame
00045 # 1: global frame
00046 string frame_id
00047
00048 ================================================================================
00049 MSG: actionlib_msgs/GoalID
00050 # The stamp should store the time at which this goal was requested.
00051 # It is used by an action server when it tries to preempt all
00052 # goals that were requested before a certain time
00053 time stamp
00054
00055 # The id provides a way to associate feedback and
00056 # result message with specific goal requests. The id
00057 # specified must be unique.
00058 string id
00059
00060
00061 ================================================================================
00062 MSG: tug_ist_diagnosis_msgs/SystemModelGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 #goal definition
00065 int32 goal
00066
00067 ================================================================================
00068 MSG: tug_ist_diagnosis_msgs/SystemModelActionResult
00069 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00070
00071 Header header
00072 actionlib_msgs/GoalStatus status
00073 SystemModelResult result
00074
00075 ================================================================================
00076 MSG: actionlib_msgs/GoalStatus
00077 GoalID goal_id
00078 uint8 status
00079 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00080 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00081 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00082 # and has since completed its execution (Terminal State)
00083 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00084 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00085 # to some failure (Terminal State)
00086 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00087 # because the goal was unattainable or invalid (Terminal State)
00088 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00089 # and has not yet completed execution
00090 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00091 # but the action server has not yet confirmed that the goal is canceled
00092 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00093 # and was successfully cancelled (Terminal State)
00094 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00095 # sent over the wire by an action server
00096
00097 #Allow for the user to associate a string with GoalStatus for debugging
00098 string text
00099
00100
00101 ================================================================================
00102 MSG: tug_ist_diagnosis_msgs/SystemModelResult
00103 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00104 #result definition
00105 string ab
00106 string nab
00107 string neg_prefix
00108 string[] rules
00109 string[] props
00110
00111 ================================================================================
00112 MSG: tug_ist_diagnosis_msgs/SystemModelActionFeedback
00113 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00114
00115 Header header
00116 actionlib_msgs/GoalStatus status
00117 SystemModelFeedback feedback
00118
00119 ================================================================================
00120 MSG: tug_ist_diagnosis_msgs/SystemModelFeedback
00121 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00122 #feedback
00123 int32 feedback
00124
00125
00126 """
00127 __slots__ = ['action_goal','action_result','action_feedback']
00128 _slot_types = ['tug_ist_diagnosis_msgs/SystemModelActionGoal','tug_ist_diagnosis_msgs/SystemModelActionResult','tug_ist_diagnosis_msgs/SystemModelActionFeedback']
00129
00130 def __init__(self, *args, **kwds):
00131 """
00132 Constructor. Any message fields that are implicitly/explicitly
00133 set to None will be assigned a default value. The recommend
00134 use is keyword arguments as this is more robust to future message
00135 changes. You cannot mix in-order arguments and keyword arguments.
00136
00137 The available fields are:
00138 action_goal,action_result,action_feedback
00139
00140 :param args: complete set of field values, in .msg order
00141 :param kwds: use keyword arguments corresponding to message field names
00142 to set specific fields.
00143 """
00144 if args or kwds:
00145 super(SystemModelAction, self).__init__(*args, **kwds)
00146
00147 if self.action_goal is None:
00148 self.action_goal = tug_ist_diagnosis_msgs.msg.SystemModelActionGoal()
00149 if self.action_result is None:
00150 self.action_result = tug_ist_diagnosis_msgs.msg.SystemModelActionResult()
00151 if self.action_feedback is None:
00152 self.action_feedback = tug_ist_diagnosis_msgs.msg.SystemModelActionFeedback()
00153 else:
00154 self.action_goal = tug_ist_diagnosis_msgs.msg.SystemModelActionGoal()
00155 self.action_result = tug_ist_diagnosis_msgs.msg.SystemModelActionResult()
00156 self.action_feedback = tug_ist_diagnosis_msgs.msg.SystemModelActionFeedback()
00157
00158 def _get_types(self):
00159 """
00160 internal API method
00161 """
00162 return self._slot_types
00163
00164 def serialize(self, buff):
00165 """
00166 serialize message into buffer
00167 :param buff: buffer, ``StringIO``
00168 """
00169 try:
00170 _x = self
00171 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00172 _x = self.action_goal.header.frame_id
00173 length = len(_x)
00174 if python3 or type(_x) == unicode:
00175 _x = _x.encode('utf-8')
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_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00180 _x = self.action_goal.goal_id.id
00181 length = len(_x)
00182 if python3 or type(_x) == unicode:
00183 _x = _x.encode('utf-8')
00184 length = len(_x)
00185 buff.write(struct.pack('<I%ss'%length, length, _x))
00186 _x = self
00187 buff.write(_struct_i3I.pack(_x.action_goal.goal.goal, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00188 _x = self.action_result.header.frame_id
00189 length = len(_x)
00190 if python3 or type(_x) == unicode:
00191 _x = _x.encode('utf-8')
00192 length = len(_x)
00193 buff.write(struct.pack('<I%ss'%length, length, _x))
00194 _x = self
00195 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00196 _x = self.action_result.status.goal_id.id
00197 length = len(_x)
00198 if python3 or type(_x) == unicode:
00199 _x = _x.encode('utf-8')
00200 length = len(_x)
00201 buff.write(struct.pack('<I%ss'%length, length, _x))
00202 buff.write(_struct_B.pack(self.action_result.status.status))
00203 _x = self.action_result.status.text
00204 length = len(_x)
00205 if python3 or type(_x) == unicode:
00206 _x = _x.encode('utf-8')
00207 length = len(_x)
00208 buff.write(struct.pack('<I%ss'%length, length, _x))
00209 _x = self.action_result.result.ab
00210 length = len(_x)
00211 if python3 or type(_x) == unicode:
00212 _x = _x.encode('utf-8')
00213 length = len(_x)
00214 buff.write(struct.pack('<I%ss'%length, length, _x))
00215 _x = self.action_result.result.nab
00216 length = len(_x)
00217 if python3 or type(_x) == unicode:
00218 _x = _x.encode('utf-8')
00219 length = len(_x)
00220 buff.write(struct.pack('<I%ss'%length, length, _x))
00221 _x = self.action_result.result.neg_prefix
00222 length = len(_x)
00223 if python3 or type(_x) == unicode:
00224 _x = _x.encode('utf-8')
00225 length = len(_x)
00226 buff.write(struct.pack('<I%ss'%length, length, _x))
00227 length = len(self.action_result.result.rules)
00228 buff.write(_struct_I.pack(length))
00229 for val1 in self.action_result.result.rules:
00230 length = len(val1)
00231 if python3 or type(val1) == unicode:
00232 val1 = val1.encode('utf-8')
00233 length = len(val1)
00234 buff.write(struct.pack('<I%ss'%length, length, val1))
00235 length = len(self.action_result.result.props)
00236 buff.write(_struct_I.pack(length))
00237 for val1 in self.action_result.result.props:
00238 length = len(val1)
00239 if python3 or type(val1) == unicode:
00240 val1 = val1.encode('utf-8')
00241 length = len(val1)
00242 buff.write(struct.pack('<I%ss'%length, length, val1))
00243 _x = self
00244 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00245 _x = self.action_feedback.header.frame_id
00246 length = len(_x)
00247 if python3 or type(_x) == unicode:
00248 _x = _x.encode('utf-8')
00249 length = len(_x)
00250 buff.write(struct.pack('<I%ss'%length, length, _x))
00251 _x = self
00252 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00253 _x = self.action_feedback.status.goal_id.id
00254 length = len(_x)
00255 if python3 or type(_x) == unicode:
00256 _x = _x.encode('utf-8')
00257 length = len(_x)
00258 buff.write(struct.pack('<I%ss'%length, length, _x))
00259 buff.write(_struct_B.pack(self.action_feedback.status.status))
00260 _x = self.action_feedback.status.text
00261 length = len(_x)
00262 if python3 or type(_x) == unicode:
00263 _x = _x.encode('utf-8')
00264 length = len(_x)
00265 buff.write(struct.pack('<I%ss'%length, length, _x))
00266 buff.write(_struct_i.pack(self.action_feedback.feedback.feedback))
00267 except struct.error as se: self._check_types(se)
00268 except TypeError as te: self._check_types(te)
00269
00270 def deserialize(self, str):
00271 """
00272 unpack serialized message in str into this message instance
00273 :param str: byte array of serialized message, ``str``
00274 """
00275 try:
00276 if self.action_goal is None:
00277 self.action_goal = tug_ist_diagnosis_msgs.msg.SystemModelActionGoal()
00278 if self.action_result is None:
00279 self.action_result = tug_ist_diagnosis_msgs.msg.SystemModelActionResult()
00280 if self.action_feedback is None:
00281 self.action_feedback = tug_ist_diagnosis_msgs.msg.SystemModelActionFeedback()
00282 end = 0
00283 _x = self
00284 start = end
00285 end += 12
00286 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.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 if python3:
00293 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00294 else:
00295 self.action_goal.header.frame_id = str[start:end]
00296 _x = self
00297 start = end
00298 end += 8
00299 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00300 start = end
00301 end += 4
00302 (length,) = _struct_I.unpack(str[start:end])
00303 start = end
00304 end += length
00305 if python3:
00306 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00307 else:
00308 self.action_goal.goal_id.id = str[start:end]
00309 _x = self
00310 start = end
00311 end += 16
00312 (_x.action_goal.goal.goal, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_i3I.unpack(str[start:end])
00313 start = end
00314 end += 4
00315 (length,) = _struct_I.unpack(str[start:end])
00316 start = end
00317 end += length
00318 if python3:
00319 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00320 else:
00321 self.action_result.header.frame_id = str[start:end]
00322 _x = self
00323 start = end
00324 end += 8
00325 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.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 if python3:
00332 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00333 else:
00334 self.action_result.status.goal_id.id = str[start:end]
00335 start = end
00336 end += 1
00337 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00338 start = end
00339 end += 4
00340 (length,) = _struct_I.unpack(str[start:end])
00341 start = end
00342 end += length
00343 if python3:
00344 self.action_result.status.text = str[start:end].decode('utf-8')
00345 else:
00346 self.action_result.status.text = str[start:end]
00347 start = end
00348 end += 4
00349 (length,) = _struct_I.unpack(str[start:end])
00350 start = end
00351 end += length
00352 if python3:
00353 self.action_result.result.ab = str[start:end].decode('utf-8')
00354 else:
00355 self.action_result.result.ab = str[start:end]
00356 start = end
00357 end += 4
00358 (length,) = _struct_I.unpack(str[start:end])
00359 start = end
00360 end += length
00361 if python3:
00362 self.action_result.result.nab = str[start:end].decode('utf-8')
00363 else:
00364 self.action_result.result.nab = str[start:end]
00365 start = end
00366 end += 4
00367 (length,) = _struct_I.unpack(str[start:end])
00368 start = end
00369 end += length
00370 if python3:
00371 self.action_result.result.neg_prefix = str[start:end].decode('utf-8')
00372 else:
00373 self.action_result.result.neg_prefix = str[start:end]
00374 start = end
00375 end += 4
00376 (length,) = _struct_I.unpack(str[start:end])
00377 self.action_result.result.rules = []
00378 for i in range(0, length):
00379 start = end
00380 end += 4
00381 (length,) = _struct_I.unpack(str[start:end])
00382 start = end
00383 end += length
00384 if python3:
00385 val1 = str[start:end].decode('utf-8')
00386 else:
00387 val1 = str[start:end]
00388 self.action_result.result.rules.append(val1)
00389 start = end
00390 end += 4
00391 (length,) = _struct_I.unpack(str[start:end])
00392 self.action_result.result.props = []
00393 for i in range(0, length):
00394 start = end
00395 end += 4
00396 (length,) = _struct_I.unpack(str[start:end])
00397 start = end
00398 end += length
00399 if python3:
00400 val1 = str[start:end].decode('utf-8')
00401 else:
00402 val1 = str[start:end]
00403 self.action_result.result.props.append(val1)
00404 _x = self
00405 start = end
00406 end += 12
00407 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00408 start = end
00409 end += 4
00410 (length,) = _struct_I.unpack(str[start:end])
00411 start = end
00412 end += length
00413 if python3:
00414 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00415 else:
00416 self.action_feedback.header.frame_id = str[start:end]
00417 _x = self
00418 start = end
00419 end += 8
00420 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00421 start = end
00422 end += 4
00423 (length,) = _struct_I.unpack(str[start:end])
00424 start = end
00425 end += length
00426 if python3:
00427 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00428 else:
00429 self.action_feedback.status.goal_id.id = str[start:end]
00430 start = end
00431 end += 1
00432 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00433 start = end
00434 end += 4
00435 (length,) = _struct_I.unpack(str[start:end])
00436 start = end
00437 end += length
00438 if python3:
00439 self.action_feedback.status.text = str[start:end].decode('utf-8')
00440 else:
00441 self.action_feedback.status.text = str[start:end]
00442 start = end
00443 end += 4
00444 (self.action_feedback.feedback.feedback,) = _struct_i.unpack(str[start:end])
00445 return self
00446 except struct.error as e:
00447 raise genpy.DeserializationError(e)
00448
00449
00450 def serialize_numpy(self, buff, numpy):
00451 """
00452 serialize message with numpy array types into buffer
00453 :param buff: buffer, ``StringIO``
00454 :param numpy: numpy python module
00455 """
00456 try:
00457 _x = self
00458 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00459 _x = self.action_goal.header.frame_id
00460 length = len(_x)
00461 if python3 or type(_x) == unicode:
00462 _x = _x.encode('utf-8')
00463 length = len(_x)
00464 buff.write(struct.pack('<I%ss'%length, length, _x))
00465 _x = self
00466 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00467 _x = self.action_goal.goal_id.id
00468 length = len(_x)
00469 if python3 or type(_x) == unicode:
00470 _x = _x.encode('utf-8')
00471 length = len(_x)
00472 buff.write(struct.pack('<I%ss'%length, length, _x))
00473 _x = self
00474 buff.write(_struct_i3I.pack(_x.action_goal.goal.goal, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00475 _x = self.action_result.header.frame_id
00476 length = len(_x)
00477 if python3 or type(_x) == unicode:
00478 _x = _x.encode('utf-8')
00479 length = len(_x)
00480 buff.write(struct.pack('<I%ss'%length, length, _x))
00481 _x = self
00482 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00483 _x = self.action_result.status.goal_id.id
00484 length = len(_x)
00485 if python3 or type(_x) == unicode:
00486 _x = _x.encode('utf-8')
00487 length = len(_x)
00488 buff.write(struct.pack('<I%ss'%length, length, _x))
00489 buff.write(_struct_B.pack(self.action_result.status.status))
00490 _x = self.action_result.status.text
00491 length = len(_x)
00492 if python3 or type(_x) == unicode:
00493 _x = _x.encode('utf-8')
00494 length = len(_x)
00495 buff.write(struct.pack('<I%ss'%length, length, _x))
00496 _x = self.action_result.result.ab
00497 length = len(_x)
00498 if python3 or type(_x) == unicode:
00499 _x = _x.encode('utf-8')
00500 length = len(_x)
00501 buff.write(struct.pack('<I%ss'%length, length, _x))
00502 _x = self.action_result.result.nab
00503 length = len(_x)
00504 if python3 or type(_x) == unicode:
00505 _x = _x.encode('utf-8')
00506 length = len(_x)
00507 buff.write(struct.pack('<I%ss'%length, length, _x))
00508 _x = self.action_result.result.neg_prefix
00509 length = len(_x)
00510 if python3 or type(_x) == unicode:
00511 _x = _x.encode('utf-8')
00512 length = len(_x)
00513 buff.write(struct.pack('<I%ss'%length, length, _x))
00514 length = len(self.action_result.result.rules)
00515 buff.write(_struct_I.pack(length))
00516 for val1 in self.action_result.result.rules:
00517 length = len(val1)
00518 if python3 or type(val1) == unicode:
00519 val1 = val1.encode('utf-8')
00520 length = len(val1)
00521 buff.write(struct.pack('<I%ss'%length, length, val1))
00522 length = len(self.action_result.result.props)
00523 buff.write(_struct_I.pack(length))
00524 for val1 in self.action_result.result.props:
00525 length = len(val1)
00526 if python3 or type(val1) == unicode:
00527 val1 = val1.encode('utf-8')
00528 length = len(val1)
00529 buff.write(struct.pack('<I%ss'%length, length, val1))
00530 _x = self
00531 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00532 _x = self.action_feedback.header.frame_id
00533 length = len(_x)
00534 if python3 or type(_x) == unicode:
00535 _x = _x.encode('utf-8')
00536 length = len(_x)
00537 buff.write(struct.pack('<I%ss'%length, length, _x))
00538 _x = self
00539 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00540 _x = self.action_feedback.status.goal_id.id
00541 length = len(_x)
00542 if python3 or type(_x) == unicode:
00543 _x = _x.encode('utf-8')
00544 length = len(_x)
00545 buff.write(struct.pack('<I%ss'%length, length, _x))
00546 buff.write(_struct_B.pack(self.action_feedback.status.status))
00547 _x = self.action_feedback.status.text
00548 length = len(_x)
00549 if python3 or type(_x) == unicode:
00550 _x = _x.encode('utf-8')
00551 length = len(_x)
00552 buff.write(struct.pack('<I%ss'%length, length, _x))
00553 buff.write(_struct_i.pack(self.action_feedback.feedback.feedback))
00554 except struct.error as se: self._check_types(se)
00555 except TypeError as te: self._check_types(te)
00556
00557 def deserialize_numpy(self, str, numpy):
00558 """
00559 unpack serialized message in str into this message instance using numpy for array types
00560 :param str: byte array of serialized message, ``str``
00561 :param numpy: numpy python module
00562 """
00563 try:
00564 if self.action_goal is None:
00565 self.action_goal = tug_ist_diagnosis_msgs.msg.SystemModelActionGoal()
00566 if self.action_result is None:
00567 self.action_result = tug_ist_diagnosis_msgs.msg.SystemModelActionResult()
00568 if self.action_feedback is None:
00569 self.action_feedback = tug_ist_diagnosis_msgs.msg.SystemModelActionFeedback()
00570 end = 0
00571 _x = self
00572 start = end
00573 end += 12
00574 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00575 start = end
00576 end += 4
00577 (length,) = _struct_I.unpack(str[start:end])
00578 start = end
00579 end += length
00580 if python3:
00581 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00582 else:
00583 self.action_goal.header.frame_id = str[start:end]
00584 _x = self
00585 start = end
00586 end += 8
00587 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00588 start = end
00589 end += 4
00590 (length,) = _struct_I.unpack(str[start:end])
00591 start = end
00592 end += length
00593 if python3:
00594 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00595 else:
00596 self.action_goal.goal_id.id = str[start:end]
00597 _x = self
00598 start = end
00599 end += 16
00600 (_x.action_goal.goal.goal, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_i3I.unpack(str[start:end])
00601 start = end
00602 end += 4
00603 (length,) = _struct_I.unpack(str[start:end])
00604 start = end
00605 end += length
00606 if python3:
00607 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00608 else:
00609 self.action_result.header.frame_id = str[start:end]
00610 _x = self
00611 start = end
00612 end += 8
00613 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00614 start = end
00615 end += 4
00616 (length,) = _struct_I.unpack(str[start:end])
00617 start = end
00618 end += length
00619 if python3:
00620 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00621 else:
00622 self.action_result.status.goal_id.id = str[start:end]
00623 start = end
00624 end += 1
00625 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00626 start = end
00627 end += 4
00628 (length,) = _struct_I.unpack(str[start:end])
00629 start = end
00630 end += length
00631 if python3:
00632 self.action_result.status.text = str[start:end].decode('utf-8')
00633 else:
00634 self.action_result.status.text = str[start:end]
00635 start = end
00636 end += 4
00637 (length,) = _struct_I.unpack(str[start:end])
00638 start = end
00639 end += length
00640 if python3:
00641 self.action_result.result.ab = str[start:end].decode('utf-8')
00642 else:
00643 self.action_result.result.ab = str[start:end]
00644 start = end
00645 end += 4
00646 (length,) = _struct_I.unpack(str[start:end])
00647 start = end
00648 end += length
00649 if python3:
00650 self.action_result.result.nab = str[start:end].decode('utf-8')
00651 else:
00652 self.action_result.result.nab = str[start:end]
00653 start = end
00654 end += 4
00655 (length,) = _struct_I.unpack(str[start:end])
00656 start = end
00657 end += length
00658 if python3:
00659 self.action_result.result.neg_prefix = str[start:end].decode('utf-8')
00660 else:
00661 self.action_result.result.neg_prefix = str[start:end]
00662 start = end
00663 end += 4
00664 (length,) = _struct_I.unpack(str[start:end])
00665 self.action_result.result.rules = []
00666 for i in range(0, length):
00667 start = end
00668 end += 4
00669 (length,) = _struct_I.unpack(str[start:end])
00670 start = end
00671 end += length
00672 if python3:
00673 val1 = str[start:end].decode('utf-8')
00674 else:
00675 val1 = str[start:end]
00676 self.action_result.result.rules.append(val1)
00677 start = end
00678 end += 4
00679 (length,) = _struct_I.unpack(str[start:end])
00680 self.action_result.result.props = []
00681 for i in range(0, length):
00682 start = end
00683 end += 4
00684 (length,) = _struct_I.unpack(str[start:end])
00685 start = end
00686 end += length
00687 if python3:
00688 val1 = str[start:end].decode('utf-8')
00689 else:
00690 val1 = str[start:end]
00691 self.action_result.result.props.append(val1)
00692 _x = self
00693 start = end
00694 end += 12
00695 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00696 start = end
00697 end += 4
00698 (length,) = _struct_I.unpack(str[start:end])
00699 start = end
00700 end += length
00701 if python3:
00702 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00703 else:
00704 self.action_feedback.header.frame_id = str[start:end]
00705 _x = self
00706 start = end
00707 end += 8
00708 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00709 start = end
00710 end += 4
00711 (length,) = _struct_I.unpack(str[start:end])
00712 start = end
00713 end += length
00714 if python3:
00715 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00716 else:
00717 self.action_feedback.status.goal_id.id = str[start:end]
00718 start = end
00719 end += 1
00720 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00721 start = end
00722 end += 4
00723 (length,) = _struct_I.unpack(str[start:end])
00724 start = end
00725 end += length
00726 if python3:
00727 self.action_feedback.status.text = str[start:end].decode('utf-8')
00728 else:
00729 self.action_feedback.status.text = str[start:end]
00730 start = end
00731 end += 4
00732 (self.action_feedback.feedback.feedback,) = _struct_i.unpack(str[start:end])
00733 return self
00734 except struct.error as e:
00735 raise genpy.DeserializationError(e)
00736
00737 _struct_I = genpy.struct_I
00738 _struct_i = struct.Struct("<i")
00739 _struct_3I = struct.Struct("<3I")
00740 _struct_B = struct.Struct("<B")
00741 _struct_2I = struct.Struct("<2I")
00742 _struct_i3I = struct.Struct("<i3I")