$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tu-darmstadt-ros-pkg/doc_stacks/2013-03-05_12-22-58.304137/hector_common/hector_std_msgs/msg/Float32.msg */ 00002 #ifndef HECTOR_STD_MSGS_MESSAGE_FLOAT32_H 00003 #define HECTOR_STD_MSGS_MESSAGE_FLOAT32_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 #include "std_msgs/Header.h" 00018 00019 namespace hector_std_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct Float32_ { 00023 typedef Float32_<ContainerAllocator> Type; 00024 00025 Float32_() 00026 : header() 00027 , data(0.0) 00028 { 00029 } 00030 00031 Float32_(const ContainerAllocator& _alloc) 00032 : header(_alloc) 00033 , data(0.0) 00034 { 00035 } 00036 00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00038 ::std_msgs::Header_<ContainerAllocator> header; 00039 00040 typedef float _data_type; 00041 float data; 00042 00043 00044 private: 00045 static const char* __s_getDataType_() { return "hector_std_msgs/Float32"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00048 00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00050 00051 private: 00052 static const char* __s_getMD5Sum_() { return "ef848af8cf12f6df11682cc76fba477b"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00060 float32 data\n\ 00061 \n\ 00062 ================================================================================\n\ 00063 MSG: std_msgs/Header\n\ 00064 # Standard metadata for higher-level stamped data types.\n\ 00065 # This is generally used to communicate timestamped data \n\ 00066 # in a particular coordinate frame.\n\ 00067 # \n\ 00068 # sequence ID: consecutively increasing ID \n\ 00069 uint32 seq\n\ 00070 #Two-integer timestamp that is expressed as:\n\ 00071 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00072 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00073 # time-handling sugar is provided by the client library\n\ 00074 time stamp\n\ 00075 #Frame this data is associated with\n\ 00076 # 0: no frame\n\ 00077 # 1: global frame\n\ 00078 string frame_id\n\ 00079 \n\ 00080 "; } 00081 public: 00082 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00083 00084 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00085 00086 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00087 { 00088 ros::serialization::OStream stream(write_ptr, 1000000000); 00089 ros::serialization::serialize(stream, header); 00090 ros::serialization::serialize(stream, data); 00091 return stream.getData(); 00092 } 00093 00094 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00095 { 00096 ros::serialization::IStream stream(read_ptr, 1000000000); 00097 ros::serialization::deserialize(stream, header); 00098 ros::serialization::deserialize(stream, data); 00099 return stream.getData(); 00100 } 00101 00102 ROS_DEPRECATED virtual uint32_t serializationLength() const 00103 { 00104 uint32_t size = 0; 00105 size += ros::serialization::serializationLength(header); 00106 size += ros::serialization::serializationLength(data); 00107 return size; 00108 } 00109 00110 typedef boost::shared_ptr< ::hector_std_msgs::Float32_<ContainerAllocator> > Ptr; 00111 typedef boost::shared_ptr< ::hector_std_msgs::Float32_<ContainerAllocator> const> ConstPtr; 00112 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00113 }; // struct Float32 00114 typedef ::hector_std_msgs::Float32_<std::allocator<void> > Float32; 00115 00116 typedef boost::shared_ptr< ::hector_std_msgs::Float32> Float32Ptr; 00117 typedef boost::shared_ptr< ::hector_std_msgs::Float32 const> Float32ConstPtr; 00118 00119 00120 template<typename ContainerAllocator> 00121 std::ostream& operator<<(std::ostream& s, const ::hector_std_msgs::Float32_<ContainerAllocator> & v) 00122 { 00123 ros::message_operations::Printer< ::hector_std_msgs::Float32_<ContainerAllocator> >::stream(s, "", v); 00124 return s;} 00125 00126 } // namespace hector_std_msgs 00127 00128 namespace ros 00129 { 00130 namespace message_traits 00131 { 00132 template<class ContainerAllocator> struct IsMessage< ::hector_std_msgs::Float32_<ContainerAllocator> > : public TrueType {}; 00133 template<class ContainerAllocator> struct IsMessage< ::hector_std_msgs::Float32_<ContainerAllocator> const> : public TrueType {}; 00134 template<class ContainerAllocator> 00135 struct MD5Sum< ::hector_std_msgs::Float32_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "ef848af8cf12f6df11682cc76fba477b"; 00139 } 00140 00141 static const char* value(const ::hector_std_msgs::Float32_<ContainerAllocator> &) { return value(); } 00142 static const uint64_t static_value1 = 0xef848af8cf12f6dfULL; 00143 static const uint64_t static_value2 = 0x11682cc76fba477bULL; 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct DataType< ::hector_std_msgs::Float32_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "hector_std_msgs/Float32"; 00151 } 00152 00153 static const char* value(const ::hector_std_msgs::Float32_<ContainerAllocator> &) { return value(); } 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct Definition< ::hector_std_msgs::Float32_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "Header header\n\ 00161 float32 data\n\ 00162 \n\ 00163 ================================================================================\n\ 00164 MSG: std_msgs/Header\n\ 00165 # Standard metadata for higher-level stamped data types.\n\ 00166 # This is generally used to communicate timestamped data \n\ 00167 # in a particular coordinate frame.\n\ 00168 # \n\ 00169 # sequence ID: consecutively increasing ID \n\ 00170 uint32 seq\n\ 00171 #Two-integer timestamp that is expressed as:\n\ 00172 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00173 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00174 # time-handling sugar is provided by the client library\n\ 00175 time stamp\n\ 00176 #Frame this data is associated with\n\ 00177 # 0: no frame\n\ 00178 # 1: global frame\n\ 00179 string frame_id\n\ 00180 \n\ 00181 "; 00182 } 00183 00184 static const char* value(const ::hector_std_msgs::Float32_<ContainerAllocator> &) { return value(); } 00185 }; 00186 00187 template<class ContainerAllocator> struct HasHeader< ::hector_std_msgs::Float32_<ContainerAllocator> > : public TrueType {}; 00188 template<class ContainerAllocator> struct HasHeader< const ::hector_std_msgs::Float32_<ContainerAllocator> > : public TrueType {}; 00189 } // namespace message_traits 00190 } // namespace ros 00191 00192 namespace ros 00193 { 00194 namespace serialization 00195 { 00196 00197 template<class ContainerAllocator> struct Serializer< ::hector_std_msgs::Float32_<ContainerAllocator> > 00198 { 00199 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00200 { 00201 stream.next(m.header); 00202 stream.next(m.data); 00203 } 00204 00205 ROS_DECLARE_ALLINONE_SERIALIZER; 00206 }; // struct Float32_ 00207 } // namespace serialization 00208 } // namespace ros 00209 00210 namespace ros 00211 { 00212 namespace message_operations 00213 { 00214 00215 template<class ContainerAllocator> 00216 struct Printer< ::hector_std_msgs::Float32_<ContainerAllocator> > 00217 { 00218 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::hector_std_msgs::Float32_<ContainerAllocator> & v) 00219 { 00220 s << indent << "header: "; 00221 s << std::endl; 00222 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00223 s << indent << "data: "; 00224 Printer<float>::stream(s, indent + " ", v.data); 00225 } 00226 }; 00227 00228 00229 } // namespace message_operations 00230 } // namespace ros 00231 00232 #endif // HECTOR_STD_MSGS_MESSAGE_FLOAT32_H 00233