Go to the documentation of this file.00001
00002 #ifndef JSK_PERCEPTION_MESSAGE_CLUSTERPOINTINDICES_H
00003 #define JSK_PERCEPTION_MESSAGE_CLUSTERPOINTINDICES_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 "pcl/PointIndices.h"
00018
00019 namespace jsk_perception
00020 {
00021 template <class ContainerAllocator>
00022 struct ClusterPointIndices_ {
00023 typedef ClusterPointIndices_<ContainerAllocator> Type;
00024
00025 ClusterPointIndices_()
00026 : cluster_indices()
00027 {
00028 }
00029
00030 ClusterPointIndices_(const ContainerAllocator& _alloc)
00031 : cluster_indices(_alloc)
00032 {
00033 }
00034
00035 typedef std::vector< ::pcl::PointIndices_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pcl::PointIndices_<ContainerAllocator> >::other > _cluster_indices_type;
00036 std::vector< ::pcl::PointIndices_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pcl::PointIndices_<ContainerAllocator> >::other > cluster_indices;
00037
00038
00039 typedef boost::shared_ptr< ::jsk_perception::ClusterPointIndices_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::jsk_perception::ClusterPointIndices_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::jsk_perception::ClusterPointIndices_<std::allocator<void> > ClusterPointIndices;
00044
00045 typedef boost::shared_ptr< ::jsk_perception::ClusterPointIndices> ClusterPointIndicesPtr;
00046 typedef boost::shared_ptr< ::jsk_perception::ClusterPointIndices const> ClusterPointIndicesConstPtr;
00047
00048
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const ::jsk_perception::ClusterPointIndices_<ContainerAllocator> & v)
00051 {
00052 ros::message_operations::Printer< ::jsk_perception::ClusterPointIndices_<ContainerAllocator> >::stream(s, "", v);
00053 return s;}
00054
00055 }
00056
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::jsk_perception::ClusterPointIndices_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::jsk_perception::ClusterPointIndices_<ContainerAllocator> const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::jsk_perception::ClusterPointIndices_<ContainerAllocator> > {
00065 static const char* value()
00066 {
00067 return "470faf76178d49ae75888f8f7e5c9707";
00068 }
00069
00070 static const char* value(const ::jsk_perception::ClusterPointIndices_<ContainerAllocator> &) { return value(); }
00071 static const uint64_t static_value1 = 0x470faf76178d49aeULL;
00072 static const uint64_t static_value2 = 0x75888f8f7e5c9707ULL;
00073 };
00074
00075 template<class ContainerAllocator>
00076 struct DataType< ::jsk_perception::ClusterPointIndices_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "jsk_perception/ClusterPointIndices";
00080 }
00081
00082 static const char* value(const ::jsk_perception::ClusterPointIndices_<ContainerAllocator> &) { return value(); }
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct Definition< ::jsk_perception::ClusterPointIndices_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "pcl/PointIndices[] cluster_indices \n\
00090 ================================================================================\n\
00091 MSG: pcl/PointIndices\n\
00092 Header header\n\
00093 int32[] indices\n\
00094 \n\
00095 \n\
00096 ================================================================================\n\
00097 MSG: std_msgs/Header\n\
00098 # Standard metadata for higher-level stamped data types.\n\
00099 # This is generally used to communicate timestamped data \n\
00100 # in a particular coordinate frame.\n\
00101 # \n\
00102 # sequence ID: consecutively increasing ID \n\
00103 uint32 seq\n\
00104 #Two-integer timestamp that is expressed as:\n\
00105 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00106 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00107 # time-handling sugar is provided by the client library\n\
00108 time stamp\n\
00109 #Frame this data is associated with\n\
00110 # 0: no frame\n\
00111 # 1: global frame\n\
00112 string frame_id\n\
00113 \n\
00114 ";
00115 }
00116
00117 static const char* value(const ::jsk_perception::ClusterPointIndices_<ContainerAllocator> &) { return value(); }
00118 };
00119
00120 }
00121 }
00122
00123 namespace ros
00124 {
00125 namespace serialization
00126 {
00127
00128 template<class ContainerAllocator> struct Serializer< ::jsk_perception::ClusterPointIndices_<ContainerAllocator> >
00129 {
00130 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00131 {
00132 stream.next(m.cluster_indices);
00133 }
00134
00135 ROS_DECLARE_ALLINONE_SERIALIZER;
00136 };
00137 }
00138 }
00139
00140 namespace ros
00141 {
00142 namespace message_operations
00143 {
00144
00145 template<class ContainerAllocator>
00146 struct Printer< ::jsk_perception::ClusterPointIndices_<ContainerAllocator> >
00147 {
00148 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::jsk_perception::ClusterPointIndices_<ContainerAllocator> & v)
00149 {
00150 s << indent << "cluster_indices[]" << std::endl;
00151 for (size_t i = 0; i < v.cluster_indices.size(); ++i)
00152 {
00153 s << indent << " cluster_indices[" << i << "]: ";
00154 s << std::endl;
00155 s << indent;
00156 Printer< ::pcl::PointIndices_<ContainerAllocator> >::stream(s, indent + " ", v.cluster_indices[i]);
00157 }
00158 }
00159 };
00160
00161
00162 }
00163 }
00164
00165 #endif // JSK_PERCEPTION_MESSAGE_CLUSTERPOINTINDICES_H
00166