You’re reading an older version of the Slamcore SDK documenation. The latest one is 23.04.

Class slamcore::TransformationSample

class TransformationSample : public StaticPoseInterface

Simple class for providing transformations.

Public Functions

virtual ~TransformationSample()
TransformationSample(const TransformationSample &other) = delete
TransformationSample(TransformationSample &&other)
TransformationSample &operator=(const TransformationSample &other) = delete
TransformationSample &operator=(TransformationSample &&other)
TransformationSample(const StaticPoseInterface &other)
virtual const Vector<double, 4> &getRotation() const final override

Returns the rotation part - Quaternion X,Y,Z,W.

virtual const Vector<double, 3> &getTranslation() const final override

Returns the translation vector part.

void setValue(const Vector<double, 3> &t, const Vector<double, 4> &r)

Sets the value.

  • t – Translation vector (X,Y,Z)

  • r – Rotation quaternion (X,Y,Z,W)

virtual bool haveCovarianceMatrix() const final override

Check first if the covariance matrix is provided.

virtual const Matrix<double, 6, 6> &getCovariance() const final override

Returns the covariance matrix - pose uncertainty.

virtual const ReferenceFrame &getChildReferenceFrame() const final override

Returns the frame of reference the pose defines