$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-common_tutorials/doc_stacks/2013-03-01_15-04-52.745324/common_tutorials/actionlib_tutorials/msg/AveragingFeedback.msg */ 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 private: 00054 static const char* __s_getDataType_() { return "actionlib_tutorials/AveragingFeedback"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "9e8dfc53c2f2a032ca33fa80ec46fd4f"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00069 #feedback\n\ 00070 int32 sample\n\ 00071 float32 data\n\ 00072 float32 mean\n\ 00073 float32 std_dev\n\ 00074 \n\ 00075 \n\ 00076 \n\ 00077 "; } 00078 public: 00079 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00080 00081 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00082 00083 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00084 { 00085 ros::serialization::OStream stream(write_ptr, 1000000000); 00086 ros::serialization::serialize(stream, sample); 00087 ros::serialization::serialize(stream, data); 00088 ros::serialization::serialize(stream, mean); 00089 ros::serialization::serialize(stream, std_dev); 00090 return stream.getData(); 00091 } 00092 00093 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00094 { 00095 ros::serialization::IStream stream(read_ptr, 1000000000); 00096 ros::serialization::deserialize(stream, sample); 00097 ros::serialization::deserialize(stream, data); 00098 ros::serialization::deserialize(stream, mean); 00099 ros::serialization::deserialize(stream, std_dev); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint32_t serializationLength() const 00104 { 00105 uint32_t size = 0; 00106 size += ros::serialization::serializationLength(sample); 00107 size += ros::serialization::serializationLength(data); 00108 size += ros::serialization::serializationLength(mean); 00109 size += ros::serialization::serializationLength(std_dev); 00110 return size; 00111 } 00112 00113 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > Ptr; 00114 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> const> ConstPtr; 00115 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00116 }; // struct AveragingFeedback 00117 typedef ::actionlib_tutorials::AveragingFeedback_<std::allocator<void> > AveragingFeedback; 00118 00119 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback> AveragingFeedbackPtr; 00120 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingFeedback const> AveragingFeedbackConstPtr; 00121 00122 00123 template<typename ContainerAllocator> 00124 std::ostream& operator<<(std::ostream& s, const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> & v) 00125 { 00126 ros::message_operations::Printer< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> >::stream(s, "", v); 00127 return s;} 00128 00129 } // namespace actionlib_tutorials 00130 00131 namespace ros 00132 { 00133 namespace message_traits 00134 { 00135 template<class ContainerAllocator> struct IsMessage< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > : public TrueType {}; 00136 template<class ContainerAllocator> struct IsMessage< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> const> : public TrueType {}; 00137 template<class ContainerAllocator> 00138 struct MD5Sum< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > { 00139 static const char* value() 00140 { 00141 return "9e8dfc53c2f2a032ca33fa80ec46fd4f"; 00142 } 00143 00144 static const char* value(const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> &) { return value(); } 00145 static const uint64_t static_value1 = 0x9e8dfc53c2f2a032ULL; 00146 static const uint64_t static_value2 = 0xca33fa80ec46fd4fULL; 00147 }; 00148 00149 template<class ContainerAllocator> 00150 struct DataType< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "actionlib_tutorials/AveragingFeedback"; 00154 } 00155 00156 static const char* value(const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> &) { return value(); } 00157 }; 00158 00159 template<class ContainerAllocator> 00160 struct Definition< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00164 #feedback\n\ 00165 int32 sample\n\ 00166 float32 data\n\ 00167 float32 mean\n\ 00168 float32 std_dev\n\ 00169 \n\ 00170 \n\ 00171 \n\ 00172 "; 00173 } 00174 00175 static const char* value(const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> &) { return value(); } 00176 }; 00177 00178 template<class ContainerAllocator> struct IsFixedSize< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > : public TrueType {}; 00179 } // namespace message_traits 00180 } // namespace ros 00181 00182 namespace ros 00183 { 00184 namespace serialization 00185 { 00186 00187 template<class ContainerAllocator> struct Serializer< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > 00188 { 00189 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00190 { 00191 stream.next(m.sample); 00192 stream.next(m.data); 00193 stream.next(m.mean); 00194 stream.next(m.std_dev); 00195 } 00196 00197 ROS_DECLARE_ALLINONE_SERIALIZER; 00198 }; // struct AveragingFeedback_ 00199 } // namespace serialization 00200 } // namespace ros 00201 00202 namespace ros 00203 { 00204 namespace message_operations 00205 { 00206 00207 template<class ContainerAllocator> 00208 struct Printer< ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> > 00209 { 00210 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib_tutorials::AveragingFeedback_<ContainerAllocator> & v) 00211 { 00212 s << indent << "sample: "; 00213 Printer<int32_t>::stream(s, indent + " ", v.sample); 00214 s << indent << "data: "; 00215 Printer<float>::stream(s, indent + " ", v.data); 00216 s << indent << "mean: "; 00217 Printer<float>::stream(s, indent + " ", v.mean); 00218 s << indent << "std_dev: "; 00219 Printer<float>::stream(s, indent + " ", v.std_dev); 00220 } 00221 }; 00222 00223 00224 } // namespace message_operations 00225 } // namespace ros 00226 00227 #endif // ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGFEEDBACK_H 00228