00001
00002 #ifndef SENSOR_MSGS_BOOST_SERIALIZATION_IMU_H
00003 #define SENSOR_MSGS_BOOST_SERIALIZATION_IMU_H
00004
00005 #include <boost/serialization/serialization.hpp>
00006 #include <boost/serialization/nvp.hpp>
00007 #include <sensor_msgs/Imu.h>
00008 #include <ros/common.h>
00009 #if ROS_VERSION_MINIMUM(1,4,0)
00010 #include <std_msgs/Header.h>
00011 #else
00012 #include <roslib/Header.h>
00013 #endif
00014 #include "geometry_msgs/boost/Quaternion.h"
00015 #include "geometry_msgs/boost/Vector3.h"
00016 #include "geometry_msgs/boost/Vector3.h"
00017
00018 namespace boost
00019 {
00020 namespace serialization
00021 {
00022
00023 template<class Archive, class ContainerAllocator>
00024 void serialize(Archive& a, ::sensor_msgs::Imu_<ContainerAllocator> & m, unsigned int)
00025 {
00026 a & make_nvp("header",m.header);
00027 a & make_nvp("orientation",m.orientation);
00028 a & make_nvp("orientation_covariance",m.orientation_covariance);
00029 a & make_nvp("angular_velocity",m.angular_velocity);
00030 a & make_nvp("angular_velocity_covariance",m.angular_velocity_covariance);
00031 a & make_nvp("linear_acceleration",m.linear_acceleration);
00032 a & make_nvp("linear_acceleration_covariance",m.linear_acceleration_covariance);
00033 }
00034
00035 }
00036 }
00037
00038 #endif // SENSOR_MSGS_BOOST_SERIALIZATION_IMU_H
00039