summaryrefslogtreecommitdiffhomepage
path: root/opentrack/tracker.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-24 04:55:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-24 07:04:17 +0200
commit85aa1942a789c3df99a3a5b1a87485cc050be28e (patch)
tree1dfdecb7e7a10694557687854606baa583a4bfb2 /opentrack/tracker.h
parent69eb5f7b8c712482bb960f49e5c9ec717a902858 (diff)
Rotation basis algebra for centering
Reported-by: @doveman months ago, many times Issue: #63 @dbaarda please confirm that- or -whether- it makes any sense. Issue: #86 It could be either worse or better than before. Please specify. Sadly, no time to plug the videos as camera input to PT as of yet. Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'opentrack/tracker.h')
-rw-r--r--opentrack/tracker.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/opentrack/tracker.h b/opentrack/tracker.h
index 462f4e50..4282bc4e 100644
--- a/opentrack/tracker.h
+++ b/opentrack/tracker.h
@@ -21,18 +21,22 @@ private:
QMutex mtx;
main_settings& s;
Mappings& m;
-
+
Timer t;
- Pose output_pose, raw_6dof, raw_center, final_raw;
+ Pose output_pose, raw_6dof, final_raw;
+
double newpose[6];
std::atomic<bool> centerp;
std::atomic<bool> enabledp;
std::atomic<bool> should_quit;
SelectedLibraries const& libs;
-
+
+ Quat r_b;
+ double t_b[3];
+
double map(double pos, Mapping& axis);
void logic();
-
+
static void t_compensate(const double* input, double* output, bool rz);
void run() override;
public: