41 #ifndef INCLUDE_OKVIS_VIOPARAMETERSREADER_HPP_
42 #define INCLUDE_OKVIS_VIOPARAMETERSREADER_HPP_
46 #pragma GCC diagnostic push
47 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
48 #include <opencv2/core/core.hpp>
49 #pragma GCC diagnostic pop
62 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
105 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
138 std::vector<
CameraCalibration,Eigen::aligned_allocator<CameraCalibration>> & calibrations,
139 cv::FileStorage& configurationFile);
148 std::vector<
CameraCalibration,Eigen::aligned_allocator<CameraCalibration>> & calibrations,
149 cv::FileNode cameraNode)
const;
157 std::vector<
CameraCalibration,Eigen::aligned_allocator<CameraCalibration>> & calibrations)
const;
virtual bool getCameraCalibration(std::vector< CameraCalibration, Eigen::aligned_allocator< CameraCalibration >> &calibrations, cv::FileStorage &configurationFile)
Get the camera calibration. This looks for the calibration in the configuration file first...
Definition: VioParametersReader.cpp:504
Eigen::Vector2d principalPoint
Principal point.
Definition: VioParametersReader.hpp:110
Struct that contains all the camera calibration information.
Definition: VioParametersReader.hpp:104
std::shared_ptr< void > viSensor
Definition: VioParametersReader.hpp:99
Eigen::Vector2d imageDimension
Image dimension. [pixels].
Definition: VioParametersReader.hpp:107
okvis::VioParameters vioParameters_
The parameters.
Definition: VioParametersReader.hpp:117
Eigen::VectorXd distortionCoefficients
Distortion Coefficients.
Definition: VioParametersReader.hpp:108
Eigen::Vector2d focalLength
Focal length.
Definition: VioParametersReader.hpp:109
bool readConfigFile_
If readConfigFile() has been called at least once this is true.
Definition: VioParametersReader.hpp:115
#define OKVIS_DEFINE_EXCEPTION(exceptionName, exceptionParent)
Macro for defining an exception with a given parent.
Definition: assert_macros.hpp:52
This file contains some useful assert macros.
void readConfigFile(const std::string &filename)
Read and parse a config file. To get the result call getParameters().
Definition: VioParametersReader.cpp:76
EIGEN_MAKE_ALIGNED_OPERATOR_NEW okvis::kinematics::Transformation T_SC
Transformation from camera to sensor (IMU) frame.
Definition: VioParametersReader.hpp:106
Struct to combine all parameters and settings.
Definition: Parameters.hpp:280
bool useDriver
Directly interface with driver without ROS message passing.
Definition: VioParametersReader.hpp:97
EIGEN_MAKE_ALIGNED_OPERATOR_NEW VioParametersReader()
The default constructor.
Definition: VioParametersReader.cpp:63
std::string distortionType
Distortion type. ('radialtangential' 'plumb_bob' 'equdistant')
Definition: VioParametersReader.hpp:111
bool getParameters(okvis::VioParameters ¶meters) const
Get parameters.
Definition: VioParametersReader.hpp:90
bool parseBoolean(cv::FileNode node, bool &val) const
Parses booleans from a cv::FileNode. OpenCV sadly has no implementation like this.
Definition: VioParametersReader.cpp:470
bool getCalibrationViaConfig(std::vector< CameraCalibration, Eigen::aligned_allocator< CameraCalibration >> &calibrations, cv::FileNode cameraNode) const
Get the camera calibration via the configuration file.
Definition: VioParametersReader.cpp:531
This file contains struct definitions that encapsulate parameters and settings.
virtual ~VioParametersReader()
Trivial destructor.
Definition: VioParametersReader.hpp:75
bool getCalibrationViaVisensorAPI(std::vector< CameraCalibration, Eigen::aligned_allocator< CameraCalibration >> &calibrations) const
Get the camera calibrations via the visensor API.
Definition: VioParametersReader.cpp:600
This class reads and parses config file.
Definition: VioParametersReader.hpp:60