ActuatorInfo.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-shadow_robot_ethercat/doc_stacks/2014-01-02_11-57-46.798058/shadow_robot_ethercat/sr_edc_ethercat_drivers/msg/ActuatorInfo.msg */
00002 #ifndef SR_EDC_ETHERCAT_DRIVERS_MESSAGE_ACTUATORINFO_H
00003 #define SR_EDC_ETHERCAT_DRIVERS_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 sr_edc_ethercat_drivers
00019 {
00020 template <class ContainerAllocator>
00021 struct ActuatorInfo_ {
00022   typedef ActuatorInfo_<ContainerAllocator> Type;
00023 
00024   ActuatorInfo_()
00025   : name()
00026   , slow_motor_current_limit(0.0)
00027   , quick_motor_current_limit(0.0)
00028   , duty_limit(0.0)
00029   , max_duty(0.0)
00030   {
00031   }
00032 
00033   ActuatorInfo_(const ContainerAllocator& _alloc)
00034   : name(_alloc)
00035   , slow_motor_current_limit(0.0)
00036   , quick_motor_current_limit(0.0)
00037   , duty_limit(0.0)
00038   , max_duty(0.0)
00039   {
00040   }
00041 
00042   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _name_type;
00043   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  name;
00044 
00045   typedef double _slow_motor_current_limit_type;
00046   double slow_motor_current_limit;
00047 
00048   typedef double _quick_motor_current_limit_type;
00049   double quick_motor_current_limit;
00050 
00051   typedef double _duty_limit_type;
00052   double duty_limit;
00053 
00054   typedef double _max_duty_type;
00055   double max_duty;
00056 
00057 
00058   typedef boost::shared_ptr< ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct ActuatorInfo
00062 typedef  ::sr_edc_ethercat_drivers::ActuatorInfo_<std::allocator<void> > ActuatorInfo;
00063 
00064 typedef boost::shared_ptr< ::sr_edc_ethercat_drivers::ActuatorInfo> ActuatorInfoPtr;
00065 typedef boost::shared_ptr< ::sr_edc_ethercat_drivers::ActuatorInfo const> ActuatorInfoConstPtr;
00066 
00067 
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const  ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> & v)
00070 {
00071   ros::message_operations::Printer< ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> >::stream(s, "", v);
00072   return s;}
00073 
00074 } // namespace sr_edc_ethercat_drivers
00075 
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator>  const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> > {
00084   static const char* value() 
00085   {
00086     return "b69309b2980b8b35e7e2b52bad59330a";
00087   }
00088 
00089   static const char* value(const  ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> &) { return value(); } 
00090   static const uint64_t static_value1 = 0xb69309b2980b8b35ULL;
00091   static const uint64_t static_value2 = 0xe7e2b52bad59330aULL;
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct DataType< ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "sr_edc_ethercat_drivers/ActuatorInfo";
00099   }
00100 
00101   static const char* value(const  ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator>
00105 struct Definition< ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "string name\n\
00109 float64 slow_motor_current_limit\n\
00110 float64 quick_motor_current_limit\n\
00111 float64 duty_limit\n\
00112 float64 max_duty\n\
00113 ";
00114   }
00115 
00116   static const char* value(const  ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> &) { return value(); } 
00117 };
00118 
00119 } // namespace message_traits
00120 } // namespace ros
00121 
00122 namespace ros
00123 {
00124 namespace serialization
00125 {
00126 
00127 template<class ContainerAllocator> struct Serializer< ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> >
00128 {
00129   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00130   {
00131     stream.next(m.name);
00132     stream.next(m.slow_motor_current_limit);
00133     stream.next(m.quick_motor_current_limit);
00134     stream.next(m.duty_limit);
00135     stream.next(m.max_duty);
00136   }
00137 
00138   ROS_DECLARE_ALLINONE_SERIALIZER;
00139 }; // struct ActuatorInfo_
00140 } // namespace serialization
00141 } // namespace ros
00142 
00143 namespace ros
00144 {
00145 namespace message_operations
00146 {
00147 
00148 template<class ContainerAllocator>
00149 struct Printer< ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> >
00150 {
00151   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> & v) 
00152   {
00153     s << indent << "name: ";
00154     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name);
00155     s << indent << "slow_motor_current_limit: ";
00156     Printer<double>::stream(s, indent + "  ", v.slow_motor_current_limit);
00157     s << indent << "quick_motor_current_limit: ";
00158     Printer<double>::stream(s, indent + "  ", v.quick_motor_current_limit);
00159     s << indent << "duty_limit: ";
00160     Printer<double>::stream(s, indent + "  ", v.duty_limit);
00161     s << indent << "max_duty: ";
00162     Printer<double>::stream(s, indent + "  ", v.max_duty);
00163   }
00164 };
00165 
00166 
00167 } // namespace message_operations
00168 } // namespace ros
00169 
00170 #endif // SR_EDC_ETHERCAT_DRIVERS_MESSAGE_ACTUATORINFO_H
00171 


sr_edc_ethercat_drivers
Author(s): Yann Sionneau, Ugo Cupcic / ugo@shadowrobot.com, software@shadowrobot.com
autogenerated on Thu Jan 2 2014 12:03:32