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