$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-bosch_drivers/doc_stacks/2013-03-03_11-06-04.980567/bosch_drivers/adc_sub20/msg/sub20_ADC_meas.msg */ 00002 #ifndef ADC_SUB20_MESSAGE_SUB20_ADC_MEAS_H 00003 #define ADC_SUB20_MESSAGE_SUB20_ADC_MEAS_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 "std_msgs/Header.h" 00018 00019 namespace adc_sub20 00020 { 00021 template <class ContainerAllocator> 00022 struct sub20_ADC_meas_ { 00023 typedef sub20_ADC_meas_<ContainerAllocator> Type; 00024 00025 sub20_ADC_meas_() 00026 : header() 00027 , strIdSubDev() 00028 , uiRaw() 00029 , fVolts() 00030 { 00031 } 00032 00033 sub20_ADC_meas_(const ContainerAllocator& _alloc) 00034 : header(_alloc) 00035 , strIdSubDev(_alloc) 00036 , uiRaw(_alloc) 00037 , fVolts(_alloc) 00038 { 00039 } 00040 00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00042 ::std_msgs::Header_<ContainerAllocator> header; 00043 00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _strIdSubDev_type; 00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > strIdSubDev; 00046 00047 typedef std::vector<uint16_t, typename ContainerAllocator::template rebind<uint16_t>::other > _uiRaw_type; 00048 std::vector<uint16_t, typename ContainerAllocator::template rebind<uint16_t>::other > uiRaw; 00049 00050 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _fVolts_type; 00051 std::vector<double, typename ContainerAllocator::template rebind<double>::other > fVolts; 00052 00053 00054 ROS_DEPRECATED uint32_t get_uiRaw_size() const { return (uint32_t)uiRaw.size(); } 00055 ROS_DEPRECATED void set_uiRaw_size(uint32_t size) { uiRaw.resize((size_t)size); } 00056 ROS_DEPRECATED void get_uiRaw_vec(std::vector<uint16_t, typename ContainerAllocator::template rebind<uint16_t>::other > & vec) const { vec = this->uiRaw; } 00057 ROS_DEPRECATED void set_uiRaw_vec(const std::vector<uint16_t, typename ContainerAllocator::template rebind<uint16_t>::other > & vec) { this->uiRaw = vec; } 00058 ROS_DEPRECATED uint32_t get_fVolts_size() const { return (uint32_t)fVolts.size(); } 00059 ROS_DEPRECATED void set_fVolts_size(uint32_t size) { fVolts.resize((size_t)size); } 00060 ROS_DEPRECATED void get_fVolts_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->fVolts; } 00061 ROS_DEPRECATED void set_fVolts_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->fVolts = vec; } 00062 private: 00063 static const char* __s_getDataType_() { return "adc_sub20/sub20_ADC_meas"; } 00064 public: 00065 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00066 00067 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00068 00069 private: 00070 static const char* __s_getMD5Sum_() { return "e5a875ce6bb2d936bd7c1ae33b9699ad"; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00073 00074 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00075 00076 private: 00077 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00078 string strIdSubDev\n\ 00079 uint16[] uiRaw\n\ 00080 float64[] fVolts\n\ 00081 ================================================================================\n\ 00082 MSG: std_msgs/Header\n\ 00083 # Standard metadata for higher-level stamped data types.\n\ 00084 # This is generally used to communicate timestamped data \n\ 00085 # in a particular coordinate frame.\n\ 00086 # \n\ 00087 # sequence ID: consecutively increasing ID \n\ 00088 uint32 seq\n\ 00089 #Two-integer timestamp that is expressed as:\n\ 00090 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00091 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00092 # time-handling sugar is provided by the client library\n\ 00093 time stamp\n\ 00094 #Frame this data is associated with\n\ 00095 # 0: no frame\n\ 00096 # 1: global frame\n\ 00097 string frame_id\n\ 00098 \n\ 00099 "; } 00100 public: 00101 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00102 00103 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00104 00105 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00106 { 00107 ros::serialization::OStream stream(write_ptr, 1000000000); 00108 ros::serialization::serialize(stream, header); 00109 ros::serialization::serialize(stream, strIdSubDev); 00110 ros::serialization::serialize(stream, uiRaw); 00111 ros::serialization::serialize(stream, fVolts); 00112 return stream.getData(); 00113 } 00114 00115 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00116 { 00117 ros::serialization::IStream stream(read_ptr, 1000000000); 00118 ros::serialization::deserialize(stream, header); 00119 ros::serialization::deserialize(stream, strIdSubDev); 00120 ros::serialization::deserialize(stream, uiRaw); 00121 ros::serialization::deserialize(stream, fVolts); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint32_t serializationLength() const 00126 { 00127 uint32_t size = 0; 00128 size += ros::serialization::serializationLength(header); 00129 size += ros::serialization::serializationLength(strIdSubDev); 00130 size += ros::serialization::serializationLength(uiRaw); 00131 size += ros::serialization::serializationLength(fVolts); 00132 return size; 00133 } 00134 00135 typedef boost::shared_ptr< ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> > Ptr; 00136 typedef boost::shared_ptr< ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> const> ConstPtr; 00137 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00138 }; // struct sub20_ADC_meas 00139 typedef ::adc_sub20::sub20_ADC_meas_<std::allocator<void> > sub20_ADC_meas; 00140 00141 typedef boost::shared_ptr< ::adc_sub20::sub20_ADC_meas> sub20_ADC_measPtr; 00142 typedef boost::shared_ptr< ::adc_sub20::sub20_ADC_meas const> sub20_ADC_measConstPtr; 00143 00144 00145 template<typename ContainerAllocator> 00146 std::ostream& operator<<(std::ostream& s, const ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> & v) 00147 { 00148 ros::message_operations::Printer< ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> >::stream(s, "", v); 00149 return s;} 00150 00151 } // namespace adc_sub20 00152 00153 namespace ros 00154 { 00155 namespace message_traits 00156 { 00157 template<class ContainerAllocator> struct IsMessage< ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> > : public TrueType {}; 00158 template<class ContainerAllocator> struct IsMessage< ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> const> : public TrueType {}; 00159 template<class ContainerAllocator> 00160 struct MD5Sum< ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "e5a875ce6bb2d936bd7c1ae33b9699ad"; 00164 } 00165 00166 static const char* value(const ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> &) { return value(); } 00167 static const uint64_t static_value1 = 0xe5a875ce6bb2d936ULL; 00168 static const uint64_t static_value2 = 0xbd7c1ae33b9699adULL; 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct DataType< ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "adc_sub20/sub20_ADC_meas"; 00176 } 00177 00178 static const char* value(const ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> &) { return value(); } 00179 }; 00180 00181 template<class ContainerAllocator> 00182 struct Definition< ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> > { 00183 static const char* value() 00184 { 00185 return "Header header\n\ 00186 string strIdSubDev\n\ 00187 uint16[] uiRaw\n\ 00188 float64[] fVolts\n\ 00189 ================================================================================\n\ 00190 MSG: std_msgs/Header\n\ 00191 # Standard metadata for higher-level stamped data types.\n\ 00192 # This is generally used to communicate timestamped data \n\ 00193 # in a particular coordinate frame.\n\ 00194 # \n\ 00195 # sequence ID: consecutively increasing ID \n\ 00196 uint32 seq\n\ 00197 #Two-integer timestamp that is expressed as:\n\ 00198 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00199 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00200 # time-handling sugar is provided by the client library\n\ 00201 time stamp\n\ 00202 #Frame this data is associated with\n\ 00203 # 0: no frame\n\ 00204 # 1: global frame\n\ 00205 string frame_id\n\ 00206 \n\ 00207 "; 00208 } 00209 00210 static const char* value(const ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> &) { return value(); } 00211 }; 00212 00213 template<class ContainerAllocator> struct HasHeader< ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> > : public TrueType {}; 00214 template<class ContainerAllocator> struct HasHeader< const ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> > : public TrueType {}; 00215 } // namespace message_traits 00216 } // namespace ros 00217 00218 namespace ros 00219 { 00220 namespace serialization 00221 { 00222 00223 template<class ContainerAllocator> struct Serializer< ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> > 00224 { 00225 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00226 { 00227 stream.next(m.header); 00228 stream.next(m.strIdSubDev); 00229 stream.next(m.uiRaw); 00230 stream.next(m.fVolts); 00231 } 00232 00233 ROS_DECLARE_ALLINONE_SERIALIZER; 00234 }; // struct sub20_ADC_meas_ 00235 } // namespace serialization 00236 } // namespace ros 00237 00238 namespace ros 00239 { 00240 namespace message_operations 00241 { 00242 00243 template<class ContainerAllocator> 00244 struct Printer< ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> > 00245 { 00246 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::adc_sub20::sub20_ADC_meas_<ContainerAllocator> & v) 00247 { 00248 s << indent << "header: "; 00249 s << std::endl; 00250 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00251 s << indent << "strIdSubDev: "; 00252 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.strIdSubDev); 00253 s << indent << "uiRaw[]" << std::endl; 00254 for (size_t i = 0; i < v.uiRaw.size(); ++i) 00255 { 00256 s << indent << " uiRaw[" << i << "]: "; 00257 Printer<uint16_t>::stream(s, indent + " ", v.uiRaw[i]); 00258 } 00259 s << indent << "fVolts[]" << std::endl; 00260 for (size_t i = 0; i < v.fVolts.size(); ++i) 00261 { 00262 s << indent << " fVolts[" << i << "]: "; 00263 Printer<double>::stream(s, indent + " ", v.fVolts[i]); 00264 } 00265 } 00266 }; 00267 00268 00269 } // namespace message_operations 00270 } // namespace ros 00271 00272 #endif // ADC_SUB20_MESSAGE_SUB20_ADC_MEAS_H 00273