00001
00002 #ifndef LSE_SENSOR_MSGS_MESSAGE_NOSTRIL_H
00003 #define LSE_SENSOR_MSGS_MESSAGE_NOSTRIL_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 lse_sensor_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct Nostril_ {
00023 typedef Nostril_<ContainerAllocator> Type;
00024
00025 Nostril_()
00026 : header()
00027 , sensor_model()
00028 , gas_type()
00029 , reading(0.0)
00030 , min_reading(0.0)
00031 , max_reading(0.0)
00032 , clean_air(0.0)
00033 , raw_data(0)
00034 {
00035 }
00036
00037 Nostril_(const ContainerAllocator& _alloc)
00038 : header(_alloc)
00039 , sensor_model(_alloc)
00040 , gas_type(_alloc)
00041 , reading(0.0)
00042 , min_reading(0.0)
00043 , max_reading(0.0)
00044 , clean_air(0.0)
00045 , raw_data(0)
00046 {
00047 }
00048
00049 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00050 ::std_msgs::Header_<ContainerAllocator> header;
00051
00052 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _sensor_model_type;
00053 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > sensor_model;
00054
00055 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _gas_type_type;
00056 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > gas_type;
00057
00058 typedef float _reading_type;
00059 float reading;
00060
00061 typedef float _min_reading_type;
00062 float min_reading;
00063
00064 typedef float _max_reading_type;
00065 float max_reading;
00066
00067 typedef float _clean_air_type;
00068 float clean_air;
00069
00070 typedef uint16_t _raw_data_type;
00071 uint16_t raw_data;
00072
00073 enum { ORGANIC_SOLVENTS = 0 };
00074 enum { AIR_CONTAMINANTS = 1 };
00075 enum { GENERAL_COMBUSTIBLE = 3 };
00076 enum { NATURAL_GAS_METHANE = 4 };
00077
00078 typedef boost::shared_ptr< ::lse_sensor_msgs::Nostril_<ContainerAllocator> > Ptr;
00079 typedef boost::shared_ptr< ::lse_sensor_msgs::Nostril_<ContainerAllocator> const> ConstPtr;
00080 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00081 };
00082 typedef ::lse_sensor_msgs::Nostril_<std::allocator<void> > Nostril;
00083
00084 typedef boost::shared_ptr< ::lse_sensor_msgs::Nostril> NostrilPtr;
00085 typedef boost::shared_ptr< ::lse_sensor_msgs::Nostril const> NostrilConstPtr;
00086
00087
00088 template<typename ContainerAllocator>
00089 std::ostream& operator<<(std::ostream& s, const ::lse_sensor_msgs::Nostril_<ContainerAllocator> & v)
00090 {
00091 ros::message_operations::Printer< ::lse_sensor_msgs::Nostril_<ContainerAllocator> >::stream(s, "", v);
00092 return s;}
00093
00094 }
00095
00096 namespace ros
00097 {
00098 namespace message_traits
00099 {
00100 template<class ContainerAllocator> struct IsMessage< ::lse_sensor_msgs::Nostril_<ContainerAllocator> > : public TrueType {};
00101 template<class ContainerAllocator> struct IsMessage< ::lse_sensor_msgs::Nostril_<ContainerAllocator> const> : public TrueType {};
00102 template<class ContainerAllocator>
00103 struct MD5Sum< ::lse_sensor_msgs::Nostril_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "24385882d831997bf818f9304248e052";
00107 }
00108
00109 static const char* value(const ::lse_sensor_msgs::Nostril_<ContainerAllocator> &) { return value(); }
00110 static const uint64_t static_value1 = 0x24385882d831997bULL;
00111 static const uint64_t static_value2 = 0xf818f9304248e052ULL;
00112 };
00113
00114 template<class ContainerAllocator>
00115 struct DataType< ::lse_sensor_msgs::Nostril_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "lse_sensor_msgs/Nostril";
00119 }
00120
00121 static const char* value(const ::lse_sensor_msgs::Nostril_<ContainerAllocator> &) { return value(); }
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct Definition< ::lse_sensor_msgs::Nostril_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "# Single gas sensor msg\n\
00129 \n\
00130 Header header # timestamp and frame_id\n\
00131 \n\
00132 string sensor_model\n\
00133 \n\
00134 # Gases enums\n\
00135 uint8 ORGANIC_SOLVENTS=0\n\
00136 uint8 AIR_CONTAMINANTS=1\n\
00137 uint8 GENERAL_COMBUSTIBLE=3\n\
00138 uint8 NATURAL_GAS_METHANE=4\n\
00139 \n\
00140 uint8[] gas_type # the types of gases detected by the sensor\n\
00141 \n\
00142 float32 reading # ppm\n\
00143 \n\
00144 float32 min_reading # ppm\n\
00145 float32 max_reading # ppm\n\
00146 \n\
00147 float32 clean_air # ppm\n\
00148 \n\
00149 uint16 raw_data # mV\n\
00150 \n\
00151 ================================================================================\n\
00152 MSG: std_msgs/Header\n\
00153 # Standard metadata for higher-level stamped data types.\n\
00154 # This is generally used to communicate timestamped data \n\
00155 # in a particular coordinate frame.\n\
00156 # \n\
00157 # sequence ID: consecutively increasing ID \n\
00158 uint32 seq\n\
00159 #Two-integer timestamp that is expressed as:\n\
00160 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00161 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00162 # time-handling sugar is provided by the client library\n\
00163 time stamp\n\
00164 #Frame this data is associated with\n\
00165 # 0: no frame\n\
00166 # 1: global frame\n\
00167 string frame_id\n\
00168 \n\
00169 ";
00170 }
00171
00172 static const char* value(const ::lse_sensor_msgs::Nostril_<ContainerAllocator> &) { return value(); }
00173 };
00174
00175 template<class ContainerAllocator> struct HasHeader< ::lse_sensor_msgs::Nostril_<ContainerAllocator> > : public TrueType {};
00176 template<class ContainerAllocator> struct HasHeader< const ::lse_sensor_msgs::Nostril_<ContainerAllocator> > : public TrueType {};
00177 }
00178 }
00179
00180 namespace ros
00181 {
00182 namespace serialization
00183 {
00184
00185 template<class ContainerAllocator> struct Serializer< ::lse_sensor_msgs::Nostril_<ContainerAllocator> >
00186 {
00187 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00188 {
00189 stream.next(m.header);
00190 stream.next(m.sensor_model);
00191 stream.next(m.gas_type);
00192 stream.next(m.reading);
00193 stream.next(m.min_reading);
00194 stream.next(m.max_reading);
00195 stream.next(m.clean_air);
00196 stream.next(m.raw_data);
00197 }
00198
00199 ROS_DECLARE_ALLINONE_SERIALIZER;
00200 };
00201 }
00202 }
00203
00204 namespace ros
00205 {
00206 namespace message_operations
00207 {
00208
00209 template<class ContainerAllocator>
00210 struct Printer< ::lse_sensor_msgs::Nostril_<ContainerAllocator> >
00211 {
00212 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::lse_sensor_msgs::Nostril_<ContainerAllocator> & v)
00213 {
00214 s << indent << "header: ";
00215 s << std::endl;
00216 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00217 s << indent << "sensor_model: ";
00218 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.sensor_model);
00219 s << indent << "gas_type[]" << std::endl;
00220 for (size_t i = 0; i < v.gas_type.size(); ++i)
00221 {
00222 s << indent << " gas_type[" << i << "]: ";
00223 Printer<uint8_t>::stream(s, indent + " ", v.gas_type[i]);
00224 }
00225 s << indent << "reading: ";
00226 Printer<float>::stream(s, indent + " ", v.reading);
00227 s << indent << "min_reading: ";
00228 Printer<float>::stream(s, indent + " ", v.min_reading);
00229 s << indent << "max_reading: ";
00230 Printer<float>::stream(s, indent + " ", v.max_reading);
00231 s << indent << "clean_air: ";
00232 Printer<float>::stream(s, indent + " ", v.clean_air);
00233 s << indent << "raw_data: ";
00234 Printer<uint16_t>::stream(s, indent + " ", v.raw_data);
00235 }
00236 };
00237
00238
00239 }
00240 }
00241
00242 #endif // LSE_SENSOR_MSGS_MESSAGE_NOSTRIL_H
00243