Skip to content

Commit

Permalink
BUG: Add missing conversion from quaternion to eulers in getPose (#296)
Browse files Browse the repository at this point in the history
Fix regression introduced in 4d2eec3 (changes similar to 77dc0ee)
  • Loading branch information
NicerNewerCar authored Aug 13, 2024
1 parent 6d96be4 commit 8e132d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions autoscoper/src/ui/AutoscoperMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,9 +838,10 @@ std::vector<double> 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;
}

Expand Down

0 comments on commit 8e132d8

Please sign in to comment.