DMPData.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-dmp/doc_stacks/2014-10-05_23-27-19.730125/dmp/msg/DMPData.msg */
00002 #ifndef DMP_MESSAGE_DMPDATA_H
00003 #define DMP_MESSAGE_DMPDATA_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 dmp
00019 {
00020 template <class ContainerAllocator>
00021 struct DMPData_ {
00022   typedef DMPData_<ContainerAllocator> Type;
00023 
00024   DMPData_()
00025   : k_gain(0.0)
00026   , d_gain(0.0)
00027   , weights()
00028   , f_domain()
00029   , f_targets()
00030   {
00031   }
00032 
00033   DMPData_(const ContainerAllocator& _alloc)
00034   : k_gain(0.0)
00035   , d_gain(0.0)
00036   , weights(_alloc)
00037   , f_domain(_alloc)
00038   , f_targets(_alloc)
00039   {
00040   }
00041 
00042   typedef double _k_gain_type;
00043   double k_gain;
00044 
00045   typedef double _d_gain_type;
00046   double d_gain;
00047 
00048   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _weights_type;
00049   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  weights;
00050 
00051   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _f_domain_type;
00052   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  f_domain;
00053 
00054   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _f_targets_type;
00055   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  f_targets;
00056 
00057 
00058   typedef boost::shared_ptr< ::dmp::DMPData_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::dmp::DMPData_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct DMPData
00062 typedef  ::dmp::DMPData_<std::allocator<void> > DMPData;
00063 
00064 typedef boost::shared_ptr< ::dmp::DMPData> DMPDataPtr;
00065 typedef boost::shared_ptr< ::dmp::DMPData const> DMPDataConstPtr;
00066 
00067 
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const  ::dmp::DMPData_<ContainerAllocator> & v)
00070 {
00071   ros::message_operations::Printer< ::dmp::DMPData_<ContainerAllocator> >::stream(s, "", v);
00072   return s;}
00073 
00074 } // namespace dmp
00075 
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::dmp::DMPData_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::dmp::DMPData_<ContainerAllocator>  const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::dmp::DMPData_<ContainerAllocator> > {
00084   static const char* value() 
00085   {
00086     return "dd2a2dd30705ac6b894c0c83b8081221";
00087   }
00088 
00089   static const char* value(const  ::dmp::DMPData_<ContainerAllocator> &) { return value(); } 
00090   static const uint64_t static_value1 = 0xdd2a2dd30705ac6bULL;
00091   static const uint64_t static_value2 = 0x894c0c83b8081221ULL;
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct DataType< ::dmp::DMPData_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "dmp/DMPData";
00099   }
00100 
00101   static const char* value(const  ::dmp::DMPData_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator>
00105 struct Definition< ::dmp::DMPData_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "float64 k_gain\n\
00109 float64 d_gain\n\
00110 float64[] weights\n\
00111 float64[] f_domain\n\
00112 float64[] f_targets\n\
00113 \n\
00114 \n\
00115 ";
00116   }
00117 
00118   static const char* value(const  ::dmp::DMPData_<ContainerAllocator> &) { return value(); } 
00119 };
00120 
00121 } // namespace message_traits
00122 } // namespace ros
00123 
00124 namespace ros
00125 {
00126 namespace serialization
00127 {
00128 
00129 template<class ContainerAllocator> struct Serializer< ::dmp::DMPData_<ContainerAllocator> >
00130 {
00131   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00132   {
00133     stream.next(m.k_gain);
00134     stream.next(m.d_gain);
00135     stream.next(m.weights);
00136     stream.next(m.f_domain);
00137     stream.next(m.f_targets);
00138   }
00139 
00140   ROS_DECLARE_ALLINONE_SERIALIZER;
00141 }; // struct DMPData_
00142 } // namespace serialization
00143 } // namespace ros
00144 
00145 namespace ros
00146 {
00147 namespace message_operations
00148 {
00149 
00150 template<class ContainerAllocator>
00151 struct Printer< ::dmp::DMPData_<ContainerAllocator> >
00152 {
00153   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::dmp::DMPData_<ContainerAllocator> & v) 
00154   {
00155     s << indent << "k_gain: ";
00156     Printer<double>::stream(s, indent + "  ", v.k_gain);
00157     s << indent << "d_gain: ";
00158     Printer<double>::stream(s, indent + "  ", v.d_gain);
00159     s << indent << "weights[]" << std::endl;
00160     for (size_t i = 0; i < v.weights.size(); ++i)
00161     {
00162       s << indent << "  weights[" << i << "]: ";
00163       Printer<double>::stream(s, indent + "  ", v.weights[i]);
00164     }
00165     s << indent << "f_domain[]" << std::endl;
00166     for (size_t i = 0; i < v.f_domain.size(); ++i)
00167     {
00168       s << indent << "  f_domain[" << i << "]: ";
00169       Printer<double>::stream(s, indent + "  ", v.f_domain[i]);
00170     }
00171     s << indent << "f_targets[]" << std::endl;
00172     for (size_t i = 0; i < v.f_targets.size(); ++i)
00173     {
00174       s << indent << "  f_targets[" << i << "]: ";
00175       Printer<double>::stream(s, indent + "  ", v.f_targets[i]);
00176     }
00177   }
00178 };
00179 
00180 
00181 } // namespace message_operations
00182 } // namespace ros
00183 
00184 #endif // DMP_MESSAGE_DMPDATA_H
00185 


dmp
Author(s): Scott Niekum
autogenerated on Sun Oct 5 2014 23:29:12