Biotac.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-shadow_robot/doc_stacks/2014-10-06_07-33-10.674696/shadow_robot/sr_robot_msgs/msg/Biotac.msg */
00002 #ifndef SR_ROBOT_MSGS_MESSAGE_BIOTAC_H
00003 #define SR_ROBOT_MSGS_MESSAGE_BIOTAC_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_robot_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct Biotac_ {
00022   typedef Biotac_<ContainerAllocator> Type;
00023 
00024   Biotac_()
00025   : pac0(0)
00026   , pac1(0)
00027   , pdc(0)
00028   , tac(0)
00029   , tdc(0)
00030   , electrodes()
00031   {
00032     electrodes.assign(0);
00033   }
00034 
00035   Biotac_(const ContainerAllocator& _alloc)
00036   : pac0(0)
00037   , pac1(0)
00038   , pdc(0)
00039   , tac(0)
00040   , tdc(0)
00041   , electrodes()
00042   {
00043     electrodes.assign(0);
00044   }
00045 
00046   typedef int16_t _pac0_type;
00047   int16_t pac0;
00048 
00049   typedef int16_t _pac1_type;
00050   int16_t pac1;
00051 
00052   typedef int16_t _pdc_type;
00053   int16_t pdc;
00054 
00055   typedef int16_t _tac_type;
00056   int16_t tac;
00057 
00058   typedef int16_t _tdc_type;
00059   int16_t tdc;
00060 
00061   typedef boost::array<int16_t, 19>  _electrodes_type;
00062   boost::array<int16_t, 19>  electrodes;
00063 
00064 
00065   typedef boost::shared_ptr< ::sr_robot_msgs::Biotac_<ContainerAllocator> > Ptr;
00066   typedef boost::shared_ptr< ::sr_robot_msgs::Biotac_<ContainerAllocator>  const> ConstPtr;
00067   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00068 }; // struct Biotac
00069 typedef  ::sr_robot_msgs::Biotac_<std::allocator<void> > Biotac;
00070 
00071 typedef boost::shared_ptr< ::sr_robot_msgs::Biotac> BiotacPtr;
00072 typedef boost::shared_ptr< ::sr_robot_msgs::Biotac const> BiotacConstPtr;
00073 
00074 
00075 template<typename ContainerAllocator>
00076 std::ostream& operator<<(std::ostream& s, const  ::sr_robot_msgs::Biotac_<ContainerAllocator> & v)
00077 {
00078   ros::message_operations::Printer< ::sr_robot_msgs::Biotac_<ContainerAllocator> >::stream(s, "", v);
00079   return s;}
00080 
00081 } // namespace sr_robot_msgs
00082 
00083 namespace ros
00084 {
00085 namespace message_traits
00086 {
00087 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::Biotac_<ContainerAllocator> > : public TrueType {};
00088 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::Biotac_<ContainerAllocator>  const> : public TrueType {};
00089 template<class ContainerAllocator>
00090 struct MD5Sum< ::sr_robot_msgs::Biotac_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "45887a982dc5cee83be90c94c9db9f12";
00094   }
00095 
00096   static const char* value(const  ::sr_robot_msgs::Biotac_<ContainerAllocator> &) { return value(); } 
00097   static const uint64_t static_value1 = 0x45887a982dc5cee8ULL;
00098   static const uint64_t static_value2 = 0x3be90c94c9db9f12ULL;
00099 };
00100 
00101 template<class ContainerAllocator>
00102 struct DataType< ::sr_robot_msgs::Biotac_<ContainerAllocator> > {
00103   static const char* value() 
00104   {
00105     return "sr_robot_msgs/Biotac";
00106   }
00107 
00108   static const char* value(const  ::sr_robot_msgs::Biotac_<ContainerAllocator> &) { return value(); } 
00109 };
00110 
00111 template<class ContainerAllocator>
00112 struct Definition< ::sr_robot_msgs::Biotac_<ContainerAllocator> > {
00113   static const char* value() 
00114   {
00115     return "int16 pac0\n\
00116 int16 pac1\n\
00117 int16 pdc\n\
00118 \n\
00119 int16 tac\n\
00120 int16 tdc\n\
00121 \n\
00122 int16[19] electrodes\n\
00123 \n\
00124 ";
00125   }
00126 
00127   static const char* value(const  ::sr_robot_msgs::Biotac_<ContainerAllocator> &) { return value(); } 
00128 };
00129 
00130 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::Biotac_<ContainerAllocator> > : public TrueType {};
00131 } // namespace message_traits
00132 } // namespace ros
00133 
00134 namespace ros
00135 {
00136 namespace serialization
00137 {
00138 
00139 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::Biotac_<ContainerAllocator> >
00140 {
00141   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00142   {
00143     stream.next(m.pac0);
00144     stream.next(m.pac1);
00145     stream.next(m.pdc);
00146     stream.next(m.tac);
00147     stream.next(m.tdc);
00148     stream.next(m.electrodes);
00149   }
00150 
00151   ROS_DECLARE_ALLINONE_SERIALIZER;
00152 }; // struct Biotac_
00153 } // namespace serialization
00154 } // namespace ros
00155 
00156 namespace ros
00157 {
00158 namespace message_operations
00159 {
00160 
00161 template<class ContainerAllocator>
00162 struct Printer< ::sr_robot_msgs::Biotac_<ContainerAllocator> >
00163 {
00164   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::sr_robot_msgs::Biotac_<ContainerAllocator> & v) 
00165   {
00166     s << indent << "pac0: ";
00167     Printer<int16_t>::stream(s, indent + "  ", v.pac0);
00168     s << indent << "pac1: ";
00169     Printer<int16_t>::stream(s, indent + "  ", v.pac1);
00170     s << indent << "pdc: ";
00171     Printer<int16_t>::stream(s, indent + "  ", v.pdc);
00172     s << indent << "tac: ";
00173     Printer<int16_t>::stream(s, indent + "  ", v.tac);
00174     s << indent << "tdc: ";
00175     Printer<int16_t>::stream(s, indent + "  ", v.tdc);
00176     s << indent << "electrodes[]" << std::endl;
00177     for (size_t i = 0; i < v.electrodes.size(); ++i)
00178     {
00179       s << indent << "  electrodes[" << i << "]: ";
00180       Printer<int16_t>::stream(s, indent + "  ", v.electrodes[i]);
00181     }
00182   }
00183 };
00184 
00185 
00186 } // namespace message_operations
00187 } // namespace ros
00188 
00189 #endif // SR_ROBOT_MSGS_MESSAGE_BIOTAC_H
00190 


sr_robot_msgs
Author(s): Ugo Cupcic/ugo@shadowrobot.com
autogenerated on Mon Oct 6 2014 07:40:06