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

Rotaion in Optitrack Data #6

Closed
sven-mayer opened this issue Jun 26, 2017 · 1 comment
Closed

Rotaion in Optitrack Data #6

sven-mayer opened this issue Jun 26, 2017 · 1 comment

Comments

@sven-mayer
Copy link
Contributor

in the README is described that "rot" is an (a,b,c,d) quaternion, however, in the example code, this coded as a 3-tuple. I'm wondering what's correct. If its a 3-tuple then I guess its angle in rad? If so, how can you ensure the flip in the rotation? That's why people use quaternion.

Further, I tried loading a 4-tuple which didn't work for me. The tool only loads 3-tuple.

@uzadow
Copy link
Contributor

uzadow commented Jun 26, 2017

You're right, the angle is a 3-component Euler angle, and the readme is incorrect.

It would probably have been better to store it as a quat, but there's no real problem. Calculations on 3D rotations are done in quaternion space like they should be (see, e.g., pat_model.py, lines 120ff, which calculates the viewpoint at the wall).

I've updated the readme to specify the angles clearly.

@uzadow uzadow closed this as completed Jun 26, 2017
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

2 participants