IMURawData.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-asctec_drivers/doc_stacks/2014-01-07_11-02-55.712616/asctec_drivers/asctec_msgs/msg/IMURawData.msg */
00002 #ifndef ASCTEC_MSGS_MESSAGE_IMURAWDATA_H
00003 #define ASCTEC_MSGS_MESSAGE_IMURAWDATA_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 asctec_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct IMURawData_ {
00023   typedef IMURawData_<ContainerAllocator> Type;
00024 
00025   IMURawData_()
00026   : header()
00027   , pressure(0)
00028   , gyro_x(0)
00029   , gyro_y(0)
00030   , gyro_z(0)
00031   , mag_x(0)
00032   , mag_y(0)
00033   , mag_z(0)
00034   , acc_x(0)
00035   , acc_y(0)
00036   , acc_z(0)
00037   , temp_gyro(0)
00038   , temp_ADC(0)
00039   {
00040   }
00041 
00042   IMURawData_(const ContainerAllocator& _alloc)
00043   : header(_alloc)
00044   , pressure(0)
00045   , gyro_x(0)
00046   , gyro_y(0)
00047   , gyro_z(0)
00048   , mag_x(0)
00049   , mag_y(0)
00050   , mag_z(0)
00051   , acc_x(0)
00052   , acc_y(0)
00053   , acc_z(0)
00054   , temp_gyro(0)
00055   , temp_ADC(0)
00056   {
00057   }
00058 
00059   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00060    ::std_msgs::Header_<ContainerAllocator>  header;
00061 
00062   typedef int32_t _pressure_type;
00063   int32_t pressure;
00064 
00065   typedef int16_t _gyro_x_type;
00066   int16_t gyro_x;
00067 
00068   typedef int16_t _gyro_y_type;
00069   int16_t gyro_y;
00070 
00071   typedef int16_t _gyro_z_type;
00072   int16_t gyro_z;
00073 
00074   typedef int16_t _mag_x_type;
00075   int16_t mag_x;
00076 
00077   typedef int16_t _mag_y_type;
00078   int16_t mag_y;
00079 
00080   typedef int16_t _mag_z_type;
00081   int16_t mag_z;
00082 
00083   typedef int16_t _acc_x_type;
00084   int16_t acc_x;
00085 
00086   typedef int16_t _acc_y_type;
00087   int16_t acc_y;
00088 
00089   typedef int16_t _acc_z_type;
00090   int16_t acc_z;
00091 
00092   typedef int16_t _temp_gyro_type;
00093   int16_t temp_gyro;
00094 
00095   typedef int32_t _temp_ADC_type;
00096   int32_t temp_ADC;
00097 
00098 
00099   typedef boost::shared_ptr< ::asctec_msgs::IMURawData_<ContainerAllocator> > Ptr;
00100   typedef boost::shared_ptr< ::asctec_msgs::IMURawData_<ContainerAllocator>  const> ConstPtr;
00101   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00102 }; // struct IMURawData
00103 typedef  ::asctec_msgs::IMURawData_<std::allocator<void> > IMURawData;
00104 
00105 typedef boost::shared_ptr< ::asctec_msgs::IMURawData> IMURawDataPtr;
00106 typedef boost::shared_ptr< ::asctec_msgs::IMURawData const> IMURawDataConstPtr;
00107 
00108 
00109 template<typename ContainerAllocator>
00110 std::ostream& operator<<(std::ostream& s, const  ::asctec_msgs::IMURawData_<ContainerAllocator> & v)
00111 {
00112   ros::message_operations::Printer< ::asctec_msgs::IMURawData_<ContainerAllocator> >::stream(s, "", v);
00113   return s;}
00114 
00115 } // namespace asctec_msgs
00116 
00117 namespace ros
00118 {
00119 namespace message_traits
00120 {
00121 template<class ContainerAllocator> struct IsMessage< ::asctec_msgs::IMURawData_<ContainerAllocator> > : public TrueType {};
00122 template<class ContainerAllocator> struct IsMessage< ::asctec_msgs::IMURawData_<ContainerAllocator>  const> : public TrueType {};
00123 template<class ContainerAllocator>
00124 struct MD5Sum< ::asctec_msgs::IMURawData_<ContainerAllocator> > {
00125   static const char* value() 
00126   {
00127     return "2cfd4b9ba0bc72be7f937c948d990cd9";
00128   }
00129 
00130   static const char* value(const  ::asctec_msgs::IMURawData_<ContainerAllocator> &) { return value(); } 
00131   static const uint64_t static_value1 = 0x2cfd4b9ba0bc72beULL;
00132   static const uint64_t static_value2 = 0x7f937c948d990cd9ULL;
00133 };
00134 
00135 template<class ContainerAllocator>
00136 struct DataType< ::asctec_msgs::IMURawData_<ContainerAllocator> > {
00137   static const char* value() 
00138   {
00139     return "asctec_msgs/IMURawData";
00140   }
00141 
00142   static const char* value(const  ::asctec_msgs::IMURawData_<ContainerAllocator> &) { return value(); } 
00143 };
00144 
00145 template<class ContainerAllocator>
00146 struct Definition< ::asctec_msgs::IMURawData_<ContainerAllocator> > {
00147   static const char* value() 
00148   {
00149     return "# Software License Agreement (BSD License)\n\
00150 #\n\
00151 # Copyright (c) 2010\n\
00152 #  William Morris <morris@ee.ccny.cuny.edu>\n\
00153 #  Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\
00154 # All rights reserved.\n\
00155 #\n\
00156 # Redistribution and use in source and binary forms, with or without\n\
00157 # modification, are permitted provided that the following conditions\n\
00158 # are met:\n\
00159 #\n\
00160 #  * Redistributions of source code must retain the above copyright\n\
00161 #    notice, this list of conditions and the following disclaimer.\n\
00162 #  * Redistributions in binary form must reproduce the above\n\
00163 #    copyright notice, this list of conditions and the following\n\
00164 #    disclaimer in the documentation and/or other materials provided\n\
00165 #    with the distribution.\n\
00166 #  * Neither the name of CCNY Robotics Lab nor the names of its\n\
00167 #    contributors may be used to endorse or promote products derived\n\
00168 #    from this software without specific prior written permission.\n\
00169 #\n\
00170 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
00171 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
00172 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\
00173 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\
00174 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\
00175 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\
00176 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\
00177 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
00178 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\
00179 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\
00180 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\
00181 # POSSIBILITY OF SUCH DAMAGE.\n\
00182 \n\
00183 Header header\n\
00184 #pressure sensor 24-bit value, not scaled but bias free\n\
00185 int32 pressure\n\
00186 \n\
00187 #16-bit gyro readings; 32768 = 2.5V\n\
00188 int16 gyro_x\n\
00189 int16 gyro_y\n\
00190 int16 gyro_z\n\
00191 \n\
00192 #10-bit magnetic field sensor readings\n\
00193 int16 mag_x\n\
00194 int16 mag_y\n\
00195 int16 mag_z\n\
00196 \n\
00197 #16-bit accelerometer readings\n\
00198 int16 acc_x\n\
00199 int16 acc_y\n\
00200 int16 acc_z\n\
00201 \n\
00202 #16-bit temperature measurement using yaw-gyro internal sensor\n\
00203 int16 temp_gyro\n\
00204 \n\
00205 #16-bit temperature measurement using ADC internal sensor\n\
00206 int32 temp_ADC\n\
00207 \n\
00208 ================================================================================\n\
00209 MSG: std_msgs/Header\n\
00210 # Standard metadata for higher-level stamped data types.\n\
00211 # This is generally used to communicate timestamped data \n\
00212 # in a particular coordinate frame.\n\
00213 # \n\
00214 # sequence ID: consecutively increasing ID \n\
00215 uint32 seq\n\
00216 #Two-integer timestamp that is expressed as:\n\
00217 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00218 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00219 # time-handling sugar is provided by the client library\n\
00220 time stamp\n\
00221 #Frame this data is associated with\n\
00222 # 0: no frame\n\
00223 # 1: global frame\n\
00224 string frame_id\n\
00225 \n\
00226 ";
00227   }
00228 
00229   static const char* value(const  ::asctec_msgs::IMURawData_<ContainerAllocator> &) { return value(); } 
00230 };
00231 
00232 template<class ContainerAllocator> struct HasHeader< ::asctec_msgs::IMURawData_<ContainerAllocator> > : public TrueType {};
00233 template<class ContainerAllocator> struct HasHeader< const ::asctec_msgs::IMURawData_<ContainerAllocator> > : public TrueType {};
00234 } // namespace message_traits
00235 } // namespace ros
00236 
00237 namespace ros
00238 {
00239 namespace serialization
00240 {
00241 
00242 template<class ContainerAllocator> struct Serializer< ::asctec_msgs::IMURawData_<ContainerAllocator> >
00243 {
00244   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00245   {
00246     stream.next(m.header);
00247     stream.next(m.pressure);
00248     stream.next(m.gyro_x);
00249     stream.next(m.gyro_y);
00250     stream.next(m.gyro_z);
00251     stream.next(m.mag_x);
00252     stream.next(m.mag_y);
00253     stream.next(m.mag_z);
00254     stream.next(m.acc_x);
00255     stream.next(m.acc_y);
00256     stream.next(m.acc_z);
00257     stream.next(m.temp_gyro);
00258     stream.next(m.temp_ADC);
00259   }
00260 
00261   ROS_DECLARE_ALLINONE_SERIALIZER;
00262 }; // struct IMURawData_
00263 } // namespace serialization
00264 } // namespace ros
00265 
00266 namespace ros
00267 {
00268 namespace message_operations
00269 {
00270 
00271 template<class ContainerAllocator>
00272 struct Printer< ::asctec_msgs::IMURawData_<ContainerAllocator> >
00273 {
00274   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::asctec_msgs::IMURawData_<ContainerAllocator> & v) 
00275   {
00276     s << indent << "header: ";
00277 s << std::endl;
00278     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00279     s << indent << "pressure: ";
00280     Printer<int32_t>::stream(s, indent + "  ", v.pressure);
00281     s << indent << "gyro_x: ";
00282     Printer<int16_t>::stream(s, indent + "  ", v.gyro_x);
00283     s << indent << "gyro_y: ";
00284     Printer<int16_t>::stream(s, indent + "  ", v.gyro_y);
00285     s << indent << "gyro_z: ";
00286     Printer<int16_t>::stream(s, indent + "  ", v.gyro_z);
00287     s << indent << "mag_x: ";
00288     Printer<int16_t>::stream(s, indent + "  ", v.mag_x);
00289     s << indent << "mag_y: ";
00290     Printer<int16_t>::stream(s, indent + "  ", v.mag_y);
00291     s << indent << "mag_z: ";
00292     Printer<int16_t>::stream(s, indent + "  ", v.mag_z);
00293     s << indent << "acc_x: ";
00294     Printer<int16_t>::stream(s, indent + "  ", v.acc_x);
00295     s << indent << "acc_y: ";
00296     Printer<int16_t>::stream(s, indent + "  ", v.acc_y);
00297     s << indent << "acc_z: ";
00298     Printer<int16_t>::stream(s, indent + "  ", v.acc_z);
00299     s << indent << "temp_gyro: ";
00300     Printer<int16_t>::stream(s, indent + "  ", v.temp_gyro);
00301     s << indent << "temp_ADC: ";
00302     Printer<int32_t>::stream(s, indent + "  ", v.temp_ADC);
00303   }
00304 };
00305 
00306 
00307 } // namespace message_operations
00308 } // namespace ros
00309 
00310 #endif // ASCTEC_MSGS_MESSAGE_IMURAWDATA_H
00311 


asctec_msgs
Author(s): William Morris, Ivan Dryanovski, Steven Bellens, Patrick Bouffard et al.
autogenerated on Tue Jan 7 2014 11:04:07