From 8e132d8c513fbc04ac49623b147910a261373c33 Mon Sep 17 00:00:00 2001 From: Anthony Lombardi <30351234+NicerNewerCar@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:05:13 -0400 Subject: [PATCH] BUG: Add missing conversion from quaternion to eulers in getPose (#296) Fix regression introduced in 4d2eec3 (changes similar to 77dc0ee) --- autoscoper/src/ui/AutoscoperMainWindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autoscoper/src/ui/AutoscoperMainWindow.cpp b/autoscoper/src/ui/AutoscoperMainWindow.cpp index 843f590a..831f9c66 100644 --- a/autoscoper/src/ui/AutoscoperMainWindow.cpp +++ b/autoscoper/src/ui/AutoscoperMainWindow.cpp @@ -838,9 +838,10 @@ std::vector AutoscoperMainWindow::getPose(unsigned int volume, unsigned pose[1] = (*tracker->trial()->getYCurve(volume))(frame); pose[2] = (*tracker->trial()->getZCurve(volume))(frame); Quatf q = (*tracker->trial()->getQuatCurve(volume))(frame); - pose[3] = q.z; - pose[4] = q.y; - pose[5] = q.x; + Vec3f euler = q.toEuler(); + pose[3] = euler.z; + pose[4] = euler.y; + pose[5] = euler.x; return pose; }