00001
00002 #ifndef SENSOR_MSGS_BOOST_SERIALIZATION_CAMERAINFO_H
00003 #define SENSOR_MSGS_BOOST_SERIALIZATION_CAMERAINFO_H
00004
00005 #include <boost/serialization/serialization.hpp>
00006 #include <boost/serialization/nvp.hpp>
00007 #include <sensor_msgs/CameraInfo.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 "sensor_msgs/boost/RegionOfInterest.h"
00015
00016 namespace boost
00017 {
00018 namespace serialization
00019 {
00020
00021 template<class Archive, class ContainerAllocator>
00022 void serialize(Archive& a, ::sensor_msgs::CameraInfo_<ContainerAllocator> & m, unsigned int)
00023 {
00024 a & make_nvp("header",m.header);
00025 a & make_nvp("height",m.height);
00026 a & make_nvp("width",m.width);
00027 a & make_nvp("distortion_model",m.distortion_model);
00028 a & make_nvp("D",m.D);
00029 a & make_nvp("K",m.K);
00030 a & make_nvp("R",m.R);
00031 a & make_nvp("P",m.P);
00032 a & make_nvp("binning_x",m.binning_x);
00033 a & make_nvp("binning_y",m.binning_y);
00034 a & make_nvp("roi",m.roi);
00035 }
00036
00037 }
00038 }
00039
00040 #endif // SENSOR_MSGS_BOOST_SERIALIZATION_CAMERAINFO_H
00041