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