_ExecutePlanAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from cram_plan_actionserver/ExecutePlanAction.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 cram_plan_actionserver.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class ExecutePlanAction(genpy.Message):
00013   _md5sum = "621a48f1191c81d00bf22b6e12663359"
00014   _type = "cram_plan_actionserver/ExecutePlanAction"
00015   _has_header = False #flag to mark the presence of a Header object
00016   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017 
00018 ExecutePlanActionGoal action_goal
00019 ExecutePlanActionResult action_result
00020 ExecutePlanActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: cram_plan_actionserver/ExecutePlanActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 ExecutePlanGoal 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: cram_plan_actionserver/ExecutePlanGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 string plan
00065 string[] parameters
00066 
00067 ================================================================================
00068 MSG: cram_plan_actionserver/ExecutePlanActionResult
00069 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00070 
00071 Header header
00072 actionlib_msgs/GoalStatus status
00073 ExecutePlanResult result
00074 
00075 ================================================================================
00076 MSG: actionlib_msgs/GoalStatus
00077 GoalID goal_id
00078 uint8 status
00079 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00080 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00081 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00082                             #   and has since completed its execution (Terminal State)
00083 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00084 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00085                             #    to some failure (Terminal State)
00086 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00087                             #    because the goal was unattainable or invalid (Terminal State)
00088 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00089                             #    and has not yet completed execution
00090 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00091                             #    but the action server has not yet confirmed that the goal is canceled
00092 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00093                             #    and was successfully cancelled (Terminal State)
00094 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00095                             #    sent over the wire by an action server
00096 
00097 #Allow for the user to associate a string with GoalStatus for debugging
00098 string text
00099 
00100 
00101 ================================================================================
00102 MSG: cram_plan_actionserver/ExecutePlanResult
00103 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00104 string result
00105 
00106 ================================================================================
00107 MSG: cram_plan_actionserver/ExecutePlanActionFeedback
00108 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00109 
00110 Header header
00111 actionlib_msgs/GoalStatus status
00112 ExecutePlanFeedback feedback
00113 
00114 ================================================================================
00115 MSG: cram_plan_actionserver/ExecutePlanFeedback
00116 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00117 
00118 
00119 """
00120   __slots__ = ['action_goal','action_result','action_feedback']
00121   _slot_types = ['cram_plan_actionserver/ExecutePlanActionGoal','cram_plan_actionserver/ExecutePlanActionResult','cram_plan_actionserver/ExecutePlanActionFeedback']
00122 
00123   def __init__(self, *args, **kwds):
00124     """
00125     Constructor. Any message fields that are implicitly/explicitly
00126     set to None will be assigned a default value. The recommend
00127     use is keyword arguments as this is more robust to future message
00128     changes.  You cannot mix in-order arguments and keyword arguments.
00129 
00130     The available fields are:
00131        action_goal,action_result,action_feedback
00132 
00133     :param args: complete set of field values, in .msg order
00134     :param kwds: use keyword arguments corresponding to message field names
00135     to set specific fields.
00136     """
00137     if args or kwds:
00138       super(ExecutePlanAction, self).__init__(*args, **kwds)
00139       #message fields cannot be None, assign default values for those that are
00140       if self.action_goal is None:
00141         self.action_goal = cram_plan_actionserver.msg.ExecutePlanActionGoal()
00142       if self.action_result is None:
00143         self.action_result = cram_plan_actionserver.msg.ExecutePlanActionResult()
00144       if self.action_feedback is None:
00145         self.action_feedback = cram_plan_actionserver.msg.ExecutePlanActionFeedback()
00146     else:
00147       self.action_goal = cram_plan_actionserver.msg.ExecutePlanActionGoal()
00148       self.action_result = cram_plan_actionserver.msg.ExecutePlanActionResult()
00149       self.action_feedback = cram_plan_actionserver.msg.ExecutePlanActionFeedback()
00150 
00151   def _get_types(self):
00152     """
00153     internal API method
00154     """
00155     return self._slot_types
00156 
00157   def serialize(self, buff):
00158     """
00159     serialize message into buffer
00160     :param buff: buffer, ``StringIO``
00161     """
00162     try:
00163       _x = self
00164       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00165       _x = self.action_goal.header.frame_id
00166       length = len(_x)
00167       if python3 or type(_x) == unicode:
00168         _x = _x.encode('utf-8')
00169         length = len(_x)
00170       buff.write(struct.pack('<I%ss'%length, length, _x))
00171       _x = self
00172       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00173       _x = self.action_goal.goal_id.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.action_goal.goal.plan
00180       length = len(_x)
00181       if python3 or type(_x) == unicode:
00182         _x = _x.encode('utf-8')
00183         length = len(_x)
00184       buff.write(struct.pack('<I%ss'%length, length, _x))
00185       length = len(self.action_goal.goal.parameters)
00186       buff.write(_struct_I.pack(length))
00187       for val1 in self.action_goal.goal.parameters:
00188         length = len(val1)
00189         if python3 or type(val1) == unicode:
00190           val1 = val1.encode('utf-8')
00191           length = len(val1)
00192         buff.write(struct.pack('<I%ss'%length, length, val1))
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.action_result.result.result
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     except struct.error as se: self._check_types(se)
00246     except TypeError as te: self._check_types(te)
00247 
00248   def deserialize(self, str):
00249     """
00250     unpack serialized message in str into this message instance
00251     :param str: byte array of serialized message, ``str``
00252     """
00253     try:
00254       if self.action_goal is None:
00255         self.action_goal = cram_plan_actionserver.msg.ExecutePlanActionGoal()
00256       if self.action_result is None:
00257         self.action_result = cram_plan_actionserver.msg.ExecutePlanActionResult()
00258       if self.action_feedback is None:
00259         self.action_feedback = cram_plan_actionserver.msg.ExecutePlanActionFeedback()
00260       end = 0
00261       _x = self
00262       start = end
00263       end += 12
00264       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00265       start = end
00266       end += 4
00267       (length,) = _struct_I.unpack(str[start:end])
00268       start = end
00269       end += length
00270       if python3:
00271         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00272       else:
00273         self.action_goal.header.frame_id = str[start:end]
00274       _x = self
00275       start = end
00276       end += 8
00277       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00278       start = end
00279       end += 4
00280       (length,) = _struct_I.unpack(str[start:end])
00281       start = end
00282       end += length
00283       if python3:
00284         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00285       else:
00286         self.action_goal.goal_id.id = str[start:end]
00287       start = end
00288       end += 4
00289       (length,) = _struct_I.unpack(str[start:end])
00290       start = end
00291       end += length
00292       if python3:
00293         self.action_goal.goal.plan = str[start:end].decode('utf-8')
00294       else:
00295         self.action_goal.goal.plan = str[start:end]
00296       start = end
00297       end += 4
00298       (length,) = _struct_I.unpack(str[start:end])
00299       self.action_goal.goal.parameters = []
00300       for i in range(0, length):
00301         start = end
00302         end += 4
00303         (length,) = _struct_I.unpack(str[start:end])
00304         start = end
00305         end += length
00306         if python3:
00307           val1 = str[start:end].decode('utf-8')
00308         else:
00309           val1 = str[start:end]
00310         self.action_goal.goal.parameters.append(val1)
00311       _x = self
00312       start = end
00313       end += 12
00314       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00315       start = end
00316       end += 4
00317       (length,) = _struct_I.unpack(str[start:end])
00318       start = end
00319       end += length
00320       if python3:
00321         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00322       else:
00323         self.action_result.header.frame_id = str[start:end]
00324       _x = self
00325       start = end
00326       end += 8
00327       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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.status.goal_id.id = str[start:end].decode('utf-8')
00335       else:
00336         self.action_result.status.goal_id.id = str[start:end]
00337       start = end
00338       end += 1
00339       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00340       start = end
00341       end += 4
00342       (length,) = _struct_I.unpack(str[start:end])
00343       start = end
00344       end += length
00345       if python3:
00346         self.action_result.status.text = str[start:end].decode('utf-8')
00347       else:
00348         self.action_result.status.text = str[start:end]
00349       start = end
00350       end += 4
00351       (length,) = _struct_I.unpack(str[start:end])
00352       start = end
00353       end += length
00354       if python3:
00355         self.action_result.result.result = str[start:end].decode('utf-8')
00356       else:
00357         self.action_result.result.result = str[start:end]
00358       _x = self
00359       start = end
00360       end += 12
00361       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00362       start = end
00363       end += 4
00364       (length,) = _struct_I.unpack(str[start:end])
00365       start = end
00366       end += length
00367       if python3:
00368         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00369       else:
00370         self.action_feedback.header.frame_id = str[start:end]
00371       _x = self
00372       start = end
00373       end += 8
00374       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00375       start = end
00376       end += 4
00377       (length,) = _struct_I.unpack(str[start:end])
00378       start = end
00379       end += length
00380       if python3:
00381         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00382       else:
00383         self.action_feedback.status.goal_id.id = str[start:end]
00384       start = end
00385       end += 1
00386       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00387       start = end
00388       end += 4
00389       (length,) = _struct_I.unpack(str[start:end])
00390       start = end
00391       end += length
00392       if python3:
00393         self.action_feedback.status.text = str[start:end].decode('utf-8')
00394       else:
00395         self.action_feedback.status.text = str[start:end]
00396       return self
00397     except struct.error as e:
00398       raise genpy.DeserializationError(e) #most likely buffer underfill
00399 
00400 
00401   def serialize_numpy(self, buff, numpy):
00402     """
00403     serialize message with numpy array types into buffer
00404     :param buff: buffer, ``StringIO``
00405     :param numpy: numpy python module
00406     """
00407     try:
00408       _x = self
00409       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00410       _x = self.action_goal.header.frame_id
00411       length = len(_x)
00412       if python3 or type(_x) == unicode:
00413         _x = _x.encode('utf-8')
00414         length = len(_x)
00415       buff.write(struct.pack('<I%ss'%length, length, _x))
00416       _x = self
00417       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00418       _x = self.action_goal.goal_id.id
00419       length = len(_x)
00420       if python3 or type(_x) == unicode:
00421         _x = _x.encode('utf-8')
00422         length = len(_x)
00423       buff.write(struct.pack('<I%ss'%length, length, _x))
00424       _x = self.action_goal.goal.plan
00425       length = len(_x)
00426       if python3 or type(_x) == unicode:
00427         _x = _x.encode('utf-8')
00428         length = len(_x)
00429       buff.write(struct.pack('<I%ss'%length, length, _x))
00430       length = len(self.action_goal.goal.parameters)
00431       buff.write(_struct_I.pack(length))
00432       for val1 in self.action_goal.goal.parameters:
00433         length = len(val1)
00434         if python3 or type(val1) == unicode:
00435           val1 = val1.encode('utf-8')
00436           length = len(val1)
00437         buff.write(struct.pack('<I%ss'%length, length, val1))
00438       _x = self
00439       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00440       _x = self.action_result.header.frame_id
00441       length = len(_x)
00442       if python3 or type(_x) == unicode:
00443         _x = _x.encode('utf-8')
00444         length = len(_x)
00445       buff.write(struct.pack('<I%ss'%length, length, _x))
00446       _x = self
00447       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00448       _x = self.action_result.status.goal_id.id
00449       length = len(_x)
00450       if python3 or type(_x) == unicode:
00451         _x = _x.encode('utf-8')
00452         length = len(_x)
00453       buff.write(struct.pack('<I%ss'%length, length, _x))
00454       buff.write(_struct_B.pack(self.action_result.status.status))
00455       _x = self.action_result.status.text
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_result.result.result
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
00468       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00469       _x = self.action_feedback.header.frame_id
00470       length = len(_x)
00471       if python3 or type(_x) == unicode:
00472         _x = _x.encode('utf-8')
00473         length = len(_x)
00474       buff.write(struct.pack('<I%ss'%length, length, _x))
00475       _x = self
00476       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00477       _x = self.action_feedback.status.goal_id.id
00478       length = len(_x)
00479       if python3 or type(_x) == unicode:
00480         _x = _x.encode('utf-8')
00481         length = len(_x)
00482       buff.write(struct.pack('<I%ss'%length, length, _x))
00483       buff.write(_struct_B.pack(self.action_feedback.status.status))
00484       _x = self.action_feedback.status.text
00485       length = len(_x)
00486       if python3 or type(_x) == unicode:
00487         _x = _x.encode('utf-8')
00488         length = len(_x)
00489       buff.write(struct.pack('<I%ss'%length, length, _x))
00490     except struct.error as se: self._check_types(se)
00491     except TypeError as te: self._check_types(te)
00492 
00493   def deserialize_numpy(self, str, numpy):
00494     """
00495     unpack serialized message in str into this message instance using numpy for array types
00496     :param str: byte array of serialized message, ``str``
00497     :param numpy: numpy python module
00498     """
00499     try:
00500       if self.action_goal is None:
00501         self.action_goal = cram_plan_actionserver.msg.ExecutePlanActionGoal()
00502       if self.action_result is None:
00503         self.action_result = cram_plan_actionserver.msg.ExecutePlanActionResult()
00504       if self.action_feedback is None:
00505         self.action_feedback = cram_plan_actionserver.msg.ExecutePlanActionFeedback()
00506       end = 0
00507       _x = self
00508       start = end
00509       end += 12
00510       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00511       start = end
00512       end += 4
00513       (length,) = _struct_I.unpack(str[start:end])
00514       start = end
00515       end += length
00516       if python3:
00517         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00518       else:
00519         self.action_goal.header.frame_id = str[start:end]
00520       _x = self
00521       start = end
00522       end += 8
00523       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00524       start = end
00525       end += 4
00526       (length,) = _struct_I.unpack(str[start:end])
00527       start = end
00528       end += length
00529       if python3:
00530         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00531       else:
00532         self.action_goal.goal_id.id = 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_goal.goal.plan = str[start:end].decode('utf-8')
00540       else:
00541         self.action_goal.goal.plan = str[start:end]
00542       start = end
00543       end += 4
00544       (length,) = _struct_I.unpack(str[start:end])
00545       self.action_goal.goal.parameters = []
00546       for i in range(0, length):
00547         start = end
00548         end += 4
00549         (length,) = _struct_I.unpack(str[start:end])
00550         start = end
00551         end += length
00552         if python3:
00553           val1 = str[start:end].decode('utf-8')
00554         else:
00555           val1 = str[start:end]
00556         self.action_goal.goal.parameters.append(val1)
00557       _x = self
00558       start = end
00559       end += 12
00560       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00561       start = end
00562       end += 4
00563       (length,) = _struct_I.unpack(str[start:end])
00564       start = end
00565       end += length
00566       if python3:
00567         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00568       else:
00569         self.action_result.header.frame_id = str[start:end]
00570       _x = self
00571       start = end
00572       end += 8
00573       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(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_result.status.goal_id.id = str[start:end].decode('utf-8')
00581       else:
00582         self.action_result.status.goal_id.id = str[start:end]
00583       start = end
00584       end += 1
00585       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00586       start = end
00587       end += 4
00588       (length,) = _struct_I.unpack(str[start:end])
00589       start = end
00590       end += length
00591       if python3:
00592         self.action_result.status.text = str[start:end].decode('utf-8')
00593       else:
00594         self.action_result.status.text = str[start:end]
00595       start = end
00596       end += 4
00597       (length,) = _struct_I.unpack(str[start:end])
00598       start = end
00599       end += length
00600       if python3:
00601         self.action_result.result.result = str[start:end].decode('utf-8')
00602       else:
00603         self.action_result.result.result = str[start:end]
00604       _x = self
00605       start = end
00606       end += 12
00607       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00608       start = end
00609       end += 4
00610       (length,) = _struct_I.unpack(str[start:end])
00611       start = end
00612       end += length
00613       if python3:
00614         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00615       else:
00616         self.action_feedback.header.frame_id = str[start:end]
00617       _x = self
00618       start = end
00619       end += 8
00620       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00621       start = end
00622       end += 4
00623       (length,) = _struct_I.unpack(str[start:end])
00624       start = end
00625       end += length
00626       if python3:
00627         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00628       else:
00629         self.action_feedback.status.goal_id.id = str[start:end]
00630       start = end
00631       end += 1
00632       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00633       start = end
00634       end += 4
00635       (length,) = _struct_I.unpack(str[start:end])
00636       start = end
00637       end += length
00638       if python3:
00639         self.action_feedback.status.text = str[start:end].decode('utf-8')
00640       else:
00641         self.action_feedback.status.text = str[start:end]
00642       return self
00643     except struct.error as e:
00644       raise genpy.DeserializationError(e) #most likely buffer underfill
00645 
00646 _struct_I = genpy.struct_I
00647 _struct_3I = struct.Struct("<3I")
00648 _struct_B = struct.Struct("<B")
00649 _struct_2I = struct.Struct("<2I")
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


cram_plan_actionserver
Author(s): Lorenz Moesenlechner
autogenerated on Thu May 23 2013 08:17:17