Skip to content
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

yxy rotation #314

Merged
merged 2 commits into from
Dec 1, 2022
Merged

yxy rotation #314

merged 2 commits into from
Dec 1, 2022

Conversation

rapidnico
Copy link
Contributor

@rapidnico rapidnico commented Nov 24, 2022

added yxy rotation to Rotation.toEulerAngles


This change is Reviewable

added yxy rotation to Rotation.toEulerAngles
@rapidnico rapidnico changed the title yxy rotation [RTR]yxy rotation Nov 24, 2022
Copy link
Member

@pariterre pariterre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rapidnico)


src/Utils/Rotation.cpp line 254 at r1 (raw file):

        v[0] = std::atan2(r(0,1), r(2,1));   // y
        v[1] = std::asin(r(1,1));            // x
        v[2] = std::atan2(-r(1,0), r(1,2));  // y

Where did you take these? It does not correspond to the ref at the beggining of the section

Code quote:

        v[0] = std::atan2(r(0,1), r(2,1));   // y
        v[1] = std::asin(r(1,1));            // x
        v[2] = std::atan2(-r(1,0), r(1,2));  // y

@pariterre pariterre changed the title [RTR]yxy rotation yxy rotation Nov 24, 2022
Copy link
Contributor Author

@rapidnico rapidnico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @pariterre)


src/Utils/Rotation.cpp line 254 at r1 (raw file):

Previously, pariterre (Pariterre) wrote…

Where did you take these? It does not correspond to the ref at the beggining of the section

Done


src/Utils/Rotation.cpp line 255 at r1 (raw file):

   v[0] = std::atan2(r(0,1), r(2,1));   // y
    v[1] = std::asin(r(1,1));            // x
    v[2] = std::atan2(-r(1,0), r(1,2));  // y

Copy link
Member

@pariterre pariterre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion

@pariterre pariterre merged commit 2c9772a into pyomeca:master Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants