$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_msgs/msg/GraspingErrorCodes.msg */ 00002 #ifndef SRS_MSGS_MESSAGE_GRASPINGERRORCODES_H 00003 #define SRS_MSGS_MESSAGE_GRASPINGERRORCODES_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 srs_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct GraspingErrorCodes_ { 00022 typedef GraspingErrorCodes_<ContainerAllocator> Type; 00023 00024 GraspingErrorCodes_() 00025 : val(0) 00026 { 00027 } 00028 00029 GraspingErrorCodes_(const ContainerAllocator& _alloc) 00030 : val(0) 00031 { 00032 } 00033 00034 typedef int32_t _val_type; 00035 int32_t val; 00036 00037 enum { SUCCESS = 1 }; 00038 enum { SERVICE_DID_NOT_PROCESS_REQUEST = -1 }; 00039 enum { UNKNOWN_OBJECT = -2 }; 00040 enum { CORRUPTED_MESH_FILE = -3 }; 00041 enum { CORRUPTED_ROBOT_MESH_FILE = -4 }; 00042 enum { CORRUPTED_GRASP_FILE = -5 }; 00043 enum { NON_GENERATED_INFO = -6 }; 00044 enum { OBJECT_INFO_NOT_FOUND = -7 }; 00045 enum { UNKNOWN_CATEGORY = -8 }; 00046 enum { GOAL_UNREACHABLE = -9 }; 00047 00048 private: 00049 static const char* __s_getDataType_() { return "srs_msgs/GraspingErrorCodes"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "fb4ddaa7ec6360421a2ce5489765a099"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "int32 val\n\ 00064 \n\ 00065 int32 SUCCESS=1\n\ 00066 int32 SERVICE_DID_NOT_PROCESS_REQUEST=-1\n\ 00067 int32 UNKNOWN_OBJECT=-2\n\ 00068 int32 CORRUPTED_MESH_FILE=-3\n\ 00069 int32 CORRUPTED_ROBOT_MESH_FILE=-4\n\ 00070 int32 CORRUPTED_GRASP_FILE=-5\n\ 00071 int32 NON_GENERATED_INFO=-6\n\ 00072 int32 OBJECT_INFO_NOT_FOUND=-7\n\ 00073 int32 UNKNOWN_CATEGORY=-8\n\ 00074 int32 GOAL_UNREACHABLE=-9\n\ 00075 \n\ 00076 "; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00083 { 00084 ros::serialization::OStream stream(write_ptr, 1000000000); 00085 ros::serialization::serialize(stream, val); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00090 { 00091 ros::serialization::IStream stream(read_ptr, 1000000000); 00092 ros::serialization::deserialize(stream, val); 00093 return stream.getData(); 00094 } 00095 00096 ROS_DEPRECATED virtual uint32_t serializationLength() const 00097 { 00098 uint32_t size = 0; 00099 size += ros::serialization::serializationLength(val); 00100 return size; 00101 } 00102 00103 typedef boost::shared_ptr< ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> > Ptr; 00104 typedef boost::shared_ptr< ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> const> ConstPtr; 00105 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00106 }; // struct GraspingErrorCodes 00107 typedef ::srs_msgs::GraspingErrorCodes_<std::allocator<void> > GraspingErrorCodes; 00108 00109 typedef boost::shared_ptr< ::srs_msgs::GraspingErrorCodes> GraspingErrorCodesPtr; 00110 typedef boost::shared_ptr< ::srs_msgs::GraspingErrorCodes const> GraspingErrorCodesConstPtr; 00111 00112 00113 template<typename ContainerAllocator> 00114 std::ostream& operator<<(std::ostream& s, const ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> & v) 00115 { 00116 ros::message_operations::Printer< ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> >::stream(s, "", v); 00117 return s;} 00118 00119 } // namespace srs_msgs 00120 00121 namespace ros 00122 { 00123 namespace message_traits 00124 { 00125 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> > : public TrueType {}; 00126 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> const> : public TrueType {}; 00127 template<class ContainerAllocator> 00128 struct MD5Sum< ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> > { 00129 static const char* value() 00130 { 00131 return "fb4ddaa7ec6360421a2ce5489765a099"; 00132 } 00133 00134 static const char* value(const ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> &) { return value(); } 00135 static const uint64_t static_value1 = 0xfb4ddaa7ec636042ULL; 00136 static const uint64_t static_value2 = 0x1a2ce5489765a099ULL; 00137 }; 00138 00139 template<class ContainerAllocator> 00140 struct DataType< ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> > { 00141 static const char* value() 00142 { 00143 return "srs_msgs/GraspingErrorCodes"; 00144 } 00145 00146 static const char* value(const ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> &) { return value(); } 00147 }; 00148 00149 template<class ContainerAllocator> 00150 struct Definition< ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "int32 val\n\ 00154 \n\ 00155 int32 SUCCESS=1\n\ 00156 int32 SERVICE_DID_NOT_PROCESS_REQUEST=-1\n\ 00157 int32 UNKNOWN_OBJECT=-2\n\ 00158 int32 CORRUPTED_MESH_FILE=-3\n\ 00159 int32 CORRUPTED_ROBOT_MESH_FILE=-4\n\ 00160 int32 CORRUPTED_GRASP_FILE=-5\n\ 00161 int32 NON_GENERATED_INFO=-6\n\ 00162 int32 OBJECT_INFO_NOT_FOUND=-7\n\ 00163 int32 UNKNOWN_CATEGORY=-8\n\ 00164 int32 GOAL_UNREACHABLE=-9\n\ 00165 \n\ 00166 "; 00167 } 00168 00169 static const char* value(const ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> &) { return value(); } 00170 }; 00171 00172 template<class ContainerAllocator> struct IsFixedSize< ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> > : public TrueType {}; 00173 } // namespace message_traits 00174 } // namespace ros 00175 00176 namespace ros 00177 { 00178 namespace serialization 00179 { 00180 00181 template<class ContainerAllocator> struct Serializer< ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> > 00182 { 00183 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00184 { 00185 stream.next(m.val); 00186 } 00187 00188 ROS_DECLARE_ALLINONE_SERIALIZER; 00189 }; // struct GraspingErrorCodes_ 00190 } // namespace serialization 00191 } // namespace ros 00192 00193 namespace ros 00194 { 00195 namespace message_operations 00196 { 00197 00198 template<class ContainerAllocator> 00199 struct Printer< ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> > 00200 { 00201 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> & v) 00202 { 00203 s << indent << "val: "; 00204 Printer<int32_t>::stream(s, indent + " ", v.val); 00205 } 00206 }; 00207 00208 00209 } // namespace message_operations 00210 } // namespace ros 00211 00212 #endif // SRS_MSGS_MESSAGE_GRASPINGERRORCODES_H 00213