Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
robot_calibration::PlaneToPlaneError Struct Reference

Error block for computing the fit between two sets of projected points and their planar models plane (aX + bY + cZ + d = 0). Typically used to align multiple 3d cameras when they are not able to see high-resolution checkerboards, but can see a common plane (wall/floor/etc). More...

#include <plane_to_plane_error.h>

Public Member Functions

cv::Mat getPlane (std::vector< cv::Point3f > points) const
 Does a plane fit to the points and calculates the normals. More...
 
bool operator() (double const *const *free_params, double *residuals) const
 Operator called by CERES optimizer. More...
 
 PlaneToPlaneError (ChainModel *model_a, ChainModel *model_b, CalibrationOffsetParser *offsets, robot_calibration_msgs::CalibrationData &data, double scale_normal, double scale_offset)
 Error block for calibrating two planar data sets. More...
 
virtual ~PlaneToPlaneError ()
 

Static Public Member Functions

static ceres::CostFunction * Create (ChainModel *model_a, ChainModel *model_b, CalibrationOffsetParser *offsets, robot_calibration_msgs::CalibrationData &data, double scale_normal, double scale_offset)
 Helper factory function to create a new error block. Parameters are described in the class constructor, which this function calls. More...
 

Public Attributes

robot_calibration_msgs::CalibrationData data_
 
ChainModelmodel_a_
 
ChainModelmodel_b_
 
CalibrationOffsetParseroffsets_
 
double scale_normal_
 
double scale_offset_
 

Detailed Description

Error block for computing the fit between two sets of projected points and their planar models plane (aX + bY + cZ + d = 0). Typically used to align multiple 3d cameras when they are not able to see high-resolution checkerboards, but can see a common plane (wall/floor/etc).

Definition at line 45 of file plane_to_plane_error.h.

Constructor & Destructor Documentation

robot_calibration::PlaneToPlaneError::PlaneToPlaneError ( ChainModel model_a,
ChainModel model_b,
CalibrationOffsetParser offsets,
robot_calibration_msgs::CalibrationData &  data,
double  scale_normal,
double  scale_offset 
)
inline

Error block for calibrating two planar data sets.

Parameters
model_aThe model for the first chain, used for planar projection.
model_bThe model for the second chain, used for planar projection.
offsetsEasy access to the free parameters.
dataThe calibration data collected.,
scale_normalThe scaling factor to apply to the residuals of the normal difference.
scale_offsetThe scaling factor to apply to the residual of the offset difference.

Definition at line 56 of file plane_to_plane_error.h.

virtual robot_calibration::PlaneToPlaneError::~PlaneToPlaneError ( )
inlinevirtual

Definition at line 70 of file plane_to_plane_error.h.

Member Function Documentation

static ceres::CostFunction* robot_calibration::PlaneToPlaneError::Create ( ChainModel model_a,
ChainModel model_b,
CalibrationOffsetParser offsets,
robot_calibration_msgs::CalibrationData &  data,
double  scale_normal,
double  scale_offset 
)
inlinestatic

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

Definition at line 122 of file plane_to_plane_error.h.

cv::Mat robot_calibration::PlaneToPlaneError::getPlane ( std::vector< cv::Point3f >  points) const
inline

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

Parameters
pointsThe points sampled from the point cloud
Returns
The normals

Definition at line 150 of file plane_to_plane_error.h.

bool robot_calibration::PlaneToPlaneError::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 78 of file plane_to_plane_error.h.

Member Data Documentation

robot_calibration_msgs::CalibrationData robot_calibration::PlaneToPlaneError::data_

Definition at line 182 of file plane_to_plane_error.h.

ChainModel* robot_calibration::PlaneToPlaneError::model_a_

Definition at line 179 of file plane_to_plane_error.h.

ChainModel* robot_calibration::PlaneToPlaneError::model_b_

Definition at line 180 of file plane_to_plane_error.h.

CalibrationOffsetParser* robot_calibration::PlaneToPlaneError::offsets_

Definition at line 181 of file plane_to_plane_error.h.

double robot_calibration::PlaneToPlaneError::scale_normal_

Definition at line 183 of file plane_to_plane_error.h.

double robot_calibration::PlaneToPlaneError::scale_offset_

Definition at line 183 of file plane_to_plane_error.h.


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


robot_calibration
Author(s): Michael Ferguson
autogenerated on Tue Nov 3 2020 17:30:30