00001
00002 #ifndef HECTOR_STD_MSGS_MESSAGE_FLOAT64_H
00003 #define HECTOR_STD_MSGS_MESSAGE_FLOAT64_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 Float64_ {
00023 typedef Float64_<ContainerAllocator> Type;
00024
00025 Float64_()
00026 : header()
00027 , data(0.0)
00028 {
00029 }
00030
00031 Float64_(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 double _data_type;
00041 double data;
00042
00043
00044 private:
00045 static const char* __s_getDataType_() { return "hector_std_msgs/Float64"; }
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 "e6c99c37e6f9fe98e071d524cc164e65"; }
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 float64 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::Float64_<ContainerAllocator> > Ptr;
00111 typedef boost::shared_ptr< ::hector_std_msgs::Float64_<ContainerAllocator> const> ConstPtr;
00112 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00113 };
00114 typedef ::hector_std_msgs::Float64_<std::allocator<void> > Float64;
00115
00116 typedef boost::shared_ptr< ::hector_std_msgs::Float64> Float64Ptr;
00117 typedef boost::shared_ptr< ::hector_std_msgs::Float64 const> Float64ConstPtr;
00118
00119
00120 template<typename ContainerAllocator>
00121 std::ostream& operator<<(std::ostream& s, const ::hector_std_msgs::Float64_<ContainerAllocator> & v)
00122 {
00123 ros::message_operations::Printer< ::hector_std_msgs::Float64_<ContainerAllocator> >::stream(s, "", v);
00124 return s;}
00125
00126 }
00127
00128 namespace ros
00129 {
00130 namespace message_traits
00131 {
00132 template<class ContainerAllocator> struct IsMessage< ::hector_std_msgs::Float64_<ContainerAllocator> > : public TrueType {};
00133 template<class ContainerAllocator> struct IsMessage< ::hector_std_msgs::Float64_<ContainerAllocator> const> : public TrueType {};
00134 template<class ContainerAllocator>
00135 struct MD5Sum< ::hector_std_msgs::Float64_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "e6c99c37e6f9fe98e071d524cc164e65";
00139 }
00140
00141 static const char* value(const ::hector_std_msgs::Float64_<ContainerAllocator> &) { return value(); }
00142 static const uint64_t static_value1 = 0xe6c99c37e6f9fe98ULL;
00143 static const uint64_t static_value2 = 0xe071d524cc164e65ULL;
00144 };
00145
00146 template<class ContainerAllocator>
00147 struct DataType< ::hector_std_msgs::Float64_<ContainerAllocator> > {
00148 static const char* value()
00149 {
00150 return "hector_std_msgs/Float64";
00151 }
00152
00153 static const char* value(const ::hector_std_msgs::Float64_<ContainerAllocator> &) { return value(); }
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct Definition< ::hector_std_msgs::Float64_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "Header header\n\
00161 float64 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::Float64_<ContainerAllocator> &) { return value(); }
00185 };
00186
00187 template<class ContainerAllocator> struct HasHeader< ::hector_std_msgs::Float64_<ContainerAllocator> > : public TrueType {};
00188 template<class ContainerAllocator> struct HasHeader< const ::hector_std_msgs::Float64_<ContainerAllocator> > : public TrueType {};
00189 }
00190 }
00191
00192 namespace ros
00193 {
00194 namespace serialization
00195 {
00196
00197 template<class ContainerAllocator> struct Serializer< ::hector_std_msgs::Float64_<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 };
00207 }
00208 }
00209
00210 namespace ros
00211 {
00212 namespace message_operations
00213 {
00214
00215 template<class ContainerAllocator>
00216 struct Printer< ::hector_std_msgs::Float64_<ContainerAllocator> >
00217 {
00218 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::hector_std_msgs::Float64_<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<double>::stream(s, indent + " ", v.data);
00225 }
00226 };
00227
00228
00229 }
00230 }
00231
00232 #endif // HECTOR_STD_MSGS_MESSAGE_FLOAT64_H
00233