Skip to content

Commit

Permalink
BUG: Add missing conversion from quaternion to eulers
Browse files Browse the repository at this point in the history
Regression introduced in 4d2eec3
  • Loading branch information
NicerNewerCar authored and jcfr committed Mar 14, 2024
1 parent caa8181 commit 77dc0ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoscoper/src/ui/AutoscoperMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -777,10 +777,10 @@ void AutoscoperMainWindow::save_tracking_results(QString filename,
xyzypr[0] = (*tracker->trial()->getXCurve(j))(i);
xyzypr[1] = (*tracker->trial()->getYCurve(j))(i);
xyzypr[2] = (*tracker->trial()->getZCurve(j))(i);
Quatf q = (*tracker->trial()->getQuatCurve(j))(i);
xyzypr[3] = q.z;
xyzypr[4] = q.y;
xyzypr[5] = q.x;
Vec3f eulers = (*tracker->trial()->getQuatCurve(j))(i).toEuler();
xyzypr[3] = eulers.z;
xyzypr[4] = eulers.y;
xyzypr[5] = eulers.x;

if (save_as_matrix) {
double m[16];
Expand Down

0 comments on commit 77dc0ee

Please sign in to comment.