Go to the documentation of this file.00001
00002 #ifndef IRI_PERCEPTION_MSGS_MESSAGE_DESCRIPTOR_H
00003 #define IRI_PERCEPTION_MSGS_MESSAGE_DESCRIPTOR_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 "geometry_msgs/Vector3.h"
00018
00019 namespace iri_perception_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct Descriptor_ {
00023 typedef Descriptor_<ContainerAllocator> Type;
00024
00025 Descriptor_()
00026 : descriptor()
00027 , point3d()
00028 , u(0)
00029 , v(0)
00030 , orientation(0.0)
00031 {
00032 }
00033
00034 Descriptor_(const ContainerAllocator& _alloc)
00035 : descriptor(_alloc)
00036 , point3d(_alloc)
00037 , u(0)
00038 , v(0)
00039 , orientation(0.0)
00040 {
00041 }
00042
00043 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _descriptor_type;
00044 std::vector<float, typename ContainerAllocator::template rebind<float>::other > descriptor;
00045
00046 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _point3d_type;
00047 ::geometry_msgs::Vector3_<ContainerAllocator> point3d;
00048
00049 typedef int32_t _u_type;
00050 int32_t u;
00051
00052 typedef int32_t _v_type;
00053 int32_t v;
00054
00055 typedef float _orientation_type;
00056 float orientation;
00057
00058
00059 typedef boost::shared_ptr< ::iri_perception_msgs::Descriptor_<ContainerAllocator> > Ptr;
00060 typedef boost::shared_ptr< ::iri_perception_msgs::Descriptor_<ContainerAllocator> const> ConstPtr;
00061 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 };
00063 typedef ::iri_perception_msgs::Descriptor_<std::allocator<void> > Descriptor;
00064
00065 typedef boost::shared_ptr< ::iri_perception_msgs::Descriptor> DescriptorPtr;
00066 typedef boost::shared_ptr< ::iri_perception_msgs::Descriptor const> DescriptorConstPtr;
00067
00068
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const ::iri_perception_msgs::Descriptor_<ContainerAllocator> & v)
00071 {
00072 ros::message_operations::Printer< ::iri_perception_msgs::Descriptor_<ContainerAllocator> >::stream(s, "", v);
00073 return s;}
00074
00075 }
00076
00077 namespace ros
00078 {
00079 namespace message_traits
00080 {
00081 template<class ContainerAllocator> struct IsMessage< ::iri_perception_msgs::Descriptor_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::iri_perception_msgs::Descriptor_<ContainerAllocator> const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::iri_perception_msgs::Descriptor_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "6d50cb80b89d1ec47a9b4fa09aadf05a";
00088 }
00089
00090 static const char* value(const ::iri_perception_msgs::Descriptor_<ContainerAllocator> &) { return value(); }
00091 static const uint64_t static_value1 = 0x6d50cb80b89d1ec4ULL;
00092 static const uint64_t static_value2 = 0x7a9b4fa09aadf05aULL;
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct DataType< ::iri_perception_msgs::Descriptor_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "iri_perception_msgs/Descriptor";
00100 }
00101
00102 static const char* value(const ::iri_perception_msgs::Descriptor_<ContainerAllocator> &) { return value(); }
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct Definition< ::iri_perception_msgs::Descriptor_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "float32[] descriptor\n\
00110 geometry_msgs/Vector3 point3d\n\
00111 int32 u\n\
00112 int32 v\n\
00113 float32 orientation\n\
00114 \n\
00115 ================================================================================\n\
00116 MSG: geometry_msgs/Vector3\n\
00117 # This represents a vector in free space. \n\
00118 \n\
00119 float64 x\n\
00120 float64 y\n\
00121 float64 z\n\
00122 ";
00123 }
00124
00125 static const char* value(const ::iri_perception_msgs::Descriptor_<ContainerAllocator> &) { return value(); }
00126 };
00127
00128 }
00129 }
00130
00131 namespace ros
00132 {
00133 namespace serialization
00134 {
00135
00136 template<class ContainerAllocator> struct Serializer< ::iri_perception_msgs::Descriptor_<ContainerAllocator> >
00137 {
00138 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00139 {
00140 stream.next(m.descriptor);
00141 stream.next(m.point3d);
00142 stream.next(m.u);
00143 stream.next(m.v);
00144 stream.next(m.orientation);
00145 }
00146
00147 ROS_DECLARE_ALLINONE_SERIALIZER;
00148 };
00149 }
00150 }
00151
00152 namespace ros
00153 {
00154 namespace message_operations
00155 {
00156
00157 template<class ContainerAllocator>
00158 struct Printer< ::iri_perception_msgs::Descriptor_<ContainerAllocator> >
00159 {
00160 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::iri_perception_msgs::Descriptor_<ContainerAllocator> & v)
00161 {
00162 s << indent << "descriptor[]" << std::endl;
00163 for (size_t i = 0; i < v.descriptor.size(); ++i)
00164 {
00165 s << indent << " descriptor[" << i << "]: ";
00166 Printer<float>::stream(s, indent + " ", v.descriptor[i]);
00167 }
00168 s << indent << "point3d: ";
00169 s << std::endl;
00170 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.point3d);
00171 s << indent << "u: ";
00172 Printer<int32_t>::stream(s, indent + " ", v.u);
00173 s << indent << "v: ";
00174 Printer<int32_t>::stream(s, indent + " ", v.v);
00175 s << indent << "orientation: ";
00176 Printer<float>::stream(s, indent + " ", v.orientation);
00177 }
00178 };
00179
00180
00181 }
00182 }
00183
00184 #endif // IRI_PERCEPTION_MSGS_MESSAGE_DESCRIPTOR_H
00185