DMPData.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-dmp/doc_stacks/2014-01-03_11-18-08.061454/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   {
00029   }
00030 
00031   DMPData_(const ContainerAllocator& _alloc)
00032   : k_gain(0.0)
00033   , d_gain(0.0)
00034   , weights(_alloc)
00035   {
00036   }
00037 
00038   typedef double _k_gain_type;
00039   double k_gain;
00040 
00041   typedef double _d_gain_type;
00042   double d_gain;
00043 
00044   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _weights_type;
00045   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  weights;
00046 
00047 
00048   typedef boost::shared_ptr< ::dmp::DMPData_<ContainerAllocator> > Ptr;
00049   typedef boost::shared_ptr< ::dmp::DMPData_<ContainerAllocator>  const> ConstPtr;
00050   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 }; // struct DMPData
00052 typedef  ::dmp::DMPData_<std::allocator<void> > DMPData;
00053 
00054 typedef boost::shared_ptr< ::dmp::DMPData> DMPDataPtr;
00055 typedef boost::shared_ptr< ::dmp::DMPData const> DMPDataConstPtr;
00056 
00057 
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const  ::dmp::DMPData_<ContainerAllocator> & v)
00060 {
00061   ros::message_operations::Printer< ::dmp::DMPData_<ContainerAllocator> >::stream(s, "", v);
00062   return s;}
00063 
00064 } // namespace dmp
00065 
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::dmp::DMPData_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::dmp::DMPData_<ContainerAllocator>  const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::dmp::DMPData_<ContainerAllocator> > {
00074   static const char* value() 
00075   {
00076     return "8e103c6e348fe8bbac70d6eb733cedf2";
00077   }
00078 
00079   static const char* value(const  ::dmp::DMPData_<ContainerAllocator> &) { return value(); } 
00080   static const uint64_t static_value1 = 0x8e103c6e348fe8bbULL;
00081   static const uint64_t static_value2 = 0xac70d6eb733cedf2ULL;
00082 };
00083 
00084 template<class ContainerAllocator>
00085 struct DataType< ::dmp::DMPData_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "dmp/DMPData";
00089   }
00090 
00091   static const char* value(const  ::dmp::DMPData_<ContainerAllocator> &) { return value(); } 
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct Definition< ::dmp::DMPData_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "float64 k_gain\n\
00099 float64 d_gain\n\
00100 float64[] weights\n\
00101 \n\
00102 ";
00103   }
00104 
00105   static const char* value(const  ::dmp::DMPData_<ContainerAllocator> &) { return value(); } 
00106 };
00107 
00108 } // namespace message_traits
00109 } // namespace ros
00110 
00111 namespace ros
00112 {
00113 namespace serialization
00114 {
00115 
00116 template<class ContainerAllocator> struct Serializer< ::dmp::DMPData_<ContainerAllocator> >
00117 {
00118   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00119   {
00120     stream.next(m.k_gain);
00121     stream.next(m.d_gain);
00122     stream.next(m.weights);
00123   }
00124 
00125   ROS_DECLARE_ALLINONE_SERIALIZER;
00126 }; // struct DMPData_
00127 } // namespace serialization
00128 } // namespace ros
00129 
00130 namespace ros
00131 {
00132 namespace message_operations
00133 {
00134 
00135 template<class ContainerAllocator>
00136 struct Printer< ::dmp::DMPData_<ContainerAllocator> >
00137 {
00138   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::dmp::DMPData_<ContainerAllocator> & v) 
00139   {
00140     s << indent << "k_gain: ";
00141     Printer<double>::stream(s, indent + "  ", v.k_gain);
00142     s << indent << "d_gain: ";
00143     Printer<double>::stream(s, indent + "  ", v.d_gain);
00144     s << indent << "weights[]" << std::endl;
00145     for (size_t i = 0; i < v.weights.size(); ++i)
00146     {
00147       s << indent << "  weights[" << i << "]: ";
00148       Printer<double>::stream(s, indent + "  ", v.weights[i]);
00149     }
00150   }
00151 };
00152 
00153 
00154 } // namespace message_operations
00155 } // namespace ros
00156 
00157 #endif // DMP_MESSAGE_DMPDATA_H
00158 


dmp
Author(s): Scott Niekum
autogenerated on Fri Jan 3 2014 11:19:23