LaptopChargeStatus.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-turtlebot/doc_stacks/2014-10-06_07-57-03.419264/turtlebot/linux_hardware/msg/LaptopChargeStatus.msg */
00002 #ifndef LINUX_HARDWARE_MESSAGE_LAPTOPCHARGESTATUS_H
00003 #define LINUX_HARDWARE_MESSAGE_LAPTOPCHARGESTATUS_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 linux_hardware
00020 {
00021 template <class ContainerAllocator>
00022 struct LaptopChargeStatus_ {
00023   typedef LaptopChargeStatus_<ContainerAllocator> Type;
00024 
00025   LaptopChargeStatus_()
00026   : header()
00027   , voltage(0.0)
00028   , rate(0.0)
00029   , charge(0.0)
00030   , capacity(0.0)
00031   , design_capacity(0.0)
00032   , percentage(0)
00033   , charge_state(0)
00034   , present(false)
00035   {
00036   }
00037 
00038   LaptopChargeStatus_(const ContainerAllocator& _alloc)
00039   : header(_alloc)
00040   , voltage(0.0)
00041   , rate(0.0)
00042   , charge(0.0)
00043   , capacity(0.0)
00044   , design_capacity(0.0)
00045   , percentage(0)
00046   , charge_state(0)
00047   , present(false)
00048   {
00049   }
00050 
00051   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00052    ::std_msgs::Header_<ContainerAllocator>  header;
00053 
00054   typedef float _voltage_type;
00055   float voltage;
00056 
00057   typedef float _rate_type;
00058   float rate;
00059 
00060   typedef float _charge_type;
00061   float charge;
00062 
00063   typedef float _capacity_type;
00064   float capacity;
00065 
00066   typedef float _design_capacity_type;
00067   float design_capacity;
00068 
00069   typedef int32_t _percentage_type;
00070   int32_t percentage;
00071 
00072   typedef uint8_t _charge_state_type;
00073   uint8_t charge_state;
00074 
00075   typedef uint8_t _present_type;
00076   uint8_t present;
00077 
00078   enum { DISCHARGING = 0 };
00079   enum { CHARGING = 1 };
00080   enum { CHARGED = 2 };
00081 
00082   typedef boost::shared_ptr< ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> > Ptr;
00083   typedef boost::shared_ptr< ::linux_hardware::LaptopChargeStatus_<ContainerAllocator>  const> ConstPtr;
00084   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00085 }; // struct LaptopChargeStatus
00086 typedef  ::linux_hardware::LaptopChargeStatus_<std::allocator<void> > LaptopChargeStatus;
00087 
00088 typedef boost::shared_ptr< ::linux_hardware::LaptopChargeStatus> LaptopChargeStatusPtr;
00089 typedef boost::shared_ptr< ::linux_hardware::LaptopChargeStatus const> LaptopChargeStatusConstPtr;
00090 
00091 
00092 template<typename ContainerAllocator>
00093 std::ostream& operator<<(std::ostream& s, const  ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> & v)
00094 {
00095   ros::message_operations::Printer< ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> >::stream(s, "", v);
00096   return s;}
00097 
00098 } // namespace linux_hardware
00099 
00100 namespace ros
00101 {
00102 namespace message_traits
00103 {
00104 template<class ContainerAllocator> struct IsMessage< ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> > : public TrueType {};
00105 template<class ContainerAllocator> struct IsMessage< ::linux_hardware::LaptopChargeStatus_<ContainerAllocator>  const> : public TrueType {};
00106 template<class ContainerAllocator>
00107 struct MD5Sum< ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> > {
00108   static const char* value() 
00109   {
00110     return "201bffbb268bdae8f8389acae4ae6db2";
00111   }
00112 
00113   static const char* value(const  ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> &) { return value(); } 
00114   static const uint64_t static_value1 = 0x201bffbb268bdae8ULL;
00115   static const uint64_t static_value2 = 0xf8389acae4ae6db2ULL;
00116 };
00117 
00118 template<class ContainerAllocator>
00119 struct DataType< ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> > {
00120   static const char* value() 
00121   {
00122     return "linux_hardware/LaptopChargeStatus";
00123   }
00124 
00125   static const char* value(const  ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> &) { return value(); } 
00126 };
00127 
00128 template<class ContainerAllocator>
00129 struct Definition< ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> > {
00130   static const char* value() 
00131   {
00132     return "uint8 DISCHARGING = 0\n\
00133 uint8 CHARGING    = 1\n\
00134 uint8 CHARGED     = 2\n\
00135 \n\
00136 Header  header\n\
00137 float32 voltage          # Voltage in Volts\n\
00138 float32 rate             # Negative when discharging (A)\n\
00139 float32 charge           # Current charge in Ah\n\
00140 float32 capacity         # Capacity in Ah (last full capacity)\n\
00141 float32 design_capacity  # Capacity in Ah (design capacity)\n\
00142 int32   percentage       # Charge percentage\n\
00143 uint8   charge_state     # Enum \n\
00144 bool    present          # Should be an error if battery is not present\n\
00145 ================================================================================\n\
00146 MSG: std_msgs/Header\n\
00147 # Standard metadata for higher-level stamped data types.\n\
00148 # This is generally used to communicate timestamped data \n\
00149 # in a particular coordinate frame.\n\
00150 # \n\
00151 # sequence ID: consecutively increasing ID \n\
00152 uint32 seq\n\
00153 #Two-integer timestamp that is expressed as:\n\
00154 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00155 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00156 # time-handling sugar is provided by the client library\n\
00157 time stamp\n\
00158 #Frame this data is associated with\n\
00159 # 0: no frame\n\
00160 # 1: global frame\n\
00161 string frame_id\n\
00162 \n\
00163 ";
00164   }
00165 
00166   static const char* value(const  ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> &) { return value(); } 
00167 };
00168 
00169 template<class ContainerAllocator> struct HasHeader< ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> > : public TrueType {};
00170 template<class ContainerAllocator> struct HasHeader< const ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> > : public TrueType {};
00171 } // namespace message_traits
00172 } // namespace ros
00173 
00174 namespace ros
00175 {
00176 namespace serialization
00177 {
00178 
00179 template<class ContainerAllocator> struct Serializer< ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> >
00180 {
00181   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00182   {
00183     stream.next(m.header);
00184     stream.next(m.voltage);
00185     stream.next(m.rate);
00186     stream.next(m.charge);
00187     stream.next(m.capacity);
00188     stream.next(m.design_capacity);
00189     stream.next(m.percentage);
00190     stream.next(m.charge_state);
00191     stream.next(m.present);
00192   }
00193 
00194   ROS_DECLARE_ALLINONE_SERIALIZER;
00195 }; // struct LaptopChargeStatus_
00196 } // namespace serialization
00197 } // namespace ros
00198 
00199 namespace ros
00200 {
00201 namespace message_operations
00202 {
00203 
00204 template<class ContainerAllocator>
00205 struct Printer< ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> >
00206 {
00207   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::linux_hardware::LaptopChargeStatus_<ContainerAllocator> & v) 
00208   {
00209     s << indent << "header: ";
00210 s << std::endl;
00211     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00212     s << indent << "voltage: ";
00213     Printer<float>::stream(s, indent + "  ", v.voltage);
00214     s << indent << "rate: ";
00215     Printer<float>::stream(s, indent + "  ", v.rate);
00216     s << indent << "charge: ";
00217     Printer<float>::stream(s, indent + "  ", v.charge);
00218     s << indent << "capacity: ";
00219     Printer<float>::stream(s, indent + "  ", v.capacity);
00220     s << indent << "design_capacity: ";
00221     Printer<float>::stream(s, indent + "  ", v.design_capacity);
00222     s << indent << "percentage: ";
00223     Printer<int32_t>::stream(s, indent + "  ", v.percentage);
00224     s << indent << "charge_state: ";
00225     Printer<uint8_t>::stream(s, indent + "  ", v.charge_state);
00226     s << indent << "present: ";
00227     Printer<uint8_t>::stream(s, indent + "  ", v.present);
00228   }
00229 };
00230 
00231 
00232 } // namespace message_operations
00233 } // namespace ros
00234 
00235 #endif // LINUX_HARDWARE_MESSAGE_LAPTOPCHARGESTATUS_H
00236 


linux_hardware
Author(s): Daniel Stonier
autogenerated on Mon Oct 6 2014 08:01:08