00001
00002 #ifndef PCL_MESSAGE_POINTINDICES_H
00003 #define PCL_MESSAGE_POINTINDICES_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 #include "std_msgs/Header.h"
00018
00019 namespace pcl
00020 {
00021 template <class ContainerAllocator>
00022 struct PointIndices_ {
00023 typedef PointIndices_<ContainerAllocator> Type;
00024
00025 PointIndices_()
00026 : header()
00027 , indices()
00028 {
00029 }
00030
00031 PointIndices_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , indices(_alloc)
00034 {
00035 }
00036
00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00038 ::std_msgs::Header_<ContainerAllocator> header;
00039
00040 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _indices_type;
00041 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > indices;
00042
00043
00044 ROS_DEPRECATED uint32_t get_indices_size() const { return (uint32_t)indices.size(); }
00045 ROS_DEPRECATED void set_indices_size(uint32_t size) { indices.resize((size_t)size); }
00046 ROS_DEPRECATED void get_indices_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->indices; }
00047 ROS_DEPRECATED void set_indices_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->indices = vec; }
00048 private:
00049 static const char* __s_getDataType_() { return "pcl/PointIndices"; }
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 "458c7998b7eaf99908256472e273b3d4"; }
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 "Header header\n\
00064 int32[] indices\n\
00065 \n\
00066 \n\
00067 ================================================================================\n\
00068 MSG: std_msgs/Header\n\
00069 # Standard metadata for higher-level stamped data types.\n\
00070 # This is generally used to communicate timestamped data \n\
00071 # in a particular coordinate frame.\n\
00072 # \n\
00073 # sequence ID: consecutively increasing ID \n\
00074 uint32 seq\n\
00075 #Two-integer timestamp that is expressed as:\n\
00076 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00077 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00078 # time-handling sugar is provided by the client library\n\
00079 time stamp\n\
00080 #Frame this data is associated with\n\
00081 # 0: no frame\n\
00082 # 1: global frame\n\
00083 string frame_id\n\
00084 \n\
00085 "; }
00086 public:
00087 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00088
00089 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00090
00091 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00092 {
00093 ros::serialization::OStream stream(write_ptr, 1000000000);
00094 ros::serialization::serialize(stream, header);
00095 ros::serialization::serialize(stream, indices);
00096 return stream.getData();
00097 }
00098
00099 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00100 {
00101 ros::serialization::IStream stream(read_ptr, 1000000000);
00102 ros::serialization::deserialize(stream, header);
00103 ros::serialization::deserialize(stream, indices);
00104 return stream.getData();
00105 }
00106
00107 ROS_DEPRECATED virtual uint32_t serializationLength() const
00108 {
00109 uint32_t size = 0;
00110 size += ros::serialization::serializationLength(header);
00111 size += ros::serialization::serializationLength(indices);
00112 return size;
00113 }
00114
00115 typedef boost::shared_ptr< ::pcl::PointIndices_<ContainerAllocator> > Ptr;
00116 typedef boost::shared_ptr< ::pcl::PointIndices_<ContainerAllocator> const> ConstPtr;
00117 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00118 };
00119 typedef ::pcl::PointIndices_<std::allocator<void> > PointIndices;
00120
00121 typedef boost::shared_ptr< ::pcl::PointIndices> PointIndicesPtr;
00122 typedef boost::shared_ptr< ::pcl::PointIndices const> PointIndicesConstPtr;
00123
00124
00125 template<typename ContainerAllocator>
00126 std::ostream& operator<<(std::ostream& s, const ::pcl::PointIndices_<ContainerAllocator> & v)
00127 {
00128 ros::message_operations::Printer< ::pcl::PointIndices_<ContainerAllocator> >::stream(s, "", v);
00129 return s;}
00130
00131 }
00132
00133 namespace ros
00134 {
00135 namespace message_traits
00136 {
00137 template<class ContainerAllocator> struct IsMessage< ::pcl::PointIndices_<ContainerAllocator> > : public TrueType {};
00138 template<class ContainerAllocator> struct IsMessage< ::pcl::PointIndices_<ContainerAllocator> const> : public TrueType {};
00139 template<class ContainerAllocator>
00140 struct MD5Sum< ::pcl::PointIndices_<ContainerAllocator> > {
00141 static const char* value()
00142 {
00143 return "458c7998b7eaf99908256472e273b3d4";
00144 }
00145
00146 static const char* value(const ::pcl::PointIndices_<ContainerAllocator> &) { return value(); }
00147 static const uint64_t static_value1 = 0x458c7998b7eaf999ULL;
00148 static const uint64_t static_value2 = 0x08256472e273b3d4ULL;
00149 };
00150
00151 template<class ContainerAllocator>
00152 struct DataType< ::pcl::PointIndices_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "pcl/PointIndices";
00156 }
00157
00158 static const char* value(const ::pcl::PointIndices_<ContainerAllocator> &) { return value(); }
00159 };
00160
00161 template<class ContainerAllocator>
00162 struct Definition< ::pcl::PointIndices_<ContainerAllocator> > {
00163 static const char* value()
00164 {
00165 return "Header header\n\
00166 int32[] indices\n\
00167 \n\
00168 \n\
00169 ================================================================================\n\
00170 MSG: std_msgs/Header\n\
00171 # Standard metadata for higher-level stamped data types.\n\
00172 # This is generally used to communicate timestamped data \n\
00173 # in a particular coordinate frame.\n\
00174 # \n\
00175 # sequence ID: consecutively increasing ID \n\
00176 uint32 seq\n\
00177 #Two-integer timestamp that is expressed as:\n\
00178 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00179 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00180 # time-handling sugar is provided by the client library\n\
00181 time stamp\n\
00182 #Frame this data is associated with\n\
00183 # 0: no frame\n\
00184 # 1: global frame\n\
00185 string frame_id\n\
00186 \n\
00187 ";
00188 }
00189
00190 static const char* value(const ::pcl::PointIndices_<ContainerAllocator> &) { return value(); }
00191 };
00192
00193 template<class ContainerAllocator> struct HasHeader< ::pcl::PointIndices_<ContainerAllocator> > : public TrueType {};
00194 template<class ContainerAllocator> struct HasHeader< const ::pcl::PointIndices_<ContainerAllocator> > : public TrueType {};
00195 }
00196 }
00197
00198 namespace ros
00199 {
00200 namespace serialization
00201 {
00202
00203 template<class ContainerAllocator> struct Serializer< ::pcl::PointIndices_<ContainerAllocator> >
00204 {
00205 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00206 {
00207 stream.next(m.header);
00208 stream.next(m.indices);
00209 }
00210
00211 ROS_DECLARE_ALLINONE_SERIALIZER;
00212 };
00213 }
00214 }
00215
00216 namespace ros
00217 {
00218 namespace message_operations
00219 {
00220
00221 template<class ContainerAllocator>
00222 struct Printer< ::pcl::PointIndices_<ContainerAllocator> >
00223 {
00224 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pcl::PointIndices_<ContainerAllocator> & v)
00225 {
00226 s << indent << "header: ";
00227 s << std::endl;
00228 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00229 s << indent << "indices[]" << std::endl;
00230 for (size_t i = 0; i < v.indices.size(); ++i)
00231 {
00232 s << indent << " indices[" << i << "]: ";
00233 Printer<int32_t>::stream(s, indent + " ", v.indices[i]);
00234 }
00235 }
00236 };
00237
00238
00239 }
00240 }
00241
00242 #endif // PCL_MESSAGE_POINTINDICES_H
00243