27 #ifndef COORDINATEALIGNFILTER_H 28 #define COORDINATEALIGNFILTER_H 38 static const int DIM = 3;
42 setMatrix((
const double[DIM][DIM]){{1,0,0},{0,1,0},{0,0,1}});
51 double get(
int i,
int j)
const {
52 if (i >= DIM || j >= DIM || i < 0 || j < 0) {
53 qWarning(
"Index out of bounds");
60 memcpy(
data_, m,
sizeof(
double[DIM][DIM]));
105 #endif // COORDINATEALIGNFILTER_H CoordinateAlignFilter()
Constructor.
Q_DECLARE_METATYPE(TMatrix)
Datatypes for different filters.
Class for vector type measurement data (timestamp, x, y, z).
TMatrix holds a transformation matrix.
void setMatrix(const double m[DIM][DIM])
TMatrix(const TMatrix &other)
const TMatrix & matrix() const
Coordinate alignment filter.
void setMatrix(const TMatrix &matrix)
static FilterBase * factoryMethod()
Factory method.