PlugCommand.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-pr2_simulator/doc_stacks/2014-04-24_15-44-38.945294/pr2_simulator/pr2_gazebo_plugins/msg/PlugCommand.msg */
00002 #ifndef PR2_GAZEBO_PLUGINS_MESSAGE_PLUGCOMMAND_H
00003 #define PR2_GAZEBO_PLUGINS_MESSAGE_PLUGCOMMAND_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_gazebo_plugins
00019 {
00020 template <class ContainerAllocator>
00021 struct PlugCommand_ {
00022   typedef PlugCommand_<ContainerAllocator> Type;
00023 
00024   PlugCommand_()
00025   : ac_present(false)
00026   , charge_rate(0.0)
00027   , discharge_rate(0.0)
00028   , charge(0.0)
00029   {
00030   }
00031 
00032   PlugCommand_(const ContainerAllocator& _alloc)
00033   : ac_present(false)
00034   , charge_rate(0.0)
00035   , discharge_rate(0.0)
00036   , charge(0.0)
00037   {
00038   }
00039 
00040   typedef uint8_t _ac_present_type;
00041   uint8_t ac_present;
00042 
00043   typedef double _charge_rate_type;
00044   double charge_rate;
00045 
00046   typedef double _discharge_rate_type;
00047   double discharge_rate;
00048 
00049   typedef double _charge_type;
00050   double charge;
00051 
00052 
00053   typedef boost::shared_ptr< ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> > Ptr;
00054   typedef boost::shared_ptr< ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator>  const> ConstPtr;
00055   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 }; // struct PlugCommand
00057 typedef  ::pr2_gazebo_plugins::PlugCommand_<std::allocator<void> > PlugCommand;
00058 
00059 typedef boost::shared_ptr< ::pr2_gazebo_plugins::PlugCommand> PlugCommandPtr;
00060 typedef boost::shared_ptr< ::pr2_gazebo_plugins::PlugCommand const> PlugCommandConstPtr;
00061 
00062 
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const  ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> & v)
00065 {
00066   ros::message_operations::Printer< ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> >::stream(s, "", v);
00067   return s;}
00068 
00069 } // namespace pr2_gazebo_plugins
00070 
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator>  const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> > {
00079   static const char* value() 
00080   {
00081     return "852b7035ee3e7fa6390824cf7b7e6dd1";
00082   }
00083 
00084   static const char* value(const  ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> &) { return value(); } 
00085   static const uint64_t static_value1 = 0x852b7035ee3e7fa6ULL;
00086   static const uint64_t static_value2 = 0x390824cf7b7e6dd1ULL;
00087 };
00088 
00089 template<class ContainerAllocator>
00090 struct DataType< ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "pr2_gazebo_plugins/PlugCommand";
00094   }
00095 
00096   static const char* value(const  ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> &) { return value(); } 
00097 };
00098 
00099 template<class ContainerAllocator>
00100 struct Definition< ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> > {
00101   static const char* value() 
00102   {
00103     return "bool ac_present\n\
00104 float64 charge_rate\n\
00105 float64 discharge_rate\n\
00106 float64 charge\n\
00107 \n\
00108 ";
00109   }
00110 
00111   static const char* value(const  ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> &) { return value(); } 
00112 };
00113 
00114 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> > : public TrueType {};
00115 } // namespace message_traits
00116 } // namespace ros
00117 
00118 namespace ros
00119 {
00120 namespace serialization
00121 {
00122 
00123 template<class ContainerAllocator> struct Serializer< ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> >
00124 {
00125   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00126   {
00127     stream.next(m.ac_present);
00128     stream.next(m.charge_rate);
00129     stream.next(m.discharge_rate);
00130     stream.next(m.charge);
00131   }
00132 
00133   ROS_DECLARE_ALLINONE_SERIALIZER;
00134 }; // struct PlugCommand_
00135 } // namespace serialization
00136 } // namespace ros
00137 
00138 namespace ros
00139 {
00140 namespace message_operations
00141 {
00142 
00143 template<class ContainerAllocator>
00144 struct Printer< ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> >
00145 {
00146   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::pr2_gazebo_plugins::PlugCommand_<ContainerAllocator> & v) 
00147   {
00148     s << indent << "ac_present: ";
00149     Printer<uint8_t>::stream(s, indent + "  ", v.ac_present);
00150     s << indent << "charge_rate: ";
00151     Printer<double>::stream(s, indent + "  ", v.charge_rate);
00152     s << indent << "discharge_rate: ";
00153     Printer<double>::stream(s, indent + "  ", v.discharge_rate);
00154     s << indent << "charge: ";
00155     Printer<double>::stream(s, indent + "  ", v.charge);
00156   }
00157 };
00158 
00159 
00160 } // namespace message_operations
00161 } // namespace ros
00162 
00163 #endif // PR2_GAZEBO_PLUGINS_MESSAGE_PLUGCOMMAND_H
00164 


pr2_gazebo_plugins
Author(s): Sachin Chitta, Stu Glaser, John Hsu
autogenerated on Thu Apr 24 2014 15:47:43