summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-10-05 16:28:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-10-05 14:35:44 +0000
commit9c82bd86dfbc0b003c51c07d4c54b97f1df4b3c2 (patch)
treef0bfcd88198258949c330db8686e1416f3e2c841 /tracker-aruco
parent56dc7a2f125f03246f5e8020b343e105b9db0fd4 (diff)
cv/tcal: don't count separate roll as sample
Diffstat (limited to 'tracker-aruco')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp
index b3d75e7d..502b50ad 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.cpp
+++ b/tracker-aruco/ftnoir_tracker_aruco.cpp
@@ -452,7 +452,7 @@ void aruco_tracker::data(double *data)
}
aruco_dialog::aruco_dialog() :
- calibrator(1, 0, 2)
+ calibrator(1, 0)
{
tracker = nullptr;
calib_timer.setInterval(100);
@@ -493,8 +493,8 @@ void aruco_dialog::toggleCalibrate()
{
cleanupCalib();
- cv::Vec3d pos;
- std::tie(pos, std::ignore) = calibrator.get_estimate();
+ auto [ pos, nvals ] = calibrator.get_estimate();
+ (void) nvals;
s.headpos_x = -pos(0);
s.headpos_y = -pos(1);
s.headpos_z = -pos(2);