00001 #ifndef _ROS_moveit_msgs_MoveItErrorCodes_h 00002 #define _ROS_moveit_msgs_MoveItErrorCodes_h 00003 00004 #include <stdint.h> 00005 #include <string.h> 00006 #include <stdlib.h> 00007 #include "ros/msg.h" 00008 00009 namespace moveit_msgs 00010 { 00011 00012 class MoveItErrorCodes : public ros::Msg 00013 { 00014 public: 00015 int32_t val; 00016 enum { SUCCESS = 1 }; 00017 enum { FAILURE = 99999 }; 00018 enum { PLANNING_FAILED = -1 }; 00019 enum { INVALID_MOTION_PLAN = -2 }; 00020 enum { MOTION_PLAN_INVALIDATED_BY_ENVIRONMENT_CHANGE = -3 }; 00021 enum { CONTROL_FAILED = -4 }; 00022 enum { UNABLE_TO_AQUIRE_SENSOR_DATA = -5 }; 00023 enum { TIMED_OUT = -6 }; 00024 enum { PREEMPTED = -7 }; 00025 enum { START_STATE_IN_COLLISION = -10 }; 00026 enum { START_STATE_VIOLATES_PATH_CONSTRAINTS = -11 }; 00027 enum { GOAL_IN_COLLISION = -12 }; 00028 enum { GOAL_VIOLATES_PATH_CONSTRAINTS = -13 }; 00029 enum { GOAL_CONSTRAINTS_VIOLATED = -14 }; 00030 enum { INVALID_GROUP_NAME = -15 }; 00031 enum { INVALID_GOAL_CONSTRAINTS = -16 }; 00032 enum { INVALID_ROBOT_STATE = -17 }; 00033 enum { INVALID_LINK_NAME = -18 }; 00034 enum { INVALID_OBJECT_NAME = -19 }; 00035 enum { FRAME_TRANSFORM_FAILURE = -21 }; 00036 enum { COLLISION_CHECKING_UNAVAILABLE = -22 }; 00037 enum { ROBOT_STATE_STALE = -23 }; 00038 enum { SENSOR_INFO_STALE = -24 }; 00039 enum { NO_IK_SOLUTION = -31 }; 00040 00041 virtual int serialize(unsigned char *outbuffer) const 00042 { 00043 int offset = 0; 00044 union { 00045 int32_t real; 00046 uint32_t base; 00047 } u_val; 00048 u_val.real = this->val; 00049 *(outbuffer + offset + 0) = (u_val.base >> (8 * 0)) & 0xFF; 00050 *(outbuffer + offset + 1) = (u_val.base >> (8 * 1)) & 0xFF; 00051 *(outbuffer + offset + 2) = (u_val.base >> (8 * 2)) & 0xFF; 00052 *(outbuffer + offset + 3) = (u_val.base >> (8 * 3)) & 0xFF; 00053 offset += sizeof(this->val); 00054 return offset; 00055 } 00056 00057 virtual int deserialize(unsigned char *inbuffer) 00058 { 00059 int offset = 0; 00060 union { 00061 int32_t real; 00062 uint32_t base; 00063 } u_val; 00064 u_val.base = 0; 00065 u_val.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); 00066 u_val.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00067 u_val.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00068 u_val.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00069 this->val = u_val.real; 00070 offset += sizeof(this->val); 00071 return offset; 00072 } 00073 00074 const char * getType(){ return "moveit_msgs/MoveItErrorCodes"; }; 00075 const char * getMD5(){ return "aa336b18d80531f66439810112c0a43e"; }; 00076 00077 }; 00078 00079 } 00080 #endif