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.
Dependencies: mbed
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 typedef int32_t _val_type; 00016 _val_type val; 00017 enum { SUCCESS = 1 }; 00018 enum { FAILURE = 99999 }; 00019 enum { PLANNING_FAILED = -1 }; 00020 enum { INVALID_MOTION_PLAN = -2 }; 00021 enum { MOTION_PLAN_INVALIDATED_BY_ENVIRONMENT_CHANGE = -3 }; 00022 enum { CONTROL_FAILED = -4 }; 00023 enum { UNABLE_TO_AQUIRE_SENSOR_DATA = -5 }; 00024 enum { TIMED_OUT = -6 }; 00025 enum { PREEMPTED = -7 }; 00026 enum { START_STATE_IN_COLLISION = -10 }; 00027 enum { START_STATE_VIOLATES_PATH_CONSTRAINTS = -11 }; 00028 enum { GOAL_IN_COLLISION = -12 }; 00029 enum { GOAL_VIOLATES_PATH_CONSTRAINTS = -13 }; 00030 enum { GOAL_CONSTRAINTS_VIOLATED = -14 }; 00031 enum { INVALID_GROUP_NAME = -15 }; 00032 enum { INVALID_GOAL_CONSTRAINTS = -16 }; 00033 enum { INVALID_ROBOT_STATE = -17 }; 00034 enum { INVALID_LINK_NAME = -18 }; 00035 enum { INVALID_OBJECT_NAME = -19 }; 00036 enum { FRAME_TRANSFORM_FAILURE = -21 }; 00037 enum { COLLISION_CHECKING_UNAVAILABLE = -22 }; 00038 enum { ROBOT_STATE_STALE = -23 }; 00039 enum { SENSOR_INFO_STALE = -24 }; 00040 enum { NO_IK_SOLUTION = -31 }; 00041 00042 MoveItErrorCodes(): 00043 val(0) 00044 { 00045 } 00046 00047 virtual int serialize(unsigned char *outbuffer) const 00048 { 00049 int offset = 0; 00050 union { 00051 int32_t real; 00052 uint32_t base; 00053 } u_val; 00054 u_val.real = this->val; 00055 *(outbuffer + offset + 0) = (u_val.base >> (8 * 0)) & 0xFF; 00056 *(outbuffer + offset + 1) = (u_val.base >> (8 * 1)) & 0xFF; 00057 *(outbuffer + offset + 2) = (u_val.base >> (8 * 2)) & 0xFF; 00058 *(outbuffer + offset + 3) = (u_val.base >> (8 * 3)) & 0xFF; 00059 offset += sizeof(this->val); 00060 return offset; 00061 } 00062 00063 virtual int deserialize(unsigned char *inbuffer) 00064 { 00065 int offset = 0; 00066 union { 00067 int32_t real; 00068 uint32_t base; 00069 } u_val; 00070 u_val.base = 0; 00071 u_val.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); 00072 u_val.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00073 u_val.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00074 u_val.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00075 this->val = u_val.real; 00076 offset += sizeof(this->val); 00077 return offset; 00078 } 00079 00080 virtual const char * getType(){ return "moveit_msgs/MoveItErrorCodes"; }; 00081 virtual const char * getMD5(){ return "aa336b18d80531f66439810112c0a43e"; }; 00082 00083 }; 00084 00085 } 00086 #endif
Generated on Mon Sep 26 2022 13:47:02 by
