RawFTDataSample.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/RawFTDataSample.msg */
00002 #ifndef ETHERCAT_HARDWARE_MESSAGE_RAWFTDATASAMPLE_H
00003 #define ETHERCAT_HARDWARE_MESSAGE_RAWFTDATASAMPLE_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 RawFTDataSample_ {
00022   typedef RawFTDataSample_<ContainerAllocator> Type;
00023 
00024   RawFTDataSample_()
00025   : sample_count(0)
00026   , data()
00027   , vhalf(0)
00028   {
00029   }
00030 
00031   RawFTDataSample_(const ContainerAllocator& _alloc)
00032   : sample_count(0)
00033   , data(_alloc)
00034   , vhalf(0)
00035   {
00036   }
00037 
00038   typedef uint64_t _sample_count_type;
00039   uint64_t sample_count;
00040 
00041   typedef std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other >  _data_type;
00042   std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other >  data;
00043 
00044   typedef uint16_t _vhalf_type;
00045   uint16_t vhalf;
00046 
00047 
00048   typedef boost::shared_ptr< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> > Ptr;
00049   typedef boost::shared_ptr< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator>  const> ConstPtr;
00050   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 }; // struct RawFTDataSample
00052 typedef  ::ethercat_hardware::RawFTDataSample_<std::allocator<void> > RawFTDataSample;
00053 
00054 typedef boost::shared_ptr< ::ethercat_hardware::RawFTDataSample> RawFTDataSamplePtr;
00055 typedef boost::shared_ptr< ::ethercat_hardware::RawFTDataSample const> RawFTDataSampleConstPtr;
00056 
00057 
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const  ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> & v)
00060 {
00061   ros::message_operations::Printer< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> >::stream(s, "", v);
00062   return s;}
00063 
00064 } // namespace ethercat_hardware
00065 
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator>  const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> > {
00074   static const char* value() 
00075   {
00076     return "6c3b6e352fd24802b2d95b606df80de6";
00077   }
00078 
00079   static const char* value(const  ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> &) { return value(); } 
00080   static const uint64_t static_value1 = 0x6c3b6e352fd24802ULL;
00081   static const uint64_t static_value2 = 0xb2d95b606df80de6ULL;
00082 };
00083 
00084 template<class ContainerAllocator>
00085 struct DataType< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "ethercat_hardware/RawFTDataSample";
00089   }
00090 
00091   static const char* value(const  ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> &) { return value(); } 
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct Definition< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "# One raw Data sample from WG035 F/T input via WG006 (gripper MCB).\n\
00099 uint64  sample_count\n\
00100 int16[] data\n\
00101 uint16  vhalf\n\
00102 ";
00103   }
00104 
00105   static const char* value(const  ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> &) { return value(); } 
00106 };
00107 
00108 } // namespace message_traits
00109 } // namespace ros
00110 
00111 namespace ros
00112 {
00113 namespace serialization
00114 {
00115 
00116 template<class ContainerAllocator> struct Serializer< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> >
00117 {
00118   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00119   {
00120     stream.next(m.sample_count);
00121     stream.next(m.data);
00122     stream.next(m.vhalf);
00123   }
00124 
00125   ROS_DECLARE_ALLINONE_SERIALIZER;
00126 }; // struct RawFTDataSample_
00127 } // namespace serialization
00128 } // namespace ros
00129 
00130 namespace ros
00131 {
00132 namespace message_operations
00133 {
00134 
00135 template<class ContainerAllocator>
00136 struct Printer< ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> >
00137 {
00138   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::ethercat_hardware::RawFTDataSample_<ContainerAllocator> & v) 
00139   {
00140     s << indent << "sample_count: ";
00141     Printer<uint64_t>::stream(s, indent + "  ", v.sample_count);
00142     s << indent << "data[]" << std::endl;
00143     for (size_t i = 0; i < v.data.size(); ++i)
00144     {
00145       s << indent << "  data[" << i << "]: ";
00146       Printer<int16_t>::stream(s, indent + "  ", v.data[i]);
00147     }
00148     s << indent << "vhalf: ";
00149     Printer<uint16_t>::stream(s, indent + "  ", v.vhalf);
00150   }
00151 };
00152 
00153 
00154 } // namespace message_operations
00155 } // namespace ros
00156 
00157 #endif // ETHERCAT_HARDWARE_MESSAGE_RAWFTDATASAMPLE_H
00158 


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