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