_ManualGraspingAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from srs_assisted_grasping_msgs/ManualGraspingAction.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 srs_assisted_grasping_msgs.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class ManualGraspingAction(genpy.Message):
00013   _md5sum = "e555a5212c7947a3b6c143e2d45c3f28"
00014   _type = "srs_assisted_grasping_msgs/ManualGraspingAction"
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 ManualGraspingActionGoal action_goal
00019 ManualGraspingActionResult action_result
00020 ManualGraspingActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: srs_assisted_grasping_msgs/ManualGraspingActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 ManualGraspingGoal 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_grasping_msgs/ManualGraspingGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 # goal
00065 uint8 grasp_type
00066 float32 max_force
00067 bool accept_two_fingers_contact
00068 bool do_not_open_fingers
00069 
00070 ================================================================================
00071 MSG: srs_assisted_grasping_msgs/ManualGraspingActionResult
00072 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00073 
00074 Header header
00075 actionlib_msgs/GoalStatus status
00076 ManualGraspingResult 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_grasping_msgs/ManualGraspingResult
00106 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00107 # result
00108 duration time_elapsed
00109 bool grasped
00110 float32 tip1_force
00111 float32 tip2_force
00112 float32 tip3_force
00113 
00114 ================================================================================
00115 MSG: srs_assisted_grasping_msgs/ManualGraspingActionFeedback
00116 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00117 
00118 Header header
00119 actionlib_msgs/GoalStatus status
00120 ManualGraspingFeedback feedback
00121 
00122 ================================================================================
00123 MSG: srs_assisted_grasping_msgs/ManualGraspingFeedback
00124 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00125 # feedback
00126 #uint8 progress
00127 float32 tip1_force
00128 float32 tip2_force
00129 float32 tip3_force
00130 
00131 
00132 """
00133   __slots__ = ['action_goal','action_result','action_feedback']
00134   _slot_types = ['srs_assisted_grasping_msgs/ManualGraspingActionGoal','srs_assisted_grasping_msgs/ManualGraspingActionResult','srs_assisted_grasping_msgs/ManualGraspingActionFeedback']
00135 
00136   def __init__(self, *args, **kwds):
00137     """
00138     Constructor. Any message fields that are implicitly/explicitly
00139     set to None will be assigned a default value. The recommend
00140     use is keyword arguments as this is more robust to future message
00141     changes.  You cannot mix in-order arguments and keyword arguments.
00142 
00143     The available fields are:
00144        action_goal,action_result,action_feedback
00145 
00146     :param args: complete set of field values, in .msg order
00147     :param kwds: use keyword arguments corresponding to message field names
00148     to set specific fields.
00149     """
00150     if args or kwds:
00151       super(ManualGraspingAction, self).__init__(*args, **kwds)
00152       #message fields cannot be None, assign default values for those that are
00153       if self.action_goal is None:
00154         self.action_goal = srs_assisted_grasping_msgs.msg.ManualGraspingActionGoal()
00155       if self.action_result is None:
00156         self.action_result = srs_assisted_grasping_msgs.msg.ManualGraspingActionResult()
00157       if self.action_feedback is None:
00158         self.action_feedback = srs_assisted_grasping_msgs.msg.ManualGraspingActionFeedback()
00159     else:
00160       self.action_goal = srs_assisted_grasping_msgs.msg.ManualGraspingActionGoal()
00161       self.action_result = srs_assisted_grasping_msgs.msg.ManualGraspingActionResult()
00162       self.action_feedback = srs_assisted_grasping_msgs.msg.ManualGraspingActionFeedback()
00163 
00164   def _get_types(self):
00165     """
00166     internal API method
00167     """
00168     return self._slot_types
00169 
00170   def serialize(self, buff):
00171     """
00172     serialize message into buffer
00173     :param buff: buffer, ``StringIO``
00174     """
00175     try:
00176       _x = self
00177       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00178       _x = self.action_goal.header.frame_id
00179       length = len(_x)
00180       if python3 or type(_x) == unicode:
00181         _x = _x.encode('utf-8')
00182         length = len(_x)
00183       buff.write(struct.pack('<I%ss'%length, length, _x))
00184       _x = self
00185       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00186       _x = self.action_goal.goal_id.id
00187       length = len(_x)
00188       if python3 or type(_x) == unicode:
00189         _x = _x.encode('utf-8')
00190         length = len(_x)
00191       buff.write(struct.pack('<I%ss'%length, length, _x))
00192       _x = self
00193       buff.write(_struct_Bf2B3I.pack(_x.action_goal.goal.grasp_type, _x.action_goal.goal.max_force, _x.action_goal.goal.accept_two_fingers_contact, _x.action_goal.goal.do_not_open_fingers, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00194       _x = self.action_result.header.frame_id
00195       length = len(_x)
00196       if python3 or type(_x) == unicode:
00197         _x = _x.encode('utf-8')
00198         length = len(_x)
00199       buff.write(struct.pack('<I%ss'%length, length, _x))
00200       _x = self
00201       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00202       _x = self.action_result.status.goal_id.id
00203       length = len(_x)
00204       if python3 or type(_x) == unicode:
00205         _x = _x.encode('utf-8')
00206         length = len(_x)
00207       buff.write(struct.pack('<I%ss'%length, length, _x))
00208       buff.write(_struct_B.pack(self.action_result.status.status))
00209       _x = self.action_result.status.text
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       _x = self
00216       buff.write(_struct_2iB3f3I.pack(_x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_result.result.grasped, _x.action_result.result.tip1_force, _x.action_result.result.tip2_force, _x.action_result.result.tip3_force, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00217       _x = self.action_feedback.header.frame_id
00218       length = len(_x)
00219       if python3 or type(_x) == unicode:
00220         _x = _x.encode('utf-8')
00221         length = len(_x)
00222       buff.write(struct.pack('<I%ss'%length, length, _x))
00223       _x = self
00224       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00225       _x = self.action_feedback.status.goal_id.id
00226       length = len(_x)
00227       if python3 or type(_x) == unicode:
00228         _x = _x.encode('utf-8')
00229         length = len(_x)
00230       buff.write(struct.pack('<I%ss'%length, length, _x))
00231       buff.write(_struct_B.pack(self.action_feedback.status.status))
00232       _x = self.action_feedback.status.text
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       _x = self
00239       buff.write(_struct_3f.pack(_x.action_feedback.feedback.tip1_force, _x.action_feedback.feedback.tip2_force, _x.action_feedback.feedback.tip3_force))
00240     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00241     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00242 
00243   def deserialize(self, str):
00244     """
00245     unpack serialized message in str into this message instance
00246     :param str: byte array of serialized message, ``str``
00247     """
00248     try:
00249       if self.action_goal is None:
00250         self.action_goal = srs_assisted_grasping_msgs.msg.ManualGraspingActionGoal()
00251       if self.action_result is None:
00252         self.action_result = srs_assisted_grasping_msgs.msg.ManualGraspingActionResult()
00253       if self.action_feedback is None:
00254         self.action_feedback = srs_assisted_grasping_msgs.msg.ManualGraspingActionFeedback()
00255       end = 0
00256       _x = self
00257       start = end
00258       end += 12
00259       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00260       start = end
00261       end += 4
00262       (length,) = _struct_I.unpack(str[start:end])
00263       start = end
00264       end += length
00265       if python3:
00266         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00267       else:
00268         self.action_goal.header.frame_id = str[start:end]
00269       _x = self
00270       start = end
00271       end += 8
00272       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00273       start = end
00274       end += 4
00275       (length,) = _struct_I.unpack(str[start:end])
00276       start = end
00277       end += length
00278       if python3:
00279         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00280       else:
00281         self.action_goal.goal_id.id = str[start:end]
00282       _x = self
00283       start = end
00284       end += 19
00285       (_x.action_goal.goal.grasp_type, _x.action_goal.goal.max_force, _x.action_goal.goal.accept_two_fingers_contact, _x.action_goal.goal.do_not_open_fingers, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_Bf2B3I.unpack(str[start:end])
00286       self.action_goal.goal.accept_two_fingers_contact = bool(self.action_goal.goal.accept_two_fingers_contact)
00287       self.action_goal.goal.do_not_open_fingers = bool(self.action_goal.goal.do_not_open_fingers)
00288       start = end
00289       end += 4
00290       (length,) = _struct_I.unpack(str[start:end])
00291       start = end
00292       end += length
00293       if python3:
00294         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00295       else:
00296         self.action_result.header.frame_id = str[start:end]
00297       _x = self
00298       start = end
00299       end += 8
00300       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00301       start = end
00302       end += 4
00303       (length,) = _struct_I.unpack(str[start:end])
00304       start = end
00305       end += length
00306       if python3:
00307         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00308       else:
00309         self.action_result.status.goal_id.id = str[start:end]
00310       start = end
00311       end += 1
00312       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00313       start = end
00314       end += 4
00315       (length,) = _struct_I.unpack(str[start:end])
00316       start = end
00317       end += length
00318       if python3:
00319         self.action_result.status.text = str[start:end].decode('utf-8')
00320       else:
00321         self.action_result.status.text = str[start:end]
00322       _x = self
00323       start = end
00324       end += 33
00325       (_x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_result.result.grasped, _x.action_result.result.tip1_force, _x.action_result.result.tip2_force, _x.action_result.result.tip3_force, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_2iB3f3I.unpack(str[start:end])
00326       self.action_result.result.grasped = bool(self.action_result.result.grasped)
00327       start = end
00328       end += 4
00329       (length,) = _struct_I.unpack(str[start:end])
00330       start = end
00331       end += length
00332       if python3:
00333         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00334       else:
00335         self.action_feedback.header.frame_id = str[start:end]
00336       _x = self
00337       start = end
00338       end += 8
00339       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.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_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00347       else:
00348         self.action_feedback.status.goal_id.id = str[start:end]
00349       start = end
00350       end += 1
00351       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00352       start = end
00353       end += 4
00354       (length,) = _struct_I.unpack(str[start:end])
00355       start = end
00356       end += length
00357       if python3:
00358         self.action_feedback.status.text = str[start:end].decode('utf-8')
00359       else:
00360         self.action_feedback.status.text = str[start:end]
00361       _x = self
00362       start = end
00363       end += 12
00364       (_x.action_feedback.feedback.tip1_force, _x.action_feedback.feedback.tip2_force, _x.action_feedback.feedback.tip3_force,) = _struct_3f.unpack(str[start:end])
00365       return self
00366     except struct.error as e:
00367       raise genpy.DeserializationError(e) #most likely buffer underfill
00368 
00369 
00370   def serialize_numpy(self, buff, numpy):
00371     """
00372     serialize message with numpy array types into buffer
00373     :param buff: buffer, ``StringIO``
00374     :param numpy: numpy python module
00375     """
00376     try:
00377       _x = self
00378       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00379       _x = self.action_goal.header.frame_id
00380       length = len(_x)
00381       if python3 or type(_x) == unicode:
00382         _x = _x.encode('utf-8')
00383         length = len(_x)
00384       buff.write(struct.pack('<I%ss'%length, length, _x))
00385       _x = self
00386       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00387       _x = self.action_goal.goal_id.id
00388       length = len(_x)
00389       if python3 or type(_x) == unicode:
00390         _x = _x.encode('utf-8')
00391         length = len(_x)
00392       buff.write(struct.pack('<I%ss'%length, length, _x))
00393       _x = self
00394       buff.write(_struct_Bf2B3I.pack(_x.action_goal.goal.grasp_type, _x.action_goal.goal.max_force, _x.action_goal.goal.accept_two_fingers_contact, _x.action_goal.goal.do_not_open_fingers, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00395       _x = self.action_result.header.frame_id
00396       length = len(_x)
00397       if python3 or type(_x) == unicode:
00398         _x = _x.encode('utf-8')
00399         length = len(_x)
00400       buff.write(struct.pack('<I%ss'%length, length, _x))
00401       _x = self
00402       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00403       _x = self.action_result.status.goal_id.id
00404       length = len(_x)
00405       if python3 or type(_x) == unicode:
00406         _x = _x.encode('utf-8')
00407         length = len(_x)
00408       buff.write(struct.pack('<I%ss'%length, length, _x))
00409       buff.write(_struct_B.pack(self.action_result.status.status))
00410       _x = self.action_result.status.text
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_2iB3f3I.pack(_x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_result.result.grasped, _x.action_result.result.tip1_force, _x.action_result.result.tip2_force, _x.action_result.result.tip3_force, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00418       _x = self.action_feedback.header.frame_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
00425       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00426       _x = self.action_feedback.status.goal_id.id
00427       length = len(_x)
00428       if python3 or type(_x) == unicode:
00429         _x = _x.encode('utf-8')
00430         length = len(_x)
00431       buff.write(struct.pack('<I%ss'%length, length, _x))
00432       buff.write(_struct_B.pack(self.action_feedback.status.status))
00433       _x = self.action_feedback.status.text
00434       length = len(_x)
00435       if python3 or type(_x) == unicode:
00436         _x = _x.encode('utf-8')
00437         length = len(_x)
00438       buff.write(struct.pack('<I%ss'%length, length, _x))
00439       _x = self
00440       buff.write(_struct_3f.pack(_x.action_feedback.feedback.tip1_force, _x.action_feedback.feedback.tip2_force, _x.action_feedback.feedback.tip3_force))
00441     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00442     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00443 
00444   def deserialize_numpy(self, str, numpy):
00445     """
00446     unpack serialized message in str into this message instance using numpy for array types
00447     :param str: byte array of serialized message, ``str``
00448     :param numpy: numpy python module
00449     """
00450     try:
00451       if self.action_goal is None:
00452         self.action_goal = srs_assisted_grasping_msgs.msg.ManualGraspingActionGoal()
00453       if self.action_result is None:
00454         self.action_result = srs_assisted_grasping_msgs.msg.ManualGraspingActionResult()
00455       if self.action_feedback is None:
00456         self.action_feedback = srs_assisted_grasping_msgs.msg.ManualGraspingActionFeedback()
00457       end = 0
00458       _x = self
00459       start = end
00460       end += 12
00461       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00462       start = end
00463       end += 4
00464       (length,) = _struct_I.unpack(str[start:end])
00465       start = end
00466       end += length
00467       if python3:
00468         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00469       else:
00470         self.action_goal.header.frame_id = str[start:end]
00471       _x = self
00472       start = end
00473       end += 8
00474       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00475       start = end
00476       end += 4
00477       (length,) = _struct_I.unpack(str[start:end])
00478       start = end
00479       end += length
00480       if python3:
00481         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00482       else:
00483         self.action_goal.goal_id.id = str[start:end]
00484       _x = self
00485       start = end
00486       end += 19
00487       (_x.action_goal.goal.grasp_type, _x.action_goal.goal.max_force, _x.action_goal.goal.accept_two_fingers_contact, _x.action_goal.goal.do_not_open_fingers, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_Bf2B3I.unpack(str[start:end])
00488       self.action_goal.goal.accept_two_fingers_contact = bool(self.action_goal.goal.accept_two_fingers_contact)
00489       self.action_goal.goal.do_not_open_fingers = bool(self.action_goal.goal.do_not_open_fingers)
00490       start = end
00491       end += 4
00492       (length,) = _struct_I.unpack(str[start:end])
00493       start = end
00494       end += length
00495       if python3:
00496         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00497       else:
00498         self.action_result.header.frame_id = str[start:end]
00499       _x = self
00500       start = end
00501       end += 8
00502       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00503       start = end
00504       end += 4
00505       (length,) = _struct_I.unpack(str[start:end])
00506       start = end
00507       end += length
00508       if python3:
00509         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00510       else:
00511         self.action_result.status.goal_id.id = str[start:end]
00512       start = end
00513       end += 1
00514       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00515       start = end
00516       end += 4
00517       (length,) = _struct_I.unpack(str[start:end])
00518       start = end
00519       end += length
00520       if python3:
00521         self.action_result.status.text = str[start:end].decode('utf-8')
00522       else:
00523         self.action_result.status.text = str[start:end]
00524       _x = self
00525       start = end
00526       end += 33
00527       (_x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_result.result.grasped, _x.action_result.result.tip1_force, _x.action_result.result.tip2_force, _x.action_result.result.tip3_force, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_2iB3f3I.unpack(str[start:end])
00528       self.action_result.result.grasped = bool(self.action_result.result.grasped)
00529       start = end
00530       end += 4
00531       (length,) = _struct_I.unpack(str[start:end])
00532       start = end
00533       end += length
00534       if python3:
00535         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00536       else:
00537         self.action_feedback.header.frame_id = str[start:end]
00538       _x = self
00539       start = end
00540       end += 8
00541       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.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_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00549       else:
00550         self.action_feedback.status.goal_id.id = str[start:end]
00551       start = end
00552       end += 1
00553       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00554       start = end
00555       end += 4
00556       (length,) = _struct_I.unpack(str[start:end])
00557       start = end
00558       end += length
00559       if python3:
00560         self.action_feedback.status.text = str[start:end].decode('utf-8')
00561       else:
00562         self.action_feedback.status.text = str[start:end]
00563       _x = self
00564       start = end
00565       end += 12
00566       (_x.action_feedback.feedback.tip1_force, _x.action_feedback.feedback.tip2_force, _x.action_feedback.feedback.tip3_force,) = _struct_3f.unpack(str[start:end])
00567       return self
00568     except struct.error as e:
00569       raise genpy.DeserializationError(e) #most likely buffer underfill
00570 
00571 _struct_I = genpy.struct_I
00572 _struct_Bf2B3I = struct.Struct("<Bf2B3I")
00573 _struct_B = struct.Struct("<B")
00574 _struct_2iB3f3I = struct.Struct("<2iB3f3I")
00575 _struct_3f = struct.Struct("<3f")
00576 _struct_3I = struct.Struct("<3I")
00577 _struct_2I = struct.Struct("<2I")


srs_assisted_grasping_msgs
Author(s): Zdenek Materna
autogenerated on Mon Oct 6 2014 07:57:11