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