xvsdk  3.2.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
xv::details::Pose_< F > Class Template Reference

Public Member Functions

 Pose_ (double c)
 Construct a pose with a specified confidence.
 
 Pose_ (Vector3< F > const &translation, Matrix3< F > const &rotation, double hostTimestamp=std::numeric_limits< double >::infinity(), std::int64_t edgeTimestamp=(std::numeric_limits< std::int64_t >::min)(), double c=0.)
 Construct a pose with a translation, rotation, timestamps and confidence.
 
double confidence () const
 Get the confidence of the pose. Value in [0,1], 0 means lost.
 
void setConfidence (double c)
 Set the confidence of the pose. Value in [0,1], 0 means lost.
 
Vector4< F > const & quaternion () const
 Get the quaternion of the rotation.
 
void setQuaternion (Vector4< F > const &v)
 Set the quaternion of the rotation.
 
void setQuaternion (F const *v)
 Set the quaternion of the rotation using pointer of 4D array.
 
void setRotation (Matrix3< F > const &v)
 
void setRotation (F const *v)
 Set the quaternion of the rotation using pointer of 4D array.
 
std::int64_t edgeTimestampUs () const
 Get the edge timestamp of the pose (in microseconds).
 
void setEdgeTimestampUs (std::int64_t t)
 Set the edge timestamp of the pose (in microseconds).
 
double hostTimestamp () const
 Get the host timestamp of the pose (in s).
 
void setHostTimestamp (double t)
 Set the host timestamp of the pose (in s).
 
Transform_operator*= (Transform_ const &q)
 Composition operator for transformations.
 
Vector3< F > const & translation () const
 Get the translation part of the transformation. More...
 
void setTranslation (Vector3< F > const &v)
 Set the translation part of the transformation.
 
void setTranslation (F const *v)
 Set the translation part of the transformation using pointer to 3D array.
 
Matrix3< F > const & rotation () const
 Get the rotation matrix part of the transformation. More...
 
x () const
 X coordinate of the translation.
 
y () const
 Y coordinate of the translation.
 
z () const
 Z coordinate of the translation.
 
Transform_< F > inverse () const
 Compute the inverse transformation. More...
 

Static Public Member Functions

static Pose_ Identity ()
 

Protected Attributes

Vector3< F > m_translation
 
Matrix3< F > m_rotation
 

Member Function Documentation

template<class F = double>
Transform_<F> xv::details::Transform_< F >::inverse ( ) const
inherited

Compute the inverse transformation.

Returns
Return the inverse transformation
template<class F = double>
Matrix3<F> const& xv::details::Transform_< F >::rotation ( ) const
inlineinherited

Get the rotation matrix part of the transformation.

Returns
row major 3x3 matrix
template<class F = double>
Vector3<F> const& xv::details::Transform_< F >::translation ( ) const
inlineinherited

Get the translation part of the transformation.

Returns
[x,y,z] vector

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