00001
00002 #ifndef ACTIONLIB_TUTORIALS_MESSAGE_FIBONACCIRESULT_H
00003 #define ACTIONLIB_TUTORIALS_MESSAGE_FIBONACCIRESULT_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 FibonacciResult_ : public ros::Message
00018 {
00019 typedef FibonacciResult_<ContainerAllocator> Type;
00020
00021 FibonacciResult_()
00022 : sequence()
00023 {
00024 }
00025
00026 FibonacciResult_(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/FibonacciResult"; }
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 #result definition\n\
00056 int32[] sequence\n\
00057 \n\
00058 "; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00061
00062 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00063
00064 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00065 {
00066 ros::serialization::OStream stream(write_ptr, 1000000000);
00067 ros::serialization::serialize(stream, sequence);
00068 return stream.getData();
00069 }
00070
00071 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00072 {
00073 ros::serialization::IStream stream(read_ptr, 1000000000);
00074 ros::serialization::deserialize(stream, sequence);
00075 return stream.getData();
00076 }
00077
00078 ROS_DEPRECATED virtual uint32_t serializationLength() const
00079 {
00080 uint32_t size = 0;
00081 size += ros::serialization::serializationLength(sequence);
00082 return size;
00083 }
00084
00085 typedef boost::shared_ptr< ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> > Ptr;
00086 typedef boost::shared_ptr< ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> const> ConstPtr;
00087 };
00088 typedef ::actionlib_tutorials::FibonacciResult_<std::allocator<void> > FibonacciResult;
00089
00090 typedef boost::shared_ptr< ::actionlib_tutorials::FibonacciResult> FibonacciResultPtr;
00091 typedef boost::shared_ptr< ::actionlib_tutorials::FibonacciResult const> FibonacciResultConstPtr;
00092
00093
00094 template<typename ContainerAllocator>
00095 std::ostream& operator<<(std::ostream& s, const ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> & v)
00096 {
00097 ros::message_operations::Printer< ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> >::stream(s, "", v);
00098 return s;}
00099
00100 }
00101
00102 namespace ros
00103 {
00104 namespace message_traits
00105 {
00106 template<class ContainerAllocator>
00107 struct MD5Sum< ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> > {
00108 static const char* value()
00109 {
00110 return "b81e37d2a31925a0e8ae261a8699cb79";
00111 }
00112
00113 static const char* value(const ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> &) { return value(); }
00114 static const uint64_t static_value1 = 0xb81e37d2a31925a0ULL;
00115 static const uint64_t static_value2 = 0xe8ae261a8699cb79ULL;
00116 };
00117
00118 template<class ContainerAllocator>
00119 struct DataType< ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> > {
00120 static const char* value()
00121 {
00122 return "actionlib_tutorials/FibonacciResult";
00123 }
00124
00125 static const char* value(const ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> &) { return value(); }
00126 };
00127
00128 template<class ContainerAllocator>
00129 struct Definition< ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> > {
00130 static const char* value()
00131 {
00132 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00133 #result definition\n\
00134 int32[] sequence\n\
00135 \n\
00136 ";
00137 }
00138
00139 static const char* value(const ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> &) { return value(); }
00140 };
00141
00142 }
00143 }
00144
00145 namespace ros
00146 {
00147 namespace serialization
00148 {
00149
00150 template<class ContainerAllocator> struct Serializer< ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> >
00151 {
00152 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00153 {
00154 stream.next(m.sequence);
00155 }
00156
00157 ROS_DECLARE_ALLINONE_SERIALIZER;
00158 };
00159 }
00160 }
00161
00162 namespace ros
00163 {
00164 namespace message_operations
00165 {
00166
00167 template<class ContainerAllocator>
00168 struct Printer< ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> >
00169 {
00170 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib_tutorials::FibonacciResult_<ContainerAllocator> & v)
00171 {
00172 s << indent << "sequence[]" << std::endl;
00173 for (size_t i = 0; i < v.sequence.size(); ++i)
00174 {
00175 s << indent << " sequence[" << i << "]: ";
00176 Printer<int32_t>::stream(s, indent + " ", v.sequence[i]);
00177 }
00178 }
00179 };
00180
00181
00182 }
00183 }
00184
00185 #endif // ACTIONLIB_TUTORIALS_MESSAGE_FIBONACCIRESULT_H
00186