00001
00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPPLANNINGERRORCODE_H
00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPPLANNINGERRORCODE_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 object_manipulation_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct GraspPlanningErrorCode_ : public ros::Message
00018 {
00019 typedef GraspPlanningErrorCode_<ContainerAllocator> Type;
00020
00021 GraspPlanningErrorCode_()
00022 : value(0)
00023 {
00024 }
00025
00026 GraspPlanningErrorCode_(const ContainerAllocator& _alloc)
00027 : value(0)
00028 {
00029 }
00030
00031 typedef int32_t _value_type;
00032 int32_t value;
00033
00034 enum { SUCCESS = 0 };
00035 enum { TF_ERROR = 1 };
00036 enum { OTHER_ERROR = 2 };
00037
00038 private:
00039 static const char* __s_getDataType_() { return "object_manipulation_msgs/GraspPlanningErrorCode"; }
00040 public:
00041 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00042
00043 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00044
00045 private:
00046 static const char* __s_getMD5Sum_() { return "d0cbf262cc3d8075a46b994eef1bdb2a"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00049
00050 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00051
00052 private:
00053 static const char* __s_getMessageDefinition_() { return "# Error codes for grasp and place planning\n\
00054 \n\
00055 # plan completed as expected\n\
00056 int32 SUCCESS = 0\n\
00057 \n\
00058 # tf error encountered while transforming\n\
00059 int32 TF_ERROR = 1 \n\
00060 \n\
00061 # some other error\n\
00062 int32 OTHER_ERROR = 2\n\
00063 \n\
00064 # the actual value of this error code\n\
00065 int32 value\n\
00066 "; }
00067 public:
00068 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00073 {
00074 ros::serialization::OStream stream(write_ptr, 1000000000);
00075 ros::serialization::serialize(stream, value);
00076 return stream.getData();
00077 }
00078
00079 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00080 {
00081 ros::serialization::IStream stream(read_ptr, 1000000000);
00082 ros::serialization::deserialize(stream, value);
00083 return stream.getData();
00084 }
00085
00086 ROS_DEPRECATED virtual uint32_t serializationLength() const
00087 {
00088 uint32_t size = 0;
00089 size += ros::serialization::serializationLength(value);
00090 return size;
00091 }
00092
00093 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> > Ptr;
00094 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> const> ConstPtr;
00095 };
00096 typedef ::object_manipulation_msgs::GraspPlanningErrorCode_<std::allocator<void> > GraspPlanningErrorCode;
00097
00098 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspPlanningErrorCode> GraspPlanningErrorCodePtr;
00099 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspPlanningErrorCode const> GraspPlanningErrorCodeConstPtr;
00100
00101
00102 template<typename ContainerAllocator>
00103 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> & v)
00104 {
00105 ros::message_operations::Printer< ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> >::stream(s, "", v);
00106 return s;}
00107
00108 }
00109
00110 namespace ros
00111 {
00112 namespace message_traits
00113 {
00114 template<class ContainerAllocator>
00115 struct MD5Sum< ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "d0cbf262cc3d8075a46b994eef1bdb2a";
00119 }
00120
00121 static const char* value(const ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0xd0cbf262cc3d8075ULL;
00123 static const uint64_t static_value2 = 0xa46b994eef1bdb2aULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "object_manipulation_msgs/GraspPlanningErrorCode";
00131 }
00132
00133 static const char* value(const ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "# Error codes for grasp and place planning\n\
00141 \n\
00142 # plan completed as expected\n\
00143 int32 SUCCESS = 0\n\
00144 \n\
00145 # tf error encountered while transforming\n\
00146 int32 TF_ERROR = 1 \n\
00147 \n\
00148 # some other error\n\
00149 int32 OTHER_ERROR = 2\n\
00150 \n\
00151 # the actual value of this error code\n\
00152 int32 value\n\
00153 ";
00154 }
00155
00156 static const char* value(const ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> &) { return value(); }
00157 };
00158
00159 template<class ContainerAllocator> struct IsFixedSize< ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> > : public TrueType {};
00160 }
00161 }
00162
00163 namespace ros
00164 {
00165 namespace serialization
00166 {
00167
00168 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> >
00169 {
00170 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00171 {
00172 stream.next(m.value);
00173 }
00174
00175 ROS_DECLARE_ALLINONE_SERIALIZER;
00176 };
00177 }
00178 }
00179
00180 namespace ros
00181 {
00182 namespace message_operations
00183 {
00184
00185 template<class ContainerAllocator>
00186 struct Printer< ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> >
00187 {
00188 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::GraspPlanningErrorCode_<ContainerAllocator> & v)
00189 {
00190 s << indent << "value: ";
00191 Printer<int32_t>::stream(s, indent + " ", v.value);
00192 }
00193 };
00194
00195
00196 }
00197 }
00198
00199 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPPLANNINGERRORCODE_H
00200