$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ros_tutorials/doc_stacks/2013-03-02_13-18-38.146089/ros_tutorials/rospy_tutorials/msg/Floats.msg */ 00002 #ifndef ROSPY_TUTORIALS_MESSAGE_FLOATS_H 00003 #define ROSPY_TUTORIALS_MESSAGE_FLOATS_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 rospy_tutorials 00019 { 00020 template <class ContainerAllocator> 00021 struct Floats_ { 00022 typedef Floats_<ContainerAllocator> Type; 00023 00024 Floats_() 00025 : data() 00026 { 00027 } 00028 00029 Floats_(const ContainerAllocator& _alloc) 00030 : data(_alloc) 00031 { 00032 } 00033 00034 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _data_type; 00035 std::vector<float, typename ContainerAllocator::template rebind<float>::other > data; 00036 00037 00038 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); } 00039 ROS_DEPRECATED void set_data_size(uint32_t size) { data.resize((size_t)size); } 00040 ROS_DEPRECATED void get_data_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->data; } 00041 ROS_DEPRECATED void set_data_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->data = vec; } 00042 private: 00043 static const char* __s_getDataType_() { return "rospy_tutorials/Floats"; } 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 "420cd38b6b071cd49f2970c3e2cee511"; } 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 "float32[] data\n\ 00058 \n\ 00059 "; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00062 00063 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00064 00065 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00066 { 00067 ros::serialization::OStream stream(write_ptr, 1000000000); 00068 ros::serialization::serialize(stream, data); 00069 return stream.getData(); 00070 } 00071 00072 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00073 { 00074 ros::serialization::IStream stream(read_ptr, 1000000000); 00075 ros::serialization::deserialize(stream, data); 00076 return stream.getData(); 00077 } 00078 00079 ROS_DEPRECATED virtual uint32_t serializationLength() const 00080 { 00081 uint32_t size = 0; 00082 size += ros::serialization::serializationLength(data); 00083 return size; 00084 } 00085 00086 typedef boost::shared_ptr< ::rospy_tutorials::Floats_<ContainerAllocator> > Ptr; 00087 typedef boost::shared_ptr< ::rospy_tutorials::Floats_<ContainerAllocator> const> ConstPtr; 00088 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00089 }; // struct Floats 00090 typedef ::rospy_tutorials::Floats_<std::allocator<void> > Floats; 00091 00092 typedef boost::shared_ptr< ::rospy_tutorials::Floats> FloatsPtr; 00093 typedef boost::shared_ptr< ::rospy_tutorials::Floats const> FloatsConstPtr; 00094 00095 00096 template<typename ContainerAllocator> 00097 std::ostream& operator<<(std::ostream& s, const ::rospy_tutorials::Floats_<ContainerAllocator> & v) 00098 { 00099 ros::message_operations::Printer< ::rospy_tutorials::Floats_<ContainerAllocator> >::stream(s, "", v); 00100 return s;} 00101 00102 } // namespace rospy_tutorials 00103 00104 namespace ros 00105 { 00106 namespace message_traits 00107 { 00108 template<class ContainerAllocator> struct IsMessage< ::rospy_tutorials::Floats_<ContainerAllocator> > : public TrueType {}; 00109 template<class ContainerAllocator> struct IsMessage< ::rospy_tutorials::Floats_<ContainerAllocator> const> : public TrueType {}; 00110 template<class ContainerAllocator> 00111 struct MD5Sum< ::rospy_tutorials::Floats_<ContainerAllocator> > { 00112 static const char* value() 00113 { 00114 return "420cd38b6b071cd49f2970c3e2cee511"; 00115 } 00116 00117 static const char* value(const ::rospy_tutorials::Floats_<ContainerAllocator> &) { return value(); } 00118 static const uint64_t static_value1 = 0x420cd38b6b071cd4ULL; 00119 static const uint64_t static_value2 = 0x9f2970c3e2cee511ULL; 00120 }; 00121 00122 template<class ContainerAllocator> 00123 struct DataType< ::rospy_tutorials::Floats_<ContainerAllocator> > { 00124 static const char* value() 00125 { 00126 return "rospy_tutorials/Floats"; 00127 } 00128 00129 static const char* value(const ::rospy_tutorials::Floats_<ContainerAllocator> &) { return value(); } 00130 }; 00131 00132 template<class ContainerAllocator> 00133 struct Definition< ::rospy_tutorials::Floats_<ContainerAllocator> > { 00134 static const char* value() 00135 { 00136 return "float32[] data\n\ 00137 \n\ 00138 "; 00139 } 00140 00141 static const char* value(const ::rospy_tutorials::Floats_<ContainerAllocator> &) { return value(); } 00142 }; 00143 00144 } // namespace message_traits 00145 } // namespace ros 00146 00147 namespace ros 00148 { 00149 namespace serialization 00150 { 00151 00152 template<class ContainerAllocator> struct Serializer< ::rospy_tutorials::Floats_<ContainerAllocator> > 00153 { 00154 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00155 { 00156 stream.next(m.data); 00157 } 00158 00159 ROS_DECLARE_ALLINONE_SERIALIZER; 00160 }; // struct Floats_ 00161 } // namespace serialization 00162 } // namespace ros 00163 00164 namespace ros 00165 { 00166 namespace message_operations 00167 { 00168 00169 template<class ContainerAllocator> 00170 struct Printer< ::rospy_tutorials::Floats_<ContainerAllocator> > 00171 { 00172 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::rospy_tutorials::Floats_<ContainerAllocator> & v) 00173 { 00174 s << indent << "data[]" << std::endl; 00175 for (size_t i = 0; i < v.data.size(); ++i) 00176 { 00177 s << indent << " data[" << i << "]: "; 00178 Printer<float>::stream(s, indent + " ", v.data[i]); 00179 } 00180 } 00181 }; 00182 00183 00184 } // namespace message_operations 00185 } // namespace ros 00186 00187 #endif // ROSPY_TUTORIALS_MESSAGE_FLOATS_H 00188