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