00001 """autogenerated by genpy from cogman_msgs/StringsAction.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 genpy
00008 import cogman_msgs.msg
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011
00012 class StringsAction(genpy.Message):
00013 _md5sum = "654d133fb4b63886eaa17ddc7bb08c11"
00014 _type = "cogman_msgs/StringsAction"
00015 _has_header = False
00016 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017
00018 StringsActionGoal action_goal
00019 StringsActionResult action_result
00020 StringsActionFeedback action_feedback
00021
00022 ================================================================================
00023 MSG: cogman_msgs/StringsActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 StringsGoal 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: cogman_msgs/StringsGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 #goal
00065 string command
00066
00067 ================================================================================
00068 MSG: cogman_msgs/StringsActionResult
00069 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00070
00071 Header header
00072 actionlib_msgs/GoalStatus status
00073 StringsResult 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: cogman_msgs/StringsResult
00103 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00104 #result
00105 string answer
00106
00107 ================================================================================
00108 MSG: cogman_msgs/StringsActionFeedback
00109 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00110
00111 Header header
00112 actionlib_msgs/GoalStatus status
00113 StringsFeedback feedback
00114
00115 ================================================================================
00116 MSG: cogman_msgs/StringsFeedback
00117 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00118 #feedback
00119 string rightnow
00120
00121
00122 """
00123 __slots__ = ['action_goal','action_result','action_feedback']
00124 _slot_types = ['cogman_msgs/StringsActionGoal','cogman_msgs/StringsActionResult','cogman_msgs/StringsActionFeedback']
00125
00126 def __init__(self, *args, **kwds):
00127 """
00128 Constructor. Any message fields that are implicitly/explicitly
00129 set to None will be assigned a default value. The recommend
00130 use is keyword arguments as this is more robust to future message
00131 changes. You cannot mix in-order arguments and keyword arguments.
00132
00133 The available fields are:
00134 action_goal,action_result,action_feedback
00135
00136 :param args: complete set of field values, in .msg order
00137 :param kwds: use keyword arguments corresponding to message field names
00138 to set specific fields.
00139 """
00140 if args or kwds:
00141 super(StringsAction, self).__init__(*args, **kwds)
00142
00143 if self.action_goal is None:
00144 self.action_goal = cogman_msgs.msg.StringsActionGoal()
00145 if self.action_result is None:
00146 self.action_result = cogman_msgs.msg.StringsActionResult()
00147 if self.action_feedback is None:
00148 self.action_feedback = cogman_msgs.msg.StringsActionFeedback()
00149 else:
00150 self.action_goal = cogman_msgs.msg.StringsActionGoal()
00151 self.action_result = cogman_msgs.msg.StringsActionResult()
00152 self.action_feedback = cogman_msgs.msg.StringsActionFeedback()
00153
00154 def _get_types(self):
00155 """
00156 internal API method
00157 """
00158 return self._slot_types
00159
00160 def serialize(self, buff):
00161 """
00162 serialize message into buffer
00163 :param buff: buffer, ``StringIO``
00164 """
00165 try:
00166 _x = self
00167 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00168 _x = self.action_goal.header.frame_id
00169 length = len(_x)
00170 if python3 or type(_x) == unicode:
00171 _x = _x.encode('utf-8')
00172 length = len(_x)
00173 buff.write(struct.pack('<I%ss'%length, length, _x))
00174 _x = self
00175 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00176 _x = self.action_goal.goal_id.id
00177 length = len(_x)
00178 if python3 or type(_x) == unicode:
00179 _x = _x.encode('utf-8')
00180 length = len(_x)
00181 buff.write(struct.pack('<I%ss'%length, length, _x))
00182 _x = self.action_goal.goal.command
00183 length = len(_x)
00184 if python3 or type(_x) == unicode:
00185 _x = _x.encode('utf-8')
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_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00190 _x = self.action_result.header.frame_id
00191 length = len(_x)
00192 if python3 or type(_x) == unicode:
00193 _x = _x.encode('utf-8')
00194 length = len(_x)
00195 buff.write(struct.pack('<I%ss'%length, length, _x))
00196 _x = self
00197 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00198 _x = self.action_result.status.goal_id.id
00199 length = len(_x)
00200 if python3 or type(_x) == unicode:
00201 _x = _x.encode('utf-8')
00202 length = len(_x)
00203 buff.write(struct.pack('<I%ss'%length, length, _x))
00204 buff.write(_struct_B.pack(self.action_result.status.status))
00205 _x = self.action_result.status.text
00206 length = len(_x)
00207 if python3 or type(_x) == unicode:
00208 _x = _x.encode('utf-8')
00209 length = len(_x)
00210 buff.write(struct.pack('<I%ss'%length, length, _x))
00211 _x = self.action_result.result.answer
00212 length = len(_x)
00213 if python3 or type(_x) == unicode:
00214 _x = _x.encode('utf-8')
00215 length = len(_x)
00216 buff.write(struct.pack('<I%ss'%length, length, _x))
00217 _x = self
00218 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00219 _x = self.action_feedback.header.frame_id
00220 length = len(_x)
00221 if python3 or type(_x) == unicode:
00222 _x = _x.encode('utf-8')
00223 length = len(_x)
00224 buff.write(struct.pack('<I%ss'%length, length, _x))
00225 _x = self
00226 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00227 _x = self.action_feedback.status.goal_id.id
00228 length = len(_x)
00229 if python3 or type(_x) == unicode:
00230 _x = _x.encode('utf-8')
00231 length = len(_x)
00232 buff.write(struct.pack('<I%ss'%length, length, _x))
00233 buff.write(_struct_B.pack(self.action_feedback.status.status))
00234 _x = self.action_feedback.status.text
00235 length = len(_x)
00236 if python3 or type(_x) == unicode:
00237 _x = _x.encode('utf-8')
00238 length = len(_x)
00239 buff.write(struct.pack('<I%ss'%length, length, _x))
00240 _x = self.action_feedback.feedback.rightnow
00241 length = len(_x)
00242 if python3 or type(_x) == unicode:
00243 _x = _x.encode('utf-8')
00244 length = len(_x)
00245 buff.write(struct.pack('<I%ss'%length, length, _x))
00246 except struct.error as se: self._check_types(se)
00247 except TypeError as te: self._check_types(te)
00248
00249 def deserialize(self, str):
00250 """
00251 unpack serialized message in str into this message instance
00252 :param str: byte array of serialized message, ``str``
00253 """
00254 try:
00255 if self.action_goal is None:
00256 self.action_goal = cogman_msgs.msg.StringsActionGoal()
00257 if self.action_result is None:
00258 self.action_result = cogman_msgs.msg.StringsActionResult()
00259 if self.action_feedback is None:
00260 self.action_feedback = cogman_msgs.msg.StringsActionFeedback()
00261 end = 0
00262 _x = self
00263 start = end
00264 end += 12
00265 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00266 start = end
00267 end += 4
00268 (length,) = _struct_I.unpack(str[start:end])
00269 start = end
00270 end += length
00271 if python3:
00272 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00273 else:
00274 self.action_goal.header.frame_id = str[start:end]
00275 _x = self
00276 start = end
00277 end += 8
00278 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.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 if python3:
00285 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00286 else:
00287 self.action_goal.goal_id.id = str[start:end]
00288 start = end
00289 end += 4
00290 (length,) = _struct_I.unpack(str[start:end])
00291 start = end
00292 end += length
00293 if python3:
00294 self.action_goal.goal.command = str[start:end].decode('utf-8')
00295 else:
00296 self.action_goal.goal.command = str[start:end]
00297 _x = self
00298 start = end
00299 end += 12
00300 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00301 start = end
00302 end += 4
00303 (length,) = _struct_I.unpack(str[start:end])
00304 start = end
00305 end += length
00306 if python3:
00307 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00308 else:
00309 self.action_result.header.frame_id = str[start:end]
00310 _x = self
00311 start = end
00312 end += 8
00313 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00314 start = end
00315 end += 4
00316 (length,) = _struct_I.unpack(str[start:end])
00317 start = end
00318 end += length
00319 if python3:
00320 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00321 else:
00322 self.action_result.status.goal_id.id = str[start:end]
00323 start = end
00324 end += 1
00325 (self.action_result.status.status,) = _struct_B.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.text = str[start:end].decode('utf-8')
00333 else:
00334 self.action_result.status.text = str[start:end]
00335 start = end
00336 end += 4
00337 (length,) = _struct_I.unpack(str[start:end])
00338 start = end
00339 end += length
00340 if python3:
00341 self.action_result.result.answer = str[start:end].decode('utf-8')
00342 else:
00343 self.action_result.result.answer = str[start:end]
00344 _x = self
00345 start = end
00346 end += 12
00347 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00348 start = end
00349 end += 4
00350 (length,) = _struct_I.unpack(str[start:end])
00351 start = end
00352 end += length
00353 if python3:
00354 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00355 else:
00356 self.action_feedback.header.frame_id = str[start:end]
00357 _x = self
00358 start = end
00359 end += 8
00360 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00361 start = end
00362 end += 4
00363 (length,) = _struct_I.unpack(str[start:end])
00364 start = end
00365 end += length
00366 if python3:
00367 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00368 else:
00369 self.action_feedback.status.goal_id.id = str[start:end]
00370 start = end
00371 end += 1
00372 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00373 start = end
00374 end += 4
00375 (length,) = _struct_I.unpack(str[start:end])
00376 start = end
00377 end += length
00378 if python3:
00379 self.action_feedback.status.text = str[start:end].decode('utf-8')
00380 else:
00381 self.action_feedback.status.text = str[start:end]
00382 start = end
00383 end += 4
00384 (length,) = _struct_I.unpack(str[start:end])
00385 start = end
00386 end += length
00387 if python3:
00388 self.action_feedback.feedback.rightnow = str[start:end].decode('utf-8')
00389 else:
00390 self.action_feedback.feedback.rightnow = str[start:end]
00391 return self
00392 except struct.error as e:
00393 raise genpy.DeserializationError(e)
00394
00395
00396 def serialize_numpy(self, buff, numpy):
00397 """
00398 serialize message with numpy array types into buffer
00399 :param buff: buffer, ``StringIO``
00400 :param numpy: numpy python module
00401 """
00402 try:
00403 _x = self
00404 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00405 _x = self.action_goal.header.frame_id
00406 length = len(_x)
00407 if python3 or type(_x) == unicode:
00408 _x = _x.encode('utf-8')
00409 length = len(_x)
00410 buff.write(struct.pack('<I%ss'%length, length, _x))
00411 _x = self
00412 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00413 _x = self.action_goal.goal_id.id
00414 length = len(_x)
00415 if python3 or type(_x) == unicode:
00416 _x = _x.encode('utf-8')
00417 length = len(_x)
00418 buff.write(struct.pack('<I%ss'%length, length, _x))
00419 _x = self.action_goal.goal.command
00420 length = len(_x)
00421 if python3 or type(_x) == unicode:
00422 _x = _x.encode('utf-8')
00423 length = len(_x)
00424 buff.write(struct.pack('<I%ss'%length, length, _x))
00425 _x = self
00426 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00427 _x = self.action_result.header.frame_id
00428 length = len(_x)
00429 if python3 or type(_x) == unicode:
00430 _x = _x.encode('utf-8')
00431 length = len(_x)
00432 buff.write(struct.pack('<I%ss'%length, length, _x))
00433 _x = self
00434 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00435 _x = self.action_result.status.goal_id.id
00436 length = len(_x)
00437 if python3 or type(_x) == unicode:
00438 _x = _x.encode('utf-8')
00439 length = len(_x)
00440 buff.write(struct.pack('<I%ss'%length, length, _x))
00441 buff.write(_struct_B.pack(self.action_result.status.status))
00442 _x = self.action_result.status.text
00443 length = len(_x)
00444 if python3 or type(_x) == unicode:
00445 _x = _x.encode('utf-8')
00446 length = len(_x)
00447 buff.write(struct.pack('<I%ss'%length, length, _x))
00448 _x = self.action_result.result.answer
00449 length = len(_x)
00450 if python3 or type(_x) == unicode:
00451 _x = _x.encode('utf-8')
00452 length = len(_x)
00453 buff.write(struct.pack('<I%ss'%length, length, _x))
00454 _x = self
00455 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00456 _x = self.action_feedback.header.frame_id
00457 length = len(_x)
00458 if python3 or type(_x) == unicode:
00459 _x = _x.encode('utf-8')
00460 length = len(_x)
00461 buff.write(struct.pack('<I%ss'%length, length, _x))
00462 _x = self
00463 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00464 _x = self.action_feedback.status.goal_id.id
00465 length = len(_x)
00466 if python3 or type(_x) == unicode:
00467 _x = _x.encode('utf-8')
00468 length = len(_x)
00469 buff.write(struct.pack('<I%ss'%length, length, _x))
00470 buff.write(_struct_B.pack(self.action_feedback.status.status))
00471 _x = self.action_feedback.status.text
00472 length = len(_x)
00473 if python3 or type(_x) == unicode:
00474 _x = _x.encode('utf-8')
00475 length = len(_x)
00476 buff.write(struct.pack('<I%ss'%length, length, _x))
00477 _x = self.action_feedback.feedback.rightnow
00478 length = len(_x)
00479 if python3 or type(_x) == unicode:
00480 _x = _x.encode('utf-8')
00481 length = len(_x)
00482 buff.write(struct.pack('<I%ss'%length, length, _x))
00483 except struct.error as se: self._check_types(se)
00484 except TypeError as te: self._check_types(te)
00485
00486 def deserialize_numpy(self, str, numpy):
00487 """
00488 unpack serialized message in str into this message instance using numpy for array types
00489 :param str: byte array of serialized message, ``str``
00490 :param numpy: numpy python module
00491 """
00492 try:
00493 if self.action_goal is None:
00494 self.action_goal = cogman_msgs.msg.StringsActionGoal()
00495 if self.action_result is None:
00496 self.action_result = cogman_msgs.msg.StringsActionResult()
00497 if self.action_feedback is None:
00498 self.action_feedback = cogman_msgs.msg.StringsActionFeedback()
00499 end = 0
00500 _x = self
00501 start = end
00502 end += 12
00503 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00504 start = end
00505 end += 4
00506 (length,) = _struct_I.unpack(str[start:end])
00507 start = end
00508 end += length
00509 if python3:
00510 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00511 else:
00512 self.action_goal.header.frame_id = str[start:end]
00513 _x = self
00514 start = end
00515 end += 8
00516 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00517 start = end
00518 end += 4
00519 (length,) = _struct_I.unpack(str[start:end])
00520 start = end
00521 end += length
00522 if python3:
00523 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00524 else:
00525 self.action_goal.goal_id.id = str[start:end]
00526 start = end
00527 end += 4
00528 (length,) = _struct_I.unpack(str[start:end])
00529 start = end
00530 end += length
00531 if python3:
00532 self.action_goal.goal.command = str[start:end].decode('utf-8')
00533 else:
00534 self.action_goal.goal.command = str[start:end]
00535 _x = self
00536 start = end
00537 end += 12
00538 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00539 start = end
00540 end += 4
00541 (length,) = _struct_I.unpack(str[start:end])
00542 start = end
00543 end += length
00544 if python3:
00545 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00546 else:
00547 self.action_result.header.frame_id = str[start:end]
00548 _x = self
00549 start = end
00550 end += 8
00551 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00552 start = end
00553 end += 4
00554 (length,) = _struct_I.unpack(str[start:end])
00555 start = end
00556 end += length
00557 if python3:
00558 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00559 else:
00560 self.action_result.status.goal_id.id = str[start:end]
00561 start = end
00562 end += 1
00563 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00564 start = end
00565 end += 4
00566 (length,) = _struct_I.unpack(str[start:end])
00567 start = end
00568 end += length
00569 if python3:
00570 self.action_result.status.text = str[start:end].decode('utf-8')
00571 else:
00572 self.action_result.status.text = str[start:end]
00573 start = end
00574 end += 4
00575 (length,) = _struct_I.unpack(str[start:end])
00576 start = end
00577 end += length
00578 if python3:
00579 self.action_result.result.answer = str[start:end].decode('utf-8')
00580 else:
00581 self.action_result.result.answer = str[start:end]
00582 _x = self
00583 start = end
00584 end += 12
00585 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00586 start = end
00587 end += 4
00588 (length,) = _struct_I.unpack(str[start:end])
00589 start = end
00590 end += length
00591 if python3:
00592 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00593 else:
00594 self.action_feedback.header.frame_id = str[start:end]
00595 _x = self
00596 start = end
00597 end += 8
00598 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00599 start = end
00600 end += 4
00601 (length,) = _struct_I.unpack(str[start:end])
00602 start = end
00603 end += length
00604 if python3:
00605 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00606 else:
00607 self.action_feedback.status.goal_id.id = str[start:end]
00608 start = end
00609 end += 1
00610 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00611 start = end
00612 end += 4
00613 (length,) = _struct_I.unpack(str[start:end])
00614 start = end
00615 end += length
00616 if python3:
00617 self.action_feedback.status.text = str[start:end].decode('utf-8')
00618 else:
00619 self.action_feedback.status.text = str[start:end]
00620 start = end
00621 end += 4
00622 (length,) = _struct_I.unpack(str[start:end])
00623 start = end
00624 end += length
00625 if python3:
00626 self.action_feedback.feedback.rightnow = str[start:end].decode('utf-8')
00627 else:
00628 self.action_feedback.feedback.rightnow = str[start:end]
00629 return self
00630 except struct.error as e:
00631 raise genpy.DeserializationError(e)
00632
00633 _struct_I = genpy.struct_I
00634 _struct_3I = struct.Struct("<3I")
00635 _struct_B = struct.Struct("<B")
00636 _struct_2I = struct.Struct("<2I")