-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RTR] eulerDot - body velocity tranformation #263
Conversation
@pariterre I am not done yet, but I need help with how to write this : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @EveCharbie)
include/Utils/Quaternion.h, line 6 at r1 (raw file):
#include <memory> #include "Utils/Vector3d.h" #include "Utils/Matrix3d.h"
Is this necessary? Use the forward declaration (few lines below) if possible (and move the include to the cpp file).
src/Utils/Quaternion.cpp, line 351 at r1 (raw file):
} utils::Matrix3d unit_vectors_matrix;
Please use camelCase
(instead of snake_case
) variable names in C++
src/Utils/Quaternion.cpp, line 362 at r1 (raw file):
rotation_2[0] = euler[0]; rotation_2[1] = euler[1]; utils::Vector3d Rot_mat_1 = utils::Rotation::Rotation::fromEulerAngles(rotation_1, seq);
Is there a reason to copy all this suff?
src/Utils/Quaternion.cpp, line 377 at r1 (raw file):
velocity_matrix(i, 1) = temp_vectors_for_matrix_1[i]; velocity_matrix(i, 2) = temp_vectors_for_matrix_2[i]; }
Indent the inside of the for loop.
That said, it feels you just copy stuff from three lines before? Why don't use the .block(x, x, x, x) method?
Code quote:
velocity_matrix(i, 0) = temp_vectors_for_matrix_0[i];
velocity_matrix(i, 1) = temp_vectors_for_matrix_1[i];
velocity_matrix(i, 2) = temp_vectors_for_matrix_2[i];
@pariterre, if you have time, could you work with @EveCharbie on the PR? It is not urgent nor a priority |
516b515
to
8530fac
Compare
8530fac
to
6c0ccc2
Compare
@EveCharbie Please confirm the current code is what correct :) |
@pariterre : Yes looks fine, thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 5 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @EveCharbie)
@EveCharbie |
@EveCharbie up? |
Happy we catched it :)
I verified the values with my python version and everything is now OK :) |
Codecov Report
@@ Coverage Diff @@
## master #263 +/- ##
==========================================
+ Coverage 78.62% 78.88% +0.26%
==========================================
Files 101 101
Lines 11593 11689 +96
==========================================
+ Hits 9115 9221 +106
+ Misses 2478 2468 -10
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @EveCharbie)
issue : Verify conversion from rotation matrix to euler angles #165
This change is