00001
00002 #ifndef ASCTEC_MSGS_MESSAGE_IMURAWDATA_H
00003 #define ASCTEC_MSGS_MESSAGE_IMURAWDATA_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "std_msgs/Header.h"
00014
00015 namespace asctec_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct IMURawData_ : public ros::Message
00019 {
00020 typedef IMURawData_<ContainerAllocator> Type;
00021
00022 IMURawData_()
00023 : header()
00024 , pressure(0)
00025 , gyro_x(0)
00026 , gyro_y(0)
00027 , gyro_z(0)
00028 , mag_x(0)
00029 , mag_y(0)
00030 , mag_z(0)
00031 , acc_x(0)
00032 , acc_y(0)
00033 , acc_z(0)
00034 , temp_gyro(0)
00035 , temp_ADC(0)
00036 {
00037 }
00038
00039 IMURawData_(const ContainerAllocator& _alloc)
00040 : header(_alloc)
00041 , pressure(0)
00042 , gyro_x(0)
00043 , gyro_y(0)
00044 , gyro_z(0)
00045 , mag_x(0)
00046 , mag_y(0)
00047 , mag_z(0)
00048 , acc_x(0)
00049 , acc_y(0)
00050 , acc_z(0)
00051 , temp_gyro(0)
00052 , temp_ADC(0)
00053 {
00054 }
00055
00056 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00057 ::std_msgs::Header_<ContainerAllocator> header;
00058
00059 typedef int32_t _pressure_type;
00060 int32_t pressure;
00061
00062 typedef int16_t _gyro_x_type;
00063 int16_t gyro_x;
00064
00065 typedef int16_t _gyro_y_type;
00066 int16_t gyro_y;
00067
00068 typedef int16_t _gyro_z_type;
00069 int16_t gyro_z;
00070
00071 typedef int16_t _mag_x_type;
00072 int16_t mag_x;
00073
00074 typedef int16_t _mag_y_type;
00075 int16_t mag_y;
00076
00077 typedef int16_t _mag_z_type;
00078 int16_t mag_z;
00079
00080 typedef int16_t _acc_x_type;
00081 int16_t acc_x;
00082
00083 typedef int16_t _acc_y_type;
00084 int16_t acc_y;
00085
00086 typedef int16_t _acc_z_type;
00087 int16_t acc_z;
00088
00089 typedef int16_t _temp_gyro_type;
00090 int16_t temp_gyro;
00091
00092 typedef int32_t _temp_ADC_type;
00093 int32_t temp_ADC;
00094
00095
00096 private:
00097 static const char* __s_getDataType_() { return "asctec_msgs/IMURawData"; }
00098 public:
00099 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00100
00101 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00102
00103 private:
00104 static const char* __s_getMD5Sum_() { return "2cfd4b9ba0bc72be7f937c948d990cd9"; }
00105 public:
00106 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00107
00108 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00109
00110 private:
00111 static const char* __s_getMessageDefinition_() { return "# Software License Agreement (BSD License)\n\
00112 #\n\
00113 # Copyright (c) 2010\n\
00114 # William Morris <morris@ee.ccny.cuny.edu>\n\
00115 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\
00116 # All rights reserved.\n\
00117 #\n\
00118 # Redistribution and use in source and binary forms, with or without\n\
00119 # modification, are permitted provided that the following conditions\n\
00120 # are met:\n\
00121 #\n\
00122 # * Redistributions of source code must retain the above copyright\n\
00123 # notice, this list of conditions and the following disclaimer.\n\
00124 # * Redistributions in binary form must reproduce the above\n\
00125 # copyright notice, this list of conditions and the following\n\
00126 # disclaimer in the documentation and/or other materials provided\n\
00127 # with the distribution.\n\
00128 # * Neither the name of CCNY Robotics Lab nor the names of its\n\
00129 # contributors may be used to endorse or promote products derived\n\
00130 # from this software without specific prior written permission.\n\
00131 #\n\
00132 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
00133 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
00134 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\
00135 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\
00136 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\
00137 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\
00138 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\
00139 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
00140 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\
00141 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\
00142 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\
00143 # POSSIBILITY OF SUCH DAMAGE.\n\
00144 \n\
00145 Header header\n\
00146 #pressure sensor 24-bit value, not scaled but bias free\n\
00147 int32 pressure\n\
00148 \n\
00149 #16-bit gyro readings; 32768 = 2.5V\n\
00150 int16 gyro_x\n\
00151 int16 gyro_y\n\
00152 int16 gyro_z\n\
00153 \n\
00154 #10-bit magnetic field sensor readings\n\
00155 int16 mag_x\n\
00156 int16 mag_y\n\
00157 int16 mag_z\n\
00158 \n\
00159 #16-bit accelerometer readings\n\
00160 int16 acc_x\n\
00161 int16 acc_y\n\
00162 int16 acc_z\n\
00163 \n\
00164 #16-bit temperature measurement using yaw-gyro internal sensor\n\
00165 int16 temp_gyro\n\
00166 \n\
00167 #16-bit temperature measurement using ADC internal sensor\n\
00168 int32 temp_ADC\n\
00169 \n\
00170 ================================================================================\n\
00171 MSG: std_msgs/Header\n\
00172 # Standard metadata for higher-level stamped data types.\n\
00173 # This is generally used to communicate timestamped data \n\
00174 # in a particular coordinate frame.\n\
00175 # \n\
00176 # sequence ID: consecutively increasing ID \n\
00177 uint32 seq\n\
00178 #Two-integer timestamp that is expressed as:\n\
00179 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00180 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00181 # time-handling sugar is provided by the client library\n\
00182 time stamp\n\
00183 #Frame this data is associated with\n\
00184 # 0: no frame\n\
00185 # 1: global frame\n\
00186 string frame_id\n\
00187 \n\
00188 "; }
00189 public:
00190 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00191
00192 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00193
00194 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00195 {
00196 ros::serialization::OStream stream(write_ptr, 1000000000);
00197 ros::serialization::serialize(stream, header);
00198 ros::serialization::serialize(stream, pressure);
00199 ros::serialization::serialize(stream, gyro_x);
00200 ros::serialization::serialize(stream, gyro_y);
00201 ros::serialization::serialize(stream, gyro_z);
00202 ros::serialization::serialize(stream, mag_x);
00203 ros::serialization::serialize(stream, mag_y);
00204 ros::serialization::serialize(stream, mag_z);
00205 ros::serialization::serialize(stream, acc_x);
00206 ros::serialization::serialize(stream, acc_y);
00207 ros::serialization::serialize(stream, acc_z);
00208 ros::serialization::serialize(stream, temp_gyro);
00209 ros::serialization::serialize(stream, temp_ADC);
00210 return stream.getData();
00211 }
00212
00213 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00214 {
00215 ros::serialization::IStream stream(read_ptr, 1000000000);
00216 ros::serialization::deserialize(stream, header);
00217 ros::serialization::deserialize(stream, pressure);
00218 ros::serialization::deserialize(stream, gyro_x);
00219 ros::serialization::deserialize(stream, gyro_y);
00220 ros::serialization::deserialize(stream, gyro_z);
00221 ros::serialization::deserialize(stream, mag_x);
00222 ros::serialization::deserialize(stream, mag_y);
00223 ros::serialization::deserialize(stream, mag_z);
00224 ros::serialization::deserialize(stream, acc_x);
00225 ros::serialization::deserialize(stream, acc_y);
00226 ros::serialization::deserialize(stream, acc_z);
00227 ros::serialization::deserialize(stream, temp_gyro);
00228 ros::serialization::deserialize(stream, temp_ADC);
00229 return stream.getData();
00230 }
00231
00232 ROS_DEPRECATED virtual uint32_t serializationLength() const
00233 {
00234 uint32_t size = 0;
00235 size += ros::serialization::serializationLength(header);
00236 size += ros::serialization::serializationLength(pressure);
00237 size += ros::serialization::serializationLength(gyro_x);
00238 size += ros::serialization::serializationLength(gyro_y);
00239 size += ros::serialization::serializationLength(gyro_z);
00240 size += ros::serialization::serializationLength(mag_x);
00241 size += ros::serialization::serializationLength(mag_y);
00242 size += ros::serialization::serializationLength(mag_z);
00243 size += ros::serialization::serializationLength(acc_x);
00244 size += ros::serialization::serializationLength(acc_y);
00245 size += ros::serialization::serializationLength(acc_z);
00246 size += ros::serialization::serializationLength(temp_gyro);
00247 size += ros::serialization::serializationLength(temp_ADC);
00248 return size;
00249 }
00250
00251 typedef boost::shared_ptr< ::asctec_msgs::IMURawData_<ContainerAllocator> > Ptr;
00252 typedef boost::shared_ptr< ::asctec_msgs::IMURawData_<ContainerAllocator> const> ConstPtr;
00253 };
00254 typedef ::asctec_msgs::IMURawData_<std::allocator<void> > IMURawData;
00255
00256 typedef boost::shared_ptr< ::asctec_msgs::IMURawData> IMURawDataPtr;
00257 typedef boost::shared_ptr< ::asctec_msgs::IMURawData const> IMURawDataConstPtr;
00258
00259
00260 template<typename ContainerAllocator>
00261 std::ostream& operator<<(std::ostream& s, const ::asctec_msgs::IMURawData_<ContainerAllocator> & v)
00262 {
00263 ros::message_operations::Printer< ::asctec_msgs::IMURawData_<ContainerAllocator> >::stream(s, "", v);
00264 return s;}
00265
00266 }
00267
00268 namespace ros
00269 {
00270 namespace message_traits
00271 {
00272 template<class ContainerAllocator>
00273 struct MD5Sum< ::asctec_msgs::IMURawData_<ContainerAllocator> > {
00274 static const char* value()
00275 {
00276 return "2cfd4b9ba0bc72be7f937c948d990cd9";
00277 }
00278
00279 static const char* value(const ::asctec_msgs::IMURawData_<ContainerAllocator> &) { return value(); }
00280 static const uint64_t static_value1 = 0x2cfd4b9ba0bc72beULL;
00281 static const uint64_t static_value2 = 0x7f937c948d990cd9ULL;
00282 };
00283
00284 template<class ContainerAllocator>
00285 struct DataType< ::asctec_msgs::IMURawData_<ContainerAllocator> > {
00286 static const char* value()
00287 {
00288 return "asctec_msgs/IMURawData";
00289 }
00290
00291 static const char* value(const ::asctec_msgs::IMURawData_<ContainerAllocator> &) { return value(); }
00292 };
00293
00294 template<class ContainerAllocator>
00295 struct Definition< ::asctec_msgs::IMURawData_<ContainerAllocator> > {
00296 static const char* value()
00297 {
00298 return "# Software License Agreement (BSD License)\n\
00299 #\n\
00300 # Copyright (c) 2010\n\
00301 # William Morris <morris@ee.ccny.cuny.edu>\n\
00302 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\
00303 # All rights reserved.\n\
00304 #\n\
00305 # Redistribution and use in source and binary forms, with or without\n\
00306 # modification, are permitted provided that the following conditions\n\
00307 # are met:\n\
00308 #\n\
00309 # * Redistributions of source code must retain the above copyright\n\
00310 # notice, this list of conditions and the following disclaimer.\n\
00311 # * Redistributions in binary form must reproduce the above\n\
00312 # copyright notice, this list of conditions and the following\n\
00313 # disclaimer in the documentation and/or other materials provided\n\
00314 # with the distribution.\n\
00315 # * Neither the name of CCNY Robotics Lab nor the names of its\n\
00316 # contributors may be used to endorse or promote products derived\n\
00317 # from this software without specific prior written permission.\n\
00318 #\n\
00319 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
00320 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
00321 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\
00322 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\
00323 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\
00324 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\
00325 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\
00326 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
00327 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\
00328 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\
00329 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\
00330 # POSSIBILITY OF SUCH DAMAGE.\n\
00331 \n\
00332 Header header\n\
00333 #pressure sensor 24-bit value, not scaled but bias free\n\
00334 int32 pressure\n\
00335 \n\
00336 #16-bit gyro readings; 32768 = 2.5V\n\
00337 int16 gyro_x\n\
00338 int16 gyro_y\n\
00339 int16 gyro_z\n\
00340 \n\
00341 #10-bit magnetic field sensor readings\n\
00342 int16 mag_x\n\
00343 int16 mag_y\n\
00344 int16 mag_z\n\
00345 \n\
00346 #16-bit accelerometer readings\n\
00347 int16 acc_x\n\
00348 int16 acc_y\n\
00349 int16 acc_z\n\
00350 \n\
00351 #16-bit temperature measurement using yaw-gyro internal sensor\n\
00352 int16 temp_gyro\n\
00353 \n\
00354 #16-bit temperature measurement using ADC internal sensor\n\
00355 int32 temp_ADC\n\
00356 \n\
00357 ================================================================================\n\
00358 MSG: std_msgs/Header\n\
00359 # Standard metadata for higher-level stamped data types.\n\
00360 # This is generally used to communicate timestamped data \n\
00361 # in a particular coordinate frame.\n\
00362 # \n\
00363 # sequence ID: consecutively increasing ID \n\
00364 uint32 seq\n\
00365 #Two-integer timestamp that is expressed as:\n\
00366 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00367 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00368 # time-handling sugar is provided by the client library\n\
00369 time stamp\n\
00370 #Frame this data is associated with\n\
00371 # 0: no frame\n\
00372 # 1: global frame\n\
00373 string frame_id\n\
00374 \n\
00375 ";
00376 }
00377
00378 static const char* value(const ::asctec_msgs::IMURawData_<ContainerAllocator> &) { return value(); }
00379 };
00380
00381 template<class ContainerAllocator> struct HasHeader< ::asctec_msgs::IMURawData_<ContainerAllocator> > : public TrueType {};
00382 template<class ContainerAllocator> struct HasHeader< const ::asctec_msgs::IMURawData_<ContainerAllocator> > : public TrueType {};
00383 }
00384 }
00385
00386 namespace ros
00387 {
00388 namespace serialization
00389 {
00390
00391 template<class ContainerAllocator> struct Serializer< ::asctec_msgs::IMURawData_<ContainerAllocator> >
00392 {
00393 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00394 {
00395 stream.next(m.header);
00396 stream.next(m.pressure);
00397 stream.next(m.gyro_x);
00398 stream.next(m.gyro_y);
00399 stream.next(m.gyro_z);
00400 stream.next(m.mag_x);
00401 stream.next(m.mag_y);
00402 stream.next(m.mag_z);
00403 stream.next(m.acc_x);
00404 stream.next(m.acc_y);
00405 stream.next(m.acc_z);
00406 stream.next(m.temp_gyro);
00407 stream.next(m.temp_ADC);
00408 }
00409
00410 ROS_DECLARE_ALLINONE_SERIALIZER;
00411 };
00412 }
00413 }
00414
00415 namespace ros
00416 {
00417 namespace message_operations
00418 {
00419
00420 template<class ContainerAllocator>
00421 struct Printer< ::asctec_msgs::IMURawData_<ContainerAllocator> >
00422 {
00423 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::asctec_msgs::IMURawData_<ContainerAllocator> & v)
00424 {
00425 s << indent << "header: ";
00426 s << std::endl;
00427 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00428 s << indent << "pressure: ";
00429 Printer<int32_t>::stream(s, indent + " ", v.pressure);
00430 s << indent << "gyro_x: ";
00431 Printer<int16_t>::stream(s, indent + " ", v.gyro_x);
00432 s << indent << "gyro_y: ";
00433 Printer<int16_t>::stream(s, indent + " ", v.gyro_y);
00434 s << indent << "gyro_z: ";
00435 Printer<int16_t>::stream(s, indent + " ", v.gyro_z);
00436 s << indent << "mag_x: ";
00437 Printer<int16_t>::stream(s, indent + " ", v.mag_x);
00438 s << indent << "mag_y: ";
00439 Printer<int16_t>::stream(s, indent + " ", v.mag_y);
00440 s << indent << "mag_z: ";
00441 Printer<int16_t>::stream(s, indent + " ", v.mag_z);
00442 s << indent << "acc_x: ";
00443 Printer<int16_t>::stream(s, indent + " ", v.acc_x);
00444 s << indent << "acc_y: ";
00445 Printer<int16_t>::stream(s, indent + " ", v.acc_y);
00446 s << indent << "acc_z: ";
00447 Printer<int16_t>::stream(s, indent + " ", v.acc_z);
00448 s << indent << "temp_gyro: ";
00449 Printer<int16_t>::stream(s, indent + " ", v.temp_gyro);
00450 s << indent << "temp_ADC: ";
00451 Printer<int32_t>::stream(s, indent + " ", v.temp_ADC);
00452 }
00453 };
00454
00455
00456 }
00457 }
00458
00459 #endif // ASCTEC_MSGS_MESSAGE_IMURAWDATA_H
00460