00001
00002 #ifndef ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGFEEDBACK_H
00003 #define ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGFEEDBACK_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace actionlib_tutorials
00015 {
00016 template <class ContainerAllocator>
00017 struct AveragingFeedback_ : public ros::Message
00018 {
00019 typedef AveragingFeedback_<ContainerAllocator> Type;
00020
00021 AveragingFeedback_()
00022 : sample(0)
00023 , data(0.0)
00024 , mean(0.0)
00025 , std_dev(0.0)
00026 {
00027 }
00028
00029 AveragingFeedback_(const ContainerAllocator& _alloc)
00030 : sample(0)
00031 , data(0.0)
00032 , mean(0.0)
00033 , std_dev(0.0)
00034 {
00035 }
00036
00037 typedef int32_t _sample_type;
00038 int32_t sample;
00039
00040 typedef float _data_type;
00041 float data;
00042
00043 typedef float _mean_type;
00044 float mean;
00045
00046 typedef float _std_dev_type;
00047 float std_dev;
00048
00049
00050 private:
00051 static const char* __s_getDataType_() { return "actionlib_tutorials/AveragingFeedback"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00054
00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00056
00057 private:
00058 static const char* __s_getMD5Sum_() { return "9e8dfc53c2f2a032ca33fa80ec46fd4f"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00066 #feedback\n\
00067 int32 sample\n\
00068 float32 data\n\
00069 float32 mean\n\
00070 float32 std_dev\n\
00071 \n\
00072 \n\
00073 \n\
00074 "; }
00075 public:
00076 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00077
00078 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00079
00080 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00081 {
00082 ros::serialization::OStream stream(write_ptr, 1000000000);
00083 ros::serialization::serialize(stream, sample);
00084 ros::serialization::serialize(stream, data);
00085 ros::serialization::serialize(stream, mean);
00086 ros::serialization::serialize(stream, std_dev);
00087 return stream.getData();
00088 }
00089
00090 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00091 {
00092 ros::serialization::IStream stream(read_ptr, 1000000000);
00093 ros::serialization::deserialize(stream, sample);
00094 ros::serialization::deserialize(stream, data);
00095 ros::serialization::deserialize(stream, mean);
00096 ros::serialization::deserialize(stream, std_dev);
00097 return stream.getData();
00098 }
00099
00100 ROS_DEPRECATED virtual uint32_t serializationLength() const
00101 {
00102 uint32_t size = 0;
00103 size += ros::serialization::serializationLength(sample);
00104 size += ros::serialization::serializationLength(data);
00105 size += ros::serialization::serializationLength(mean);
00106 size += ros::serialization::serializationLength(std_dev);
00107 return size;
00108 }
00109
00110 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > Ptr;
00111 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> const> ConstPtr;
00112 };
00113 typedef ::actionlib_tutorials::AveragingFeedback_<std::allocator<void> > AveragingFeedback;
00114
00115 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback> AveragingFeedbackPtr;
00116 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback const> AveragingFeedbackConstPtr;
00117
00118
00119 template<typename ContainerAllocator>
00120 std::ostream& operator<<(std::ostream& s, const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> & v)
00121 {
00122 ros::message_operations::Printer< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> >::stream(s, "", v);
00123 return s;}
00124
00125 }
00126
00127 namespace ros
00128 {
00129 namespace message_traits
00130 {
00131 template<class ContainerAllocator>
00132 struct MD5Sum< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "9e8dfc53c2f2a032ca33fa80ec46fd4f";
00136 }
00137
00138 static const char* value(const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> &) { return value(); }
00139 static const uint64_t static_value1 = 0x9e8dfc53c2f2a032ULL;
00140 static const uint64_t static_value2 = 0xca33fa80ec46fd4fULL;
00141 };
00142
00143 template<class ContainerAllocator>
00144 struct DataType< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "actionlib_tutorials/AveragingFeedback";
00148 }
00149
00150 static const char* value(const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> &) { return value(); }
00151 };
00152
00153 template<class ContainerAllocator>
00154 struct Definition< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > {
00155 static const char* value()
00156 {
00157 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00158 #feedback\n\
00159 int32 sample\n\
00160 float32 data\n\
00161 float32 mean\n\
00162 float32 std_dev\n\
00163 \n\
00164 \n\
00165 \n\
00166 ";
00167 }
00168
00169 static const char* value(const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> &) { return value(); }
00170 };
00171
00172 template<class ContainerAllocator> struct IsFixedSize< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > : public TrueType {};
00173 }
00174 }
00175
00176 namespace ros
00177 {
00178 namespace serialization
00179 {
00180
00181 template<class ContainerAllocator> struct Serializer< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> >
00182 {
00183 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00184 {
00185 stream.next(m.sample);
00186 stream.next(m.data);
00187 stream.next(m.mean);
00188 stream.next(m.std_dev);
00189 }
00190
00191 ROS_DECLARE_ALLINONE_SERIALIZER;
00192 };
00193 }
00194 }
00195
00196 namespace ros
00197 {
00198 namespace message_operations
00199 {
00200
00201 template<class ContainerAllocator>
00202 struct Printer< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> >
00203 {
00204 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> & v)
00205 {
00206 s << indent << "sample: ";
00207 Printer<int32_t>::stream(s, indent + " ", v.sample);
00208 s << indent << "data: ";
00209 Printer<float>::stream(s, indent + " ", v.data);
00210 s << indent << "mean: ";
00211 Printer<float>::stream(s, indent + " ", v.mean);
00212 s << indent << "std_dev: ";
00213 Printer<float>::stream(s, indent + " ", v.std_dev);
00214 }
00215 };
00216
00217
00218 }
00219 }
00220
00221 #endif // ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGFEEDBACK_H
00222