$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-geometry_experimental/doc_stacks/2013-03-05_11-55-48.510119/geometry_experimental/tf2_msgs/msg/TF2Error.msg */ 00002 #ifndef TF2_MSGS_MESSAGE_TF2ERROR_H 00003 #define TF2_MSGS_MESSAGE_TF2ERROR_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 tf2_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct TF2Error_ { 00022 typedef TF2Error_<ContainerAllocator> Type; 00023 00024 TF2Error_() 00025 : error(0) 00026 , error_string() 00027 { 00028 } 00029 00030 TF2Error_(const ContainerAllocator& _alloc) 00031 : error(0) 00032 , error_string(_alloc) 00033 { 00034 } 00035 00036 typedef uint8_t _error_type; 00037 uint8_t error; 00038 00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _error_string_type; 00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > error_string; 00041 00042 enum { NO_ERROR = 0 }; 00043 enum { LOOKUP_ERROR = 1 }; 00044 enum { CONNECTIVITY_ERROR = 2 }; 00045 enum { EXTRAPOLATION_ERROR = 3 }; 00046 enum { INVALID_ARGUMENT_ERROR = 4 }; 00047 enum { TIMEOUT_ERROR = 5 }; 00048 enum { TRANSFORM_ERROR = 6 }; 00049 00050 private: 00051 static const char* __s_getDataType_() { return "tf2_msgs/TF2Error"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00054 00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00056 00057 private: 00058 static const char* __s_getMD5Sum_() { return "bc6848fd6fd750c92e38575618a4917d"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "uint8 NO_ERROR = 0\n\ 00066 uint8 LOOKUP_ERROR = 1\n\ 00067 uint8 CONNECTIVITY_ERROR = 2\n\ 00068 uint8 EXTRAPOLATION_ERROR = 3\n\ 00069 uint8 INVALID_ARGUMENT_ERROR = 4\n\ 00070 uint8 TIMEOUT_ERROR = 5\n\ 00071 uint8 TRANSFORM_ERROR = 6\n\ 00072 \n\ 00073 uint8 error\n\ 00074 string error_string\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, error); 00086 ros::serialization::serialize(stream, error_string); 00087 return stream.getData(); 00088 } 00089 00090 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00091 { 00092 ros::serialization::IStream stream(read_ptr, 1000000000); 00093 ros::serialization::deserialize(stream, error); 00094 ros::serialization::deserialize(stream, error_string); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint32_t serializationLength() const 00099 { 00100 uint32_t size = 0; 00101 size += ros::serialization::serializationLength(error); 00102 size += ros::serialization::serializationLength(error_string); 00103 return size; 00104 } 00105 00106 typedef boost::shared_ptr< ::tf2_msgs::TF2Error_<ContainerAllocator> > Ptr; 00107 typedef boost::shared_ptr< ::tf2_msgs::TF2Error_<ContainerAllocator> const> ConstPtr; 00108 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00109 }; // struct TF2Error 00110 typedef ::tf2_msgs::TF2Error_<std::allocator<void> > TF2Error; 00111 00112 typedef boost::shared_ptr< ::tf2_msgs::TF2Error> TF2ErrorPtr; 00113 typedef boost::shared_ptr< ::tf2_msgs::TF2Error const> TF2ErrorConstPtr; 00114 00115 00116 template<typename ContainerAllocator> 00117 std::ostream& operator<<(std::ostream& s, const ::tf2_msgs::TF2Error_<ContainerAllocator> & v) 00118 { 00119 ros::message_operations::Printer< ::tf2_msgs::TF2Error_<ContainerAllocator> >::stream(s, "", v); 00120 return s;} 00121 00122 } // namespace tf2_msgs 00123 00124 namespace ros 00125 { 00126 namespace message_traits 00127 { 00128 template<class ContainerAllocator> struct IsMessage< ::tf2_msgs::TF2Error_<ContainerAllocator> > : public TrueType {}; 00129 template<class ContainerAllocator> struct IsMessage< ::tf2_msgs::TF2Error_<ContainerAllocator> const> : public TrueType {}; 00130 template<class ContainerAllocator> 00131 struct MD5Sum< ::tf2_msgs::TF2Error_<ContainerAllocator> > { 00132 static const char* value() 00133 { 00134 return "bc6848fd6fd750c92e38575618a4917d"; 00135 } 00136 00137 static const char* value(const ::tf2_msgs::TF2Error_<ContainerAllocator> &) { return value(); } 00138 static const uint64_t static_value1 = 0xbc6848fd6fd750c9ULL; 00139 static const uint64_t static_value2 = 0x2e38575618a4917dULL; 00140 }; 00141 00142 template<class ContainerAllocator> 00143 struct DataType< ::tf2_msgs::TF2Error_<ContainerAllocator> > { 00144 static const char* value() 00145 { 00146 return "tf2_msgs/TF2Error"; 00147 } 00148 00149 static const char* value(const ::tf2_msgs::TF2Error_<ContainerAllocator> &) { return value(); } 00150 }; 00151 00152 template<class ContainerAllocator> 00153 struct Definition< ::tf2_msgs::TF2Error_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "uint8 NO_ERROR = 0\n\ 00157 uint8 LOOKUP_ERROR = 1\n\ 00158 uint8 CONNECTIVITY_ERROR = 2\n\ 00159 uint8 EXTRAPOLATION_ERROR = 3\n\ 00160 uint8 INVALID_ARGUMENT_ERROR = 4\n\ 00161 uint8 TIMEOUT_ERROR = 5\n\ 00162 uint8 TRANSFORM_ERROR = 6\n\ 00163 \n\ 00164 uint8 error\n\ 00165 string error_string\n\ 00166 \n\ 00167 "; 00168 } 00169 00170 static const char* value(const ::tf2_msgs::TF2Error_<ContainerAllocator> &) { return value(); } 00171 }; 00172 00173 } // namespace message_traits 00174 } // namespace ros 00175 00176 namespace ros 00177 { 00178 namespace serialization 00179 { 00180 00181 template<class ContainerAllocator> struct Serializer< ::tf2_msgs::TF2Error_<ContainerAllocator> > 00182 { 00183 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00184 { 00185 stream.next(m.error); 00186 stream.next(m.error_string); 00187 } 00188 00189 ROS_DECLARE_ALLINONE_SERIALIZER; 00190 }; // struct TF2Error_ 00191 } // namespace serialization 00192 } // namespace ros 00193 00194 namespace ros 00195 { 00196 namespace message_operations 00197 { 00198 00199 template<class ContainerAllocator> 00200 struct Printer< ::tf2_msgs::TF2Error_<ContainerAllocator> > 00201 { 00202 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::tf2_msgs::TF2Error_<ContainerAllocator> & v) 00203 { 00204 s << indent << "error: "; 00205 Printer<uint8_t>::stream(s, indent + " ", v.error); 00206 s << indent << "error_string: "; 00207 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.error_string); 00208 } 00209 }; 00210 00211 00212 } // namespace message_operations 00213 } // namespace ros 00214 00215 #endif // TF2_MSGS_MESSAGE_TF2ERROR_H 00216