Public Member Functions | Public Attributes
qglv::Camera Class Reference

#include <camera.hpp>

List of all members.

Public Member Functions

 Camera (const float &width, const float &height, const float &u0, const float &v0, const float &focal_length_in_pixels, const Sophus::SE3f &pose=Sophus::SE3f())
 Construct a virtual camera from typical parameters.
void draw ()
 Draw the camera keyframe as well as the frustrum.
void setPose (const Sophus::SE3f &T_cam_rel_map)

Public Attributes

float focal_length
Eigen::Vector3f frustum [4]
unsigned int height
Sophus::SE3f pose
Eigen::Vector2f principal_point
Eigen::Vector3f updated_frustum [4]
unsigned int width

Detailed Description

Definition at line 30 of file camera.hpp.


Constructor & Destructor Documentation

qglv::Camera::Camera ( const float &  width,
const float &  height,
const float &  u0,
const float &  v0,
const float &  focal_length_in_pixels,
const Sophus::SE3f &  pose = Sophus::SE3f() 
)

Construct a virtual camera from typical parameters.

If from a dslam parameters file, this is usually the rectified versions of width, height, u0 and v0.

 Camera(parameters.rect_width, parameters.rect_height,
        parameters.rect_u0, parameters.rect_v0,
        parameters.focal_length_in_pixels,
        parameters.Te.inverse()
        )
Parameters:
width
height
u0
v0
focal_length_in_pixels
pose: initialise with the pose for the camera extrinsics

Definition at line 24 of file camera.cpp.


Member Function Documentation

Draw the camera keyframe as well as the frustrum.

The frustrum is useful since it gives you an idea of the direction it's facing.

Definition at line 66 of file camera.cpp.

void qglv::Camera::setPose ( const Sophus::SE3f &  T_cam_rel_map)

Convert the tracker calculated T_cam_rel_map transform into a camera pose.

Refer to our transform cheat sheets on transforms <-> poses https://docs.google.com/a/yujinrobot.com/document/d/1HRgc0avn08vL_LGN8-SuiaaSQUYt4HbBwwZtVOGzMIo/edit#

Parameters:
T_cam_rel_map

Definition at line 58 of file camera.cpp.


Member Data Documentation

Definition at line 71 of file camera.hpp.

Eigen::Vector3f qglv::Camera::frustum[4]

Definition at line 69 of file camera.hpp.

unsigned int qglv::Camera::height

Definition at line 70 of file camera.hpp.

Sophus::SE3f qglv::Camera::pose

Definition at line 68 of file camera.hpp.

Definition at line 72 of file camera.hpp.

Eigen::Vector3f qglv::Camera::updated_frustum[4]

Definition at line 69 of file camera.hpp.

unsigned int qglv::Camera::width

Definition at line 70 of file camera.hpp.


The documentation for this class was generated from the following files:


qglv_extras
Author(s): Daniel Stonier
autogenerated on Sat Jun 18 2016 08:19:30