Functions
camera_calibration_parsers Namespace Reference

Functions

bool parseCalibration (const std::string &buffer, const std::string &format, std::string &camera_name, sensor_msgs::CameraInfo &cam_info)
 Parse calibration parameters from a string in memory.
bool parseCalibrationIni (const std::string &buffer, std::string &camera_name, sensor_msgs::CameraInfo &cam_info)
 Parse calibration parameters from a string in memory of INI format.
bool readCalibration (const std::string &file_name, std::string &camera_name, sensor_msgs::CameraInfo &cam_info)
 Read calibration parameters from a file.
bool readCalibrationIni (std::istream &in, std::string &camera_name, sensor_msgs::CameraInfo &cam_info)
 Read calibration parameters from an INI file.
bool readCalibrationIni (const std::string &file_name, std::string &camera_name, sensor_msgs::CameraInfo &cam_info)
 Read calibration parameters from an INI file.
bool readCalibrationYml (std::istream &in, std::string &camera_name, sensor_msgs::CameraInfo &cam_info)
 Read calibration parameters from a YAML file.
bool readCalibrationYml (const std::string &file_name, std::string &camera_name, sensor_msgs::CameraInfo &cam_info)
 Read calibration parameters from a YAML 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.
bool writeCalibrationIni (std::ostream &out, const std::string &camera_name, const sensor_msgs::CameraInfo &cam_info)
 Write calibration parameters to a file in INI format.
bool writeCalibrationIni (const std::string &file_name, const std::string &camera_name, const sensor_msgs::CameraInfo &cam_info)
 Write calibration parameters to a file in INI format.
bool writeCalibrationYml (std::ostream &out, const std::string &camera_name, const sensor_msgs::CameraInfo &cam_info)
 Write calibration parameters to a file in YAML format.
bool writeCalibrationYml (const std::string &file_name, const std::string &camera_name, const sensor_msgs::CameraInfo &cam_info)
 Write calibration parameters to a file in YAML format.

Detailed Description

Todo:
: use stream-based API, so no read/parse distinction

Function Documentation

bool camera_calibration_parsers::parseCalibration ( const std::string &  buffer,
const std::string &  format,
std::string &  camera_name,
sensor_msgs::CameraInfo &  cam_info 
)

Parse calibration parameters from a string in memory.

Parameters:
bufferCalibration string
formatFormat of calibration string, "yml" or "ini"
[out]camera_nameName of the camera
[out]cam_infoCamera parameters

Definition at line 31 of file parse.cpp.

bool camera_calibration_parsers::parseCalibrationIni ( const std::string &  buffer,
std::string &  camera_name,
sensor_msgs::CameraInfo &  cam_info 
)

Parse calibration parameters from a string in memory of INI format.

Parameters:
bufferCalibration string
[out]camera_nameName of the camera
[out]cam_infoCamera parameters

Definition at line 195 of file parse_ini.cpp.

bool camera_calibration_parsers::readCalibration ( const std::string &  file_name,
std::string &  camera_name,
sensor_msgs::CameraInfo &  cam_info 
)

Read calibration parameters from a file.

The file may be YAML or INI format.

Parameters:
file_nameFile to read
[out]camera_nameName of the camera
[out]cam_infoCamera parameters

Definition at line 20 of file parse.cpp.

bool camera_calibration_parsers::readCalibrationIni ( std::istream &  in,
std::string &  camera_name,
sensor_msgs::CameraInfo &  cam_info 
)

Read calibration parameters from an INI file.

Parameters:
inInput stream to read from
[out]camera_nameName of the camera
[out]cam_infoCamera parameters

Definition at line 174 of file parse_ini.cpp.

bool camera_calibration_parsers::readCalibrationIni ( const std::string &  file_name,
std::string &  camera_name,
sensor_msgs::CameraInfo &  cam_info 
)

Read calibration parameters from an INI file.

Parameters:
file_nameFile to read
[out]camera_nameName of the camera
[out]cam_infoCamera parameters

Definition at line 180 of file parse_ini.cpp.

bool camera_calibration_parsers::readCalibrationYml ( std::istream &  in,
std::string &  camera_name,
sensor_msgs::CameraInfo &  cam_info 
)

Read calibration parameters from a YAML file.

Parameters:
inInput stream to read from
[out]camera_nameName of the camera
[out]cam_infoCamera parameters

Definition at line 110 of file parse_yml.cpp.

bool camera_calibration_parsers::readCalibrationYml ( const std::string &  file_name,
std::string &  camera_name,
sensor_msgs::CameraInfo &  cam_info 
)

Read calibration parameters from a YAML file.

Parameters:
file_nameFile to read
[out]camera_nameName of the camera
[out]cam_infoCamera parameters

Definition at line 163 of file parse_yml.cpp.

bool camera_calibration_parsers::writeCalibration ( const std::string &  file_name,
const std::string &  camera_name,
const sensor_msgs::CameraInfo &  cam_info 
)

Write calibration parameters to a file.

The file name extension (.yml, .yaml, or .ini) determines the output format.

Parameters:
file_nameFile to write
camera_nameName of the camera
cam_infoCamera parameters

Definition at line 9 of file parse.cpp.

bool camera_calibration_parsers::writeCalibrationIni ( std::ostream &  out,
const std::string &  camera_name,
const sensor_msgs::CameraInfo &  cam_info 
)

Write calibration parameters to a file in INI format.

Parameters:
outOutput stream to write to
camera_nameName of the camera
cam_infoCamera parameters
Todo:
time?
Todo:
time?

Definition at line 44 of file parse_ini.cpp.

bool camera_calibration_parsers::writeCalibrationIni ( const std::string &  file_name,
const std::string &  camera_name,
const sensor_msgs::CameraInfo &  cam_info 
)

Write calibration parameters to a file in INI format.

Parameters:
file_nameFile to write
camera_nameName of the camera
cam_infoCamera parameters

Definition at line 76 of file parse_ini.cpp.

bool camera_calibration_parsers::writeCalibrationYml ( std::ostream &  out,
const std::string &  camera_name,
const sensor_msgs::CameraInfo &  cam_info 
)

Write calibration parameters to a file in YAML format.

Parameters:
outOutput stream to write to
camera_nameName of the camera
cam_infoCamera parameters

Definition at line 64 of file parse_yml.cpp.

bool camera_calibration_parsers::writeCalibrationYml ( const std::string &  file_name,
const std::string &  camera_name,
const sensor_msgs::CameraInfo &  cam_info 
)

Write calibration parameters to a file in YAML format.

Parameters:
file_nameFile to write
camera_nameName of the camera
cam_infoCamera parameters

Definition at line 98 of file parse_yml.cpp.



camera_calibration_parsers
Author(s): Patrick Mihelich
autogenerated on Fri Jan 3 2014 11:24:03