class ExtrinsicParameters

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
rotationRotationMatrixThe rotation matrix from depth sensor reference frame to color sensor reference frame
translationTranslationVectorThe translation vector from depth sensor reference frame to color sensor reference frame

Member functions

Function nameReturn typeInput typeDescription
has_rotation() constboolvoidReturns true if rotation is set.
rotation()const RotationMatrix&voidReturns the current value of rotation. If rotation is not set, returns a RotationMatrix with none of its fields set (possibly rotation::default_instance()).
mutable_rotation()RotationMatrix *voidReturns a pointer to the mutable RotationMatrix object that stores the field's value. If the field was not set prior to the call, then the returned RotationMatrix will have none of its fields set (i.e. it will be identical to a newly-allocated RotationMatrix). After calling this, has_rotation() will return true and rotation() will return a reference to the same instance of RotationMatrix.
clear_rotation()voidvoidClears the value of the field. After calling this, has_rotation() will return false and rotation() will return the default value.
set_allocated_rotation()voidRotationMatrix *Sets the RotationMatrix object to the field and frees the previous field value if it exists. If the RotationMatrix pointer is not NULL, the message takes ownership of the allocated RotationMatrix object and has_ RotationMatrix() will return true. Otherwise, if the rotation is NULL, the behavior is the same as calling clear_rotation().
release_rotation()RotationMatrix *voidReleases the ownership of the field and returns the pointer of the RotationMatrix object. After calling this, caller takes the ownership of the allocated RotationMatrix object, has_rotation() will return false, and rotation() will return the default value.
has_translation() constboolvoidReturns true if translation is set.
translation()const TranslationVector&voidReturns the current value of translation. If translation is not set, returns a TranslationVector with none of its fields set (possibly translation::default_instance()).
mutable_translation()TranslationVector *voidReturns a pointer to the mutable TranslationVector object that stores the field's value. If the field was not set prior to the call, then the returned TranslationVector will have none of its fields set (i.e. it will be identical to a newly-allocated TranslationVector). After calling this, has_translation() will return true and translation() will return a reference to the same instance of TranslationVector.
clear_translation()voidvoidClears the value of the field. After calling this, has_translation() will return false and translation() will return the default value.
set_allocated_translation()voidTranslationVector *Sets the TranslationVector object to the field and frees the previous field value if it exists. If the TranslationVector pointer is not NULL, the message takes ownership of the allocated TranslationVector object and has_ TranslationVector() will return true. Otherwise, if the translation is NULL, the behavior is the same as calling clear_translation().
release_translation()TranslationVector *voidReleases the ownership of the field and returns the pointer of the TranslationVector object. After calling this, caller takes the ownership of the allocated TranslationVector object, has_translation() will return false, and translation() will return the default value.

Parent topic: VisionConfig (C++)