Specification of focal length via fields of view (in degrees).
#include <drake/systems/sensors/camera_config.h>
Public Member Functions | |
template<typename Archive > | |
void | Serialize (Archive *a) |
Passes this object to an Archive. More... | |
void | ValidateOrThrow () const |
double | focal_x (int width, int height) const |
Resolves focal length along x-axis based on image dimensions and defined value for x and/or y . More... | |
double | focal_y (int width, int height) const |
Resolves focal length along y-axis based on image dimensions and defined value for y and/or x . More... | |
Public Attributes | |
std::optional< double > | x |
If specified, compute focal length along this axis; otherwise, use focal length given computation for y . More... | |
std::optional< double > | y |
If specified, compute focal length along this axis; otherwise, use focal length given computation for x . More... | |
Resolves focal length along x-axis based on image dimensions and defined value for x
and/or y
.
std::exception | if both x and y are null. |
Resolves focal length along y-axis based on image dimensions and defined value for y
and/or x
.
std::exception | if both x and y are null. |
void Serialize | ( | Archive * | a | ) |
Passes this object to an Archive.
Refer to YAML Serialization for background.
void ValidateOrThrow | ( | ) | const |
std::optional<double> x |
If specified, compute focal length along this axis; otherwise, use focal length given computation for y
.
std::optional<double> y |
If specified, compute focal length along this axis; otherwise, use focal length given computation for x
.