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