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

slight improvement to "Why Euler angles are horrible" #218

Open
petaflot opened this issue Jul 10, 2023 · 0 comments
Open

slight improvement to "Why Euler angles are horrible" #218

petaflot opened this issue Jul 10, 2023 · 0 comments

Comments

@petaflot
Copy link

first, I want to apologize for "being a nuisance" in #217 , I will try to be as short as possible.

as a matter of fact, your comment about

feel free to write your own function, like

def my_personal_idea_of_what_euler_angles_should_be(alpha, beta, gamma):
    return np.exp(alpha*quaternion.x/2) * np.exp(beta*quaternion.y/2) * np.exp(gamma*quaternion.z/2)

was the thing that made me go like "oh right this is what I missed". IMHO it should be included to your rant on Euler angles.

also and as a side note, I was surprised to get AttributeError: module 'quaternion' has no attribute 'w'

cheers and thanks for the work.

from someone who finds it so weird and unintuitive that

q = np.quaternion(1,2,3,4)
q.a == (1+4j)
q.b == (3+2j)

(yeah I should have tried this before)

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

No branches or pull requests

1 participant