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