Zivid C++ API 2.19.0+b5c53d0f-1
Zivid::Calibration::HandEyeResidual Class Reference

Representation of the estimated errors of a calibrated hand-eye transform. More...

#include <Zivid/Calibration/HandEyeResidual.h>

Public Member Functions

ZIVID_CORE_EXPORT HandEyeResidual (float rotation, float translation, float spatialExtent=std::numeric_limits< float >::quiet_NaN(), float pointRMSE=std::numeric_limits< float >::quiet_NaN())
 Constructs a hand-eye residual instance.
ZIVID_CORE_EXPORT float rotation () const
 Rotational residual in degrees.
ZIVID_CORE_EXPORT float translation () const
 Translational residual.
ZIVID_CORE_EXPORT float spatialExtent () const
 Spatial extent (RMS radius about the centroid) of the feature points used for this pose, in the same unit as the inputs (millimetres by default).
ZIVID_CORE_EXPORT float pointRMSE () const
 Per-pose root-mean-square of the per-feature distances between the reference feature set and this capture's feature set, in the same unit as the inputs (millimetres by default).
ZIVID_CORE_EXPORT std::string toString () const
 Get string representation of the hand-eye residual.

Detailed Description

Representation of the estimated errors of a calibrated hand-eye transform.

Constructor & Destructor Documentation

◆ HandEyeResidual()

ZIVID_CORE_EXPORT Zivid::Calibration::HandEyeResidual::HandEyeResidual ( float rotation,
float translation,
float spatialExtent = std::numeric_limits< float >::quiet_NaN(),
float pointRMSE = std::numeric_limits< float >::quiet_NaN() )

Constructs a hand-eye residual instance.

Parameters
rotationResidual for rotation part.
translationResidual for translation part.
spatialExtentSpatial extent of the feature points, see spatialExtent().
pointRMSEPer-feature root-mean-square distance, see pointRMSE().

Member Function Documentation

◆ pointRMSE()

ZIVID_CORE_EXPORT float Zivid::Calibration::HandEyeResidual::pointRMSE ( ) const

Per-pose root-mean-square of the per-feature distances between the reference feature set and this capture's feature set, in the same unit as the inputs (millimetres by default).

The translation residual compares only the centroids of the two feature sets, so opposing per-feature errors cancel in it. They do not cancel here. NaN when the pose has no shared features.

Returns
Root-mean-square of the per-feature distances.

◆ rotation()

ZIVID_CORE_EXPORT float Zivid::Calibration::HandEyeResidual::rotation ( ) const

Rotational residual in degrees.

Returns
Rotational residual.

◆ spatialExtent()

ZIVID_CORE_EXPORT float Zivid::Calibration::HandEyeResidual::spatialExtent ( ) const

Spatial extent (RMS radius about the centroid) of the feature points used for this pose, in the same unit as the inputs (millimetres by default).

This is the lever arm over which orientation acts: dividing the per-pose translational spread of the feature points (see pointRMSE()) by this extent gives the rotational "noise floor" — the smallest orientation the data can resolve for this pose. A rotational residual at or below that floor is weakly constrained. NaN when the pose has fewer than two usable feature points.

Returns
Spatial extent of the feature points.

◆ toString()

ZIVID_CORE_EXPORT std::string Zivid::Calibration::HandEyeResidual::toString ( ) const

Get string representation of the hand-eye residual.

Returns
Hand-eye residual as string

◆ translation()

ZIVID_CORE_EXPORT float Zivid::Calibration::HandEyeResidual::translation ( ) const

Translational residual.

The unit of the residual is the same as the unit of the hand-eye inputs. Zivid point clouds are, by default, in millimeters.

Returns
Translational residual.

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