Skip to content

Commit

Permalink
BUG: Fix incorrect application of input heuristics
Browse files Browse the repository at this point in the history
Regression introduced in 4d2eec3 ("ENH: Update interpolation to
use Quaternions rather than eulers (#255)", 2024-02-29)
  • Loading branch information
NicerNewerCar authored and jcfr committed Mar 14, 2024
1 parent 77dc0ee commit a476d70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libautoscoper/src/Tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,10 @@ void Tracker::optimize(int frame,
for (int j = 0; j < repeats; j++) {

// Get Current Pose
float x_val = (*(const_cast<Trial&>(trial_)).getXCurve(-1))(trial_.frame - dFrame);
float y_val = (*(const_cast<Trial&>(trial_)).getYCurve(-1))(trial_.frame - dFrame);
float z_val = (*(const_cast<Trial&>(trial_)).getZCurve(-1))(trial_.frame - dFrame);
Quatf quat_val = (*(const_cast<Trial&>(trial_)).getQuatCurve(-1))(trial_.frame - dFrame);
float x_val = (*(const_cast<Trial&>(trial_)).getXCurve(-1))(trial_.frame);
float y_val = (*(const_cast<Trial&>(trial_)).getYCurve(-1))(trial_.frame);
float z_val = (*(const_cast<Trial&>(trial_)).getZCurve(-1))(trial_.frame);
Quatf quat_val = (*(const_cast<Trial&>(trial_)).getQuatCurve(-1))(trial_.frame);
Vec3f eulers = quat_val.toEuler();

double xyzypr[6] = { x_val, y_val, z_val, eulers.z, eulers.y, eulers.x };
Expand Down

0 comments on commit a476d70

Please sign in to comment.