gramods
Loading...
Searching...
No Matches
PoseTracker.hh
1
2#ifndef GRAMODS_TRACK_POSETRACKER
3#define GRAMODS_TRACK_POSETRACKER
4
5#include <gmTrack/config.hh>
6
7#include <gmCore/Object.hh>
8#include <Eigen/Eigen>
9#include <chrono>
10
11BEGIN_NAMESPACE_GMTRACK;
12
17 : public gmCore::Object {
18
19public:
20
21 typedef std::chrono::steady_clock clock;
22
23 struct PoseSample {
24 Eigen::Vector3f position;
25 Eigen::Quaternionf orientation;
26 clock::time_point time;
27
28 Eigen::Affine3f asMatrix() const {
29 return Eigen::Translation3f(position) * orientation;
30 }
31 };
32};
33
34END_NAMESPACE_GMTRACK;
35
36#endif
Base type for objects in the Gramods package for standardized handling of construction,...
Definition Object.hh:42
The base of PoseTrackers.
Definition PoseTracker.hh:17
Definition PoseTracker.hh:23