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


pr2_msgs
Author(s): Eric Berger and many others
autogenerated on Mon Jan 6 2014 11:34:07