_SimplePoseResult.py
Go to the documentation of this file.
00001 """autogenerated by genpy from iri_wam_arm_navigation/SimplePoseResult.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 
00009 class SimplePoseResult(genpy.Message):
00010   _md5sum = "48fd1d8662be4b18e218b0ea865c93ed"
00011   _type = "iri_wam_arm_navigation/SimplePoseResult"
00012   _has_header = False #flag to mark the presence of a Header object
00013   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00014 #Result Definition
00015 # An error code reflecting what went wrong
00016 arm_navigation_msgs/ArmNavigationErrorCodes error_code
00017 
00018 ================================================================================
00019 MSG: arm_navigation_msgs/ArmNavigationErrorCodes
00020 int32 val
00021 
00022 # overall behavior
00023 int32 PLANNING_FAILED=-1
00024 int32 SUCCESS=1
00025 int32 TIMED_OUT=-2
00026 
00027 # start state errors
00028 int32 START_STATE_IN_COLLISION=-3
00029 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-4
00030 
00031 # goal errors
00032 int32 GOAL_IN_COLLISION=-5
00033 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-6
00034 
00035 # robot state
00036 int32 INVALID_ROBOT_STATE=-7
00037 int32 INCOMPLETE_ROBOT_STATE=-8
00038 
00039 # planning request errors
00040 int32 INVALID_PLANNER_ID=-9
00041 int32 INVALID_NUM_PLANNING_ATTEMPTS=-10
00042 int32 INVALID_ALLOWED_PLANNING_TIME=-11
00043 int32 INVALID_GROUP_NAME=-12
00044 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-13
00045 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-14
00046 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-15
00047 int32 INVALID_PATH_JOINT_CONSTRAINTS=-16
00048 int32 INVALID_PATH_POSITION_CONSTRAINTS=-17
00049 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-18
00050 
00051 # state/trajectory monitor errors
00052 int32 INVALID_TRAJECTORY=-19
00053 int32 INVALID_INDEX=-20
00054 int32 JOINT_LIMITS_VIOLATED=-21
00055 int32 PATH_CONSTRAINTS_VIOLATED=-22
00056 int32 COLLISION_CONSTRAINTS_VIOLATED=-23
00057 int32 GOAL_CONSTRAINTS_VIOLATED=-24
00058 int32 JOINTS_NOT_MOVING=-25
00059 int32 TRAJECTORY_CONTROLLER_FAILED=-26
00060 
00061 # system errors
00062 int32 FRAME_TRANSFORM_FAILURE=-27
00063 int32 COLLISION_CHECKING_UNAVAILABLE=-28
00064 int32 ROBOT_STATE_STALE=-29
00065 int32 SENSOR_INFO_STALE=-30
00066 
00067 # kinematics errors
00068 int32 NO_IK_SOLUTION=-31
00069 int32 INVALID_LINK_NAME=-32
00070 int32 IK_LINK_IN_COLLISION=-33
00071 int32 NO_FK_SOLUTION=-34
00072 int32 KINEMATICS_STATE_IN_COLLISION=-35
00073 
00074 # general errors
00075 int32 INVALID_TIMEOUT=-36
00076 
00077 
00078 """
00079   __slots__ = ['error_code']
00080   _slot_types = ['arm_navigation_msgs/ArmNavigationErrorCodes']
00081 
00082   def __init__(self, *args, **kwds):
00083     """
00084     Constructor. Any message fields that are implicitly/explicitly
00085     set to None will be assigned a default value. The recommend
00086     use is keyword arguments as this is more robust to future message
00087     changes.  You cannot mix in-order arguments and keyword arguments.
00088 
00089     The available fields are:
00090        error_code
00091 
00092     :param args: complete set of field values, in .msg order
00093     :param kwds: use keyword arguments corresponding to message field names
00094     to set specific fields.
00095     """
00096     if args or kwds:
00097       super(SimplePoseResult, self).__init__(*args, **kwds)
00098       #message fields cannot be None, assign default values for those that are
00099       if self.error_code is None:
00100         self.error_code = arm_navigation_msgs.msg.ArmNavigationErrorCodes()
00101     else:
00102       self.error_code = arm_navigation_msgs.msg.ArmNavigationErrorCodes()
00103 
00104   def _get_types(self):
00105     """
00106     internal API method
00107     """
00108     return self._slot_types
00109 
00110   def serialize(self, buff):
00111     """
00112     serialize message into buffer
00113     :param buff: buffer, ``StringIO``
00114     """
00115     try:
00116       buff.write(_struct_i.pack(self.error_code.val))
00117     except struct.error as se: self._check_types(se)
00118     except TypeError as te: self._check_types(te)
00119 
00120   def deserialize(self, str):
00121     """
00122     unpack serialized message in str into this message instance
00123     :param str: byte array of serialized message, ``str``
00124     """
00125     try:
00126       if self.error_code is None:
00127         self.error_code = arm_navigation_msgs.msg.ArmNavigationErrorCodes()
00128       end = 0
00129       start = end
00130       end += 4
00131       (self.error_code.val,) = _struct_i.unpack(str[start:end])
00132       return self
00133     except struct.error as e:
00134       raise genpy.DeserializationError(e) #most likely buffer underfill
00135 
00136 
00137   def serialize_numpy(self, buff, numpy):
00138     """
00139     serialize message with numpy array types into buffer
00140     :param buff: buffer, ``StringIO``
00141     :param numpy: numpy python module
00142     """
00143     try:
00144       buff.write(_struct_i.pack(self.error_code.val))
00145     except struct.error as se: self._check_types(se)
00146     except TypeError as te: self._check_types(te)
00147 
00148   def deserialize_numpy(self, str, numpy):
00149     """
00150     unpack serialized message in str into this message instance using numpy for array types
00151     :param str: byte array of serialized message, ``str``
00152     :param numpy: numpy python module
00153     """
00154     try:
00155       if self.error_code is None:
00156         self.error_code = arm_navigation_msgs.msg.ArmNavigationErrorCodes()
00157       end = 0
00158       start = end
00159       end += 4
00160       (self.error_code.val,) = _struct_i.unpack(str[start:end])
00161       return self
00162     except struct.error as e:
00163       raise genpy.DeserializationError(e) #most likely buffer underfill
00164 
00165 _struct_I = genpy.struct_I
00166 _struct_i = struct.Struct("<i")


iri_wam_arm_navigation
Author(s): IRI Robotics Lab, Ivan Rojas (ivan.rojas.j@gmail.com)
autogenerated on Fri Dec 6 2013 22:32:00