ActuatorInfo.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/ActuatorInfo.msg */
00002 #ifndef ETHERCAT_HARDWARE_MESSAGE_ACTUATORINFO_H
00003 #define ETHERCAT_HARDWARE_MESSAGE_ACTUATORINFO_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 ActuatorInfo_ {
00022   typedef ActuatorInfo_<ContainerAllocator> Type;
00023 
00024   ActuatorInfo_()
00025   : id(0)
00026   , name()
00027   , robot_name()
00028   , motor_make()
00029   , motor_model()
00030   , max_current(0.0)
00031   , speed_constant(0.0)
00032   , motor_resistance(0.0)
00033   , motor_torque_constant(0.0)
00034   , encoder_reduction(0.0)
00035   , pulses_per_revolution(0.0)
00036   {
00037   }
00038 
00039   ActuatorInfo_(const ContainerAllocator& _alloc)
00040   : id(0)
00041   , name(_alloc)
00042   , robot_name(_alloc)
00043   , motor_make(_alloc)
00044   , motor_model(_alloc)
00045   , max_current(0.0)
00046   , speed_constant(0.0)
00047   , motor_resistance(0.0)
00048   , motor_torque_constant(0.0)
00049   , encoder_reduction(0.0)
00050   , pulses_per_revolution(0.0)
00051   {
00052   }
00053 
00054   typedef uint32_t _id_type;
00055   uint32_t id;
00056 
00057   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _name_type;
00058   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  name;
00059 
00060   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _robot_name_type;
00061   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  robot_name;
00062 
00063   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _motor_make_type;
00064   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  motor_make;
00065 
00066   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _motor_model_type;
00067   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  motor_model;
00068 
00069   typedef double _max_current_type;
00070   double max_current;
00071 
00072   typedef double _speed_constant_type;
00073   double speed_constant;
00074 
00075   typedef double _motor_resistance_type;
00076   double motor_resistance;
00077 
00078   typedef double _motor_torque_constant_type;
00079   double motor_torque_constant;
00080 
00081   typedef double _encoder_reduction_type;
00082   double encoder_reduction;
00083 
00084   typedef double _pulses_per_revolution_type;
00085   double pulses_per_revolution;
00086 
00087 
00088   typedef boost::shared_ptr< ::ethercat_hardware::ActuatorInfo_<ContainerAllocator> > Ptr;
00089   typedef boost::shared_ptr< ::ethercat_hardware::ActuatorInfo_<ContainerAllocator>  const> ConstPtr;
00090   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00091 }; // struct ActuatorInfo
00092 typedef  ::ethercat_hardware::ActuatorInfo_<std::allocator<void> > ActuatorInfo;
00093 
00094 typedef boost::shared_ptr< ::ethercat_hardware::ActuatorInfo> ActuatorInfoPtr;
00095 typedef boost::shared_ptr< ::ethercat_hardware::ActuatorInfo const> ActuatorInfoConstPtr;
00096 
00097 
00098 template<typename ContainerAllocator>
00099 std::ostream& operator<<(std::ostream& s, const  ::ethercat_hardware::ActuatorInfo_<ContainerAllocator> & v)
00100 {
00101   ros::message_operations::Printer< ::ethercat_hardware::ActuatorInfo_<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::ActuatorInfo_<ContainerAllocator> > : public TrueType {};
00111 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::ActuatorInfo_<ContainerAllocator>  const> : public TrueType {};
00112 template<class ContainerAllocator>
00113 struct MD5Sum< ::ethercat_hardware::ActuatorInfo_<ContainerAllocator> > {
00114   static const char* value() 
00115   {
00116     return "40f44d8ec4380adc0b63713486eecb09";
00117   }
00118 
00119   static const char* value(const  ::ethercat_hardware::ActuatorInfo_<ContainerAllocator> &) { return value(); } 
00120   static const uint64_t static_value1 = 0x40f44d8ec4380adcULL;
00121   static const uint64_t static_value2 = 0x0b63713486eecb09ULL;
00122 };
00123 
00124 template<class ContainerAllocator>
00125 struct DataType< ::ethercat_hardware::ActuatorInfo_<ContainerAllocator> > {
00126   static const char* value() 
00127   {
00128     return "ethercat_hardware/ActuatorInfo";
00129   }
00130 
00131   static const char* value(const  ::ethercat_hardware::ActuatorInfo_<ContainerAllocator> &) { return value(); } 
00132 };
00133 
00134 template<class ContainerAllocator>
00135 struct Definition< ::ethercat_hardware::ActuatorInfo_<ContainerAllocator> > {
00136   static const char* value() 
00137   {
00138     return "uint32 id\n\
00139 string name\n\
00140 string robot_name\n\
00141 string motor_make\n\
00142 string motor_model\n\
00143 float64 max_current\n\
00144 float64 speed_constant\n\
00145 float64 motor_resistance\n\
00146 float64 motor_torque_constant\n\
00147 float64 encoder_reduction\n\
00148 float64 pulses_per_revolution\n\
00149 ";
00150   }
00151 
00152   static const char* value(const  ::ethercat_hardware::ActuatorInfo_<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::ActuatorInfo_<ContainerAllocator> >
00164 {
00165   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00166   {
00167     stream.next(m.id);
00168     stream.next(m.name);
00169     stream.next(m.robot_name);
00170     stream.next(m.motor_make);
00171     stream.next(m.motor_model);
00172     stream.next(m.max_current);
00173     stream.next(m.speed_constant);
00174     stream.next(m.motor_resistance);
00175     stream.next(m.motor_torque_constant);
00176     stream.next(m.encoder_reduction);
00177     stream.next(m.pulses_per_revolution);
00178   }
00179 
00180   ROS_DECLARE_ALLINONE_SERIALIZER;
00181 }; // struct ActuatorInfo_
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::ActuatorInfo_<ContainerAllocator> >
00192 {
00193   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::ethercat_hardware::ActuatorInfo_<ContainerAllocator> & v) 
00194   {
00195     s << indent << "id: ";
00196     Printer<uint32_t>::stream(s, indent + "  ", v.id);
00197     s << indent << "name: ";
00198     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name);
00199     s << indent << "robot_name: ";
00200     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.robot_name);
00201     s << indent << "motor_make: ";
00202     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.motor_make);
00203     s << indent << "motor_model: ";
00204     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.motor_model);
00205     s << indent << "max_current: ";
00206     Printer<double>::stream(s, indent + "  ", v.max_current);
00207     s << indent << "speed_constant: ";
00208     Printer<double>::stream(s, indent + "  ", v.speed_constant);
00209     s << indent << "motor_resistance: ";
00210     Printer<double>::stream(s, indent + "  ", v.motor_resistance);
00211     s << indent << "motor_torque_constant: ";
00212     Printer<double>::stream(s, indent + "  ", v.motor_torque_constant);
00213     s << indent << "encoder_reduction: ";
00214     Printer<double>::stream(s, indent + "  ", v.encoder_reduction);
00215     s << indent << "pulses_per_revolution: ";
00216     Printer<double>::stream(s, indent + "  ", v.pulses_per_revolution);
00217   }
00218 };
00219 
00220 
00221 } // namespace message_operations
00222 } // namespace ros
00223 
00224 #endif // ETHERCAT_HARDWARE_MESSAGE_ACTUATORINFO_H
00225 


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:44