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