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