Options used when creating a camera capture object of type CImageGrabber_FlyCapture2.
Definition at line 25 of file CDUO3DCamera.h.
#include <mrpt/hwdrivers/CDUO3DCamera.h>
Public Types | |
enum | TYMLReadResult { yrr_NAME_NON_CONSISTENT, yrr_EMPTY, yrr_OK } |
Public Member Functions | |
TCaptureOptions_DUO3D () | |
~TCaptureOptions_DUO3D () | |
void | loadOptionsFrom (const mrpt::utils::CConfigFileBase &configSource, const std::string §ionName, const std::string &prefix=std::string()) |
Loads all the options from a config file. More... | |
TYMLReadResult | m_camera_int_params_from_yml (const std::string &_file_name=std::string()) |
TYMLReadResult | m_camera_ext_params_from_yml (const std::string &_file_name=std::string()) |
TYMLReadResult | m_rectify_map_from_yml (const std::string &_file_name=std::string()) |
Public Attributes | |
Image settings | |
int | m_img_width |
(Default = 640) Width of the captured image. More... | |
int | m_img_height |
(Default = 480) Height of the captured image. More... | |
float | m_fps |
(Default = 30) Frames per second <= 30. More... | |
float | m_exposure |
(Default = 50) Exposure value. More... | |
float | m_led |
(Default = 25) Led intensity (some device models). More... | |
float | m_gain |
(Default = 10) Camera gain. More... | |
Behaviour selection | |
bool | m_capture_imu |
(Default = false) Capture IMU data. More... | |
bool | m_capture_rectified |
(Default = true) Rectify images. Rectification map must be provided More... | |
bool | m_calibration_from_file |
(Default = true) Get calibration information from files provided by DUO3D Calibration App. More... | |
Files specification | |
std::string | m_rectify_map_filename |
Rectification map file provided by DUO3D Calibration App (YML format). More... | |
std::string | m_intrinsic_filename |
Intrinsic parameters file provided by DUO3D Calibration App (YML format). More... | |
std::string | m_extrinsic_filename |
Extrinsic parameters file provided by DUO3D Calibration App (YML format). More... | |
Others | |
mrpt::utils::TStereoCamera | m_stereo_camera |
Enumerator | |
---|---|
yrr_NAME_NON_CONSISTENT | |
yrr_EMPTY | |
yrr_OK |
Definition at line 27 of file CDUO3DCamera.h.
TCaptureOptions_DUO3D::TCaptureOptions_DUO3D | ( | ) |
Definition at line 53 of file CDUO3DCamera.cpp.
References duo_params.
TCaptureOptions_DUO3D::~TCaptureOptions_DUO3D | ( | ) |
Definition at line 71 of file CDUO3DCamera.cpp.
References duo_params.
void TCaptureOptions_DUO3D::loadOptionsFrom | ( | const mrpt::utils::CConfigFileBase & | configSource, |
const std::string & | sectionName, | ||
const std::string & | prefix = std::string() |
||
) |
Loads all the options from a config file.
Expected format:
Definition at line 229 of file CDUO3DCamera.cpp.
References mrpt::utils::TStereoCamera::leftCamera, mrpt::utils::TStereoCamera::loadFromConfigFile(), m_calibration_from_file, m_capture_imu, m_capture_rectified, m_exposure, m_extrinsic_filename, m_fps, m_gain, m_img_height, m_img_width, m_intrinsic_filename, m_led, m_rectify_map_filename, m_stereo_camera, mrpt::utils::TCamera::ncols, mrpt::utils::TCamera::nrows, mrpt::utils::CConfigFileBase::read_bool(), mrpt::utils::CConfigFileBase::read_float(), mrpt::utils::CConfigFileBase::read_int(), mrpt::utils::CConfigFileBase::read_string(), and mrpt::utils::TStereoCamera::rightCamera.
TCaptureOptions_DUO3D::TYMLReadResult TCaptureOptions_DUO3D::m_camera_ext_params_from_yml | ( | const std::string & | _file_name = std::string() | ) |
Definition at line 110 of file CDUO3DCamera.cpp.
References empty(), mrpt::system::extractFileName(), mrpt::mrpt::format(), m_extrinsic_filename, m_img_height, m_img_width, m_stereo_camera, mrpt::utils::TStereoCamera::rightCameraPose, THROW_EXCEPTION, yrr_EMPTY, yrr_NAME_NON_CONSISTENT, and yrr_OK.
Referenced by mrpt::hwdrivers::CDUO3DCamera::open().
TCaptureOptions_DUO3D::TYMLReadResult TCaptureOptions_DUO3D::m_camera_int_params_from_yml | ( | const std::string & | _file_name = std::string() | ) |
Definition at line 168 of file CDUO3DCamera.cpp.
References mrpt::utils::TCamera::dist, empty(), mrpt::system::extractFileName(), mrpt::mrpt::format(), mrpt::utils::TCamera::intrinsicParams, mrpt::utils::TStereoCamera::leftCamera, m_img_height, m_img_width, m_intrinsic_filename, m_stereo_camera, mrpt::utils::TStereoCamera::rightCamera, mrpt::utils::TCamera::setDistortionParamsFromValues(), mrpt::utils::TCamera::setIntrinsicParamsFromValues(), THROW_EXCEPTION, yrr_EMPTY, yrr_NAME_NON_CONSISTENT, and yrr_OK.
Referenced by mrpt::hwdrivers::CDUO3DCamera::open().
TCaptureOptions_DUO3D::TYMLReadResult TCaptureOptions_DUO3D::m_rectify_map_from_yml | ( | const std::string & | _file_name = std::string() | ) |
Definition at line 76 of file CDUO3DCamera.cpp.
References duo_params, mrpt::system::extractFileName(), mrpt::mrpt::format(), m_img_height, m_img_width, m_rectify_map_filename, TDUOParams::m_rectify_map_left_x, TDUOParams::m_rectify_map_left_y, TDUOParams::m_rectify_map_right_x, TDUOParams::m_rectify_map_right_y, THROW_EXCEPTION, yrr_EMPTY, yrr_NAME_NON_CONSISTENT, and yrr_OK.
Referenced by mrpt::hwdrivers::CDUO3DCamera::open().
bool mrpt::hwdrivers::TCaptureOptions_DUO3D::m_calibration_from_file |
(Default = true) Get calibration information from files provided by DUO3D Calibration App.
Definition at line 46 of file CDUO3DCamera.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CDUO3DCamera::open().
bool mrpt::hwdrivers::TCaptureOptions_DUO3D::m_capture_imu |
(Default = false) Capture IMU data.
Definition at line 44 of file CDUO3DCamera.h.
Referenced by mrpt::hwdrivers::CDUO3DCamera::captureIMUIsSet(), mrpt::hwdrivers::CDUO3DCamera::getObservations(), and loadOptionsFrom().
bool mrpt::hwdrivers::TCaptureOptions_DUO3D::m_capture_rectified |
(Default = true) Rectify images. Rectification map must be provided
Definition at line 45 of file CDUO3DCamera.h.
Referenced by mrpt::hwdrivers::CDUO3DCamera::getObservations(), loadOptionsFrom(), and mrpt::hwdrivers::CDUO3DCamera::open().
float mrpt::hwdrivers::TCaptureOptions_DUO3D::m_exposure |
(Default = 50) Exposure value.
Definition at line 37 of file CDUO3DCamera.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CDUO3DCamera::open().
std::string mrpt::hwdrivers::TCaptureOptions_DUO3D::m_extrinsic_filename |
Extrinsic parameters file provided by DUO3D Calibration App (YML format).
Definition at line 53 of file CDUO3DCamera.h.
Referenced by loadOptionsFrom(), and m_camera_ext_params_from_yml().
float mrpt::hwdrivers::TCaptureOptions_DUO3D::m_fps |
(Default = 30) Frames per second <= 30.
Definition at line 36 of file CDUO3DCamera.h.
Referenced by loadOptionsFrom().
float mrpt::hwdrivers::TCaptureOptions_DUO3D::m_gain |
(Default = 10) Camera gain.
Definition at line 39 of file CDUO3DCamera.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CDUO3DCamera::open().
int mrpt::hwdrivers::TCaptureOptions_DUO3D::m_img_height |
(Default = 480) Height of the captured image.
Definition at line 35 of file CDUO3DCamera.h.
Referenced by mrpt::hwdrivers::CDUO3DCamera::getObservations(), loadOptionsFrom(), m_camera_ext_params_from_yml(), m_camera_int_params_from_yml(), m_rectify_map_from_yml(), and mrpt::hwdrivers::CDUO3DCamera::open().
int mrpt::hwdrivers::TCaptureOptions_DUO3D::m_img_width |
(Default = 640) Width of the captured image.
Definition at line 34 of file CDUO3DCamera.h.
Referenced by mrpt::hwdrivers::CDUO3DCamera::getObservations(), loadOptionsFrom(), m_camera_ext_params_from_yml(), m_camera_int_params_from_yml(), m_rectify_map_from_yml(), and mrpt::hwdrivers::CDUO3DCamera::open().
std::string mrpt::hwdrivers::TCaptureOptions_DUO3D::m_intrinsic_filename |
Intrinsic parameters file provided by DUO3D Calibration App (YML format).
Definition at line 52 of file CDUO3DCamera.h.
Referenced by loadOptionsFrom(), and m_camera_int_params_from_yml().
float mrpt::hwdrivers::TCaptureOptions_DUO3D::m_led |
(Default = 25) Led intensity (some device models).
Definition at line 38 of file CDUO3DCamera.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CDUO3DCamera::open().
std::string mrpt::hwdrivers::TCaptureOptions_DUO3D::m_rectify_map_filename |
Rectification map file provided by DUO3D Calibration App (YML format).
Definition at line 51 of file CDUO3DCamera.h.
Referenced by loadOptionsFrom(), m_rectify_map_from_yml(), and mrpt::hwdrivers::CDUO3DCamera::open().
mrpt::utils::TStereoCamera mrpt::hwdrivers::TCaptureOptions_DUO3D::m_stereo_camera |
Definition at line 58 of file CDUO3DCamera.h.
Referenced by mrpt::hwdrivers::CDUO3DCamera::getObservations(), loadOptionsFrom(), m_camera_ext_params_from_yml(), m_camera_int_params_from_yml(), and mrpt::hwdrivers::CDUO3DCamera::open().
Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020 |