41 int main(
int argc,
char** argv)
44 printf(
"Usage: %s input.yml output.ini\n" 45 " %s input.ini output.yml\n", argv[0], argv[0]);
50 sensor_msgs::CameraInfo cam_info;
52 ROS_ERROR(
"Failed to load camera model from file %s", argv[1]);
56 ROS_ERROR(
"Failed to save camera model to file %s", argv[2]);
int main(int argc, char **argv)
bool readCalibration(const std::string &file_name, std::string &camera_name, sensor_msgs::CameraInfo &cam_info)
Read calibration parameters from a file.
bool writeCalibration(const std::string &file_name, const std::string &camera_name, const sensor_msgs::CameraInfo &cam_info)
Write calibration parameters to a file.