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