00001
00002 #ifndef MAV_MSGS_MESSAGE_HEIGHT_H
00003 #define MAV_MSGS_MESSAGE_HEIGHT_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 mav_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct Height_ {
00023 typedef Height_<ContainerAllocator> Type;
00024
00025 Height_()
00026 : header()
00027 , height(0.0)
00028 , height_variance(0.0)
00029 , climb(0.0)
00030 , climb_variance(0.0)
00031 {
00032 }
00033
00034 Height_(const ContainerAllocator& _alloc)
00035 : header(_alloc)
00036 , height(0.0)
00037 , height_variance(0.0)
00038 , climb(0.0)
00039 , climb_variance(0.0)
00040 {
00041 }
00042
00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00044 ::std_msgs::Header_<ContainerAllocator> header;
00045
00046 typedef double _height_type;
00047 double height;
00048
00049 typedef double _height_variance_type;
00050 double height_variance;
00051
00052 typedef double _climb_type;
00053 double climb;
00054
00055 typedef double _climb_variance_type;
00056 double climb_variance;
00057
00058
00059 private:
00060 static const char* __s_getDataType_() { return "mav_msgs/Height"; }
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 "a78e1294ab4281402b080d0478dd360c"; }
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 "# Software License Agreement (BSD License)\n\
00075 #\n\
00076 # Copyright (c) 2010\n\
00077 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\
00078 # All rights reserved.\n\
00079 #\n\
00080 # Redistribution and use in source and binary forms, with or without\n\
00081 # modification, are permitted provided that the following conditions\n\
00082 # are met:\n\
00083 #\n\
00084 # * Redistributions of source code must retain the above copyright\n\
00085 # notice, this list of conditions and the following disclaimer.\n\
00086 # * Redistributions in binary form must reproduce the above\n\
00087 # copyright notice, this list of conditions and the following\n\
00088 # disclaimer in the documentation and/or other materials provided\n\
00089 # with the distribution.\n\
00090 # * Neither the name of CCNY Robotics Lab nor the names of its\n\
00091 # contributors may be used to endorse or promote products derived\n\
00092 # from this software without specific prior written permission.\n\
00093 #\n\
00094 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
00095 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
00096 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\
00097 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\
00098 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\
00099 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\
00100 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\
00101 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
00102 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\
00103 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\
00104 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\
00105 # POSSIBILITY OF SUCH DAMAGE.\n\
00106 \n\
00107 Header header\n\
00108 \n\
00109 float64 height\n\
00110 float64 height_variance\n\
00111 \n\
00112 float64 climb\n\
00113 float64 climb_variance\n\
00114 \n\
00115 ================================================================================\n\
00116 MSG: std_msgs/Header\n\
00117 # Standard metadata for higher-level stamped data types.\n\
00118 # This is generally used to communicate timestamped data \n\
00119 # in a particular coordinate frame.\n\
00120 # \n\
00121 # sequence ID: consecutively increasing ID \n\
00122 uint32 seq\n\
00123 #Two-integer timestamp that is expressed as:\n\
00124 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00125 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00126 # time-handling sugar is provided by the client library\n\
00127 time stamp\n\
00128 #Frame this data is associated with\n\
00129 # 0: no frame\n\
00130 # 1: global frame\n\
00131 string frame_id\n\
00132 \n\
00133 "; }
00134 public:
00135 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00136
00137 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00138
00139 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00140 {
00141 ros::serialization::OStream stream(write_ptr, 1000000000);
00142 ros::serialization::serialize(stream, header);
00143 ros::serialization::serialize(stream, height);
00144 ros::serialization::serialize(stream, height_variance);
00145 ros::serialization::serialize(stream, climb);
00146 ros::serialization::serialize(stream, climb_variance);
00147 return stream.getData();
00148 }
00149
00150 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00151 {
00152 ros::serialization::IStream stream(read_ptr, 1000000000);
00153 ros::serialization::deserialize(stream, header);
00154 ros::serialization::deserialize(stream, height);
00155 ros::serialization::deserialize(stream, height_variance);
00156 ros::serialization::deserialize(stream, climb);
00157 ros::serialization::deserialize(stream, climb_variance);
00158 return stream.getData();
00159 }
00160
00161 ROS_DEPRECATED virtual uint32_t serializationLength() const
00162 {
00163 uint32_t size = 0;
00164 size += ros::serialization::serializationLength(header);
00165 size += ros::serialization::serializationLength(height);
00166 size += ros::serialization::serializationLength(height_variance);
00167 size += ros::serialization::serializationLength(climb);
00168 size += ros::serialization::serializationLength(climb_variance);
00169 return size;
00170 }
00171
00172 typedef boost::shared_ptr< ::mav_msgs::Height_<ContainerAllocator> > Ptr;
00173 typedef boost::shared_ptr< ::mav_msgs::Height_<ContainerAllocator> const> ConstPtr;
00174 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00175 };
00176 typedef ::mav_msgs::Height_<std::allocator<void> > Height;
00177
00178 typedef boost::shared_ptr< ::mav_msgs::Height> HeightPtr;
00179 typedef boost::shared_ptr< ::mav_msgs::Height const> HeightConstPtr;
00180
00181
00182 template<typename ContainerAllocator>
00183 std::ostream& operator<<(std::ostream& s, const ::mav_msgs::Height_<ContainerAllocator> & v)
00184 {
00185 ros::message_operations::Printer< ::mav_msgs::Height_<ContainerAllocator> >::stream(s, "", v);
00186 return s;}
00187
00188 }
00189
00190 namespace ros
00191 {
00192 namespace message_traits
00193 {
00194 template<class ContainerAllocator> struct IsMessage< ::mav_msgs::Height_<ContainerAllocator> > : public TrueType {};
00195 template<class ContainerAllocator> struct IsMessage< ::mav_msgs::Height_<ContainerAllocator> const> : public TrueType {};
00196 template<class ContainerAllocator>
00197 struct MD5Sum< ::mav_msgs::Height_<ContainerAllocator> > {
00198 static const char* value()
00199 {
00200 return "a78e1294ab4281402b080d0478dd360c";
00201 }
00202
00203 static const char* value(const ::mav_msgs::Height_<ContainerAllocator> &) { return value(); }
00204 static const uint64_t static_value1 = 0xa78e1294ab428140ULL;
00205 static const uint64_t static_value2 = 0x2b080d0478dd360cULL;
00206 };
00207
00208 template<class ContainerAllocator>
00209 struct DataType< ::mav_msgs::Height_<ContainerAllocator> > {
00210 static const char* value()
00211 {
00212 return "mav_msgs/Height";
00213 }
00214
00215 static const char* value(const ::mav_msgs::Height_<ContainerAllocator> &) { return value(); }
00216 };
00217
00218 template<class ContainerAllocator>
00219 struct Definition< ::mav_msgs::Height_<ContainerAllocator> > {
00220 static const char* value()
00221 {
00222 return "# Software License Agreement (BSD License)\n\
00223 #\n\
00224 # Copyright (c) 2010\n\
00225 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\
00226 # All rights reserved.\n\
00227 #\n\
00228 # Redistribution and use in source and binary forms, with or without\n\
00229 # modification, are permitted provided that the following conditions\n\
00230 # are met:\n\
00231 #\n\
00232 # * Redistributions of source code must retain the above copyright\n\
00233 # notice, this list of conditions and the following disclaimer.\n\
00234 # * Redistributions in binary form must reproduce the above\n\
00235 # copyright notice, this list of conditions and the following\n\
00236 # disclaimer in the documentation and/or other materials provided\n\
00237 # with the distribution.\n\
00238 # * Neither the name of CCNY Robotics Lab nor the names of its\n\
00239 # contributors may be used to endorse or promote products derived\n\
00240 # from this software without specific prior written permission.\n\
00241 #\n\
00242 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
00243 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
00244 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\
00245 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\
00246 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\
00247 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\
00248 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\
00249 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
00250 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\
00251 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\
00252 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\
00253 # POSSIBILITY OF SUCH DAMAGE.\n\
00254 \n\
00255 Header header\n\
00256 \n\
00257 float64 height\n\
00258 float64 height_variance\n\
00259 \n\
00260 float64 climb\n\
00261 float64 climb_variance\n\
00262 \n\
00263 ================================================================================\n\
00264 MSG: std_msgs/Header\n\
00265 # Standard metadata for higher-level stamped data types.\n\
00266 # This is generally used to communicate timestamped data \n\
00267 # in a particular coordinate frame.\n\
00268 # \n\
00269 # sequence ID: consecutively increasing ID \n\
00270 uint32 seq\n\
00271 #Two-integer timestamp that is expressed as:\n\
00272 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00273 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00274 # time-handling sugar is provided by the client library\n\
00275 time stamp\n\
00276 #Frame this data is associated with\n\
00277 # 0: no frame\n\
00278 # 1: global frame\n\
00279 string frame_id\n\
00280 \n\
00281 ";
00282 }
00283
00284 static const char* value(const ::mav_msgs::Height_<ContainerAllocator> &) { return value(); }
00285 };
00286
00287 template<class ContainerAllocator> struct HasHeader< ::mav_msgs::Height_<ContainerAllocator> > : public TrueType {};
00288 template<class ContainerAllocator> struct HasHeader< const ::mav_msgs::Height_<ContainerAllocator> > : public TrueType {};
00289 }
00290 }
00291
00292 namespace ros
00293 {
00294 namespace serialization
00295 {
00296
00297 template<class ContainerAllocator> struct Serializer< ::mav_msgs::Height_<ContainerAllocator> >
00298 {
00299 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00300 {
00301 stream.next(m.header);
00302 stream.next(m.height);
00303 stream.next(m.height_variance);
00304 stream.next(m.climb);
00305 stream.next(m.climb_variance);
00306 }
00307
00308 ROS_DECLARE_ALLINONE_SERIALIZER;
00309 };
00310 }
00311 }
00312
00313 namespace ros
00314 {
00315 namespace message_operations
00316 {
00317
00318 template<class ContainerAllocator>
00319 struct Printer< ::mav_msgs::Height_<ContainerAllocator> >
00320 {
00321 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::mav_msgs::Height_<ContainerAllocator> & v)
00322 {
00323 s << indent << "header: ";
00324 s << std::endl;
00325 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00326 s << indent << "height: ";
00327 Printer<double>::stream(s, indent + " ", v.height);
00328 s << indent << "height_variance: ";
00329 Printer<double>::stream(s, indent + " ", v.height_variance);
00330 s << indent << "climb: ";
00331 Printer<double>::stream(s, indent + " ", v.climb);
00332 s << indent << "climb_variance: ";
00333 Printer<double>::stream(s, indent + " ", v.climb_variance);
00334 }
00335 };
00336
00337
00338 }
00339 }
00340
00341 #endif // MAV_MSGS_MESSAGE_HEIGHT_H
00342