$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-rosserial/doc_stacks/2013-03-02_13-24-08.697680/rosserial/rosserial_arduino/msg/Adc.msg */ 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 private: 00064 static const char* __s_getDataType_() { return "rosserial_arduino/Adc"; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00067 00068 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00069 00070 private: 00071 static const char* __s_getMD5Sum_() { return "6d7853a614e2e821319068311f2af25b"; } 00072 public: 00073 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00074 00075 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00076 00077 private: 00078 static const char* __s_getMessageDefinition_() { return "uint16 adc0\n\ 00079 uint16 adc1\n\ 00080 uint16 adc2\n\ 00081 uint16 adc3\n\ 00082 uint16 adc4\n\ 00083 uint16 adc5\n\ 00084 \n\ 00085 "; } 00086 public: 00087 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00090 00091 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00092 { 00093 ros::serialization::OStream stream(write_ptr, 1000000000); 00094 ros::serialization::serialize(stream, adc0); 00095 ros::serialization::serialize(stream, adc1); 00096 ros::serialization::serialize(stream, adc2); 00097 ros::serialization::serialize(stream, adc3); 00098 ros::serialization::serialize(stream, adc4); 00099 ros::serialization::serialize(stream, adc5); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00104 { 00105 ros::serialization::IStream stream(read_ptr, 1000000000); 00106 ros::serialization::deserialize(stream, adc0); 00107 ros::serialization::deserialize(stream, adc1); 00108 ros::serialization::deserialize(stream, adc2); 00109 ros::serialization::deserialize(stream, adc3); 00110 ros::serialization::deserialize(stream, adc4); 00111 ros::serialization::deserialize(stream, adc5); 00112 return stream.getData(); 00113 } 00114 00115 ROS_DEPRECATED virtual uint32_t serializationLength() const 00116 { 00117 uint32_t size = 0; 00118 size += ros::serialization::serializationLength(adc0); 00119 size += ros::serialization::serializationLength(adc1); 00120 size += ros::serialization::serializationLength(adc2); 00121 size += ros::serialization::serializationLength(adc3); 00122 size += ros::serialization::serializationLength(adc4); 00123 size += ros::serialization::serializationLength(adc5); 00124 return size; 00125 } 00126 00127 typedef boost::shared_ptr< ::rosserial_arduino::Adc_<ContainerAllocator> > Ptr; 00128 typedef boost::shared_ptr< ::rosserial_arduino::Adc_<ContainerAllocator> const> ConstPtr; 00129 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00130 }; // struct Adc 00131 typedef ::rosserial_arduino::Adc_<std::allocator<void> > Adc; 00132 00133 typedef boost::shared_ptr< ::rosserial_arduino::Adc> AdcPtr; 00134 typedef boost::shared_ptr< ::rosserial_arduino::Adc const> AdcConstPtr; 00135 00136 00137 template<typename ContainerAllocator> 00138 std::ostream& operator<<(std::ostream& s, const ::rosserial_arduino::Adc_<ContainerAllocator> & v) 00139 { 00140 ros::message_operations::Printer< ::rosserial_arduino::Adc_<ContainerAllocator> >::stream(s, "", v); 00141 return s;} 00142 00143 } // namespace rosserial_arduino 00144 00145 namespace ros 00146 { 00147 namespace message_traits 00148 { 00149 template<class ContainerAllocator> struct IsMessage< ::rosserial_arduino::Adc_<ContainerAllocator> > : public TrueType {}; 00150 template<class ContainerAllocator> struct IsMessage< ::rosserial_arduino::Adc_<ContainerAllocator> const> : public TrueType {}; 00151 template<class ContainerAllocator> 00152 struct MD5Sum< ::rosserial_arduino::Adc_<ContainerAllocator> > { 00153 static const char* value() 00154 { 00155 return "6d7853a614e2e821319068311f2af25b"; 00156 } 00157 00158 static const char* value(const ::rosserial_arduino::Adc_<ContainerAllocator> &) { return value(); } 00159 static const uint64_t static_value1 = 0x6d7853a614e2e821ULL; 00160 static const uint64_t static_value2 = 0x319068311f2af25bULL; 00161 }; 00162 00163 template<class ContainerAllocator> 00164 struct DataType< ::rosserial_arduino::Adc_<ContainerAllocator> > { 00165 static const char* value() 00166 { 00167 return "rosserial_arduino/Adc"; 00168 } 00169 00170 static const char* value(const ::rosserial_arduino::Adc_<ContainerAllocator> &) { return value(); } 00171 }; 00172 00173 template<class ContainerAllocator> 00174 struct Definition< ::rosserial_arduino::Adc_<ContainerAllocator> > { 00175 static const char* value() 00176 { 00177 return "uint16 adc0\n\ 00178 uint16 adc1\n\ 00179 uint16 adc2\n\ 00180 uint16 adc3\n\ 00181 uint16 adc4\n\ 00182 uint16 adc5\n\ 00183 \n\ 00184 "; 00185 } 00186 00187 static const char* value(const ::rosserial_arduino::Adc_<ContainerAllocator> &) { return value(); } 00188 }; 00189 00190 template<class ContainerAllocator> struct IsFixedSize< ::rosserial_arduino::Adc_<ContainerAllocator> > : public TrueType {}; 00191 } // namespace message_traits 00192 } // namespace ros 00193 00194 namespace ros 00195 { 00196 namespace serialization 00197 { 00198 00199 template<class ContainerAllocator> struct Serializer< ::rosserial_arduino::Adc_<ContainerAllocator> > 00200 { 00201 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00202 { 00203 stream.next(m.adc0); 00204 stream.next(m.adc1); 00205 stream.next(m.adc2); 00206 stream.next(m.adc3); 00207 stream.next(m.adc4); 00208 stream.next(m.adc5); 00209 } 00210 00211 ROS_DECLARE_ALLINONE_SERIALIZER; 00212 }; // struct Adc_ 00213 } // namespace serialization 00214 } // namespace ros 00215 00216 namespace ros 00217 { 00218 namespace message_operations 00219 { 00220 00221 template<class ContainerAllocator> 00222 struct Printer< ::rosserial_arduino::Adc_<ContainerAllocator> > 00223 { 00224 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::rosserial_arduino::Adc_<ContainerAllocator> & v) 00225 { 00226 s << indent << "adc0: "; 00227 Printer<uint16_t>::stream(s, indent + " ", v.adc0); 00228 s << indent << "adc1: "; 00229 Printer<uint16_t>::stream(s, indent + " ", v.adc1); 00230 s << indent << "adc2: "; 00231 Printer<uint16_t>::stream(s, indent + " ", v.adc2); 00232 s << indent << "adc3: "; 00233 Printer<uint16_t>::stream(s, indent + " ", v.adc3); 00234 s << indent << "adc4: "; 00235 Printer<uint16_t>::stream(s, indent + " ", v.adc4); 00236 s << indent << "adc5: "; 00237 Printer<uint16_t>::stream(s, indent + " ", v.adc5); 00238 } 00239 }; 00240 00241 00242 } // namespace message_operations 00243 } // namespace ros 00244 00245 #endif // ROSSERIAL_ARDUINO_MESSAGE_ADC_H 00246