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


bma180
Author(s): Lukas Marti, Nikhil Deshpande, Philip Roan (Maintained by Philip Roan)
autogenerated on Sat Dec 28 2013 16:50:12