-
Notifications
You must be signed in to change notification settings - Fork 142
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
Can the preprocessed data converted to quaternions? #34
Comments
Yes.
Look at https://github.com/una-dinosauria/human-motion-prediction/blob/master/src/data_utils.py. We have code to convert from expmat to rotation matrix, and then you can go from rotation matrix to quaternion.
I don't usually write code for others, but I'm happy to give pointers to resources that will help you accomplish what you want. Cheers, |
Thank you very much @una-dinosauria you're very helpful and very responsive. From some comments here I realized that the first three values from every row are translation values (so these should not be considered in the conversion) while all other values should be converted. To make sure that I did it correctly, I converted the angles back to exponential maps to see If I will get the original angles, and I got very similar values (with little differences). Thanks again :) @una-dinosauria . |
It should be 3 + 4*(n_joints). This sounds good to me.
If you can convert back and forth, the program is probably correct. You may want to implement forward kinematics from quaternions and verify that you obtain the same result. |
Thanks @una-dinosauria |
Hi @Ammola,
Please have a look at the human-motion-prediction/src/forward_kinematics.py Lines 14 to 28 in c9a2774
The parameters are all you need to understand the structure of the data, including rotation parameters and parent-child relations. You may want to look at https://en.wikipedia.org/wiki/Forward_kinematics to get familiar with the concepts. |
May I ask you @una-dinosauria a question?
Can the preprocessed data be converted to quaternions instead of exponential maps?
Is there a code for the conversion?
I would be very thankful to you if you can provide me with the same data you used but represented with quaternions instead of exponential maps.
Sorry If I'm asking the wrong question.
The text was updated successfully, but these errors were encountered: