00001
00002 #ifndef ACTIONLIB_TUTORIALS_MESSAGE_FIBONACCIFEEDBACK_H
00003 #define ACTIONLIB_TUTORIALS_MESSAGE_FIBONACCIFEEDBACK_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 FibonacciFeedback_ : public ros::Message
00018 {
00019 typedef FibonacciFeedback_<ContainerAllocator> Type;
00020
00021 FibonacciFeedback_()
00022 : sequence()
00023 {
00024 }
00025
00026 FibonacciFeedback_(const ContainerAllocator& _alloc)
00027 : sequence(_alloc)
00028 {
00029 }
00030
00031 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _sequence_type;
00032 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > sequence;
00033
00034
00035 ROS_DEPRECATED uint32_t get_sequence_size() const { return (uint32_t)sequence.size(); }
00036 ROS_DEPRECATED void set_sequence_size(uint32_t size) { sequence.resize((size_t)size); }
00037 ROS_DEPRECATED void get_sequence_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->sequence; }
00038 ROS_DEPRECATED void set_sequence_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->sequence = vec; }
00039 private:
00040 static const char* __s_getDataType_() { return "actionlib_tutorials/FibonacciFeedback"; }
00041 public:
00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00043
00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00045
00046 private:
00047 static const char* __s_getMD5Sum_() { return "b81e37d2a31925a0e8ae261a8699cb79"; }
00048 public:
00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00050
00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00052
00053 private:
00054 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00055 #feedback\n\
00056 int32[] sequence \n\
00057 \n\
00058 \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, sequence);
00070 return stream.getData();
00071 }
00072
00073 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00074 {
00075 ros::serialization::IStream stream(read_ptr, 1000000000);
00076 ros::serialization::deserialize(stream, sequence);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint32_t serializationLength() const
00081 {
00082 uint32_t size = 0;
00083 size += ros::serialization::serializationLength(sequence);
00084 return size;
00085 }
00086
00087 typedef boost::shared_ptr< ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> > Ptr;
00088 typedef boost::shared_ptr< ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> const> ConstPtr;
00089 };
00090 typedef ::actionlib_tutorials::FibonacciFeedback_<std::allocator<void> > FibonacciFeedback;
00091
00092 typedef boost::shared_ptr< ::actionlib_tutorials::FibonacciFeedback> FibonacciFeedbackPtr;
00093 typedef boost::shared_ptr< ::actionlib_tutorials::FibonacciFeedback const> FibonacciFeedbackConstPtr;
00094
00095
00096 template<typename ContainerAllocator>
00097 std::ostream& operator<<(std::ostream& s, const ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> & v)
00098 {
00099 ros::message_operations::Printer< ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> >::stream(s, "", v);
00100 return s;}
00101
00102 }
00103
00104 namespace ros
00105 {
00106 namespace message_traits
00107 {
00108 template<class ContainerAllocator>
00109 struct MD5Sum< ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> > {
00110 static const char* value()
00111 {
00112 return "b81e37d2a31925a0e8ae261a8699cb79";
00113 }
00114
00115 static const char* value(const ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> &) { return value(); }
00116 static const uint64_t static_value1 = 0xb81e37d2a31925a0ULL;
00117 static const uint64_t static_value2 = 0xe8ae261a8699cb79ULL;
00118 };
00119
00120 template<class ContainerAllocator>
00121 struct DataType< ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> > {
00122 static const char* value()
00123 {
00124 return "actionlib_tutorials/FibonacciFeedback";
00125 }
00126
00127 static const char* value(const ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> &) { return value(); }
00128 };
00129
00130 template<class ContainerAllocator>
00131 struct Definition< ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> > {
00132 static const char* value()
00133 {
00134 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00135 #feedback\n\
00136 int32[] sequence \n\
00137 \n\
00138 \n\
00139 \n\
00140 ";
00141 }
00142
00143 static const char* value(const ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> &) { return value(); }
00144 };
00145
00146 }
00147 }
00148
00149 namespace ros
00150 {
00151 namespace serialization
00152 {
00153
00154 template<class ContainerAllocator> struct Serializer< ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> >
00155 {
00156 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00157 {
00158 stream.next(m.sequence);
00159 }
00160
00161 ROS_DECLARE_ALLINONE_SERIALIZER;
00162 };
00163 }
00164 }
00165
00166 namespace ros
00167 {
00168 namespace message_operations
00169 {
00170
00171 template<class ContainerAllocator>
00172 struct Printer< ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> >
00173 {
00174 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib_tutorials::FibonacciFeedback_<ContainerAllocator> & v)
00175 {
00176 s << indent << "sequence[]" << std::endl;
00177 for (size_t i = 0; i < v.sequence.size(); ++i)
00178 {
00179 s << indent << " sequence[" << i << "]: ";
00180 Printer<int32_t>::stream(s, indent + " ", v.sequence[i]);
00181 }
00182 }
00183 };
00184
00185
00186 }
00187 }
00188
00189 #endif // ACTIONLIB_TUTORIALS_MESSAGE_FIBONACCIFEEDBACK_H
00190