Go to the documentation of this file.00001
00002 #ifndef HECTOR_UAV_MSGS_MESSAGE_RAWMAGNETIC_H
00003 #define HECTOR_UAV_MSGS_MESSAGE_RAWMAGNETIC_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_uav_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct RawMagnetic_ {
00023 typedef RawMagnetic_<ContainerAllocator> Type;
00024
00025 RawMagnetic_()
00026 : header()
00027 , channel()
00028 {
00029 channel.assign(0.0);
00030 }
00031
00032 RawMagnetic_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , channel()
00035 {
00036 channel.assign(0.0);
00037 }
00038
00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00040 ::std_msgs::Header_<ContainerAllocator> header;
00041
00042 typedef boost::array<double, 3> _channel_type;
00043 boost::array<double, 3> channel;
00044
00045
00046 typedef boost::shared_ptr< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > Ptr;
00047 typedef boost::shared_ptr< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> const> ConstPtr;
00048 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00049 };
00050 typedef ::hector_uav_msgs::RawMagnetic_<std::allocator<void> > RawMagnetic;
00051
00052 typedef boost::shared_ptr< ::hector_uav_msgs::RawMagnetic> RawMagneticPtr;
00053 typedef boost::shared_ptr< ::hector_uav_msgs::RawMagnetic const> RawMagneticConstPtr;
00054
00055
00056 template<typename ContainerAllocator>
00057 std::ostream& operator<<(std::ostream& s, const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> & v)
00058 {
00059 ros::message_operations::Printer< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> >::stream(s, "", v);
00060 return s;}
00061
00062 }
00063
00064 namespace ros
00065 {
00066 namespace message_traits
00067 {
00068 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > : public TrueType {};
00069 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> const> : public TrueType {};
00070 template<class ContainerAllocator>
00071 struct MD5Sum< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > {
00072 static const char* value()
00073 {
00074 return "babd510868ac7b486e2097c79e1384c9";
00075 }
00076
00077 static const char* value(const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> &) { return value(); }
00078 static const uint64_t static_value1 = 0xbabd510868ac7b48ULL;
00079 static const uint64_t static_value2 = 0x6e2097c79e1384c9ULL;
00080 };
00081
00082 template<class ContainerAllocator>
00083 struct DataType< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > {
00084 static const char* value()
00085 {
00086 return "hector_uav_msgs/RawMagnetic";
00087 }
00088
00089 static const char* value(const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> &) { return value(); }
00090 };
00091
00092 template<class ContainerAllocator>
00093 struct Definition< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > {
00094 static const char* value()
00095 {
00096 return "Header header\n\
00097 float64[3] channel\n\
00098 \n\
00099 ================================================================================\n\
00100 MSG: std_msgs/Header\n\
00101 # Standard metadata for higher-level stamped data types.\n\
00102 # This is generally used to communicate timestamped data \n\
00103 # in a particular coordinate frame.\n\
00104 # \n\
00105 # sequence ID: consecutively increasing ID \n\
00106 uint32 seq\n\
00107 #Two-integer timestamp that is expressed as:\n\
00108 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00109 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00110 # time-handling sugar is provided by the client library\n\
00111 time stamp\n\
00112 #Frame this data is associated with\n\
00113 # 0: no frame\n\
00114 # 1: global frame\n\
00115 string frame_id\n\
00116 \n\
00117 ";
00118 }
00119
00120 static const char* value(const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> &) { return value(); }
00121 };
00122
00123 template<class ContainerAllocator> struct HasHeader< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > : public TrueType {};
00124 template<class ContainerAllocator> struct HasHeader< const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > : public TrueType {};
00125 }
00126 }
00127
00128 namespace ros
00129 {
00130 namespace serialization
00131 {
00132
00133 template<class ContainerAllocator> struct Serializer< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> >
00134 {
00135 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00136 {
00137 stream.next(m.header);
00138 stream.next(m.channel);
00139 }
00140
00141 ROS_DECLARE_ALLINONE_SERIALIZER;
00142 };
00143 }
00144 }
00145
00146 namespace ros
00147 {
00148 namespace message_operations
00149 {
00150
00151 template<class ContainerAllocator>
00152 struct Printer< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> >
00153 {
00154 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> & v)
00155 {
00156 s << indent << "header: ";
00157 s << std::endl;
00158 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00159 s << indent << "channel[]" << std::endl;
00160 for (size_t i = 0; i < v.channel.size(); ++i)
00161 {
00162 s << indent << " channel[" << i << "]: ";
00163 Printer<double>::stream(s, indent + " ", v.channel[i]);
00164 }
00165 }
00166 };
00167
00168
00169 }
00170 }
00171
00172 #endif // HECTOR_UAV_MSGS_MESSAGE_RAWMAGNETIC_H
00173