Specification of focal length via fields of view (in degrees).
#include <drake/systems/sensors/camera_config.h>
|
| template<typename Archive> |
| void | Serialize (Archive *a) |
| | Passes this object to an Archive.
|
| 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.
|
| 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.
|
|
| 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.
|
◆ focal_x()
| 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.
- Exceptions
-
| std::exception | if both x and y are null. |
◆ focal_y()
| 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.
- Exceptions
-
| std::exception | if both x and y are null. |
◆ Serialize()
template<typename Archive>
| void Serialize |
( |
Archive * | a | ) |
|
◆ ValidateOrThrow()
| void ValidateOrThrow |
( |
| ) |
const |
If specified, compute focal length along this axis; otherwise, use focal length given computation for y.
If specified, compute focal length along this axis; otherwise, use focal length given computation for x.
The documentation for this struct was generated from the following file: