_ManualArmManipAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from srs_assisted_arm_navigation_msgs/ManualArmManipAction.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 actionlib_msgs.msg
00008 import genpy
00009 import srs_assisted_arm_navigation_msgs.msg
00010 import std_msgs.msg
00011 
00012 class ManualArmManipAction(genpy.Message):
00013   _md5sum = "71034794fed158ed1740081717ff0120"
00014   _type = "srs_assisted_arm_navigation_msgs/ManualArmManipAction"
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 ManualArmManipActionGoal action_goal
00019 ManualArmManipActionResult action_result
00020 ManualArmManipActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: srs_assisted_arm_navigation_msgs/ManualArmManipActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 ManualArmManipGoal 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: srs_assisted_arm_navigation_msgs/ManualArmManipGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 # goal
00065 string action # description what to do
00066 string post_action # string which will be displayed after user finished task
00067 bool allow_repeat
00068 string object_name
00069 
00070 ================================================================================
00071 MSG: srs_assisted_arm_navigation_msgs/ManualArmManipActionResult
00072 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00073 
00074 Header header
00075 actionlib_msgs/GoalStatus status
00076 ManualArmManipResult result
00077 
00078 ================================================================================
00079 MSG: actionlib_msgs/GoalStatus
00080 GoalID goal_id
00081 uint8 status
00082 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00083 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00084 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00085                             #   and has since completed its execution (Terminal State)
00086 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00087 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00088                             #    to some failure (Terminal State)
00089 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00090                             #    because the goal was unattainable or invalid (Terminal State)
00091 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00092                             #    and has not yet completed execution
00093 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00094                             #    but the action server has not yet confirmed that the goal is canceled
00095 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00096                             #    and was successfully cancelled (Terminal State)
00097 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00098                             #    sent over the wire by an action server
00099 
00100 #Allow for the user to associate a string with GoalStatus for debugging
00101 string text
00102 
00103 
00104 ================================================================================
00105 MSG: srs_assisted_arm_navigation_msgs/ManualArmManipResult
00106 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00107 # result
00108 bool success
00109 bool failed
00110 bool repeat
00111 bool timeout
00112 bool collision
00113 duration time_elapsed
00114 
00115 ================================================================================
00116 MSG: srs_assisted_arm_navigation_msgs/ManualArmManipActionFeedback
00117 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00118 
00119 Header header
00120 actionlib_msgs/GoalStatus status
00121 ManualArmManipFeedback feedback
00122 
00123 ================================================================================
00124 MSG: srs_assisted_arm_navigation_msgs/ManualArmManipFeedback
00125 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00126 # feedback
00127 bool starting
00128 bool planning
00129 bool executing
00130 bool reset
00131 
00132 
00133 """
00134   __slots__ = ['action_goal','action_result','action_feedback']
00135   _slot_types = ['srs_assisted_arm_navigation_msgs/ManualArmManipActionGoal','srs_assisted_arm_navigation_msgs/ManualArmManipActionResult','srs_assisted_arm_navigation_msgs/ManualArmManipActionFeedback']
00136 
00137   def __init__(self, *args, **kwds):
00138     """
00139     Constructor. Any message fields that are implicitly/explicitly
00140     set to None will be assigned a default value. The recommend
00141     use is keyword arguments as this is more robust to future message
00142     changes.  You cannot mix in-order arguments and keyword arguments.
00143 
00144     The available fields are:
00145        action_goal,action_result,action_feedback
00146 
00147     :param args: complete set of field values, in .msg order
00148     :param kwds: use keyword arguments corresponding to message field names
00149     to set specific fields.
00150     """
00151     if args or kwds:
00152       super(ManualArmManipAction, self).__init__(*args, **kwds)
00153       #message fields cannot be None, assign default values for those that are
00154       if self.action_goal is None:
00155         self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionGoal()
00156       if self.action_result is None:
00157         self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionResult()
00158       if self.action_feedback is None:
00159         self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionFeedback()
00160     else:
00161       self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionGoal()
00162       self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionResult()
00163       self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionFeedback()
00164 
00165   def _get_types(self):
00166     """
00167     internal API method
00168     """
00169     return self._slot_types
00170 
00171   def serialize(self, buff):
00172     """
00173     serialize message into buffer
00174     :param buff: buffer, ``StringIO``
00175     """
00176     try:
00177       _x = self
00178       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00179       _x = self.action_goal.header.frame_id
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       _x = self
00186       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00187       _x = self.action_goal.goal_id.id
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.action
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.post_action
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       buff.write(_struct_B.pack(self.action_goal.goal.allow_repeat))
00206       _x = self.action_goal.goal.object_name
00207       length = len(_x)
00208       if python3 or type(_x) == unicode:
00209         _x = _x.encode('utf-8')
00210         length = len(_x)
00211       buff.write(struct.pack('<I%ss'%length, length, _x))
00212       _x = self
00213       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00214       _x = self.action_result.header.frame_id
00215       length = len(_x)
00216       if python3 or type(_x) == unicode:
00217         _x = _x.encode('utf-8')
00218         length = len(_x)
00219       buff.write(struct.pack('<I%ss'%length, length, _x))
00220       _x = self
00221       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00222       _x = self.action_result.status.goal_id.id
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       buff.write(_struct_B.pack(self.action_result.status.status))
00229       _x = self.action_result.status.text
00230       length = len(_x)
00231       if python3 or type(_x) == unicode:
00232         _x = _x.encode('utf-8')
00233         length = len(_x)
00234       buff.write(struct.pack('<I%ss'%length, length, _x))
00235       _x = self
00236       buff.write(_struct_5B2i3I.pack(_x.action_result.result.success, _x.action_result.result.failed, _x.action_result.result.repeat, _x.action_result.result.timeout, _x.action_result.result.collision, _x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00237       _x = self.action_feedback.header.frame_id
00238       length = len(_x)
00239       if python3 or type(_x) == unicode:
00240         _x = _x.encode('utf-8')
00241         length = len(_x)
00242       buff.write(struct.pack('<I%ss'%length, length, _x))
00243       _x = self
00244       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00245       _x = self.action_feedback.status.goal_id.id
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_B.pack(self.action_feedback.status.status))
00252       _x = self.action_feedback.status.text
00253       length = len(_x)
00254       if python3 or type(_x) == unicode:
00255         _x = _x.encode('utf-8')
00256         length = len(_x)
00257       buff.write(struct.pack('<I%ss'%length, length, _x))
00258       _x = self
00259       buff.write(_struct_4B.pack(_x.action_feedback.feedback.starting, _x.action_feedback.feedback.planning, _x.action_feedback.feedback.executing, _x.action_feedback.feedback.reset))
00260     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00261     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00262 
00263   def deserialize(self, str):
00264     """
00265     unpack serialized message in str into this message instance
00266     :param str: byte array of serialized message, ``str``
00267     """
00268     try:
00269       if self.action_goal is None:
00270         self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionGoal()
00271       if self.action_result is None:
00272         self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionResult()
00273       if self.action_feedback is None:
00274         self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionFeedback()
00275       end = 0
00276       _x = self
00277       start = end
00278       end += 12
00279       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00280       start = end
00281       end += 4
00282       (length,) = _struct_I.unpack(str[start:end])
00283       start = end
00284       end += length
00285       if python3:
00286         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00287       else:
00288         self.action_goal.header.frame_id = str[start:end]
00289       _x = self
00290       start = end
00291       end += 8
00292       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00293       start = end
00294       end += 4
00295       (length,) = _struct_I.unpack(str[start:end])
00296       start = end
00297       end += length
00298       if python3:
00299         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00300       else:
00301         self.action_goal.goal_id.id = str[start:end]
00302       start = end
00303       end += 4
00304       (length,) = _struct_I.unpack(str[start:end])
00305       start = end
00306       end += length
00307       if python3:
00308         self.action_goal.goal.action = str[start:end].decode('utf-8')
00309       else:
00310         self.action_goal.goal.action = str[start:end]
00311       start = end
00312       end += 4
00313       (length,) = _struct_I.unpack(str[start:end])
00314       start = end
00315       end += length
00316       if python3:
00317         self.action_goal.goal.post_action = str[start:end].decode('utf-8')
00318       else:
00319         self.action_goal.goal.post_action = str[start:end]
00320       start = end
00321       end += 1
00322       (self.action_goal.goal.allow_repeat,) = _struct_B.unpack(str[start:end])
00323       self.action_goal.goal.allow_repeat = bool(self.action_goal.goal.allow_repeat)
00324       start = end
00325       end += 4
00326       (length,) = _struct_I.unpack(str[start:end])
00327       start = end
00328       end += length
00329       if python3:
00330         self.action_goal.goal.object_name = str[start:end].decode('utf-8')
00331       else:
00332         self.action_goal.goal.object_name = str[start:end]
00333       _x = self
00334       start = end
00335       end += 12
00336       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00337       start = end
00338       end += 4
00339       (length,) = _struct_I.unpack(str[start:end])
00340       start = end
00341       end += length
00342       if python3:
00343         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00344       else:
00345         self.action_result.header.frame_id = str[start:end]
00346       _x = self
00347       start = end
00348       end += 8
00349       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00350       start = end
00351       end += 4
00352       (length,) = _struct_I.unpack(str[start:end])
00353       start = end
00354       end += length
00355       if python3:
00356         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00357       else:
00358         self.action_result.status.goal_id.id = str[start:end]
00359       start = end
00360       end += 1
00361       (self.action_result.status.status,) = _struct_B.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_result.status.text = str[start:end].decode('utf-8')
00369       else:
00370         self.action_result.status.text = str[start:end]
00371       _x = self
00372       start = end
00373       end += 25
00374       (_x.action_result.result.success, _x.action_result.result.failed, _x.action_result.result.repeat, _x.action_result.result.timeout, _x.action_result.result.collision, _x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_5B2i3I.unpack(str[start:end])
00375       self.action_result.result.success = bool(self.action_result.result.success)
00376       self.action_result.result.failed = bool(self.action_result.result.failed)
00377       self.action_result.result.repeat = bool(self.action_result.result.repeat)
00378       self.action_result.result.timeout = bool(self.action_result.result.timeout)
00379       self.action_result.result.collision = bool(self.action_result.result.collision)
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_feedback.header.frame_id = str[start:end].decode('utf-8')
00387       else:
00388         self.action_feedback.header.frame_id = str[start:end]
00389       _x = self
00390       start = end
00391       end += 8
00392       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.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.status.goal_id.id = str[start:end].decode('utf-8')
00400       else:
00401         self.action_feedback.status.goal_id.id = str[start:end]
00402       start = end
00403       end += 1
00404       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00405       start = end
00406       end += 4
00407       (length,) = _struct_I.unpack(str[start:end])
00408       start = end
00409       end += length
00410       if python3:
00411         self.action_feedback.status.text = str[start:end].decode('utf-8')
00412       else:
00413         self.action_feedback.status.text = str[start:end]
00414       _x = self
00415       start = end
00416       end += 4
00417       (_x.action_feedback.feedback.starting, _x.action_feedback.feedback.planning, _x.action_feedback.feedback.executing, _x.action_feedback.feedback.reset,) = _struct_4B.unpack(str[start:end])
00418       self.action_feedback.feedback.starting = bool(self.action_feedback.feedback.starting)
00419       self.action_feedback.feedback.planning = bool(self.action_feedback.feedback.planning)
00420       self.action_feedback.feedback.executing = bool(self.action_feedback.feedback.executing)
00421       self.action_feedback.feedback.reset = bool(self.action_feedback.feedback.reset)
00422       return self
00423     except struct.error as e:
00424       raise genpy.DeserializationError(e) #most likely buffer underfill
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       _x = self.action_goal.goal.action
00451       length = len(_x)
00452       if python3 or type(_x) == unicode:
00453         _x = _x.encode('utf-8')
00454         length = len(_x)
00455       buff.write(struct.pack('<I%ss'%length, length, _x))
00456       _x = self.action_goal.goal.post_action
00457       length = len(_x)
00458       if python3 or type(_x) == unicode:
00459         _x = _x.encode('utf-8')
00460         length = len(_x)
00461       buff.write(struct.pack('<I%ss'%length, length, _x))
00462       buff.write(_struct_B.pack(self.action_goal.goal.allow_repeat))
00463       _x = self.action_goal.goal.object_name
00464       length = len(_x)
00465       if python3 or type(_x) == unicode:
00466         _x = _x.encode('utf-8')
00467         length = len(_x)
00468       buff.write(struct.pack('<I%ss'%length, length, _x))
00469       _x = self
00470       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00471       _x = self.action_result.header.frame_id
00472       length = len(_x)
00473       if python3 or type(_x) == unicode:
00474         _x = _x.encode('utf-8')
00475         length = len(_x)
00476       buff.write(struct.pack('<I%ss'%length, length, _x))
00477       _x = self
00478       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00479       _x = self.action_result.status.goal_id.id
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       buff.write(_struct_B.pack(self.action_result.status.status))
00486       _x = self.action_result.status.text
00487       length = len(_x)
00488       if python3 or type(_x) == unicode:
00489         _x = _x.encode('utf-8')
00490         length = len(_x)
00491       buff.write(struct.pack('<I%ss'%length, length, _x))
00492       _x = self
00493       buff.write(_struct_5B2i3I.pack(_x.action_result.result.success, _x.action_result.result.failed, _x.action_result.result.repeat, _x.action_result.result.timeout, _x.action_result.result.collision, _x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00494       _x = self.action_feedback.header.frame_id
00495       length = len(_x)
00496       if python3 or type(_x) == unicode:
00497         _x = _x.encode('utf-8')
00498         length = len(_x)
00499       buff.write(struct.pack('<I%ss'%length, length, _x))
00500       _x = self
00501       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00502       _x = self.action_feedback.status.goal_id.id
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       buff.write(_struct_B.pack(self.action_feedback.status.status))
00509       _x = self.action_feedback.status.text
00510       length = len(_x)
00511       if python3 or type(_x) == unicode:
00512         _x = _x.encode('utf-8')
00513         length = len(_x)
00514       buff.write(struct.pack('<I%ss'%length, length, _x))
00515       _x = self
00516       buff.write(_struct_4B.pack(_x.action_feedback.feedback.starting, _x.action_feedback.feedback.planning, _x.action_feedback.feedback.executing, _x.action_feedback.feedback.reset))
00517     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00518     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00519 
00520   def deserialize_numpy(self, str, numpy):
00521     """
00522     unpack serialized message in str into this message instance using numpy for array types
00523     :param str: byte array of serialized message, ``str``
00524     :param numpy: numpy python module
00525     """
00526     try:
00527       if self.action_goal is None:
00528         self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionGoal()
00529       if self.action_result is None:
00530         self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionResult()
00531       if self.action_feedback is None:
00532         self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionFeedback()
00533       end = 0
00534       _x = self
00535       start = end
00536       end += 12
00537       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00538       start = end
00539       end += 4
00540       (length,) = _struct_I.unpack(str[start:end])
00541       start = end
00542       end += length
00543       if python3:
00544         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00545       else:
00546         self.action_goal.header.frame_id = str[start:end]
00547       _x = self
00548       start = end
00549       end += 8
00550       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00551       start = end
00552       end += 4
00553       (length,) = _struct_I.unpack(str[start:end])
00554       start = end
00555       end += length
00556       if python3:
00557         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00558       else:
00559         self.action_goal.goal_id.id = str[start:end]
00560       start = end
00561       end += 4
00562       (length,) = _struct_I.unpack(str[start:end])
00563       start = end
00564       end += length
00565       if python3:
00566         self.action_goal.goal.action = str[start:end].decode('utf-8')
00567       else:
00568         self.action_goal.goal.action = str[start:end]
00569       start = end
00570       end += 4
00571       (length,) = _struct_I.unpack(str[start:end])
00572       start = end
00573       end += length
00574       if python3:
00575         self.action_goal.goal.post_action = str[start:end].decode('utf-8')
00576       else:
00577         self.action_goal.goal.post_action = str[start:end]
00578       start = end
00579       end += 1
00580       (self.action_goal.goal.allow_repeat,) = _struct_B.unpack(str[start:end])
00581       self.action_goal.goal.allow_repeat = bool(self.action_goal.goal.allow_repeat)
00582       start = end
00583       end += 4
00584       (length,) = _struct_I.unpack(str[start:end])
00585       start = end
00586       end += length
00587       if python3:
00588         self.action_goal.goal.object_name = str[start:end].decode('utf-8')
00589       else:
00590         self.action_goal.goal.object_name = str[start:end]
00591       _x = self
00592       start = end
00593       end += 12
00594       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(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.header.frame_id = str[start:end].decode('utf-8')
00602       else:
00603         self.action_result.header.frame_id = str[start:end]
00604       _x = self
00605       start = end
00606       end += 8
00607       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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_result.status.goal_id.id = str[start:end].decode('utf-8')
00615       else:
00616         self.action_result.status.goal_id.id = str[start:end]
00617       start = end
00618       end += 1
00619       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00620       start = end
00621       end += 4
00622       (length,) = _struct_I.unpack(str[start:end])
00623       start = end
00624       end += length
00625       if python3:
00626         self.action_result.status.text = str[start:end].decode('utf-8')
00627       else:
00628         self.action_result.status.text = str[start:end]
00629       _x = self
00630       start = end
00631       end += 25
00632       (_x.action_result.result.success, _x.action_result.result.failed, _x.action_result.result.repeat, _x.action_result.result.timeout, _x.action_result.result.collision, _x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_5B2i3I.unpack(str[start:end])
00633       self.action_result.result.success = bool(self.action_result.result.success)
00634       self.action_result.result.failed = bool(self.action_result.result.failed)
00635       self.action_result.result.repeat = bool(self.action_result.result.repeat)
00636       self.action_result.result.timeout = bool(self.action_result.result.timeout)
00637       self.action_result.result.collision = bool(self.action_result.result.collision)
00638       start = end
00639       end += 4
00640       (length,) = _struct_I.unpack(str[start:end])
00641       start = end
00642       end += length
00643       if python3:
00644         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00645       else:
00646         self.action_feedback.header.frame_id = str[start:end]
00647       _x = self
00648       start = end
00649       end += 8
00650       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00651       start = end
00652       end += 4
00653       (length,) = _struct_I.unpack(str[start:end])
00654       start = end
00655       end += length
00656       if python3:
00657         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00658       else:
00659         self.action_feedback.status.goal_id.id = str[start:end]
00660       start = end
00661       end += 1
00662       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00663       start = end
00664       end += 4
00665       (length,) = _struct_I.unpack(str[start:end])
00666       start = end
00667       end += length
00668       if python3:
00669         self.action_feedback.status.text = str[start:end].decode('utf-8')
00670       else:
00671         self.action_feedback.status.text = str[start:end]
00672       _x = self
00673       start = end
00674       end += 4
00675       (_x.action_feedback.feedback.starting, _x.action_feedback.feedback.planning, _x.action_feedback.feedback.executing, _x.action_feedback.feedback.reset,) = _struct_4B.unpack(str[start:end])
00676       self.action_feedback.feedback.starting = bool(self.action_feedback.feedback.starting)
00677       self.action_feedback.feedback.planning = bool(self.action_feedback.feedback.planning)
00678       self.action_feedback.feedback.executing = bool(self.action_feedback.feedback.executing)
00679       self.action_feedback.feedback.reset = bool(self.action_feedback.feedback.reset)
00680       return self
00681     except struct.error as e:
00682       raise genpy.DeserializationError(e) #most likely buffer underfill
00683 
00684 _struct_I = genpy.struct_I
00685 _struct_4B = struct.Struct("<4B")
00686 _struct_3I = struct.Struct("<3I")
00687 _struct_B = struct.Struct("<B")
00688 _struct_5B2i3I = struct.Struct("<5B2i3I")
00689 _struct_2I = struct.Struct("<2I")


srs_assisted_arm_navigation_msgs
Author(s): Zdenek Materna
autogenerated on Mon Oct 6 2014 08:09:35