Status.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-socrob-ros-pkg/doc_stacks/2014-01-06_11-46-09.555949/socrob-ros-pkg/quads/quad_ros/quad_drivers/quad_fp/msg/Status.msg */
00002 #ifndef QUAD_FP_MESSAGE_STATUS_H
00003 #define QUAD_FP_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 quad_fp
00020 {
00021 template <class ContainerAllocator>
00022 struct Status_ {
00023   typedef Status_<ContainerAllocator> Type;
00024 
00025   Status_()
00026   : header()
00027   , Batt_Voltage(0.0)
00028   , RC_OK(false)
00029   , Motors_ON(false)
00030   , ExCtrl_ON(false)
00031   , Run_Time()
00032   {
00033   }
00034 
00035   Status_(const ContainerAllocator& _alloc)
00036   : header(_alloc)
00037   , Batt_Voltage(0.0)
00038   , RC_OK(false)
00039   , Motors_ON(false)
00040   , ExCtrl_ON(false)
00041   , Run_Time()
00042   {
00043   }
00044 
00045   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00046    ::std_msgs::Header_<ContainerAllocator>  header;
00047 
00048   typedef float _Batt_Voltage_type;
00049   float Batt_Voltage;
00050 
00051   typedef uint8_t _RC_OK_type;
00052   uint8_t RC_OK;
00053 
00054   typedef uint8_t _Motors_ON_type;
00055   uint8_t Motors_ON;
00056 
00057   typedef uint8_t _ExCtrl_ON_type;
00058   uint8_t ExCtrl_ON;
00059 
00060   typedef ros::Duration _Run_Time_type;
00061   ros::Duration Run_Time;
00062 
00063 
00064   typedef boost::shared_ptr< ::quad_fp::Status_<ContainerAllocator> > Ptr;
00065   typedef boost::shared_ptr< ::quad_fp::Status_<ContainerAllocator>  const> ConstPtr;
00066   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00067 }; // struct Status
00068 typedef  ::quad_fp::Status_<std::allocator<void> > Status;
00069 
00070 typedef boost::shared_ptr< ::quad_fp::Status> StatusPtr;
00071 typedef boost::shared_ptr< ::quad_fp::Status const> StatusConstPtr;
00072 
00073 
00074 template<typename ContainerAllocator>
00075 std::ostream& operator<<(std::ostream& s, const  ::quad_fp::Status_<ContainerAllocator> & v)
00076 {
00077   ros::message_operations::Printer< ::quad_fp::Status_<ContainerAllocator> >::stream(s, "", v);
00078   return s;}
00079 
00080 } // namespace quad_fp
00081 
00082 namespace ros
00083 {
00084 namespace message_traits
00085 {
00086 template<class ContainerAllocator> struct IsMessage< ::quad_fp::Status_<ContainerAllocator> > : public TrueType {};
00087 template<class ContainerAllocator> struct IsMessage< ::quad_fp::Status_<ContainerAllocator>  const> : public TrueType {};
00088 template<class ContainerAllocator>
00089 struct MD5Sum< ::quad_fp::Status_<ContainerAllocator> > {
00090   static const char* value() 
00091   {
00092     return "3563f39c50382b772e10b44ffe9cb2ed";
00093   }
00094 
00095   static const char* value(const  ::quad_fp::Status_<ContainerAllocator> &) { return value(); } 
00096   static const uint64_t static_value1 = 0x3563f39c50382b77ULL;
00097   static const uint64_t static_value2 = 0x2e10b44ffe9cb2edULL;
00098 };
00099 
00100 template<class ContainerAllocator>
00101 struct DataType< ::quad_fp::Status_<ContainerAllocator> > {
00102   static const char* value() 
00103   {
00104     return "quad_fp/Status";
00105   }
00106 
00107   static const char* value(const  ::quad_fp::Status_<ContainerAllocator> &) { return value(); } 
00108 };
00109 
00110 template<class ContainerAllocator>
00111 struct Definition< ::quad_fp::Status_<ContainerAllocator> > {
00112   static const char* value() 
00113   {
00114     return "Header header\n\
00115 float32 Batt_Voltage\n\
00116 bool RC_OK\n\
00117 bool Motors_ON\n\
00118 bool ExCtrl_ON\n\
00119 duration Run_Time\n\
00120 \n\
00121 ================================================================================\n\
00122 MSG: std_msgs/Header\n\
00123 # Standard metadata for higher-level stamped data types.\n\
00124 # This is generally used to communicate timestamped data \n\
00125 # in a particular coordinate frame.\n\
00126 # \n\
00127 # sequence ID: consecutively increasing ID \n\
00128 uint32 seq\n\
00129 #Two-integer timestamp that is expressed as:\n\
00130 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00131 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00132 # time-handling sugar is provided by the client library\n\
00133 time stamp\n\
00134 #Frame this data is associated with\n\
00135 # 0: no frame\n\
00136 # 1: global frame\n\
00137 string frame_id\n\
00138 \n\
00139 ";
00140   }
00141 
00142   static const char* value(const  ::quad_fp::Status_<ContainerAllocator> &) { return value(); } 
00143 };
00144 
00145 template<class ContainerAllocator> struct HasHeader< ::quad_fp::Status_<ContainerAllocator> > : public TrueType {};
00146 template<class ContainerAllocator> struct HasHeader< const ::quad_fp::Status_<ContainerAllocator> > : public TrueType {};
00147 } // namespace message_traits
00148 } // namespace ros
00149 
00150 namespace ros
00151 {
00152 namespace serialization
00153 {
00154 
00155 template<class ContainerAllocator> struct Serializer< ::quad_fp::Status_<ContainerAllocator> >
00156 {
00157   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00158   {
00159     stream.next(m.header);
00160     stream.next(m.Batt_Voltage);
00161     stream.next(m.RC_OK);
00162     stream.next(m.Motors_ON);
00163     stream.next(m.ExCtrl_ON);
00164     stream.next(m.Run_Time);
00165   }
00166 
00167   ROS_DECLARE_ALLINONE_SERIALIZER;
00168 }; // struct Status_
00169 } // namespace serialization
00170 } // namespace ros
00171 
00172 namespace ros
00173 {
00174 namespace message_operations
00175 {
00176 
00177 template<class ContainerAllocator>
00178 struct Printer< ::quad_fp::Status_<ContainerAllocator> >
00179 {
00180   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::quad_fp::Status_<ContainerAllocator> & v) 
00181   {
00182     s << indent << "header: ";
00183 s << std::endl;
00184     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00185     s << indent << "Batt_Voltage: ";
00186     Printer<float>::stream(s, indent + "  ", v.Batt_Voltage);
00187     s << indent << "RC_OK: ";
00188     Printer<uint8_t>::stream(s, indent + "  ", v.RC_OK);
00189     s << indent << "Motors_ON: ";
00190     Printer<uint8_t>::stream(s, indent + "  ", v.Motors_ON);
00191     s << indent << "ExCtrl_ON: ";
00192     Printer<uint8_t>::stream(s, indent + "  ", v.ExCtrl_ON);
00193     s << indent << "Run_Time: ";
00194     Printer<ros::Duration>::stream(s, indent + "  ", v.Run_Time);
00195   }
00196 };
00197 
00198 
00199 } // namespace message_operations
00200 } // namespace ros
00201 
00202 #endif // QUAD_FP_MESSAGE_STATUS_H
00203 


quad_fp
Author(s): Henrique
autogenerated on Mon Jan 6 2014 11:48:18