$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_quadrotor/hector_uav_msgs/msg/RawMagnetic.msg */ 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 ROS_DEPRECATED uint32_t get_channel_size() const { return (uint32_t)channel.size(); } 00047 private: 00048 static const char* __s_getDataType_() { return "hector_uav_msgs/RawMagnetic"; } 00049 public: 00050 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00051 00052 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00053 00054 private: 00055 static const char* __s_getMD5Sum_() { return "babd510868ac7b486e2097c79e1384c9"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00058 00059 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00060 00061 private: 00062 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00063 float64[3] channel\n\ 00064 \n\ 00065 ================================================================================\n\ 00066 MSG: std_msgs/Header\n\ 00067 # Standard metadata for higher-level stamped data types.\n\ 00068 # This is generally used to communicate timestamped data \n\ 00069 # in a particular coordinate frame.\n\ 00070 # \n\ 00071 # sequence ID: consecutively increasing ID \n\ 00072 uint32 seq\n\ 00073 #Two-integer timestamp that is expressed as:\n\ 00074 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00075 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00076 # time-handling sugar is provided by the client library\n\ 00077 time stamp\n\ 00078 #Frame this data is associated with\n\ 00079 # 0: no frame\n\ 00080 # 1: global frame\n\ 00081 string frame_id\n\ 00082 \n\ 00083 "; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00086 00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00090 { 00091 ros::serialization::OStream stream(write_ptr, 1000000000); 00092 ros::serialization::serialize(stream, header); 00093 ros::serialization::serialize(stream, channel); 00094 return stream.getData(); 00095 } 00096 00097 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00098 { 00099 ros::serialization::IStream stream(read_ptr, 1000000000); 00100 ros::serialization::deserialize(stream, header); 00101 ros::serialization::deserialize(stream, channel); 00102 return stream.getData(); 00103 } 00104 00105 ROS_DEPRECATED virtual uint32_t serializationLength() const 00106 { 00107 uint32_t size = 0; 00108 size += ros::serialization::serializationLength(header); 00109 size += ros::serialization::serializationLength(channel); 00110 return size; 00111 } 00112 00113 typedef boost::shared_ptr< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > Ptr; 00114 typedef boost::shared_ptr< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> const> ConstPtr; 00115 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00116 }; // struct RawMagnetic 00117 typedef ::hector_uav_msgs::RawMagnetic_<std::allocator<void> > RawMagnetic; 00118 00119 typedef boost::shared_ptr< ::hector_uav_msgs::RawMagnetic> RawMagneticPtr; 00120 typedef boost::shared_ptr< ::hector_uav_msgs::RawMagnetic const> RawMagneticConstPtr; 00121 00122 00123 template<typename ContainerAllocator> 00124 std::ostream& operator<<(std::ostream& s, const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> & v) 00125 { 00126 ros::message_operations::Printer< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> >::stream(s, "", v); 00127 return s;} 00128 00129 } // namespace hector_uav_msgs 00130 00131 namespace ros 00132 { 00133 namespace message_traits 00134 { 00135 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > : public TrueType {}; 00136 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> const> : public TrueType {}; 00137 template<class ContainerAllocator> 00138 struct MD5Sum< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > { 00139 static const char* value() 00140 { 00141 return "babd510868ac7b486e2097c79e1384c9"; 00142 } 00143 00144 static const char* value(const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> &) { return value(); } 00145 static const uint64_t static_value1 = 0xbabd510868ac7b48ULL; 00146 static const uint64_t static_value2 = 0x6e2097c79e1384c9ULL; 00147 }; 00148 00149 template<class ContainerAllocator> 00150 struct DataType< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "hector_uav_msgs/RawMagnetic"; 00154 } 00155 00156 static const char* value(const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> &) { return value(); } 00157 }; 00158 00159 template<class ContainerAllocator> 00160 struct Definition< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "Header header\n\ 00164 float64[3] channel\n\ 00165 \n\ 00166 ================================================================================\n\ 00167 MSG: std_msgs/Header\n\ 00168 # Standard metadata for higher-level stamped data types.\n\ 00169 # This is generally used to communicate timestamped data \n\ 00170 # in a particular coordinate frame.\n\ 00171 # \n\ 00172 # sequence ID: consecutively increasing ID \n\ 00173 uint32 seq\n\ 00174 #Two-integer timestamp that is expressed as:\n\ 00175 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00176 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00177 # time-handling sugar is provided by the client library\n\ 00178 time stamp\n\ 00179 #Frame this data is associated with\n\ 00180 # 0: no frame\n\ 00181 # 1: global frame\n\ 00182 string frame_id\n\ 00183 \n\ 00184 "; 00185 } 00186 00187 static const char* value(const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> &) { return value(); } 00188 }; 00189 00190 template<class ContainerAllocator> struct HasHeader< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > : public TrueType {}; 00191 template<class ContainerAllocator> struct HasHeader< const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > : public TrueType {}; 00192 } // namespace message_traits 00193 } // namespace ros 00194 00195 namespace ros 00196 { 00197 namespace serialization 00198 { 00199 00200 template<class ContainerAllocator> struct Serializer< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > 00201 { 00202 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00203 { 00204 stream.next(m.header); 00205 stream.next(m.channel); 00206 } 00207 00208 ROS_DECLARE_ALLINONE_SERIALIZER; 00209 }; // struct RawMagnetic_ 00210 } // namespace serialization 00211 } // namespace ros 00212 00213 namespace ros 00214 { 00215 namespace message_operations 00216 { 00217 00218 template<class ContainerAllocator> 00219 struct Printer< ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> > 00220 { 00221 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::hector_uav_msgs::RawMagnetic_<ContainerAllocator> & v) 00222 { 00223 s << indent << "header: "; 00224 s << std::endl; 00225 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00226 s << indent << "channel[]" << std::endl; 00227 for (size_t i = 0; i < v.channel.size(); ++i) 00228 { 00229 s << indent << " channel[" << i << "]: "; 00230 Printer<double>::stream(s, indent + " ", v.channel[i]); 00231 } 00232 } 00233 }; 00234 00235 00236 } // namespace message_operations 00237 } // namespace ros 00238 00239 #endif // HECTOR_UAV_MSGS_MESSAGE_RAWMAGNETIC_H 00240