00001 """autogenerated by genpy from tibi_dabo_msgs/guiAction.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 guiAction(genpy.Message):
00013 _md5sum = "43ed46bb6e4deb80683eee8664c5b5be"
00014 _type = "tibi_dabo_msgs/guiAction"
00015 _has_header = False
00016 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017
00018 guiActionGoal action_goal
00019 guiActionResult action_result
00020 guiActionFeedback action_feedback
00021
00022 ================================================================================
00023 MSG: tibi_dabo_msgs/guiActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 guiGoal 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/guiGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 #goal definition
00065 int32 cmd_id
00066 float64[] num_params
00067 string[] string_params
00068
00069 ================================================================================
00070 MSG: tibi_dabo_msgs/guiActionResult
00071 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00072
00073 Header header
00074 actionlib_msgs/GoalStatus status
00075 guiResult 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/guiResult
00105 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00106 #result definition
00107
00108
00109 ================================================================================
00110 MSG: tibi_dabo_msgs/guiActionFeedback
00111 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00112
00113 Header header
00114 actionlib_msgs/GoalStatus status
00115 guiFeedback feedback
00116
00117 ================================================================================
00118 MSG: tibi_dabo_msgs/guiFeedback
00119 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00120 #feedback
00121 float64[] num_feedback
00122 string[] string_feedback
00123
00124
00125
00126 """
00127 __slots__ = ['action_goal','action_result','action_feedback']
00128 _slot_types = ['tibi_dabo_msgs/guiActionGoal','tibi_dabo_msgs/guiActionResult','tibi_dabo_msgs/guiActionFeedback']
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(guiAction, self).__init__(*args, **kwds)
00146
00147 if self.action_goal is None:
00148 self.action_goal = tibi_dabo_msgs.msg.guiActionGoal()
00149 if self.action_result is None:
00150 self.action_result = tibi_dabo_msgs.msg.guiActionResult()
00151 if self.action_feedback is None:
00152 self.action_feedback = tibi_dabo_msgs.msg.guiActionFeedback()
00153 else:
00154 self.action_goal = tibi_dabo_msgs.msg.guiActionGoal()
00155 self.action_result = tibi_dabo_msgs.msg.guiActionResult()
00156 self.action_feedback = tibi_dabo_msgs.msg.guiActionFeedback()
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 buff.write(_struct_i.pack(self.action_goal.goal.cmd_id))
00187 length = len(self.action_goal.goal.num_params)
00188 buff.write(_struct_I.pack(length))
00189 pattern = '<%sd'%length
00190 buff.write(struct.pack(pattern, *self.action_goal.goal.num_params))
00191 length = len(self.action_goal.goal.string_params)
00192 buff.write(_struct_I.pack(length))
00193 for val1 in self.action_goal.goal.string_params:
00194 length = len(val1)
00195 if python3 or type(val1) == unicode:
00196 val1 = val1.encode('utf-8')
00197 length = len(val1)
00198 buff.write(struct.pack('<I%ss'%length, length, val1))
00199 _x = self
00200 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00201 _x = self.action_result.header.frame_id
00202 length = len(_x)
00203 if python3 or type(_x) == unicode:
00204 _x = _x.encode('utf-8')
00205 length = len(_x)
00206 buff.write(struct.pack('<I%ss'%length, length, _x))
00207 _x = self
00208 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00209 _x = self.action_result.status.goal_id.id
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 buff.write(_struct_B.pack(self.action_result.status.status))
00216 _x = self.action_result.status.text
00217 length = len(_x)
00218 if python3 or type(_x) == unicode:
00219 _x = _x.encode('utf-8')
00220 length = len(_x)
00221 buff.write(struct.pack('<I%ss'%length, length, _x))
00222 _x = self
00223 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00224 _x = self.action_feedback.header.frame_id
00225 length = len(_x)
00226 if python3 or type(_x) == unicode:
00227 _x = _x.encode('utf-8')
00228 length = len(_x)
00229 buff.write(struct.pack('<I%ss'%length, length, _x))
00230 _x = self
00231 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00232 _x = self.action_feedback.status.goal_id.id
00233 length = len(_x)
00234 if python3 or type(_x) == unicode:
00235 _x = _x.encode('utf-8')
00236 length = len(_x)
00237 buff.write(struct.pack('<I%ss'%length, length, _x))
00238 buff.write(_struct_B.pack(self.action_feedback.status.status))
00239 _x = self.action_feedback.status.text
00240 length = len(_x)
00241 if python3 or type(_x) == unicode:
00242 _x = _x.encode('utf-8')
00243 length = len(_x)
00244 buff.write(struct.pack('<I%ss'%length, length, _x))
00245 length = len(self.action_feedback.feedback.num_feedback)
00246 buff.write(_struct_I.pack(length))
00247 pattern = '<%sd'%length
00248 buff.write(struct.pack(pattern, *self.action_feedback.feedback.num_feedback))
00249 length = len(self.action_feedback.feedback.string_feedback)
00250 buff.write(_struct_I.pack(length))
00251 for val1 in self.action_feedback.feedback.string_feedback:
00252 length = len(val1)
00253 if python3 or type(val1) == unicode:
00254 val1 = val1.encode('utf-8')
00255 length = len(val1)
00256 buff.write(struct.pack('<I%ss'%length, length, val1))
00257 except struct.error as se: self._check_types(se)
00258 except TypeError as te: self._check_types(te)
00259
00260 def deserialize(self, str):
00261 """
00262 unpack serialized message in str into this message instance
00263 :param str: byte array of serialized message, ``str``
00264 """
00265 try:
00266 if self.action_goal is None:
00267 self.action_goal = tibi_dabo_msgs.msg.guiActionGoal()
00268 if self.action_result is None:
00269 self.action_result = tibi_dabo_msgs.msg.guiActionResult()
00270 if self.action_feedback is None:
00271 self.action_feedback = tibi_dabo_msgs.msg.guiActionFeedback()
00272 end = 0
00273 _x = self
00274 start = end
00275 end += 12
00276 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00277 start = end
00278 end += 4
00279 (length,) = _struct_I.unpack(str[start:end])
00280 start = end
00281 end += length
00282 if python3:
00283 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00284 else:
00285 self.action_goal.header.frame_id = str[start:end]
00286 _x = self
00287 start = end
00288 end += 8
00289 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00290 start = end
00291 end += 4
00292 (length,) = _struct_I.unpack(str[start:end])
00293 start = end
00294 end += length
00295 if python3:
00296 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00297 else:
00298 self.action_goal.goal_id.id = str[start:end]
00299 start = end
00300 end += 4
00301 (self.action_goal.goal.cmd_id,) = _struct_i.unpack(str[start:end])
00302 start = end
00303 end += 4
00304 (length,) = _struct_I.unpack(str[start:end])
00305 pattern = '<%sd'%length
00306 start = end
00307 end += struct.calcsize(pattern)
00308 self.action_goal.goal.num_params = struct.unpack(pattern, str[start:end])
00309 start = end
00310 end += 4
00311 (length,) = _struct_I.unpack(str[start:end])
00312 self.action_goal.goal.string_params = []
00313 for i in range(0, length):
00314 start = end
00315 end += 4
00316 (length,) = _struct_I.unpack(str[start:end])
00317 start = end
00318 end += length
00319 if python3:
00320 val1 = str[start:end].decode('utf-8')
00321 else:
00322 val1 = str[start:end]
00323 self.action_goal.goal.string_params.append(val1)
00324 _x = self
00325 start = end
00326 end += 12
00327 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00328 start = end
00329 end += 4
00330 (length,) = _struct_I.unpack(str[start:end])
00331 start = end
00332 end += length
00333 if python3:
00334 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00335 else:
00336 self.action_result.header.frame_id = str[start:end]
00337 _x = self
00338 start = end
00339 end += 8
00340 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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.goal_id.id = str[start:end].decode('utf-8')
00348 else:
00349 self.action_result.status.goal_id.id = str[start:end]
00350 start = end
00351 end += 1
00352 (self.action_result.status.status,) = _struct_B.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.status.text = str[start:end].decode('utf-8')
00360 else:
00361 self.action_result.status.text = 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 (length,) = _struct_I.unpack(str[start:end])
00403 pattern = '<%sd'%length
00404 start = end
00405 end += struct.calcsize(pattern)
00406 self.action_feedback.feedback.num_feedback = struct.unpack(pattern, str[start:end])
00407 start = end
00408 end += 4
00409 (length,) = _struct_I.unpack(str[start:end])
00410 self.action_feedback.feedback.string_feedback = []
00411 for i in range(0, length):
00412 start = end
00413 end += 4
00414 (length,) = _struct_I.unpack(str[start:end])
00415 start = end
00416 end += length
00417 if python3:
00418 val1 = str[start:end].decode('utf-8')
00419 else:
00420 val1 = str[start:end]
00421 self.action_feedback.feedback.string_feedback.append(val1)
00422 return self
00423 except struct.error as e:
00424 raise genpy.DeserializationError(e)
00425
00426
00427 def serialize_numpy(self, buff, numpy):
00428 """
00429 serialize message with numpy array types into buffer
00430 :param buff: buffer, ``StringIO``
00431 :param numpy: numpy python module
00432 """
00433 try:
00434 _x = self
00435 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00436 _x = self.action_goal.header.frame_id
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_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00444 _x = self.action_goal.goal_id.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 buff.write(_struct_i.pack(self.action_goal.goal.cmd_id))
00451 length = len(self.action_goal.goal.num_params)
00452 buff.write(_struct_I.pack(length))
00453 pattern = '<%sd'%length
00454 buff.write(self.action_goal.goal.num_params.tostring())
00455 length = len(self.action_goal.goal.string_params)
00456 buff.write(_struct_I.pack(length))
00457 for val1 in self.action_goal.goal.string_params:
00458 length = len(val1)
00459 if python3 or type(val1) == unicode:
00460 val1 = val1.encode('utf-8')
00461 length = len(val1)
00462 buff.write(struct.pack('<I%ss'%length, length, val1))
00463 _x = self
00464 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00465 _x = self.action_result.header.frame_id
00466 length = len(_x)
00467 if python3 or type(_x) == unicode:
00468 _x = _x.encode('utf-8')
00469 length = len(_x)
00470 buff.write(struct.pack('<I%ss'%length, length, _x))
00471 _x = self
00472 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00473 _x = self.action_result.status.goal_id.id
00474 length = len(_x)
00475 if python3 or type(_x) == unicode:
00476 _x = _x.encode('utf-8')
00477 length = len(_x)
00478 buff.write(struct.pack('<I%ss'%length, length, _x))
00479 buff.write(_struct_B.pack(self.action_result.status.status))
00480 _x = self.action_result.status.text
00481 length = len(_x)
00482 if python3 or type(_x) == unicode:
00483 _x = _x.encode('utf-8')
00484 length = len(_x)
00485 buff.write(struct.pack('<I%ss'%length, length, _x))
00486 _x = self
00487 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00488 _x = self.action_feedback.header.frame_id
00489 length = len(_x)
00490 if python3 or type(_x) == unicode:
00491 _x = _x.encode('utf-8')
00492 length = len(_x)
00493 buff.write(struct.pack('<I%ss'%length, length, _x))
00494 _x = self
00495 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00496 _x = self.action_feedback.status.goal_id.id
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 buff.write(_struct_B.pack(self.action_feedback.status.status))
00503 _x = self.action_feedback.status.text
00504 length = len(_x)
00505 if python3 or type(_x) == unicode:
00506 _x = _x.encode('utf-8')
00507 length = len(_x)
00508 buff.write(struct.pack('<I%ss'%length, length, _x))
00509 length = len(self.action_feedback.feedback.num_feedback)
00510 buff.write(_struct_I.pack(length))
00511 pattern = '<%sd'%length
00512 buff.write(self.action_feedback.feedback.num_feedback.tostring())
00513 length = len(self.action_feedback.feedback.string_feedback)
00514 buff.write(_struct_I.pack(length))
00515 for val1 in self.action_feedback.feedback.string_feedback:
00516 length = len(val1)
00517 if python3 or type(val1) == unicode:
00518 val1 = val1.encode('utf-8')
00519 length = len(val1)
00520 buff.write(struct.pack('<I%ss'%length, length, val1))
00521 except struct.error as se: self._check_types(se)
00522 except TypeError as te: self._check_types(te)
00523
00524 def deserialize_numpy(self, str, numpy):
00525 """
00526 unpack serialized message in str into this message instance using numpy for array types
00527 :param str: byte array of serialized message, ``str``
00528 :param numpy: numpy python module
00529 """
00530 try:
00531 if self.action_goal is None:
00532 self.action_goal = tibi_dabo_msgs.msg.guiActionGoal()
00533 if self.action_result is None:
00534 self.action_result = tibi_dabo_msgs.msg.guiActionResult()
00535 if self.action_feedback is None:
00536 self.action_feedback = tibi_dabo_msgs.msg.guiActionFeedback()
00537 end = 0
00538 _x = self
00539 start = end
00540 end += 12
00541 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00542 start = end
00543 end += 4
00544 (length,) = _struct_I.unpack(str[start:end])
00545 start = end
00546 end += length
00547 if python3:
00548 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00549 else:
00550 self.action_goal.header.frame_id = str[start:end]
00551 _x = self
00552 start = end
00553 end += 8
00554 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00555 start = end
00556 end += 4
00557 (length,) = _struct_I.unpack(str[start:end])
00558 start = end
00559 end += length
00560 if python3:
00561 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00562 else:
00563 self.action_goal.goal_id.id = str[start:end]
00564 start = end
00565 end += 4
00566 (self.action_goal.goal.cmd_id,) = _struct_i.unpack(str[start:end])
00567 start = end
00568 end += 4
00569 (length,) = _struct_I.unpack(str[start:end])
00570 pattern = '<%sd'%length
00571 start = end
00572 end += struct.calcsize(pattern)
00573 self.action_goal.goal.num_params = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
00574 start = end
00575 end += 4
00576 (length,) = _struct_I.unpack(str[start:end])
00577 self.action_goal.goal.string_params = []
00578 for i in range(0, length):
00579 start = end
00580 end += 4
00581 (length,) = _struct_I.unpack(str[start:end])
00582 start = end
00583 end += length
00584 if python3:
00585 val1 = str[start:end].decode('utf-8')
00586 else:
00587 val1 = str[start:end]
00588 self.action_goal.goal.string_params.append(val1)
00589 _x = self
00590 start = end
00591 end += 12
00592 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00593 start = end
00594 end += 4
00595 (length,) = _struct_I.unpack(str[start:end])
00596 start = end
00597 end += length
00598 if python3:
00599 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00600 else:
00601 self.action_result.header.frame_id = str[start:end]
00602 _x = self
00603 start = end
00604 end += 8
00605 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00606 start = end
00607 end += 4
00608 (length,) = _struct_I.unpack(str[start:end])
00609 start = end
00610 end += length
00611 if python3:
00612 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00613 else:
00614 self.action_result.status.goal_id.id = str[start:end]
00615 start = end
00616 end += 1
00617 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00618 start = end
00619 end += 4
00620 (length,) = _struct_I.unpack(str[start:end])
00621 start = end
00622 end += length
00623 if python3:
00624 self.action_result.status.text = str[start:end].decode('utf-8')
00625 else:
00626 self.action_result.status.text = str[start:end]
00627 _x = self
00628 start = end
00629 end += 12
00630 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00631 start = end
00632 end += 4
00633 (length,) = _struct_I.unpack(str[start:end])
00634 start = end
00635 end += length
00636 if python3:
00637 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00638 else:
00639 self.action_feedback.header.frame_id = str[start:end]
00640 _x = self
00641 start = end
00642 end += 8
00643 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(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_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00651 else:
00652 self.action_feedback.status.goal_id.id = str[start:end]
00653 start = end
00654 end += 1
00655 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00656 start = end
00657 end += 4
00658 (length,) = _struct_I.unpack(str[start:end])
00659 start = end
00660 end += length
00661 if python3:
00662 self.action_feedback.status.text = str[start:end].decode('utf-8')
00663 else:
00664 self.action_feedback.status.text = str[start:end]
00665 start = end
00666 end += 4
00667 (length,) = _struct_I.unpack(str[start:end])
00668 pattern = '<%sd'%length
00669 start = end
00670 end += struct.calcsize(pattern)
00671 self.action_feedback.feedback.num_feedback = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
00672 start = end
00673 end += 4
00674 (length,) = _struct_I.unpack(str[start:end])
00675 self.action_feedback.feedback.string_feedback = []
00676 for i in range(0, length):
00677 start = end
00678 end += 4
00679 (length,) = _struct_I.unpack(str[start:end])
00680 start = end
00681 end += length
00682 if python3:
00683 val1 = str[start:end].decode('utf-8')
00684 else:
00685 val1 = str[start:end]
00686 self.action_feedback.feedback.string_feedback.append(val1)
00687 return self
00688 except struct.error as e:
00689 raise genpy.DeserializationError(e)
00690
00691 _struct_I = genpy.struct_I
00692 _struct_i = struct.Struct("<i")
00693 _struct_3I = struct.Struct("<3I")
00694 _struct_B = struct.Struct("<B")
00695 _struct_2I = struct.Struct("<2I")