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


bma180_driver
Author(s): Joshua Vasquez, Philip Roan. Maintained by Philip Roan
autogenerated on Sat Dec 28 2013 16:49:14