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


ethercat_hardware
Author(s): Rob Wheeler (email: wheeler@willowgarage.com), Maintained by Derek King (email: dking@willowgarage.com)
autogenerated on Thu Apr 24 2014 15:43:45