class ExtrinsicParameters
August 13, 2019 ยท View on GitHub
Member values
| Member name | Data type | Description |
|---|---|---|
| rotation | RotationMatrix | The rotation matrix from depth sensor reference frame to color sensor reference frame |
| translation | TranslationVector | The translation vector from depth sensor reference frame to color sensor reference frame |
Member functions
| Function name | Return type | Input type | Description |
|---|---|---|---|
| has_rotation() const | bool | void | Returns true if rotation is set. |
| rotation() | const RotationMatrix& | void | Returns 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 * | void | Returns 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() | void | void | Clears the value of the field. After calling this, has_rotation() will return false and rotation() will return the default value. |
| set_allocated_rotation() | void | RotationMatrix * | 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 * | void | Releases 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() const | bool | void | Returns true if translation is set. |
| translation() | const TranslationVector& | void | Returns 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 * | void | Returns 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() | void | void | Clears the value of the field. After calling this, has_translation() will return false and translation() will return the default value. |
| set_allocated_translation() | void | TranslationVector * | 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 * | void | Releases 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++)