BatteryState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-pr2_common/doc_stacks/2014-10-06_03-28-41.757574/pr2_common/pr2_msgs/msg/BatteryState.msg */
00002 #ifndef PR2_MSGS_MESSAGE_BATTERYSTATE_H
00003 #define PR2_MSGS_MESSAGE_BATTERYSTATE_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 pr2_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct BatteryState_ {
00022   typedef BatteryState_<ContainerAllocator> Type;
00023 
00024   BatteryState_()
00025   : lastTimeBattery(0)
00026   , batReg()
00027   , batRegFlag()
00028   , batRegTime()
00029   {
00030     batReg.assign(0);
00031     batRegFlag.assign(0);
00032     batRegTime.assign(0);
00033   }
00034 
00035   BatteryState_(const ContainerAllocator& _alloc)
00036   : lastTimeBattery(0)
00037   , batReg()
00038   , batRegFlag()
00039   , batRegTime()
00040   {
00041     batReg.assign(0);
00042     batRegFlag.assign(0);
00043     batRegTime.assign(0);
00044   }
00045 
00046   typedef int32_t _lastTimeBattery_type;
00047   int32_t lastTimeBattery;
00048 
00049   typedef boost::array<uint16_t, 48>  _batReg_type;
00050   boost::array<uint16_t, 48>  batReg;
00051 
00052   typedef boost::array<uint16_t, 48>  _batRegFlag_type;
00053   boost::array<uint16_t, 48>  batRegFlag;
00054 
00055   typedef boost::array<int32_t, 48>  _batRegTime_type;
00056   boost::array<int32_t, 48>  batRegTime;
00057 
00058 
00059   typedef boost::shared_ptr< ::pr2_msgs::BatteryState_<ContainerAllocator> > Ptr;
00060   typedef boost::shared_ptr< ::pr2_msgs::BatteryState_<ContainerAllocator>  const> ConstPtr;
00061   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 }; // struct BatteryState
00063 typedef  ::pr2_msgs::BatteryState_<std::allocator<void> > BatteryState;
00064 
00065 typedef boost::shared_ptr< ::pr2_msgs::BatteryState> BatteryStatePtr;
00066 typedef boost::shared_ptr< ::pr2_msgs::BatteryState const> BatteryStateConstPtr;
00067 
00068 
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const  ::pr2_msgs::BatteryState_<ContainerAllocator> & v)
00071 {
00072   ros::message_operations::Printer< ::pr2_msgs::BatteryState_<ContainerAllocator> >::stream(s, "", v);
00073   return s;}
00074 
00075 } // namespace pr2_msgs
00076 
00077 namespace ros
00078 {
00079 namespace message_traits
00080 {
00081 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::BatteryState_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::BatteryState_<ContainerAllocator>  const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::pr2_msgs::BatteryState_<ContainerAllocator> > {
00085   static const char* value() 
00086   {
00087     return "00e9f996c2fc26700fd25abcd8422db0";
00088   }
00089 
00090   static const char* value(const  ::pr2_msgs::BatteryState_<ContainerAllocator> &) { return value(); } 
00091   static const uint64_t static_value1 = 0x00e9f996c2fc2670ULL;
00092   static const uint64_t static_value2 = 0x0fd25abcd8422db0ULL;
00093 };
00094 
00095 template<class ContainerAllocator>
00096 struct DataType< ::pr2_msgs::BatteryState_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "pr2_msgs/BatteryState";
00100   }
00101 
00102   static const char* value(const  ::pr2_msgs::BatteryState_<ContainerAllocator> &) { return value(); } 
00103 };
00104 
00105 template<class ContainerAllocator>
00106 struct Definition< ::pr2_msgs::BatteryState_<ContainerAllocator> > {
00107   static const char* value() 
00108   {
00109     return "# DEPRECATED.  Use pr2_msgs/BatteryState2 instead.\n\
00110 # Each batteries registers\n\
00111 int32 lastTimeBattery #epoch time\n\
00112 uint16[48] batReg\n\
00113 uint16[48] batRegFlag\n\
00114 int32[48] batRegTime\n\
00115 \n\
00116 ";
00117   }
00118 
00119   static const char* value(const  ::pr2_msgs::BatteryState_<ContainerAllocator> &) { return value(); } 
00120 };
00121 
00122 template<class ContainerAllocator> struct IsFixedSize< ::pr2_msgs::BatteryState_<ContainerAllocator> > : public TrueType {};
00123 } // namespace message_traits
00124 } // namespace ros
00125 
00126 namespace ros
00127 {
00128 namespace serialization
00129 {
00130 
00131 template<class ContainerAllocator> struct Serializer< ::pr2_msgs::BatteryState_<ContainerAllocator> >
00132 {
00133   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00134   {
00135     stream.next(m.lastTimeBattery);
00136     stream.next(m.batReg);
00137     stream.next(m.batRegFlag);
00138     stream.next(m.batRegTime);
00139   }
00140 
00141   ROS_DECLARE_ALLINONE_SERIALIZER;
00142 }; // struct BatteryState_
00143 } // namespace serialization
00144 } // namespace ros
00145 
00146 namespace ros
00147 {
00148 namespace message_operations
00149 {
00150 
00151 template<class ContainerAllocator>
00152 struct Printer< ::pr2_msgs::BatteryState_<ContainerAllocator> >
00153 {
00154   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::pr2_msgs::BatteryState_<ContainerAllocator> & v) 
00155   {
00156     s << indent << "lastTimeBattery: ";
00157     Printer<int32_t>::stream(s, indent + "  ", v.lastTimeBattery);
00158     s << indent << "batReg[]" << std::endl;
00159     for (size_t i = 0; i < v.batReg.size(); ++i)
00160     {
00161       s << indent << "  batReg[" << i << "]: ";
00162       Printer<uint16_t>::stream(s, indent + "  ", v.batReg[i]);
00163     }
00164     s << indent << "batRegFlag[]" << std::endl;
00165     for (size_t i = 0; i < v.batRegFlag.size(); ++i)
00166     {
00167       s << indent << "  batRegFlag[" << i << "]: ";
00168       Printer<uint16_t>::stream(s, indent + "  ", v.batRegFlag[i]);
00169     }
00170     s << indent << "batRegTime[]" << std::endl;
00171     for (size_t i = 0; i < v.batRegTime.size(); ++i)
00172     {
00173       s << indent << "  batRegTime[" << i << "]: ";
00174       Printer<int32_t>::stream(s, indent + "  ", v.batRegTime[i]);
00175     }
00176   }
00177 };
00178 
00179 
00180 } // namespace message_operations
00181 } // namespace ros
00182 
00183 #endif // PR2_MSGS_MESSAGE_BATTERYSTATE_H
00184 


pr2_msgs
Author(s): Eric Berger and many others
autogenerated on Mon Oct 6 2014 03:30:41