00001 """autogenerated by genpy from cob_script_server/ScriptAction.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 cob_script_server.msg
00010 import std_msgs.msg
00011
00012 class ScriptAction(genpy.Message):
00013 _md5sum = "d0148ee0b193e5f2d1a73ac54d961178"
00014 _type = "cob_script_server/ScriptAction"
00015 _has_header = False
00016 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017
00018 ScriptActionGoal action_goal
00019 ScriptActionResult action_result
00020 ScriptActionFeedback action_feedback
00021
00022 ================================================================================
00023 MSG: cob_script_server/ScriptActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 ScriptGoal 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: cob_script_server/ScriptGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 #goal definition
00065 string function_name
00066 string component_name
00067 string parameter_name
00068 string mode
00069 string service_name
00070 float32 duration
00071 bool planning
00072
00073 ================================================================================
00074 MSG: cob_script_server/ScriptActionResult
00075 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00076
00077 Header header
00078 actionlib_msgs/GoalStatus status
00079 ScriptResult result
00080
00081 ================================================================================
00082 MSG: actionlib_msgs/GoalStatus
00083 GoalID goal_id
00084 uint8 status
00085 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00086 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00087 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00088 # and has since completed its execution (Terminal State)
00089 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00090 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00091 # to some failure (Terminal State)
00092 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00093 # because the goal was unattainable or invalid (Terminal State)
00094 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00095 # and has not yet completed execution
00096 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00097 # but the action server has not yet confirmed that the goal is canceled
00098 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00099 # and was successfully cancelled (Terminal State)
00100 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00101 # sent over the wire by an action server
00102
00103 #Allow for the user to associate a string with GoalStatus for debugging
00104 string text
00105
00106
00107 ================================================================================
00108 MSG: cob_script_server/ScriptResult
00109 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00110 #result definition
00111 int32 error_code
00112
00113 ================================================================================
00114 MSG: cob_script_server/ScriptActionFeedback
00115 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00116
00117 Header header
00118 actionlib_msgs/GoalStatus status
00119 ScriptFeedback feedback
00120
00121 ================================================================================
00122 MSG: cob_script_server/ScriptFeedback
00123 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00124 #feedback definition
00125
00126
00127 """
00128 __slots__ = ['action_goal','action_result','action_feedback']
00129 _slot_types = ['cob_script_server/ScriptActionGoal','cob_script_server/ScriptActionResult','cob_script_server/ScriptActionFeedback']
00130
00131 def __init__(self, *args, **kwds):
00132 """
00133 Constructor. Any message fields that are implicitly/explicitly
00134 set to None will be assigned a default value. The recommend
00135 use is keyword arguments as this is more robust to future message
00136 changes. You cannot mix in-order arguments and keyword arguments.
00137
00138 The available fields are:
00139 action_goal,action_result,action_feedback
00140
00141 :param args: complete set of field values, in .msg order
00142 :param kwds: use keyword arguments corresponding to message field names
00143 to set specific fields.
00144 """
00145 if args or kwds:
00146 super(ScriptAction, self).__init__(*args, **kwds)
00147
00148 if self.action_goal is None:
00149 self.action_goal = cob_script_server.msg.ScriptActionGoal()
00150 if self.action_result is None:
00151 self.action_result = cob_script_server.msg.ScriptActionResult()
00152 if self.action_feedback is None:
00153 self.action_feedback = cob_script_server.msg.ScriptActionFeedback()
00154 else:
00155 self.action_goal = cob_script_server.msg.ScriptActionGoal()
00156 self.action_result = cob_script_server.msg.ScriptActionResult()
00157 self.action_feedback = cob_script_server.msg.ScriptActionFeedback()
00158
00159 def _get_types(self):
00160 """
00161 internal API method
00162 """
00163 return self._slot_types
00164
00165 def serialize(self, buff):
00166 """
00167 serialize message into buffer
00168 :param buff: buffer, ``StringIO``
00169 """
00170 try:
00171 _x = self
00172 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00173 _x = self.action_goal.header.frame_id
00174 length = len(_x)
00175 if python3 or type(_x) == unicode:
00176 _x = _x.encode('utf-8')
00177 length = len(_x)
00178 buff.write(struct.pack('<I%ss'%length, length, _x))
00179 _x = self
00180 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00181 _x = self.action_goal.goal_id.id
00182 length = len(_x)
00183 if python3 or type(_x) == unicode:
00184 _x = _x.encode('utf-8')
00185 length = len(_x)
00186 buff.write(struct.pack('<I%ss'%length, length, _x))
00187 _x = self.action_goal.goal.function_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.action_goal.goal.component_name
00194 length = len(_x)
00195 if python3 or type(_x) == unicode:
00196 _x = _x.encode('utf-8')
00197 length = len(_x)
00198 buff.write(struct.pack('<I%ss'%length, length, _x))
00199 _x = self.action_goal.goal.parameter_name
00200 length = len(_x)
00201 if python3 or type(_x) == unicode:
00202 _x = _x.encode('utf-8')
00203 length = len(_x)
00204 buff.write(struct.pack('<I%ss'%length, length, _x))
00205 _x = self.action_goal.goal.mode
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_goal.goal.service_name
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_fB3I.pack(_x.action_goal.goal.duration, _x.action_goal.goal.planning, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00219 _x = self.action_result.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_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00227 _x = self.action_result.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_result.status.status))
00234 _x = self.action_result.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
00241 buff.write(_struct_i3I.pack(_x.action_result.result.error_code, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00242 _x = self.action_feedback.header.frame_id
00243 length = len(_x)
00244 if python3 or type(_x) == unicode:
00245 _x = _x.encode('utf-8')
00246 length = len(_x)
00247 buff.write(struct.pack('<I%ss'%length, length, _x))
00248 _x = self
00249 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00250 _x = self.action_feedback.status.goal_id.id
00251 length = len(_x)
00252 if python3 or type(_x) == unicode:
00253 _x = _x.encode('utf-8')
00254 length = len(_x)
00255 buff.write(struct.pack('<I%ss'%length, length, _x))
00256 buff.write(_struct_B.pack(self.action_feedback.status.status))
00257 _x = self.action_feedback.status.text
00258 length = len(_x)
00259 if python3 or type(_x) == unicode:
00260 _x = _x.encode('utf-8')
00261 length = len(_x)
00262 buff.write(struct.pack('<I%ss'%length, length, _x))
00263 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00264 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00265
00266 def deserialize(self, str):
00267 """
00268 unpack serialized message in str into this message instance
00269 :param str: byte array of serialized message, ``str``
00270 """
00271 try:
00272 if self.action_goal is None:
00273 self.action_goal = cob_script_server.msg.ScriptActionGoal()
00274 if self.action_result is None:
00275 self.action_result = cob_script_server.msg.ScriptActionResult()
00276 if self.action_feedback is None:
00277 self.action_feedback = cob_script_server.msg.ScriptActionFeedback()
00278 end = 0
00279 _x = self
00280 start = end
00281 end += 12
00282 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00283 start = end
00284 end += 4
00285 (length,) = _struct_I.unpack(str[start:end])
00286 start = end
00287 end += length
00288 if python3:
00289 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00290 else:
00291 self.action_goal.header.frame_id = str[start:end]
00292 _x = self
00293 start = end
00294 end += 8
00295 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00296 start = end
00297 end += 4
00298 (length,) = _struct_I.unpack(str[start:end])
00299 start = end
00300 end += length
00301 if python3:
00302 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00303 else:
00304 self.action_goal.goal_id.id = str[start:end]
00305 start = end
00306 end += 4
00307 (length,) = _struct_I.unpack(str[start:end])
00308 start = end
00309 end += length
00310 if python3:
00311 self.action_goal.goal.function_name = str[start:end].decode('utf-8')
00312 else:
00313 self.action_goal.goal.function_name = 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_goal.goal.component_name = str[start:end].decode('utf-8')
00321 else:
00322 self.action_goal.goal.component_name = str[start:end]
00323 start = end
00324 end += 4
00325 (length,) = _struct_I.unpack(str[start:end])
00326 start = end
00327 end += length
00328 if python3:
00329 self.action_goal.goal.parameter_name = str[start:end].decode('utf-8')
00330 else:
00331 self.action_goal.goal.parameter_name = str[start:end]
00332 start = end
00333 end += 4
00334 (length,) = _struct_I.unpack(str[start:end])
00335 start = end
00336 end += length
00337 if python3:
00338 self.action_goal.goal.mode = str[start:end].decode('utf-8')
00339 else:
00340 self.action_goal.goal.mode = 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_goal.goal.service_name = str[start:end].decode('utf-8')
00348 else:
00349 self.action_goal.goal.service_name = str[start:end]
00350 _x = self
00351 start = end
00352 end += 17
00353 (_x.action_goal.goal.duration, _x.action_goal.goal.planning, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_fB3I.unpack(str[start:end])
00354 self.action_goal.goal.planning = bool(self.action_goal.goal.planning)
00355 start = end
00356 end += 4
00357 (length,) = _struct_I.unpack(str[start:end])
00358 start = end
00359 end += length
00360 if python3:
00361 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00362 else:
00363 self.action_result.header.frame_id = str[start:end]
00364 _x = self
00365 start = end
00366 end += 8
00367 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00368 start = end
00369 end += 4
00370 (length,) = _struct_I.unpack(str[start:end])
00371 start = end
00372 end += length
00373 if python3:
00374 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00375 else:
00376 self.action_result.status.goal_id.id = str[start:end]
00377 start = end
00378 end += 1
00379 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00380 start = end
00381 end += 4
00382 (length,) = _struct_I.unpack(str[start:end])
00383 start = end
00384 end += length
00385 if python3:
00386 self.action_result.status.text = str[start:end].decode('utf-8')
00387 else:
00388 self.action_result.status.text = str[start:end]
00389 _x = self
00390 start = end
00391 end += 16
00392 (_x.action_result.result.error_code, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_i3I.unpack(str[start:end])
00393 start = end
00394 end += 4
00395 (length,) = _struct_I.unpack(str[start:end])
00396 start = end
00397 end += length
00398 if python3:
00399 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00400 else:
00401 self.action_feedback.header.frame_id = str[start:end]
00402 _x = self
00403 start = end
00404 end += 8
00405 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00406 start = end
00407 end += 4
00408 (length,) = _struct_I.unpack(str[start:end])
00409 start = end
00410 end += length
00411 if python3:
00412 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00413 else:
00414 self.action_feedback.status.goal_id.id = str[start:end]
00415 start = end
00416 end += 1
00417 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00418 start = end
00419 end += 4
00420 (length,) = _struct_I.unpack(str[start:end])
00421 start = end
00422 end += length
00423 if python3:
00424 self.action_feedback.status.text = str[start:end].decode('utf-8')
00425 else:
00426 self.action_feedback.status.text = str[start:end]
00427 return self
00428 except struct.error as e:
00429 raise genpy.DeserializationError(e)
00430
00431
00432 def serialize_numpy(self, buff, numpy):
00433 """
00434 serialize message with numpy array types into buffer
00435 :param buff: buffer, ``StringIO``
00436 :param numpy: numpy python module
00437 """
00438 try:
00439 _x = self
00440 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00441 _x = self.action_goal.header.frame_id
00442 length = len(_x)
00443 if python3 or type(_x) == unicode:
00444 _x = _x.encode('utf-8')
00445 length = len(_x)
00446 buff.write(struct.pack('<I%ss'%length, length, _x))
00447 _x = self
00448 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00449 _x = self.action_goal.goal_id.id
00450 length = len(_x)
00451 if python3 or type(_x) == unicode:
00452 _x = _x.encode('utf-8')
00453 length = len(_x)
00454 buff.write(struct.pack('<I%ss'%length, length, _x))
00455 _x = self.action_goal.goal.function_name
00456 length = len(_x)
00457 if python3 or type(_x) == unicode:
00458 _x = _x.encode('utf-8')
00459 length = len(_x)
00460 buff.write(struct.pack('<I%ss'%length, length, _x))
00461 _x = self.action_goal.goal.component_name
00462 length = len(_x)
00463 if python3 or type(_x) == unicode:
00464 _x = _x.encode('utf-8')
00465 length = len(_x)
00466 buff.write(struct.pack('<I%ss'%length, length, _x))
00467 _x = self.action_goal.goal.parameter_name
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.action_goal.goal.mode
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 _x = self.action_goal.goal.service_name
00480 length = len(_x)
00481 if python3 or type(_x) == unicode:
00482 _x = _x.encode('utf-8')
00483 length = len(_x)
00484 buff.write(struct.pack('<I%ss'%length, length, _x))
00485 _x = self
00486 buff.write(_struct_fB3I.pack(_x.action_goal.goal.duration, _x.action_goal.goal.planning, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00487 _x = self.action_result.header.frame_id
00488 length = len(_x)
00489 if python3 or type(_x) == unicode:
00490 _x = _x.encode('utf-8')
00491 length = len(_x)
00492 buff.write(struct.pack('<I%ss'%length, length, _x))
00493 _x = self
00494 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00495 _x = self.action_result.status.goal_id.id
00496 length = len(_x)
00497 if python3 or type(_x) == unicode:
00498 _x = _x.encode('utf-8')
00499 length = len(_x)
00500 buff.write(struct.pack('<I%ss'%length, length, _x))
00501 buff.write(_struct_B.pack(self.action_result.status.status))
00502 _x = self.action_result.status.text
00503 length = len(_x)
00504 if python3 or type(_x) == unicode:
00505 _x = _x.encode('utf-8')
00506 length = len(_x)
00507 buff.write(struct.pack('<I%ss'%length, length, _x))
00508 _x = self
00509 buff.write(_struct_i3I.pack(_x.action_result.result.error_code, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00510 _x = self.action_feedback.header.frame_id
00511 length = len(_x)
00512 if python3 or type(_x) == unicode:
00513 _x = _x.encode('utf-8')
00514 length = len(_x)
00515 buff.write(struct.pack('<I%ss'%length, length, _x))
00516 _x = self
00517 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00518 _x = self.action_feedback.status.goal_id.id
00519 length = len(_x)
00520 if python3 or type(_x) == unicode:
00521 _x = _x.encode('utf-8')
00522 length = len(_x)
00523 buff.write(struct.pack('<I%ss'%length, length, _x))
00524 buff.write(_struct_B.pack(self.action_feedback.status.status))
00525 _x = self.action_feedback.status.text
00526 length = len(_x)
00527 if python3 or type(_x) == unicode:
00528 _x = _x.encode('utf-8')
00529 length = len(_x)
00530 buff.write(struct.pack('<I%ss'%length, length, _x))
00531 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00532 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00533
00534 def deserialize_numpy(self, str, numpy):
00535 """
00536 unpack serialized message in str into this message instance using numpy for array types
00537 :param str: byte array of serialized message, ``str``
00538 :param numpy: numpy python module
00539 """
00540 try:
00541 if self.action_goal is None:
00542 self.action_goal = cob_script_server.msg.ScriptActionGoal()
00543 if self.action_result is None:
00544 self.action_result = cob_script_server.msg.ScriptActionResult()
00545 if self.action_feedback is None:
00546 self.action_feedback = cob_script_server.msg.ScriptActionFeedback()
00547 end = 0
00548 _x = self
00549 start = end
00550 end += 12
00551 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.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_goal.header.frame_id = str[start:end].decode('utf-8')
00559 else:
00560 self.action_goal.header.frame_id = str[start:end]
00561 _x = self
00562 start = end
00563 end += 8
00564 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00565 start = end
00566 end += 4
00567 (length,) = _struct_I.unpack(str[start:end])
00568 start = end
00569 end += length
00570 if python3:
00571 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00572 else:
00573 self.action_goal.goal_id.id = str[start:end]
00574 start = end
00575 end += 4
00576 (length,) = _struct_I.unpack(str[start:end])
00577 start = end
00578 end += length
00579 if python3:
00580 self.action_goal.goal.function_name = str[start:end].decode('utf-8')
00581 else:
00582 self.action_goal.goal.function_name = str[start:end]
00583 start = end
00584 end += 4
00585 (length,) = _struct_I.unpack(str[start:end])
00586 start = end
00587 end += length
00588 if python3:
00589 self.action_goal.goal.component_name = str[start:end].decode('utf-8')
00590 else:
00591 self.action_goal.goal.component_name = str[start:end]
00592 start = end
00593 end += 4
00594 (length,) = _struct_I.unpack(str[start:end])
00595 start = end
00596 end += length
00597 if python3:
00598 self.action_goal.goal.parameter_name = str[start:end].decode('utf-8')
00599 else:
00600 self.action_goal.goal.parameter_name = str[start:end]
00601 start = end
00602 end += 4
00603 (length,) = _struct_I.unpack(str[start:end])
00604 start = end
00605 end += length
00606 if python3:
00607 self.action_goal.goal.mode = str[start:end].decode('utf-8')
00608 else:
00609 self.action_goal.goal.mode = str[start:end]
00610 start = end
00611 end += 4
00612 (length,) = _struct_I.unpack(str[start:end])
00613 start = end
00614 end += length
00615 if python3:
00616 self.action_goal.goal.service_name = str[start:end].decode('utf-8')
00617 else:
00618 self.action_goal.goal.service_name = str[start:end]
00619 _x = self
00620 start = end
00621 end += 17
00622 (_x.action_goal.goal.duration, _x.action_goal.goal.planning, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_fB3I.unpack(str[start:end])
00623 self.action_goal.goal.planning = bool(self.action_goal.goal.planning)
00624 start = end
00625 end += 4
00626 (length,) = _struct_I.unpack(str[start:end])
00627 start = end
00628 end += length
00629 if python3:
00630 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00631 else:
00632 self.action_result.header.frame_id = str[start:end]
00633 _x = self
00634 start = end
00635 end += 8
00636 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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_result.status.goal_id.id = str[start:end].decode('utf-8')
00644 else:
00645 self.action_result.status.goal_id.id = str[start:end]
00646 start = end
00647 end += 1
00648 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00649 start = end
00650 end += 4
00651 (length,) = _struct_I.unpack(str[start:end])
00652 start = end
00653 end += length
00654 if python3:
00655 self.action_result.status.text = str[start:end].decode('utf-8')
00656 else:
00657 self.action_result.status.text = str[start:end]
00658 _x = self
00659 start = end
00660 end += 16
00661 (_x.action_result.result.error_code, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_i3I.unpack(str[start:end])
00662 start = end
00663 end += 4
00664 (length,) = _struct_I.unpack(str[start:end])
00665 start = end
00666 end += length
00667 if python3:
00668 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00669 else:
00670 self.action_feedback.header.frame_id = str[start:end]
00671 _x = self
00672 start = end
00673 end += 8
00674 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00675 start = end
00676 end += 4
00677 (length,) = _struct_I.unpack(str[start:end])
00678 start = end
00679 end += length
00680 if python3:
00681 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00682 else:
00683 self.action_feedback.status.goal_id.id = str[start:end]
00684 start = end
00685 end += 1
00686 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00687 start = end
00688 end += 4
00689 (length,) = _struct_I.unpack(str[start:end])
00690 start = end
00691 end += length
00692 if python3:
00693 self.action_feedback.status.text = str[start:end].decode('utf-8')
00694 else:
00695 self.action_feedback.status.text = str[start:end]
00696 return self
00697 except struct.error as e:
00698 raise genpy.DeserializationError(e)
00699
00700 _struct_I = genpy.struct_I
00701 _struct_3I = struct.Struct("<3I")
00702 _struct_B = struct.Struct("<B")
00703 _struct_fB3I = struct.Struct("<fB3I")
00704 _struct_2I = struct.Struct("<2I")
00705 _struct_i3I = struct.Struct("<i3I")