This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/sensors/imu/PoseProvider.h
2018-10-25 11:50:12 +02:00

54 lines
929 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* © Copyright 2014 Urheberrechtshinweis
* Alle Rechte vorbehalten / All Rights Reserved
*
* Programmcode ist urheberrechtlich geschuetzt.
* Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner.
* Keine Verwendung ohne explizite Genehmigung.
* (vgl. § 106 ff UrhG / § 97 UrhG)
*/
#ifndef POSEPROVIDER_H
#define POSEPROVIDER_H
#include "../../math/Matrix3.h"
class PoseProvider {
public:
virtual const Matrix3& getMatrix() const = 0;
virtual float getSigma() const = 0;
virtual bool isKnown() const = 0;
};
class PoseProviderDummy : public PoseProvider {
Matrix3 mat = Matrix3::identity();
public:
virtual const Matrix3& getMatrix() const override {
return mat;
}
Matrix3 getMatrixGyro() const {
return mat;
}
Matrix3 getMatrixAcc() const {
return mat;
}
virtual bool isKnown() const override {
return true;
}
};
#endif // POSEPROVIDER_H