39 #include <boost/algorithm/string/predicate.hpp>
43 bool writeCalibration(
const std::string& file_name,
const std::string& camera_name,
44 const sensor_msgs::CameraInfo& cam_info)
46 if (boost::iends_with(file_name,
".ini"))
48 if (boost::iends_with(file_name,
".yml") || boost::iends_with(file_name,
".yaml"))
54 bool readCalibration(
const std::string& file_name, std::string& camera_name,
55 sensor_msgs::CameraInfo& cam_info)
57 if (boost::iends_with(file_name,
".ini"))
59 if (boost::iends_with(file_name,
".yml") || boost::iends_with(file_name,
".yaml"))
66 std::string& camera_name, sensor_msgs::CameraInfo& cam_info)