battery_status.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-all-iri-ros.pub/doc_stacks/2013-12-06_19-37-16.229269/tibi_dabo_robot/tibi_dabo_msgs/msg/battery_status.msg */
00002 #ifndef TIBI_DABO_MSGS_MESSAGE_BATTERY_STATUS_H
00003 #define TIBI_DABO_MSGS_MESSAGE_BATTERY_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 
00018 namespace tibi_dabo_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct battery_status_ {
00022   typedef battery_status_<ContainerAllocator> Type;
00023 
00024   battery_status_()
00025   : voltage(0.0)
00026   , temperature(0.0)
00027   , status(0)
00028   , input_current(0.0)
00029   , output_current(0.0)
00030   , remaining_capacity(0.0)
00031   , time_to_charged(0.0)
00032   , time_to_discharged(0.0)
00033   {
00034   }
00035 
00036   battery_status_(const ContainerAllocator& _alloc)
00037   : voltage(0.0)
00038   , temperature(0.0)
00039   , status(0)
00040   , input_current(0.0)
00041   , output_current(0.0)
00042   , remaining_capacity(0.0)
00043   , time_to_charged(0.0)
00044   , time_to_discharged(0.0)
00045   {
00046   }
00047 
00048   typedef double _voltage_type;
00049   double voltage;
00050 
00051   typedef double _temperature_type;
00052   double temperature;
00053 
00054   typedef uint8_t _status_type;
00055   uint8_t status;
00056 
00057   typedef double _input_current_type;
00058   double input_current;
00059 
00060   typedef double _output_current_type;
00061   double output_current;
00062 
00063   typedef double _remaining_capacity_type;
00064   double remaining_capacity;
00065 
00066   typedef double _time_to_charged_type;
00067   double time_to_charged;
00068 
00069   typedef double _time_to_discharged_type;
00070   double time_to_discharged;
00071 
00072 
00073   typedef boost::shared_ptr< ::tibi_dabo_msgs::battery_status_<ContainerAllocator> > Ptr;
00074   typedef boost::shared_ptr< ::tibi_dabo_msgs::battery_status_<ContainerAllocator>  const> ConstPtr;
00075   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00076 }; // struct battery_status
00077 typedef  ::tibi_dabo_msgs::battery_status_<std::allocator<void> > battery_status;
00078 
00079 typedef boost::shared_ptr< ::tibi_dabo_msgs::battery_status> battery_statusPtr;
00080 typedef boost::shared_ptr< ::tibi_dabo_msgs::battery_status const> battery_statusConstPtr;
00081 
00082 
00083 template<typename ContainerAllocator>
00084 std::ostream& operator<<(std::ostream& s, const  ::tibi_dabo_msgs::battery_status_<ContainerAllocator> & v)
00085 {
00086   ros::message_operations::Printer< ::tibi_dabo_msgs::battery_status_<ContainerAllocator> >::stream(s, "", v);
00087   return s;}
00088 
00089 } // namespace tibi_dabo_msgs
00090 
00091 namespace ros
00092 {
00093 namespace message_traits
00094 {
00095 template<class ContainerAllocator> struct IsMessage< ::tibi_dabo_msgs::battery_status_<ContainerAllocator> > : public TrueType {};
00096 template<class ContainerAllocator> struct IsMessage< ::tibi_dabo_msgs::battery_status_<ContainerAllocator>  const> : public TrueType {};
00097 template<class ContainerAllocator>
00098 struct MD5Sum< ::tibi_dabo_msgs::battery_status_<ContainerAllocator> > {
00099   static const char* value() 
00100   {
00101     return "9cc10a535f6582725be65cc15269919b";
00102   }
00103 
00104   static const char* value(const  ::tibi_dabo_msgs::battery_status_<ContainerAllocator> &) { return value(); } 
00105   static const uint64_t static_value1 = 0x9cc10a535f658272ULL;
00106   static const uint64_t static_value2 = 0x5be65cc15269919bULL;
00107 };
00108 
00109 template<class ContainerAllocator>
00110 struct DataType< ::tibi_dabo_msgs::battery_status_<ContainerAllocator> > {
00111   static const char* value() 
00112   {
00113     return "tibi_dabo_msgs/battery_status";
00114   }
00115 
00116   static const char* value(const  ::tibi_dabo_msgs::battery_status_<ContainerAllocator> &) { return value(); } 
00117 };
00118 
00119 template<class ContainerAllocator>
00120 struct Definition< ::tibi_dabo_msgs::battery_status_<ContainerAllocator> > {
00121   static const char* value() 
00122   {
00123     return "float64 voltage\n\
00124 float64 temperature\n\
00125 uint8 status\n\
00126 float64 input_current\n\
00127 float64 output_current\n\
00128 float64 remaining_capacity\n\
00129 float64 time_to_charged\n\
00130 float64 time_to_discharged\n\
00131 \n\
00132 ";
00133   }
00134 
00135   static const char* value(const  ::tibi_dabo_msgs::battery_status_<ContainerAllocator> &) { return value(); } 
00136 };
00137 
00138 template<class ContainerAllocator> struct IsFixedSize< ::tibi_dabo_msgs::battery_status_<ContainerAllocator> > : public TrueType {};
00139 } // namespace message_traits
00140 } // namespace ros
00141 
00142 namespace ros
00143 {
00144 namespace serialization
00145 {
00146 
00147 template<class ContainerAllocator> struct Serializer< ::tibi_dabo_msgs::battery_status_<ContainerAllocator> >
00148 {
00149   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00150   {
00151     stream.next(m.voltage);
00152     stream.next(m.temperature);
00153     stream.next(m.status);
00154     stream.next(m.input_current);
00155     stream.next(m.output_current);
00156     stream.next(m.remaining_capacity);
00157     stream.next(m.time_to_charged);
00158     stream.next(m.time_to_discharged);
00159   }
00160 
00161   ROS_DECLARE_ALLINONE_SERIALIZER;
00162 }; // struct battery_status_
00163 } // namespace serialization
00164 } // namespace ros
00165 
00166 namespace ros
00167 {
00168 namespace message_operations
00169 {
00170 
00171 template<class ContainerAllocator>
00172 struct Printer< ::tibi_dabo_msgs::battery_status_<ContainerAllocator> >
00173 {
00174   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::tibi_dabo_msgs::battery_status_<ContainerAllocator> & v) 
00175   {
00176     s << indent << "voltage: ";
00177     Printer<double>::stream(s, indent + "  ", v.voltage);
00178     s << indent << "temperature: ";
00179     Printer<double>::stream(s, indent + "  ", v.temperature);
00180     s << indent << "status: ";
00181     Printer<uint8_t>::stream(s, indent + "  ", v.status);
00182     s << indent << "input_current: ";
00183     Printer<double>::stream(s, indent + "  ", v.input_current);
00184     s << indent << "output_current: ";
00185     Printer<double>::stream(s, indent + "  ", v.output_current);
00186     s << indent << "remaining_capacity: ";
00187     Printer<double>::stream(s, indent + "  ", v.remaining_capacity);
00188     s << indent << "time_to_charged: ";
00189     Printer<double>::stream(s, indent + "  ", v.time_to_charged);
00190     s << indent << "time_to_discharged: ";
00191     Printer<double>::stream(s, indent + "  ", v.time_to_discharged);
00192   }
00193 };
00194 
00195 
00196 } // namespace message_operations
00197 } // namespace ros
00198 
00199 #endif // TIBI_DABO_MSGS_MESSAGE_BATTERY_STATUS_H
00200 


tibi_dabo_msgs
Author(s): Sergi Hernandez Juan
autogenerated on Fri Dec 6 2013 20:03:32