Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed_roshydro_test
MoveItErrorCodes.h
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 MoveItErrorCodes(): 00042 val(0) 00043 { 00044 } 00045 00046 virtual int serialize(unsigned char *outbuffer) const 00047 { 00048 int offset = 0; 00049 union { 00050 int32_t real; 00051 uint32_t base; 00052 } u_val; 00053 u_val.real = this->val; 00054 *(outbuffer + offset + 0) = (u_val.base >> (8 * 0)) & 0xFF; 00055 *(outbuffer + offset + 1) = (u_val.base >> (8 * 1)) & 0xFF; 00056 *(outbuffer + offset + 2) = (u_val.base >> (8 * 2)) & 0xFF; 00057 *(outbuffer + offset + 3) = (u_val.base >> (8 * 3)) & 0xFF; 00058 offset += sizeof(this->val); 00059 return offset; 00060 } 00061 00062 virtual int deserialize(unsigned char *inbuffer) 00063 { 00064 int offset = 0; 00065 union { 00066 int32_t real; 00067 uint32_t base; 00068 } u_val; 00069 u_val.base = 0; 00070 u_val.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); 00071 u_val.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00072 u_val.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00073 u_val.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00074 this->val = u_val.real; 00075 offset += sizeof(this->val); 00076 return offset; 00077 } 00078 00079 const char * getType(){ return "moveit_msgs/MoveItErrorCodes"; }; 00080 const char * getMD5(){ return "aa336b18d80531f66439810112c0a43e"; }; 00081 00082 }; 00083 00084 } 00085 #endif
Generated on Wed Jul 13 2022 01:02:31 by
