Go to the documentation of this file.00001
00002 #ifndef NORMAL_DESCRIPTOR_NODE_MESSAGE_NDESC_PC_H
00003 #define NORMAL_DESCRIPTOR_NODE_MESSAGE_NDESC_PC_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 #include "normal_descriptor_node/ndesc.h"
00019
00020 namespace normal_descriptor_node
00021 {
00022 template <class ContainerAllocator>
00023 struct ndesc_pc_ {
00024 typedef ndesc_pc_<ContainerAllocator> Type;
00025
00026 ndesc_pc_()
00027 : header()
00028 , num_orient_bins(0)
00029 , num_spa_bins(0)
00030 , num(0)
00031 , len(0)
00032 , width(0)
00033 , height(0)
00034 , descriptors()
00035 {
00036 }
00037
00038 ndesc_pc_(const ContainerAllocator& _alloc)
00039 : header(_alloc)
00040 , num_orient_bins(0)
00041 , num_spa_bins(0)
00042 , num(0)
00043 , len(0)
00044 , width(0)
00045 , height(0)
00046 , descriptors(_alloc)
00047 {
00048 }
00049
00050 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00051 ::std_msgs::Header_<ContainerAllocator> header;
00052
00053 typedef int32_t _num_orient_bins_type;
00054 int32_t num_orient_bins;
00055
00056 typedef int32_t _num_spa_bins_type;
00057 int32_t num_spa_bins;
00058
00059 typedef int32_t _num_type;
00060 int32_t num;
00061
00062 typedef int32_t _len_type;
00063 int32_t len;
00064
00065 typedef int32_t _width_type;
00066 int32_t width;
00067
00068 typedef int32_t _height_type;
00069 int32_t height;
00070
00071 typedef std::vector< ::normal_descriptor_node::ndesc_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::normal_descriptor_node::ndesc_<ContainerAllocator> >::other > _descriptors_type;
00072 std::vector< ::normal_descriptor_node::ndesc_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::normal_descriptor_node::ndesc_<ContainerAllocator> >::other > descriptors;
00073
00074
00075 typedef boost::shared_ptr< ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> > Ptr;
00076 typedef boost::shared_ptr< ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> const> ConstPtr;
00077 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00078 };
00079 typedef ::normal_descriptor_node::ndesc_pc_<std::allocator<void> > ndesc_pc;
00080
00081 typedef boost::shared_ptr< ::normal_descriptor_node::ndesc_pc> ndesc_pcPtr;
00082 typedef boost::shared_ptr< ::normal_descriptor_node::ndesc_pc const> ndesc_pcConstPtr;
00083
00084
00085 template<typename ContainerAllocator>
00086 std::ostream& operator<<(std::ostream& s, const ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> & v)
00087 {
00088 ros::message_operations::Printer< ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> >::stream(s, "", v);
00089 return s;}
00090
00091 }
00092
00093 namespace ros
00094 {
00095 namespace message_traits
00096 {
00097 template<class ContainerAllocator> struct IsMessage< ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> > : public TrueType {};
00098 template<class ContainerAllocator> struct IsMessage< ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> const> : public TrueType {};
00099 template<class ContainerAllocator>
00100 struct MD5Sum< ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "c679de87ba14c801c3867289ca709eb0";
00104 }
00105
00106 static const char* value(const ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> &) { return value(); }
00107 static const uint64_t static_value1 = 0xc679de87ba14c801ULL;
00108 static const uint64_t static_value2 = 0xc3867289ca709eb0ULL;
00109 };
00110
00111 template<class ContainerAllocator>
00112 struct DataType< ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> > {
00113 static const char* value()
00114 {
00115 return "normal_descriptor_node/ndesc_pc";
00116 }
00117
00118 static const char* value(const ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> &) { return value(); }
00119 };
00120
00121 template<class ContainerAllocator>
00122 struct Definition< ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> > {
00123 static const char* value()
00124 {
00125 return "Header header\n\
00126 int32 num_orient_bins\n\
00127 int32 num_spa_bins\n\
00128 int32 num\n\
00129 int32 len\n\
00130 int32 width\n\
00131 int32 height\n\
00132 normal_descriptor_node/ndesc[] descriptors\n\
00133 \n\
00134 ================================================================================\n\
00135 MSG: std_msgs/Header\n\
00136 # Standard metadata for higher-level stamped data types.\n\
00137 # This is generally used to communicate timestamped data \n\
00138 # in a particular coordinate frame.\n\
00139 # \n\
00140 # sequence ID: consecutively increasing ID \n\
00141 uint32 seq\n\
00142 #Two-integer timestamp that is expressed as:\n\
00143 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00144 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00145 # time-handling sugar is provided by the client library\n\
00146 time stamp\n\
00147 #Frame this data is associated with\n\
00148 # 0: no frame\n\
00149 # 1: global frame\n\
00150 string frame_id\n\
00151 \n\
00152 ================================================================================\n\
00153 MSG: normal_descriptor_node/ndesc\n\
00154 float32[] descriptor\n\
00155 geometry_msgs/Vector3 point3d\n\
00156 int32 u\n\
00157 int32 v\n\
00158 float32 ori\n\
00159 ================================================================================\n\
00160 MSG: geometry_msgs/Vector3\n\
00161 # This represents a vector in free space. \n\
00162 \n\
00163 float64 x\n\
00164 float64 y\n\
00165 float64 z\n\
00166 ";
00167 }
00168
00169 static const char* value(const ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> &) { return value(); }
00170 };
00171
00172 template<class ContainerAllocator> struct HasHeader< ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> > : public TrueType {};
00173 template<class ContainerAllocator> struct HasHeader< const ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> > : public TrueType {};
00174 }
00175 }
00176
00177 namespace ros
00178 {
00179 namespace serialization
00180 {
00181
00182 template<class ContainerAllocator> struct Serializer< ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> >
00183 {
00184 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00185 {
00186 stream.next(m.header);
00187 stream.next(m.num_orient_bins);
00188 stream.next(m.num_spa_bins);
00189 stream.next(m.num);
00190 stream.next(m.len);
00191 stream.next(m.width);
00192 stream.next(m.height);
00193 stream.next(m.descriptors);
00194 }
00195
00196 ROS_DECLARE_ALLINONE_SERIALIZER;
00197 };
00198 }
00199 }
00200
00201 namespace ros
00202 {
00203 namespace message_operations
00204 {
00205
00206 template<class ContainerAllocator>
00207 struct Printer< ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> >
00208 {
00209 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::normal_descriptor_node::ndesc_pc_<ContainerAllocator> & v)
00210 {
00211 s << indent << "header: ";
00212 s << std::endl;
00213 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00214 s << indent << "num_orient_bins: ";
00215 Printer<int32_t>::stream(s, indent + " ", v.num_orient_bins);
00216 s << indent << "num_spa_bins: ";
00217 Printer<int32_t>::stream(s, indent + " ", v.num_spa_bins);
00218 s << indent << "num: ";
00219 Printer<int32_t>::stream(s, indent + " ", v.num);
00220 s << indent << "len: ";
00221 Printer<int32_t>::stream(s, indent + " ", v.len);
00222 s << indent << "width: ";
00223 Printer<int32_t>::stream(s, indent + " ", v.width);
00224 s << indent << "height: ";
00225 Printer<int32_t>::stream(s, indent + " ", v.height);
00226 s << indent << "descriptors[]" << std::endl;
00227 for (size_t i = 0; i < v.descriptors.size(); ++i)
00228 {
00229 s << indent << " descriptors[" << i << "]: ";
00230 s << std::endl;
00231 s << indent;
00232 Printer< ::normal_descriptor_node::ndesc_<ContainerAllocator> >::stream(s, indent + " ", v.descriptors[i]);
00233 }
00234 }
00235 };
00236
00237
00238 }
00239 }
00240
00241 #endif // NORMAL_DESCRIPTOR_NODE_MESSAGE_NDESC_PC_H
00242