BoardInfo.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-pr2_ethercat_drivers/doc_stacks/2014-01-02_11-37-30.654794/pr2_ethercat_drivers/ethercat_hardware/msg/BoardInfo.msg */
00002 #ifndef ETHERCAT_HARDWARE_MESSAGE_BOARDINFO_H
00003 #define ETHERCAT_HARDWARE_MESSAGE_BOARDINFO_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 BoardInfo_ {
00022   typedef BoardInfo_<ContainerAllocator> Type;
00023 
00024   BoardInfo_()
00025   : description()
00026   , product_code(0)
00027   , pcb(0)
00028   , pca(0)
00029   , serial(0)
00030   , firmware_major(0)
00031   , firmware_minor(0)
00032   , board_resistance(0.0)
00033   , max_pwm_ratio(0.0)
00034   , hw_max_current(0.0)
00035   , poor_measured_motor_voltage(false)
00036   {
00037   }
00038 
00039   BoardInfo_(const ContainerAllocator& _alloc)
00040   : description(_alloc)
00041   , product_code(0)
00042   , pcb(0)
00043   , pca(0)
00044   , serial(0)
00045   , firmware_major(0)
00046   , firmware_minor(0)
00047   , board_resistance(0.0)
00048   , max_pwm_ratio(0.0)
00049   , hw_max_current(0.0)
00050   , poor_measured_motor_voltage(false)
00051   {
00052   }
00053 
00054   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _description_type;
00055   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  description;
00056 
00057   typedef uint32_t _product_code_type;
00058   uint32_t product_code;
00059 
00060   typedef uint32_t _pcb_type;
00061   uint32_t pcb;
00062 
00063   typedef uint32_t _pca_type;
00064   uint32_t pca;
00065 
00066   typedef uint32_t _serial_type;
00067   uint32_t serial;
00068 
00069   typedef uint32_t _firmware_major_type;
00070   uint32_t firmware_major;
00071 
00072   typedef uint32_t _firmware_minor_type;
00073   uint32_t firmware_minor;
00074 
00075   typedef double _board_resistance_type;
00076   double board_resistance;
00077 
00078   typedef double _max_pwm_ratio_type;
00079   double max_pwm_ratio;
00080 
00081   typedef double _hw_max_current_type;
00082   double hw_max_current;
00083 
00084   typedef uint8_t _poor_measured_motor_voltage_type;
00085   uint8_t poor_measured_motor_voltage;
00086 
00087 
00088   typedef boost::shared_ptr< ::ethercat_hardware::BoardInfo_<ContainerAllocator> > Ptr;
00089   typedef boost::shared_ptr< ::ethercat_hardware::BoardInfo_<ContainerAllocator>  const> ConstPtr;
00090   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00091 }; // struct BoardInfo
00092 typedef  ::ethercat_hardware::BoardInfo_<std::allocator<void> > BoardInfo;
00093 
00094 typedef boost::shared_ptr< ::ethercat_hardware::BoardInfo> BoardInfoPtr;
00095 typedef boost::shared_ptr< ::ethercat_hardware::BoardInfo const> BoardInfoConstPtr;
00096 
00097 
00098 template<typename ContainerAllocator>
00099 std::ostream& operator<<(std::ostream& s, const  ::ethercat_hardware::BoardInfo_<ContainerAllocator> & v)
00100 {
00101   ros::message_operations::Printer< ::ethercat_hardware::BoardInfo_<ContainerAllocator> >::stream(s, "", v);
00102   return s;}
00103 
00104 } // namespace ethercat_hardware
00105 
00106 namespace ros
00107 {
00108 namespace message_traits
00109 {
00110 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::BoardInfo_<ContainerAllocator> > : public TrueType {};
00111 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::BoardInfo_<ContainerAllocator>  const> : public TrueType {};
00112 template<class ContainerAllocator>
00113 struct MD5Sum< ::ethercat_hardware::BoardInfo_<ContainerAllocator> > {
00114   static const char* value() 
00115   {
00116     return "ffcb87ef2725c5fab7d0d8fcd4c7e7bc";
00117   }
00118 
00119   static const char* value(const  ::ethercat_hardware::BoardInfo_<ContainerAllocator> &) { return value(); } 
00120   static const uint64_t static_value1 = 0xffcb87ef2725c5faULL;
00121   static const uint64_t static_value2 = 0xb7d0d8fcd4c7e7bcULL;
00122 };
00123 
00124 template<class ContainerAllocator>
00125 struct DataType< ::ethercat_hardware::BoardInfo_<ContainerAllocator> > {
00126   static const char* value() 
00127   {
00128     return "ethercat_hardware/BoardInfo";
00129   }
00130 
00131   static const char* value(const  ::ethercat_hardware::BoardInfo_<ContainerAllocator> &) { return value(); } 
00132 };
00133 
00134 template<class ContainerAllocator>
00135 struct Definition< ::ethercat_hardware::BoardInfo_<ContainerAllocator> > {
00136   static const char* value() 
00137   {
00138     return "string description\n\
00139 uint32 product_code\n\
00140 uint32 pcb\n\
00141 uint32 pca\n\
00142 uint32 serial\n\
00143 uint32 firmware_major\n\
00144 uint32 firmware_minor\n\
00145 float64 board_resistance\n\
00146 float64 max_pwm_ratio\n\
00147 float64 hw_max_current\n\
00148 bool poor_measured_motor_voltage\n\
00149 ";
00150   }
00151 
00152   static const char* value(const  ::ethercat_hardware::BoardInfo_<ContainerAllocator> &) { return value(); } 
00153 };
00154 
00155 } // namespace message_traits
00156 } // namespace ros
00157 
00158 namespace ros
00159 {
00160 namespace serialization
00161 {
00162 
00163 template<class ContainerAllocator> struct Serializer< ::ethercat_hardware::BoardInfo_<ContainerAllocator> >
00164 {
00165   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00166   {
00167     stream.next(m.description);
00168     stream.next(m.product_code);
00169     stream.next(m.pcb);
00170     stream.next(m.pca);
00171     stream.next(m.serial);
00172     stream.next(m.firmware_major);
00173     stream.next(m.firmware_minor);
00174     stream.next(m.board_resistance);
00175     stream.next(m.max_pwm_ratio);
00176     stream.next(m.hw_max_current);
00177     stream.next(m.poor_measured_motor_voltage);
00178   }
00179 
00180   ROS_DECLARE_ALLINONE_SERIALIZER;
00181 }; // struct BoardInfo_
00182 } // namespace serialization
00183 } // namespace ros
00184 
00185 namespace ros
00186 {
00187 namespace message_operations
00188 {
00189 
00190 template<class ContainerAllocator>
00191 struct Printer< ::ethercat_hardware::BoardInfo_<ContainerAllocator> >
00192 {
00193   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::ethercat_hardware::BoardInfo_<ContainerAllocator> & v) 
00194   {
00195     s << indent << "description: ";
00196     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.description);
00197     s << indent << "product_code: ";
00198     Printer<uint32_t>::stream(s, indent + "  ", v.product_code);
00199     s << indent << "pcb: ";
00200     Printer<uint32_t>::stream(s, indent + "  ", v.pcb);
00201     s << indent << "pca: ";
00202     Printer<uint32_t>::stream(s, indent + "  ", v.pca);
00203     s << indent << "serial: ";
00204     Printer<uint32_t>::stream(s, indent + "  ", v.serial);
00205     s << indent << "firmware_major: ";
00206     Printer<uint32_t>::stream(s, indent + "  ", v.firmware_major);
00207     s << indent << "firmware_minor: ";
00208     Printer<uint32_t>::stream(s, indent + "  ", v.firmware_minor);
00209     s << indent << "board_resistance: ";
00210     Printer<double>::stream(s, indent + "  ", v.board_resistance);
00211     s << indent << "max_pwm_ratio: ";
00212     Printer<double>::stream(s, indent + "  ", v.max_pwm_ratio);
00213     s << indent << "hw_max_current: ";
00214     Printer<double>::stream(s, indent + "  ", v.hw_max_current);
00215     s << indent << "poor_measured_motor_voltage: ";
00216     Printer<uint8_t>::stream(s, indent + "  ", v.poor_measured_motor_voltage);
00217   }
00218 };
00219 
00220 
00221 } // namespace message_operations
00222 } // namespace ros
00223 
00224 #endif // ETHERCAT_HARDWARE_MESSAGE_BOARDINFO_H
00225 


ethercat_hardware
Author(s): Rob Wheeler (email: wheeler@willowgarage.com), Maintained by Derek King (email: dking@willowgarage.com)
autogenerated on Thu Jan 2 2014 11:39:31