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