Go to the documentation of this file.00001
00002 #ifndef IRI_LEAF_SEGMENTATION_MESSAGE_CLUSTERSET_H
00003 #define IRI_LEAF_SEGMENTATION_MESSAGE_CLUSTERSET_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/UInt32.h"
00018 #include "std_msgs/UInt32MultiArray.h"
00019
00020 namespace iri_leaf_segmentation
00021 {
00022 template <class ContainerAllocator>
00023 struct ClusterSet_ {
00024 typedef ClusterSet_<ContainerAllocator> Type;
00025
00026 ClusterSet_()
00027 : num_clusters()
00028 , cluster_labels()
00029 {
00030 }
00031
00032 ClusterSet_(const ContainerAllocator& _alloc)
00033 : num_clusters(_alloc)
00034 , cluster_labels(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::UInt32_<ContainerAllocator> _num_clusters_type;
00039 ::std_msgs::UInt32_<ContainerAllocator> num_clusters;
00040
00041 typedef ::std_msgs::UInt32MultiArray_<ContainerAllocator> _cluster_labels_type;
00042 ::std_msgs::UInt32MultiArray_<ContainerAllocator> cluster_labels;
00043
00044
00045 typedef boost::shared_ptr< ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::iri_leaf_segmentation::ClusterSet_<std::allocator<void> > ClusterSet;
00050
00051 typedef boost::shared_ptr< ::iri_leaf_segmentation::ClusterSet> ClusterSetPtr;
00052 typedef boost::shared_ptr< ::iri_leaf_segmentation::ClusterSet const> ClusterSetConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "473c59501c5a8d02d0d0a1bc6ce725b3";
00074 }
00075
00076 static const char* value(const ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0x473c59501c5a8d02ULL;
00078 static const uint64_t static_value2 = 0xd0d0a1bc6ce725b3ULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "iri_leaf_segmentation/ClusterSet";
00086 }
00087
00088 static const char* value(const ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "std_msgs/UInt32 num_clusters\n\
00096 std_msgs/UInt32MultiArray cluster_labels\n\
00097 \n\
00098 ================================================================================\n\
00099 MSG: std_msgs/UInt32\n\
00100 uint32 data\n\
00101 ================================================================================\n\
00102 MSG: std_msgs/UInt32MultiArray\n\
00103 # Please look at the MultiArrayLayout message definition for\n\
00104 # documentation on all multiarrays.\n\
00105 \n\
00106 MultiArrayLayout layout # specification of data layout\n\
00107 uint32[] data # array of data\n\
00108 \n\
00109 \n\
00110 ================================================================================\n\
00111 MSG: std_msgs/MultiArrayLayout\n\
00112 # The multiarray declares a generic multi-dimensional array of a\n\
00113 # particular data type. Dimensions are ordered from outer most\n\
00114 # to inner most.\n\
00115 \n\
00116 MultiArrayDimension[] dim # Array of dimension properties\n\
00117 uint32 data_offset # padding bytes at front of data\n\
00118 \n\
00119 # Accessors should ALWAYS be written in terms of dimension stride\n\
00120 # and specified outer-most dimension first.\n\
00121 # \n\
00122 # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\
00123 #\n\
00124 # A standard, 3-channel 640x480 image with interleaved color channels\n\
00125 # would be specified as:\n\
00126 #\n\
00127 # dim[0].label = \"height\"\n\
00128 # dim[0].size = 480\n\
00129 # dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)\n\
00130 # dim[1].label = \"width\"\n\
00131 # dim[1].size = 640\n\
00132 # dim[1].stride = 3*640 = 1920\n\
00133 # dim[2].label = \"channel\"\n\
00134 # dim[2].size = 3\n\
00135 # dim[2].stride = 3\n\
00136 #\n\
00137 # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\
00138 ================================================================================\n\
00139 MSG: std_msgs/MultiArrayDimension\n\
00140 string label # label of given dimension\n\
00141 uint32 size # size of given dimension (in type units)\n\
00142 uint32 stride # stride of given dimension\n\
00143 ";
00144 }
00145
00146 static const char* value(const ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> &) { return value(); }
00147 };
00148
00149 }
00150 }
00151
00152 namespace ros
00153 {
00154 namespace serialization
00155 {
00156
00157 template<class ContainerAllocator> struct Serializer< ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> >
00158 {
00159 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00160 {
00161 stream.next(m.num_clusters);
00162 stream.next(m.cluster_labels);
00163 }
00164
00165 ROS_DECLARE_ALLINONE_SERIALIZER;
00166 };
00167 }
00168 }
00169
00170 namespace ros
00171 {
00172 namespace message_operations
00173 {
00174
00175 template<class ContainerAllocator>
00176 struct Printer< ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> >
00177 {
00178 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::iri_leaf_segmentation::ClusterSet_<ContainerAllocator> & v)
00179 {
00180 s << indent << "num_clusters: ";
00181 s << std::endl;
00182 Printer< ::std_msgs::UInt32_<ContainerAllocator> >::stream(s, indent + " ", v.num_clusters);
00183 s << indent << "cluster_labels: ";
00184 s << std::endl;
00185 Printer< ::std_msgs::UInt32MultiArray_<ContainerAllocator> >::stream(s, indent + " ", v.cluster_labels);
00186 }
00187 };
00188
00189
00190 }
00191 }
00192
00193 #endif // IRI_LEAF_SEGMENTATION_MESSAGE_CLUSTERSET_H
00194