diff options
-rwxr-xr-x | opentrack/tracker.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp index d8562f52..8313c8fc 100755 --- a/opentrack/tracker.cpp +++ b/opentrack/tracker.cpp @@ -168,10 +168,8 @@ void Tracker::logic() { double tmp[3] = { t(0) - t_b[0], t(1) - t_b[1], t(2) - t_b[2] }; t_compensate(cam, tmp, tmp, false); - rmat m_; - m_ = r_b.t() * r; - const dmat<3, 1> euler = rmat::rmat_to_euler(m_); + const dmat<3, 1> euler = rmat::rmat_to_euler(r * r_b.t()); for (int i = 0; i < 3; i++) { value(i) = tmp[i]; |