PowerSource.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-clearpath_common/doc_stacks/2014-10-05_22-49-25.060876/clearpath_common/clearpath_base/msg/PowerSource.msg */
00002 #ifndef CLEARPATH_BASE_MESSAGE_POWERSOURCE_H
00003 #define CLEARPATH_BASE_MESSAGE_POWERSOURCE_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 
00018 namespace clearpath_base
00019 {
00020 template <class ContainerAllocator>
00021 struct PowerSource_ {
00022   typedef PowerSource_<ContainerAllocator> Type;
00023 
00024   PowerSource_()
00025   : charge(0.0)
00026   , capacity(0)
00027   , present(false)
00028   , in_use(false)
00029   , description(0)
00030   {
00031   }
00032 
00033   PowerSource_(const ContainerAllocator& _alloc)
00034   : charge(0.0)
00035   , capacity(0)
00036   , present(false)
00037   , in_use(false)
00038   , description(0)
00039   {
00040   }
00041 
00042   typedef float _charge_type;
00043   float charge;
00044 
00045   typedef int16_t _capacity_type;
00046   int16_t capacity;
00047 
00048   typedef uint8_t _present_type;
00049   uint8_t present;
00050 
00051   typedef uint8_t _in_use_type;
00052   uint8_t in_use;
00053 
00054   typedef uint8_t _description_type;
00055   uint8_t description;
00056 
00057 
00058   typedef boost::shared_ptr< ::clearpath_base::PowerSource_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::clearpath_base::PowerSource_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct PowerSource
00062 typedef  ::clearpath_base::PowerSource_<std::allocator<void> > PowerSource;
00063 
00064 typedef boost::shared_ptr< ::clearpath_base::PowerSource> PowerSourcePtr;
00065 typedef boost::shared_ptr< ::clearpath_base::PowerSource const> PowerSourceConstPtr;
00066 
00067 
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const  ::clearpath_base::PowerSource_<ContainerAllocator> & v)
00070 {
00071   ros::message_operations::Printer< ::clearpath_base::PowerSource_<ContainerAllocator> >::stream(s, "", v);
00072   return s;}
00073 
00074 } // namespace clearpath_base
00075 
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::clearpath_base::PowerSource_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::clearpath_base::PowerSource_<ContainerAllocator>  const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::clearpath_base::PowerSource_<ContainerAllocator> > {
00084   static const char* value() 
00085   {
00086     return "adbe384d7d69a337a7f2b6bf1d0139cb";
00087   }
00088 
00089   static const char* value(const  ::clearpath_base::PowerSource_<ContainerAllocator> &) { return value(); } 
00090   static const uint64_t static_value1 = 0xadbe384d7d69a337ULL;
00091   static const uint64_t static_value2 = 0xa7f2b6bf1d0139cbULL;
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct DataType< ::clearpath_base::PowerSource_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "clearpath_base/PowerSource";
00099   }
00100 
00101   static const char* value(const  ::clearpath_base::PowerSource_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator>
00105 struct Definition< ::clearpath_base::PowerSource_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "float32 charge\n\
00109 int16 capacity\n\
00110 bool present\n\
00111 bool in_use\n\
00112 uint8 description\n\
00113 \n\
00114 ";
00115   }
00116 
00117   static const char* value(const  ::clearpath_base::PowerSource_<ContainerAllocator> &) { return value(); } 
00118 };
00119 
00120 template<class ContainerAllocator> struct IsFixedSize< ::clearpath_base::PowerSource_<ContainerAllocator> > : public TrueType {};
00121 } // namespace message_traits
00122 } // namespace ros
00123 
00124 namespace ros
00125 {
00126 namespace serialization
00127 {
00128 
00129 template<class ContainerAllocator> struct Serializer< ::clearpath_base::PowerSource_<ContainerAllocator> >
00130 {
00131   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00132   {
00133     stream.next(m.charge);
00134     stream.next(m.capacity);
00135     stream.next(m.present);
00136     stream.next(m.in_use);
00137     stream.next(m.description);
00138   }
00139 
00140   ROS_DECLARE_ALLINONE_SERIALIZER;
00141 }; // struct PowerSource_
00142 } // namespace serialization
00143 } // namespace ros
00144 
00145 namespace ros
00146 {
00147 namespace message_operations
00148 {
00149 
00150 template<class ContainerAllocator>
00151 struct Printer< ::clearpath_base::PowerSource_<ContainerAllocator> >
00152 {
00153   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::clearpath_base::PowerSource_<ContainerAllocator> & v) 
00154   {
00155     s << indent << "charge: ";
00156     Printer<float>::stream(s, indent + "  ", v.charge);
00157     s << indent << "capacity: ";
00158     Printer<int16_t>::stream(s, indent + "  ", v.capacity);
00159     s << indent << "present: ";
00160     Printer<uint8_t>::stream(s, indent + "  ", v.present);
00161     s << indent << "in_use: ";
00162     Printer<uint8_t>::stream(s, indent + "  ", v.in_use);
00163     s << indent << "description: ";
00164     Printer<uint8_t>::stream(s, indent + "  ", v.description);
00165   }
00166 };
00167 
00168 
00169 } // namespace message_operations
00170 } // namespace ros
00171 
00172 #endif // CLEARPATH_BASE_MESSAGE_POWERSOURCE_H
00173 


clearpath_base
Author(s): Mike Purvis
autogenerated on Sun Oct 5 2014 22:52:08