PDF.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-tue/doc_stacks/2014-01-07_11-38-14.555624/wire/problib/msg/PDF.msg */
00002 #ifndef PROBLIB_MESSAGE_PDF_H
00003 #define PROBLIB_MESSAGE_PDF_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 
00018 namespace problib
00019 {
00020 template <class ContainerAllocator>
00021 struct PDF_ {
00022   typedef PDF_<ContainerAllocator> Type;
00023 
00024   PDF_()
00025   : type(0)
00026   , dimensions(0)
00027   , data()
00028   , domain_size(0)
00029   , values()
00030   , probabilities()
00031   , exact_value_str()
00032   , exact_value_vec()
00033   {
00034   }
00035 
00036   PDF_(const ContainerAllocator& _alloc)
00037   : type(0)
00038   , dimensions(0)
00039   , data(_alloc)
00040   , domain_size(0)
00041   , values(_alloc)
00042   , probabilities(_alloc)
00043   , exact_value_str(_alloc)
00044   , exact_value_vec(_alloc)
00045   {
00046   }
00047 
00048   typedef uint8_t _type_type;
00049   uint8_t type;
00050 
00051   typedef uint32_t _dimensions_type;
00052   uint32_t dimensions;
00053 
00054   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _data_type;
00055   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  data;
00056 
00057   typedef int32_t _domain_size_type;
00058   int32_t domain_size;
00059 
00060   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _values_type;
00061   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  values;
00062 
00063   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _probabilities_type;
00064   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  probabilities;
00065 
00066   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _exact_value_str_type;
00067   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  exact_value_str;
00068 
00069   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _exact_value_vec_type;
00070   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  exact_value_vec;
00071 
00072   enum { EXACT = 0 };
00073   enum { GAUSSIAN = 1 };
00074   enum { UNIFORM = 2 };
00075   enum { PARTICLES = 3 };
00076   enum { MIXTURE = 4 };
00077   enum { DISCRETE = 5 };
00078   enum { HYBRID = 6 };
00079 
00080   typedef boost::shared_ptr< ::problib::PDF_<ContainerAllocator> > Ptr;
00081   typedef boost::shared_ptr< ::problib::PDF_<ContainerAllocator>  const> ConstPtr;
00082   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00083 }; // struct PDF
00084 typedef  ::problib::PDF_<std::allocator<void> > PDF;
00085 
00086 typedef boost::shared_ptr< ::problib::PDF> PDFPtr;
00087 typedef boost::shared_ptr< ::problib::PDF const> PDFConstPtr;
00088 
00089 
00090 template<typename ContainerAllocator>
00091 std::ostream& operator<<(std::ostream& s, const  ::problib::PDF_<ContainerAllocator> & v)
00092 {
00093   ros::message_operations::Printer< ::problib::PDF_<ContainerAllocator> >::stream(s, "", v);
00094   return s;}
00095 
00096 } // namespace problib
00097 
00098 namespace ros
00099 {
00100 namespace message_traits
00101 {
00102 template<class ContainerAllocator> struct IsMessage< ::problib::PDF_<ContainerAllocator> > : public TrueType {};
00103 template<class ContainerAllocator> struct IsMessage< ::problib::PDF_<ContainerAllocator>  const> : public TrueType {};
00104 template<class ContainerAllocator>
00105 struct MD5Sum< ::problib::PDF_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "75a0d678d0983733e909d6d13b746309";
00109   }
00110 
00111   static const char* value(const  ::problib::PDF_<ContainerAllocator> &) { return value(); } 
00112   static const uint64_t static_value1 = 0x75a0d678d0983733ULL;
00113   static const uint64_t static_value2 = 0xe909d6d13b746309ULL;
00114 };
00115 
00116 template<class ContainerAllocator>
00117 struct DataType< ::problib::PDF_<ContainerAllocator> > {
00118   static const char* value() 
00119   {
00120     return "problib/PDF";
00121   }
00122 
00123   static const char* value(const  ::problib::PDF_<ContainerAllocator> &) { return value(); } 
00124 };
00125 
00126 template<class ContainerAllocator>
00127 struct Definition< ::problib::PDF_<ContainerAllocator> > {
00128   static const char* value() 
00129   {
00130     return "uint8 EXACT=0     # Is here for easier msg creation, but is actually a specialized case:\n\
00131                   # - continuous: is a Gaussian with zero covariance\n\
00132                   # - discrete: is a Discrete pdf with one entry with P=1                \n\
00133 uint8 GAUSSIAN=1\n\
00134 uint8 UNIFORM=2\n\
00135 uint8 PARTICLES=3\n\
00136 uint8 MIXTURE=4\n\
00137 uint8 DISCRETE=5\n\
00138 uint8 HYBRID=6\n\
00139 \n\
00140 uint8 type\n\
00141 uint32 dimensions\n\
00142 \n\
00143 # For continuous pdf's\n\
00144 float64[] data\n\
00145 \n\
00146 # For discrete pdf's (pmf)\n\
00147 int32 domain_size\n\
00148 string[] values\n\
00149 float64[] probabilities\n\
00150 \n\
00151 # For exact values, either a string or a vector\n\
00152 string exact_value_str\n\
00153 float64[] exact_value_vec\n\
00154 \n\
00155 ";
00156   }
00157 
00158   static const char* value(const  ::problib::PDF_<ContainerAllocator> &) { return value(); } 
00159 };
00160 
00161 } // namespace message_traits
00162 } // namespace ros
00163 
00164 namespace ros
00165 {
00166 namespace serialization
00167 {
00168 
00169 template<class ContainerAllocator> struct Serializer< ::problib::PDF_<ContainerAllocator> >
00170 {
00171   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00172   {
00173     stream.next(m.type);
00174     stream.next(m.dimensions);
00175     stream.next(m.data);
00176     stream.next(m.domain_size);
00177     stream.next(m.values);
00178     stream.next(m.probabilities);
00179     stream.next(m.exact_value_str);
00180     stream.next(m.exact_value_vec);
00181   }
00182 
00183   ROS_DECLARE_ALLINONE_SERIALIZER;
00184 }; // struct PDF_
00185 } // namespace serialization
00186 } // namespace ros
00187 
00188 namespace ros
00189 {
00190 namespace message_operations
00191 {
00192 
00193 template<class ContainerAllocator>
00194 struct Printer< ::problib::PDF_<ContainerAllocator> >
00195 {
00196   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::problib::PDF_<ContainerAllocator> & v) 
00197   {
00198     s << indent << "type: ";
00199     Printer<uint8_t>::stream(s, indent + "  ", v.type);
00200     s << indent << "dimensions: ";
00201     Printer<uint32_t>::stream(s, indent + "  ", v.dimensions);
00202     s << indent << "data[]" << std::endl;
00203     for (size_t i = 0; i < v.data.size(); ++i)
00204     {
00205       s << indent << "  data[" << i << "]: ";
00206       Printer<double>::stream(s, indent + "  ", v.data[i]);
00207     }
00208     s << indent << "domain_size: ";
00209     Printer<int32_t>::stream(s, indent + "  ", v.domain_size);
00210     s << indent << "values[]" << std::endl;
00211     for (size_t i = 0; i < v.values.size(); ++i)
00212     {
00213       s << indent << "  values[" << i << "]: ";
00214       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.values[i]);
00215     }
00216     s << indent << "probabilities[]" << std::endl;
00217     for (size_t i = 0; i < v.probabilities.size(); ++i)
00218     {
00219       s << indent << "  probabilities[" << i << "]: ";
00220       Printer<double>::stream(s, indent + "  ", v.probabilities[i]);
00221     }
00222     s << indent << "exact_value_str: ";
00223     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.exact_value_str);
00224     s << indent << "exact_value_vec[]" << std::endl;
00225     for (size_t i = 0; i < v.exact_value_vec.size(); ++i)
00226     {
00227       s << indent << "  exact_value_vec[" << i << "]: ";
00228       Printer<double>::stream(s, indent + "  ", v.exact_value_vec[i]);
00229     }
00230   }
00231 };
00232 
00233 
00234 } // namespace message_operations
00235 } // namespace ros
00236 
00237 #endif // PROBLIB_MESSAGE_PDF_H
00238 


problib
Author(s): Sjoerd van den Dries
autogenerated on Tue Jan 7 2014 11:42:42