NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
|
#include <camera_model.h>
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | CameraModel (const Eigen::Vector3d &position, const Eigen::Matrix3d &rotation, double fov_x, int x_res, int y_res) |
CameraModel (const Eigen::Vector3d &position, const Eigen::Matrix3d &rotation, const camera::CameraParameters ¶ms) | |
CameraModel (const Eigen::Affine3d &transform, const camera::CameraParameters ¶ms) | |
CameraModel (const camera::CameraParameters ¶ms) | |
~CameraModel () | |
Eigen::Vector2d | ImageCoordinates (const Eigen::Vector3d &p) const |
Eigen::Vector2d | ImageCoordinates (double x, double y, double z) const |
Eigen::Vector3d | CameraCoordinates (const Eigen::Vector3d &p) const |
Eigen::Vector3d | CameraCoordinates (double x, double y, double z) const |
Eigen::Vector3d | Ray (int x, int y) const |
bool | IsInFov (const Eigen::Vector3d &p) const |
bool | IsInFov (double x, double y, double z) const |
double | GetFovX (void) const |
double | GetFovY (void) const |
const camera::CameraParameters & | GetParameters () const |
Eigen::Vector3d | GetPosition () const |
Eigen::Matrix3d | GetRotation () const |
const Eigen::Affine3d & | GetTransform () const |
void | SetTransform (const Eigen::Affine3d &cam_t_global) |
A model of a camera, with transformation matrix and camera parameters.
camera::CameraModel::CameraModel | ( | const Eigen::Vector3d & | position, |
const Eigen::Matrix3d & | rotation, | ||
double | fov_x, | ||
int | x_res, | ||
int | y_res | ||
) |
camera::CameraModel::CameraModel | ( | const Eigen::Vector3d & | position, |
const Eigen::Matrix3d & | rotation, | ||
const camera::CameraParameters & | params | ||
) |
camera::CameraModel::CameraModel | ( | const Eigen::Affine3d & | transform, |
const camera::CameraParameters & | params | ||
) |
|
explicit |
camera::CameraModel::~CameraModel | ( | ) |
Eigen::Vector3d camera::CameraModel::CameraCoordinates | ( | const Eigen::Vector3d & | p | ) | const |
Eigen::Vector3d camera::CameraModel::CameraCoordinates | ( | double | x, |
double | y, | ||
double | z | ||
) | const |
double camera::CameraModel::GetFovX | ( | void | ) | const |
double camera::CameraModel::GetFovY | ( | void | ) | const |
const camera::CameraParameters & camera::CameraModel::GetParameters | ( | ) | const |
Eigen::Vector3d camera::CameraModel::GetPosition | ( | ) | const |
Eigen::Matrix3d camera::CameraModel::GetRotation | ( | ) | const |
const Eigen::Affine3d & camera::CameraModel::GetTransform | ( | ) | const |
Eigen::Vector2d camera::CameraModel::ImageCoordinates | ( | const Eigen::Vector3d & | p | ) | const |
Eigen::Vector2d camera::CameraModel::ImageCoordinates | ( | double | x, |
double | y, | ||
double | z | ||
) | const |
bool camera::CameraModel::IsInFov | ( | const Eigen::Vector3d & | p | ) | const |
bool camera::CameraModel::IsInFov | ( | double | x, |
double | y, | ||
double | z | ||
) | const |
Eigen::Vector3d camera::CameraModel::Ray | ( | int | x, |
int | y | ||
) | const |
void camera::CameraModel::SetTransform | ( | const Eigen::Affine3d & | cam_t_global | ) |