_GraspObjectActionResult.py
Go to the documentation of this file.
00001 """autogenerated by genpy from tidyup_msgs/GraspObjectActionResult.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 arm_navigation_msgs.msg
00008 import actionlib_msgs.msg
00009 import tidyup_msgs.msg
00010 import geometry_msgs.msg
00011 import genpy
00012 import std_msgs.msg
00013 
00014 class GraspObjectActionResult(genpy.Message):
00015   _md5sum = "d778359f8cccdae8cf4ccf14845206ee"
00016   _type = "tidyup_msgs/GraspObjectActionResult"
00017   _has_header = True #flag to mark the presence of a Header object
00018   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00019 
00020 Header header
00021 actionlib_msgs/GoalStatus status
00022 GraspObjectResult result
00023 
00024 ================================================================================
00025 MSG: std_msgs/Header
00026 # Standard metadata for higher-level stamped data types.
00027 # This is generally used to communicate timestamped data 
00028 # in a particular coordinate frame.
00029 # 
00030 # sequence ID: consecutively increasing ID 
00031 uint32 seq
00032 #Two-integer timestamp that is expressed as:
00033 # * stamp.secs: seconds (stamp_secs) since epoch
00034 # * stamp.nsecs: nanoseconds since stamp_secs
00035 # time-handling sugar is provided by the client library
00036 time stamp
00037 #Frame this data is associated with
00038 # 0: no frame
00039 # 1: global frame
00040 string frame_id
00041 
00042 ================================================================================
00043 MSG: actionlib_msgs/GoalStatus
00044 GoalID goal_id
00045 uint8 status
00046 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00047 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00048 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00049                             #   and has since completed its execution (Terminal State)
00050 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00051 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00052                             #    to some failure (Terminal State)
00053 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00054                             #    because the goal was unattainable or invalid (Terminal State)
00055 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00056                             #    and has not yet completed execution
00057 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00058                             #    but the action server has not yet confirmed that the goal is canceled
00059 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00060                             #    and was successfully cancelled (Terminal State)
00061 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00062                             #    sent over the wire by an action server
00063 
00064 #Allow for the user to associate a string with GoalStatus for debugging
00065 string text
00066 
00067 
00068 ================================================================================
00069 MSG: actionlib_msgs/GoalID
00070 # The stamp should store the time at which this goal was requested.
00071 # It is used by an action server when it tries to preempt all
00072 # goals that were requested before a certain time
00073 time stamp
00074 
00075 # The id provides a way to associate feedback and
00076 # result message with specific goal requests. The id
00077 # specified must be unique.
00078 string id
00079 
00080 
00081 ================================================================================
00082 MSG: tidyup_msgs/GraspObjectResult
00083 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00084 # the new pose of the object
00085 geometry_msgs/PoseStamped grasp
00086 arm_navigation_msgs/ArmNavigationErrorCodes error_code
00087 
00088 ================================================================================
00089 MSG: geometry_msgs/PoseStamped
00090 # A Pose with reference coordinate frame and timestamp
00091 Header header
00092 Pose pose
00093 
00094 ================================================================================
00095 MSG: geometry_msgs/Pose
00096 # A representation of pose in free space, composed of postion and orientation. 
00097 Point position
00098 Quaternion orientation
00099 
00100 ================================================================================
00101 MSG: geometry_msgs/Point
00102 # This contains the position of a point in free space
00103 float64 x
00104 float64 y
00105 float64 z
00106 
00107 ================================================================================
00108 MSG: geometry_msgs/Quaternion
00109 # This represents an orientation in free space in quaternion form.
00110 
00111 float64 x
00112 float64 y
00113 float64 z
00114 float64 w
00115 
00116 ================================================================================
00117 MSG: arm_navigation_msgs/ArmNavigationErrorCodes
00118 int32 val
00119 
00120 # overall behavior
00121 int32 PLANNING_FAILED=-1
00122 int32 SUCCESS=1
00123 int32 TIMED_OUT=-2
00124 
00125 # start state errors
00126 int32 START_STATE_IN_COLLISION=-3
00127 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-4
00128 
00129 # goal errors
00130 int32 GOAL_IN_COLLISION=-5
00131 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-6
00132 
00133 # robot state
00134 int32 INVALID_ROBOT_STATE=-7
00135 int32 INCOMPLETE_ROBOT_STATE=-8
00136 
00137 # planning request errors
00138 int32 INVALID_PLANNER_ID=-9
00139 int32 INVALID_NUM_PLANNING_ATTEMPTS=-10
00140 int32 INVALID_ALLOWED_PLANNING_TIME=-11
00141 int32 INVALID_GROUP_NAME=-12
00142 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-13
00143 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-14
00144 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-15
00145 int32 INVALID_PATH_JOINT_CONSTRAINTS=-16
00146 int32 INVALID_PATH_POSITION_CONSTRAINTS=-17
00147 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-18
00148 
00149 # state/trajectory monitor errors
00150 int32 INVALID_TRAJECTORY=-19
00151 int32 INVALID_INDEX=-20
00152 int32 JOINT_LIMITS_VIOLATED=-21
00153 int32 PATH_CONSTRAINTS_VIOLATED=-22
00154 int32 COLLISION_CONSTRAINTS_VIOLATED=-23
00155 int32 GOAL_CONSTRAINTS_VIOLATED=-24
00156 int32 JOINTS_NOT_MOVING=-25
00157 int32 TRAJECTORY_CONTROLLER_FAILED=-26
00158 
00159 # system errors
00160 int32 FRAME_TRANSFORM_FAILURE=-27
00161 int32 COLLISION_CHECKING_UNAVAILABLE=-28
00162 int32 ROBOT_STATE_STALE=-29
00163 int32 SENSOR_INFO_STALE=-30
00164 
00165 # kinematics errors
00166 int32 NO_IK_SOLUTION=-31
00167 int32 INVALID_LINK_NAME=-32
00168 int32 IK_LINK_IN_COLLISION=-33
00169 int32 NO_FK_SOLUTION=-34
00170 int32 KINEMATICS_STATE_IN_COLLISION=-35
00171 
00172 # general errors
00173 int32 INVALID_TIMEOUT=-36
00174 
00175 
00176 """
00177   __slots__ = ['header','status','result']
00178   _slot_types = ['std_msgs/Header','actionlib_msgs/GoalStatus','tidyup_msgs/GraspObjectResult']
00179 
00180   def __init__(self, *args, **kwds):
00181     """
00182     Constructor. Any message fields that are implicitly/explicitly
00183     set to None will be assigned a default value. The recommend
00184     use is keyword arguments as this is more robust to future message
00185     changes.  You cannot mix in-order arguments and keyword arguments.
00186 
00187     The available fields are:
00188        header,status,result
00189 
00190     :param args: complete set of field values, in .msg order
00191     :param kwds: use keyword arguments corresponding to message field names
00192     to set specific fields.
00193     """
00194     if args or kwds:
00195       super(GraspObjectActionResult, self).__init__(*args, **kwds)
00196       #message fields cannot be None, assign default values for those that are
00197       if self.header is None:
00198         self.header = std_msgs.msg.Header()
00199       if self.status is None:
00200         self.status = actionlib_msgs.msg.GoalStatus()
00201       if self.result is None:
00202         self.result = tidyup_msgs.msg.GraspObjectResult()
00203     else:
00204       self.header = std_msgs.msg.Header()
00205       self.status = actionlib_msgs.msg.GoalStatus()
00206       self.result = tidyup_msgs.msg.GraspObjectResult()
00207 
00208   def _get_types(self):
00209     """
00210     internal API method
00211     """
00212     return self._slot_types
00213 
00214   def serialize(self, buff):
00215     """
00216     serialize message into buffer
00217     :param buff: buffer, ``StringIO``
00218     """
00219     try:
00220       _x = self
00221       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00222       _x = self.header.frame_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       _x = self
00229       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00230       _x = self.status.goal_id.id
00231       length = len(_x)
00232       if python3 or type(_x) == unicode:
00233         _x = _x.encode('utf-8')
00234         length = len(_x)
00235       buff.write(struct.pack('<I%ss'%length, length, _x))
00236       buff.write(_struct_B.pack(self.status.status))
00237       _x = self.status.text
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_3I.pack(_x.result.grasp.header.seq, _x.result.grasp.header.stamp.secs, _x.result.grasp.header.stamp.nsecs))
00245       _x = self.result.grasp.header.frame_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       _x = self
00252       buff.write(_struct_7di.pack(_x.result.grasp.pose.position.x, _x.result.grasp.pose.position.y, _x.result.grasp.pose.position.z, _x.result.grasp.pose.orientation.x, _x.result.grasp.pose.orientation.y, _x.result.grasp.pose.orientation.z, _x.result.grasp.pose.orientation.w, _x.result.error_code.val))
00253     except struct.error as se: self._check_types(se)
00254     except TypeError as te: self._check_types(te)
00255 
00256   def deserialize(self, str):
00257     """
00258     unpack serialized message in str into this message instance
00259     :param str: byte array of serialized message, ``str``
00260     """
00261     try:
00262       if self.header is None:
00263         self.header = std_msgs.msg.Header()
00264       if self.status is None:
00265         self.status = actionlib_msgs.msg.GoalStatus()
00266       if self.result is None:
00267         self.result = tidyup_msgs.msg.GraspObjectResult()
00268       end = 0
00269       _x = self
00270       start = end
00271       end += 12
00272       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.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.header.frame_id = str[start:end].decode('utf-8')
00280       else:
00281         self.header.frame_id = str[start:end]
00282       _x = self
00283       start = end
00284       end += 8
00285       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00286       start = end
00287       end += 4
00288       (length,) = _struct_I.unpack(str[start:end])
00289       start = end
00290       end += length
00291       if python3:
00292         self.status.goal_id.id = str[start:end].decode('utf-8')
00293       else:
00294         self.status.goal_id.id = str[start:end]
00295       start = end
00296       end += 1
00297       (self.status.status,) = _struct_B.unpack(str[start:end])
00298       start = end
00299       end += 4
00300       (length,) = _struct_I.unpack(str[start:end])
00301       start = end
00302       end += length
00303       if python3:
00304         self.status.text = str[start:end].decode('utf-8')
00305       else:
00306         self.status.text = str[start:end]
00307       _x = self
00308       start = end
00309       end += 12
00310       (_x.result.grasp.header.seq, _x.result.grasp.header.stamp.secs, _x.result.grasp.header.stamp.nsecs,) = _struct_3I.unpack(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.result.grasp.header.frame_id = str[start:end].decode('utf-8')
00318       else:
00319         self.result.grasp.header.frame_id = str[start:end]
00320       _x = self
00321       start = end
00322       end += 60
00323       (_x.result.grasp.pose.position.x, _x.result.grasp.pose.position.y, _x.result.grasp.pose.position.z, _x.result.grasp.pose.orientation.x, _x.result.grasp.pose.orientation.y, _x.result.grasp.pose.orientation.z, _x.result.grasp.pose.orientation.w, _x.result.error_code.val,) = _struct_7di.unpack(str[start:end])
00324       return self
00325     except struct.error as e:
00326       raise genpy.DeserializationError(e) #most likely buffer underfill
00327 
00328 
00329   def serialize_numpy(self, buff, numpy):
00330     """
00331     serialize message with numpy array types into buffer
00332     :param buff: buffer, ``StringIO``
00333     :param numpy: numpy python module
00334     """
00335     try:
00336       _x = self
00337       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00338       _x = self.header.frame_id
00339       length = len(_x)
00340       if python3 or type(_x) == unicode:
00341         _x = _x.encode('utf-8')
00342         length = len(_x)
00343       buff.write(struct.pack('<I%ss'%length, length, _x))
00344       _x = self
00345       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00346       _x = self.status.goal_id.id
00347       length = len(_x)
00348       if python3 or type(_x) == unicode:
00349         _x = _x.encode('utf-8')
00350         length = len(_x)
00351       buff.write(struct.pack('<I%ss'%length, length, _x))
00352       buff.write(_struct_B.pack(self.status.status))
00353       _x = self.status.text
00354       length = len(_x)
00355       if python3 or type(_x) == unicode:
00356         _x = _x.encode('utf-8')
00357         length = len(_x)
00358       buff.write(struct.pack('<I%ss'%length, length, _x))
00359       _x = self
00360       buff.write(_struct_3I.pack(_x.result.grasp.header.seq, _x.result.grasp.header.stamp.secs, _x.result.grasp.header.stamp.nsecs))
00361       _x = self.result.grasp.header.frame_id
00362       length = len(_x)
00363       if python3 or type(_x) == unicode:
00364         _x = _x.encode('utf-8')
00365         length = len(_x)
00366       buff.write(struct.pack('<I%ss'%length, length, _x))
00367       _x = self
00368       buff.write(_struct_7di.pack(_x.result.grasp.pose.position.x, _x.result.grasp.pose.position.y, _x.result.grasp.pose.position.z, _x.result.grasp.pose.orientation.x, _x.result.grasp.pose.orientation.y, _x.result.grasp.pose.orientation.z, _x.result.grasp.pose.orientation.w, _x.result.error_code.val))
00369     except struct.error as se: self._check_types(se)
00370     except TypeError as te: self._check_types(te)
00371 
00372   def deserialize_numpy(self, str, numpy):
00373     """
00374     unpack serialized message in str into this message instance using numpy for array types
00375     :param str: byte array of serialized message, ``str``
00376     :param numpy: numpy python module
00377     """
00378     try:
00379       if self.header is None:
00380         self.header = std_msgs.msg.Header()
00381       if self.status is None:
00382         self.status = actionlib_msgs.msg.GoalStatus()
00383       if self.result is None:
00384         self.result = tidyup_msgs.msg.GraspObjectResult()
00385       end = 0
00386       _x = self
00387       start = end
00388       end += 12
00389       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00390       start = end
00391       end += 4
00392       (length,) = _struct_I.unpack(str[start:end])
00393       start = end
00394       end += length
00395       if python3:
00396         self.header.frame_id = str[start:end].decode('utf-8')
00397       else:
00398         self.header.frame_id = str[start:end]
00399       _x = self
00400       start = end
00401       end += 8
00402       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00403       start = end
00404       end += 4
00405       (length,) = _struct_I.unpack(str[start:end])
00406       start = end
00407       end += length
00408       if python3:
00409         self.status.goal_id.id = str[start:end].decode('utf-8')
00410       else:
00411         self.status.goal_id.id = str[start:end]
00412       start = end
00413       end += 1
00414       (self.status.status,) = _struct_B.unpack(str[start:end])
00415       start = end
00416       end += 4
00417       (length,) = _struct_I.unpack(str[start:end])
00418       start = end
00419       end += length
00420       if python3:
00421         self.status.text = str[start:end].decode('utf-8')
00422       else:
00423         self.status.text = str[start:end]
00424       _x = self
00425       start = end
00426       end += 12
00427       (_x.result.grasp.header.seq, _x.result.grasp.header.stamp.secs, _x.result.grasp.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00428       start = end
00429       end += 4
00430       (length,) = _struct_I.unpack(str[start:end])
00431       start = end
00432       end += length
00433       if python3:
00434         self.result.grasp.header.frame_id = str[start:end].decode('utf-8')
00435       else:
00436         self.result.grasp.header.frame_id = str[start:end]
00437       _x = self
00438       start = end
00439       end += 60
00440       (_x.result.grasp.pose.position.x, _x.result.grasp.pose.position.y, _x.result.grasp.pose.position.z, _x.result.grasp.pose.orientation.x, _x.result.grasp.pose.orientation.y, _x.result.grasp.pose.orientation.z, _x.result.grasp.pose.orientation.w, _x.result.error_code.val,) = _struct_7di.unpack(str[start:end])
00441       return self
00442     except struct.error as e:
00443       raise genpy.DeserializationError(e) #most likely buffer underfill
00444 
00445 _struct_I = genpy.struct_I
00446 _struct_7di = struct.Struct("<7di")
00447 _struct_3I = struct.Struct("<3I")
00448 _struct_B = struct.Struct("<B")
00449 _struct_2I = struct.Struct("<2I")
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


tidyup_msgs
Author(s): Maintained by Christian Dornhege
autogenerated on Wed Dec 26 2012 15:47:07