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