MRPT
1.9.9
|
Options used when creating a camera capture object of type CImageGrabber_FlyCapture2.
Definition at line 21 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::config::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. 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::img::TStereoCamera | m_stereo_camera |
Enumerator | |
---|---|
yrr_NAME_NON_CONSISTENT | |
yrr_EMPTY | |
yrr_OK |
Definition at line 23 of file CDUO3DCamera.h.
TCaptureOptions_DUO3D::TCaptureOptions_DUO3D | ( | ) |
Definition at line 55 of file CDUO3DCamera.cpp.
References duo_params.
TCaptureOptions_DUO3D::~TCaptureOptions_DUO3D | ( | ) |
Definition at line 73 of file CDUO3DCamera.cpp.
References duo_params.
void TCaptureOptions_DUO3D::loadOptionsFrom | ( | const mrpt::config::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 252 of file CDUO3DCamera.cpp.
References mrpt::img::TStereoCamera::leftCamera, mrpt::img::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::img::TCamera::ncols, mrpt::img::TCamera::nrows, mrpt::config::CConfigFileBase::read_bool(), mrpt::config::CConfigFileBase::read_float(), mrpt::config::CConfigFileBase::read_int(), mrpt::config::CConfigFileBase::read_string(), and mrpt::img::TStereoCamera::rightCamera.
TCaptureOptions_DUO3D::TYMLReadResult TCaptureOptions_DUO3D::m_camera_ext_params_from_yml | ( | const std::string & | _file_name = std::string() | ) |
Definition at line 116 of file CDUO3DCamera.cpp.
References mrpt::poses::CPose3DQuat::asTPose(), empty(), mrpt::system::extractFileName(), mrpt::format(), m_extrinsic_filename, m_img_height, m_img_width, m_stereo_camera, mrpt::img::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 178 of file CDUO3DCamera.cpp.
References mrpt::img::TCamera::dist, empty(), mrpt::system::extractFileName(), mrpt::format(), mrpt::img::TCamera::intrinsicParams, mrpt::img::TStereoCamera::leftCamera, m_img_height, m_img_width, m_intrinsic_filename, m_stereo_camera, mrpt::img::TStereoCamera::rightCamera, mrpt::img::TCamera::setDistortionParamsFromValues(), mrpt::img::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 79 of file CDUO3DCamera.cpp.
References duo_params, mrpt::system::extractFileName(), 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 58 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 52 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 55 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 42 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 71 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 40 of file CDUO3DCamera.h.
Referenced by loadOptionsFrom().
float mrpt::hwdrivers::TCaptureOptions_DUO3D::m_gain |
(Default = 10) Camera gain.
Definition at line 46 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 38 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 36 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 68 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 44 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 65 of file CDUO3DCamera.h.
Referenced by loadOptionsFrom(), m_rectify_map_from_yml(), and mrpt::hwdrivers::CDUO3DCamera::open().
mrpt::img::TStereoCamera mrpt::hwdrivers::TCaptureOptions_DUO3D::m_stereo_camera |
Definition at line 76 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.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |