00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_MOTIONPLANNINGERRORCODE_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_MOTIONPLANNINGERRORCODE_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace motion_planning_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct MotionPlanningErrorCode_ : public ros::Message
00018 {
00019 typedef MotionPlanningErrorCode_<ContainerAllocator> Type;
00020
00021 MotionPlanningErrorCode_()
00022 : val(0)
00023 {
00024 }
00025
00026 MotionPlanningErrorCode_(const ContainerAllocator& _alloc)
00027 : val(0)
00028 {
00029 }
00030
00031 typedef int32_t _val_type;
00032 int32_t val;
00033
00034 enum { PLANNING_FAILED = 0 };
00035 enum { SUCCESS = 1 };
00036 enum { TIMED_OUT = -1 };
00037 enum { START_STATE_IN_COLLISION = -2 };
00038 enum { START_STATE_VIOLATES_PATH_CONSTRAINTS = -3 };
00039 enum { GOAL_IN_COLLISION = -4 };
00040 enum { GOAL_VIOLATES_PATH_CONSTRAINTS = -5 };
00041 enum { INVALID_ROBOT_STATE = -6 };
00042 enum { INCOMPLETE_ROBOT_STATE = -25 };
00043 enum { INVALID_PLANNER_ID = -7 };
00044 enum { INVALID_NUM_PLANNING_ATTEMPTS = -8 };
00045 enum { INVALID_ALLOWED_PLANNING_TIME = -9 };
00046 enum { INVALID_GROUP_NAME = -10 };
00047 enum { INVALID_GOAL_JOINT_CONSTRAINTS = -11 };
00048 enum { INVALID_GOAL_POSITION_CONSTRAINTS = -12 };
00049 enum { INVALID_GOAL_ORIENTATION_CONSTRAINTS = -13 };
00050 enum { INVALID_PATH_JOINT_CONSTRAINTS = -14 };
00051 enum { INVALID_PATH_POSITION_CONSTRAINTS = -15 };
00052 enum { INVALID_PATH_ORIENTATION_CONSTRAINTS = -16 };
00053 enum { INVALID_TRAJECTORY = -17 };
00054 enum { INVALID_INDEX = -18 };
00055 enum { JOINT_LIMITS_VIOLATED = -19 };
00056 enum { PATH_CONSTRAINTS_VIOLATED = -20 };
00057 enum { COLLISION_CONSTRAINTS_VIOLATED = -21 };
00058 enum { GOAL_CONSTRAINTS_VIOLATED = -22 };
00059 enum { JOINTS_NOT_MOVING = -26 };
00060 enum { FRAME_TRANSFORM_FAILURE = -23 };
00061 enum { COLLISION_CHECKING_UNAVAILABLE = -24 };
00062 enum { ROBOT_STATE_STALE = -27 };
00063 enum { SENSOR_INFO_STALE = -28 };
00064
00065 private:
00066 static const char* __s_getDataType_() { return "motion_planning_msgs/MotionPlanningErrorCode"; }
00067 public:
00068 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00069
00070 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00071
00072 private:
00073 static const char* __s_getMD5Sum_() { return "7aa29ff813407612e35f4294706b2181"; }
00074 public:
00075 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00076
00077 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00078
00079 private:
00080 static const char* __s_getMessageDefinition_() { return "int32 val\n\
00081 \n\
00082 # overall behavior\n\
00083 int32 PLANNING_FAILED=0\n\
00084 int32 SUCCESS=1\n\
00085 int32 TIMED_OUT=-1\n\
00086 \n\
00087 # start state errors\n\
00088 int32 START_STATE_IN_COLLISION=-2\n\
00089 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-3\n\
00090 \n\
00091 # goal errors\n\
00092 int32 GOAL_IN_COLLISION=-4\n\
00093 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-5\n\
00094 \n\
00095 # robot state\n\
00096 int32 INVALID_ROBOT_STATE=-6\n\
00097 int32 INCOMPLETE_ROBOT_STATE=-25\n\
00098 \n\
00099 # planning request errors\n\
00100 int32 INVALID_PLANNER_ID=-7\n\
00101 int32 INVALID_NUM_PLANNING_ATTEMPTS=-8\n\
00102 int32 INVALID_ALLOWED_PLANNING_TIME=-9\n\
00103 int32 INVALID_GROUP_NAME=-10\n\
00104 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-11\n\
00105 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-12\n\
00106 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-13\n\
00107 int32 INVALID_PATH_JOINT_CONSTRAINTS=-14\n\
00108 int32 INVALID_PATH_POSITION_CONSTRAINTS=-15\n\
00109 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-16\n\
00110 \n\
00111 # state/trajectory monitor errors\n\
00112 int32 INVALID_TRAJECTORY=-17\n\
00113 int32 INVALID_INDEX=-18\n\
00114 int32 JOINT_LIMITS_VIOLATED=-19\n\
00115 int32 PATH_CONSTRAINTS_VIOLATED=-20\n\
00116 int32 COLLISION_CONSTRAINTS_VIOLATED=-21\n\
00117 int32 GOAL_CONSTRAINTS_VIOLATED=-22\n\
00118 int32 JOINTS_NOT_MOVING=-26\n\
00119 \n\
00120 # system errors\n\
00121 int32 FRAME_TRANSFORM_FAILURE=-23\n\
00122 int32 COLLISION_CHECKING_UNAVAILABLE=-24\n\
00123 int32 ROBOT_STATE_STALE=-27\n\
00124 int32 SENSOR_INFO_STALE=-28\n\
00125 "; }
00126 public:
00127 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00128
00129 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00130
00131 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00132 {
00133 ros::serialization::OStream stream(write_ptr, 1000000000);
00134 ros::serialization::serialize(stream, val);
00135 return stream.getData();
00136 }
00137
00138 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00139 {
00140 ros::serialization::IStream stream(read_ptr, 1000000000);
00141 ros::serialization::deserialize(stream, val);
00142 return stream.getData();
00143 }
00144
00145 ROS_DEPRECATED virtual uint32_t serializationLength() const
00146 {
00147 uint32_t size = 0;
00148 size += ros::serialization::serializationLength(val);
00149 return size;
00150 }
00151
00152 typedef boost::shared_ptr< ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> > Ptr;
00153 typedef boost::shared_ptr< ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> const> ConstPtr;
00154 };
00155 typedef ::motion_planning_msgs::MotionPlanningErrorCode_<std::allocator<void> > MotionPlanningErrorCode;
00156
00157 typedef boost::shared_ptr< ::motion_planning_msgs::MotionPlanningErrorCode> MotionPlanningErrorCodePtr;
00158 typedef boost::shared_ptr< ::motion_planning_msgs::MotionPlanningErrorCode const> MotionPlanningErrorCodeConstPtr;
00159
00160
00161 template<typename ContainerAllocator>
00162 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> & v)
00163 {
00164 ros::message_operations::Printer< ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> >::stream(s, "", v);
00165 return s;}
00166
00167 }
00168
00169 namespace ros
00170 {
00171 namespace message_traits
00172 {
00173 template<class ContainerAllocator>
00174 struct MD5Sum< ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> > {
00175 static const char* value()
00176 {
00177 return "7aa29ff813407612e35f4294706b2181";
00178 }
00179
00180 static const char* value(const ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> &) { return value(); }
00181 static const uint64_t static_value1 = 0x7aa29ff813407612ULL;
00182 static const uint64_t static_value2 = 0xe35f4294706b2181ULL;
00183 };
00184
00185 template<class ContainerAllocator>
00186 struct DataType< ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> > {
00187 static const char* value()
00188 {
00189 return "motion_planning_msgs/MotionPlanningErrorCode";
00190 }
00191
00192 static const char* value(const ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> &) { return value(); }
00193 };
00194
00195 template<class ContainerAllocator>
00196 struct Definition< ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> > {
00197 static const char* value()
00198 {
00199 return "int32 val\n\
00200 \n\
00201 # overall behavior\n\
00202 int32 PLANNING_FAILED=0\n\
00203 int32 SUCCESS=1\n\
00204 int32 TIMED_OUT=-1\n\
00205 \n\
00206 # start state errors\n\
00207 int32 START_STATE_IN_COLLISION=-2\n\
00208 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-3\n\
00209 \n\
00210 # goal errors\n\
00211 int32 GOAL_IN_COLLISION=-4\n\
00212 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-5\n\
00213 \n\
00214 # robot state\n\
00215 int32 INVALID_ROBOT_STATE=-6\n\
00216 int32 INCOMPLETE_ROBOT_STATE=-25\n\
00217 \n\
00218 # planning request errors\n\
00219 int32 INVALID_PLANNER_ID=-7\n\
00220 int32 INVALID_NUM_PLANNING_ATTEMPTS=-8\n\
00221 int32 INVALID_ALLOWED_PLANNING_TIME=-9\n\
00222 int32 INVALID_GROUP_NAME=-10\n\
00223 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-11\n\
00224 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-12\n\
00225 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-13\n\
00226 int32 INVALID_PATH_JOINT_CONSTRAINTS=-14\n\
00227 int32 INVALID_PATH_POSITION_CONSTRAINTS=-15\n\
00228 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-16\n\
00229 \n\
00230 # state/trajectory monitor errors\n\
00231 int32 INVALID_TRAJECTORY=-17\n\
00232 int32 INVALID_INDEX=-18\n\
00233 int32 JOINT_LIMITS_VIOLATED=-19\n\
00234 int32 PATH_CONSTRAINTS_VIOLATED=-20\n\
00235 int32 COLLISION_CONSTRAINTS_VIOLATED=-21\n\
00236 int32 GOAL_CONSTRAINTS_VIOLATED=-22\n\
00237 int32 JOINTS_NOT_MOVING=-26\n\
00238 \n\
00239 # system errors\n\
00240 int32 FRAME_TRANSFORM_FAILURE=-23\n\
00241 int32 COLLISION_CHECKING_UNAVAILABLE=-24\n\
00242 int32 ROBOT_STATE_STALE=-27\n\
00243 int32 SENSOR_INFO_STALE=-28\n\
00244 ";
00245 }
00246
00247 static const char* value(const ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> &) { return value(); }
00248 };
00249
00250 template<class ContainerAllocator> struct IsFixedSize< ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> > : public TrueType {};
00251 }
00252 }
00253
00254 namespace ros
00255 {
00256 namespace serialization
00257 {
00258
00259 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> >
00260 {
00261 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00262 {
00263 stream.next(m.val);
00264 }
00265
00266 ROS_DECLARE_ALLINONE_SERIALIZER;
00267 };
00268 }
00269 }
00270
00271 namespace ros
00272 {
00273 namespace message_operations
00274 {
00275
00276 template<class ContainerAllocator>
00277 struct Printer< ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> >
00278 {
00279 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::MotionPlanningErrorCode_<ContainerAllocator> & v)
00280 {
00281 s << indent << "val: ";
00282 Printer<int32_t>::stream(s, indent + " ", v.val);
00283 }
00284 };
00285
00286
00287 }
00288 }
00289
00290 #endif // MOTION_PLANNING_MSGS_MESSAGE_MOTIONPLANNINGERRORCODE_H
00291