Go to the documentation of this file.00001
00002 #ifndef ROSSERIAL_ARDUINO_MESSAGE_ADC_H
00003 #define ROSSERIAL_ARDUINO_MESSAGE_ADC_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 rosserial_arduino
00019 {
00020 template <class ContainerAllocator>
00021 struct Adc_ {
00022 typedef Adc_<ContainerAllocator> Type;
00023
00024 Adc_()
00025 : adc0(0)
00026 , adc1(0)
00027 , adc2(0)
00028 , adc3(0)
00029 , adc4(0)
00030 , adc5(0)
00031 {
00032 }
00033
00034 Adc_(const ContainerAllocator& _alloc)
00035 : adc0(0)
00036 , adc1(0)
00037 , adc2(0)
00038 , adc3(0)
00039 , adc4(0)
00040 , adc5(0)
00041 {
00042 }
00043
00044 typedef uint16_t _adc0_type;
00045 uint16_t adc0;
00046
00047 typedef uint16_t _adc1_type;
00048 uint16_t adc1;
00049
00050 typedef uint16_t _adc2_type;
00051 uint16_t adc2;
00052
00053 typedef uint16_t _adc3_type;
00054 uint16_t adc3;
00055
00056 typedef uint16_t _adc4_type;
00057 uint16_t adc4;
00058
00059 typedef uint16_t _adc5_type;
00060 uint16_t adc5;
00061
00062
00063 typedef boost::shared_ptr< ::rosserial_arduino::Adc_<ContainerAllocator> > Ptr;
00064 typedef boost::shared_ptr< ::rosserial_arduino::Adc_<ContainerAllocator> const> ConstPtr;
00065 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00066 };
00067 typedef ::rosserial_arduino::Adc_<std::allocator<void> > Adc;
00068
00069 typedef boost::shared_ptr< ::rosserial_arduino::Adc> AdcPtr;
00070 typedef boost::shared_ptr< ::rosserial_arduino::Adc const> AdcConstPtr;
00071
00072
00073 template<typename ContainerAllocator>
00074 std::ostream& operator<<(std::ostream& s, const ::rosserial_arduino::Adc_<ContainerAllocator> & v)
00075 {
00076 ros::message_operations::Printer< ::rosserial_arduino::Adc_<ContainerAllocator> >::stream(s, "", v);
00077 return s;}
00078
00079 }
00080
00081 namespace ros
00082 {
00083 namespace message_traits
00084 {
00085 template<class ContainerAllocator> struct IsMessage< ::rosserial_arduino::Adc_<ContainerAllocator> > : public TrueType {};
00086 template<class ContainerAllocator> struct IsMessage< ::rosserial_arduino::Adc_<ContainerAllocator> const> : public TrueType {};
00087 template<class ContainerAllocator>
00088 struct MD5Sum< ::rosserial_arduino::Adc_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "6d7853a614e2e821319068311f2af25b";
00092 }
00093
00094 static const char* value(const ::rosserial_arduino::Adc_<ContainerAllocator> &) { return value(); }
00095 static const uint64_t static_value1 = 0x6d7853a614e2e821ULL;
00096 static const uint64_t static_value2 = 0x319068311f2af25bULL;
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct DataType< ::rosserial_arduino::Adc_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "rosserial_arduino/Adc";
00104 }
00105
00106 static const char* value(const ::rosserial_arduino::Adc_<ContainerAllocator> &) { return value(); }
00107 };
00108
00109 template<class ContainerAllocator>
00110 struct Definition< ::rosserial_arduino::Adc_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "uint16 adc0\n\
00114 uint16 adc1\n\
00115 uint16 adc2\n\
00116 uint16 adc3\n\
00117 uint16 adc4\n\
00118 uint16 adc5\n\
00119 \n\
00120 ";
00121 }
00122
00123 static const char* value(const ::rosserial_arduino::Adc_<ContainerAllocator> &) { return value(); }
00124 };
00125
00126 template<class ContainerAllocator> struct IsFixedSize< ::rosserial_arduino::Adc_<ContainerAllocator> > : public TrueType {};
00127 }
00128 }
00129
00130 namespace ros
00131 {
00132 namespace serialization
00133 {
00134
00135 template<class ContainerAllocator> struct Serializer< ::rosserial_arduino::Adc_<ContainerAllocator> >
00136 {
00137 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00138 {
00139 stream.next(m.adc0);
00140 stream.next(m.adc1);
00141 stream.next(m.adc2);
00142 stream.next(m.adc3);
00143 stream.next(m.adc4);
00144 stream.next(m.adc5);
00145 }
00146
00147 ROS_DECLARE_ALLINONE_SERIALIZER;
00148 };
00149 }
00150 }
00151
00152 namespace ros
00153 {
00154 namespace message_operations
00155 {
00156
00157 template<class ContainerAllocator>
00158 struct Printer< ::rosserial_arduino::Adc_<ContainerAllocator> >
00159 {
00160 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::rosserial_arduino::Adc_<ContainerAllocator> & v)
00161 {
00162 s << indent << "adc0: ";
00163 Printer<uint16_t>::stream(s, indent + " ", v.adc0);
00164 s << indent << "adc1: ";
00165 Printer<uint16_t>::stream(s, indent + " ", v.adc1);
00166 s << indent << "adc2: ";
00167 Printer<uint16_t>::stream(s, indent + " ", v.adc2);
00168 s << indent << "adc3: ";
00169 Printer<uint16_t>::stream(s, indent + " ", v.adc3);
00170 s << indent << "adc4: ";
00171 Printer<uint16_t>::stream(s, indent + " ", v.adc4);
00172 s << indent << "adc5: ";
00173 Printer<uint16_t>::stream(s, indent + " ", v.adc5);
00174 }
00175 };
00176
00177
00178 }
00179 }
00180
00181 #endif // ROSSERIAL_ARDUINO_MESSAGE_ADC_H
00182