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


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