Go to the documentation of this file.00001
00002 #ifndef ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGFEEDBACK_H
00003 #define ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGFEEDBACK_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 actionlib_tutorials
00019 {
00020 template <class ContainerAllocator>
00021 struct AveragingFeedback_ {
00022 typedef AveragingFeedback_<ContainerAllocator> Type;
00023
00024 AveragingFeedback_()
00025 : sample(0)
00026 , data(0.0)
00027 , mean(0.0)
00028 , std_dev(0.0)
00029 {
00030 }
00031
00032 AveragingFeedback_(const ContainerAllocator& _alloc)
00033 : sample(0)
00034 , data(0.0)
00035 , mean(0.0)
00036 , std_dev(0.0)
00037 {
00038 }
00039
00040 typedef int32_t _sample_type;
00041 int32_t sample;
00042
00043 typedef float _data_type;
00044 float data;
00045
00046 typedef float _mean_type;
00047 float mean;
00048
00049 typedef float _std_dev_type;
00050 float std_dev;
00051
00052
00053 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > Ptr;
00054 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> const> ConstPtr;
00055 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 };
00057 typedef ::actionlib_tutorials::AveragingFeedback_<std::allocator<void> > AveragingFeedback;
00058
00059 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback> AveragingFeedbackPtr;
00060 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback const> AveragingFeedbackConstPtr;
00061
00062
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> & v)
00065 {
00066 ros::message_operations::Printer< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> >::stream(s, "", v);
00067 return s;}
00068
00069 }
00070
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > {
00079 static const char* value()
00080 {
00081 return "9e8dfc53c2f2a032ca33fa80ec46fd4f";
00082 }
00083
00084 static const char* value(const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> &) { return value(); }
00085 static const uint64_t static_value1 = 0x9e8dfc53c2f2a032ULL;
00086 static const uint64_t static_value2 = 0xca33fa80ec46fd4fULL;
00087 };
00088
00089 template<class ContainerAllocator>
00090 struct DataType< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > {
00091 static const char* value()
00092 {
00093 return "actionlib_tutorials/AveragingFeedback";
00094 }
00095
00096 static const char* value(const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> &) { return value(); }
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct Definition< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00104 #feedback\n\
00105 int32 sample\n\
00106 float32 data\n\
00107 float32 mean\n\
00108 float32 std_dev\n\
00109 \n\
00110 \n\
00111 \n\
00112 ";
00113 }
00114
00115 static const char* value(const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> &) { return value(); }
00116 };
00117
00118 template<class ContainerAllocator> struct IsFixedSize< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > : public TrueType {};
00119 }
00120 }
00121
00122 namespace ros
00123 {
00124 namespace serialization
00125 {
00126
00127 template<class ContainerAllocator> struct Serializer< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> >
00128 {
00129 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00130 {
00131 stream.next(m.sample);
00132 stream.next(m.data);
00133 stream.next(m.mean);
00134 stream.next(m.std_dev);
00135 }
00136
00137 ROS_DECLARE_ALLINONE_SERIALIZER;
00138 };
00139 }
00140 }
00141
00142 namespace ros
00143 {
00144 namespace message_operations
00145 {
00146
00147 template<class ContainerAllocator>
00148 struct Printer< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> >
00149 {
00150 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> & v)
00151 {
00152 s << indent << "sample: ";
00153 Printer<int32_t>::stream(s, indent + " ", v.sample);
00154 s << indent << "data: ";
00155 Printer<float>::stream(s, indent + " ", v.data);
00156 s << indent << "mean: ";
00157 Printer<float>::stream(s, indent + " ", v.mean);
00158 s << indent << "std_dev: ";
00159 Printer<float>::stream(s, indent + " ", v.std_dev);
00160 }
00161 };
00162
00163
00164 }
00165 }
00166
00167 #endif // ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGFEEDBACK_H
00168