00001 """autogenerated by genpy from tibi_dabo_msgs/guideGoalAction.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 tibi_dabo_msgs.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011
00012 class guideGoalAction(genpy.Message):
00013 _md5sum = "a653181f8a031f193a34319025b914af"
00014 _type = "tibi_dabo_msgs/guideGoalAction"
00015 _has_header = False
00016 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017
00018 guideGoalActionGoal action_goal
00019 guideGoalActionResult action_result
00020 guideGoalActionFeedback action_feedback
00021
00022 ================================================================================
00023 MSG: tibi_dabo_msgs/guideGoalActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 guideGoalGoal 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: tibi_dabo_msgs/guideGoalGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 #goal definition
00065 string location_id
00066 string robot_id
00067 int32 target_id
00068
00069 ================================================================================
00070 MSG: tibi_dabo_msgs/guideGoalActionResult
00071 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00072
00073 Header header
00074 actionlib_msgs/GoalStatus status
00075 guideGoalResult result
00076
00077 ================================================================================
00078 MSG: actionlib_msgs/GoalStatus
00079 GoalID goal_id
00080 uint8 status
00081 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00082 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00083 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00084 # and has since completed its execution (Terminal State)
00085 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00086 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00087 # to some failure (Terminal State)
00088 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00089 # because the goal was unattainable or invalid (Terminal State)
00090 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00091 # and has not yet completed execution
00092 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00093 # but the action server has not yet confirmed that the goal is canceled
00094 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00095 # and was successfully cancelled (Terminal State)
00096 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00097 # sent over the wire by an action server
00098
00099 #Allow for the user to associate a string with GoalStatus for debugging
00100 string text
00101
00102
00103 ================================================================================
00104 MSG: tibi_dabo_msgs/guideGoalResult
00105 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00106 #result definition
00107 int32 result_code
00108 string result_type
00109
00110 ================================================================================
00111 MSG: tibi_dabo_msgs/guideGoalActionFeedback
00112 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00113
00114 Header header
00115 actionlib_msgs/GoalStatus status
00116 guideGoalFeedback feedback
00117
00118 ================================================================================
00119 MSG: tibi_dabo_msgs/guideGoalFeedback
00120 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00121 #feedback
00122 float32 distance
00123
00124
00125
00126 """
00127 __slots__ = ['action_goal','action_result','action_feedback']
00128 _slot_types = ['tibi_dabo_msgs/guideGoalActionGoal','tibi_dabo_msgs/guideGoalActionResult','tibi_dabo_msgs/guideGoalActionFeedback']
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(guideGoalAction, self).__init__(*args, **kwds)
00146
00147 if self.action_goal is None:
00148 self.action_goal = tibi_dabo_msgs.msg.guideGoalActionGoal()
00149 if self.action_result is None:
00150 self.action_result = tibi_dabo_msgs.msg.guideGoalActionResult()
00151 if self.action_feedback is None:
00152 self.action_feedback = tibi_dabo_msgs.msg.guideGoalActionFeedback()
00153 else:
00154 self.action_goal = tibi_dabo_msgs.msg.guideGoalActionGoal()
00155 self.action_result = tibi_dabo_msgs.msg.guideGoalActionResult()
00156 self.action_feedback = tibi_dabo_msgs.msg.guideGoalActionFeedback()
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.action_goal.goal.location_id
00187 length = len(_x)
00188 if python3 or type(_x) == unicode:
00189 _x = _x.encode('utf-8')
00190 length = len(_x)
00191 buff.write(struct.pack('<I%ss'%length, length, _x))
00192 _x = self.action_goal.goal.robot_id
00193 length = len(_x)
00194 if python3 or type(_x) == unicode:
00195 _x = _x.encode('utf-8')
00196 length = len(_x)
00197 buff.write(struct.pack('<I%ss'%length, length, _x))
00198 _x = self
00199 buff.write(_struct_i3I.pack(_x.action_goal.goal.target_id, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00200 _x = self.action_result.header.frame_id
00201 length = len(_x)
00202 if python3 or type(_x) == unicode:
00203 _x = _x.encode('utf-8')
00204 length = len(_x)
00205 buff.write(struct.pack('<I%ss'%length, length, _x))
00206 _x = self
00207 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00208 _x = self.action_result.status.goal_id.id
00209 length = len(_x)
00210 if python3 or type(_x) == unicode:
00211 _x = _x.encode('utf-8')
00212 length = len(_x)
00213 buff.write(struct.pack('<I%ss'%length, length, _x))
00214 buff.write(_struct_B.pack(self.action_result.status.status))
00215 _x = self.action_result.status.text
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 buff.write(_struct_i.pack(self.action_result.result.result_code))
00222 _x = self.action_result.result.result_type
00223 length = len(_x)
00224 if python3 or type(_x) == unicode:
00225 _x = _x.encode('utf-8')
00226 length = len(_x)
00227 buff.write(struct.pack('<I%ss'%length, length, _x))
00228 _x = self
00229 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00230 _x = self.action_feedback.header.frame_id
00231 length = len(_x)
00232 if python3 or type(_x) == unicode:
00233 _x = _x.encode('utf-8')
00234 length = len(_x)
00235 buff.write(struct.pack('<I%ss'%length, length, _x))
00236 _x = self
00237 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00238 _x = self.action_feedback.status.goal_id.id
00239 length = len(_x)
00240 if python3 or type(_x) == unicode:
00241 _x = _x.encode('utf-8')
00242 length = len(_x)
00243 buff.write(struct.pack('<I%ss'%length, length, _x))
00244 buff.write(_struct_B.pack(self.action_feedback.status.status))
00245 _x = self.action_feedback.status.text
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 buff.write(_struct_f.pack(self.action_feedback.feedback.distance))
00252 except struct.error as se: self._check_types(se)
00253 except TypeError as te: self._check_types(te)
00254
00255 def deserialize(self, str):
00256 """
00257 unpack serialized message in str into this message instance
00258 :param str: byte array of serialized message, ``str``
00259 """
00260 try:
00261 if self.action_goal is None:
00262 self.action_goal = tibi_dabo_msgs.msg.guideGoalActionGoal()
00263 if self.action_result is None:
00264 self.action_result = tibi_dabo_msgs.msg.guideGoalActionResult()
00265 if self.action_feedback is None:
00266 self.action_feedback = tibi_dabo_msgs.msg.guideGoalActionFeedback()
00267 end = 0
00268 _x = self
00269 start = end
00270 end += 12
00271 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.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.header.frame_id = str[start:end].decode('utf-8')
00279 else:
00280 self.action_goal.header.frame_id = str[start:end]
00281 _x = self
00282 start = end
00283 end += 8
00284 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00285 start = end
00286 end += 4
00287 (length,) = _struct_I.unpack(str[start:end])
00288 start = end
00289 end += length
00290 if python3:
00291 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00292 else:
00293 self.action_goal.goal_id.id = str[start:end]
00294 start = end
00295 end += 4
00296 (length,) = _struct_I.unpack(str[start:end])
00297 start = end
00298 end += length
00299 if python3:
00300 self.action_goal.goal.location_id = str[start:end].decode('utf-8')
00301 else:
00302 self.action_goal.goal.location_id = str[start:end]
00303 start = end
00304 end += 4
00305 (length,) = _struct_I.unpack(str[start:end])
00306 start = end
00307 end += length
00308 if python3:
00309 self.action_goal.goal.robot_id = str[start:end].decode('utf-8')
00310 else:
00311 self.action_goal.goal.robot_id = str[start:end]
00312 _x = self
00313 start = end
00314 end += 16
00315 (_x.action_goal.goal.target_id, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_i3I.unpack(str[start:end])
00316 start = end
00317 end += 4
00318 (length,) = _struct_I.unpack(str[start:end])
00319 start = end
00320 end += length
00321 if python3:
00322 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00323 else:
00324 self.action_result.header.frame_id = str[start:end]
00325 _x = self
00326 start = end
00327 end += 8
00328 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00329 start = end
00330 end += 4
00331 (length,) = _struct_I.unpack(str[start:end])
00332 start = end
00333 end += length
00334 if python3:
00335 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00336 else:
00337 self.action_result.status.goal_id.id = str[start:end]
00338 start = end
00339 end += 1
00340 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00341 start = end
00342 end += 4
00343 (length,) = _struct_I.unpack(str[start:end])
00344 start = end
00345 end += length
00346 if python3:
00347 self.action_result.status.text = str[start:end].decode('utf-8')
00348 else:
00349 self.action_result.status.text = str[start:end]
00350 start = end
00351 end += 4
00352 (self.action_result.result.result_code,) = _struct_i.unpack(str[start:end])
00353 start = end
00354 end += 4
00355 (length,) = _struct_I.unpack(str[start:end])
00356 start = end
00357 end += length
00358 if python3:
00359 self.action_result.result.result_type = str[start:end].decode('utf-8')
00360 else:
00361 self.action_result.result.result_type = str[start:end]
00362 _x = self
00363 start = end
00364 end += 12
00365 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00366 start = end
00367 end += 4
00368 (length,) = _struct_I.unpack(str[start:end])
00369 start = end
00370 end += length
00371 if python3:
00372 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00373 else:
00374 self.action_feedback.header.frame_id = str[start:end]
00375 _x = self
00376 start = end
00377 end += 8
00378 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00379 start = end
00380 end += 4
00381 (length,) = _struct_I.unpack(str[start:end])
00382 start = end
00383 end += length
00384 if python3:
00385 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00386 else:
00387 self.action_feedback.status.goal_id.id = str[start:end]
00388 start = end
00389 end += 1
00390 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00391 start = end
00392 end += 4
00393 (length,) = _struct_I.unpack(str[start:end])
00394 start = end
00395 end += length
00396 if python3:
00397 self.action_feedback.status.text = str[start:end].decode('utf-8')
00398 else:
00399 self.action_feedback.status.text = str[start:end]
00400 start = end
00401 end += 4
00402 (self.action_feedback.feedback.distance,) = _struct_f.unpack(str[start:end])
00403 return self
00404 except struct.error as e:
00405 raise genpy.DeserializationError(e)
00406
00407
00408 def serialize_numpy(self, buff, numpy):
00409 """
00410 serialize message with numpy array types into buffer
00411 :param buff: buffer, ``StringIO``
00412 :param numpy: numpy python module
00413 """
00414 try:
00415 _x = self
00416 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00417 _x = self.action_goal.header.frame_id
00418 length = len(_x)
00419 if python3 or type(_x) == unicode:
00420 _x = _x.encode('utf-8')
00421 length = len(_x)
00422 buff.write(struct.pack('<I%ss'%length, length, _x))
00423 _x = self
00424 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00425 _x = self.action_goal.goal_id.id
00426 length = len(_x)
00427 if python3 or type(_x) == unicode:
00428 _x = _x.encode('utf-8')
00429 length = len(_x)
00430 buff.write(struct.pack('<I%ss'%length, length, _x))
00431 _x = self.action_goal.goal.location_id
00432 length = len(_x)
00433 if python3 or type(_x) == unicode:
00434 _x = _x.encode('utf-8')
00435 length = len(_x)
00436 buff.write(struct.pack('<I%ss'%length, length, _x))
00437 _x = self.action_goal.goal.robot_id
00438 length = len(_x)
00439 if python3 or type(_x) == unicode:
00440 _x = _x.encode('utf-8')
00441 length = len(_x)
00442 buff.write(struct.pack('<I%ss'%length, length, _x))
00443 _x = self
00444 buff.write(_struct_i3I.pack(_x.action_goal.goal.target_id, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00445 _x = self.action_result.header.frame_id
00446 length = len(_x)
00447 if python3 or type(_x) == unicode:
00448 _x = _x.encode('utf-8')
00449 length = len(_x)
00450 buff.write(struct.pack('<I%ss'%length, length, _x))
00451 _x = self
00452 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00453 _x = self.action_result.status.goal_id.id
00454 length = len(_x)
00455 if python3 or type(_x) == unicode:
00456 _x = _x.encode('utf-8')
00457 length = len(_x)
00458 buff.write(struct.pack('<I%ss'%length, length, _x))
00459 buff.write(_struct_B.pack(self.action_result.status.status))
00460 _x = self.action_result.status.text
00461 length = len(_x)
00462 if python3 or type(_x) == unicode:
00463 _x = _x.encode('utf-8')
00464 length = len(_x)
00465 buff.write(struct.pack('<I%ss'%length, length, _x))
00466 buff.write(_struct_i.pack(self.action_result.result.result_code))
00467 _x = self.action_result.result.result_type
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_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00475 _x = self.action_feedback.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_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00483 _x = self.action_feedback.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_feedback.status.status))
00490 _x = self.action_feedback.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 buff.write(_struct_f.pack(self.action_feedback.feedback.distance))
00497 except struct.error as se: self._check_types(se)
00498 except TypeError as te: self._check_types(te)
00499
00500 def deserialize_numpy(self, str, numpy):
00501 """
00502 unpack serialized message in str into this message instance using numpy for array types
00503 :param str: byte array of serialized message, ``str``
00504 :param numpy: numpy python module
00505 """
00506 try:
00507 if self.action_goal is None:
00508 self.action_goal = tibi_dabo_msgs.msg.guideGoalActionGoal()
00509 if self.action_result is None:
00510 self.action_result = tibi_dabo_msgs.msg.guideGoalActionResult()
00511 if self.action_feedback is None:
00512 self.action_feedback = tibi_dabo_msgs.msg.guideGoalActionFeedback()
00513 end = 0
00514 _x = self
00515 start = end
00516 end += 12
00517 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00518 start = end
00519 end += 4
00520 (length,) = _struct_I.unpack(str[start:end])
00521 start = end
00522 end += length
00523 if python3:
00524 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00525 else:
00526 self.action_goal.header.frame_id = str[start:end]
00527 _x = self
00528 start = end
00529 end += 8
00530 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00531 start = end
00532 end += 4
00533 (length,) = _struct_I.unpack(str[start:end])
00534 start = end
00535 end += length
00536 if python3:
00537 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00538 else:
00539 self.action_goal.goal_id.id = str[start:end]
00540 start = end
00541 end += 4
00542 (length,) = _struct_I.unpack(str[start:end])
00543 start = end
00544 end += length
00545 if python3:
00546 self.action_goal.goal.location_id = str[start:end].decode('utf-8')
00547 else:
00548 self.action_goal.goal.location_id = str[start:end]
00549 start = end
00550 end += 4
00551 (length,) = _struct_I.unpack(str[start:end])
00552 start = end
00553 end += length
00554 if python3:
00555 self.action_goal.goal.robot_id = str[start:end].decode('utf-8')
00556 else:
00557 self.action_goal.goal.robot_id = str[start:end]
00558 _x = self
00559 start = end
00560 end += 16
00561 (_x.action_goal.goal.target_id, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_i3I.unpack(str[start:end])
00562 start = end
00563 end += 4
00564 (length,) = _struct_I.unpack(str[start:end])
00565 start = end
00566 end += length
00567 if python3:
00568 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00569 else:
00570 self.action_result.header.frame_id = str[start:end]
00571 _x = self
00572 start = end
00573 end += 8
00574 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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_result.status.goal_id.id = str[start:end].decode('utf-8')
00582 else:
00583 self.action_result.status.goal_id.id = str[start:end]
00584 start = end
00585 end += 1
00586 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00587 start = end
00588 end += 4
00589 (length,) = _struct_I.unpack(str[start:end])
00590 start = end
00591 end += length
00592 if python3:
00593 self.action_result.status.text = str[start:end].decode('utf-8')
00594 else:
00595 self.action_result.status.text = str[start:end]
00596 start = end
00597 end += 4
00598 (self.action_result.result.result_code,) = _struct_i.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_result.result.result_type = str[start:end].decode('utf-8')
00606 else:
00607 self.action_result.result.result_type = str[start:end]
00608 _x = self
00609 start = end
00610 end += 12
00611 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00612 start = end
00613 end += 4
00614 (length,) = _struct_I.unpack(str[start:end])
00615 start = end
00616 end += length
00617 if python3:
00618 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00619 else:
00620 self.action_feedback.header.frame_id = str[start:end]
00621 _x = self
00622 start = end
00623 end += 8
00624 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00625 start = end
00626 end += 4
00627 (length,) = _struct_I.unpack(str[start:end])
00628 start = end
00629 end += length
00630 if python3:
00631 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00632 else:
00633 self.action_feedback.status.goal_id.id = str[start:end]
00634 start = end
00635 end += 1
00636 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00637 start = end
00638 end += 4
00639 (length,) = _struct_I.unpack(str[start:end])
00640 start = end
00641 end += length
00642 if python3:
00643 self.action_feedback.status.text = str[start:end].decode('utf-8')
00644 else:
00645 self.action_feedback.status.text = str[start:end]
00646 start = end
00647 end += 4
00648 (self.action_feedback.feedback.distance,) = _struct_f.unpack(str[start:end])
00649 return self
00650 except struct.error as e:
00651 raise genpy.DeserializationError(e)
00652
00653 _struct_I = genpy.struct_I
00654 _struct_B = struct.Struct("<B")
00655 _struct_f = struct.Struct("<f")
00656 _struct_i = struct.Struct("<i")
00657 _struct_i3I = struct.Struct("<i3I")
00658 _struct_3I = struct.Struct("<3I")
00659 _struct_2I = struct.Struct("<2I")