8 #ifndef META_OCEAN_TRACKING_OFFLINE_OFFLINE_POSE_H
9 #define META_OCEAN_TRACKING_OFFLINE_OFFLINE_POSE_H
74 inline unsigned int id()
const;
92 inline void setId(
const unsigned int id);
104 explicit inline operator bool()
const;
122 unsigned int id_ = (
unsigned int)(-1);
133 transformation_(transformation),
174 inline OfflinePose::operator bool()
const
176 return id_ != (
unsigned int)(-1) && transformation_.isValid();
190 result[n] = offlinePoses[n].transformation();
bool isValid() const
Returns whether this matrix is a valid homogeneous transformation.
Definition: HomogenousMatrix4.h:1806
size_t size() const
Returns the number of elements that are stored by this object.
Definition: ShiftVector.h:490
std::ptrdiff_t Index
Definition of an element index.
Definition: ShiftVector.h:38
Index firstIndex() const
Returns the index of the first element of this object.
Definition: ShiftVector.h:416
This class encapsulates the tracking pose data.
Definition: OfflinePose.h:41
unsigned int id_
Pose id.
Definition: OfflinePose.h:122
Scalar quality() const
Returns the abstract quality parameter of this pose.
Definition: OfflinePose.h:149
void setQuality(const Scalar quality)
Sets or changes the abstract quality parameters of this pose object.
Definition: OfflinePose.h:159
OfflinePose()=default
Creates a default pose object.
bool operator<(const OfflinePose &object) const
Compares two objects and returns whether this object has a higher quality parameter than the second o...
Definition: OfflinePose.h:179
HomogenousMatrix4 transformation_
The transformation of this pose.
Definition: OfflinePose.h:125
unsigned int id() const
Returns the id of this frame.
Definition: OfflinePose.h:144
void setTransformation(const HomogenousMatrix4 &transformation)
Sets or changes the transformation of this pose object.
Definition: OfflinePose.h:154
const HomogenousMatrix4 & transformation() const
Returns the transformation of this pose.
Definition: OfflinePose.h:139
bool isValid() const
Returns whether this pose holds a valid transformation.
Definition: OfflinePose.h:169
static ShiftVector< HomogenousMatrix4 > offlinePoses2transformations(const OfflinePoses &offlinePoses)
Extracts the transformations from a set of offline pose objects.
Definition: OfflinePose.h:184
void setId(const unsigned int id)
Sets or changes the id of this pose object.
Definition: OfflinePose.h:164
Scalar quality_
Pose quality.
Definition: OfflinePose.h:128
float Scalar
Definition of a scalar type.
Definition: Math.h:128
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition: HomogenousMatrix4.h:37
ShiftVector< OfflinePose > OfflinePoses
Definition of a shift vector holding offline poses.
Definition: OfflinePose.h:27
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15