00001
00002 #ifndef TRIANGLE_MESH_MSGS_MESSAGE_TRIANGLE_H
00003 #define TRIANGLE_MESH_MSGS_MESSAGE_TRIANGLE_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 triangle_mesh_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct Triangle_ : public ros::Message
00018 {
00019 typedef Triangle_<ContainerAllocator> Type;
00020
00021 Triangle_()
00022 : i(0)
00023 , j(0)
00024 , k(0)
00025 {
00026 }
00027
00028 Triangle_(const ContainerAllocator& _alloc)
00029 : i(0)
00030 , j(0)
00031 , k(0)
00032 {
00033 }
00034
00035 typedef int32_t _i_type;
00036 int32_t i;
00037
00038 typedef int32_t _j_type;
00039 int32_t j;
00040
00041 typedef int32_t _k_type;
00042 int32_t k;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "triangle_mesh_msgs/Triangle"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00049
00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00051
00052 private:
00053 static const char* __s_getMD5Sum_() { return "4e5bc1f7ab41ceb0f12378d17f3b763d"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getMessageDefinition_() { return "int32 i\n\
00061 int32 j\n\
00062 int32 k\n\
00063 \n\
00064 \n\
00065 \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, i);
00076 ros::serialization::serialize(stream, j);
00077 ros::serialization::serialize(stream, k);
00078 return stream.getData();
00079 }
00080
00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00082 {
00083 ros::serialization::IStream stream(read_ptr, 1000000000);
00084 ros::serialization::deserialize(stream, i);
00085 ros::serialization::deserialize(stream, j);
00086 ros::serialization::deserialize(stream, k);
00087 return stream.getData();
00088 }
00089
00090 ROS_DEPRECATED virtual uint32_t serializationLength() const
00091 {
00092 uint32_t size = 0;
00093 size += ros::serialization::serializationLength(i);
00094 size += ros::serialization::serializationLength(j);
00095 size += ros::serialization::serializationLength(k);
00096 return size;
00097 }
00098
00099 typedef boost::shared_ptr< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> > Ptr;
00100 typedef boost::shared_ptr< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> const> ConstPtr;
00101 };
00102 typedef ::triangle_mesh_msgs::Triangle_<std::allocator<void> > Triangle;
00103
00104 typedef boost::shared_ptr< ::triangle_mesh_msgs::Triangle> TrianglePtr;
00105 typedef boost::shared_ptr< ::triangle_mesh_msgs::Triangle const> TriangleConstPtr;
00106
00107
00108 template<typename ContainerAllocator>
00109 std::ostream& operator<<(std::ostream& s, const ::triangle_mesh_msgs::Triangle_<ContainerAllocator> & v)
00110 {
00111 ros::message_operations::Printer< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> >::stream(s, "", v);
00112 return s;}
00113
00114 }
00115
00116 namespace ros
00117 {
00118 namespace message_traits
00119 {
00120 template<class ContainerAllocator>
00121 struct MD5Sum< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> > {
00122 static const char* value()
00123 {
00124 return "4e5bc1f7ab41ceb0f12378d17f3b763d";
00125 }
00126
00127 static const char* value(const ::triangle_mesh_msgs::Triangle_<ContainerAllocator> &) { return value(); }
00128 static const uint64_t static_value1 = 0x4e5bc1f7ab41ceb0ULL;
00129 static const uint64_t static_value2 = 0xf12378d17f3b763dULL;
00130 };
00131
00132 template<class ContainerAllocator>
00133 struct DataType< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> > {
00134 static const char* value()
00135 {
00136 return "triangle_mesh_msgs/Triangle";
00137 }
00138
00139 static const char* value(const ::triangle_mesh_msgs::Triangle_<ContainerAllocator> &) { return value(); }
00140 };
00141
00142 template<class ContainerAllocator>
00143 struct Definition< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> > {
00144 static const char* value()
00145 {
00146 return "int32 i\n\
00147 int32 j\n\
00148 int32 k\n\
00149 \n\
00150 \n\
00151 \n\
00152 ";
00153 }
00154
00155 static const char* value(const ::triangle_mesh_msgs::Triangle_<ContainerAllocator> &) { return value(); }
00156 };
00157
00158 template<class ContainerAllocator> struct IsFixedSize< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> > : public TrueType {};
00159 }
00160 }
00161
00162 namespace ros
00163 {
00164 namespace serialization
00165 {
00166
00167 template<class ContainerAllocator> struct Serializer< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> >
00168 {
00169 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00170 {
00171 stream.next(m.i);
00172 stream.next(m.j);
00173 stream.next(m.k);
00174 }
00175
00176 ROS_DECLARE_ALLINONE_SERIALIZER;
00177 };
00178 }
00179 }
00180
00181 namespace ros
00182 {
00183 namespace message_operations
00184 {
00185
00186 template<class ContainerAllocator>
00187 struct Printer< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> >
00188 {
00189 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::triangle_mesh_msgs::Triangle_<ContainerAllocator> & v)
00190 {
00191 s << indent << "i: ";
00192 Printer<int32_t>::stream(s, indent + " ", v.i);
00193 s << indent << "j: ";
00194 Printer<int32_t>::stream(s, indent + " ", v.j);
00195 s << indent << "k: ";
00196 Printer<int32_t>::stream(s, indent + " ", v.k);
00197 }
00198 };
00199
00200
00201 }
00202 }
00203
00204 #endif // TRIANGLE_MESH_MSGS_MESSAGE_TRIANGLE_H
00205