00001
00002 #ifndef ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGRESULT_H
00003 #define ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGRESULT_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 AveragingResult_ : public ros::Message
00018 {
00019 typedef AveragingResult_<ContainerAllocator> Type;
00020
00021 AveragingResult_()
00022 : mean(0.0)
00023 , std_dev(0.0)
00024 {
00025 }
00026
00027 AveragingResult_(const ContainerAllocator& _alloc)
00028 : mean(0.0)
00029 , std_dev(0.0)
00030 {
00031 }
00032
00033 typedef float _mean_type;
00034 float mean;
00035
00036 typedef float _std_dev_type;
00037 float std_dev;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "actionlib_tutorials/AveragingResult"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "d5c7decf6df75ffb4367a05c1bcc7612"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00056 #result definition\n\
00057 float32 mean\n\
00058 float32 std_dev\n\
00059 \n\
00060 "; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00063
00064 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00065
00066 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00067 {
00068 ros::serialization::OStream stream(write_ptr, 1000000000);
00069 ros::serialization::serialize(stream, mean);
00070 ros::serialization::serialize(stream, std_dev);
00071 return stream.getData();
00072 }
00073
00074 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00075 {
00076 ros::serialization::IStream stream(read_ptr, 1000000000);
00077 ros::serialization::deserialize(stream, mean);
00078 ros::serialization::deserialize(stream, std_dev);
00079 return stream.getData();
00080 }
00081
00082 ROS_DEPRECATED virtual uint32_t serializationLength() const
00083 {
00084 uint32_t size = 0;
00085 size += ros::serialization::serializationLength(mean);
00086 size += ros::serialization::serializationLength(std_dev);
00087 return size;
00088 }
00089
00090 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingResult_<ContainerAllocator> > Ptr;
00091 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingResult_<ContainerAllocator> const> ConstPtr;
00092 };
00093 typedef ::actionlib_tutorials::AveragingResult_<std::allocator<void> > AveragingResult;
00094
00095 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingResult> AveragingResultPtr;
00096 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingResult const> AveragingResultConstPtr;
00097
00098
00099 template<typename ContainerAllocator>
00100 std::ostream& operator<<(std::ostream& s, const ::actionlib_tutorials::AveragingResult_<ContainerAllocator> & v)
00101 {
00102 ros::message_operations::Printer< ::actionlib_tutorials::AveragingResult_<ContainerAllocator> >::stream(s, "", v);
00103 return s;}
00104
00105 }
00106
00107 namespace ros
00108 {
00109 namespace message_traits
00110 {
00111 template<class ContainerAllocator>
00112 struct MD5Sum< ::actionlib_tutorials::AveragingResult_<ContainerAllocator> > {
00113 static const char* value()
00114 {
00115 return "d5c7decf6df75ffb4367a05c1bcc7612";
00116 }
00117
00118 static const char* value(const ::actionlib_tutorials::AveragingResult_<ContainerAllocator> &) { return value(); }
00119 static const uint64_t static_value1 = 0xd5c7decf6df75ffbULL;
00120 static const uint64_t static_value2 = 0x4367a05c1bcc7612ULL;
00121 };
00122
00123 template<class ContainerAllocator>
00124 struct DataType< ::actionlib_tutorials::AveragingResult_<ContainerAllocator> > {
00125 static const char* value()
00126 {
00127 return "actionlib_tutorials/AveragingResult";
00128 }
00129
00130 static const char* value(const ::actionlib_tutorials::AveragingResult_<ContainerAllocator> &) { return value(); }
00131 };
00132
00133 template<class ContainerAllocator>
00134 struct Definition< ::actionlib_tutorials::AveragingResult_<ContainerAllocator> > {
00135 static const char* value()
00136 {
00137 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00138 #result definition\n\
00139 float32 mean\n\
00140 float32 std_dev\n\
00141 \n\
00142 ";
00143 }
00144
00145 static const char* value(const ::actionlib_tutorials::AveragingResult_<ContainerAllocator> &) { return value(); }
00146 };
00147
00148 template<class ContainerAllocator> struct IsFixedSize< ::actionlib_tutorials::AveragingResult_<ContainerAllocator> > : public TrueType {};
00149 }
00150 }
00151
00152 namespace ros
00153 {
00154 namespace serialization
00155 {
00156
00157 template<class ContainerAllocator> struct Serializer< ::actionlib_tutorials::AveragingResult_<ContainerAllocator> >
00158 {
00159 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00160 {
00161 stream.next(m.mean);
00162 stream.next(m.std_dev);
00163 }
00164
00165 ROS_DECLARE_ALLINONE_SERIALIZER;
00166 };
00167 }
00168 }
00169
00170 namespace ros
00171 {
00172 namespace message_operations
00173 {
00174
00175 template<class ContainerAllocator>
00176 struct Printer< ::actionlib_tutorials::AveragingResult_<ContainerAllocator> >
00177 {
00178 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib_tutorials::AveragingResult_<ContainerAllocator> & v)
00179 {
00180 s << indent << "mean: ";
00181 Printer<float>::stream(s, indent + " ", v.mean);
00182 s << indent << "std_dev: ";
00183 Printer<float>::stream(s, indent + " ", v.std_dev);
00184 }
00185 };
00186
00187
00188 }
00189 }
00190
00191 #endif // ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGRESULT_H
00192