supereight
|
Configuration parameters common for all sensor models. More...
#include <sensor.hpp>
Public Member Functions | |
void | readYaml (const std::string &filename) |
Reads the struct members from the "sensor" node of a YAML file. | |
Config | operator/ (const float downsampling_factor) const |
Public Attributes | |
int | width = 0 |
The width of images produced by the sensor in pixels. | |
int | height = 0 |
The height of images produced by the sensor in pixels. | |
float | near_plane = 0.01f |
The sensor's near plane in metres. | |
float | far_plane = 10.0f |
The sensor's far plane in metres. | |
Eigen::Isometry3f | T_BS = Eigen::Isometry3f::Identity() |
The transformation from the sensor frame S to the body frame B. | |
std::vector< float > | pixel_voxel_ratio_per_scale = {1.5f, 3.0f, 6.0f} |
The pixel-size to voxel-size ratio thresholds, in ascendig order and in physical coordinates, for computing the integration scale. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Config &c) |
Configuration parameters common for all sensor models.
void se::SensorBase< DerivedT >::Config::readYaml | ( | const std::string & | filename | ) |
Reads the struct members from the "sensor" node of a YAML file.
Members not present in the YAML file aren't modified.
|
inline |
|
friend |
int se::SensorBase< DerivedT >::Config::width = 0 |
The width of images produced by the sensor in pixels.
int se::SensorBase< DerivedT >::Config::height = 0 |
The height of images produced by the sensor in pixels.
float se::SensorBase< DerivedT >::Config::near_plane = 0.01f |
The sensor's near plane in metres.
Avoid setting to 0 since numerical issues may arise.
float se::SensorBase< DerivedT >::Config::far_plane = 10.0f |
The sensor's far plane in metres.
Avoid setting to infinity since performance may degrade significantly, for example with depth images containing really large erroneous measurements.
Eigen::Isometry3f se::SensorBase< DerivedT >::Config::T_BS = Eigen::Isometry3f::Identity() |
The transformation from the sensor frame S to the body frame B.
std::vector<float> se::SensorBase< DerivedT >::Config::pixel_voxel_ratio_per_scale = {1.5f, 3.0f, 6.0f} |
The pixel-size to voxel-size ratio thresholds, in ascendig order and in physical coordinates, for computing the integration scale.
See also se::SensorBase::computeIntegrationScale(). For example:
pixel/voxel < pixel_voxel_ratio_per_scale[0]
→ scale = 0
pixel/voxel < pixel_voxel_ratio_per_scale[1]
→ scale = 1