00001
00002 #ifndef PCL_MESSAGE_VERTICES_H
00003 #define PCL_MESSAGE_VERTICES_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 pcl
00019 {
00020 template <class ContainerAllocator>
00021 struct Vertices_ {
00022 typedef Vertices_<ContainerAllocator> Type;
00023
00024 Vertices_()
00025 : vertices()
00026 {
00027 }
00028
00029 Vertices_(const ContainerAllocator& _alloc)
00030 : vertices(_alloc)
00031 {
00032 }
00033
00034 typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _vertices_type;
00035 std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > vertices;
00036
00037
00038 ROS_DEPRECATED uint32_t get_vertices_size() const { return (uint32_t)vertices.size(); }
00039 ROS_DEPRECATED void set_vertices_size(uint32_t size) { vertices.resize((size_t)size); }
00040 ROS_DEPRECATED void get_vertices_vec(std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) const { vec = this->vertices; }
00041 ROS_DEPRECATED void set_vertices_vec(const std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) { this->vertices = vec; }
00042 private:
00043 static const char* __s_getDataType_() { return "pcl/Vertices"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "39bd7b1c23763ddd1b882b97cb7cfe11"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "# List of point indices\n\
00058 uint32[] vertices\n\
00059 \n\
00060 "; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00063
00064 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00065
00066 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00067 {
00068 ros::serialization::OStream stream(write_ptr, 1000000000);
00069 ros::serialization::serialize(stream, vertices);
00070 return stream.getData();
00071 }
00072
00073 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00074 {
00075 ros::serialization::IStream stream(read_ptr, 1000000000);
00076 ros::serialization::deserialize(stream, vertices);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint32_t serializationLength() const
00081 {
00082 uint32_t size = 0;
00083 size += ros::serialization::serializationLength(vertices);
00084 return size;
00085 }
00086
00087 typedef boost::shared_ptr< ::pcl::Vertices_<ContainerAllocator> > Ptr;
00088 typedef boost::shared_ptr< ::pcl::Vertices_<ContainerAllocator> const> ConstPtr;
00089 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00090 };
00091 typedef ::pcl::Vertices_<std::allocator<void> > Vertices;
00092
00093 typedef boost::shared_ptr< ::pcl::Vertices> VerticesPtr;
00094 typedef boost::shared_ptr< ::pcl::Vertices const> VerticesConstPtr;
00095
00096
00097 template<typename ContainerAllocator>
00098 std::ostream& operator<<(std::ostream& s, const ::pcl::Vertices_<ContainerAllocator> & v)
00099 {
00100 ros::message_operations::Printer< ::pcl::Vertices_<ContainerAllocator> >::stream(s, "", v);
00101 return s;}
00102
00103 }
00104
00105 namespace ros
00106 {
00107 namespace message_traits
00108 {
00109 template<class ContainerAllocator> struct IsMessage< ::pcl::Vertices_<ContainerAllocator> > : public TrueType {};
00110 template<class ContainerAllocator> struct IsMessage< ::pcl::Vertices_<ContainerAllocator> const> : public TrueType {};
00111 template<class ContainerAllocator>
00112 struct MD5Sum< ::pcl::Vertices_<ContainerAllocator> > {
00113 static const char* value()
00114 {
00115 return "39bd7b1c23763ddd1b882b97cb7cfe11";
00116 }
00117
00118 static const char* value(const ::pcl::Vertices_<ContainerAllocator> &) { return value(); }
00119 static const uint64_t static_value1 = 0x39bd7b1c23763dddULL;
00120 static const uint64_t static_value2 = 0x1b882b97cb7cfe11ULL;
00121 };
00122
00123 template<class ContainerAllocator>
00124 struct DataType< ::pcl::Vertices_<ContainerAllocator> > {
00125 static const char* value()
00126 {
00127 return "pcl/Vertices";
00128 }
00129
00130 static const char* value(const ::pcl::Vertices_<ContainerAllocator> &) { return value(); }
00131 };
00132
00133 template<class ContainerAllocator>
00134 struct Definition< ::pcl::Vertices_<ContainerAllocator> > {
00135 static const char* value()
00136 {
00137 return "# List of point indices\n\
00138 uint32[] vertices\n\
00139 \n\
00140 ";
00141 }
00142
00143 static const char* value(const ::pcl::Vertices_<ContainerAllocator> &) { return value(); }
00144 };
00145
00146 }
00147 }
00148
00149 namespace ros
00150 {
00151 namespace serialization
00152 {
00153
00154 template<class ContainerAllocator> struct Serializer< ::pcl::Vertices_<ContainerAllocator> >
00155 {
00156 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00157 {
00158 stream.next(m.vertices);
00159 }
00160
00161 ROS_DECLARE_ALLINONE_SERIALIZER;
00162 };
00163 }
00164 }
00165
00166 namespace ros
00167 {
00168 namespace message_operations
00169 {
00170
00171 template<class ContainerAllocator>
00172 struct Printer< ::pcl::Vertices_<ContainerAllocator> >
00173 {
00174 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pcl::Vertices_<ContainerAllocator> & v)
00175 {
00176 s << indent << "vertices[]" << std::endl;
00177 for (size_t i = 0; i < v.vertices.size(); ++i)
00178 {
00179 s << indent << " vertices[" << i << "]: ";
00180 Printer<uint32_t>::stream(s, indent + " ", v.vertices[i]);
00181 }
00182 }
00183 };
00184
00185
00186 }
00187 }
00188
00189 #endif // PCL_MESSAGE_VERTICES_H
00190