proximity_sensor_measurement.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-bosch_proximity_sensor/doc_stacks/2014-01-03_11-07-26.656312/bosch_proximity_sensor/proximity_sensor_driver/msg/proximity_sensor_measurement.msg */
00002 #ifndef PROXIMITY_SENSOR_DRIVER_MESSAGE_PROXIMITY_SENSOR_MEASUREMENT_H
00003 #define PROXIMITY_SENSOR_DRIVER_MESSAGE_PROXIMITY_SENSOR_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 proximity_sensor_driver
00020 {
00021 template <class ContainerAllocator>
00022 struct proximity_sensor_measurement_ {
00023   typedef proximity_sensor_measurement_<ContainerAllocator> Type;
00024 
00025   proximity_sensor_measurement_()
00026   : header()
00027   , is_connected(false)
00028   , cell_count(0)
00029   , value()
00030   , offset()
00031   , limit()
00032   , status_go(false)
00033   , status_err(false)
00034   {
00035   }
00036 
00037   proximity_sensor_measurement_(const ContainerAllocator& _alloc)
00038   : header(_alloc)
00039   , is_connected(false)
00040   , cell_count(0)
00041   , value(_alloc)
00042   , offset(_alloc)
00043   , limit(_alloc)
00044   , status_go(false)
00045   , status_err(false)
00046   {
00047   }
00048 
00049   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00050    ::std_msgs::Header_<ContainerAllocator>  header;
00051 
00052   typedef uint8_t _is_connected_type;
00053   uint8_t is_connected;
00054 
00055   typedef uint8_t _cell_count_type;
00056   uint8_t cell_count;
00057 
00058   typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _value_type;
00059   std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  value;
00060 
00061   typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _offset_type;
00062   std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  offset;
00063 
00064   typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _limit_type;
00065   std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  limit;
00066 
00067   typedef uint8_t _status_go_type;
00068   uint8_t status_go;
00069 
00070   typedef uint8_t _status_err_type;
00071   uint8_t status_err;
00072 
00073 
00074   typedef boost::shared_ptr< ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> > Ptr;
00075   typedef boost::shared_ptr< ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator>  const> ConstPtr;
00076   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00077 }; // struct proximity_sensor_measurement
00078 typedef  ::proximity_sensor_driver::proximity_sensor_measurement_<std::allocator<void> > proximity_sensor_measurement;
00079 
00080 typedef boost::shared_ptr< ::proximity_sensor_driver::proximity_sensor_measurement> proximity_sensor_measurementPtr;
00081 typedef boost::shared_ptr< ::proximity_sensor_driver::proximity_sensor_measurement const> proximity_sensor_measurementConstPtr;
00082 
00083 
00084 template<typename ContainerAllocator>
00085 std::ostream& operator<<(std::ostream& s, const  ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> & v)
00086 {
00087   ros::message_operations::Printer< ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> >::stream(s, "", v);
00088   return s;}
00089 
00090 } // namespace proximity_sensor_driver
00091 
00092 namespace ros
00093 {
00094 namespace message_traits
00095 {
00096 template<class ContainerAllocator> struct IsMessage< ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> > : public TrueType {};
00097 template<class ContainerAllocator> struct IsMessage< ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator>  const> : public TrueType {};
00098 template<class ContainerAllocator>
00099 struct MD5Sum< ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> > {
00100   static const char* value() 
00101   {
00102     return "73f5f29ac482ceb683fbc4b5d848cfa6";
00103   }
00104 
00105   static const char* value(const  ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> &) { return value(); } 
00106   static const uint64_t static_value1 = 0x73f5f29ac482ceb6ULL;
00107   static const uint64_t static_value2 = 0x83fbc4b5d848cfa6ULL;
00108 };
00109 
00110 template<class ContainerAllocator>
00111 struct DataType< ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> > {
00112   static const char* value() 
00113   {
00114     return "proximity_sensor_driver/proximity_sensor_measurement";
00115   }
00116 
00117   static const char* value(const  ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> &) { return value(); } 
00118 };
00119 
00120 template<class ContainerAllocator>
00121 struct Definition< ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> > {
00122   static const char* value() 
00123   {
00124     return "Header header\n\
00125 bool is_connected\n\
00126 uint8 cell_count\n\
00127 uint8[] value\n\
00128 uint8[] offset\n\
00129 uint8[] limit\n\
00130 bool status_go\n\
00131 bool status_err\n\
00132 ================================================================================\n\
00133 MSG: std_msgs/Header\n\
00134 # Standard metadata for higher-level stamped data types.\n\
00135 # This is generally used to communicate timestamped data \n\
00136 # in a particular coordinate frame.\n\
00137 # \n\
00138 # sequence ID: consecutively increasing ID \n\
00139 uint32 seq\n\
00140 #Two-integer timestamp that is expressed as:\n\
00141 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00142 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00143 # time-handling sugar is provided by the client library\n\
00144 time stamp\n\
00145 #Frame this data is associated with\n\
00146 # 0: no frame\n\
00147 # 1: global frame\n\
00148 string frame_id\n\
00149 \n\
00150 ";
00151   }
00152 
00153   static const char* value(const  ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> &) { return value(); } 
00154 };
00155 
00156 template<class ContainerAllocator> struct HasHeader< ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> > : public TrueType {};
00157 template<class ContainerAllocator> struct HasHeader< const ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> > : public TrueType {};
00158 } // namespace message_traits
00159 } // namespace ros
00160 
00161 namespace ros
00162 {
00163 namespace serialization
00164 {
00165 
00166 template<class ContainerAllocator> struct Serializer< ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> >
00167 {
00168   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00169   {
00170     stream.next(m.header);
00171     stream.next(m.is_connected);
00172     stream.next(m.cell_count);
00173     stream.next(m.value);
00174     stream.next(m.offset);
00175     stream.next(m.limit);
00176     stream.next(m.status_go);
00177     stream.next(m.status_err);
00178   }
00179 
00180   ROS_DECLARE_ALLINONE_SERIALIZER;
00181 }; // struct proximity_sensor_measurement_
00182 } // namespace serialization
00183 } // namespace ros
00184 
00185 namespace ros
00186 {
00187 namespace message_operations
00188 {
00189 
00190 template<class ContainerAllocator>
00191 struct Printer< ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> >
00192 {
00193   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::proximity_sensor_driver::proximity_sensor_measurement_<ContainerAllocator> & v) 
00194   {
00195     s << indent << "header: ";
00196 s << std::endl;
00197     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00198     s << indent << "is_connected: ";
00199     Printer<uint8_t>::stream(s, indent + "  ", v.is_connected);
00200     s << indent << "cell_count: ";
00201     Printer<uint8_t>::stream(s, indent + "  ", v.cell_count);
00202     s << indent << "value[]" << std::endl;
00203     for (size_t i = 0; i < v.value.size(); ++i)
00204     {
00205       s << indent << "  value[" << i << "]: ";
00206       Printer<uint8_t>::stream(s, indent + "  ", v.value[i]);
00207     }
00208     s << indent << "offset[]" << std::endl;
00209     for (size_t i = 0; i < v.offset.size(); ++i)
00210     {
00211       s << indent << "  offset[" << i << "]: ";
00212       Printer<uint8_t>::stream(s, indent + "  ", v.offset[i]);
00213     }
00214     s << indent << "limit[]" << std::endl;
00215     for (size_t i = 0; i < v.limit.size(); ++i)
00216     {
00217       s << indent << "  limit[" << i << "]: ";
00218       Printer<uint8_t>::stream(s, indent + "  ", v.limit[i]);
00219     }
00220     s << indent << "status_go: ";
00221     Printer<uint8_t>::stream(s, indent + "  ", v.status_go);
00222     s << indent << "status_err: ";
00223     Printer<uint8_t>::stream(s, indent + "  ", v.status_err);
00224   }
00225 };
00226 
00227 
00228 } // namespace message_operations
00229 } // namespace ros
00230 
00231 #endif // PROXIMITY_SENSOR_DRIVER_MESSAGE_PROXIMITY_SENSOR_MEASUREMENT_H
00232 


proximity_sensor_driver
Author(s): Philip Roan, Joerg Wagner (Maintained by Philip Roan)
autogenerated on Fri Jan 3 2014 11:08:48