summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index ab27d7c6..a4c521d0 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -135,9 +135,9 @@ void Tracker::load_settings()
Tracker::Tracker()
{
+ layout = nullptr;
stop = false;
videoWidget = NULL;
- layout = NULL;
enableRX = enableRY = enableRZ = enableTX = enableTY = enableTZ = true;
load_settings();
}
@@ -147,10 +147,10 @@ Tracker::~Tracker()
QMutexLocker foo(&mtx);
stop = true;
wait();
- if (layout)
- delete layout;
if (videoWidget)
delete videoWidget;
+ if(layout)
+ delete layout;
}
void Tracker::StartTracker(QFrame* videoframe)
@@ -165,11 +165,11 @@ void Tracker::StartTracker(QFrame* videoframe)
delete videoframe->layout();
videoframe->setLayout(layout);
videoWidget->show();
- this->layout = layout;
load_settings();
start();
for (int i = 0; i < 6; i++)
pose[i] = 0;
+ this->layout = layout;
}
#define HT_PI 3.1415926535