00001 """autogenerated by genpy from pr2_image_snapshot_recorder/ImageSnapshotAction.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 actionlib_msgs.msg
00009 import pr2_image_snapshot_recorder.msg
00010 import std_msgs.msg
00011
00012 class ImageSnapshotAction(genpy.Message):
00013 _md5sum = "249f2e989d34e5520a02bd3409df9473"
00014 _type = "pr2_image_snapshot_recorder/ImageSnapshotAction"
00015 _has_header = False
00016 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017
00018 ImageSnapshotActionGoal action_goal
00019 ImageSnapshotActionResult action_result
00020 ImageSnapshotActionFeedback action_feedback
00021
00022 ================================================================================
00023 MSG: pr2_image_snapshot_recorder/ImageSnapshotActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 ImageSnapshotGoal 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: pr2_image_snapshot_recorder/ImageSnapshotGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 string topic_name # Topic name, must be of sensor_msgs/Image
00065 int32 num_images # Set <0 to record until prempted
00066 string output_file_name # Default: /hwlog/TOPIC_NAME_DATE_TIME.bag
00067
00068 ================================================================================
00069 MSG: pr2_image_snapshot_recorder/ImageSnapshotActionResult
00070 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00071
00072 Header header
00073 actionlib_msgs/GoalStatus status
00074 ImageSnapshotResult result
00075
00076 ================================================================================
00077 MSG: actionlib_msgs/GoalStatus
00078 GoalID goal_id
00079 uint8 status
00080 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00081 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00082 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00083 # and has since completed its execution (Terminal State)
00084 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00085 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00086 # to some failure (Terminal State)
00087 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00088 # because the goal was unattainable or invalid (Terminal State)
00089 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00090 # and has not yet completed execution
00091 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00092 # but the action server has not yet confirmed that the goal is canceled
00093 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00094 # and was successfully cancelled (Terminal State)
00095 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00096 # sent over the wire by an action server
00097
00098 #Allow for the user to associate a string with GoalStatus for debugging
00099 string text
00100
00101
00102 ================================================================================
00103 MSG: pr2_image_snapshot_recorder/ImageSnapshotResult
00104 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00105 # Empty result
00106
00107 ================================================================================
00108 MSG: pr2_image_snapshot_recorder/ImageSnapshotActionFeedback
00109 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00110
00111 Header header
00112 actionlib_msgs/GoalStatus status
00113 ImageSnapshotFeedback feedback
00114
00115 ================================================================================
00116 MSG: pr2_image_snapshot_recorder/ImageSnapshotFeedback
00117 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00118 # Empty feedback
00119
00120 """
00121 __slots__ = ['action_goal','action_result','action_feedback']
00122 _slot_types = ['pr2_image_snapshot_recorder/ImageSnapshotActionGoal','pr2_image_snapshot_recorder/ImageSnapshotActionResult','pr2_image_snapshot_recorder/ImageSnapshotActionFeedback']
00123
00124 def __init__(self, *args, **kwds):
00125 """
00126 Constructor. Any message fields that are implicitly/explicitly
00127 set to None will be assigned a default value. The recommend
00128 use is keyword arguments as this is more robust to future message
00129 changes. You cannot mix in-order arguments and keyword arguments.
00130
00131 The available fields are:
00132 action_goal,action_result,action_feedback
00133
00134 :param args: complete set of field values, in .msg order
00135 :param kwds: use keyword arguments corresponding to message field names
00136 to set specific fields.
00137 """
00138 if args or kwds:
00139 super(ImageSnapshotAction, self).__init__(*args, **kwds)
00140
00141 if self.action_goal is None:
00142 self.action_goal = pr2_image_snapshot_recorder.msg.ImageSnapshotActionGoal()
00143 if self.action_result is None:
00144 self.action_result = pr2_image_snapshot_recorder.msg.ImageSnapshotActionResult()
00145 if self.action_feedback is None:
00146 self.action_feedback = pr2_image_snapshot_recorder.msg.ImageSnapshotActionFeedback()
00147 else:
00148 self.action_goal = pr2_image_snapshot_recorder.msg.ImageSnapshotActionGoal()
00149 self.action_result = pr2_image_snapshot_recorder.msg.ImageSnapshotActionResult()
00150 self.action_feedback = pr2_image_snapshot_recorder.msg.ImageSnapshotActionFeedback()
00151
00152 def _get_types(self):
00153 """
00154 internal API method
00155 """
00156 return self._slot_types
00157
00158 def serialize(self, buff):
00159 """
00160 serialize message into buffer
00161 :param buff: buffer, ``StringIO``
00162 """
00163 try:
00164 _x = self
00165 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00166 _x = self.action_goal.header.frame_id
00167 length = len(_x)
00168 if python3 or type(_x) == unicode:
00169 _x = _x.encode('utf-8')
00170 length = len(_x)
00171 buff.write(struct.pack('<I%ss'%length, length, _x))
00172 _x = self
00173 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00174 _x = self.action_goal.goal_id.id
00175 length = len(_x)
00176 if python3 or type(_x) == unicode:
00177 _x = _x.encode('utf-8')
00178 length = len(_x)
00179 buff.write(struct.pack('<I%ss'%length, length, _x))
00180 _x = self.action_goal.goal.topic_name
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 buff.write(_struct_i.pack(self.action_goal.goal.num_images))
00187 _x = self.action_goal.goal.output_file_name
00188 length = len(_x)
00189 if python3 or type(_x) == unicode:
00190 _x = _x.encode('utf-8')
00191 length = len(_x)
00192 buff.write(struct.pack('<I%ss'%length, length, _x))
00193 _x = self
00194 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00195 _x = self.action_result.header.frame_id
00196 length = len(_x)
00197 if python3 or type(_x) == unicode:
00198 _x = _x.encode('utf-8')
00199 length = len(_x)
00200 buff.write(struct.pack('<I%ss'%length, length, _x))
00201 _x = self
00202 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00203 _x = self.action_result.status.goal_id.id
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 buff.write(_struct_B.pack(self.action_result.status.status))
00210 _x = self.action_result.status.text
00211 length = len(_x)
00212 if python3 or type(_x) == unicode:
00213 _x = _x.encode('utf-8')
00214 length = len(_x)
00215 buff.write(struct.pack('<I%ss'%length, length, _x))
00216 _x = self
00217 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00218 _x = self.action_feedback.header.frame_id
00219 length = len(_x)
00220 if python3 or type(_x) == unicode:
00221 _x = _x.encode('utf-8')
00222 length = len(_x)
00223 buff.write(struct.pack('<I%ss'%length, length, _x))
00224 _x = self
00225 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00226 _x = self.action_feedback.status.goal_id.id
00227 length = len(_x)
00228 if python3 or type(_x) == unicode:
00229 _x = _x.encode('utf-8')
00230 length = len(_x)
00231 buff.write(struct.pack('<I%ss'%length, length, _x))
00232 buff.write(_struct_B.pack(self.action_feedback.status.status))
00233 _x = self.action_feedback.status.text
00234 length = len(_x)
00235 if python3 or type(_x) == unicode:
00236 _x = _x.encode('utf-8')
00237 length = len(_x)
00238 buff.write(struct.pack('<I%ss'%length, length, _x))
00239 except struct.error as se: self._check_types(se)
00240 except TypeError as te: self._check_types(te)
00241
00242 def deserialize(self, str):
00243 """
00244 unpack serialized message in str into this message instance
00245 :param str: byte array of serialized message, ``str``
00246 """
00247 try:
00248 if self.action_goal is None:
00249 self.action_goal = pr2_image_snapshot_recorder.msg.ImageSnapshotActionGoal()
00250 if self.action_result is None:
00251 self.action_result = pr2_image_snapshot_recorder.msg.ImageSnapshotActionResult()
00252 if self.action_feedback is None:
00253 self.action_feedback = pr2_image_snapshot_recorder.msg.ImageSnapshotActionFeedback()
00254 end = 0
00255 _x = self
00256 start = end
00257 end += 12
00258 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00259 start = end
00260 end += 4
00261 (length,) = _struct_I.unpack(str[start:end])
00262 start = end
00263 end += length
00264 if python3:
00265 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00266 else:
00267 self.action_goal.header.frame_id = str[start:end]
00268 _x = self
00269 start = end
00270 end += 8
00271 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00272 start = end
00273 end += 4
00274 (length,) = _struct_I.unpack(str[start:end])
00275 start = end
00276 end += length
00277 if python3:
00278 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00279 else:
00280 self.action_goal.goal_id.id = str[start:end]
00281 start = end
00282 end += 4
00283 (length,) = _struct_I.unpack(str[start:end])
00284 start = end
00285 end += length
00286 if python3:
00287 self.action_goal.goal.topic_name = str[start:end].decode('utf-8')
00288 else:
00289 self.action_goal.goal.topic_name = str[start:end]
00290 start = end
00291 end += 4
00292 (self.action_goal.goal.num_images,) = _struct_i.unpack(str[start:end])
00293 start = end
00294 end += 4
00295 (length,) = _struct_I.unpack(str[start:end])
00296 start = end
00297 end += length
00298 if python3:
00299 self.action_goal.goal.output_file_name = str[start:end].decode('utf-8')
00300 else:
00301 self.action_goal.goal.output_file_name = str[start:end]
00302 _x = self
00303 start = end
00304 end += 12
00305 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00306 start = end
00307 end += 4
00308 (length,) = _struct_I.unpack(str[start:end])
00309 start = end
00310 end += length
00311 if python3:
00312 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00313 else:
00314 self.action_result.header.frame_id = str[start:end]
00315 _x = self
00316 start = end
00317 end += 8
00318 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00319 start = end
00320 end += 4
00321 (length,) = _struct_I.unpack(str[start:end])
00322 start = end
00323 end += length
00324 if python3:
00325 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00326 else:
00327 self.action_result.status.goal_id.id = str[start:end]
00328 start = end
00329 end += 1
00330 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00331 start = end
00332 end += 4
00333 (length,) = _struct_I.unpack(str[start:end])
00334 start = end
00335 end += length
00336 if python3:
00337 self.action_result.status.text = str[start:end].decode('utf-8')
00338 else:
00339 self.action_result.status.text = str[start:end]
00340 _x = self
00341 start = end
00342 end += 12
00343 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00344 start = end
00345 end += 4
00346 (length,) = _struct_I.unpack(str[start:end])
00347 start = end
00348 end += length
00349 if python3:
00350 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00351 else:
00352 self.action_feedback.header.frame_id = str[start:end]
00353 _x = self
00354 start = end
00355 end += 8
00356 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00357 start = end
00358 end += 4
00359 (length,) = _struct_I.unpack(str[start:end])
00360 start = end
00361 end += length
00362 if python3:
00363 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00364 else:
00365 self.action_feedback.status.goal_id.id = str[start:end]
00366 start = end
00367 end += 1
00368 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00369 start = end
00370 end += 4
00371 (length,) = _struct_I.unpack(str[start:end])
00372 start = end
00373 end += length
00374 if python3:
00375 self.action_feedback.status.text = str[start:end].decode('utf-8')
00376 else:
00377 self.action_feedback.status.text = str[start:end]
00378 return self
00379 except struct.error as e:
00380 raise genpy.DeserializationError(e)
00381
00382
00383 def serialize_numpy(self, buff, numpy):
00384 """
00385 serialize message with numpy array types into buffer
00386 :param buff: buffer, ``StringIO``
00387 :param numpy: numpy python module
00388 """
00389 try:
00390 _x = self
00391 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00392 _x = self.action_goal.header.frame_id
00393 length = len(_x)
00394 if python3 or type(_x) == unicode:
00395 _x = _x.encode('utf-8')
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_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00400 _x = self.action_goal.goal_id.id
00401 length = len(_x)
00402 if python3 or type(_x) == unicode:
00403 _x = _x.encode('utf-8')
00404 length = len(_x)
00405 buff.write(struct.pack('<I%ss'%length, length, _x))
00406 _x = self.action_goal.goal.topic_name
00407 length = len(_x)
00408 if python3 or type(_x) == unicode:
00409 _x = _x.encode('utf-8')
00410 length = len(_x)
00411 buff.write(struct.pack('<I%ss'%length, length, _x))
00412 buff.write(_struct_i.pack(self.action_goal.goal.num_images))
00413 _x = self.action_goal.goal.output_file_name
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
00420 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00421 _x = self.action_result.header.frame_id
00422 length = len(_x)
00423 if python3 or type(_x) == unicode:
00424 _x = _x.encode('utf-8')
00425 length = len(_x)
00426 buff.write(struct.pack('<I%ss'%length, length, _x))
00427 _x = self
00428 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00429 _x = self.action_result.status.goal_id.id
00430 length = len(_x)
00431 if python3 or type(_x) == unicode:
00432 _x = _x.encode('utf-8')
00433 length = len(_x)
00434 buff.write(struct.pack('<I%ss'%length, length, _x))
00435 buff.write(_struct_B.pack(self.action_result.status.status))
00436 _x = self.action_result.status.text
00437 length = len(_x)
00438 if python3 or type(_x) == unicode:
00439 _x = _x.encode('utf-8')
00440 length = len(_x)
00441 buff.write(struct.pack('<I%ss'%length, length, _x))
00442 _x = self
00443 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00444 _x = self.action_feedback.header.frame_id
00445 length = len(_x)
00446 if python3 or type(_x) == unicode:
00447 _x = _x.encode('utf-8')
00448 length = len(_x)
00449 buff.write(struct.pack('<I%ss'%length, length, _x))
00450 _x = self
00451 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00452 _x = self.action_feedback.status.goal_id.id
00453 length = len(_x)
00454 if python3 or type(_x) == unicode:
00455 _x = _x.encode('utf-8')
00456 length = len(_x)
00457 buff.write(struct.pack('<I%ss'%length, length, _x))
00458 buff.write(_struct_B.pack(self.action_feedback.status.status))
00459 _x = self.action_feedback.status.text
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 except struct.error as se: self._check_types(se)
00466 except TypeError as te: self._check_types(te)
00467
00468 def deserialize_numpy(self, str, numpy):
00469 """
00470 unpack serialized message in str into this message instance using numpy for array types
00471 :param str: byte array of serialized message, ``str``
00472 :param numpy: numpy python module
00473 """
00474 try:
00475 if self.action_goal is None:
00476 self.action_goal = pr2_image_snapshot_recorder.msg.ImageSnapshotActionGoal()
00477 if self.action_result is None:
00478 self.action_result = pr2_image_snapshot_recorder.msg.ImageSnapshotActionResult()
00479 if self.action_feedback is None:
00480 self.action_feedback = pr2_image_snapshot_recorder.msg.ImageSnapshotActionFeedback()
00481 end = 0
00482 _x = self
00483 start = end
00484 end += 12
00485 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00486 start = end
00487 end += 4
00488 (length,) = _struct_I.unpack(str[start:end])
00489 start = end
00490 end += length
00491 if python3:
00492 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00493 else:
00494 self.action_goal.header.frame_id = str[start:end]
00495 _x = self
00496 start = end
00497 end += 8
00498 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00499 start = end
00500 end += 4
00501 (length,) = _struct_I.unpack(str[start:end])
00502 start = end
00503 end += length
00504 if python3:
00505 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00506 else:
00507 self.action_goal.goal_id.id = str[start:end]
00508 start = end
00509 end += 4
00510 (length,) = _struct_I.unpack(str[start:end])
00511 start = end
00512 end += length
00513 if python3:
00514 self.action_goal.goal.topic_name = str[start:end].decode('utf-8')
00515 else:
00516 self.action_goal.goal.topic_name = str[start:end]
00517 start = end
00518 end += 4
00519 (self.action_goal.goal.num_images,) = _struct_i.unpack(str[start:end])
00520 start = end
00521 end += 4
00522 (length,) = _struct_I.unpack(str[start:end])
00523 start = end
00524 end += length
00525 if python3:
00526 self.action_goal.goal.output_file_name = str[start:end].decode('utf-8')
00527 else:
00528 self.action_goal.goal.output_file_name = str[start:end]
00529 _x = self
00530 start = end
00531 end += 12
00532 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00533 start = end
00534 end += 4
00535 (length,) = _struct_I.unpack(str[start:end])
00536 start = end
00537 end += length
00538 if python3:
00539 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00540 else:
00541 self.action_result.header.frame_id = str[start:end]
00542 _x = self
00543 start = end
00544 end += 8
00545 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00546 start = end
00547 end += 4
00548 (length,) = _struct_I.unpack(str[start:end])
00549 start = end
00550 end += length
00551 if python3:
00552 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00553 else:
00554 self.action_result.status.goal_id.id = str[start:end]
00555 start = end
00556 end += 1
00557 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00558 start = end
00559 end += 4
00560 (length,) = _struct_I.unpack(str[start:end])
00561 start = end
00562 end += length
00563 if python3:
00564 self.action_result.status.text = str[start:end].decode('utf-8')
00565 else:
00566 self.action_result.status.text = str[start:end]
00567 _x = self
00568 start = end
00569 end += 12
00570 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00571 start = end
00572 end += 4
00573 (length,) = _struct_I.unpack(str[start:end])
00574 start = end
00575 end += length
00576 if python3:
00577 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00578 else:
00579 self.action_feedback.header.frame_id = str[start:end]
00580 _x = self
00581 start = end
00582 end += 8
00583 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00584 start = end
00585 end += 4
00586 (length,) = _struct_I.unpack(str[start:end])
00587 start = end
00588 end += length
00589 if python3:
00590 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00591 else:
00592 self.action_feedback.status.goal_id.id = str[start:end]
00593 start = end
00594 end += 1
00595 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00596 start = end
00597 end += 4
00598 (length,) = _struct_I.unpack(str[start:end])
00599 start = end
00600 end += length
00601 if python3:
00602 self.action_feedback.status.text = str[start:end].decode('utf-8')
00603 else:
00604 self.action_feedback.status.text = str[start:end]
00605 return self
00606 except struct.error as e:
00607 raise genpy.DeserializationError(e)
00608
00609 _struct_I = genpy.struct_I
00610 _struct_i = struct.Struct("<i")
00611 _struct_3I = struct.Struct("<3I")
00612 _struct_B = struct.Struct("<B")
00613 _struct_2I = struct.Struct("<2I")