summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt_dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-03 14:28:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-03 14:35:57 +0100
commitc012e1ed0751cd549033aac6cf5507ecf2b5d754 (patch)
tree9a1783003770a1dc564a1d75c52ddb5eff63c3fc /tracker-pt/ftnoir_tracker_pt_dialog.cpp
parent69575c27d57c84100bcf5e41ea5f4d9e6b2626c6 (diff)
compat, tracker-pt: add unfinished calibrator
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt_dialog.cpp')
-rw-r--r--tracker-pt/ftnoir_tracker_pt_dialog.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.cpp b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
index 2c3cbd07..35a029df 100644
--- a/tracker-pt/ftnoir_tracker_pt_dialog.cpp
+++ b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
@@ -131,6 +131,8 @@ void TrackerDialog_PT::startstop_trans_calib(bool start)
if (start)
{
+ c_calib = {};
+
qDebug() << "pt: starting translation calibration";
calib_timer.start();
trans_calib.reset();
@@ -142,6 +144,9 @@ void TrackerDialog_PT::startstop_trans_calib(bool start)
}
else
{
+ // XXX reenable after build
+ // (void) c_calib.get_coefficients();
+
calib_timer.stop();
qDebug() << "pt: stopping translation calibration";
{
@@ -237,8 +242,18 @@ void TrackerDialog_PT::trans_calib_step()
if (tracker)
{
+ // XXX reenable after build
+ if (false)
+ {
+
+ Mat<double, 6, 1> m;
+ tracker->data(m);
+ c_calib.input(m);
+ }
+
Affine X_CM = tracker->pose();
trans_calib.update(X_CM.R, X_CM.t);
+
}
else
startstop_trans_calib(false);