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

add rotation-ordering util #7

Merged
merged 1 commit into from
Aug 4, 2020
Merged

add rotation-ordering util #7

merged 1 commit into from
Aug 4, 2020

Conversation

demul
Copy link
Contributor

@demul demul commented Feb 28, 2019

When I tried to transform some BVH files, There was a problem that the positions of joints are located very strangely.

Now I find the reason, there is a problem in 'rotation_tools.py'
The problem is that you only considered about BVH file that have 'XYZ-order' in rotation channel.
Actually, there are BVH file that have 'ZYX-order' or 'ZXY-order' or etc... too.

As you know, in rotation matrix, the joining order of single-axis rotation matrix is very important(commutative law is not valid).

So, I just add one parameter named 'rotation_order' at class 'Rotation', and add a simple 'For Clause' at 'rotation_tools.py' to make a correct order.
And, to give argument to 'Rotation', I modify 'preprocessin.py' very a little bit.

I wish your 'PyMO' contributing to more people.
Thank you for sharing good open-source.

-demul

@omimo
Copy link
Owner

omimo commented Aug 4, 2020

Thanks @demul ! Sorry for the delay. I'm back at working on PyMO!

@omimo omimo merged commit a46bdfa into omimo:master Aug 4, 2020
@demul
Copy link
Contributor Author

demul commented Dec 15, 2020

@omimo Welcome back! :>

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