This class reads and parses config file.
More...
#include <VioParametersReader.hpp>
This class reads and parses config file.
okvis::VioParametersReader::VioParametersReader |
( |
| ) |
|
okvis::VioParametersReader::VioParametersReader |
( |
const std::string & |
filename | ) |
|
The constructor. This calls readConfigFile().
- Parameters
-
filename | Configuration filename. |
virtual okvis::VioParametersReader::~VioParametersReader |
( |
| ) |
|
|
inlinevirtual |
bool okvis::VioParametersReader::getCalibrationViaConfig |
( |
std::vector< CameraCalibration, Eigen::aligned_allocator< CameraCalibration >> & |
calibrations, |
|
|
cv::FileNode |
cameraNode |
|
) |
| const |
|
protected |
Get the camera calibration via the configuration file.
- Parameters
-
[out] | calibrations | Read calibration. |
[in] | cameraNode | File node pointing to the cameras sequence. |
- Returns
- True if reading and parsing of calibration was successful.
Get the camera calibrations via the visensor API.
- Parameters
-
[out] | calibrations | The calibrations. |
- Returns
- True if successful.
bool okvis::VioParametersReader::getCameraCalibration |
( |
std::vector< CameraCalibration, Eigen::aligned_allocator< CameraCalibration >> & |
calibrations, |
|
|
cv::FileStorage & |
configurationFile |
|
) |
| |
|
protectedvirtual |
Get the camera calibration. This looks for the calibration in the configuration file first. If this fails it will directly get the calibration from the sensor, if useDriver is set to true.
- Parameters
-
calibrations | The calibrations. |
configurationFile | The config file. |
- Returns
- True if reading of the calibration was successful.
Get parameters.
- Parameters
-
[out] | parameters | A copy of the parameters. |
- Returns
- True if parameters have been read from a configuration file. If it returns false then the variable parameters has not been changed.
bool okvis::VioParametersReader::parseBoolean |
( |
cv::FileNode |
node, |
|
|
bool & |
val |
|
) |
| const |
|
protected |
Parses booleans from a cv::FileNode. OpenCV sadly has no implementation like this.
- Parameters
-
[in] | node | The file node. |
[out] | val | The parsed value. |
- Returns
- True if parsing was successful. If it returns false then the variable val has not been changed.
void okvis::VioParametersReader::readConfigFile |
( |
const std::string & |
filename | ) |
|
Read and parse a config file. To get the result call getParameters().
- Parameters
-
filename | Configuration filename. |
bool okvis::VioParametersReader::readConfigFile_ |
|
protected |
bool okvis::VioParametersReader::useDriver |
Directly interface with driver without ROS message passing.
std::shared_ptr<void> okvis::VioParametersReader::viSensor |
The documentation for this class was generated from the following files: