Public Member Functions | Static Public Member Functions | Public Attributes
robot_calibration::CameraToCameraError Struct Reference

Model of a camera on another camera chain. More...

#include <camera_to_camera_error.h>

List of all members.

Public Member Functions

 CameraToCameraError (Camera3dModel *camera1_model, Camera3dModel *camera2_model, CalibrationOffsetParser *offsets, robot_calibration_msgs::CalibrationData &data)
 Error block for calibrating two cameras with respect to each other.
cv::Mat getPlane (std::vector< cv::Point3f > points) const
 Does a plane fit to the poinst and calculates the normals.
bool operator() (double const *const *free_params, double *residuals) const
 Operator called by CERES optimizer.
virtual ~CameraToCameraError ()

Static Public Member Functions

static ceres::CostFunction * Create (Camera3dModel *camera1_model, Camera3dModel *camera2_model, CalibrationOffsetParser *offsets, robot_calibration_msgs::CalibrationData &data)
 Helper factory function to create a new error block. Parameters are described in the class constructor, which this function calls.

Public Attributes

Camera3dModelcamera1_model_
Camera3dModelcamera2_model_
robot_calibration_msgs::CalibrationData data_
CalibrationOffsetParseroffsets_

Detailed Description

Model of a camera on another camera chain.

Definition at line 39 of file camera_to_camera_error.h.


Constructor & Destructor Documentation

robot_calibration::CameraToCameraError::CameraToCameraError ( Camera3dModel camera1_model,
Camera3dModel camera2_model,
CalibrationOffsetParser offsets,
robot_calibration_msgs::CalibrationData &  data 
) [inline]

Error block for calibrating two cameras with respect to each other.

Parameters:
camera1_modelThe model for the first camera, used for reprojection.
camera2_modelThe model for the second camera, used for reprojection.
free_param_infoHelper container for processing the free parameters.
dataThe calibration data collected

Definition at line 48 of file camera_to_camera_error.h.

Definition at line 59 of file camera_to_camera_error.h.


Member Function Documentation

static ceres::CostFunction* robot_calibration::CameraToCameraError::Create ( Camera3dModel camera1_model,
Camera3dModel camera2_model,
CalibrationOffsetParser offsets,
robot_calibration_msgs::CalibrationData &  data 
) [inline, static]

Helper factory function to create a new error block. Parameters are described in the class constructor, which this function calls.

Template Parameters:
num_pointsThe number of points in the observation, this forms the size of the residuals.
num_free_paramsThe number of free parameters being used for joint and link calibration.

Definition at line 114 of file camera_to_camera_error.h.

cv::Mat robot_calibration::CameraToCameraError::getPlane ( std::vector< cv::Point3f >  points) const [inline]

Does a plane fit to the poinst and calculates the normals.

Template Parameters:
pointsThe points sampled from the point cloud The normals

Definition at line 149 of file camera_to_camera_error.h.

bool robot_calibration::CameraToCameraError::operator() ( double const *const *  free_params,
double *  residuals 
) const [inline]

Operator called by CERES optimizer.

Parameters:
free_paramsThe offsets to be applied to joints/transforms.
residualsThe residuals computed, to be returned to the optimizer.

Definition at line 67 of file camera_to_camera_error.h.


Member Data Documentation

Definition at line 178 of file camera_to_camera_error.h.

Definition at line 179 of file camera_to_camera_error.h.

robot_calibration_msgs::CalibrationData robot_calibration::CameraToCameraError::data_

Definition at line 181 of file camera_to_camera_error.h.

Definition at line 180 of file camera_to_camera_error.h.


The documentation for this struct was generated from the following file:


robot_calibration
Author(s): Michael Ferguson
autogenerated on Thu Jun 6 2019 21:54:10