Status.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-mav_tools/doc_stacks/2014-01-02_11-25-37.570844/mav_tools/mav_msgs/msg/Status.msg */
00002 #ifndef MAV_MSGS_MESSAGE_STATUS_H
00003 #define MAV_MSGS_MESSAGE_STATUS_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 Status_ {
00023   typedef Status_<ContainerAllocator> Type;
00024 
00025   Status_()
00026   : header()
00027   , flight_state(0)
00028   {
00029   }
00030 
00031   Status_(const ContainerAllocator& _alloc)
00032   : header(_alloc)
00033   , flight_state(0)
00034   {
00035   }
00036 
00037   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00038    ::std_msgs::Header_<ContainerAllocator>  header;
00039 
00040   typedef uint8_t _flight_state_type;
00041   uint8_t flight_state;
00042 
00043 
00044   typedef boost::shared_ptr< ::mav_msgs::Status_<ContainerAllocator> > Ptr;
00045   typedef boost::shared_ptr< ::mav_msgs::Status_<ContainerAllocator>  const> ConstPtr;
00046   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 }; // struct Status
00048 typedef  ::mav_msgs::Status_<std::allocator<void> > Status;
00049 
00050 typedef boost::shared_ptr< ::mav_msgs::Status> StatusPtr;
00051 typedef boost::shared_ptr< ::mav_msgs::Status const> StatusConstPtr;
00052 
00053 
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const  ::mav_msgs::Status_<ContainerAllocator> & v)
00056 {
00057   ros::message_operations::Printer< ::mav_msgs::Status_<ContainerAllocator> >::stream(s, "", v);
00058   return s;}
00059 
00060 } // namespace mav_msgs
00061 
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::mav_msgs::Status_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::mav_msgs::Status_<ContainerAllocator>  const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::mav_msgs::Status_<ContainerAllocator> > {
00070   static const char* value() 
00071   {
00072     return "a057741fd00ea7c39c0e7269b0defec7";
00073   }
00074 
00075   static const char* value(const  ::mav_msgs::Status_<ContainerAllocator> &) { return value(); } 
00076   static const uint64_t static_value1 = 0xa057741fd00ea7c3ULL;
00077   static const uint64_t static_value2 = 0x9c0e7269b0defec7ULL;
00078 };
00079 
00080 template<class ContainerAllocator>
00081 struct DataType< ::mav_msgs::Status_<ContainerAllocator> > {
00082   static const char* value() 
00083   {
00084     return "mav_msgs/Status";
00085   }
00086 
00087   static const char* value(const  ::mav_msgs::Status_<ContainerAllocator> &) { return value(); } 
00088 };
00089 
00090 template<class ContainerAllocator>
00091 struct Definition< ::mav_msgs::Status_<ContainerAllocator> > {
00092   static const char* value() 
00093   {
00094     return "# Software License Agreement (BSD License)\n\
00095 #\n\
00096 # Copyright (c) 2010\n\
00097 #  Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\
00098 # All rights reserved.\n\
00099 #\n\
00100 # Redistribution and use in source and binary forms, with or without\n\
00101 # modification, are permitted provided that the following conditions\n\
00102 # are met:\n\
00103 #\n\
00104 #  * Redistributions of source code must retain the above copyright\n\
00105 #    notice, this list of conditions and the following disclaimer.\n\
00106 #  * Redistributions in binary form must reproduce the above\n\
00107 #    copyright notice, this list of conditions and the following\n\
00108 #    disclaimer in the documentation and/or other materials provided\n\
00109 #    with the distribution.\n\
00110 #  * Neither the name of CCNY Robotics Lab nor the names of its\n\
00111 #    contributors may be used to endorse or promote products derived\n\
00112 #    from this software without specific prior written permission.\n\
00113 #\n\
00114 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
00115 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
00116 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\
00117 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\
00118 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\
00119 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\
00120 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\
00121 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
00122 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\
00123 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\
00124 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\
00125 # POSSIBILITY OF SUCH DAMAGE.\n\
00126 \n\
00127 Header header\n\
00128 \n\
00129 uint8 flight_state\n\
00130 \n\
00131 ================================================================================\n\
00132 MSG: std_msgs/Header\n\
00133 # Standard metadata for higher-level stamped data types.\n\
00134 # This is generally used to communicate timestamped data \n\
00135 # in a particular coordinate frame.\n\
00136 # \n\
00137 # sequence ID: consecutively increasing ID \n\
00138 uint32 seq\n\
00139 #Two-integer timestamp that is expressed as:\n\
00140 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00141 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00142 # time-handling sugar is provided by the client library\n\
00143 time stamp\n\
00144 #Frame this data is associated with\n\
00145 # 0: no frame\n\
00146 # 1: global frame\n\
00147 string frame_id\n\
00148 \n\
00149 ";
00150   }
00151 
00152   static const char* value(const  ::mav_msgs::Status_<ContainerAllocator> &) { return value(); } 
00153 };
00154 
00155 template<class ContainerAllocator> struct HasHeader< ::mav_msgs::Status_<ContainerAllocator> > : public TrueType {};
00156 template<class ContainerAllocator> struct HasHeader< const ::mav_msgs::Status_<ContainerAllocator> > : public TrueType {};
00157 } // namespace message_traits
00158 } // namespace ros
00159 
00160 namespace ros
00161 {
00162 namespace serialization
00163 {
00164 
00165 template<class ContainerAllocator> struct Serializer< ::mav_msgs::Status_<ContainerAllocator> >
00166 {
00167   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00168   {
00169     stream.next(m.header);
00170     stream.next(m.flight_state);
00171   }
00172 
00173   ROS_DECLARE_ALLINONE_SERIALIZER;
00174 }; // struct Status_
00175 } // namespace serialization
00176 } // namespace ros
00177 
00178 namespace ros
00179 {
00180 namespace message_operations
00181 {
00182 
00183 template<class ContainerAllocator>
00184 struct Printer< ::mav_msgs::Status_<ContainerAllocator> >
00185 {
00186   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::mav_msgs::Status_<ContainerAllocator> & v) 
00187   {
00188     s << indent << "header: ";
00189 s << std::endl;
00190     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00191     s << indent << "flight_state: ";
00192     Printer<uint8_t>::stream(s, indent + "  ", v.flight_state);
00193   }
00194 };
00195 
00196 
00197 } // namespace message_operations
00198 } // namespace ros
00199 
00200 #endif // MAV_MSGS_MESSAGE_STATUS_H
00201 


mav_msgs
Author(s): Ivan Dryanovski, William Morris
autogenerated on Thu Jan 2 2014 11:28:10